1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for tls 1.6.1. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552exec 7<&0 </dev/null 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570SHELL=${CONFIG_SHELL-/bin/sh} 571 572# Identity of this package. 573PACKAGE_NAME='tls' 574PACKAGE_TARNAME='tls' 575PACKAGE_VERSION='1.6.1' 576PACKAGE_STRING='tls 1.6.1' 577PACKAGE_BUGREPORT='' 578 579# Factoring default headers for most tests. 580ac_includes_default="\ 581#include <stdio.h> 582#ifdef HAVE_SYS_TYPES_H 583# include <sys/types.h> 584#endif 585#ifdef HAVE_SYS_STAT_H 586# include <sys/stat.h> 587#endif 588#ifdef STDC_HEADERS 589# include <stdlib.h> 590# include <stddef.h> 591#else 592# ifdef HAVE_STDLIB_H 593# include <stdlib.h> 594# endif 595#endif 596#ifdef HAVE_STRING_H 597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 598# include <memory.h> 599# endif 600# include <string.h> 601#endif 602#ifdef HAVE_STRINGS_H 603# include <strings.h> 604#endif 605#ifdef HAVE_INTTYPES_H 606# include <inttypes.h> 607#endif 608#ifdef HAVE_STDINT_H 609# include <stdint.h> 610#endif 611#ifdef HAVE_UNISTD_H 612# include <unistd.h> 613#endif" 614 615ac_subst_vars='SHELL 616PATH_SEPARATOR 617PACKAGE_NAME 618PACKAGE_TARNAME 619PACKAGE_VERSION 620PACKAGE_STRING 621PACKAGE_BUGREPORT 622exec_prefix 623prefix 624program_transform_name 625bindir 626sbindir 627libexecdir 628datarootdir 629datadir 630sysconfdir 631sharedstatedir 632localstatedir 633includedir 634oldincludedir 635docdir 636infodir 637htmldir 638dvidir 639pdfdir 640psdir 641libdir 642localedir 643mandir 644DEFS 645ECHO_C 646ECHO_N 647ECHO_T 648LIBS 649build_alias 650host_alias 651target_alias 652CYGPATH 653EXEEXT 654PKG_LIB_FILE 655PKG_STUB_LIB_FILE 656PKG_STUB_SOURCES 657PKG_STUB_OBJECTS 658PKG_TCL_SOURCES 659PKG_HEADERS 660PKG_INCLUDES 661PKG_LIBS 662PKG_CFLAGS 663TCL_VERSION 664TCL_PATCH_LEVEL 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 673CLEANFILES 674TCL_LIBS 675TCL_DEFS 676TCL_EXTRA_CFLAGS 677TCL_LD_FLAGS 678TCL_SHLIB_LD_LIBS 679CC 680CFLAGS 681LDFLAGS 682CPPFLAGS 683ac_ct_CC 684OBJEXT 685CPP 686INSTALL_PROGRAM 687INSTALL_SCRIPT 688INSTALL_DATA 689SET_MAKE 690RANLIB 691GREP 692EGREP 693MATH_LIBS 694PKG_SOURCES 695PKG_OBJECTS 696TCL_INCLUDES 697TCL_THREADS 698SHARED_BUILD 699AR 700CELIB_DIR 701CFLAGS_DEBUG 702CFLAGS_OPTIMIZE 703CFLAGS_WARNING 704STLIB_LD 705SHLIB_LD 706SHLIB_LD_LIBS 707SHLIB_CFLAGS 708LD_LIBRARY_PATH_VAR 709CFLAGS_DEFAULT 710LDFLAGS_DEFAULT 711TCL_DBGX 712SSL_DIR 713SSL_LIB_DIR 714SSL_INCLUDE_DIR 715SSL_INCLUDE_DIR_NATIVE 716SSL_LIB_DIR_NATIVE 717MAKE_LIB 718MAKE_SHARED_LIB 719MAKE_STATIC_LIB 720MAKE_STUB_LIB 721RANLIB_STUB 722VC_MANIFEST_EMBED_DLL 723VC_MANIFEST_EMBED_EXE 724TCLSH_PROG 725LIBOBJS 726LTLIBOBJS' 727ac_subst_files='' 728 ac_precious_vars='build_alias 729host_alias 730target_alias 731CC 732CFLAGS 733LDFLAGS 734LIBS 735CPPFLAGS 736CPP' 737 738 739# Initialize some variables set by options. 740ac_init_help= 741ac_init_version=false 742# The variables have the same names as the options, with 743# dashes changed to underlines. 744cache_file=/dev/null 745exec_prefix=NONE 746no_create= 747no_recursion= 748prefix=NONE 749program_prefix=NONE 750program_suffix=NONE 751program_transform_name=s,x,x, 752silent= 753site= 754srcdir= 755verbose= 756x_includes=NONE 757x_libraries=NONE 758 759# Installation directory options. 760# These are left unexpanded so users can "make install exec_prefix=/foo" 761# and all the variables that are supposed to be based on exec_prefix 762# by default will actually change. 763# Use braces instead of parens because sh, perl, etc. also accept them. 764# (The list follows the same order as the GNU Coding Standards.) 765bindir='${exec_prefix}/bin' 766sbindir='${exec_prefix}/sbin' 767libexecdir='${exec_prefix}/libexec' 768datarootdir='${prefix}/share' 769datadir='${datarootdir}' 770sysconfdir='${prefix}/etc' 771sharedstatedir='${prefix}/com' 772localstatedir='${prefix}/var' 773includedir='${prefix}/include' 774oldincludedir='/usr/include' 775docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 776infodir='${datarootdir}/info' 777htmldir='${docdir}' 778dvidir='${docdir}' 779pdfdir='${docdir}' 780psdir='${docdir}' 781libdir='${exec_prefix}/lib' 782localedir='${datarootdir}/locale' 783mandir='${datarootdir}/man' 784 785ac_prev= 786ac_dashdash= 787for ac_option 788do 789 # If the previous option needs an argument, assign it. 790 if test -n "$ac_prev"; then 791 eval $ac_prev=\$ac_option 792 ac_prev= 793 continue 794 fi 795 796 case $ac_option in 797 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 798 *) ac_optarg=yes ;; 799 esac 800 801 # Accept the important Cygnus configure options, so we can diagnose typos. 802 803 case $ac_dashdash$ac_option in 804 --) 805 ac_dashdash=yes ;; 806 807 -bindir | --bindir | --bindi | --bind | --bin | --bi) 808 ac_prev=bindir ;; 809 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 810 bindir=$ac_optarg ;; 811 812 -build | --build | --buil | --bui | --bu) 813 ac_prev=build_alias ;; 814 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 815 build_alias=$ac_optarg ;; 816 817 -cache-file | --cache-file | --cache-fil | --cache-fi \ 818 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 819 ac_prev=cache_file ;; 820 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 821 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 822 cache_file=$ac_optarg ;; 823 824 --config-cache | -C) 825 cache_file=config.cache ;; 826 827 -datadir | --datadir | --datadi | --datad) 828 ac_prev=datadir ;; 829 -datadir=* | --datadir=* | --datadi=* | --datad=*) 830 datadir=$ac_optarg ;; 831 832 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 833 | --dataroo | --dataro | --datar) 834 ac_prev=datarootdir ;; 835 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 836 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 837 datarootdir=$ac_optarg ;; 838 839 -disable-* | --disable-*) 840 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 841 # Reject names that are not valid shell variable names. 842 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 843 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 844 { (exit 1); exit 1; }; } 845 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 846 eval enable_$ac_feature=no ;; 847 848 -docdir | --docdir | --docdi | --doc | --do) 849 ac_prev=docdir ;; 850 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 851 docdir=$ac_optarg ;; 852 853 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 854 ac_prev=dvidir ;; 855 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 856 dvidir=$ac_optarg ;; 857 858 -enable-* | --enable-*) 859 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 860 # Reject names that are not valid shell variable names. 861 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 862 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 863 { (exit 1); exit 1; }; } 864 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 865 eval enable_$ac_feature=\$ac_optarg ;; 866 867 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 868 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 869 | --exec | --exe | --ex) 870 ac_prev=exec_prefix ;; 871 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 872 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 873 | --exec=* | --exe=* | --ex=*) 874 exec_prefix=$ac_optarg ;; 875 876 -gas | --gas | --ga | --g) 877 # Obsolete; use --with-gas. 878 with_gas=yes ;; 879 880 -help | --help | --hel | --he | -h) 881 ac_init_help=long ;; 882 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 883 ac_init_help=recursive ;; 884 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 885 ac_init_help=short ;; 886 887 -host | --host | --hos | --ho) 888 ac_prev=host_alias ;; 889 -host=* | --host=* | --hos=* | --ho=*) 890 host_alias=$ac_optarg ;; 891 892 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 893 ac_prev=htmldir ;; 894 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 895 | --ht=*) 896 htmldir=$ac_optarg ;; 897 898 -includedir | --includedir | --includedi | --included | --include \ 899 | --includ | --inclu | --incl | --inc) 900 ac_prev=includedir ;; 901 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 902 | --includ=* | --inclu=* | --incl=* | --inc=*) 903 includedir=$ac_optarg ;; 904 905 -infodir | --infodir | --infodi | --infod | --info | --inf) 906 ac_prev=infodir ;; 907 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 908 infodir=$ac_optarg ;; 909 910 -libdir | --libdir | --libdi | --libd) 911 ac_prev=libdir ;; 912 -libdir=* | --libdir=* | --libdi=* | --libd=*) 913 libdir=$ac_optarg ;; 914 915 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 916 | --libexe | --libex | --libe) 917 ac_prev=libexecdir ;; 918 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 919 | --libexe=* | --libex=* | --libe=*) 920 libexecdir=$ac_optarg ;; 921 922 -localedir | --localedir | --localedi | --localed | --locale) 923 ac_prev=localedir ;; 924 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 925 localedir=$ac_optarg ;; 926 927 -localstatedir | --localstatedir | --localstatedi | --localstated \ 928 | --localstate | --localstat | --localsta | --localst | --locals) 929 ac_prev=localstatedir ;; 930 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 931 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 932 localstatedir=$ac_optarg ;; 933 934 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 935 ac_prev=mandir ;; 936 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 937 mandir=$ac_optarg ;; 938 939 -nfp | --nfp | --nf) 940 # Obsolete; use --without-fp. 941 with_fp=no ;; 942 943 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 944 | --no-cr | --no-c | -n) 945 no_create=yes ;; 946 947 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 948 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 949 no_recursion=yes ;; 950 951 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 952 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 953 | --oldin | --oldi | --old | --ol | --o) 954 ac_prev=oldincludedir ;; 955 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 956 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 957 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 958 oldincludedir=$ac_optarg ;; 959 960 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 961 ac_prev=prefix ;; 962 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 963 prefix=$ac_optarg ;; 964 965 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 966 | --program-pre | --program-pr | --program-p) 967 ac_prev=program_prefix ;; 968 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 969 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 970 program_prefix=$ac_optarg ;; 971 972 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 973 | --program-suf | --program-su | --program-s) 974 ac_prev=program_suffix ;; 975 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 976 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 977 program_suffix=$ac_optarg ;; 978 979 -program-transform-name | --program-transform-name \ 980 | --program-transform-nam | --program-transform-na \ 981 | --program-transform-n | --program-transform- \ 982 | --program-transform | --program-transfor \ 983 | --program-transfo | --program-transf \ 984 | --program-trans | --program-tran \ 985 | --progr-tra | --program-tr | --program-t) 986 ac_prev=program_transform_name ;; 987 -program-transform-name=* | --program-transform-name=* \ 988 | --program-transform-nam=* | --program-transform-na=* \ 989 | --program-transform-n=* | --program-transform-=* \ 990 | --program-transform=* | --program-transfor=* \ 991 | --program-transfo=* | --program-transf=* \ 992 | --program-trans=* | --program-tran=* \ 993 | --progr-tra=* | --program-tr=* | --program-t=*) 994 program_transform_name=$ac_optarg ;; 995 996 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 997 ac_prev=pdfdir ;; 998 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 999 pdfdir=$ac_optarg ;; 1000 1001 -psdir | --psdir | --psdi | --psd | --ps) 1002 ac_prev=psdir ;; 1003 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1004 psdir=$ac_optarg ;; 1005 1006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1007 | -silent | --silent | --silen | --sile | --sil) 1008 silent=yes ;; 1009 1010 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1011 ac_prev=sbindir ;; 1012 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1013 | --sbi=* | --sb=*) 1014 sbindir=$ac_optarg ;; 1015 1016 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1017 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1018 | --sharedst | --shareds | --shared | --share | --shar \ 1019 | --sha | --sh) 1020 ac_prev=sharedstatedir ;; 1021 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1022 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1023 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1024 | --sha=* | --sh=*) 1025 sharedstatedir=$ac_optarg ;; 1026 1027 -site | --site | --sit) 1028 ac_prev=site ;; 1029 -site=* | --site=* | --sit=*) 1030 site=$ac_optarg ;; 1031 1032 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1033 ac_prev=srcdir ;; 1034 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1035 srcdir=$ac_optarg ;; 1036 1037 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1038 | --syscon | --sysco | --sysc | --sys | --sy) 1039 ac_prev=sysconfdir ;; 1040 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1041 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1042 sysconfdir=$ac_optarg ;; 1043 1044 -target | --target | --targe | --targ | --tar | --ta | --t) 1045 ac_prev=target_alias ;; 1046 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1047 target_alias=$ac_optarg ;; 1048 1049 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1050 verbose=yes ;; 1051 1052 -version | --version | --versio | --versi | --vers | -V) 1053 ac_init_version=: ;; 1054 1055 -with-* | --with-*) 1056 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1057 # Reject names that are not valid shell variable names. 1058 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1059 { echo "$as_me: error: invalid package name: $ac_package" >&2 1060 { (exit 1); exit 1; }; } 1061 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1062 eval with_$ac_package=\$ac_optarg ;; 1063 1064 -without-* | --without-*) 1065 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1066 # Reject names that are not valid shell variable names. 1067 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1068 { echo "$as_me: error: invalid package name: $ac_package" >&2 1069 { (exit 1); exit 1; }; } 1070 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1071 eval with_$ac_package=no ;; 1072 1073 --x) 1074 # Obsolete; use --with-x. 1075 with_x=yes ;; 1076 1077 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1078 | --x-incl | --x-inc | --x-in | --x-i) 1079 ac_prev=x_includes ;; 1080 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1081 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1082 x_includes=$ac_optarg ;; 1083 1084 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1085 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1086 ac_prev=x_libraries ;; 1087 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1088 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1089 x_libraries=$ac_optarg ;; 1090 1091 -*) { echo "$as_me: error: unrecognized option: $ac_option 1092Try \`$0 --help' for more information." >&2 1093 { (exit 1); exit 1; }; } 1094 ;; 1095 1096 *=*) 1097 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1098 # Reject names that are not valid shell variable names. 1099 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1100 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1101 { (exit 1); exit 1; }; } 1102 eval $ac_envvar=\$ac_optarg 1103 export $ac_envvar ;; 1104 1105 *) 1106 # FIXME: should be removed in autoconf 3.0. 1107 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1108 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1109 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1110 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1111 ;; 1112 1113 esac 1114done 1115 1116if test -n "$ac_prev"; then 1117 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1118 { echo "$as_me: error: missing argument to $ac_option" >&2 1119 { (exit 1); exit 1; }; } 1120fi 1121 1122# Be sure to have absolute directory names. 1123for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1124 datadir sysconfdir sharedstatedir localstatedir includedir \ 1125 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1126 libdir localedir mandir 1127do 1128 eval ac_val=\$$ac_var 1129 case $ac_val in 1130 [\\/$]* | ?:[\\/]* ) continue;; 1131 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1132 esac 1133 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1134 { (exit 1); exit 1; }; } 1135done 1136 1137# There might be people who depend on the old broken behavior: `$host' 1138# used to hold the argument of --host etc. 1139# FIXME: To remove some day. 1140build=$build_alias 1141host=$host_alias 1142target=$target_alias 1143 1144# FIXME: To remove some day. 1145if test "x$host_alias" != x; then 1146 if test "x$build_alias" = x; then 1147 cross_compiling=maybe 1148 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1149 If a cross compiler is detected then cross compile mode will be used." >&2 1150 elif test "x$build_alias" != "x$host_alias"; then 1151 cross_compiling=yes 1152 fi 1153fi 1154 1155ac_tool_prefix= 1156test -n "$host_alias" && ac_tool_prefix=$host_alias- 1157 1158test "$silent" = yes && exec 6>/dev/null 1159 1160 1161ac_pwd=`pwd` && test -n "$ac_pwd" && 1162ac_ls_di=`ls -di .` && 1163ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1164 { echo "$as_me: error: Working directory cannot be determined" >&2 1165 { (exit 1); exit 1; }; } 1166test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1167 { echo "$as_me: error: pwd does not report name of working directory" >&2 1168 { (exit 1); exit 1; }; } 1169 1170 1171# Find the source files, if location was not specified. 1172if test -z "$srcdir"; then 1173 ac_srcdir_defaulted=yes 1174 # Try the directory containing this script, then the parent directory. 1175 ac_confdir=`$as_dirname -- "$0" || 1176$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1177 X"$0" : 'X\(//\)[^/]' \| \ 1178 X"$0" : 'X\(//\)$' \| \ 1179 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1180echo X"$0" | 1181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1182 s//\1/ 1183 q 1184 } 1185 /^X\(\/\/\)[^/].*/{ 1186 s//\1/ 1187 q 1188 } 1189 /^X\(\/\/\)$/{ 1190 s//\1/ 1191 q 1192 } 1193 /^X\(\/\).*/{ 1194 s//\1/ 1195 q 1196 } 1197 s/.*/./; q'` 1198 srcdir=$ac_confdir 1199 if test ! -r "$srcdir/$ac_unique_file"; then 1200 srcdir=.. 1201 fi 1202else 1203 ac_srcdir_defaulted=no 1204fi 1205if test ! -r "$srcdir/$ac_unique_file"; then 1206 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1207 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1208 { (exit 1); exit 1; }; } 1209fi 1210ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1211ac_abs_confdir=`( 1212 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1213 { (exit 1); exit 1; }; } 1214 pwd)` 1215# When building in place, set srcdir=. 1216if test "$ac_abs_confdir" = "$ac_pwd"; then 1217 srcdir=. 1218fi 1219# Remove unnecessary trailing slashes from srcdir. 1220# Double slashes in file names in object file debugging info 1221# mess up M-x gdb in Emacs. 1222case $srcdir in 1223*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1224esac 1225for ac_var in $ac_precious_vars; do 1226 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1227 eval ac_env_${ac_var}_value=\$${ac_var} 1228 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1229 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1230done 1231 1232# 1233# Report the --help message. 1234# 1235if test "$ac_init_help" = "long"; then 1236 # Omit some internal or obsolete options to make the list less imposing. 1237 # This message is too long to be a string in the A/UX 3.1 sh. 1238 cat <<_ACEOF 1239\`configure' configures tls 1.6.1 to adapt to many kinds of systems. 1240 1241Usage: $0 [OPTION]... [VAR=VALUE]... 1242 1243To assign environment variables (e.g., CC, CFLAGS...), specify them as 1244VAR=VALUE. See below for descriptions of some of the useful variables. 1245 1246Defaults for the options are specified in brackets. 1247 1248Configuration: 1249 -h, --help display this help and exit 1250 --help=short display options specific to this package 1251 --help=recursive display the short help of all the included packages 1252 -V, --version display version information and exit 1253 -q, --quiet, --silent do not print \`checking...' messages 1254 --cache-file=FILE cache test results in FILE [disabled] 1255 -C, --config-cache alias for \`--cache-file=config.cache' 1256 -n, --no-create do not create output files 1257 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1258 1259Installation directories: 1260 --prefix=PREFIX install architecture-independent files in PREFIX 1261 [$ac_default_prefix] 1262 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1263 [PREFIX] 1264 1265By default, \`make install' will install all the files in 1266\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1267an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1268for instance \`--prefix=\$HOME'. 1269 1270For better control, use the options below. 1271 1272Fine tuning of the installation directories: 1273 --bindir=DIR user executables [EPREFIX/bin] 1274 --sbindir=DIR system admin executables [EPREFIX/sbin] 1275 --libexecdir=DIR program executables [EPREFIX/libexec] 1276 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1277 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1278 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1279 --libdir=DIR object code libraries [EPREFIX/lib] 1280 --includedir=DIR C header files [PREFIX/include] 1281 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1282 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1283 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1284 --infodir=DIR info documentation [DATAROOTDIR/info] 1285 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1286 --mandir=DIR man documentation [DATAROOTDIR/man] 1287 --docdir=DIR documentation root [DATAROOTDIR/doc/tls] 1288 --htmldir=DIR html documentation [DOCDIR] 1289 --dvidir=DIR dvi documentation [DOCDIR] 1290 --pdfdir=DIR pdf documentation [DOCDIR] 1291 --psdir=DIR ps documentation [DOCDIR] 1292_ACEOF 1293 1294 cat <<\_ACEOF 1295_ACEOF 1296fi 1297 1298if test -n "$ac_init_help"; then 1299 case $ac_init_help in 1300 short | recursive ) echo "Configuration of tls 1.6.1:";; 1301 esac 1302 cat <<\_ACEOF 1303 1304Optional Features: 1305 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1306 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1307 --enable-threads build with threads 1308 --enable-shared build and link with shared libraries (default: on) 1309 --enable-64bit enable 64bit support (default: off) 1310 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1311 --disable-rpath disable rpath support (default: on) 1312 --enable-wince enable Win/CE support (where applicable) 1313 --enable-symbols build with debugging symbols (default: off) 1314 --enable-bsafe Use RSA BSAFE SSL-C libs. Default is to use OpenSSL libs 1315 --enable-patents Use patented code. Default is enabled 1316 1317Optional Packages: 1318 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1319 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1320 --with-tcl directory containing tcl configuration 1321 (tclConfig.sh) 1322 --with-tclinclude directory containing the public Tcl header files 1323 --with-celib=DIR use Windows/CE support library from DIR 1324 --with-ssl-dir=DIR SSL root directory 1325 --with-gcclib link with libgcc to resolve symbols in a gcc-built openssl library 1326 1327Some influential environment variables: 1328 CC C compiler command 1329 CFLAGS C compiler flags 1330 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1331 nonstandard directory <lib dir> 1332 LIBS libraries to pass to the linker, e.g. -l<library> 1333 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1334 you have headers in a nonstandard directory <include dir> 1335 CPP C preprocessor 1336 1337Use these variables to override the choices made by `configure' or to help 1338it to find libraries and programs with nonstandard names/locations. 1339 1340_ACEOF 1341ac_status=$? 1342fi 1343 1344if test "$ac_init_help" = "recursive"; then 1345 # If there are subdirs, report their specific --help. 1346 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1347 test -d "$ac_dir" || continue 1348 ac_builddir=. 1349 1350case "$ac_dir" in 1351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1352*) 1353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1354 # A ".." for each directory in $ac_dir_suffix. 1355 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1356 case $ac_top_builddir_sub in 1357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1359 esac ;; 1360esac 1361ac_abs_top_builddir=$ac_pwd 1362ac_abs_builddir=$ac_pwd$ac_dir_suffix 1363# for backward compatibility: 1364ac_top_builddir=$ac_top_build_prefix 1365 1366case $srcdir in 1367 .) # We are building in place. 1368 ac_srcdir=. 1369 ac_top_srcdir=$ac_top_builddir_sub 1370 ac_abs_top_srcdir=$ac_pwd ;; 1371 [\\/]* | ?:[\\/]* ) # Absolute name. 1372 ac_srcdir=$srcdir$ac_dir_suffix; 1373 ac_top_srcdir=$srcdir 1374 ac_abs_top_srcdir=$srcdir ;; 1375 *) # Relative name. 1376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1377 ac_top_srcdir=$ac_top_build_prefix$srcdir 1378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1379esac 1380ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1381 1382 cd "$ac_dir" || { ac_status=$?; continue; } 1383 # Check for guested configure. 1384 if test -f "$ac_srcdir/configure.gnu"; then 1385 echo && 1386 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1387 elif test -f "$ac_srcdir/configure"; then 1388 echo && 1389 $SHELL "$ac_srcdir/configure" --help=recursive 1390 else 1391 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1392 fi || ac_status=$? 1393 cd "$ac_pwd" || { ac_status=$?; break; } 1394 done 1395fi 1396 1397test -n "$ac_init_help" && exit $ac_status 1398if $ac_init_version; then 1399 cat <<\_ACEOF 1400tls configure 1.6.1 1401generated by GNU Autoconf 2.61 1402 1403Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14042002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1405This configure script is free software; the Free Software Foundation 1406gives unlimited permission to copy, distribute and modify it. 1407_ACEOF 1408 exit 1409fi 1410cat >config.log <<_ACEOF 1411This file contains any messages produced by compilers while 1412running configure, to aid debugging if configure makes a mistake. 1413 1414It was created by tls $as_me 1.6.1, which was 1415generated by GNU Autoconf 2.61. Invocation command line was 1416 1417 $ $0 $@ 1418 1419_ACEOF 1420exec 5>>config.log 1421{ 1422cat <<_ASUNAME 1423## --------- ## 1424## Platform. ## 1425## --------- ## 1426 1427hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1428uname -m = `(uname -m) 2>/dev/null || echo unknown` 1429uname -r = `(uname -r) 2>/dev/null || echo unknown` 1430uname -s = `(uname -s) 2>/dev/null || echo unknown` 1431uname -v = `(uname -v) 2>/dev/null || echo unknown` 1432 1433/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1434/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1435 1436/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1437/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1438/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1439/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1440/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1441/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1442/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1443 1444_ASUNAME 1445 1446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1447for as_dir in $PATH 1448do 1449 IFS=$as_save_IFS 1450 test -z "$as_dir" && as_dir=. 1451 echo "PATH: $as_dir" 1452done 1453IFS=$as_save_IFS 1454 1455} >&5 1456 1457cat >&5 <<_ACEOF 1458 1459 1460## ----------- ## 1461## Core tests. ## 1462## ----------- ## 1463 1464_ACEOF 1465 1466 1467# Keep a trace of the command line. 1468# Strip out --no-create and --no-recursion so they do not pile up. 1469# Strip out --silent because we don't want to record it for future runs. 1470# Also quote any args containing shell meta-characters. 1471# Make two passes to allow for proper duplicate-argument suppression. 1472ac_configure_args= 1473ac_configure_args0= 1474ac_configure_args1= 1475ac_must_keep_next=false 1476for ac_pass in 1 2 1477do 1478 for ac_arg 1479 do 1480 case $ac_arg in 1481 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1483 | -silent | --silent | --silen | --sile | --sil) 1484 continue ;; 1485 *\'*) 1486 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1487 esac 1488 case $ac_pass in 1489 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1490 2) 1491 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1492 if test $ac_must_keep_next = true; then 1493 ac_must_keep_next=false # Got value, back to normal. 1494 else 1495 case $ac_arg in 1496 *=* | --config-cache | -C | -disable-* | --disable-* \ 1497 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1498 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1499 | -with-* | --with-* | -without-* | --without-* | --x) 1500 case "$ac_configure_args0 " in 1501 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1502 esac 1503 ;; 1504 -* ) ac_must_keep_next=true ;; 1505 esac 1506 fi 1507 ac_configure_args="$ac_configure_args '$ac_arg'" 1508 ;; 1509 esac 1510 done 1511done 1512$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1513$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1514 1515# When interrupted or exit'd, cleanup temporary files, and complete 1516# config.log. We remove comments because anyway the quotes in there 1517# would cause problems or look ugly. 1518# WARNING: Use '\'' to represent an apostrophe within the trap. 1519# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1520trap 'exit_status=$? 1521 # Save into config.log some information that might help in debugging. 1522 { 1523 echo 1524 1525 cat <<\_ASBOX 1526## ---------------- ## 1527## Cache variables. ## 1528## ---------------- ## 1529_ASBOX 1530 echo 1531 # The following way of writing the cache mishandles newlines in values, 1532( 1533 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1534 eval ac_val=\$$ac_var 1535 case $ac_val in #( 1536 *${as_nl}*) 1537 case $ac_var in #( 1538 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1539echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1540 esac 1541 case $ac_var in #( 1542 _ | IFS | as_nl) ;; #( 1543 *) $as_unset $ac_var ;; 1544 esac ;; 1545 esac 1546 done 1547 (set) 2>&1 | 1548 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1549 *${as_nl}ac_space=\ *) 1550 sed -n \ 1551 "s/'\''/'\''\\\\'\'''\''/g; 1552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1553 ;; #( 1554 *) 1555 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1556 ;; 1557 esac | 1558 sort 1559) 1560 echo 1561 1562 cat <<\_ASBOX 1563## ----------------- ## 1564## Output variables. ## 1565## ----------------- ## 1566_ASBOX 1567 echo 1568 for ac_var in $ac_subst_vars 1569 do 1570 eval ac_val=\$$ac_var 1571 case $ac_val in 1572 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1573 esac 1574 echo "$ac_var='\''$ac_val'\''" 1575 done | sort 1576 echo 1577 1578 if test -n "$ac_subst_files"; then 1579 cat <<\_ASBOX 1580## ------------------- ## 1581## File substitutions. ## 1582## ------------------- ## 1583_ASBOX 1584 echo 1585 for ac_var in $ac_subst_files 1586 do 1587 eval ac_val=\$$ac_var 1588 case $ac_val in 1589 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1590 esac 1591 echo "$ac_var='\''$ac_val'\''" 1592 done | sort 1593 echo 1594 fi 1595 1596 if test -s confdefs.h; then 1597 cat <<\_ASBOX 1598## ----------- ## 1599## confdefs.h. ## 1600## ----------- ## 1601_ASBOX 1602 echo 1603 cat confdefs.h 1604 echo 1605 fi 1606 test "$ac_signal" != 0 && 1607 echo "$as_me: caught signal $ac_signal" 1608 echo "$as_me: exit $exit_status" 1609 } >&5 1610 rm -f core *.core core.conftest.* && 1611 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1612 exit $exit_status 1613' 0 1614for ac_signal in 1 2 13 15; do 1615 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1616done 1617ac_signal=0 1618 1619# confdefs.h avoids OS command line length limits that DEFS can exceed. 1620rm -f -r conftest* confdefs.h 1621 1622# Predefined preprocessor variables. 1623 1624cat >>confdefs.h <<_ACEOF 1625#define PACKAGE_NAME "$PACKAGE_NAME" 1626_ACEOF 1627 1628 1629cat >>confdefs.h <<_ACEOF 1630#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1631_ACEOF 1632 1633 1634cat >>confdefs.h <<_ACEOF 1635#define PACKAGE_VERSION "$PACKAGE_VERSION" 1636_ACEOF 1637 1638 1639cat >>confdefs.h <<_ACEOF 1640#define PACKAGE_STRING "$PACKAGE_STRING" 1641_ACEOF 1642 1643 1644cat >>confdefs.h <<_ACEOF 1645#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1646_ACEOF 1647 1648 1649# Let the site file select an alternate cache file if it wants to. 1650# Prefer explicitly selected file to automatically selected ones. 1651if test -n "$CONFIG_SITE"; then 1652 set x "$CONFIG_SITE" 1653elif test "x$prefix" != xNONE; then 1654 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1655else 1656 set x "$ac_default_prefix/share/config.site" \ 1657 "$ac_default_prefix/etc/config.site" 1658fi 1659shift 1660for ac_site_file 1661do 1662 if test -r "$ac_site_file"; then 1663 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1664echo "$as_me: loading site script $ac_site_file" >&6;} 1665 sed 's/^/| /' "$ac_site_file" >&5 1666 . "$ac_site_file" 1667 fi 1668done 1669 1670if test -r "$cache_file"; then 1671 # Some versions of bash will fail to source /dev/null (special 1672 # files actually), so we avoid doing that. 1673 if test -f "$cache_file"; then 1674 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1675echo "$as_me: loading cache $cache_file" >&6;} 1676 case $cache_file in 1677 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1678 *) . "./$cache_file";; 1679 esac 1680 fi 1681else 1682 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1683echo "$as_me: creating cache $cache_file" >&6;} 1684 >$cache_file 1685fi 1686 1687# Check that the precious variables saved in the cache have kept the same 1688# value. 1689ac_cache_corrupted=false 1690for ac_var in $ac_precious_vars; do 1691 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1692 eval ac_new_set=\$ac_env_${ac_var}_set 1693 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1694 eval ac_new_val=\$ac_env_${ac_var}_value 1695 case $ac_old_set,$ac_new_set in 1696 set,) 1697 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1698echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1699 ac_cache_corrupted=: ;; 1700 ,set) 1701 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1702echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1703 ac_cache_corrupted=: ;; 1704 ,);; 1705 *) 1706 if test "x$ac_old_val" != "x$ac_new_val"; then 1707 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1708echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1709 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1710echo "$as_me: former value: $ac_old_val" >&2;} 1711 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1712echo "$as_me: current value: $ac_new_val" >&2;} 1713 ac_cache_corrupted=: 1714 fi;; 1715 esac 1716 # Pass precious variables to config.status. 1717 if test "$ac_new_set" = set; then 1718 case $ac_new_val in 1719 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1720 *) ac_arg=$ac_var=$ac_new_val ;; 1721 esac 1722 case " $ac_configure_args " in 1723 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1724 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1725 esac 1726 fi 1727done 1728if $ac_cache_corrupted; then 1729 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1730echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1731 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1732echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1733 { (exit 1); exit 1; }; } 1734fi 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760ac_ext=c 1761ac_cpp='$CPP $CPPFLAGS' 1762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1764ac_compiler_gnu=$ac_cv_c_compiler_gnu 1765 1766 1767 1768 1769 # TEA extensions pass this us the version of TEA they think they 1770 # are compatible with. 1771 TEA_VERSION="3.9" 1772 1773 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1774echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1775 if test x"${PACKAGE_NAME}" = x ; then 1776 { { echo "$as_me:$LINENO: error: 1777The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1778echo "$as_me: error: 1779The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1780 { (exit 1); exit 1; }; } 1781 fi 1782 if test x"3.9" = x ; then 1783 { { echo "$as_me:$LINENO: error: 1784TEA version not specified." >&5 1785echo "$as_me: error: 1786TEA version not specified." >&2;} 1787 { (exit 1); exit 1; }; } 1788 elif test "3.9" != "${TEA_VERSION}" ; then 1789 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1790echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1791 else 1792 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1793echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1794 fi 1795 case "`uname -s`" in 1796 *win32*|*WIN32*|*MINGW32_*) 1797 # Extract the first word of "cygpath", so it can be a program name with args. 1798set dummy cygpath; ac_word=$2 1799{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1801if test "${ac_cv_prog_CYGPATH+set}" = set; then 1802 echo $ECHO_N "(cached) $ECHO_C" >&6 1803else 1804 if test -n "$CYGPATH"; then 1805 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1806else 1807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1808for as_dir in $PATH 1809do 1810 IFS=$as_save_IFS 1811 test -z "$as_dir" && as_dir=. 1812 for ac_exec_ext in '' $ac_executable_extensions; do 1813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1814 ac_cv_prog_CYGPATH="cygpath -w" 1815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1816 break 2 1817 fi 1818done 1819done 1820IFS=$as_save_IFS 1821 1822 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1823fi 1824fi 1825CYGPATH=$ac_cv_prog_CYGPATH 1826if test -n "$CYGPATH"; then 1827 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1828echo "${ECHO_T}$CYGPATH" >&6; } 1829else 1830 { echo "$as_me:$LINENO: result: no" >&5 1831echo "${ECHO_T}no" >&6; } 1832fi 1833 1834 1835 EXEEXT=".exe" 1836 TEA_PLATFORM="windows" 1837 ;; 1838 *CYGWIN_*) 1839 CYGPATH=echo 1840 EXEEXT=".exe" 1841 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1842 ;; 1843 *) 1844 CYGPATH=echo 1845 EXEEXT="" 1846 TEA_PLATFORM="unix" 1847 ;; 1848 esac 1849 1850 # Check if exec_prefix is set. If not use fall back to prefix. 1851 # Note when adjusted, so that TEA_PREFIX can correct for this. 1852 # This is needed for recursive configures, since autoconf propagates 1853 # $prefix, but not $exec_prefix (doh!). 1854 if test x$exec_prefix = xNONE ; then 1855 exec_prefix_default=yes 1856 exec_prefix=$prefix 1857 fi 1858 1859 1860 1861 1862 # This package name must be replaced statically for AC_SUBST to work 1863 1864 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1865 1866 1867 # We AC_SUBST these here to ensure they are subst'ed, 1868 # in case the user doesn't call TEA_ADD_... 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878ac_aux_dir= 1879for ac_dir in tclconfig "$srcdir"/tclconfig; do 1880 if test -f "$ac_dir/install-sh"; then 1881 ac_aux_dir=$ac_dir 1882 ac_install_sh="$ac_aux_dir/install-sh -c" 1883 break 1884 elif test -f "$ac_dir/install.sh"; then 1885 ac_aux_dir=$ac_dir 1886 ac_install_sh="$ac_aux_dir/install.sh -c" 1887 break 1888 elif test -f "$ac_dir/shtool"; then 1889 ac_aux_dir=$ac_dir 1890 ac_install_sh="$ac_aux_dir/shtool install -c" 1891 break 1892 fi 1893done 1894if test -z "$ac_aux_dir"; then 1895 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5 1896echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;} 1897 { (exit 1); exit 1; }; } 1898fi 1899 1900# These three variables are undocumented and unsupported, 1901# and are intended to be withdrawn in a future Autoconf release. 1902# They can cause serious problems if a builder's source tree is in a directory 1903# whose full name contains unusual characters. 1904ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1905ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1906ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1907 1908 1909 1910#-------------------------------------------------------------------- 1911# Load the tclConfig.sh file 1912#-------------------------------------------------------------------- 1913 1914 1915 1916 # 1917 # Ok, lets find the tcl configuration 1918 # First, look for one uninstalled. 1919 # the alternative search directory is invoked by --with-tcl 1920 # 1921 1922 if test x"${no_tcl}" = x ; then 1923 # we reset no_tcl in case something fails here 1924 no_tcl=true 1925 1926# Check whether --with-tcl was given. 1927if test "${with_tcl+set}" = set; then 1928 withval=$with_tcl; with_tclconfig="${withval}" 1929fi 1930 1931 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1932echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1933 if test "${ac_cv_c_tclconfig+set}" = set; then 1934 echo $ECHO_N "(cached) $ECHO_C" >&6 1935else 1936 1937 1938 # First check to see if --with-tcl was specified. 1939 if test x"${with_tclconfig}" != x ; then 1940 case "${with_tclconfig}" in 1941 */tclConfig.sh ) 1942 if test -f "${with_tclconfig}"; then 1943 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1944echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1945 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1946 fi ;; 1947 esac 1948 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1949 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1950 else 1951 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1952echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1953 { (exit 1); exit 1; }; } 1954 fi 1955 fi 1956 1957 # then check for a private Tcl installation 1958 if test x"${ac_cv_c_tclconfig}" = x ; then 1959 for i in \ 1960 ../tcl \ 1961 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1962 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1963 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1964 ../../tcl \ 1965 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1966 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1967 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1968 ../../../tcl \ 1969 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1970 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1971 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1972 if test "${TEA_PLATFORM}" = "windows" \ 1973 -a -f "$i/win/tclConfig.sh" ; then 1974 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 1975 break 1976 fi 1977 if test -f "$i/unix/tclConfig.sh" ; then 1978 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1979 break 1980 fi 1981 done 1982 fi 1983 1984 # on Darwin, check in Framework installation locations 1985 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1986 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1987 `ls -d /Library/Frameworks 2>/dev/null` \ 1988 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1989 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1990 ; do 1991 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1992 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 1993 break 1994 fi 1995 done 1996 fi 1997 1998 # TEA specific: on Windows, check in common installation locations 1999 if test "${TEA_PLATFORM}" = "windows" \ 2000 -a x"${ac_cv_c_tclconfig}" = x ; then 2001 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2002 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2003 ; do 2004 if test -f "$i/tclConfig.sh" ; then 2005 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2006 break 2007 fi 2008 done 2009 fi 2010 2011 # check in a few common install locations 2012 if test x"${ac_cv_c_tclconfig}" = x ; then 2013 for i in `ls -d ${libdir} 2>/dev/null` \ 2014 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2015 `ls -d ${prefix}/lib 2>/dev/null` \ 2016 `ls -d /usr/local/lib 2>/dev/null` \ 2017 `ls -d /usr/contrib/lib 2>/dev/null` \ 2018 `ls -d /usr/lib 2>/dev/null` \ 2019 `ls -d /usr/lib64 2>/dev/null` \ 2020 ; do 2021 if test -f "$i/tclConfig.sh" ; then 2022 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2023 break 2024 fi 2025 done 2026 fi 2027 2028 # check in a few other private locations 2029 if test x"${ac_cv_c_tclconfig}" = x ; then 2030 for i in \ 2031 ${srcdir}/../tcl \ 2032 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2033 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2034 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2035 if test "${TEA_PLATFORM}" = "windows" \ 2036 -a -f "$i/win/tclConfig.sh" ; then 2037 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2038 break 2039 fi 2040 if test -f "$i/unix/tclConfig.sh" ; then 2041 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2042 break 2043 fi 2044 done 2045 fi 2046 2047fi 2048 2049 2050 if test x"${ac_cv_c_tclconfig}" = x ; then 2051 TCL_BIN_DIR="# no Tcl configs found" 2052 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2053echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2054 { (exit 1); exit 1; }; } 2055 else 2056 no_tcl= 2057 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2058 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2059echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2060 fi 2061 fi 2062 2063 2064 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2065echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2066 2067 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2068 { echo "$as_me:$LINENO: result: loading" >&5 2069echo "${ECHO_T}loading" >&6; } 2070 . "${TCL_BIN_DIR}/tclConfig.sh" 2071 else 2072 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2073echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2074 fi 2075 2076 # eval is required to do the TCL_DBGX substitution 2077 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2078 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2079 2080 # If the TCL_BIN_DIR is the build directory (not the install directory), 2081 # then set the common variable name to the value of the build variables. 2082 # For example, the variable TCL_LIB_SPEC will be set to the value 2083 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2084 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2085 # installed and uninstalled version of Tcl. 2086 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2087 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2088 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2089 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2090 elif test "`uname -s`" = "Darwin"; then 2091 # If Tcl was built as a framework, attempt to use the libraries 2092 # from the framework at the given location so that linking works 2093 # against Tcl.framework installed in an arbitrary location. 2094 case ${TCL_DEFS} in 2095 *TCL_FRAMEWORK*) 2096 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2097 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2098 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2099 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2100 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2101 break 2102 fi 2103 done 2104 fi 2105 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2106 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2107 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2108 fi 2109 ;; 2110 esac 2111 fi 2112 2113 # eval is required to do the TCL_DBGX substitution 2114 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2115 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2116 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2117 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 case "`uname -s`" in 2133 *CYGWIN_*) 2134 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2135echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2136 case ${TCL_EXTRA_CFLAGS} in 2137 *-mwin32*|*-mno-cygwin*) 2138 TEA_PLATFORM="windows" 2139 CFLAGS="$CFLAGS -mwin32" 2140 { echo "$as_me:$LINENO: result: win32" >&5 2141echo "${ECHO_T}win32" >&6; } 2142 ;; 2143 *) 2144 TEA_PLATFORM="unix" 2145 { echo "$as_me:$LINENO: result: unix" >&5 2146echo "${ECHO_T}unix" >&6; } 2147 ;; 2148 esac 2149 EXEEXT=".exe" 2150 ;; 2151 *) 2152 ;; 2153 esac 2154 2155 # Do this here as we have fully defined TEA_PLATFORM now 2156 if test "${TEA_PLATFORM}" = "windows" ; then 2157 # The BUILD_$pkg is to define the correct extern storage class 2158 # handling when making this package 2159 2160cat >>confdefs.h <<_ACEOF 2161#define BUILD_${PACKAGE_NAME} 2162_ACEOF 2163 2164 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2165 fi 2166 2167 # TEA specific: 2168 2169 2170 2171 2172 2173 2174 2175 2176#----------------------------------------------------------------------- 2177# Handle the --prefix=... option by defaulting to what Tcl gave. 2178# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2179#----------------------------------------------------------------------- 2180 2181 2182 if test "${prefix}" = "NONE"; then 2183 prefix_default=yes 2184 if test x"${TCL_PREFIX}" != x; then 2185 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2186echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2187 prefix=${TCL_PREFIX} 2188 else 2189 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2190echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2191 prefix=/usr/local 2192 fi 2193 fi 2194 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2195 -o x"${exec_prefix_default}" = x"yes" ; then 2196 if test x"${TCL_EXEC_PREFIX}" != x; then 2197 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2198echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2199 exec_prefix=${TCL_EXEC_PREFIX} 2200 else 2201 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2202echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2203 exec_prefix=$prefix 2204 fi 2205 fi 2206 2207 2208#----------------------------------------------------------------------- 2209# Standard compiler checks. 2210# This sets up CC by using the CC env var, or looks for gcc otherwise. 2211# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2212# the basic setup necessary to compile executables. 2213#----------------------------------------------------------------------- 2214 2215 2216 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2217 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2218 2219 # If the user did not set CFLAGS, set it now to keep 2220 # the AC_PROG_CC macro from adding "-g -O2". 2221 if test "${CFLAGS+set}" != "set" ; then 2222 CFLAGS="" 2223 fi 2224 2225 ac_ext=c 2226ac_cpp='$CPP $CPPFLAGS' 2227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2229ac_compiler_gnu=$ac_cv_c_compiler_gnu 2230if test -n "$ac_tool_prefix"; then 2231 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2232set dummy ${ac_tool_prefix}gcc; ac_word=$2 2233{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2235if test "${ac_cv_prog_CC+set}" = set; then 2236 echo $ECHO_N "(cached) $ECHO_C" >&6 2237else 2238 if test -n "$CC"; then 2239 ac_cv_prog_CC="$CC" # Let the user override the test. 2240else 2241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2242for as_dir in $PATH 2243do 2244 IFS=$as_save_IFS 2245 test -z "$as_dir" && as_dir=. 2246 for ac_exec_ext in '' $ac_executable_extensions; do 2247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2248 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2250 break 2 2251 fi 2252done 2253done 2254IFS=$as_save_IFS 2255 2256fi 2257fi 2258CC=$ac_cv_prog_CC 2259if test -n "$CC"; then 2260 { echo "$as_me:$LINENO: result: $CC" >&5 2261echo "${ECHO_T}$CC" >&6; } 2262else 2263 { echo "$as_me:$LINENO: result: no" >&5 2264echo "${ECHO_T}no" >&6; } 2265fi 2266 2267 2268fi 2269if test -z "$ac_cv_prog_CC"; then 2270 ac_ct_CC=$CC 2271 # Extract the first word of "gcc", so it can be a program name with args. 2272set dummy gcc; ac_word=$2 2273{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2275if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2276 echo $ECHO_N "(cached) $ECHO_C" >&6 2277else 2278 if test -n "$ac_ct_CC"; then 2279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2280else 2281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2282for as_dir in $PATH 2283do 2284 IFS=$as_save_IFS 2285 test -z "$as_dir" && as_dir=. 2286 for ac_exec_ext in '' $ac_executable_extensions; do 2287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2288 ac_cv_prog_ac_ct_CC="gcc" 2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2290 break 2 2291 fi 2292done 2293done 2294IFS=$as_save_IFS 2295 2296fi 2297fi 2298ac_ct_CC=$ac_cv_prog_ac_ct_CC 2299if test -n "$ac_ct_CC"; then 2300 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2301echo "${ECHO_T}$ac_ct_CC" >&6; } 2302else 2303 { echo "$as_me:$LINENO: result: no" >&5 2304echo "${ECHO_T}no" >&6; } 2305fi 2306 2307 if test "x$ac_ct_CC" = x; then 2308 CC="" 2309 else 2310 case $cross_compiling:$ac_tool_warned in 2311yes:) 2312{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2313whose name does not start with the host triplet. If you think this 2314configuration is useful to you, please write to autoconf@gnu.org." >&5 2315echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2316whose name does not start with the host triplet. If you think this 2317configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2318ac_tool_warned=yes ;; 2319esac 2320 CC=$ac_ct_CC 2321 fi 2322else 2323 CC="$ac_cv_prog_CC" 2324fi 2325 2326if test -z "$CC"; then 2327 if test -n "$ac_tool_prefix"; then 2328 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2329set dummy ${ac_tool_prefix}cc; ac_word=$2 2330{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2332if test "${ac_cv_prog_CC+set}" = set; then 2333 echo $ECHO_N "(cached) $ECHO_C" >&6 2334else 2335 if test -n "$CC"; then 2336 ac_cv_prog_CC="$CC" # Let the user override the test. 2337else 2338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2339for as_dir in $PATH 2340do 2341 IFS=$as_save_IFS 2342 test -z "$as_dir" && as_dir=. 2343 for ac_exec_ext in '' $ac_executable_extensions; do 2344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2345 ac_cv_prog_CC="${ac_tool_prefix}cc" 2346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2347 break 2 2348 fi 2349done 2350done 2351IFS=$as_save_IFS 2352 2353fi 2354fi 2355CC=$ac_cv_prog_CC 2356if test -n "$CC"; then 2357 { echo "$as_me:$LINENO: result: $CC" >&5 2358echo "${ECHO_T}$CC" >&6; } 2359else 2360 { echo "$as_me:$LINENO: result: no" >&5 2361echo "${ECHO_T}no" >&6; } 2362fi 2363 2364 2365 fi 2366fi 2367if test -z "$CC"; then 2368 # Extract the first word of "cc", so it can be a program name with args. 2369set dummy cc; ac_word=$2 2370{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2372if test "${ac_cv_prog_CC+set}" = set; then 2373 echo $ECHO_N "(cached) $ECHO_C" >&6 2374else 2375 if test -n "$CC"; then 2376 ac_cv_prog_CC="$CC" # Let the user override the test. 2377else 2378 ac_prog_rejected=no 2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2380for as_dir in $PATH 2381do 2382 IFS=$as_save_IFS 2383 test -z "$as_dir" && as_dir=. 2384 for ac_exec_ext in '' $ac_executable_extensions; do 2385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2386 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2387 ac_prog_rejected=yes 2388 continue 2389 fi 2390 ac_cv_prog_CC="cc" 2391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2392 break 2 2393 fi 2394done 2395done 2396IFS=$as_save_IFS 2397 2398if test $ac_prog_rejected = yes; then 2399 # We found a bogon in the path, so make sure we never use it. 2400 set dummy $ac_cv_prog_CC 2401 shift 2402 if test $# != 0; then 2403 # We chose a different compiler from the bogus one. 2404 # However, it has the same basename, so the bogon will be chosen 2405 # first if we set CC to just the basename; use the full file name. 2406 shift 2407 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2408 fi 2409fi 2410fi 2411fi 2412CC=$ac_cv_prog_CC 2413if test -n "$CC"; then 2414 { echo "$as_me:$LINENO: result: $CC" >&5 2415echo "${ECHO_T}$CC" >&6; } 2416else 2417 { echo "$as_me:$LINENO: result: no" >&5 2418echo "${ECHO_T}no" >&6; } 2419fi 2420 2421 2422fi 2423if test -z "$CC"; then 2424 if test -n "$ac_tool_prefix"; then 2425 for ac_prog in cl.exe 2426 do 2427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2428set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2429{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2431if test "${ac_cv_prog_CC+set}" = set; then 2432 echo $ECHO_N "(cached) $ECHO_C" >&6 2433else 2434 if test -n "$CC"; then 2435 ac_cv_prog_CC="$CC" # Let the user override the test. 2436else 2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2438for as_dir in $PATH 2439do 2440 IFS=$as_save_IFS 2441 test -z "$as_dir" && as_dir=. 2442 for ac_exec_ext in '' $ac_executable_extensions; do 2443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2444 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2446 break 2 2447 fi 2448done 2449done 2450IFS=$as_save_IFS 2451 2452fi 2453fi 2454CC=$ac_cv_prog_CC 2455if test -n "$CC"; then 2456 { echo "$as_me:$LINENO: result: $CC" >&5 2457echo "${ECHO_T}$CC" >&6; } 2458else 2459 { echo "$as_me:$LINENO: result: no" >&5 2460echo "${ECHO_T}no" >&6; } 2461fi 2462 2463 2464 test -n "$CC" && break 2465 done 2466fi 2467if test -z "$CC"; then 2468 ac_ct_CC=$CC 2469 for ac_prog in cl.exe 2470do 2471 # Extract the first word of "$ac_prog", so it can be a program name with args. 2472set dummy $ac_prog; ac_word=$2 2473{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2475if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2476 echo $ECHO_N "(cached) $ECHO_C" >&6 2477else 2478 if test -n "$ac_ct_CC"; then 2479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2480else 2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2482for as_dir in $PATH 2483do 2484 IFS=$as_save_IFS 2485 test -z "$as_dir" && as_dir=. 2486 for ac_exec_ext in '' $ac_executable_extensions; do 2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2488 ac_cv_prog_ac_ct_CC="$ac_prog" 2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2490 break 2 2491 fi 2492done 2493done 2494IFS=$as_save_IFS 2495 2496fi 2497fi 2498ac_ct_CC=$ac_cv_prog_ac_ct_CC 2499if test -n "$ac_ct_CC"; then 2500 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2501echo "${ECHO_T}$ac_ct_CC" >&6; } 2502else 2503 { echo "$as_me:$LINENO: result: no" >&5 2504echo "${ECHO_T}no" >&6; } 2505fi 2506 2507 2508 test -n "$ac_ct_CC" && break 2509done 2510 2511 if test "x$ac_ct_CC" = x; then 2512 CC="" 2513 else 2514 case $cross_compiling:$ac_tool_warned in 2515yes:) 2516{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2517whose name does not start with the host triplet. If you think this 2518configuration is useful to you, please write to autoconf@gnu.org." >&5 2519echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2520whose name does not start with the host triplet. If you think this 2521configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2522ac_tool_warned=yes ;; 2523esac 2524 CC=$ac_ct_CC 2525 fi 2526fi 2527 2528fi 2529 2530 2531test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2532See \`config.log' for more details." >&5 2533echo "$as_me: error: no acceptable C compiler found in \$PATH 2534See \`config.log' for more details." >&2;} 2535 { (exit 1); exit 1; }; } 2536 2537# Provide some information about the compiler. 2538echo "$as_me:$LINENO: checking for C compiler version" >&5 2539ac_compiler=`set X $ac_compile; echo $2` 2540{ (ac_try="$ac_compiler --version >&5" 2541case "(($ac_try" in 2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2543 *) ac_try_echo=$ac_try;; 2544esac 2545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2546 (eval "$ac_compiler --version >&5") 2>&5 2547 ac_status=$? 2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2549 (exit $ac_status); } 2550{ (ac_try="$ac_compiler -v >&5" 2551case "(($ac_try" in 2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2553 *) ac_try_echo=$ac_try;; 2554esac 2555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2556 (eval "$ac_compiler -v >&5") 2>&5 2557 ac_status=$? 2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2559 (exit $ac_status); } 2560{ (ac_try="$ac_compiler -V >&5" 2561case "(($ac_try" in 2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2563 *) ac_try_echo=$ac_try;; 2564esac 2565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2566 (eval "$ac_compiler -V >&5") 2>&5 2567 ac_status=$? 2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2569 (exit $ac_status); } 2570 2571cat >conftest.$ac_ext <<_ACEOF 2572/* confdefs.h. */ 2573_ACEOF 2574cat confdefs.h >>conftest.$ac_ext 2575cat >>conftest.$ac_ext <<_ACEOF 2576/* end confdefs.h. */ 2577 2578int 2579main () 2580{ 2581 2582 ; 2583 return 0; 2584} 2585_ACEOF 2586ac_clean_files_save=$ac_clean_files 2587ac_clean_files="$ac_clean_files a.out a.exe b.out" 2588# Try to create an executable without -o first, disregard a.out. 2589# It will help us diagnose broken compilers, and finding out an intuition 2590# of exeext. 2591{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2592echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2593ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2594# 2595# List of possible output files, starting from the most likely. 2596# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2597# only as a last resort. b.out is created by i960 compilers. 2598ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2599# 2600# The IRIX 6 linker writes into existing files which may not be 2601# executable, retaining their permissions. Remove them first so a 2602# subsequent execution test works. 2603ac_rmfiles= 2604for ac_file in $ac_files 2605do 2606 case $ac_file in 2607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2608 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2609 esac 2610done 2611rm -f $ac_rmfiles 2612 2613if { (ac_try="$ac_link_default" 2614case "(($ac_try" in 2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2616 *) ac_try_echo=$ac_try;; 2617esac 2618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2619 (eval "$ac_link_default") 2>&5 2620 ac_status=$? 2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2622 (exit $ac_status); }; then 2623 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2624# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2625# in a Makefile. We should not override ac_cv_exeext if it was cached, 2626# so that the user can short-circuit this test for compilers unknown to 2627# Autoconf. 2628for ac_file in $ac_files '' 2629do 2630 test -f "$ac_file" || continue 2631 case $ac_file in 2632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2633 ;; 2634 [ab].out ) 2635 # We found the default executable, but exeext='' is most 2636 # certainly right. 2637 break;; 2638 *.* ) 2639 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2640 then :; else 2641 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2642 fi 2643 # We set ac_cv_exeext here because the later test for it is not 2644 # safe: cross compilers may not add the suffix if given an `-o' 2645 # argument, so we may need to know it at that point already. 2646 # Even if this section looks crufty: it has the advantage of 2647 # actually working. 2648 break;; 2649 * ) 2650 break;; 2651 esac 2652done 2653test "$ac_cv_exeext" = no && ac_cv_exeext= 2654 2655else 2656 ac_file='' 2657fi 2658 2659{ echo "$as_me:$LINENO: result: $ac_file" >&5 2660echo "${ECHO_T}$ac_file" >&6; } 2661if test -z "$ac_file"; then 2662 echo "$as_me: failed program was:" >&5 2663sed 's/^/| /' conftest.$ac_ext >&5 2664 2665{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2666See \`config.log' for more details." >&5 2667echo "$as_me: error: C compiler cannot create executables 2668See \`config.log' for more details." >&2;} 2669 { (exit 77); exit 77; }; } 2670fi 2671 2672ac_exeext=$ac_cv_exeext 2673 2674# Check that the compiler produces executables we can run. If not, either 2675# the compiler is broken, or we cross compile. 2676{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2677echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2678# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2679# If not cross compiling, check that we can run a simple program. 2680if test "$cross_compiling" != yes; then 2681 if { ac_try='./$ac_file' 2682 { (case "(($ac_try" in 2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2684 *) ac_try_echo=$ac_try;; 2685esac 2686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2687 (eval "$ac_try") 2>&5 2688 ac_status=$? 2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2690 (exit $ac_status); }; }; then 2691 cross_compiling=no 2692 else 2693 if test "$cross_compiling" = maybe; then 2694 cross_compiling=yes 2695 else 2696 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2697If you meant to cross compile, use \`--host'. 2698See \`config.log' for more details." >&5 2699echo "$as_me: error: cannot run C compiled programs. 2700If you meant to cross compile, use \`--host'. 2701See \`config.log' for more details." >&2;} 2702 { (exit 1); exit 1; }; } 2703 fi 2704 fi 2705fi 2706{ echo "$as_me:$LINENO: result: yes" >&5 2707echo "${ECHO_T}yes" >&6; } 2708 2709rm -f a.out a.exe conftest$ac_cv_exeext b.out 2710ac_clean_files=$ac_clean_files_save 2711# Check that the compiler produces executables we can run. If not, either 2712# the compiler is broken, or we cross compile. 2713{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2714echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2715{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2716echo "${ECHO_T}$cross_compiling" >&6; } 2717 2718{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2719echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2720if { (ac_try="$ac_link" 2721case "(($ac_try" in 2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2723 *) ac_try_echo=$ac_try;; 2724esac 2725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2726 (eval "$ac_link") 2>&5 2727 ac_status=$? 2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2729 (exit $ac_status); }; then 2730 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2731# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2732# work properly (i.e., refer to `conftest.exe'), while it won't with 2733# `rm'. 2734for ac_file in conftest.exe conftest conftest.*; do 2735 test -f "$ac_file" || continue 2736 case $ac_file in 2737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2738 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2739 break;; 2740 * ) break;; 2741 esac 2742done 2743else 2744 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2745See \`config.log' for more details." >&5 2746echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2747See \`config.log' for more details." >&2;} 2748 { (exit 1); exit 1; }; } 2749fi 2750 2751rm -f conftest$ac_cv_exeext 2752{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2753echo "${ECHO_T}$ac_cv_exeext" >&6; } 2754 2755rm -f conftest.$ac_ext 2756EXEEXT=$ac_cv_exeext 2757ac_exeext=$EXEEXT 2758{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2759echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2760if test "${ac_cv_objext+set}" = set; then 2761 echo $ECHO_N "(cached) $ECHO_C" >&6 2762else 2763 cat >conftest.$ac_ext <<_ACEOF 2764/* confdefs.h. */ 2765_ACEOF 2766cat confdefs.h >>conftest.$ac_ext 2767cat >>conftest.$ac_ext <<_ACEOF 2768/* end confdefs.h. */ 2769 2770int 2771main () 2772{ 2773 2774 ; 2775 return 0; 2776} 2777_ACEOF 2778rm -f conftest.o conftest.obj 2779if { (ac_try="$ac_compile" 2780case "(($ac_try" in 2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2782 *) ac_try_echo=$ac_try;; 2783esac 2784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2785 (eval "$ac_compile") 2>&5 2786 ac_status=$? 2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2788 (exit $ac_status); }; then 2789 for ac_file in conftest.o conftest.obj conftest.*; do 2790 test -f "$ac_file" || continue; 2791 case $ac_file in 2792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2793 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2794 break;; 2795 esac 2796done 2797else 2798 echo "$as_me: failed program was:" >&5 2799sed 's/^/| /' conftest.$ac_ext >&5 2800 2801{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2802See \`config.log' for more details." >&5 2803echo "$as_me: error: cannot compute suffix of object files: cannot compile 2804See \`config.log' for more details." >&2;} 2805 { (exit 1); exit 1; }; } 2806fi 2807 2808rm -f conftest.$ac_cv_objext conftest.$ac_ext 2809fi 2810{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2811echo "${ECHO_T}$ac_cv_objext" >&6; } 2812OBJEXT=$ac_cv_objext 2813ac_objext=$OBJEXT 2814{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2815echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2816if test "${ac_cv_c_compiler_gnu+set}" = set; then 2817 echo $ECHO_N "(cached) $ECHO_C" >&6 2818else 2819 cat >conftest.$ac_ext <<_ACEOF 2820/* confdefs.h. */ 2821_ACEOF 2822cat confdefs.h >>conftest.$ac_ext 2823cat >>conftest.$ac_ext <<_ACEOF 2824/* end confdefs.h. */ 2825 2826int 2827main () 2828{ 2829#ifndef __GNUC__ 2830 choke me 2831#endif 2832 2833 ; 2834 return 0; 2835} 2836_ACEOF 2837rm -f conftest.$ac_objext 2838if { (ac_try="$ac_compile" 2839case "(($ac_try" in 2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2841 *) ac_try_echo=$ac_try;; 2842esac 2843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2844 (eval "$ac_compile") 2>conftest.er1 2845 ac_status=$? 2846 grep -v '^ *+' conftest.er1 >conftest.err 2847 rm -f conftest.er1 2848 cat conftest.err >&5 2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2850 (exit $ac_status); } && { 2851 test -z "$ac_c_werror_flag" || 2852 test ! -s conftest.err 2853 } && test -s conftest.$ac_objext; then 2854 ac_compiler_gnu=yes 2855else 2856 echo "$as_me: failed program was:" >&5 2857sed 's/^/| /' conftest.$ac_ext >&5 2858 2859 ac_compiler_gnu=no 2860fi 2861 2862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2863ac_cv_c_compiler_gnu=$ac_compiler_gnu 2864 2865fi 2866{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2867echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2868GCC=`test $ac_compiler_gnu = yes && echo yes` 2869ac_test_CFLAGS=${CFLAGS+set} 2870ac_save_CFLAGS=$CFLAGS 2871{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2872echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2873if test "${ac_cv_prog_cc_g+set}" = set; then 2874 echo $ECHO_N "(cached) $ECHO_C" >&6 2875else 2876 ac_save_c_werror_flag=$ac_c_werror_flag 2877 ac_c_werror_flag=yes 2878 ac_cv_prog_cc_g=no 2879 CFLAGS="-g" 2880 cat >conftest.$ac_ext <<_ACEOF 2881/* confdefs.h. */ 2882_ACEOF 2883cat confdefs.h >>conftest.$ac_ext 2884cat >>conftest.$ac_ext <<_ACEOF 2885/* end confdefs.h. */ 2886 2887int 2888main () 2889{ 2890 2891 ; 2892 return 0; 2893} 2894_ACEOF 2895rm -f conftest.$ac_objext 2896if { (ac_try="$ac_compile" 2897case "(($ac_try" in 2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2899 *) ac_try_echo=$ac_try;; 2900esac 2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2902 (eval "$ac_compile") 2>conftest.er1 2903 ac_status=$? 2904 grep -v '^ *+' conftest.er1 >conftest.err 2905 rm -f conftest.er1 2906 cat conftest.err >&5 2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2908 (exit $ac_status); } && { 2909 test -z "$ac_c_werror_flag" || 2910 test ! -s conftest.err 2911 } && test -s conftest.$ac_objext; then 2912 ac_cv_prog_cc_g=yes 2913else 2914 echo "$as_me: failed program was:" >&5 2915sed 's/^/| /' conftest.$ac_ext >&5 2916 2917 CFLAGS="" 2918 cat >conftest.$ac_ext <<_ACEOF 2919/* confdefs.h. */ 2920_ACEOF 2921cat confdefs.h >>conftest.$ac_ext 2922cat >>conftest.$ac_ext <<_ACEOF 2923/* end confdefs.h. */ 2924 2925int 2926main () 2927{ 2928 2929 ; 2930 return 0; 2931} 2932_ACEOF 2933rm -f conftest.$ac_objext 2934if { (ac_try="$ac_compile" 2935case "(($ac_try" in 2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2937 *) ac_try_echo=$ac_try;; 2938esac 2939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2940 (eval "$ac_compile") 2>conftest.er1 2941 ac_status=$? 2942 grep -v '^ *+' conftest.er1 >conftest.err 2943 rm -f conftest.er1 2944 cat conftest.err >&5 2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2946 (exit $ac_status); } && { 2947 test -z "$ac_c_werror_flag" || 2948 test ! -s conftest.err 2949 } && test -s conftest.$ac_objext; then 2950 : 2951else 2952 echo "$as_me: failed program was:" >&5 2953sed 's/^/| /' conftest.$ac_ext >&5 2954 2955 ac_c_werror_flag=$ac_save_c_werror_flag 2956 CFLAGS="-g" 2957 cat >conftest.$ac_ext <<_ACEOF 2958/* confdefs.h. */ 2959_ACEOF 2960cat confdefs.h >>conftest.$ac_ext 2961cat >>conftest.$ac_ext <<_ACEOF 2962/* end confdefs.h. */ 2963 2964int 2965main () 2966{ 2967 2968 ; 2969 return 0; 2970} 2971_ACEOF 2972rm -f conftest.$ac_objext 2973if { (ac_try="$ac_compile" 2974case "(($ac_try" in 2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2976 *) ac_try_echo=$ac_try;; 2977esac 2978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2979 (eval "$ac_compile") 2>conftest.er1 2980 ac_status=$? 2981 grep -v '^ *+' conftest.er1 >conftest.err 2982 rm -f conftest.er1 2983 cat conftest.err >&5 2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2985 (exit $ac_status); } && { 2986 test -z "$ac_c_werror_flag" || 2987 test ! -s conftest.err 2988 } && test -s conftest.$ac_objext; then 2989 ac_cv_prog_cc_g=yes 2990else 2991 echo "$as_me: failed program was:" >&5 2992sed 's/^/| /' conftest.$ac_ext >&5 2993 2994 2995fi 2996 2997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2998fi 2999 3000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3001fi 3002 3003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3004 ac_c_werror_flag=$ac_save_c_werror_flag 3005fi 3006{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3007echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3008if test "$ac_test_CFLAGS" = set; then 3009 CFLAGS=$ac_save_CFLAGS 3010elif test $ac_cv_prog_cc_g = yes; then 3011 if test "$GCC" = yes; then 3012 CFLAGS="-g -O2" 3013 else 3014 CFLAGS="-g" 3015 fi 3016else 3017 if test "$GCC" = yes; then 3018 CFLAGS="-O2" 3019 else 3020 CFLAGS= 3021 fi 3022fi 3023{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3024echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3025if test "${ac_cv_prog_cc_c89+set}" = set; then 3026 echo $ECHO_N "(cached) $ECHO_C" >&6 3027else 3028 ac_cv_prog_cc_c89=no 3029ac_save_CC=$CC 3030cat >conftest.$ac_ext <<_ACEOF 3031/* confdefs.h. */ 3032_ACEOF 3033cat confdefs.h >>conftest.$ac_ext 3034cat >>conftest.$ac_ext <<_ACEOF 3035/* end confdefs.h. */ 3036#include <stdarg.h> 3037#include <stdio.h> 3038#include <sys/types.h> 3039#include <sys/stat.h> 3040/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3041struct buf { int x; }; 3042FILE * (*rcsopen) (struct buf *, struct stat *, int); 3043static char *e (p, i) 3044 char **p; 3045 int i; 3046{ 3047 return p[i]; 3048} 3049static char *f (char * (*g) (char **, int), char **p, ...) 3050{ 3051 char *s; 3052 va_list v; 3053 va_start (v,p); 3054 s = g (p, va_arg (v,int)); 3055 va_end (v); 3056 return s; 3057} 3058 3059/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3060 function prototypes and stuff, but not '\xHH' hex character constants. 3061 These don't provoke an error unfortunately, instead are silently treated 3062 as 'x'. The following induces an error, until -std is added to get 3063 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3064 array size at least. It's necessary to write '\x00'==0 to get something 3065 that's true only with -std. */ 3066int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3067 3068/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3069 inside strings and character constants. */ 3070#define FOO(x) 'x' 3071int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3072 3073int test (int i, double x); 3074struct s1 {int (*f) (int a);}; 3075struct s2 {int (*f) (double a);}; 3076int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3077int argc; 3078char **argv; 3079int 3080main () 3081{ 3082return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3083 ; 3084 return 0; 3085} 3086_ACEOF 3087for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3088 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3089do 3090 CC="$ac_save_CC $ac_arg" 3091 rm -f conftest.$ac_objext 3092if { (ac_try="$ac_compile" 3093case "(($ac_try" in 3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3095 *) ac_try_echo=$ac_try;; 3096esac 3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3098 (eval "$ac_compile") 2>conftest.er1 3099 ac_status=$? 3100 grep -v '^ *+' conftest.er1 >conftest.err 3101 rm -f conftest.er1 3102 cat conftest.err >&5 3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3104 (exit $ac_status); } && { 3105 test -z "$ac_c_werror_flag" || 3106 test ! -s conftest.err 3107 } && test -s conftest.$ac_objext; then 3108 ac_cv_prog_cc_c89=$ac_arg 3109else 3110 echo "$as_me: failed program was:" >&5 3111sed 's/^/| /' conftest.$ac_ext >&5 3112 3113 3114fi 3115 3116rm -f core conftest.err conftest.$ac_objext 3117 test "x$ac_cv_prog_cc_c89" != "xno" && break 3118done 3119rm -f conftest.$ac_ext 3120CC=$ac_save_CC 3121 3122fi 3123# AC_CACHE_VAL 3124case "x$ac_cv_prog_cc_c89" in 3125 x) 3126 { echo "$as_me:$LINENO: result: none needed" >&5 3127echo "${ECHO_T}none needed" >&6; } ;; 3128 xno) 3129 { echo "$as_me:$LINENO: result: unsupported" >&5 3130echo "${ECHO_T}unsupported" >&6; } ;; 3131 *) 3132 CC="$CC $ac_cv_prog_cc_c89" 3133 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3134echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3135esac 3136 3137 3138ac_ext=c 3139ac_cpp='$CPP $CPPFLAGS' 3140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3142ac_compiler_gnu=$ac_cv_c_compiler_gnu 3143 3144 ac_ext=c 3145ac_cpp='$CPP $CPPFLAGS' 3146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3148ac_compiler_gnu=$ac_cv_c_compiler_gnu 3149{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3150echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3151# On Suns, sometimes $CPP names a directory. 3152if test -n "$CPP" && test -d "$CPP"; then 3153 CPP= 3154fi 3155if test -z "$CPP"; then 3156 if test "${ac_cv_prog_CPP+set}" = set; then 3157 echo $ECHO_N "(cached) $ECHO_C" >&6 3158else 3159 # Double quotes because CPP needs to be expanded 3160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3161 do 3162 ac_preproc_ok=false 3163for ac_c_preproc_warn_flag in '' yes 3164do 3165 # Use a header file that comes with gcc, so configuring glibc 3166 # with a fresh cross-compiler works. 3167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3168 # <limits.h> exists even on freestanding compilers. 3169 # On the NeXT, cc -E runs the code through the compiler's parser, 3170 # not just through cpp. "Syntax error" is here to catch this case. 3171 cat >conftest.$ac_ext <<_ACEOF 3172/* confdefs.h. */ 3173_ACEOF 3174cat confdefs.h >>conftest.$ac_ext 3175cat >>conftest.$ac_ext <<_ACEOF 3176/* end confdefs.h. */ 3177#ifdef __STDC__ 3178# include <limits.h> 3179#else 3180# include <assert.h> 3181#endif 3182 Syntax error 3183_ACEOF 3184if { (ac_try="$ac_cpp conftest.$ac_ext" 3185case "(($ac_try" in 3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3187 *) ac_try_echo=$ac_try;; 3188esac 3189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3191 ac_status=$? 3192 grep -v '^ *+' conftest.er1 >conftest.err 3193 rm -f conftest.er1 3194 cat conftest.err >&5 3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3196 (exit $ac_status); } >/dev/null && { 3197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3198 test ! -s conftest.err 3199 }; then 3200 : 3201else 3202 echo "$as_me: failed program was:" >&5 3203sed 's/^/| /' conftest.$ac_ext >&5 3204 3205 # Broken: fails on valid input. 3206continue 3207fi 3208 3209rm -f conftest.err conftest.$ac_ext 3210 3211 # OK, works on sane cases. Now check whether nonexistent headers 3212 # can be detected and how. 3213 cat >conftest.$ac_ext <<_ACEOF 3214/* confdefs.h. */ 3215_ACEOF 3216cat confdefs.h >>conftest.$ac_ext 3217cat >>conftest.$ac_ext <<_ACEOF 3218/* end confdefs.h. */ 3219#include <ac_nonexistent.h> 3220_ACEOF 3221if { (ac_try="$ac_cpp conftest.$ac_ext" 3222case "(($ac_try" in 3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3224 *) ac_try_echo=$ac_try;; 3225esac 3226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3228 ac_status=$? 3229 grep -v '^ *+' conftest.er1 >conftest.err 3230 rm -f conftest.er1 3231 cat conftest.err >&5 3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3233 (exit $ac_status); } >/dev/null && { 3234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3235 test ! -s conftest.err 3236 }; then 3237 # Broken: success on invalid input. 3238continue 3239else 3240 echo "$as_me: failed program was:" >&5 3241sed 's/^/| /' conftest.$ac_ext >&5 3242 3243 # Passes both tests. 3244ac_preproc_ok=: 3245break 3246fi 3247 3248rm -f conftest.err conftest.$ac_ext 3249 3250done 3251# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3252rm -f conftest.err conftest.$ac_ext 3253if $ac_preproc_ok; then 3254 break 3255fi 3256 3257 done 3258 ac_cv_prog_CPP=$CPP 3259 3260fi 3261 CPP=$ac_cv_prog_CPP 3262else 3263 ac_cv_prog_CPP=$CPP 3264fi 3265{ echo "$as_me:$LINENO: result: $CPP" >&5 3266echo "${ECHO_T}$CPP" >&6; } 3267ac_preproc_ok=false 3268for ac_c_preproc_warn_flag in '' yes 3269do 3270 # Use a header file that comes with gcc, so configuring glibc 3271 # with a fresh cross-compiler works. 3272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3273 # <limits.h> exists even on freestanding compilers. 3274 # On the NeXT, cc -E runs the code through the compiler's parser, 3275 # not just through cpp. "Syntax error" is here to catch this case. 3276 cat >conftest.$ac_ext <<_ACEOF 3277/* confdefs.h. */ 3278_ACEOF 3279cat confdefs.h >>conftest.$ac_ext 3280cat >>conftest.$ac_ext <<_ACEOF 3281/* end confdefs.h. */ 3282#ifdef __STDC__ 3283# include <limits.h> 3284#else 3285# include <assert.h> 3286#endif 3287 Syntax error 3288_ACEOF 3289if { (ac_try="$ac_cpp conftest.$ac_ext" 3290case "(($ac_try" in 3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3292 *) ac_try_echo=$ac_try;; 3293esac 3294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3296 ac_status=$? 3297 grep -v '^ *+' conftest.er1 >conftest.err 3298 rm -f conftest.er1 3299 cat conftest.err >&5 3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3301 (exit $ac_status); } >/dev/null && { 3302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3303 test ! -s conftest.err 3304 }; then 3305 : 3306else 3307 echo "$as_me: failed program was:" >&5 3308sed 's/^/| /' conftest.$ac_ext >&5 3309 3310 # Broken: fails on valid input. 3311continue 3312fi 3313 3314rm -f conftest.err conftest.$ac_ext 3315 3316 # OK, works on sane cases. Now check whether nonexistent headers 3317 # can be detected and how. 3318 cat >conftest.$ac_ext <<_ACEOF 3319/* confdefs.h. */ 3320_ACEOF 3321cat confdefs.h >>conftest.$ac_ext 3322cat >>conftest.$ac_ext <<_ACEOF 3323/* end confdefs.h. */ 3324#include <ac_nonexistent.h> 3325_ACEOF 3326if { (ac_try="$ac_cpp conftest.$ac_ext" 3327case "(($ac_try" in 3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3329 *) ac_try_echo=$ac_try;; 3330esac 3331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3333 ac_status=$? 3334 grep -v '^ *+' conftest.er1 >conftest.err 3335 rm -f conftest.er1 3336 cat conftest.err >&5 3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3338 (exit $ac_status); } >/dev/null && { 3339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3340 test ! -s conftest.err 3341 }; then 3342 # Broken: success on invalid input. 3343continue 3344else 3345 echo "$as_me: failed program was:" >&5 3346sed 's/^/| /' conftest.$ac_ext >&5 3347 3348 # Passes both tests. 3349ac_preproc_ok=: 3350break 3351fi 3352 3353rm -f conftest.err conftest.$ac_ext 3354 3355done 3356# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3357rm -f conftest.err conftest.$ac_ext 3358if $ac_preproc_ok; then 3359 : 3360else 3361 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3362See \`config.log' for more details." >&5 3363echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3364See \`config.log' for more details." >&2;} 3365 { (exit 1); exit 1; }; } 3366fi 3367 3368ac_ext=c 3369ac_cpp='$CPP $CPPFLAGS' 3370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3372ac_compiler_gnu=$ac_cv_c_compiler_gnu 3373 3374 3375 # Find a good install program. We prefer a C program (faster), 3376# so one script is as good as another. But avoid the broken or 3377# incompatible versions: 3378# SysV /etc/install, /usr/sbin/install 3379# SunOS /usr/etc/install 3380# IRIX /sbin/install 3381# AIX /bin/install 3382# AmigaOS /C/install, which installs bootblocks on floppy discs 3383# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3384# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3385# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3386# OS/2's system install, which has a completely different semantic 3387# ./install, which can be erroneously created by make from ./install.sh. 3388{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3389echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3390if test -z "$INSTALL"; then 3391if test "${ac_cv_path_install+set}" = set; then 3392 echo $ECHO_N "(cached) $ECHO_C" >&6 3393else 3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3395for as_dir in $PATH 3396do 3397 IFS=$as_save_IFS 3398 test -z "$as_dir" && as_dir=. 3399 # Account for people who put trailing slashes in PATH elements. 3400case $as_dir/ in 3401 ./ | .// | /cC/* | \ 3402 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3403 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3404 /usr/ucb/* ) ;; 3405 *) 3406 # OSF1 and SCO ODT 3.0 have their own names for install. 3407 # Don't use installbsd from OSF since it installs stuff as root 3408 # by default. 3409 for ac_prog in ginstall scoinst install; do 3410 for ac_exec_ext in '' $ac_executable_extensions; do 3411 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3412 if test $ac_prog = install && 3413 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3414 # AIX install. It has an incompatible calling convention. 3415 : 3416 elif test $ac_prog = install && 3417 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3418 # program-specific install script used by HP pwplus--don't use. 3419 : 3420 else 3421 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3422 break 3 3423 fi 3424 fi 3425 done 3426 done 3427 ;; 3428esac 3429done 3430IFS=$as_save_IFS 3431 3432 3433fi 3434 if test "${ac_cv_path_install+set}" = set; then 3435 INSTALL=$ac_cv_path_install 3436 else 3437 # As a last resort, use the slow shell script. Don't cache a 3438 # value for INSTALL within a source directory, because that will 3439 # break other packages using the cache if that directory is 3440 # removed, or if the value is a relative name. 3441 INSTALL=$ac_install_sh 3442 fi 3443fi 3444{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3445echo "${ECHO_T}$INSTALL" >&6; } 3446 3447# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3448# It thinks the first close brace ends the variable substitution. 3449test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3450 3451test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3452 3453test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3454 3455 3456 #-------------------------------------------------------------------- 3457 # Checks to see if the make program sets the $MAKE variable. 3458 #-------------------------------------------------------------------- 3459 3460 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3461echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3462set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3463if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3464 echo $ECHO_N "(cached) $ECHO_C" >&6 3465else 3466 cat >conftest.make <<\_ACEOF 3467SHELL = /bin/sh 3468all: 3469 @echo '@@@%%%=$(MAKE)=@@@%%%' 3470_ACEOF 3471# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3472case `${MAKE-make} -f conftest.make 2>/dev/null` in 3473 *@@@%%%=?*=@@@%%%*) 3474 eval ac_cv_prog_make_${ac_make}_set=yes;; 3475 *) 3476 eval ac_cv_prog_make_${ac_make}_set=no;; 3477esac 3478rm -f conftest.make 3479fi 3480if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3481 { echo "$as_me:$LINENO: result: yes" >&5 3482echo "${ECHO_T}yes" >&6; } 3483 SET_MAKE= 3484else 3485 { echo "$as_me:$LINENO: result: no" >&5 3486echo "${ECHO_T}no" >&6; } 3487 SET_MAKE="MAKE=${MAKE-make}" 3488fi 3489 3490 3491 #-------------------------------------------------------------------- 3492 # Find ranlib 3493 #-------------------------------------------------------------------- 3494 3495 if test -n "$ac_tool_prefix"; then 3496 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3497set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3498{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3500if test "${ac_cv_prog_RANLIB+set}" = set; then 3501 echo $ECHO_N "(cached) $ECHO_C" >&6 3502else 3503 if test -n "$RANLIB"; then 3504 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3505else 3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3507for as_dir in $PATH 3508do 3509 IFS=$as_save_IFS 3510 test -z "$as_dir" && as_dir=. 3511 for ac_exec_ext in '' $ac_executable_extensions; do 3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3513 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3515 break 2 3516 fi 3517done 3518done 3519IFS=$as_save_IFS 3520 3521fi 3522fi 3523RANLIB=$ac_cv_prog_RANLIB 3524if test -n "$RANLIB"; then 3525 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3526echo "${ECHO_T}$RANLIB" >&6; } 3527else 3528 { echo "$as_me:$LINENO: result: no" >&5 3529echo "${ECHO_T}no" >&6; } 3530fi 3531 3532 3533fi 3534if test -z "$ac_cv_prog_RANLIB"; then 3535 ac_ct_RANLIB=$RANLIB 3536 # Extract the first word of "ranlib", so it can be a program name with args. 3537set dummy ranlib; ac_word=$2 3538{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3540if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3541 echo $ECHO_N "(cached) $ECHO_C" >&6 3542else 3543 if test -n "$ac_ct_RANLIB"; then 3544 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3545else 3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3547for as_dir in $PATH 3548do 3549 IFS=$as_save_IFS 3550 test -z "$as_dir" && as_dir=. 3551 for ac_exec_ext in '' $ac_executable_extensions; do 3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3553 ac_cv_prog_ac_ct_RANLIB="ranlib" 3554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3555 break 2 3556 fi 3557done 3558done 3559IFS=$as_save_IFS 3560 3561fi 3562fi 3563ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3564if test -n "$ac_ct_RANLIB"; then 3565 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3566echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3567else 3568 { echo "$as_me:$LINENO: result: no" >&5 3569echo "${ECHO_T}no" >&6; } 3570fi 3571 3572 if test "x$ac_ct_RANLIB" = x; then 3573 RANLIB=":" 3574 else 3575 case $cross_compiling:$ac_tool_warned in 3576yes:) 3577{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3578whose name does not start with the host triplet. If you think this 3579configuration is useful to you, please write to autoconf@gnu.org." >&5 3580echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3581whose name does not start with the host triplet. If you think this 3582configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3583ac_tool_warned=yes ;; 3584esac 3585 RANLIB=$ac_ct_RANLIB 3586 fi 3587else 3588 RANLIB="$ac_cv_prog_RANLIB" 3589fi 3590 3591 3592 #-------------------------------------------------------------------- 3593 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3594 #-------------------------------------------------------------------- 3595 3596 3597 3598 3599 3600 3601{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3602echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3603if test "${ac_cv_path_GREP+set}" = set; then 3604 echo $ECHO_N "(cached) $ECHO_C" >&6 3605else 3606 # Extract the first word of "grep ggrep" to use in msg output 3607if test -z "$GREP"; then 3608set dummy grep ggrep; ac_prog_name=$2 3609if test "${ac_cv_path_GREP+set}" = set; then 3610 echo $ECHO_N "(cached) $ECHO_C" >&6 3611else 3612 ac_path_GREP_found=false 3613# Loop through the user's path and test for each of PROGNAME-LIST 3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3615for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3616do 3617 IFS=$as_save_IFS 3618 test -z "$as_dir" && as_dir=. 3619 for ac_prog in grep ggrep; do 3620 for ac_exec_ext in '' $ac_executable_extensions; do 3621 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3622 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3623 # Check for GNU ac_path_GREP and select it if it is found. 3624 # Check for GNU $ac_path_GREP 3625case `"$ac_path_GREP" --version 2>&1` in 3626*GNU*) 3627 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3628*) 3629 ac_count=0 3630 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3631 while : 3632 do 3633 cat "conftest.in" "conftest.in" >"conftest.tmp" 3634 mv "conftest.tmp" "conftest.in" 3635 cp "conftest.in" "conftest.nl" 3636 echo 'GREP' >> "conftest.nl" 3637 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3639 ac_count=`expr $ac_count + 1` 3640 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3641 # Best one so far, save it but keep looking for a better one 3642 ac_cv_path_GREP="$ac_path_GREP" 3643 ac_path_GREP_max=$ac_count 3644 fi 3645 # 10*(2^10) chars as input seems more than enough 3646 test $ac_count -gt 10 && break 3647 done 3648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3649esac 3650 3651 3652 $ac_path_GREP_found && break 3 3653 done 3654done 3655 3656done 3657IFS=$as_save_IFS 3658 3659 3660fi 3661 3662GREP="$ac_cv_path_GREP" 3663if test -z "$GREP"; then 3664 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3665echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3666 { (exit 1); exit 1; }; } 3667fi 3668 3669else 3670 ac_cv_path_GREP=$GREP 3671fi 3672 3673 3674fi 3675{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3676echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3677 GREP="$ac_cv_path_GREP" 3678 3679 3680{ echo "$as_me:$LINENO: checking for egrep" >&5 3681echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3682if test "${ac_cv_path_EGREP+set}" = set; then 3683 echo $ECHO_N "(cached) $ECHO_C" >&6 3684else 3685 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3686 then ac_cv_path_EGREP="$GREP -E" 3687 else 3688 # Extract the first word of "egrep" to use in msg output 3689if test -z "$EGREP"; then 3690set dummy egrep; ac_prog_name=$2 3691if test "${ac_cv_path_EGREP+set}" = set; then 3692 echo $ECHO_N "(cached) $ECHO_C" >&6 3693else 3694 ac_path_EGREP_found=false 3695# Loop through the user's path and test for each of PROGNAME-LIST 3696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3697for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3698do 3699 IFS=$as_save_IFS 3700 test -z "$as_dir" && as_dir=. 3701 for ac_prog in egrep; do 3702 for ac_exec_ext in '' $ac_executable_extensions; do 3703 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3704 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3705 # Check for GNU ac_path_EGREP and select it if it is found. 3706 # Check for GNU $ac_path_EGREP 3707case `"$ac_path_EGREP" --version 2>&1` in 3708*GNU*) 3709 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3710*) 3711 ac_count=0 3712 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3713 while : 3714 do 3715 cat "conftest.in" "conftest.in" >"conftest.tmp" 3716 mv "conftest.tmp" "conftest.in" 3717 cp "conftest.in" "conftest.nl" 3718 echo 'EGREP' >> "conftest.nl" 3719 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3721 ac_count=`expr $ac_count + 1` 3722 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3723 # Best one so far, save it but keep looking for a better one 3724 ac_cv_path_EGREP="$ac_path_EGREP" 3725 ac_path_EGREP_max=$ac_count 3726 fi 3727 # 10*(2^10) chars as input seems more than enough 3728 test $ac_count -gt 10 && break 3729 done 3730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3731esac 3732 3733 3734 $ac_path_EGREP_found && break 3 3735 done 3736done 3737 3738done 3739IFS=$as_save_IFS 3740 3741 3742fi 3743 3744EGREP="$ac_cv_path_EGREP" 3745if test -z "$EGREP"; then 3746 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3747echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3748 { (exit 1); exit 1; }; } 3749fi 3750 3751else 3752 ac_cv_path_EGREP=$EGREP 3753fi 3754 3755 3756 fi 3757fi 3758{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3759echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3760 EGREP="$ac_cv_path_EGREP" 3761 3762 3763{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3764echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3765if test "${ac_cv_header_stdc+set}" = set; then 3766 echo $ECHO_N "(cached) $ECHO_C" >&6 3767else 3768 cat >conftest.$ac_ext <<_ACEOF 3769/* confdefs.h. */ 3770_ACEOF 3771cat confdefs.h >>conftest.$ac_ext 3772cat >>conftest.$ac_ext <<_ACEOF 3773/* end confdefs.h. */ 3774#include <stdlib.h> 3775#include <stdarg.h> 3776#include <string.h> 3777#include <float.h> 3778 3779int 3780main () 3781{ 3782 3783 ; 3784 return 0; 3785} 3786_ACEOF 3787rm -f conftest.$ac_objext 3788if { (ac_try="$ac_compile" 3789case "(($ac_try" in 3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3791 *) ac_try_echo=$ac_try;; 3792esac 3793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3794 (eval "$ac_compile") 2>conftest.er1 3795 ac_status=$? 3796 grep -v '^ *+' conftest.er1 >conftest.err 3797 rm -f conftest.er1 3798 cat conftest.err >&5 3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3800 (exit $ac_status); } && { 3801 test -z "$ac_c_werror_flag" || 3802 test ! -s conftest.err 3803 } && test -s conftest.$ac_objext; then 3804 ac_cv_header_stdc=yes 3805else 3806 echo "$as_me: failed program was:" >&5 3807sed 's/^/| /' conftest.$ac_ext >&5 3808 3809 ac_cv_header_stdc=no 3810fi 3811 3812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3813 3814if test $ac_cv_header_stdc = yes; then 3815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3816 cat >conftest.$ac_ext <<_ACEOF 3817/* confdefs.h. */ 3818_ACEOF 3819cat confdefs.h >>conftest.$ac_ext 3820cat >>conftest.$ac_ext <<_ACEOF 3821/* end confdefs.h. */ 3822#include <string.h> 3823 3824_ACEOF 3825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3826 $EGREP "memchr" >/dev/null 2>&1; then 3827 : 3828else 3829 ac_cv_header_stdc=no 3830fi 3831rm -f -r conftest* 3832 3833fi 3834 3835if test $ac_cv_header_stdc = yes; then 3836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3837 cat >conftest.$ac_ext <<_ACEOF 3838/* confdefs.h. */ 3839_ACEOF 3840cat confdefs.h >>conftest.$ac_ext 3841cat >>conftest.$ac_ext <<_ACEOF 3842/* end confdefs.h. */ 3843#include <stdlib.h> 3844 3845_ACEOF 3846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3847 $EGREP "free" >/dev/null 2>&1; then 3848 : 3849else 3850 ac_cv_header_stdc=no 3851fi 3852rm -f -r conftest* 3853 3854fi 3855 3856if test $ac_cv_header_stdc = yes; then 3857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3858 if test "$cross_compiling" = yes; then 3859 : 3860else 3861 cat >conftest.$ac_ext <<_ACEOF 3862/* confdefs.h. */ 3863_ACEOF 3864cat confdefs.h >>conftest.$ac_ext 3865cat >>conftest.$ac_ext <<_ACEOF 3866/* end confdefs.h. */ 3867#include <ctype.h> 3868#include <stdlib.h> 3869#if ((' ' & 0x0FF) == 0x020) 3870# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3871# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3872#else 3873# define ISLOWER(c) \ 3874 (('a' <= (c) && (c) <= 'i') \ 3875 || ('j' <= (c) && (c) <= 'r') \ 3876 || ('s' <= (c) && (c) <= 'z')) 3877# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3878#endif 3879 3880#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3881int 3882main () 3883{ 3884 int i; 3885 for (i = 0; i < 256; i++) 3886 if (XOR (islower (i), ISLOWER (i)) 3887 || toupper (i) != TOUPPER (i)) 3888 return 2; 3889 return 0; 3890} 3891_ACEOF 3892rm -f conftest$ac_exeext 3893if { (ac_try="$ac_link" 3894case "(($ac_try" in 3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3896 *) ac_try_echo=$ac_try;; 3897esac 3898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3899 (eval "$ac_link") 2>&5 3900 ac_status=$? 3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3903 { (case "(($ac_try" in 3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3905 *) ac_try_echo=$ac_try;; 3906esac 3907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3908 (eval "$ac_try") 2>&5 3909 ac_status=$? 3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3911 (exit $ac_status); }; }; then 3912 : 3913else 3914 echo "$as_me: program exited with status $ac_status" >&5 3915echo "$as_me: failed program was:" >&5 3916sed 's/^/| /' conftest.$ac_ext >&5 3917 3918( exit $ac_status ) 3919ac_cv_header_stdc=no 3920fi 3921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3922fi 3923 3924 3925fi 3926fi 3927{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3928echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3929if test $ac_cv_header_stdc = yes; then 3930 3931cat >>confdefs.h <<\_ACEOF 3932#define STDC_HEADERS 1 3933_ACEOF 3934 3935fi 3936 3937# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3948 inttypes.h stdint.h unistd.h 3949do 3950as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3951{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3954 echo $ECHO_N "(cached) $ECHO_C" >&6 3955else 3956 cat >conftest.$ac_ext <<_ACEOF 3957/* confdefs.h. */ 3958_ACEOF 3959cat confdefs.h >>conftest.$ac_ext 3960cat >>conftest.$ac_ext <<_ACEOF 3961/* end confdefs.h. */ 3962$ac_includes_default 3963 3964#include <$ac_header> 3965_ACEOF 3966rm -f conftest.$ac_objext 3967if { (ac_try="$ac_compile" 3968case "(($ac_try" in 3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3970 *) ac_try_echo=$ac_try;; 3971esac 3972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3973 (eval "$ac_compile") 2>conftest.er1 3974 ac_status=$? 3975 grep -v '^ *+' conftest.er1 >conftest.err 3976 rm -f conftest.er1 3977 cat conftest.err >&5 3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3979 (exit $ac_status); } && { 3980 test -z "$ac_c_werror_flag" || 3981 test ! -s conftest.err 3982 } && test -s conftest.$ac_objext; then 3983 eval "$as_ac_Header=yes" 3984else 3985 echo "$as_me: failed program was:" >&5 3986sed 's/^/| /' conftest.$ac_ext >&5 3987 3988 eval "$as_ac_Header=no" 3989fi 3990 3991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3992fi 3993ac_res=`eval echo '${'$as_ac_Header'}'` 3994 { echo "$as_me:$LINENO: result: $ac_res" >&5 3995echo "${ECHO_T}$ac_res" >&6; } 3996if test `eval echo '${'$as_ac_Header'}'` = yes; then 3997 cat >>confdefs.h <<_ACEOF 3998#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3999_ACEOF 4000 4001fi 4002 4003done 4004 4005 4006 4007 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4008 4009 4010 #------------------------------------------------------------------------ 4011 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4012 # It makes compiling go faster. (This is only a performance feature.) 4013 #------------------------------------------------------------------------ 4014 4015 if test -z "$no_pipe" -a -n "$GCC"; then 4016 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4017echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4018if test "${tcl_cv_cc_pipe+set}" = set; then 4019 echo $ECHO_N "(cached) $ECHO_C" >&6 4020else 4021 4022 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4023 cat >conftest.$ac_ext <<_ACEOF 4024/* confdefs.h. */ 4025_ACEOF 4026cat confdefs.h >>conftest.$ac_ext 4027cat >>conftest.$ac_ext <<_ACEOF 4028/* end confdefs.h. */ 4029 4030int 4031main () 4032{ 4033 4034 ; 4035 return 0; 4036} 4037_ACEOF 4038rm -f conftest.$ac_objext 4039if { (ac_try="$ac_compile" 4040case "(($ac_try" in 4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4042 *) ac_try_echo=$ac_try;; 4043esac 4044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4045 (eval "$ac_compile") 2>conftest.er1 4046 ac_status=$? 4047 grep -v '^ *+' conftest.er1 >conftest.err 4048 rm -f conftest.er1 4049 cat conftest.err >&5 4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4051 (exit $ac_status); } && { 4052 test -z "$ac_c_werror_flag" || 4053 test ! -s conftest.err 4054 } && test -s conftest.$ac_objext; then 4055 tcl_cv_cc_pipe=yes 4056else 4057 echo "$as_me: failed program was:" >&5 4058sed 's/^/| /' conftest.$ac_ext >&5 4059 4060 tcl_cv_cc_pipe=no 4061fi 4062 4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4064 CFLAGS=$hold_cflags 4065fi 4066{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4067echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4068 if test $tcl_cv_cc_pipe = yes; then 4069 CFLAGS="$CFLAGS -pipe" 4070 fi 4071 fi 4072 4073 #-------------------------------------------------------------------- 4074 # Common compiler flag setup 4075 #-------------------------------------------------------------------- 4076 4077 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4078echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4079if test "${ac_cv_c_bigendian+set}" = set; then 4080 echo $ECHO_N "(cached) $ECHO_C" >&6 4081else 4082 # See if sys/param.h defines the BYTE_ORDER macro. 4083cat >conftest.$ac_ext <<_ACEOF 4084/* confdefs.h. */ 4085_ACEOF 4086cat confdefs.h >>conftest.$ac_ext 4087cat >>conftest.$ac_ext <<_ACEOF 4088/* end confdefs.h. */ 4089#include <sys/types.h> 4090#include <sys/param.h> 4091 4092int 4093main () 4094{ 4095#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4096 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4097 bogus endian macros 4098#endif 4099 4100 ; 4101 return 0; 4102} 4103_ACEOF 4104rm -f conftest.$ac_objext 4105if { (ac_try="$ac_compile" 4106case "(($ac_try" in 4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4108 *) ac_try_echo=$ac_try;; 4109esac 4110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4111 (eval "$ac_compile") 2>conftest.er1 4112 ac_status=$? 4113 grep -v '^ *+' conftest.er1 >conftest.err 4114 rm -f conftest.er1 4115 cat conftest.err >&5 4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4117 (exit $ac_status); } && { 4118 test -z "$ac_c_werror_flag" || 4119 test ! -s conftest.err 4120 } && test -s conftest.$ac_objext; then 4121 # It does; now see whether it defined to BIG_ENDIAN or not. 4122cat >conftest.$ac_ext <<_ACEOF 4123/* confdefs.h. */ 4124_ACEOF 4125cat confdefs.h >>conftest.$ac_ext 4126cat >>conftest.$ac_ext <<_ACEOF 4127/* end confdefs.h. */ 4128#include <sys/types.h> 4129#include <sys/param.h> 4130 4131int 4132main () 4133{ 4134#if BYTE_ORDER != BIG_ENDIAN 4135 not big endian 4136#endif 4137 4138 ; 4139 return 0; 4140} 4141_ACEOF 4142rm -f conftest.$ac_objext 4143if { (ac_try="$ac_compile" 4144case "(($ac_try" in 4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4146 *) ac_try_echo=$ac_try;; 4147esac 4148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4149 (eval "$ac_compile") 2>conftest.er1 4150 ac_status=$? 4151 grep -v '^ *+' conftest.er1 >conftest.err 4152 rm -f conftest.er1 4153 cat conftest.err >&5 4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4155 (exit $ac_status); } && { 4156 test -z "$ac_c_werror_flag" || 4157 test ! -s conftest.err 4158 } && test -s conftest.$ac_objext; then 4159 ac_cv_c_bigendian=yes 4160else 4161 echo "$as_me: failed program was:" >&5 4162sed 's/^/| /' conftest.$ac_ext >&5 4163 4164 ac_cv_c_bigendian=no 4165fi 4166 4167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4168else 4169 echo "$as_me: failed program was:" >&5 4170sed 's/^/| /' conftest.$ac_ext >&5 4171 4172 # It does not; compile a test program. 4173if test "$cross_compiling" = yes; then 4174 # try to guess the endianness by grepping values into an object file 4175 ac_cv_c_bigendian=unknown 4176 cat >conftest.$ac_ext <<_ACEOF 4177/* confdefs.h. */ 4178_ACEOF 4179cat confdefs.h >>conftest.$ac_ext 4180cat >>conftest.$ac_ext <<_ACEOF 4181/* end confdefs.h. */ 4182short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4183short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4184void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4185short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4186short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4187void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4188int 4189main () 4190{ 4191 _ascii (); _ebcdic (); 4192 ; 4193 return 0; 4194} 4195_ACEOF 4196rm -f conftest.$ac_objext 4197if { (ac_try="$ac_compile" 4198case "(($ac_try" in 4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4200 *) ac_try_echo=$ac_try;; 4201esac 4202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4203 (eval "$ac_compile") 2>conftest.er1 4204 ac_status=$? 4205 grep -v '^ *+' conftest.er1 >conftest.err 4206 rm -f conftest.er1 4207 cat conftest.err >&5 4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4209 (exit $ac_status); } && { 4210 test -z "$ac_c_werror_flag" || 4211 test ! -s conftest.err 4212 } && test -s conftest.$ac_objext; then 4213 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4214 ac_cv_c_bigendian=yes 4215fi 4216if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4217 if test "$ac_cv_c_bigendian" = unknown; then 4218 ac_cv_c_bigendian=no 4219 else 4220 # finding both strings is unlikely to happen, but who knows? 4221 ac_cv_c_bigendian=unknown 4222 fi 4223fi 4224else 4225 echo "$as_me: failed program was:" >&5 4226sed 's/^/| /' conftest.$ac_ext >&5 4227 4228 4229fi 4230 4231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4232else 4233 cat >conftest.$ac_ext <<_ACEOF 4234/* confdefs.h. */ 4235_ACEOF 4236cat confdefs.h >>conftest.$ac_ext 4237cat >>conftest.$ac_ext <<_ACEOF 4238/* end confdefs.h. */ 4239$ac_includes_default 4240int 4241main () 4242{ 4243 4244 /* Are we little or big endian? From Harbison&Steele. */ 4245 union 4246 { 4247 long int l; 4248 char c[sizeof (long int)]; 4249 } u; 4250 u.l = 1; 4251 return u.c[sizeof (long int) - 1] == 1; 4252 4253 ; 4254 return 0; 4255} 4256_ACEOF 4257rm -f conftest$ac_exeext 4258if { (ac_try="$ac_link" 4259case "(($ac_try" in 4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4261 *) ac_try_echo=$ac_try;; 4262esac 4263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4264 (eval "$ac_link") 2>&5 4265 ac_status=$? 4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4268 { (case "(($ac_try" in 4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4270 *) ac_try_echo=$ac_try;; 4271esac 4272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4273 (eval "$ac_try") 2>&5 4274 ac_status=$? 4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4276 (exit $ac_status); }; }; then 4277 ac_cv_c_bigendian=no 4278else 4279 echo "$as_me: program exited with status $ac_status" >&5 4280echo "$as_me: failed program was:" >&5 4281sed 's/^/| /' conftest.$ac_ext >&5 4282 4283( exit $ac_status ) 4284ac_cv_c_bigendian=yes 4285fi 4286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4287fi 4288 4289 4290fi 4291 4292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4293fi 4294{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4295echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4296case $ac_cv_c_bigendian in 4297 yes) 4298 4299cat >>confdefs.h <<\_ACEOF 4300#define WORDS_BIGENDIAN 1 4301_ACEOF 4302 ;; 4303 no) 4304 ;; 4305 *) 4306 { { echo "$as_me:$LINENO: error: unknown endianness 4307presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4308echo "$as_me: error: unknown endianness 4309presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4310 { (exit 1); exit 1; }; } ;; 4311esac 4312 4313 if test "${TEA_PLATFORM}" = "unix" ; then 4314 4315 #-------------------------------------------------------------------- 4316 # On a few very rare systems, all of the libm.a stuff is 4317 # already in libc.a. Set compiler flags accordingly. 4318 # Also, Linux requires the "ieee" library for math to work 4319 # right (and it must appear before "-lm"). 4320 #-------------------------------------------------------------------- 4321 4322 { echo "$as_me:$LINENO: checking for sin" >&5 4323echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4324if test "${ac_cv_func_sin+set}" = set; then 4325 echo $ECHO_N "(cached) $ECHO_C" >&6 4326else 4327 cat >conftest.$ac_ext <<_ACEOF 4328/* confdefs.h. */ 4329_ACEOF 4330cat confdefs.h >>conftest.$ac_ext 4331cat >>conftest.$ac_ext <<_ACEOF 4332/* end confdefs.h. */ 4333/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4334 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4335#define sin innocuous_sin 4336 4337/* System header to define __stub macros and hopefully few prototypes, 4338 which can conflict with char sin (); below. 4339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4340 <limits.h> exists even on freestanding compilers. */ 4341 4342#ifdef __STDC__ 4343# include <limits.h> 4344#else 4345# include <assert.h> 4346#endif 4347 4348#undef sin 4349 4350/* Override any GCC internal prototype to avoid an error. 4351 Use char because int might match the return type of a GCC 4352 builtin and then its argument prototype would still apply. */ 4353#ifdef __cplusplus 4354extern "C" 4355#endif 4356char sin (); 4357/* The GNU C library defines this for functions which it implements 4358 to always fail with ENOSYS. Some functions are actually named 4359 something starting with __ and the normal name is an alias. */ 4360#if defined __stub_sin || defined __stub___sin 4361choke me 4362#endif 4363 4364int 4365main () 4366{ 4367return sin (); 4368 ; 4369 return 0; 4370} 4371_ACEOF 4372rm -f conftest.$ac_objext conftest$ac_exeext 4373if { (ac_try="$ac_link" 4374case "(($ac_try" in 4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4376 *) ac_try_echo=$ac_try;; 4377esac 4378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4379 (eval "$ac_link") 2>conftest.er1 4380 ac_status=$? 4381 grep -v '^ *+' conftest.er1 >conftest.err 4382 rm -f conftest.er1 4383 cat conftest.err >&5 4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4385 (exit $ac_status); } && { 4386 test -z "$ac_c_werror_flag" || 4387 test ! -s conftest.err 4388 } && test -s conftest$ac_exeext && 4389 $as_test_x conftest$ac_exeext; then 4390 ac_cv_func_sin=yes 4391else 4392 echo "$as_me: failed program was:" >&5 4393sed 's/^/| /' conftest.$ac_ext >&5 4394 4395 ac_cv_func_sin=no 4396fi 4397 4398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4399 conftest$ac_exeext conftest.$ac_ext 4400fi 4401{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4402echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4403if test $ac_cv_func_sin = yes; then 4404 MATH_LIBS="" 4405else 4406 MATH_LIBS="-lm" 4407fi 4408 4409 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4410echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4411if test "${ac_cv_lib_ieee_main+set}" = set; then 4412 echo $ECHO_N "(cached) $ECHO_C" >&6 4413else 4414 ac_check_lib_save_LIBS=$LIBS 4415LIBS="-lieee $LIBS" 4416cat >conftest.$ac_ext <<_ACEOF 4417/* confdefs.h. */ 4418_ACEOF 4419cat confdefs.h >>conftest.$ac_ext 4420cat >>conftest.$ac_ext <<_ACEOF 4421/* end confdefs.h. */ 4422 4423 4424int 4425main () 4426{ 4427return main (); 4428 ; 4429 return 0; 4430} 4431_ACEOF 4432rm -f conftest.$ac_objext conftest$ac_exeext 4433if { (ac_try="$ac_link" 4434case "(($ac_try" in 4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4436 *) ac_try_echo=$ac_try;; 4437esac 4438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4439 (eval "$ac_link") 2>conftest.er1 4440 ac_status=$? 4441 grep -v '^ *+' conftest.er1 >conftest.err 4442 rm -f conftest.er1 4443 cat conftest.err >&5 4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4445 (exit $ac_status); } && { 4446 test -z "$ac_c_werror_flag" || 4447 test ! -s conftest.err 4448 } && test -s conftest$ac_exeext && 4449 $as_test_x conftest$ac_exeext; then 4450 ac_cv_lib_ieee_main=yes 4451else 4452 echo "$as_me: failed program was:" >&5 4453sed 's/^/| /' conftest.$ac_ext >&5 4454 4455 ac_cv_lib_ieee_main=no 4456fi 4457 4458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4459 conftest$ac_exeext conftest.$ac_ext 4460LIBS=$ac_check_lib_save_LIBS 4461fi 4462{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4463echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4464if test $ac_cv_lib_ieee_main = yes; then 4465 MATH_LIBS="-lieee $MATH_LIBS" 4466fi 4467 4468 4469 #-------------------------------------------------------------------- 4470 # Interactive UNIX requires -linet instead of -lsocket, plus it 4471 # needs net/errno.h to define the socket-related error codes. 4472 #-------------------------------------------------------------------- 4473 4474 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4475echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4476if test "${ac_cv_lib_inet_main+set}" = set; then 4477 echo $ECHO_N "(cached) $ECHO_C" >&6 4478else 4479 ac_check_lib_save_LIBS=$LIBS 4480LIBS="-linet $LIBS" 4481cat >conftest.$ac_ext <<_ACEOF 4482/* confdefs.h. */ 4483_ACEOF 4484cat confdefs.h >>conftest.$ac_ext 4485cat >>conftest.$ac_ext <<_ACEOF 4486/* end confdefs.h. */ 4487 4488 4489int 4490main () 4491{ 4492return main (); 4493 ; 4494 return 0; 4495} 4496_ACEOF 4497rm -f conftest.$ac_objext conftest$ac_exeext 4498if { (ac_try="$ac_link" 4499case "(($ac_try" in 4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4501 *) ac_try_echo=$ac_try;; 4502esac 4503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4504 (eval "$ac_link") 2>conftest.er1 4505 ac_status=$? 4506 grep -v '^ *+' conftest.er1 >conftest.err 4507 rm -f conftest.er1 4508 cat conftest.err >&5 4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4510 (exit $ac_status); } && { 4511 test -z "$ac_c_werror_flag" || 4512 test ! -s conftest.err 4513 } && test -s conftest$ac_exeext && 4514 $as_test_x conftest$ac_exeext; then 4515 ac_cv_lib_inet_main=yes 4516else 4517 echo "$as_me: failed program was:" >&5 4518sed 's/^/| /' conftest.$ac_ext >&5 4519 4520 ac_cv_lib_inet_main=no 4521fi 4522 4523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4524 conftest$ac_exeext conftest.$ac_ext 4525LIBS=$ac_check_lib_save_LIBS 4526fi 4527{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4528echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4529if test $ac_cv_lib_inet_main = yes; then 4530 LIBS="$LIBS -linet" 4531fi 4532 4533 if test "${ac_cv_header_net_errno_h+set}" = set; then 4534 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4535echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4536if test "${ac_cv_header_net_errno_h+set}" = set; then 4537 echo $ECHO_N "(cached) $ECHO_C" >&6 4538fi 4539{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4540echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4541else 4542 # Is the header compilable? 4543{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4544echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4545cat >conftest.$ac_ext <<_ACEOF 4546/* confdefs.h. */ 4547_ACEOF 4548cat confdefs.h >>conftest.$ac_ext 4549cat >>conftest.$ac_ext <<_ACEOF 4550/* end confdefs.h. */ 4551$ac_includes_default 4552#include <net/errno.h> 4553_ACEOF 4554rm -f conftest.$ac_objext 4555if { (ac_try="$ac_compile" 4556case "(($ac_try" in 4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4558 *) ac_try_echo=$ac_try;; 4559esac 4560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4561 (eval "$ac_compile") 2>conftest.er1 4562 ac_status=$? 4563 grep -v '^ *+' conftest.er1 >conftest.err 4564 rm -f conftest.er1 4565 cat conftest.err >&5 4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4567 (exit $ac_status); } && { 4568 test -z "$ac_c_werror_flag" || 4569 test ! -s conftest.err 4570 } && test -s conftest.$ac_objext; then 4571 ac_header_compiler=yes 4572else 4573 echo "$as_me: failed program was:" >&5 4574sed 's/^/| /' conftest.$ac_ext >&5 4575 4576 ac_header_compiler=no 4577fi 4578 4579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4580{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4581echo "${ECHO_T}$ac_header_compiler" >&6; } 4582 4583# Is the header present? 4584{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4585echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4586cat >conftest.$ac_ext <<_ACEOF 4587/* confdefs.h. */ 4588_ACEOF 4589cat confdefs.h >>conftest.$ac_ext 4590cat >>conftest.$ac_ext <<_ACEOF 4591/* end confdefs.h. */ 4592#include <net/errno.h> 4593_ACEOF 4594if { (ac_try="$ac_cpp conftest.$ac_ext" 4595case "(($ac_try" in 4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4597 *) ac_try_echo=$ac_try;; 4598esac 4599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4601 ac_status=$? 4602 grep -v '^ *+' conftest.er1 >conftest.err 4603 rm -f conftest.er1 4604 cat conftest.err >&5 4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4606 (exit $ac_status); } >/dev/null && { 4607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4608 test ! -s conftest.err 4609 }; then 4610 ac_header_preproc=yes 4611else 4612 echo "$as_me: failed program was:" >&5 4613sed 's/^/| /' conftest.$ac_ext >&5 4614 4615 ac_header_preproc=no 4616fi 4617 4618rm -f conftest.err conftest.$ac_ext 4619{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4620echo "${ECHO_T}$ac_header_preproc" >&6; } 4621 4622# So? What about this header? 4623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4624 yes:no: ) 4625 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4626echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4627 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4628echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4629 ac_header_preproc=yes 4630 ;; 4631 no:yes:* ) 4632 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4633echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4634 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4635echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4636 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4637echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4638 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4639echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4640 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4641echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4642 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4643echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4644 4645 ;; 4646esac 4647{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4648echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4649if test "${ac_cv_header_net_errno_h+set}" = set; then 4650 echo $ECHO_N "(cached) $ECHO_C" >&6 4651else 4652 ac_cv_header_net_errno_h=$ac_header_preproc 4653fi 4654{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4655echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4656 4657fi 4658if test $ac_cv_header_net_errno_h = yes; then 4659 4660 4661cat >>confdefs.h <<\_ACEOF 4662#define HAVE_NET_ERRNO_H 1 4663_ACEOF 4664 4665fi 4666 4667 4668 4669 #-------------------------------------------------------------------- 4670 # Check for the existence of the -lsocket and -lnsl libraries. 4671 # The order here is important, so that they end up in the right 4672 # order in the command line generated by make. Here are some 4673 # special considerations: 4674 # 1. Use "connect" and "accept" to check for -lsocket, and 4675 # "gethostbyname" to check for -lnsl. 4676 # 2. Use each function name only once: can't redo a check because 4677 # autoconf caches the results of the last check and won't redo it. 4678 # 3. Use -lnsl and -lsocket only if they supply procedures that 4679 # aren't already present in the normal libraries. This is because 4680 # IRIX 5.2 has libraries, but they aren't needed and they're 4681 # bogus: they goof up name resolution if used. 4682 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4683 # To get around this problem, check for both libraries together 4684 # if -lsocket doesn't work by itself. 4685 #-------------------------------------------------------------------- 4686 4687 tcl_checkBoth=0 4688 { echo "$as_me:$LINENO: checking for connect" >&5 4689echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4690if test "${ac_cv_func_connect+set}" = set; then 4691 echo $ECHO_N "(cached) $ECHO_C" >&6 4692else 4693 cat >conftest.$ac_ext <<_ACEOF 4694/* confdefs.h. */ 4695_ACEOF 4696cat confdefs.h >>conftest.$ac_ext 4697cat >>conftest.$ac_ext <<_ACEOF 4698/* end confdefs.h. */ 4699/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4700 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4701#define connect innocuous_connect 4702 4703/* System header to define __stub macros and hopefully few prototypes, 4704 which can conflict with char connect (); below. 4705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4706 <limits.h> exists even on freestanding compilers. */ 4707 4708#ifdef __STDC__ 4709# include <limits.h> 4710#else 4711# include <assert.h> 4712#endif 4713 4714#undef connect 4715 4716/* Override any GCC internal prototype to avoid an error. 4717 Use char because int might match the return type of a GCC 4718 builtin and then its argument prototype would still apply. */ 4719#ifdef __cplusplus 4720extern "C" 4721#endif 4722char connect (); 4723/* The GNU C library defines this for functions which it implements 4724 to always fail with ENOSYS. Some functions are actually named 4725 something starting with __ and the normal name is an alias. */ 4726#if defined __stub_connect || defined __stub___connect 4727choke me 4728#endif 4729 4730int 4731main () 4732{ 4733return connect (); 4734 ; 4735 return 0; 4736} 4737_ACEOF 4738rm -f conftest.$ac_objext conftest$ac_exeext 4739if { (ac_try="$ac_link" 4740case "(($ac_try" in 4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4742 *) ac_try_echo=$ac_try;; 4743esac 4744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4745 (eval "$ac_link") 2>conftest.er1 4746 ac_status=$? 4747 grep -v '^ *+' conftest.er1 >conftest.err 4748 rm -f conftest.er1 4749 cat conftest.err >&5 4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4751 (exit $ac_status); } && { 4752 test -z "$ac_c_werror_flag" || 4753 test ! -s conftest.err 4754 } && test -s conftest$ac_exeext && 4755 $as_test_x conftest$ac_exeext; then 4756 ac_cv_func_connect=yes 4757else 4758 echo "$as_me: failed program was:" >&5 4759sed 's/^/| /' conftest.$ac_ext >&5 4760 4761 ac_cv_func_connect=no 4762fi 4763 4764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4765 conftest$ac_exeext conftest.$ac_ext 4766fi 4767{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4768echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4769if test $ac_cv_func_connect = yes; then 4770 tcl_checkSocket=0 4771else 4772 tcl_checkSocket=1 4773fi 4774 4775 if test "$tcl_checkSocket" = 1; then 4776 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4777echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4778if test "${ac_cv_func_setsockopt+set}" = set; then 4779 echo $ECHO_N "(cached) $ECHO_C" >&6 4780else 4781 cat >conftest.$ac_ext <<_ACEOF 4782/* confdefs.h. */ 4783_ACEOF 4784cat confdefs.h >>conftest.$ac_ext 4785cat >>conftest.$ac_ext <<_ACEOF 4786/* end confdefs.h. */ 4787/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4788 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4789#define setsockopt innocuous_setsockopt 4790 4791/* System header to define __stub macros and hopefully few prototypes, 4792 which can conflict with char setsockopt (); below. 4793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4794 <limits.h> exists even on freestanding compilers. */ 4795 4796#ifdef __STDC__ 4797# include <limits.h> 4798#else 4799# include <assert.h> 4800#endif 4801 4802#undef setsockopt 4803 4804/* Override any GCC internal prototype to avoid an error. 4805 Use char because int might match the return type of a GCC 4806 builtin and then its argument prototype would still apply. */ 4807#ifdef __cplusplus 4808extern "C" 4809#endif 4810char setsockopt (); 4811/* The GNU C library defines this for functions which it implements 4812 to always fail with ENOSYS. Some functions are actually named 4813 something starting with __ and the normal name is an alias. */ 4814#if defined __stub_setsockopt || defined __stub___setsockopt 4815choke me 4816#endif 4817 4818int 4819main () 4820{ 4821return setsockopt (); 4822 ; 4823 return 0; 4824} 4825_ACEOF 4826rm -f conftest.$ac_objext conftest$ac_exeext 4827if { (ac_try="$ac_link" 4828case "(($ac_try" in 4829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4830 *) ac_try_echo=$ac_try;; 4831esac 4832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4833 (eval "$ac_link") 2>conftest.er1 4834 ac_status=$? 4835 grep -v '^ *+' conftest.er1 >conftest.err 4836 rm -f conftest.er1 4837 cat conftest.err >&5 4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4839 (exit $ac_status); } && { 4840 test -z "$ac_c_werror_flag" || 4841 test ! -s conftest.err 4842 } && test -s conftest$ac_exeext && 4843 $as_test_x conftest$ac_exeext; then 4844 ac_cv_func_setsockopt=yes 4845else 4846 echo "$as_me: failed program was:" >&5 4847sed 's/^/| /' conftest.$ac_ext >&5 4848 4849 ac_cv_func_setsockopt=no 4850fi 4851 4852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4853 conftest$ac_exeext conftest.$ac_ext 4854fi 4855{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4856echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 4857if test $ac_cv_func_setsockopt = yes; then 4858 : 4859else 4860 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4861echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 4862if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4863 echo $ECHO_N "(cached) $ECHO_C" >&6 4864else 4865 ac_check_lib_save_LIBS=$LIBS 4866LIBS="-lsocket $LIBS" 4867cat >conftest.$ac_ext <<_ACEOF 4868/* confdefs.h. */ 4869_ACEOF 4870cat confdefs.h >>conftest.$ac_ext 4871cat >>conftest.$ac_ext <<_ACEOF 4872/* end confdefs.h. */ 4873 4874/* Override any GCC internal prototype to avoid an error. 4875 Use char because int might match the return type of a GCC 4876 builtin and then its argument prototype would still apply. */ 4877#ifdef __cplusplus 4878extern "C" 4879#endif 4880char setsockopt (); 4881int 4882main () 4883{ 4884return setsockopt (); 4885 ; 4886 return 0; 4887} 4888_ACEOF 4889rm -f conftest.$ac_objext conftest$ac_exeext 4890if { (ac_try="$ac_link" 4891case "(($ac_try" in 4892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4893 *) ac_try_echo=$ac_try;; 4894esac 4895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4896 (eval "$ac_link") 2>conftest.er1 4897 ac_status=$? 4898 grep -v '^ *+' conftest.er1 >conftest.err 4899 rm -f conftest.er1 4900 cat conftest.err >&5 4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4902 (exit $ac_status); } && { 4903 test -z "$ac_c_werror_flag" || 4904 test ! -s conftest.err 4905 } && test -s conftest$ac_exeext && 4906 $as_test_x conftest$ac_exeext; then 4907 ac_cv_lib_socket_setsockopt=yes 4908else 4909 echo "$as_me: failed program was:" >&5 4910sed 's/^/| /' conftest.$ac_ext >&5 4911 4912 ac_cv_lib_socket_setsockopt=no 4913fi 4914 4915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4916 conftest$ac_exeext conftest.$ac_ext 4917LIBS=$ac_check_lib_save_LIBS 4918fi 4919{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4920echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 4921if test $ac_cv_lib_socket_setsockopt = yes; then 4922 LIBS="$LIBS -lsocket" 4923else 4924 tcl_checkBoth=1 4925fi 4926 4927fi 4928 4929 fi 4930 if test "$tcl_checkBoth" = 1; then 4931 tk_oldLibs=$LIBS 4932 LIBS="$LIBS -lsocket -lnsl" 4933 { echo "$as_me:$LINENO: checking for accept" >&5 4934echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 4935if test "${ac_cv_func_accept+set}" = set; then 4936 echo $ECHO_N "(cached) $ECHO_C" >&6 4937else 4938 cat >conftest.$ac_ext <<_ACEOF 4939/* confdefs.h. */ 4940_ACEOF 4941cat confdefs.h >>conftest.$ac_ext 4942cat >>conftest.$ac_ext <<_ACEOF 4943/* end confdefs.h. */ 4944/* Define accept to an innocuous variant, in case <limits.h> declares accept. 4945 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4946#define accept innocuous_accept 4947 4948/* System header to define __stub macros and hopefully few prototypes, 4949 which can conflict with char accept (); below. 4950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4951 <limits.h> exists even on freestanding compilers. */ 4952 4953#ifdef __STDC__ 4954# include <limits.h> 4955#else 4956# include <assert.h> 4957#endif 4958 4959#undef accept 4960 4961/* Override any GCC internal prototype to avoid an error. 4962 Use char because int might match the return type of a GCC 4963 builtin and then its argument prototype would still apply. */ 4964#ifdef __cplusplus 4965extern "C" 4966#endif 4967char accept (); 4968/* The GNU C library defines this for functions which it implements 4969 to always fail with ENOSYS. Some functions are actually named 4970 something starting with __ and the normal name is an alias. */ 4971#if defined __stub_accept || defined __stub___accept 4972choke me 4973#endif 4974 4975int 4976main () 4977{ 4978return accept (); 4979 ; 4980 return 0; 4981} 4982_ACEOF 4983rm -f conftest.$ac_objext conftest$ac_exeext 4984if { (ac_try="$ac_link" 4985case "(($ac_try" in 4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4987 *) ac_try_echo=$ac_try;; 4988esac 4989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4990 (eval "$ac_link") 2>conftest.er1 4991 ac_status=$? 4992 grep -v '^ *+' conftest.er1 >conftest.err 4993 rm -f conftest.er1 4994 cat conftest.err >&5 4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4996 (exit $ac_status); } && { 4997 test -z "$ac_c_werror_flag" || 4998 test ! -s conftest.err 4999 } && test -s conftest$ac_exeext && 5000 $as_test_x conftest$ac_exeext; then 5001 ac_cv_func_accept=yes 5002else 5003 echo "$as_me: failed program was:" >&5 5004sed 's/^/| /' conftest.$ac_ext >&5 5005 5006 ac_cv_func_accept=no 5007fi 5008 5009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5010 conftest$ac_exeext conftest.$ac_ext 5011fi 5012{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5013echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5014if test $ac_cv_func_accept = yes; then 5015 tcl_checkNsl=0 5016else 5017 LIBS=$tk_oldLibs 5018fi 5019 5020 fi 5021 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5022echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5023if test "${ac_cv_func_gethostbyname+set}" = set; then 5024 echo $ECHO_N "(cached) $ECHO_C" >&6 5025else 5026 cat >conftest.$ac_ext <<_ACEOF 5027/* confdefs.h. */ 5028_ACEOF 5029cat confdefs.h >>conftest.$ac_ext 5030cat >>conftest.$ac_ext <<_ACEOF 5031/* end confdefs.h. */ 5032/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5033 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5034#define gethostbyname innocuous_gethostbyname 5035 5036/* System header to define __stub macros and hopefully few prototypes, 5037 which can conflict with char gethostbyname (); below. 5038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5039 <limits.h> exists even on freestanding compilers. */ 5040 5041#ifdef __STDC__ 5042# include <limits.h> 5043#else 5044# include <assert.h> 5045#endif 5046 5047#undef gethostbyname 5048 5049/* Override any GCC internal prototype to avoid an error. 5050 Use char because int might match the return type of a GCC 5051 builtin and then its argument prototype would still apply. */ 5052#ifdef __cplusplus 5053extern "C" 5054#endif 5055char gethostbyname (); 5056/* The GNU C library defines this for functions which it implements 5057 to always fail with ENOSYS. Some functions are actually named 5058 something starting with __ and the normal name is an alias. */ 5059#if defined __stub_gethostbyname || defined __stub___gethostbyname 5060choke me 5061#endif 5062 5063int 5064main () 5065{ 5066return gethostbyname (); 5067 ; 5068 return 0; 5069} 5070_ACEOF 5071rm -f conftest.$ac_objext conftest$ac_exeext 5072if { (ac_try="$ac_link" 5073case "(($ac_try" in 5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5075 *) ac_try_echo=$ac_try;; 5076esac 5077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5078 (eval "$ac_link") 2>conftest.er1 5079 ac_status=$? 5080 grep -v '^ *+' conftest.er1 >conftest.err 5081 rm -f conftest.er1 5082 cat conftest.err >&5 5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5084 (exit $ac_status); } && { 5085 test -z "$ac_c_werror_flag" || 5086 test ! -s conftest.err 5087 } && test -s conftest$ac_exeext && 5088 $as_test_x conftest$ac_exeext; then 5089 ac_cv_func_gethostbyname=yes 5090else 5091 echo "$as_me: failed program was:" >&5 5092sed 's/^/| /' conftest.$ac_ext >&5 5093 5094 ac_cv_func_gethostbyname=no 5095fi 5096 5097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5098 conftest$ac_exeext conftest.$ac_ext 5099fi 5100{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5101echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5102if test $ac_cv_func_gethostbyname = yes; then 5103 : 5104else 5105 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5106echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5107if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5108 echo $ECHO_N "(cached) $ECHO_C" >&6 5109else 5110 ac_check_lib_save_LIBS=$LIBS 5111LIBS="-lnsl $LIBS" 5112cat >conftest.$ac_ext <<_ACEOF 5113/* confdefs.h. */ 5114_ACEOF 5115cat confdefs.h >>conftest.$ac_ext 5116cat >>conftest.$ac_ext <<_ACEOF 5117/* end confdefs.h. */ 5118 5119/* Override any GCC internal prototype to avoid an error. 5120 Use char because int might match the return type of a GCC 5121 builtin and then its argument prototype would still apply. */ 5122#ifdef __cplusplus 5123extern "C" 5124#endif 5125char gethostbyname (); 5126int 5127main () 5128{ 5129return gethostbyname (); 5130 ; 5131 return 0; 5132} 5133_ACEOF 5134rm -f conftest.$ac_objext conftest$ac_exeext 5135if { (ac_try="$ac_link" 5136case "(($ac_try" in 5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5138 *) ac_try_echo=$ac_try;; 5139esac 5140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5141 (eval "$ac_link") 2>conftest.er1 5142 ac_status=$? 5143 grep -v '^ *+' conftest.er1 >conftest.err 5144 rm -f conftest.er1 5145 cat conftest.err >&5 5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5147 (exit $ac_status); } && { 5148 test -z "$ac_c_werror_flag" || 5149 test ! -s conftest.err 5150 } && test -s conftest$ac_exeext && 5151 $as_test_x conftest$ac_exeext; then 5152 ac_cv_lib_nsl_gethostbyname=yes 5153else 5154 echo "$as_me: failed program was:" >&5 5155sed 's/^/| /' conftest.$ac_ext >&5 5156 5157 ac_cv_lib_nsl_gethostbyname=no 5158fi 5159 5160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5161 conftest$ac_exeext conftest.$ac_ext 5162LIBS=$ac_check_lib_save_LIBS 5163fi 5164{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5165echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5166if test $ac_cv_lib_nsl_gethostbyname = yes; then 5167 LIBS="$LIBS -lnsl" 5168fi 5169 5170fi 5171 5172 5173 # TEA specific: Don't perform the eval of the libraries here because 5174 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5175 5176 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5177 5178 5179 5180 5181 { echo "$as_me:$LINENO: checking dirent.h" >&5 5182echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5183if test "${tcl_cv_dirent_h+set}" = set; then 5184 echo $ECHO_N "(cached) $ECHO_C" >&6 5185else 5186 5187 cat >conftest.$ac_ext <<_ACEOF 5188/* confdefs.h. */ 5189_ACEOF 5190cat confdefs.h >>conftest.$ac_ext 5191cat >>conftest.$ac_ext <<_ACEOF 5192/* end confdefs.h. */ 5193#include <sys/types.h> 5194#include <dirent.h> 5195int 5196main () 5197{ 5198 5199#ifndef _POSIX_SOURCE 5200# ifdef __Lynx__ 5201 /* 5202 * Generate compilation error to make the test fail: Lynx headers 5203 * are only valid if really in the POSIX environment. 5204 */ 5205 5206 missing_procedure(); 5207# endif 5208#endif 5209DIR *d; 5210struct dirent *entryPtr; 5211char *p; 5212d = opendir("foobar"); 5213entryPtr = readdir(d); 5214p = entryPtr->d_name; 5215closedir(d); 5216 5217 ; 5218 return 0; 5219} 5220_ACEOF 5221rm -f conftest.$ac_objext conftest$ac_exeext 5222if { (ac_try="$ac_link" 5223case "(($ac_try" in 5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5225 *) ac_try_echo=$ac_try;; 5226esac 5227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5228 (eval "$ac_link") 2>conftest.er1 5229 ac_status=$? 5230 grep -v '^ *+' conftest.er1 >conftest.err 5231 rm -f conftest.er1 5232 cat conftest.err >&5 5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5234 (exit $ac_status); } && { 5235 test -z "$ac_c_werror_flag" || 5236 test ! -s conftest.err 5237 } && test -s conftest$ac_exeext && 5238 $as_test_x conftest$ac_exeext; then 5239 tcl_cv_dirent_h=yes 5240else 5241 echo "$as_me: failed program was:" >&5 5242sed 's/^/| /' conftest.$ac_ext >&5 5243 5244 tcl_cv_dirent_h=no 5245fi 5246 5247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5248 conftest$ac_exeext conftest.$ac_ext 5249fi 5250{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5251echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5252 5253 if test $tcl_cv_dirent_h = no; then 5254 5255cat >>confdefs.h <<\_ACEOF 5256#define NO_DIRENT_H 1 5257_ACEOF 5258 5259 fi 5260 5261 # TEA specific: 5262 if test "${ac_cv_header_errno_h+set}" = set; then 5263 { echo "$as_me:$LINENO: checking for errno.h" >&5 5264echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5265if test "${ac_cv_header_errno_h+set}" = set; then 5266 echo $ECHO_N "(cached) $ECHO_C" >&6 5267fi 5268{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5269echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5270else 5271 # Is the header compilable? 5272{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5273echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5274cat >conftest.$ac_ext <<_ACEOF 5275/* confdefs.h. */ 5276_ACEOF 5277cat confdefs.h >>conftest.$ac_ext 5278cat >>conftest.$ac_ext <<_ACEOF 5279/* end confdefs.h. */ 5280$ac_includes_default 5281#include <errno.h> 5282_ACEOF 5283rm -f conftest.$ac_objext 5284if { (ac_try="$ac_compile" 5285case "(($ac_try" in 5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5287 *) ac_try_echo=$ac_try;; 5288esac 5289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5290 (eval "$ac_compile") 2>conftest.er1 5291 ac_status=$? 5292 grep -v '^ *+' conftest.er1 >conftest.err 5293 rm -f conftest.er1 5294 cat conftest.err >&5 5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5296 (exit $ac_status); } && { 5297 test -z "$ac_c_werror_flag" || 5298 test ! -s conftest.err 5299 } && test -s conftest.$ac_objext; then 5300 ac_header_compiler=yes 5301else 5302 echo "$as_me: failed program was:" >&5 5303sed 's/^/| /' conftest.$ac_ext >&5 5304 5305 ac_header_compiler=no 5306fi 5307 5308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5309{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5310echo "${ECHO_T}$ac_header_compiler" >&6; } 5311 5312# Is the header present? 5313{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5314echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5315cat >conftest.$ac_ext <<_ACEOF 5316/* confdefs.h. */ 5317_ACEOF 5318cat confdefs.h >>conftest.$ac_ext 5319cat >>conftest.$ac_ext <<_ACEOF 5320/* end confdefs.h. */ 5321#include <errno.h> 5322_ACEOF 5323if { (ac_try="$ac_cpp conftest.$ac_ext" 5324case "(($ac_try" in 5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5326 *) ac_try_echo=$ac_try;; 5327esac 5328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5330 ac_status=$? 5331 grep -v '^ *+' conftest.er1 >conftest.err 5332 rm -f conftest.er1 5333 cat conftest.err >&5 5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5335 (exit $ac_status); } >/dev/null && { 5336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5337 test ! -s conftest.err 5338 }; then 5339 ac_header_preproc=yes 5340else 5341 echo "$as_me: failed program was:" >&5 5342sed 's/^/| /' conftest.$ac_ext >&5 5343 5344 ac_header_preproc=no 5345fi 5346 5347rm -f conftest.err conftest.$ac_ext 5348{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5349echo "${ECHO_T}$ac_header_preproc" >&6; } 5350 5351# So? What about this header? 5352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5353 yes:no: ) 5354 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5355echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5356 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5357echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5358 ac_header_preproc=yes 5359 ;; 5360 no:yes:* ) 5361 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5362echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5363 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5364echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5365 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5366echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5367 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5368echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5369 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5370echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5371 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5372echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5373 5374 ;; 5375esac 5376{ echo "$as_me:$LINENO: checking for errno.h" >&5 5377echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5378if test "${ac_cv_header_errno_h+set}" = set; then 5379 echo $ECHO_N "(cached) $ECHO_C" >&6 5380else 5381 ac_cv_header_errno_h=$ac_header_preproc 5382fi 5383{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5384echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5385 5386fi 5387if test $ac_cv_header_errno_h = yes; then 5388 : 5389else 5390 5391cat >>confdefs.h <<\_ACEOF 5392#define NO_ERRNO_H 1 5393_ACEOF 5394 5395fi 5396 5397 5398 if test "${ac_cv_header_float_h+set}" = set; then 5399 { echo "$as_me:$LINENO: checking for float.h" >&5 5400echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5401if test "${ac_cv_header_float_h+set}" = set; then 5402 echo $ECHO_N "(cached) $ECHO_C" >&6 5403fi 5404{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5405echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5406else 5407 # Is the header compilable? 5408{ echo "$as_me:$LINENO: checking float.h usability" >&5 5409echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5410cat >conftest.$ac_ext <<_ACEOF 5411/* confdefs.h. */ 5412_ACEOF 5413cat confdefs.h >>conftest.$ac_ext 5414cat >>conftest.$ac_ext <<_ACEOF 5415/* end confdefs.h. */ 5416$ac_includes_default 5417#include <float.h> 5418_ACEOF 5419rm -f conftest.$ac_objext 5420if { (ac_try="$ac_compile" 5421case "(($ac_try" in 5422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5423 *) ac_try_echo=$ac_try;; 5424esac 5425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5426 (eval "$ac_compile") 2>conftest.er1 5427 ac_status=$? 5428 grep -v '^ *+' conftest.er1 >conftest.err 5429 rm -f conftest.er1 5430 cat conftest.err >&5 5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5432 (exit $ac_status); } && { 5433 test -z "$ac_c_werror_flag" || 5434 test ! -s conftest.err 5435 } && test -s conftest.$ac_objext; then 5436 ac_header_compiler=yes 5437else 5438 echo "$as_me: failed program was:" >&5 5439sed 's/^/| /' conftest.$ac_ext >&5 5440 5441 ac_header_compiler=no 5442fi 5443 5444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5445{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5446echo "${ECHO_T}$ac_header_compiler" >&6; } 5447 5448# Is the header present? 5449{ echo "$as_me:$LINENO: checking float.h presence" >&5 5450echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5451cat >conftest.$ac_ext <<_ACEOF 5452/* confdefs.h. */ 5453_ACEOF 5454cat confdefs.h >>conftest.$ac_ext 5455cat >>conftest.$ac_ext <<_ACEOF 5456/* end confdefs.h. */ 5457#include <float.h> 5458_ACEOF 5459if { (ac_try="$ac_cpp conftest.$ac_ext" 5460case "(($ac_try" in 5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5462 *) ac_try_echo=$ac_try;; 5463esac 5464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5466 ac_status=$? 5467 grep -v '^ *+' conftest.er1 >conftest.err 5468 rm -f conftest.er1 5469 cat conftest.err >&5 5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5471 (exit $ac_status); } >/dev/null && { 5472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5473 test ! -s conftest.err 5474 }; then 5475 ac_header_preproc=yes 5476else 5477 echo "$as_me: failed program was:" >&5 5478sed 's/^/| /' conftest.$ac_ext >&5 5479 5480 ac_header_preproc=no 5481fi 5482 5483rm -f conftest.err conftest.$ac_ext 5484{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5485echo "${ECHO_T}$ac_header_preproc" >&6; } 5486 5487# So? What about this header? 5488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5489 yes:no: ) 5490 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5491echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5492 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5493echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5494 ac_header_preproc=yes 5495 ;; 5496 no:yes:* ) 5497 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5498echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5499 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5500echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5501 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5502echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5503 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5504echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5505 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5506echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5507 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5508echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5509 5510 ;; 5511esac 5512{ echo "$as_me:$LINENO: checking for float.h" >&5 5513echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5514if test "${ac_cv_header_float_h+set}" = set; then 5515 echo $ECHO_N "(cached) $ECHO_C" >&6 5516else 5517 ac_cv_header_float_h=$ac_header_preproc 5518fi 5519{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5520echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5521 5522fi 5523if test $ac_cv_header_float_h = yes; then 5524 : 5525else 5526 5527cat >>confdefs.h <<\_ACEOF 5528#define NO_FLOAT_H 1 5529_ACEOF 5530 5531fi 5532 5533 5534 if test "${ac_cv_header_values_h+set}" = set; then 5535 { echo "$as_me:$LINENO: checking for values.h" >&5 5536echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5537if test "${ac_cv_header_values_h+set}" = set; then 5538 echo $ECHO_N "(cached) $ECHO_C" >&6 5539fi 5540{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5541echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5542else 5543 # Is the header compilable? 5544{ echo "$as_me:$LINENO: checking values.h usability" >&5 5545echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5546cat >conftest.$ac_ext <<_ACEOF 5547/* confdefs.h. */ 5548_ACEOF 5549cat confdefs.h >>conftest.$ac_ext 5550cat >>conftest.$ac_ext <<_ACEOF 5551/* end confdefs.h. */ 5552$ac_includes_default 5553#include <values.h> 5554_ACEOF 5555rm -f conftest.$ac_objext 5556if { (ac_try="$ac_compile" 5557case "(($ac_try" in 5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5559 *) ac_try_echo=$ac_try;; 5560esac 5561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5562 (eval "$ac_compile") 2>conftest.er1 5563 ac_status=$? 5564 grep -v '^ *+' conftest.er1 >conftest.err 5565 rm -f conftest.er1 5566 cat conftest.err >&5 5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5568 (exit $ac_status); } && { 5569 test -z "$ac_c_werror_flag" || 5570 test ! -s conftest.err 5571 } && test -s conftest.$ac_objext; then 5572 ac_header_compiler=yes 5573else 5574 echo "$as_me: failed program was:" >&5 5575sed 's/^/| /' conftest.$ac_ext >&5 5576 5577 ac_header_compiler=no 5578fi 5579 5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5581{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5582echo "${ECHO_T}$ac_header_compiler" >&6; } 5583 5584# Is the header present? 5585{ echo "$as_me:$LINENO: checking values.h presence" >&5 5586echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5587cat >conftest.$ac_ext <<_ACEOF 5588/* confdefs.h. */ 5589_ACEOF 5590cat confdefs.h >>conftest.$ac_ext 5591cat >>conftest.$ac_ext <<_ACEOF 5592/* end confdefs.h. */ 5593#include <values.h> 5594_ACEOF 5595if { (ac_try="$ac_cpp conftest.$ac_ext" 5596case "(($ac_try" in 5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5598 *) ac_try_echo=$ac_try;; 5599esac 5600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5602 ac_status=$? 5603 grep -v '^ *+' conftest.er1 >conftest.err 5604 rm -f conftest.er1 5605 cat conftest.err >&5 5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5607 (exit $ac_status); } >/dev/null && { 5608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5609 test ! -s conftest.err 5610 }; then 5611 ac_header_preproc=yes 5612else 5613 echo "$as_me: failed program was:" >&5 5614sed 's/^/| /' conftest.$ac_ext >&5 5615 5616 ac_header_preproc=no 5617fi 5618 5619rm -f conftest.err conftest.$ac_ext 5620{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5621echo "${ECHO_T}$ac_header_preproc" >&6; } 5622 5623# So? What about this header? 5624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5625 yes:no: ) 5626 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5627echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5628 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5629echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5630 ac_header_preproc=yes 5631 ;; 5632 no:yes:* ) 5633 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5634echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5635 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5636echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5637 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5638echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5639 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5640echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5641 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5642echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5643 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5644echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5645 5646 ;; 5647esac 5648{ echo "$as_me:$LINENO: checking for values.h" >&5 5649echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5650if test "${ac_cv_header_values_h+set}" = set; then 5651 echo $ECHO_N "(cached) $ECHO_C" >&6 5652else 5653 ac_cv_header_values_h=$ac_header_preproc 5654fi 5655{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5656echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5657 5658fi 5659if test $ac_cv_header_values_h = yes; then 5660 : 5661else 5662 5663cat >>confdefs.h <<\_ACEOF 5664#define NO_VALUES_H 1 5665_ACEOF 5666 5667fi 5668 5669 5670 if test "${ac_cv_header_limits_h+set}" = set; then 5671 { echo "$as_me:$LINENO: checking for limits.h" >&5 5672echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5673if test "${ac_cv_header_limits_h+set}" = set; then 5674 echo $ECHO_N "(cached) $ECHO_C" >&6 5675fi 5676{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5677echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5678else 5679 # Is the header compilable? 5680{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5681echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5682cat >conftest.$ac_ext <<_ACEOF 5683/* confdefs.h. */ 5684_ACEOF 5685cat confdefs.h >>conftest.$ac_ext 5686cat >>conftest.$ac_ext <<_ACEOF 5687/* end confdefs.h. */ 5688$ac_includes_default 5689#include <limits.h> 5690_ACEOF 5691rm -f conftest.$ac_objext 5692if { (ac_try="$ac_compile" 5693case "(($ac_try" in 5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5695 *) ac_try_echo=$ac_try;; 5696esac 5697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5698 (eval "$ac_compile") 2>conftest.er1 5699 ac_status=$? 5700 grep -v '^ *+' conftest.er1 >conftest.err 5701 rm -f conftest.er1 5702 cat conftest.err >&5 5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5704 (exit $ac_status); } && { 5705 test -z "$ac_c_werror_flag" || 5706 test ! -s conftest.err 5707 } && test -s conftest.$ac_objext; then 5708 ac_header_compiler=yes 5709else 5710 echo "$as_me: failed program was:" >&5 5711sed 's/^/| /' conftest.$ac_ext >&5 5712 5713 ac_header_compiler=no 5714fi 5715 5716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5717{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5718echo "${ECHO_T}$ac_header_compiler" >&6; } 5719 5720# Is the header present? 5721{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5722echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5723cat >conftest.$ac_ext <<_ACEOF 5724/* confdefs.h. */ 5725_ACEOF 5726cat confdefs.h >>conftest.$ac_ext 5727cat >>conftest.$ac_ext <<_ACEOF 5728/* end confdefs.h. */ 5729#include <limits.h> 5730_ACEOF 5731if { (ac_try="$ac_cpp conftest.$ac_ext" 5732case "(($ac_try" in 5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5734 *) ac_try_echo=$ac_try;; 5735esac 5736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5738 ac_status=$? 5739 grep -v '^ *+' conftest.er1 >conftest.err 5740 rm -f conftest.er1 5741 cat conftest.err >&5 5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5743 (exit $ac_status); } >/dev/null && { 5744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5745 test ! -s conftest.err 5746 }; then 5747 ac_header_preproc=yes 5748else 5749 echo "$as_me: failed program was:" >&5 5750sed 's/^/| /' conftest.$ac_ext >&5 5751 5752 ac_header_preproc=no 5753fi 5754 5755rm -f conftest.err conftest.$ac_ext 5756{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5757echo "${ECHO_T}$ac_header_preproc" >&6; } 5758 5759# So? What about this header? 5760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5761 yes:no: ) 5762 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5763echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5764 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5765echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5766 ac_header_preproc=yes 5767 ;; 5768 no:yes:* ) 5769 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5770echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5771 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5772echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5773 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5774echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5775 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5776echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5777 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5778echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5779 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5780echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5781 5782 ;; 5783esac 5784{ echo "$as_me:$LINENO: checking for limits.h" >&5 5785echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5786if test "${ac_cv_header_limits_h+set}" = set; then 5787 echo $ECHO_N "(cached) $ECHO_C" >&6 5788else 5789 ac_cv_header_limits_h=$ac_header_preproc 5790fi 5791{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5792echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5793 5794fi 5795if test $ac_cv_header_limits_h = yes; then 5796 5797cat >>confdefs.h <<\_ACEOF 5798#define HAVE_LIMITS_H 1 5799_ACEOF 5800 5801else 5802 5803cat >>confdefs.h <<\_ACEOF 5804#define NO_LIMITS_H 1 5805_ACEOF 5806 5807fi 5808 5809 5810 if test "${ac_cv_header_stdlib_h+set}" = set; then 5811 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5812echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5813if test "${ac_cv_header_stdlib_h+set}" = set; then 5814 echo $ECHO_N "(cached) $ECHO_C" >&6 5815fi 5816{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5817echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5818else 5819 # Is the header compilable? 5820{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5821echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5822cat >conftest.$ac_ext <<_ACEOF 5823/* confdefs.h. */ 5824_ACEOF 5825cat confdefs.h >>conftest.$ac_ext 5826cat >>conftest.$ac_ext <<_ACEOF 5827/* end confdefs.h. */ 5828$ac_includes_default 5829#include <stdlib.h> 5830_ACEOF 5831rm -f conftest.$ac_objext 5832if { (ac_try="$ac_compile" 5833case "(($ac_try" in 5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5835 *) ac_try_echo=$ac_try;; 5836esac 5837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5838 (eval "$ac_compile") 2>conftest.er1 5839 ac_status=$? 5840 grep -v '^ *+' conftest.er1 >conftest.err 5841 rm -f conftest.er1 5842 cat conftest.err >&5 5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5844 (exit $ac_status); } && { 5845 test -z "$ac_c_werror_flag" || 5846 test ! -s conftest.err 5847 } && test -s conftest.$ac_objext; then 5848 ac_header_compiler=yes 5849else 5850 echo "$as_me: failed program was:" >&5 5851sed 's/^/| /' conftest.$ac_ext >&5 5852 5853 ac_header_compiler=no 5854fi 5855 5856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5857{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5858echo "${ECHO_T}$ac_header_compiler" >&6; } 5859 5860# Is the header present? 5861{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5862echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 5863cat >conftest.$ac_ext <<_ACEOF 5864/* confdefs.h. */ 5865_ACEOF 5866cat confdefs.h >>conftest.$ac_ext 5867cat >>conftest.$ac_ext <<_ACEOF 5868/* end confdefs.h. */ 5869#include <stdlib.h> 5870_ACEOF 5871if { (ac_try="$ac_cpp conftest.$ac_ext" 5872case "(($ac_try" in 5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5874 *) ac_try_echo=$ac_try;; 5875esac 5876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5878 ac_status=$? 5879 grep -v '^ *+' conftest.er1 >conftest.err 5880 rm -f conftest.er1 5881 cat conftest.err >&5 5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5883 (exit $ac_status); } >/dev/null && { 5884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5885 test ! -s conftest.err 5886 }; then 5887 ac_header_preproc=yes 5888else 5889 echo "$as_me: failed program was:" >&5 5890sed 's/^/| /' conftest.$ac_ext >&5 5891 5892 ac_header_preproc=no 5893fi 5894 5895rm -f conftest.err conftest.$ac_ext 5896{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5897echo "${ECHO_T}$ac_header_preproc" >&6; } 5898 5899# So? What about this header? 5900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5901 yes:no: ) 5902 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5903echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5904 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5905echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5906 ac_header_preproc=yes 5907 ;; 5908 no:yes:* ) 5909 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5910echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5911 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5912echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5913 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5914echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5915 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5916echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5917 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5918echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5919 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5920echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5921 5922 ;; 5923esac 5924{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 5925echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5926if test "${ac_cv_header_stdlib_h+set}" = set; then 5927 echo $ECHO_N "(cached) $ECHO_C" >&6 5928else 5929 ac_cv_header_stdlib_h=$ac_header_preproc 5930fi 5931{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5932echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5933 5934fi 5935if test $ac_cv_header_stdlib_h = yes; then 5936 tcl_ok=1 5937else 5938 tcl_ok=0 5939fi 5940 5941 5942 cat >conftest.$ac_ext <<_ACEOF 5943/* confdefs.h. */ 5944_ACEOF 5945cat confdefs.h >>conftest.$ac_ext 5946cat >>conftest.$ac_ext <<_ACEOF 5947/* end confdefs.h. */ 5948#include <stdlib.h> 5949 5950_ACEOF 5951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5952 $EGREP "strtol" >/dev/null 2>&1; then 5953 : 5954else 5955 tcl_ok=0 5956fi 5957rm -f -r conftest* 5958 5959 cat >conftest.$ac_ext <<_ACEOF 5960/* confdefs.h. */ 5961_ACEOF 5962cat confdefs.h >>conftest.$ac_ext 5963cat >>conftest.$ac_ext <<_ACEOF 5964/* end confdefs.h. */ 5965#include <stdlib.h> 5966 5967_ACEOF 5968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5969 $EGREP "strtoul" >/dev/null 2>&1; then 5970 : 5971else 5972 tcl_ok=0 5973fi 5974rm -f -r conftest* 5975 5976 cat >conftest.$ac_ext <<_ACEOF 5977/* confdefs.h. */ 5978_ACEOF 5979cat confdefs.h >>conftest.$ac_ext 5980cat >>conftest.$ac_ext <<_ACEOF 5981/* end confdefs.h. */ 5982#include <stdlib.h> 5983 5984_ACEOF 5985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5986 $EGREP "strtod" >/dev/null 2>&1; then 5987 : 5988else 5989 tcl_ok=0 5990fi 5991rm -f -r conftest* 5992 5993 if test $tcl_ok = 0; then 5994 5995cat >>confdefs.h <<\_ACEOF 5996#define NO_STDLIB_H 1 5997_ACEOF 5998 5999 fi 6000 if test "${ac_cv_header_string_h+set}" = set; then 6001 { echo "$as_me:$LINENO: checking for string.h" >&5 6002echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6003if test "${ac_cv_header_string_h+set}" = set; then 6004 echo $ECHO_N "(cached) $ECHO_C" >&6 6005fi 6006{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6007echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6008else 6009 # Is the header compilable? 6010{ echo "$as_me:$LINENO: checking string.h usability" >&5 6011echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6012cat >conftest.$ac_ext <<_ACEOF 6013/* confdefs.h. */ 6014_ACEOF 6015cat confdefs.h >>conftest.$ac_ext 6016cat >>conftest.$ac_ext <<_ACEOF 6017/* end confdefs.h. */ 6018$ac_includes_default 6019#include <string.h> 6020_ACEOF 6021rm -f conftest.$ac_objext 6022if { (ac_try="$ac_compile" 6023case "(($ac_try" in 6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6025 *) ac_try_echo=$ac_try;; 6026esac 6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6028 (eval "$ac_compile") 2>conftest.er1 6029 ac_status=$? 6030 grep -v '^ *+' conftest.er1 >conftest.err 6031 rm -f conftest.er1 6032 cat conftest.err >&5 6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6034 (exit $ac_status); } && { 6035 test -z "$ac_c_werror_flag" || 6036 test ! -s conftest.err 6037 } && test -s conftest.$ac_objext; then 6038 ac_header_compiler=yes 6039else 6040 echo "$as_me: failed program was:" >&5 6041sed 's/^/| /' conftest.$ac_ext >&5 6042 6043 ac_header_compiler=no 6044fi 6045 6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6047{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6048echo "${ECHO_T}$ac_header_compiler" >&6; } 6049 6050# Is the header present? 6051{ echo "$as_me:$LINENO: checking string.h presence" >&5 6052echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6053cat >conftest.$ac_ext <<_ACEOF 6054/* confdefs.h. */ 6055_ACEOF 6056cat confdefs.h >>conftest.$ac_ext 6057cat >>conftest.$ac_ext <<_ACEOF 6058/* end confdefs.h. */ 6059#include <string.h> 6060_ACEOF 6061if { (ac_try="$ac_cpp conftest.$ac_ext" 6062case "(($ac_try" in 6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6064 *) ac_try_echo=$ac_try;; 6065esac 6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6068 ac_status=$? 6069 grep -v '^ *+' conftest.er1 >conftest.err 6070 rm -f conftest.er1 6071 cat conftest.err >&5 6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6073 (exit $ac_status); } >/dev/null && { 6074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6075 test ! -s conftest.err 6076 }; then 6077 ac_header_preproc=yes 6078else 6079 echo "$as_me: failed program was:" >&5 6080sed 's/^/| /' conftest.$ac_ext >&5 6081 6082 ac_header_preproc=no 6083fi 6084 6085rm -f conftest.err conftest.$ac_ext 6086{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6087echo "${ECHO_T}$ac_header_preproc" >&6; } 6088 6089# So? What about this header? 6090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6091 yes:no: ) 6092 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6093echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6094 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6095echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6096 ac_header_preproc=yes 6097 ;; 6098 no:yes:* ) 6099 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6100echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6101 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6102echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6103 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6104echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6105 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6106echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6107 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6108echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6109 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6110echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6111 6112 ;; 6113esac 6114{ echo "$as_me:$LINENO: checking for string.h" >&5 6115echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6116if test "${ac_cv_header_string_h+set}" = set; then 6117 echo $ECHO_N "(cached) $ECHO_C" >&6 6118else 6119 ac_cv_header_string_h=$ac_header_preproc 6120fi 6121{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6122echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6123 6124fi 6125if test $ac_cv_header_string_h = yes; then 6126 tcl_ok=1 6127else 6128 tcl_ok=0 6129fi 6130 6131 6132 cat >conftest.$ac_ext <<_ACEOF 6133/* confdefs.h. */ 6134_ACEOF 6135cat confdefs.h >>conftest.$ac_ext 6136cat >>conftest.$ac_ext <<_ACEOF 6137/* end confdefs.h. */ 6138#include <string.h> 6139 6140_ACEOF 6141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6142 $EGREP "strstr" >/dev/null 2>&1; then 6143 : 6144else 6145 tcl_ok=0 6146fi 6147rm -f -r conftest* 6148 6149 cat >conftest.$ac_ext <<_ACEOF 6150/* confdefs.h. */ 6151_ACEOF 6152cat confdefs.h >>conftest.$ac_ext 6153cat >>conftest.$ac_ext <<_ACEOF 6154/* end confdefs.h. */ 6155#include <string.h> 6156 6157_ACEOF 6158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6159 $EGREP "strerror" >/dev/null 2>&1; then 6160 : 6161else 6162 tcl_ok=0 6163fi 6164rm -f -r conftest* 6165 6166 6167 # See also memmove check below for a place where NO_STRING_H can be 6168 # set and why. 6169 6170 if test $tcl_ok = 0; then 6171 6172cat >>confdefs.h <<\_ACEOF 6173#define NO_STRING_H 1 6174_ACEOF 6175 6176 fi 6177 6178 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6179 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6180echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6181if test "${ac_cv_header_sys_wait_h+set}" = set; then 6182 echo $ECHO_N "(cached) $ECHO_C" >&6 6183fi 6184{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6185echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6186else 6187 # Is the header compilable? 6188{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6189echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6190cat >conftest.$ac_ext <<_ACEOF 6191/* confdefs.h. */ 6192_ACEOF 6193cat confdefs.h >>conftest.$ac_ext 6194cat >>conftest.$ac_ext <<_ACEOF 6195/* end confdefs.h. */ 6196$ac_includes_default 6197#include <sys/wait.h> 6198_ACEOF 6199rm -f conftest.$ac_objext 6200if { (ac_try="$ac_compile" 6201case "(($ac_try" in 6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6203 *) ac_try_echo=$ac_try;; 6204esac 6205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6206 (eval "$ac_compile") 2>conftest.er1 6207 ac_status=$? 6208 grep -v '^ *+' conftest.er1 >conftest.err 6209 rm -f conftest.er1 6210 cat conftest.err >&5 6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6212 (exit $ac_status); } && { 6213 test -z "$ac_c_werror_flag" || 6214 test ! -s conftest.err 6215 } && test -s conftest.$ac_objext; then 6216 ac_header_compiler=yes 6217else 6218 echo "$as_me: failed program was:" >&5 6219sed 's/^/| /' conftest.$ac_ext >&5 6220 6221 ac_header_compiler=no 6222fi 6223 6224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6225{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6226echo "${ECHO_T}$ac_header_compiler" >&6; } 6227 6228# Is the header present? 6229{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6230echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6231cat >conftest.$ac_ext <<_ACEOF 6232/* confdefs.h. */ 6233_ACEOF 6234cat confdefs.h >>conftest.$ac_ext 6235cat >>conftest.$ac_ext <<_ACEOF 6236/* end confdefs.h. */ 6237#include <sys/wait.h> 6238_ACEOF 6239if { (ac_try="$ac_cpp conftest.$ac_ext" 6240case "(($ac_try" in 6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6242 *) ac_try_echo=$ac_try;; 6243esac 6244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6246 ac_status=$? 6247 grep -v '^ *+' conftest.er1 >conftest.err 6248 rm -f conftest.er1 6249 cat conftest.err >&5 6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6251 (exit $ac_status); } >/dev/null && { 6252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6253 test ! -s conftest.err 6254 }; then 6255 ac_header_preproc=yes 6256else 6257 echo "$as_me: failed program was:" >&5 6258sed 's/^/| /' conftest.$ac_ext >&5 6259 6260 ac_header_preproc=no 6261fi 6262 6263rm -f conftest.err conftest.$ac_ext 6264{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6265echo "${ECHO_T}$ac_header_preproc" >&6; } 6266 6267# So? What about this header? 6268case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6269 yes:no: ) 6270 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6271echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6272 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6273echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6274 ac_header_preproc=yes 6275 ;; 6276 no:yes:* ) 6277 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6278echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6279 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6280echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6281 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6282echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6283 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6284echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6285 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6286echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6287 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6288echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6289 6290 ;; 6291esac 6292{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6293echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6294if test "${ac_cv_header_sys_wait_h+set}" = set; then 6295 echo $ECHO_N "(cached) $ECHO_C" >&6 6296else 6297 ac_cv_header_sys_wait_h=$ac_header_preproc 6298fi 6299{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6300echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6301 6302fi 6303if test $ac_cv_header_sys_wait_h = yes; then 6304 : 6305else 6306 6307cat >>confdefs.h <<\_ACEOF 6308#define NO_SYS_WAIT_H 1 6309_ACEOF 6310 6311fi 6312 6313 6314 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6315 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6316echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6317if test "${ac_cv_header_dlfcn_h+set}" = set; then 6318 echo $ECHO_N "(cached) $ECHO_C" >&6 6319fi 6320{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6321echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6322else 6323 # Is the header compilable? 6324{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6325echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6326cat >conftest.$ac_ext <<_ACEOF 6327/* confdefs.h. */ 6328_ACEOF 6329cat confdefs.h >>conftest.$ac_ext 6330cat >>conftest.$ac_ext <<_ACEOF 6331/* end confdefs.h. */ 6332$ac_includes_default 6333#include <dlfcn.h> 6334_ACEOF 6335rm -f conftest.$ac_objext 6336if { (ac_try="$ac_compile" 6337case "(($ac_try" in 6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6339 *) ac_try_echo=$ac_try;; 6340esac 6341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6342 (eval "$ac_compile") 2>conftest.er1 6343 ac_status=$? 6344 grep -v '^ *+' conftest.er1 >conftest.err 6345 rm -f conftest.er1 6346 cat conftest.err >&5 6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6348 (exit $ac_status); } && { 6349 test -z "$ac_c_werror_flag" || 6350 test ! -s conftest.err 6351 } && test -s conftest.$ac_objext; then 6352 ac_header_compiler=yes 6353else 6354 echo "$as_me: failed program was:" >&5 6355sed 's/^/| /' conftest.$ac_ext >&5 6356 6357 ac_header_compiler=no 6358fi 6359 6360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6361{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6362echo "${ECHO_T}$ac_header_compiler" >&6; } 6363 6364# Is the header present? 6365{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6366echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6367cat >conftest.$ac_ext <<_ACEOF 6368/* confdefs.h. */ 6369_ACEOF 6370cat confdefs.h >>conftest.$ac_ext 6371cat >>conftest.$ac_ext <<_ACEOF 6372/* end confdefs.h. */ 6373#include <dlfcn.h> 6374_ACEOF 6375if { (ac_try="$ac_cpp conftest.$ac_ext" 6376case "(($ac_try" in 6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6378 *) ac_try_echo=$ac_try;; 6379esac 6380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6382 ac_status=$? 6383 grep -v '^ *+' conftest.er1 >conftest.err 6384 rm -f conftest.er1 6385 cat conftest.err >&5 6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6387 (exit $ac_status); } >/dev/null && { 6388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6389 test ! -s conftest.err 6390 }; then 6391 ac_header_preproc=yes 6392else 6393 echo "$as_me: failed program was:" >&5 6394sed 's/^/| /' conftest.$ac_ext >&5 6395 6396 ac_header_preproc=no 6397fi 6398 6399rm -f conftest.err conftest.$ac_ext 6400{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6401echo "${ECHO_T}$ac_header_preproc" >&6; } 6402 6403# So? What about this header? 6404case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6405 yes:no: ) 6406 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6407echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6408 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6409echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6410 ac_header_preproc=yes 6411 ;; 6412 no:yes:* ) 6413 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6414echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6415 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6416echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6417 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6418echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6419 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6420echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6421 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6422echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6423 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6424echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6425 6426 ;; 6427esac 6428{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6429echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6430if test "${ac_cv_header_dlfcn_h+set}" = set; then 6431 echo $ECHO_N "(cached) $ECHO_C" >&6 6432else 6433 ac_cv_header_dlfcn_h=$ac_header_preproc 6434fi 6435{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6436echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6437 6438fi 6439if test $ac_cv_header_dlfcn_h = yes; then 6440 : 6441else 6442 6443cat >>confdefs.h <<\_ACEOF 6444#define NO_DLFCN_H 1 6445_ACEOF 6446 6447fi 6448 6449 6450 6451 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6452 6453for ac_header in sys/param.h 6454do 6455as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6456if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6457 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6460 echo $ECHO_N "(cached) $ECHO_C" >&6 6461fi 6462ac_res=`eval echo '${'$as_ac_Header'}'` 6463 { echo "$as_me:$LINENO: result: $ac_res" >&5 6464echo "${ECHO_T}$ac_res" >&6; } 6465else 6466 # Is the header compilable? 6467{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6468echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6469cat >conftest.$ac_ext <<_ACEOF 6470/* confdefs.h. */ 6471_ACEOF 6472cat confdefs.h >>conftest.$ac_ext 6473cat >>conftest.$ac_ext <<_ACEOF 6474/* end confdefs.h. */ 6475$ac_includes_default 6476#include <$ac_header> 6477_ACEOF 6478rm -f conftest.$ac_objext 6479if { (ac_try="$ac_compile" 6480case "(($ac_try" in 6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6482 *) ac_try_echo=$ac_try;; 6483esac 6484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6485 (eval "$ac_compile") 2>conftest.er1 6486 ac_status=$? 6487 grep -v '^ *+' conftest.er1 >conftest.err 6488 rm -f conftest.er1 6489 cat conftest.err >&5 6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6491 (exit $ac_status); } && { 6492 test -z "$ac_c_werror_flag" || 6493 test ! -s conftest.err 6494 } && test -s conftest.$ac_objext; then 6495 ac_header_compiler=yes 6496else 6497 echo "$as_me: failed program was:" >&5 6498sed 's/^/| /' conftest.$ac_ext >&5 6499 6500 ac_header_compiler=no 6501fi 6502 6503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6504{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6505echo "${ECHO_T}$ac_header_compiler" >&6; } 6506 6507# Is the header present? 6508{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6510cat >conftest.$ac_ext <<_ACEOF 6511/* confdefs.h. */ 6512_ACEOF 6513cat confdefs.h >>conftest.$ac_ext 6514cat >>conftest.$ac_ext <<_ACEOF 6515/* end confdefs.h. */ 6516#include <$ac_header> 6517_ACEOF 6518if { (ac_try="$ac_cpp conftest.$ac_ext" 6519case "(($ac_try" in 6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6521 *) ac_try_echo=$ac_try;; 6522esac 6523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6525 ac_status=$? 6526 grep -v '^ *+' conftest.er1 >conftest.err 6527 rm -f conftest.er1 6528 cat conftest.err >&5 6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6530 (exit $ac_status); } >/dev/null && { 6531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6532 test ! -s conftest.err 6533 }; then 6534 ac_header_preproc=yes 6535else 6536 echo "$as_me: failed program was:" >&5 6537sed 's/^/| /' conftest.$ac_ext >&5 6538 6539 ac_header_preproc=no 6540fi 6541 6542rm -f conftest.err conftest.$ac_ext 6543{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6544echo "${ECHO_T}$ac_header_preproc" >&6; } 6545 6546# So? What about this header? 6547case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6548 yes:no: ) 6549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6550echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6552echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6553 ac_header_preproc=yes 6554 ;; 6555 no:yes:* ) 6556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6559echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6561echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6563echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6565echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6567echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6568 6569 ;; 6570esac 6571{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6574 echo $ECHO_N "(cached) $ECHO_C" >&6 6575else 6576 eval "$as_ac_Header=\$ac_header_preproc" 6577fi 6578ac_res=`eval echo '${'$as_ac_Header'}'` 6579 { echo "$as_me:$LINENO: result: $ac_res" >&5 6580echo "${ECHO_T}$ac_res" >&6; } 6581 6582fi 6583if test `eval echo '${'$as_ac_Header'}'` = yes; then 6584 cat >>confdefs.h <<_ACEOF 6585#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6586_ACEOF 6587 6588fi 6589 6590done 6591 6592 6593 # Let the user call this, because if it triggers, they will 6594 # need a compat/strtod.c that is correct. Users can also 6595 # use Tcl_GetDouble(FromObj) instead. 6596 #TEA_BUGGY_STRTOD 6597 fi 6598 6599 6600#----------------------------------------------------------------------- 6601# __CHANGE__ 6602# Specify the C source files to compile in TEA_ADD_SOURCES, 6603# public headers that need to be installed in TEA_ADD_HEADERS, 6604# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6605# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6606# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6607# and PKG_TCL_SOURCES. 6608#----------------------------------------------------------------------- 6609 6610 6611 vars="" 6612 for i in $vars; do 6613 case $i in 6614 \$*) 6615 # allow $-var names 6616 PKG_SOURCES="$PKG_SOURCES $i" 6617 PKG_OBJECTS="$PKG_OBJECTS $i" 6618 ;; 6619 *) 6620 # check for existence - allows for generic/win/unix VPATH 6621 # To add more dirs here (like 'src'), you have to update VPATH 6622 # in Makefile.in as well 6623 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6624 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6625 -a ! -f "${srcdir}/macosx/$i" \ 6626 ; then 6627 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6628echo "$as_me: error: could not find source file '$i'" >&2;} 6629 { (exit 1); exit 1; }; } 6630 fi 6631 PKG_SOURCES="$PKG_SOURCES $i" 6632 # this assumes it is in a VPATH dir 6633 i=`basename $i` 6634 # handle user calling this before or after TEA_SETUP_COMPILER 6635 if test x"${OBJEXT}" != x ; then 6636 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6637 else 6638 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6639 fi 6640 PKG_OBJECTS="$PKG_OBJECTS $j" 6641 ;; 6642 esac 6643 done 6644 6645 6646 6647 6648 vars="" 6649 for i in $vars; do 6650 # check for existence, be strict because it is installed 6651 if test ! -f "${srcdir}/$i" ; then 6652 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6653echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6654 { (exit 1); exit 1; }; } 6655 fi 6656 PKG_HEADERS="$PKG_HEADERS $i" 6657 done 6658 6659 6660 6661 vars="" 6662 for i in $vars; do 6663 PKG_INCLUDES="$PKG_INCLUDES $i" 6664 done 6665 6666 6667 6668 vars="" 6669 for i in $vars; do 6670 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6671 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6672 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6673 fi 6674 PKG_LIBS="$PKG_LIBS $i" 6675 done 6676 6677 6678 6679 PKG_CFLAGS="$PKG_CFLAGS " 6680 6681 6682 6683 vars="" 6684 for i in $vars; do 6685 # check for existence - allows for generic/win/unix VPATH 6686 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6687 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6688 -a ! -f "${srcdir}/macosx/$i" \ 6689 ; then 6690 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6691echo "$as_me: error: could not find stub source file '$i'" >&2;} 6692 { (exit 1); exit 1; }; } 6693 fi 6694 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6695 # this assumes it is in a VPATH dir 6696 i=`basename $i` 6697 # handle user calling this before or after TEA_SETUP_COMPILER 6698 if test x"${OBJEXT}" != x ; then 6699 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6700 else 6701 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6702 fi 6703 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6704 done 6705 6706 6707 6708 6709 vars="" 6710 for i in $vars; do 6711 # check for existence, be strict because it is installed 6712 if test ! -f "${srcdir}/$i" ; then 6713 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6714echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6715 { (exit 1); exit 1; }; } 6716 fi 6717 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6718 done 6719 6720 6721 6722#-------------------------------------------------------------------- 6723# A few miscellaneous platform-specific items: 6724# 6725# Define a special symbol for Windows (BUILD_sample in this case) so 6726# that we create the export library with the dll. See sha1.h on how 6727# to use this. 6728# 6729# Windows creates a few extra files that need to be cleaned up. 6730# You can add more files to clean if your extension creates any extra 6731# files. 6732# 6733# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 6734# These will be appended to the current set of compiler flags for 6735# your system. 6736#-------------------------------------------------------------------- 6737 6738if test "${TEA_PLATFORM}" = "windows" ; then 6739 cat >>confdefs.h <<\_ACEOF 6740#define BUILD_tls 1 6741_ACEOF 6742 6743 cat >>confdefs.h <<\_ACEOF 6744#define WINDOWS 1 6745_ACEOF 6746 6747 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" 6748else 6749 CLEANFILES="pkgIndex.tcl" 6750fi 6751 6752 6753#-------------------------------------------------------------------- 6754# Choose which headers you need. Extension authors should try very 6755# hard to only rely on the Tcl public header files. Internal headers 6756# contain private data structures and are subject to change without 6757# notice. 6758# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 6759#-------------------------------------------------------------------- 6760 6761 6762 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6763echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6764 6765 6766# Check whether --with-tclinclude was given. 6767if test "${with_tclinclude+set}" = set; then 6768 withval=$with_tclinclude; with_tclinclude=${withval} 6769fi 6770 6771 6772 if test "${ac_cv_c_tclh+set}" = set; then 6773 echo $ECHO_N "(cached) $ECHO_C" >&6 6774else 6775 6776 # Use the value from --with-tclinclude, if it was given 6777 6778 if test x"${with_tclinclude}" != x ; then 6779 if test -f "${with_tclinclude}/tcl.h" ; then 6780 ac_cv_c_tclh=${with_tclinclude} 6781 else 6782 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6783echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6784 { (exit 1); exit 1; }; } 6785 fi 6786 else 6787 list="" 6788 if test "`uname -s`" = "Darwin"; then 6789 # If Tcl was built as a framework, attempt to use 6790 # the framework's Headers directory 6791 case ${TCL_DEFS} in 6792 *TCL_FRAMEWORK*) 6793 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6794 ;; 6795 esac 6796 fi 6797 6798 # Look in the source dir only if Tcl is not installed, 6799 # and in that situation, look there before installed locations. 6800 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6801 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6802 fi 6803 6804 # Check order: pkg --prefix location, Tcl's --prefix location, 6805 # relative to directory of tclConfig.sh. 6806 6807 eval "temp_includedir=${includedir}" 6808 list="$list \ 6809 `ls -d ${temp_includedir} 2>/dev/null` \ 6810 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6811 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6812 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6813 list="$list /usr/local/include /usr/include" 6814 if test x"${TCL_INCLUDE_SPEC}" != x ; then 6815 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 6816 list="$list `ls -d ${d} 2>/dev/null`" 6817 fi 6818 fi 6819 for i in $list ; do 6820 if test -f "$i/tcl.h" ; then 6821 ac_cv_c_tclh=$i 6822 break 6823 fi 6824 done 6825 fi 6826 6827fi 6828 6829 6830 # Print a message based on how we determined the include path 6831 6832 if test x"${ac_cv_c_tclh}" = x ; then 6833 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 6834echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 6835 { (exit 1); exit 1; }; } 6836 else 6837 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 6838echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 6839 fi 6840 6841 # Convert to a native path and substitute into the output files. 6842 6843 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 6844 6845 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 6846 6847 6848 6849 6850#-------------------------------------------------------------------- 6851# Check whether --enable-threads or --disable-threads was given. 6852#-------------------------------------------------------------------- 6853 6854 6855 # Check whether --enable-threads was given. 6856if test "${enable_threads+set}" = set; then 6857 enableval=$enable_threads; tcl_ok=$enableval 6858else 6859 tcl_ok=yes 6860fi 6861 6862 6863 if test "${enable_threads+set}" = set; then 6864 enableval="$enable_threads" 6865 tcl_ok=$enableval 6866 else 6867 tcl_ok=yes 6868 fi 6869 6870 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 6871 TCL_THREADS=1 6872 6873 if test "${TEA_PLATFORM}" != "windows" ; then 6874 # We are always OK on Windows, so check what this platform wants: 6875 6876 # USE_THREAD_ALLOC tells us to try the special thread-based 6877 # allocator that significantly reduces lock contention 6878 6879cat >>confdefs.h <<\_ACEOF 6880#define USE_THREAD_ALLOC 1 6881_ACEOF 6882 6883 6884cat >>confdefs.h <<\_ACEOF 6885#define _REENTRANT 1 6886_ACEOF 6887 6888 if test "`uname -s`" = "SunOS" ; then 6889 6890cat >>confdefs.h <<\_ACEOF 6891#define _POSIX_PTHREAD_SEMANTICS 1 6892_ACEOF 6893 6894 fi 6895 6896cat >>confdefs.h <<\_ACEOF 6897#define _THREAD_SAFE 1 6898_ACEOF 6899 6900 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 6901echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 6902if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 6903 echo $ECHO_N "(cached) $ECHO_C" >&6 6904else 6905 ac_check_lib_save_LIBS=$LIBS 6906LIBS="-lpthread $LIBS" 6907cat >conftest.$ac_ext <<_ACEOF 6908/* confdefs.h. */ 6909_ACEOF 6910cat confdefs.h >>conftest.$ac_ext 6911cat >>conftest.$ac_ext <<_ACEOF 6912/* end confdefs.h. */ 6913 6914/* Override any GCC internal prototype to avoid an error. 6915 Use char because int might match the return type of a GCC 6916 builtin and then its argument prototype would still apply. */ 6917#ifdef __cplusplus 6918extern "C" 6919#endif 6920char pthread_mutex_init (); 6921int 6922main () 6923{ 6924return pthread_mutex_init (); 6925 ; 6926 return 0; 6927} 6928_ACEOF 6929rm -f conftest.$ac_objext conftest$ac_exeext 6930if { (ac_try="$ac_link" 6931case "(($ac_try" in 6932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6933 *) ac_try_echo=$ac_try;; 6934esac 6935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6936 (eval "$ac_link") 2>conftest.er1 6937 ac_status=$? 6938 grep -v '^ *+' conftest.er1 >conftest.err 6939 rm -f conftest.er1 6940 cat conftest.err >&5 6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6942 (exit $ac_status); } && { 6943 test -z "$ac_c_werror_flag" || 6944 test ! -s conftest.err 6945 } && test -s conftest$ac_exeext && 6946 $as_test_x conftest$ac_exeext; then 6947 ac_cv_lib_pthread_pthread_mutex_init=yes 6948else 6949 echo "$as_me: failed program was:" >&5 6950sed 's/^/| /' conftest.$ac_ext >&5 6951 6952 ac_cv_lib_pthread_pthread_mutex_init=no 6953fi 6954 6955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6956 conftest$ac_exeext conftest.$ac_ext 6957LIBS=$ac_check_lib_save_LIBS 6958fi 6959{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 6960echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 6961if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 6962 tcl_ok=yes 6963else 6964 tcl_ok=no 6965fi 6966 6967 if test "$tcl_ok" = "no"; then 6968 # Check a little harder for __pthread_mutex_init in the same 6969 # library, as some systems hide it there until pthread.h is 6970 # defined. We could alternatively do an AC_TRY_COMPILE with 6971 # pthread.h, but that will work with libpthread really doesn't 6972 # exist, like AIX 4.2. [Bug: 4359] 6973 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 6974echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 6975if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 6976 echo $ECHO_N "(cached) $ECHO_C" >&6 6977else 6978 ac_check_lib_save_LIBS=$LIBS 6979LIBS="-lpthread $LIBS" 6980cat >conftest.$ac_ext <<_ACEOF 6981/* confdefs.h. */ 6982_ACEOF 6983cat confdefs.h >>conftest.$ac_ext 6984cat >>conftest.$ac_ext <<_ACEOF 6985/* end confdefs.h. */ 6986 6987/* Override any GCC internal prototype to avoid an error. 6988 Use char because int might match the return type of a GCC 6989 builtin and then its argument prototype would still apply. */ 6990#ifdef __cplusplus 6991extern "C" 6992#endif 6993char __pthread_mutex_init (); 6994int 6995main () 6996{ 6997return __pthread_mutex_init (); 6998 ; 6999 return 0; 7000} 7001_ACEOF 7002rm -f conftest.$ac_objext conftest$ac_exeext 7003if { (ac_try="$ac_link" 7004case "(($ac_try" in 7005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7006 *) ac_try_echo=$ac_try;; 7007esac 7008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7009 (eval "$ac_link") 2>conftest.er1 7010 ac_status=$? 7011 grep -v '^ *+' conftest.er1 >conftest.err 7012 rm -f conftest.er1 7013 cat conftest.err >&5 7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7015 (exit $ac_status); } && { 7016 test -z "$ac_c_werror_flag" || 7017 test ! -s conftest.err 7018 } && test -s conftest$ac_exeext && 7019 $as_test_x conftest$ac_exeext; then 7020 ac_cv_lib_pthread___pthread_mutex_init=yes 7021else 7022 echo "$as_me: failed program was:" >&5 7023sed 's/^/| /' conftest.$ac_ext >&5 7024 7025 ac_cv_lib_pthread___pthread_mutex_init=no 7026fi 7027 7028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7029 conftest$ac_exeext conftest.$ac_ext 7030LIBS=$ac_check_lib_save_LIBS 7031fi 7032{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7033echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7034if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7035 tcl_ok=yes 7036else 7037 tcl_ok=no 7038fi 7039 7040 fi 7041 7042 if test "$tcl_ok" = "yes"; then 7043 # The space is needed 7044 THREADS_LIBS=" -lpthread" 7045 else 7046 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7047echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7048if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7049 echo $ECHO_N "(cached) $ECHO_C" >&6 7050else 7051 ac_check_lib_save_LIBS=$LIBS 7052LIBS="-lpthreads $LIBS" 7053cat >conftest.$ac_ext <<_ACEOF 7054/* confdefs.h. */ 7055_ACEOF 7056cat confdefs.h >>conftest.$ac_ext 7057cat >>conftest.$ac_ext <<_ACEOF 7058/* end confdefs.h. */ 7059 7060/* Override any GCC internal prototype to avoid an error. 7061 Use char because int might match the return type of a GCC 7062 builtin and then its argument prototype would still apply. */ 7063#ifdef __cplusplus 7064extern "C" 7065#endif 7066char pthread_mutex_init (); 7067int 7068main () 7069{ 7070return pthread_mutex_init (); 7071 ; 7072 return 0; 7073} 7074_ACEOF 7075rm -f conftest.$ac_objext conftest$ac_exeext 7076if { (ac_try="$ac_link" 7077case "(($ac_try" in 7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7079 *) ac_try_echo=$ac_try;; 7080esac 7081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7082 (eval "$ac_link") 2>conftest.er1 7083 ac_status=$? 7084 grep -v '^ *+' conftest.er1 >conftest.err 7085 rm -f conftest.er1 7086 cat conftest.err >&5 7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7088 (exit $ac_status); } && { 7089 test -z "$ac_c_werror_flag" || 7090 test ! -s conftest.err 7091 } && test -s conftest$ac_exeext && 7092 $as_test_x conftest$ac_exeext; then 7093 ac_cv_lib_pthreads_pthread_mutex_init=yes 7094else 7095 echo "$as_me: failed program was:" >&5 7096sed 's/^/| /' conftest.$ac_ext >&5 7097 7098 ac_cv_lib_pthreads_pthread_mutex_init=no 7099fi 7100 7101rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7102 conftest$ac_exeext conftest.$ac_ext 7103LIBS=$ac_check_lib_save_LIBS 7104fi 7105{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7106echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7107if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7108 tcl_ok=yes 7109else 7110 tcl_ok=no 7111fi 7112 7113 if test "$tcl_ok" = "yes"; then 7114 # The space is needed 7115 THREADS_LIBS=" -lpthreads" 7116 else 7117 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7118echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7119if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7120 echo $ECHO_N "(cached) $ECHO_C" >&6 7121else 7122 ac_check_lib_save_LIBS=$LIBS 7123LIBS="-lc $LIBS" 7124cat >conftest.$ac_ext <<_ACEOF 7125/* confdefs.h. */ 7126_ACEOF 7127cat confdefs.h >>conftest.$ac_ext 7128cat >>conftest.$ac_ext <<_ACEOF 7129/* end confdefs.h. */ 7130 7131/* Override any GCC internal prototype to avoid an error. 7132 Use char because int might match the return type of a GCC 7133 builtin and then its argument prototype would still apply. */ 7134#ifdef __cplusplus 7135extern "C" 7136#endif 7137char pthread_mutex_init (); 7138int 7139main () 7140{ 7141return pthread_mutex_init (); 7142 ; 7143 return 0; 7144} 7145_ACEOF 7146rm -f conftest.$ac_objext conftest$ac_exeext 7147if { (ac_try="$ac_link" 7148case "(($ac_try" in 7149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7150 *) ac_try_echo=$ac_try;; 7151esac 7152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7153 (eval "$ac_link") 2>conftest.er1 7154 ac_status=$? 7155 grep -v '^ *+' conftest.er1 >conftest.err 7156 rm -f conftest.er1 7157 cat conftest.err >&5 7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7159 (exit $ac_status); } && { 7160 test -z "$ac_c_werror_flag" || 7161 test ! -s conftest.err 7162 } && test -s conftest$ac_exeext && 7163 $as_test_x conftest$ac_exeext; then 7164 ac_cv_lib_c_pthread_mutex_init=yes 7165else 7166 echo "$as_me: failed program was:" >&5 7167sed 's/^/| /' conftest.$ac_ext >&5 7168 7169 ac_cv_lib_c_pthread_mutex_init=no 7170fi 7171 7172rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7173 conftest$ac_exeext conftest.$ac_ext 7174LIBS=$ac_check_lib_save_LIBS 7175fi 7176{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7177echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7178if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7179 tcl_ok=yes 7180else 7181 tcl_ok=no 7182fi 7183 7184 if test "$tcl_ok" = "no"; then 7185 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7186echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7187if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7188 echo $ECHO_N "(cached) $ECHO_C" >&6 7189else 7190 ac_check_lib_save_LIBS=$LIBS 7191LIBS="-lc_r $LIBS" 7192cat >conftest.$ac_ext <<_ACEOF 7193/* confdefs.h. */ 7194_ACEOF 7195cat confdefs.h >>conftest.$ac_ext 7196cat >>conftest.$ac_ext <<_ACEOF 7197/* end confdefs.h. */ 7198 7199/* Override any GCC internal prototype to avoid an error. 7200 Use char because int might match the return type of a GCC 7201 builtin and then its argument prototype would still apply. */ 7202#ifdef __cplusplus 7203extern "C" 7204#endif 7205char pthread_mutex_init (); 7206int 7207main () 7208{ 7209return pthread_mutex_init (); 7210 ; 7211 return 0; 7212} 7213_ACEOF 7214rm -f conftest.$ac_objext conftest$ac_exeext 7215if { (ac_try="$ac_link" 7216case "(($ac_try" in 7217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7218 *) ac_try_echo=$ac_try;; 7219esac 7220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7221 (eval "$ac_link") 2>conftest.er1 7222 ac_status=$? 7223 grep -v '^ *+' conftest.er1 >conftest.err 7224 rm -f conftest.er1 7225 cat conftest.err >&5 7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7227 (exit $ac_status); } && { 7228 test -z "$ac_c_werror_flag" || 7229 test ! -s conftest.err 7230 } && test -s conftest$ac_exeext && 7231 $as_test_x conftest$ac_exeext; then 7232 ac_cv_lib_c_r_pthread_mutex_init=yes 7233else 7234 echo "$as_me: failed program was:" >&5 7235sed 's/^/| /' conftest.$ac_ext >&5 7236 7237 ac_cv_lib_c_r_pthread_mutex_init=no 7238fi 7239 7240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7241 conftest$ac_exeext conftest.$ac_ext 7242LIBS=$ac_check_lib_save_LIBS 7243fi 7244{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7245echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7246if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7247 tcl_ok=yes 7248else 7249 tcl_ok=no 7250fi 7251 7252 if test "$tcl_ok" = "yes"; then 7253 # The space is needed 7254 THREADS_LIBS=" -pthread" 7255 else 7256 TCL_THREADS=0 7257 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7258echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7259 fi 7260 fi 7261 fi 7262 fi 7263 fi 7264 else 7265 TCL_THREADS=0 7266 fi 7267 # Do checking message here to not mess up interleaved configure output 7268 { echo "$as_me:$LINENO: checking for building with threads" >&5 7269echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7270 if test "${TCL_THREADS}" = 1; then 7271 7272cat >>confdefs.h <<\_ACEOF 7273#define TCL_THREADS 1 7274_ACEOF 7275 7276 { echo "$as_me:$LINENO: result: yes (default)" >&5 7277echo "${ECHO_T}yes (default)" >&6; } 7278 else 7279 { echo "$as_me:$LINENO: result: no" >&5 7280echo "${ECHO_T}no" >&6; } 7281 fi 7282 # TCL_THREADS sanity checking. See if our request for building with 7283 # threads is the same as the way Tcl was built. If not, warn the user. 7284 case ${TCL_DEFS} in 7285 *THREADS=1*) 7286 if test "${TCL_THREADS}" = "0"; then 7287 { echo "$as_me:$LINENO: WARNING: 7288 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7289 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7290echo "$as_me: WARNING: 7291 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7292 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7293 fi 7294 ;; 7295 *) 7296 if test "${TCL_THREADS}" = "1"; then 7297 { echo "$as_me:$LINENO: WARNING: 7298 --enable-threads requested, but building against a Tcl that is NOT 7299 thread-enabled. This is an OK configuration that will also run in 7300 a thread-enabled core." >&5 7301echo "$as_me: WARNING: 7302 --enable-threads requested, but building against a Tcl that is NOT 7303 thread-enabled. This is an OK configuration that will also run in 7304 a thread-enabled core." >&2;} 7305 fi 7306 ;; 7307 esac 7308 7309 7310 7311#-------------------------------------------------------------------- 7312# The statement below defines a collection of symbols related to 7313# building as a shared library instead of a static library. 7314#-------------------------------------------------------------------- 7315 7316 7317 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7318echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7319 # Check whether --enable-shared was given. 7320if test "${enable_shared+set}" = set; then 7321 enableval=$enable_shared; tcl_ok=$enableval 7322else 7323 tcl_ok=yes 7324fi 7325 7326 7327 if test "${enable_shared+set}" = set; then 7328 enableval="$enable_shared" 7329 tcl_ok=$enableval 7330 else 7331 tcl_ok=yes 7332 fi 7333 7334 if test "$tcl_ok" = "yes" ; then 7335 { echo "$as_me:$LINENO: result: shared" >&5 7336echo "${ECHO_T}shared" >&6; } 7337 SHARED_BUILD=1 7338 else 7339 { echo "$as_me:$LINENO: result: static" >&5 7340echo "${ECHO_T}static" >&6; } 7341 SHARED_BUILD=0 7342 7343cat >>confdefs.h <<\_ACEOF 7344#define STATIC_BUILD 1 7345_ACEOF 7346 7347 fi 7348 7349 7350 7351#-------------------------------------------------------------------- 7352# This macro figures out what flags to use with the compiler/linker 7353# when building shared/static debug/optimized objects. This information 7354# can be taken from the tclConfig.sh file, but this figures it all out. 7355#-------------------------------------------------------------------- 7356 7357 7358 7359 7360 # Step 0.a: Enable 64 bit support? 7361 7362 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7363echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7364 # Check whether --enable-64bit was given. 7365if test "${enable_64bit+set}" = set; then 7366 enableval=$enable_64bit; do64bit=$enableval 7367else 7368 do64bit=no 7369fi 7370 7371 { echo "$as_me:$LINENO: result: $do64bit" >&5 7372echo "${ECHO_T}$do64bit" >&6; } 7373 7374 # Step 0.b: Enable Solaris 64 bit VIS support? 7375 7376 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7377echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7378 # Check whether --enable-64bit-vis was given. 7379if test "${enable_64bit_vis+set}" = set; then 7380 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7381else 7382 do64bitVIS=no 7383fi 7384 7385 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7386echo "${ECHO_T}$do64bitVIS" >&6; } 7387 # Force 64bit on with VIS 7388 if test "$do64bitVIS" = "yes"; then 7389 do64bit=yes 7390fi 7391 7392 7393 # Step 0.c: Check if visibility support is available. Do this here so 7394 # that platform specific alternatives can be used below if this fails. 7395 7396 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7397echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7398if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7399 echo $ECHO_N "(cached) $ECHO_C" >&6 7400else 7401 7402 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7403 cat >conftest.$ac_ext <<_ACEOF 7404/* confdefs.h. */ 7405_ACEOF 7406cat confdefs.h >>conftest.$ac_ext 7407cat >>conftest.$ac_ext <<_ACEOF 7408/* end confdefs.h. */ 7409 7410 extern __attribute__((__visibility__("hidden"))) void f(void); 7411 void f(void) {} 7412int 7413main () 7414{ 7415f(); 7416 ; 7417 return 0; 7418} 7419_ACEOF 7420rm -f conftest.$ac_objext conftest$ac_exeext 7421if { (ac_try="$ac_link" 7422case "(($ac_try" in 7423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7424 *) ac_try_echo=$ac_try;; 7425esac 7426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7427 (eval "$ac_link") 2>conftest.er1 7428 ac_status=$? 7429 grep -v '^ *+' conftest.er1 >conftest.err 7430 rm -f conftest.er1 7431 cat conftest.err >&5 7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7433 (exit $ac_status); } && { 7434 test -z "$ac_c_werror_flag" || 7435 test ! -s conftest.err 7436 } && test -s conftest$ac_exeext && 7437 $as_test_x conftest$ac_exeext; then 7438 tcl_cv_cc_visibility_hidden=yes 7439else 7440 echo "$as_me: failed program was:" >&5 7441sed 's/^/| /' conftest.$ac_ext >&5 7442 7443 tcl_cv_cc_visibility_hidden=no 7444fi 7445 7446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7447 conftest$ac_exeext conftest.$ac_ext 7448 CFLAGS=$hold_cflags 7449fi 7450{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7451echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7452 if test $tcl_cv_cc_visibility_hidden = yes; then 7453 7454 7455cat >>confdefs.h <<\_ACEOF 7456#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7457_ACEOF 7458 7459 7460fi 7461 7462 7463 # Step 0.d: Disable -rpath support? 7464 7465 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7466echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7467 # Check whether --enable-rpath was given. 7468if test "${enable_rpath+set}" = set; then 7469 enableval=$enable_rpath; doRpath=$enableval 7470else 7471 doRpath=yes 7472fi 7473 7474 { echo "$as_me:$LINENO: result: $doRpath" >&5 7475echo "${ECHO_T}$doRpath" >&6; } 7476 7477 # TEA specific: Cross-compiling options for Windows/CE builds? 7478 7479 if test "${TEA_PLATFORM}" = windows; then 7480 7481 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7482echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7483 # Check whether --enable-wince was given. 7484if test "${enable_wince+set}" = set; then 7485 enableval=$enable_wince; doWince=$enableval 7486else 7487 doWince=no 7488fi 7489 7490 { echo "$as_me:$LINENO: result: $doWince" >&5 7491echo "${ECHO_T}$doWince" >&6; } 7492 7493fi 7494 7495 7496 # Set the variable "system" to hold the name and version number 7497 # for the system. 7498 7499 7500 { echo "$as_me:$LINENO: checking system version" >&5 7501echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7502if test "${tcl_cv_sys_version+set}" = set; then 7503 echo $ECHO_N "(cached) $ECHO_C" >&6 7504else 7505 7506 # TEA specific: 7507 if test "${TEA_PLATFORM}" = "windows" ; then 7508 tcl_cv_sys_version=windows 7509 else 7510 tcl_cv_sys_version=`uname -s`-`uname -r` 7511 if test "$?" -ne 0 ; then 7512 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7513echo "$as_me: WARNING: can't find uname command" >&2;} 7514 tcl_cv_sys_version=unknown 7515 else 7516 if test "`uname -s`" = "AIX" ; then 7517 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7518 fi 7519 fi 7520 fi 7521 7522fi 7523{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7524echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7525 system=$tcl_cv_sys_version 7526 7527 7528 # Require ranlib early so we can override it in special cases below. 7529 7530 7531 7532 # Set configuration options based on system name and version. 7533 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7534 # "windows" case and removed some core-only vars. 7535 7536 do64bit_ok=no 7537 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7538 SHLIB_LD_LIBS='${LIBS}' 7539 # When ld needs options to work in 64-bit mode, put them in 7540 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7541 # is disabled by the user. [Bug 1016796] 7542 LDFLAGS_ARCH="" 7543 UNSHARED_LIB_SUFFIX="" 7544 # TEA specific: use PACKAGE_VERSION instead of VERSION 7545 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7546 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7547 TCL_LIB_VERSIONS_OK=ok 7548 CFLAGS_DEBUG=-g 7549 CFLAGS_OPTIMIZE=-O 7550 if test "$GCC" = yes; then 7551 7552 # TEA specific: 7553 CFLAGS_OPTIMIZE=-O2 7554 CFLAGS_WARNING="-Wall" 7555 7556else 7557 CFLAGS_WARNING="" 7558fi 7559 7560 # Extract the first word of "ar", so it can be a program name with args. 7561set dummy ar; ac_word=$2 7562{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7564if test "${ac_cv_prog_AR+set}" = set; then 7565 echo $ECHO_N "(cached) $ECHO_C" >&6 7566else 7567 if test -n "$AR"; then 7568 ac_cv_prog_AR="$AR" # Let the user override the test. 7569else 7570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7571for as_dir in $PATH 7572do 7573 IFS=$as_save_IFS 7574 test -z "$as_dir" && as_dir=. 7575 for ac_exec_ext in '' $ac_executable_extensions; do 7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7577 ac_cv_prog_AR="ar" 7578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7579 break 2 7580 fi 7581done 7582done 7583IFS=$as_save_IFS 7584 7585fi 7586fi 7587AR=$ac_cv_prog_AR 7588if test -n "$AR"; then 7589 { echo "$as_me:$LINENO: result: $AR" >&5 7590echo "${ECHO_T}$AR" >&6; } 7591else 7592 { echo "$as_me:$LINENO: result: no" >&5 7593echo "${ECHO_T}no" >&6; } 7594fi 7595 7596 7597 STLIB_LD='${AR} cr' 7598 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7599 if test "x$SHLIB_VERSION" = x; then 7600 SHLIB_VERSION="1.0" 7601fi 7602 7603 case $system in 7604 # TEA specific: 7605 windows) 7606 # This is a 2-stage check to make sure we have the 64-bit SDK 7607 # We have to know where the SDK is installed. 7608 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7609 # MACHINE is IX86 for LINK, but this is used by the manifest, 7610 # which requires x86|amd64|ia64. 7611 MACHINE="X86" 7612 if test "$do64bit" != "no" ; then 7613 if test "x${MSSDK}x" = "xx" ; then 7614 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7615 fi 7616 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7617 PATH64="" 7618 case "$do64bit" in 7619 amd64|x64|yes) 7620 MACHINE="AMD64" ; # default to AMD64 64-bit build 7621 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7622 ;; 7623 ia64) 7624 MACHINE="IA64" 7625 PATH64="${MSSDK}/Bin/Win64" 7626 ;; 7627 esac 7628 if test ! -d "${PATH64}" ; then 7629 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7630echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7631 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7632echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7633 do64bit="no" 7634 else 7635 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7636echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 7637 do64bit_ok="yes" 7638 fi 7639 fi 7640 7641 if test "$doWince" != "no" ; then 7642 if test "$do64bit" != "no" ; then 7643 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7644echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7645 { (exit 1); exit 1; }; } 7646 fi 7647 if test "$GCC" = "yes" ; then 7648 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7649echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7650 { (exit 1); exit 1; }; } 7651 fi 7652 7653 # First, look for one uninstalled. 7654 # the alternative search directory is invoked by --with-celib 7655 7656 if test x"${no_celib}" = x ; then 7657 # we reset no_celib in case something fails here 7658 no_celib=true 7659 7660# Check whether --with-celib was given. 7661if test "${with_celib+set}" = set; then 7662 withval=$with_celib; with_celibconfig=${withval} 7663fi 7664 7665 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7666echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 7667 if test "${ac_cv_c_celibconfig+set}" = set; then 7668 echo $ECHO_N "(cached) $ECHO_C" >&6 7669else 7670 7671 # First check to see if --with-celibconfig was specified. 7672 if test x"${with_celibconfig}" != x ; then 7673 if test -d "${with_celibconfig}/inc" ; then 7674 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7675 else 7676 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7677echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7678 { (exit 1); exit 1; }; } 7679 fi 7680 fi 7681 7682 # then check for a celib library 7683 if test x"${ac_cv_c_celibconfig}" = x ; then 7684 for i in \ 7685 ../celib-palm-3.0 \ 7686 ../celib \ 7687 ../../celib-palm-3.0 \ 7688 ../../celib \ 7689 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7690 ${srcdir}/../celib-palm-3.0 \ 7691 ${srcdir}/../celib \ 7692 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7693 ; do 7694 if test -d "$i/inc" ; then 7695 ac_cv_c_celibconfig=`(cd $i; pwd)` 7696 break 7697 fi 7698 done 7699 fi 7700 7701fi 7702 7703 if test x"${ac_cv_c_celibconfig}" = x ; then 7704 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7705echo "$as_me: error: Cannot find celib support library directory" >&2;} 7706 { (exit 1); exit 1; }; } 7707 else 7708 no_celib= 7709 CELIB_DIR=${ac_cv_c_celibconfig} 7710 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7711 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7712echo "${ECHO_T}found $CELIB_DIR" >&6; } 7713 fi 7714 fi 7715 7716 # Set defaults for common evc4/PPC2003 setup 7717 # Currently Tcl requires 300+, possibly 420+ for sockets 7718 CEVERSION=420; # could be 211 300 301 400 420 ... 7719 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7720 ARCH=ARM; # could be ARM MIPS X86EM ... 7721 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7722 if test "$doWince" != "yes"; then 7723 # If !yes then the user specified something 7724 # Reset ARCH to allow user to skip specifying it 7725 ARCH= 7726 eval `echo $doWince | awk -F, '{ \ 7727 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7728 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7729 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7730 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7731 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7732 }'` 7733 if test "x${ARCH}" = "x" ; then 7734 ARCH=$TARGETCPU; 7735 fi 7736 fi 7737 OSVERSION=WCE$CEVERSION; 7738 if test "x${WCEROOT}" = "x" ; then 7739 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7740 if test ! -d "${WCEROOT}" ; then 7741 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7742 fi 7743 fi 7744 if test "x${SDKROOT}" = "x" ; then 7745 SDKROOT="C:/Program Files/Windows CE Tools" 7746 if test ! -d "${SDKROOT}" ; then 7747 SDKROOT="C:/Windows CE Tools" 7748 fi 7749 fi 7750 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7751 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7752 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7753 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7754 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7755echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7756 { (exit 1); exit 1; }; } 7757 doWince="no" 7758 else 7759 # We could PATH_NOSPACE these, but that's not important, 7760 # as long as we quote them when used. 7761 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7762 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7763 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7764 fi 7765 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7766 fi 7767 fi 7768 7769 if test "$GCC" != "yes" ; then 7770 if test "${SHARED_BUILD}" = "0" ; then 7771 runtime=-MT 7772 else 7773 runtime=-MD 7774 fi 7775 7776 if test "$do64bit" != "no" ; then 7777 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7778 CC="\"${PATH64}/cl.exe\"" 7779 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7780 RC="\"${MSSDK}/bin/rc.exe\"" 7781 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7782 LINKBIN="\"${PATH64}/link.exe\"" 7783 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7784 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7785 # Avoid 'unresolved external symbol __security_cookie' 7786 # errors, c.f. http://support.microsoft.com/?id=894573 7787 7788 vars="bufferoverflowU.lib" 7789 for i in $vars; do 7790 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7791 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7792 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7793 fi 7794 PKG_LIBS="$PKG_LIBS $i" 7795 done 7796 7797 7798 elif test "$doWince" != "no" ; then 7799 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7800 if test "${TARGETCPU}" = "X86"; then 7801 CC="\"${CEBINROOT}/cl.exe\"" 7802 else 7803 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7804 fi 7805 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7806 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 7807 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7808 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7809 if test "${SHARED_BUILD}" = "1" ; then 7810 # Static CE builds require static celib as well 7811 defs="${defs} _DLL" 7812 fi 7813 for i in $defs ; do 7814 7815cat >>confdefs.h <<_ACEOF 7816#define $i 1 7817_ACEOF 7818 7819 done 7820 7821cat >>confdefs.h <<_ACEOF 7822#define _WIN32_WCE $CEVERSION 7823_ACEOF 7824 7825 7826cat >>confdefs.h <<_ACEOF 7827#define UNDER_CE $CEVERSION 7828_ACEOF 7829 7830 CFLAGS_DEBUG="-nologo -Zi -Od" 7831 CFLAGS_OPTIMIZE="-nologo -Ox" 7832 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 7833 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 7834 LINKBIN="\"${CEBINROOT}/link.exe\"" 7835 7836 else 7837 RC="rc" 7838 lflags="-nologo" 7839 LINKBIN="link" 7840 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 7841 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7842 fi 7843 fi 7844 7845 if test "$GCC" = "yes"; then 7846 # mingw gcc mode 7847 RC="windres" 7848 CFLAGS_DEBUG="-g" 7849 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7850 SHLIB_LD="$CC -shared" 7851 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7852 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 7853 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 7854 else 7855 SHLIB_LD="${LINKBIN} -dll ${lflags}" 7856 # link -lib only works when -lib is the first arg 7857 STLIB_LD="${LINKBIN} -lib ${lflags}" 7858 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 7859 PATHTYPE=-w 7860 # For information on what debugtype is most useful, see: 7861 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 7862 # and also 7863 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 7864 # This essentially turns it all on. 7865 LDFLAGS_DEBUG="-debug -debugtype:cv" 7866 LDFLAGS_OPTIMIZE="-release" 7867 if test "$doWince" != "no" ; then 7868 LDFLAGS_CONSOLE="-link ${lflags}" 7869 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 7870 else 7871 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 7872 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 7873 fi 7874 fi 7875 7876 SHLIB_SUFFIX=".dll" 7877 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 7878 7879 TCL_LIB_VERSIONS_OK=nodots 7880 ;; 7881 AIX-*) 7882 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 7883 7884 # AIX requires the _r compiler when gcc isn't being used 7885 case "${CC}" in 7886 *_r|*_r\ *) 7887 # ok ... 7888 ;; 7889 *) 7890 # Make sure only first arg gets _r 7891 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 7892 ;; 7893 esac 7894 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 7895echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 7896 7897fi 7898 7899 LIBS="$LIBS -lc" 7900 SHLIB_CFLAGS="" 7901 SHLIB_SUFFIX=".so" 7902 7903 LD_LIBRARY_PATH_VAR="LIBPATH" 7904 7905 # Check to enable 64-bit flags for compiler/linker 7906 if test "$do64bit" = yes; then 7907 7908 if test "$GCC" = yes; then 7909 7910 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 7911echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 7912 7913else 7914 7915 do64bit_ok=yes 7916 CFLAGS="$CFLAGS -q64" 7917 LDFLAGS_ARCH="-q64" 7918 RANLIB="${RANLIB} -X64" 7919 AR="${AR} -X64" 7920 SHLIB_LD_FLAGS="-b64" 7921 7922fi 7923 7924 7925fi 7926 7927 7928 if test "`uname -m`" = ia64; then 7929 7930 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 7931 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 7932 if test "$GCC" = yes; then 7933 7934 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7935 7936else 7937 7938 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 7939 7940fi 7941 7942 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 7943 7944else 7945 7946 if test "$GCC" = yes; then 7947 7948 SHLIB_LD='${CC} -shared -Wl,-bexpall' 7949 7950else 7951 7952 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 7953 LDFLAGS="$LDFLAGS -brtl" 7954 7955fi 7956 7957 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 7958 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 7959 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7960 7961fi 7962 7963 ;; 7964 BeOS*) 7965 SHLIB_CFLAGS="-fPIC" 7966 SHLIB_LD='${CC} -nostart' 7967 SHLIB_SUFFIX=".so" 7968 7969 #----------------------------------------------------------- 7970 # Check for inet_ntoa in -lbind, for BeOS (which also needs 7971 # -lsocket, even if the network functions are in -lnet which 7972 # is always linked to, for compatibility. 7973 #----------------------------------------------------------- 7974 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 7975echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 7976if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 7977 echo $ECHO_N "(cached) $ECHO_C" >&6 7978else 7979 ac_check_lib_save_LIBS=$LIBS 7980LIBS="-lbind $LIBS" 7981cat >conftest.$ac_ext <<_ACEOF 7982/* confdefs.h. */ 7983_ACEOF 7984cat confdefs.h >>conftest.$ac_ext 7985cat >>conftest.$ac_ext <<_ACEOF 7986/* end confdefs.h. */ 7987 7988/* Override any GCC internal prototype to avoid an error. 7989 Use char because int might match the return type of a GCC 7990 builtin and then its argument prototype would still apply. */ 7991#ifdef __cplusplus 7992extern "C" 7993#endif 7994char inet_ntoa (); 7995int 7996main () 7997{ 7998return inet_ntoa (); 7999 ; 8000 return 0; 8001} 8002_ACEOF 8003rm -f conftest.$ac_objext conftest$ac_exeext 8004if { (ac_try="$ac_link" 8005case "(($ac_try" in 8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8007 *) ac_try_echo=$ac_try;; 8008esac 8009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8010 (eval "$ac_link") 2>conftest.er1 8011 ac_status=$? 8012 grep -v '^ *+' conftest.er1 >conftest.err 8013 rm -f conftest.er1 8014 cat conftest.err >&5 8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8016 (exit $ac_status); } && { 8017 test -z "$ac_c_werror_flag" || 8018 test ! -s conftest.err 8019 } && test -s conftest$ac_exeext && 8020 $as_test_x conftest$ac_exeext; then 8021 ac_cv_lib_bind_inet_ntoa=yes 8022else 8023 echo "$as_me: failed program was:" >&5 8024sed 's/^/| /' conftest.$ac_ext >&5 8025 8026 ac_cv_lib_bind_inet_ntoa=no 8027fi 8028 8029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8030 conftest$ac_exeext conftest.$ac_ext 8031LIBS=$ac_check_lib_save_LIBS 8032fi 8033{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8034echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8035if test $ac_cv_lib_bind_inet_ntoa = yes; then 8036 LIBS="$LIBS -lbind -lsocket" 8037fi 8038 8039 ;; 8040 BSD/OS-4.*) 8041 SHLIB_CFLAGS="-export-dynamic -fPIC" 8042 SHLIB_LD='${CC} -shared' 8043 SHLIB_SUFFIX=".so" 8044 LDFLAGS="$LDFLAGS -export-dynamic" 8045 CC_SEARCH_FLAGS="" 8046 LD_SEARCH_FLAGS="" 8047 ;; 8048 CYGWIN_*) 8049 SHLIB_CFLAGS="" 8050 SHLIB_LD='${CC} -shared' 8051 SHLIB_SUFFIX=".dll" 8052 EXE_SUFFIX=".exe" 8053 CC_SEARCH_FLAGS="" 8054 LD_SEARCH_FLAGS="" 8055 ;; 8056 Haiku*) 8057 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8058 SHLIB_CFLAGS="-fPIC" 8059 SHLIB_SUFFIX=".so" 8060 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8061 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8062echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8063if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8064 echo $ECHO_N "(cached) $ECHO_C" >&6 8065else 8066 ac_check_lib_save_LIBS=$LIBS 8067LIBS="-lnetwork $LIBS" 8068cat >conftest.$ac_ext <<_ACEOF 8069/* confdefs.h. */ 8070_ACEOF 8071cat confdefs.h >>conftest.$ac_ext 8072cat >>conftest.$ac_ext <<_ACEOF 8073/* end confdefs.h. */ 8074 8075/* Override any GCC internal prototype to avoid an error. 8076 Use char because int might match the return type of a GCC 8077 builtin and then its argument prototype would still apply. */ 8078#ifdef __cplusplus 8079extern "C" 8080#endif 8081char inet_ntoa (); 8082int 8083main () 8084{ 8085return inet_ntoa (); 8086 ; 8087 return 0; 8088} 8089_ACEOF 8090rm -f conftest.$ac_objext conftest$ac_exeext 8091if { (ac_try="$ac_link" 8092case "(($ac_try" in 8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8094 *) ac_try_echo=$ac_try;; 8095esac 8096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8097 (eval "$ac_link") 2>conftest.er1 8098 ac_status=$? 8099 grep -v '^ *+' conftest.er1 >conftest.err 8100 rm -f conftest.er1 8101 cat conftest.err >&5 8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8103 (exit $ac_status); } && { 8104 test -z "$ac_c_werror_flag" || 8105 test ! -s conftest.err 8106 } && test -s conftest$ac_exeext && 8107 $as_test_x conftest$ac_exeext; then 8108 ac_cv_lib_network_inet_ntoa=yes 8109else 8110 echo "$as_me: failed program was:" >&5 8111sed 's/^/| /' conftest.$ac_ext >&5 8112 8113 ac_cv_lib_network_inet_ntoa=no 8114fi 8115 8116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8117 conftest$ac_exeext conftest.$ac_ext 8118LIBS=$ac_check_lib_save_LIBS 8119fi 8120{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8121echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8122if test $ac_cv_lib_network_inet_ntoa = yes; then 8123 LIBS="$LIBS -lnetwork" 8124fi 8125 8126 ;; 8127 HP-UX-*.11.*) 8128 # Use updated header definitions where possible 8129 8130cat >>confdefs.h <<\_ACEOF 8131#define _XOPEN_SOURCE_EXTENDED 1 8132_ACEOF 8133 8134 # TEA specific: Needed by Tcl, but not most extensions 8135 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8136 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8137 8138 if test "`uname -m`" = ia64; then 8139 8140 SHLIB_SUFFIX=".so" 8141 # Use newer C++ library for C++ extensions 8142 #if test "$GCC" != "yes" ; then 8143 # CPPFLAGS="-AA" 8144 #fi 8145 8146else 8147 8148 SHLIB_SUFFIX=".sl" 8149 8150fi 8151 8152 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8153echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8154if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8155 echo $ECHO_N "(cached) $ECHO_C" >&6 8156else 8157 ac_check_lib_save_LIBS=$LIBS 8158LIBS="-ldld $LIBS" 8159cat >conftest.$ac_ext <<_ACEOF 8160/* confdefs.h. */ 8161_ACEOF 8162cat confdefs.h >>conftest.$ac_ext 8163cat >>conftest.$ac_ext <<_ACEOF 8164/* end confdefs.h. */ 8165 8166/* Override any GCC internal prototype to avoid an error. 8167 Use char because int might match the return type of a GCC 8168 builtin and then its argument prototype would still apply. */ 8169#ifdef __cplusplus 8170extern "C" 8171#endif 8172char shl_load (); 8173int 8174main () 8175{ 8176return shl_load (); 8177 ; 8178 return 0; 8179} 8180_ACEOF 8181rm -f conftest.$ac_objext conftest$ac_exeext 8182if { (ac_try="$ac_link" 8183case "(($ac_try" in 8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8185 *) ac_try_echo=$ac_try;; 8186esac 8187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8188 (eval "$ac_link") 2>conftest.er1 8189 ac_status=$? 8190 grep -v '^ *+' conftest.er1 >conftest.err 8191 rm -f conftest.er1 8192 cat conftest.err >&5 8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8194 (exit $ac_status); } && { 8195 test -z "$ac_c_werror_flag" || 8196 test ! -s conftest.err 8197 } && test -s conftest$ac_exeext && 8198 $as_test_x conftest$ac_exeext; then 8199 ac_cv_lib_dld_shl_load=yes 8200else 8201 echo "$as_me: failed program was:" >&5 8202sed 's/^/| /' conftest.$ac_ext >&5 8203 8204 ac_cv_lib_dld_shl_load=no 8205fi 8206 8207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8208 conftest$ac_exeext conftest.$ac_ext 8209LIBS=$ac_check_lib_save_LIBS 8210fi 8211{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8212echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8213if test $ac_cv_lib_dld_shl_load = yes; then 8214 tcl_ok=yes 8215else 8216 tcl_ok=no 8217fi 8218 8219 if test "$tcl_ok" = yes; then 8220 8221 LDFLAGS="$LDFLAGS -E" 8222 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8223 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8224 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8225 8226fi 8227 8228 if test "$GCC" = yes; then 8229 8230 SHLIB_LD='${CC} -shared' 8231 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8232 8233else 8234 8235 CFLAGS="$CFLAGS -z" 8236 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8237 #CFLAGS="$CFLAGS +DAportable" 8238 SHLIB_CFLAGS="+z" 8239 SHLIB_LD="ld -b" 8240 8241fi 8242 8243 8244 # Check to enable 64-bit flags for compiler/linker 8245 if test "$do64bit" = "yes"; then 8246 8247 if test "$GCC" = yes; then 8248 8249 case `${CC} -dumpmachine` in 8250 hppa64*) 8251 # 64-bit gcc in use. Fix flags for GNU ld. 8252 do64bit_ok=yes 8253 SHLIB_LD='${CC} -shared' 8254 if test $doRpath = yes; then 8255 8256 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8257fi 8258 8259 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8260 ;; 8261 *) 8262 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8263echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8264 ;; 8265 esac 8266 8267else 8268 8269 do64bit_ok=yes 8270 CFLAGS="$CFLAGS +DD64" 8271 LDFLAGS_ARCH="+DD64" 8272 8273fi 8274 8275 8276fi 8277 ;; 8278 IRIX-6.*) 8279 SHLIB_CFLAGS="" 8280 SHLIB_LD="ld -n32 -shared -rdata_shared" 8281 SHLIB_SUFFIX=".so" 8282 if test $doRpath = yes; then 8283 8284 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8285 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8286fi 8287 8288 if test "$GCC" = yes; then 8289 8290 CFLAGS="$CFLAGS -mabi=n32" 8291 LDFLAGS="$LDFLAGS -mabi=n32" 8292 8293else 8294 8295 case $system in 8296 IRIX-6.3) 8297 # Use to build 6.2 compatible binaries on 6.3. 8298 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8299 ;; 8300 *) 8301 CFLAGS="$CFLAGS -n32" 8302 ;; 8303 esac 8304 LDFLAGS="$LDFLAGS -n32" 8305 8306fi 8307 8308 ;; 8309 IRIX64-6.*) 8310 SHLIB_CFLAGS="" 8311 SHLIB_LD="ld -n32 -shared -rdata_shared" 8312 SHLIB_SUFFIX=".so" 8313 if test $doRpath = yes; then 8314 8315 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8316 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8317fi 8318 8319 8320 # Check to enable 64-bit flags for compiler/linker 8321 8322 if test "$do64bit" = yes; then 8323 8324 if test "$GCC" = yes; then 8325 8326 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8327echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8328 8329else 8330 8331 do64bit_ok=yes 8332 SHLIB_LD="ld -64 -shared -rdata_shared" 8333 CFLAGS="$CFLAGS -64" 8334 LDFLAGS_ARCH="-64" 8335 8336fi 8337 8338 8339fi 8340 8341 ;; 8342 Linux*) 8343 SHLIB_CFLAGS="-fPIC" 8344 SHLIB_SUFFIX=".so" 8345 8346 # TEA specific: 8347 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8348 8349 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8350 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8351 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8352 if test $doRpath = yes; then 8353 8354 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8355fi 8356 8357 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8358 if test "`uname -m`" = "alpha"; then 8359 CFLAGS="$CFLAGS -mieee" 8360fi 8361 8362 if test $do64bit = yes; then 8363 8364 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8365echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8366if test "${tcl_cv_cc_m64+set}" = set; then 8367 echo $ECHO_N "(cached) $ECHO_C" >&6 8368else 8369 8370 hold_cflags=$CFLAGS 8371 CFLAGS="$CFLAGS -m64" 8372 cat >conftest.$ac_ext <<_ACEOF 8373/* confdefs.h. */ 8374_ACEOF 8375cat confdefs.h >>conftest.$ac_ext 8376cat >>conftest.$ac_ext <<_ACEOF 8377/* end confdefs.h. */ 8378 8379int 8380main () 8381{ 8382 8383 ; 8384 return 0; 8385} 8386_ACEOF 8387rm -f conftest.$ac_objext conftest$ac_exeext 8388if { (ac_try="$ac_link" 8389case "(($ac_try" in 8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8391 *) ac_try_echo=$ac_try;; 8392esac 8393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8394 (eval "$ac_link") 2>conftest.er1 8395 ac_status=$? 8396 grep -v '^ *+' conftest.er1 >conftest.err 8397 rm -f conftest.er1 8398 cat conftest.err >&5 8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8400 (exit $ac_status); } && { 8401 test -z "$ac_c_werror_flag" || 8402 test ! -s conftest.err 8403 } && test -s conftest$ac_exeext && 8404 $as_test_x conftest$ac_exeext; then 8405 tcl_cv_cc_m64=yes 8406else 8407 echo "$as_me: failed program was:" >&5 8408sed 's/^/| /' conftest.$ac_ext >&5 8409 8410 tcl_cv_cc_m64=no 8411fi 8412 8413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8414 conftest$ac_exeext conftest.$ac_ext 8415 CFLAGS=$hold_cflags 8416fi 8417{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8418echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8419 if test $tcl_cv_cc_m64 = yes; then 8420 8421 CFLAGS="$CFLAGS -m64" 8422 do64bit_ok=yes 8423 8424fi 8425 8426 8427fi 8428 8429 8430 # The combo of gcc + glibc has a bug related to inlining of 8431 # functions like strtod(). The -fno-builtin flag should address 8432 # this problem but it does not work. The -fno-inline flag is kind 8433 # of overkill but it works. Disable inlining only when one of the 8434 # files in compat/*.c is being linked in. 8435 8436 if test x"${USE_COMPAT}" != x; then 8437 CFLAGS="$CFLAGS -fno-inline" 8438fi 8439 8440 8441 ;; 8442 GNU*) 8443 SHLIB_CFLAGS="-fPIC" 8444 SHLIB_SUFFIX=".so" 8445 8446 SHLIB_LD='${CC} -shared' 8447 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8448 CC_SEARCH_FLAGS="" 8449 LD_SEARCH_FLAGS="" 8450 if test "`uname -m`" = "alpha"; then 8451 CFLAGS="$CFLAGS -mieee" 8452fi 8453 8454 ;; 8455 Lynx*) 8456 SHLIB_CFLAGS="-fPIC" 8457 SHLIB_SUFFIX=".so" 8458 CFLAGS_OPTIMIZE=-02 8459 SHLIB_LD='${CC} -shared' 8460 LD_FLAGS="-Wl,--export-dynamic" 8461 if test $doRpath = yes; then 8462 8463 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8464 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8465fi 8466 8467 ;; 8468 OpenBSD-*) 8469 SHLIB_CFLAGS="-fPIC" 8470 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8471 SHLIB_SUFFIX=".so" 8472 if test $doRpath = yes; then 8473 8474 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8475fi 8476 8477 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8478 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8479 { echo "$as_me:$LINENO: checking for ELF" >&5 8480echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8481if test "${tcl_cv_ld_elf+set}" = set; then 8482 echo $ECHO_N "(cached) $ECHO_C" >&6 8483else 8484 8485 cat >conftest.$ac_ext <<_ACEOF 8486/* confdefs.h. */ 8487_ACEOF 8488cat confdefs.h >>conftest.$ac_ext 8489cat >>conftest.$ac_ext <<_ACEOF 8490/* end confdefs.h. */ 8491 8492#ifdef __ELF__ 8493 yes 8494#endif 8495 8496_ACEOF 8497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8498 $EGREP "yes" >/dev/null 2>&1; then 8499 tcl_cv_ld_elf=yes 8500else 8501 tcl_cv_ld_elf=no 8502fi 8503rm -f -r conftest* 8504 8505fi 8506{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8507echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8508 if test $tcl_cv_ld_elf = yes; then 8509 8510 LDFLAGS=-Wl,-export-dynamic 8511 8512else 8513 LDFLAGS="" 8514fi 8515 8516 if test "${TCL_THREADS}" = "1"; then 8517 8518 # OpenBSD builds and links with -pthread, never -lpthread. 8519 LIBS=`echo $LIBS | sed s/-lpthread//` 8520 CFLAGS="$CFLAGS -pthread" 8521 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8522 8523fi 8524 8525 # OpenBSD doesn't do version numbers with dots. 8526 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8527 TCL_LIB_VERSIONS_OK=nodots 8528 ;; 8529 NetBSD-*|FreeBSD-[3-4].*) 8530 # FreeBSD 3.* and greater have ELF. 8531 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8532 SHLIB_CFLAGS="-fPIC" 8533 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8534 SHLIB_SUFFIX=".so" 8535 LDFLAGS="$LDFLAGS -export-dynamic" 8536 if test $doRpath = yes; then 8537 8538 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8539fi 8540 8541 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8542 if test "${TCL_THREADS}" = "1"; then 8543 8544 # The -pthread needs to go in the CFLAGS, not LIBS 8545 LIBS=`echo $LIBS | sed s/-pthread//` 8546 CFLAGS="$CFLAGS -pthread" 8547 LDFLAGS="$LDFLAGS -pthread" 8548 8549fi 8550 8551 case $system in 8552 FreeBSD-3.*) 8553 # FreeBSD-3 doesn't handle version numbers with dots. 8554 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8555 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8556 TCL_LIB_VERSIONS_OK=nodots 8557 ;; 8558 esac 8559 ;; 8560 FreeBSD-*) 8561 # This configuration from FreeBSD Ports. 8562 SHLIB_CFLAGS="-fPIC" 8563 SHLIB_LD="${CC} -shared" 8564 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8565 SHLIB_SUFFIX=".so" 8566 LDFLAGS="" 8567 if test $doRpath = yes; then 8568 8569 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8570 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8571fi 8572 8573 if test "${TCL_THREADS}" = "1"; then 8574 8575 # The -pthread needs to go in the LDFLAGS, not LIBS 8576 LIBS=`echo $LIBS | sed s/-pthread//` 8577 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8578 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8579fi 8580 8581 # Version numbers are dot-stripped by system policy. 8582 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8583 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8584 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8585 TCL_LIB_VERSIONS_OK=nodots 8586 ;; 8587 Darwin-*) 8588 CFLAGS_OPTIMIZE="-Os" 8589 SHLIB_CFLAGS="-fno-common" 8590 # To avoid discrepancies between what headers configure sees during 8591 # preprocessing tests and compiling tests, move any -isysroot and 8592 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8593 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8594 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8595 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8596 CFLAGS="`echo " ${CFLAGS}" | \ 8597 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8598 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8599 if test $do64bit = yes; then 8600 8601 case `arch` in 8602 ppc) 8603 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8604echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8605if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8606 echo $ECHO_N "(cached) $ECHO_C" >&6 8607else 8608 8609 hold_cflags=$CFLAGS 8610 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8611 cat >conftest.$ac_ext <<_ACEOF 8612/* confdefs.h. */ 8613_ACEOF 8614cat confdefs.h >>conftest.$ac_ext 8615cat >>conftest.$ac_ext <<_ACEOF 8616/* end confdefs.h. */ 8617 8618int 8619main () 8620{ 8621 8622 ; 8623 return 0; 8624} 8625_ACEOF 8626rm -f conftest.$ac_objext conftest$ac_exeext 8627if { (ac_try="$ac_link" 8628case "(($ac_try" in 8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8630 *) ac_try_echo=$ac_try;; 8631esac 8632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8633 (eval "$ac_link") 2>conftest.er1 8634 ac_status=$? 8635 grep -v '^ *+' conftest.er1 >conftest.err 8636 rm -f conftest.er1 8637 cat conftest.err >&5 8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8639 (exit $ac_status); } && { 8640 test -z "$ac_c_werror_flag" || 8641 test ! -s conftest.err 8642 } && test -s conftest$ac_exeext && 8643 $as_test_x conftest$ac_exeext; then 8644 tcl_cv_cc_arch_ppc64=yes 8645else 8646 echo "$as_me: failed program was:" >&5 8647sed 's/^/| /' conftest.$ac_ext >&5 8648 8649 tcl_cv_cc_arch_ppc64=no 8650fi 8651 8652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8653 conftest$ac_exeext conftest.$ac_ext 8654 CFLAGS=$hold_cflags 8655fi 8656{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8657echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 8658 if test $tcl_cv_cc_arch_ppc64 = yes; then 8659 8660 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8661 do64bit_ok=yes 8662 8663fi 8664;; 8665 i386) 8666 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8667echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 8668if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8669 echo $ECHO_N "(cached) $ECHO_C" >&6 8670else 8671 8672 hold_cflags=$CFLAGS 8673 CFLAGS="$CFLAGS -arch x86_64" 8674 cat >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 8681int 8682main () 8683{ 8684 8685 ; 8686 return 0; 8687} 8688_ACEOF 8689rm -f conftest.$ac_objext conftest$ac_exeext 8690if { (ac_try="$ac_link" 8691case "(($ac_try" in 8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8693 *) ac_try_echo=$ac_try;; 8694esac 8695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8696 (eval "$ac_link") 2>conftest.er1 8697 ac_status=$? 8698 grep -v '^ *+' conftest.er1 >conftest.err 8699 rm -f conftest.er1 8700 cat conftest.err >&5 8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8702 (exit $ac_status); } && { 8703 test -z "$ac_c_werror_flag" || 8704 test ! -s conftest.err 8705 } && test -s conftest$ac_exeext && 8706 $as_test_x conftest$ac_exeext; then 8707 tcl_cv_cc_arch_x86_64=yes 8708else 8709 echo "$as_me: failed program was:" >&5 8710sed 's/^/| /' conftest.$ac_ext >&5 8711 8712 tcl_cv_cc_arch_x86_64=no 8713fi 8714 8715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8716 conftest$ac_exeext conftest.$ac_ext 8717 CFLAGS=$hold_cflags 8718fi 8719{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8720echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 8721 if test $tcl_cv_cc_arch_x86_64 = yes; then 8722 8723 CFLAGS="$CFLAGS -arch x86_64" 8724 do64bit_ok=yes 8725 8726fi 8727;; 8728 *) 8729 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8730echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8731 esac 8732 8733else 8734 8735 # Check for combined 32-bit and 64-bit fat build 8736 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8737 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8738 8739 fat_32_64=yes 8740fi 8741 8742 8743fi 8744 8745 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8746 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8747 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8748echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 8749if test "${tcl_cv_ld_single_module+set}" = set; then 8750 echo $ECHO_N "(cached) $ECHO_C" >&6 8751else 8752 8753 hold_ldflags=$LDFLAGS 8754 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8755 cat >conftest.$ac_ext <<_ACEOF 8756/* confdefs.h. */ 8757_ACEOF 8758cat confdefs.h >>conftest.$ac_ext 8759cat >>conftest.$ac_ext <<_ACEOF 8760/* end confdefs.h. */ 8761 8762int 8763main () 8764{ 8765int i; 8766 ; 8767 return 0; 8768} 8769_ACEOF 8770rm -f conftest.$ac_objext conftest$ac_exeext 8771if { (ac_try="$ac_link" 8772case "(($ac_try" in 8773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8774 *) ac_try_echo=$ac_try;; 8775esac 8776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8777 (eval "$ac_link") 2>conftest.er1 8778 ac_status=$? 8779 grep -v '^ *+' conftest.er1 >conftest.err 8780 rm -f conftest.er1 8781 cat conftest.err >&5 8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8783 (exit $ac_status); } && { 8784 test -z "$ac_c_werror_flag" || 8785 test ! -s conftest.err 8786 } && test -s conftest$ac_exeext && 8787 $as_test_x conftest$ac_exeext; then 8788 tcl_cv_ld_single_module=yes 8789else 8790 echo "$as_me: failed program was:" >&5 8791sed 's/^/| /' conftest.$ac_ext >&5 8792 8793 tcl_cv_ld_single_module=no 8794fi 8795 8796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8797 conftest$ac_exeext conftest.$ac_ext 8798 LDFLAGS=$hold_ldflags 8799fi 8800{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 8801echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 8802 if test $tcl_cv_ld_single_module = yes; then 8803 8804 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8805 8806fi 8807 8808 # TEA specific: link shlib with current and compatiblity version flags 8809 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 8810 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 8811 SHLIB_SUFFIX=".dylib" 8812 # Don't use -prebind when building for Mac OS X 10.4 or later only: 8813 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 8814 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 8815 8816 LDFLAGS="$LDFLAGS -prebind" 8817fi 8818 8819 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 8820 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 8821echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 8822if test "${tcl_cv_ld_search_paths_first+set}" = set; then 8823 echo $ECHO_N "(cached) $ECHO_C" >&6 8824else 8825 8826 hold_ldflags=$LDFLAGS 8827 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8828 cat >conftest.$ac_ext <<_ACEOF 8829/* confdefs.h. */ 8830_ACEOF 8831cat confdefs.h >>conftest.$ac_ext 8832cat >>conftest.$ac_ext <<_ACEOF 8833/* end confdefs.h. */ 8834 8835int 8836main () 8837{ 8838int i; 8839 ; 8840 return 0; 8841} 8842_ACEOF 8843rm -f conftest.$ac_objext conftest$ac_exeext 8844if { (ac_try="$ac_link" 8845case "(($ac_try" in 8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8847 *) ac_try_echo=$ac_try;; 8848esac 8849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8850 (eval "$ac_link") 2>conftest.er1 8851 ac_status=$? 8852 grep -v '^ *+' conftest.er1 >conftest.err 8853 rm -f conftest.er1 8854 cat conftest.err >&5 8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8856 (exit $ac_status); } && { 8857 test -z "$ac_c_werror_flag" || 8858 test ! -s conftest.err 8859 } && test -s conftest$ac_exeext && 8860 $as_test_x conftest$ac_exeext; then 8861 tcl_cv_ld_search_paths_first=yes 8862else 8863 echo "$as_me: failed program was:" >&5 8864sed 's/^/| /' conftest.$ac_ext >&5 8865 8866 tcl_cv_ld_search_paths_first=no 8867fi 8868 8869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8870 conftest$ac_exeext conftest.$ac_ext 8871 LDFLAGS=$hold_ldflags 8872fi 8873{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 8874echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 8875 if test $tcl_cv_ld_search_paths_first = yes; then 8876 8877 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8878 8879fi 8880 8881 if test "$tcl_cv_cc_visibility_hidden" != yes; then 8882 8883 8884cat >>confdefs.h <<\_ACEOF 8885#define MODULE_SCOPE __private_extern__ 8886_ACEOF 8887 8888 tcl_cv_cc_visibility_hidden=yes 8889 8890fi 8891 8892 CC_SEARCH_FLAGS="" 8893 LD_SEARCH_FLAGS="" 8894 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 8895 # TEA specific: for combined 32 & 64 bit fat builds of Tk 8896 # extensions, verify that 64-bit build is possible. 8897 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 8898 8899 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 8900 8901 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 8902echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 8903if test "${tcl_cv_lib_x11_64+set}" = set; then 8904 echo $ECHO_N "(cached) $ECHO_C" >&6 8905else 8906 8907 for v in CFLAGS CPPFLAGS LDFLAGS; do 8908 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 8909 done 8910 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 8911 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 8912 cat >conftest.$ac_ext <<_ACEOF 8913/* confdefs.h. */ 8914_ACEOF 8915cat confdefs.h >>conftest.$ac_ext 8916cat >>conftest.$ac_ext <<_ACEOF 8917/* end confdefs.h. */ 8918#include <X11/Xlib.h> 8919int 8920main () 8921{ 8922XrmInitialize(); 8923 ; 8924 return 0; 8925} 8926_ACEOF 8927rm -f conftest.$ac_objext conftest$ac_exeext 8928if { (ac_try="$ac_link" 8929case "(($ac_try" in 8930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8931 *) ac_try_echo=$ac_try;; 8932esac 8933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8934 (eval "$ac_link") 2>conftest.er1 8935 ac_status=$? 8936 grep -v '^ *+' conftest.er1 >conftest.err 8937 rm -f conftest.er1 8938 cat conftest.err >&5 8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8940 (exit $ac_status); } && { 8941 test -z "$ac_c_werror_flag" || 8942 test ! -s conftest.err 8943 } && test -s conftest$ac_exeext && 8944 $as_test_x conftest$ac_exeext; then 8945 tcl_cv_lib_x11_64=yes 8946else 8947 echo "$as_me: failed program was:" >&5 8948sed 's/^/| /' conftest.$ac_ext >&5 8949 8950 tcl_cv_lib_x11_64=no 8951fi 8952 8953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8954 conftest$ac_exeext conftest.$ac_ext 8955 for v in CFLAGS CPPFLAGS LDFLAGS; do 8956 eval $v'="$hold_'$v'"' 8957 done 8958fi 8959{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 8960echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 8961 8962fi 8963 8964 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 8965 8966 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 8967echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 8968if test "${tcl_cv_lib_tk_64+set}" = set; then 8969 echo $ECHO_N "(cached) $ECHO_C" >&6 8970else 8971 8972 for v in CFLAGS CPPFLAGS LDFLAGS; do 8973 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 8974 done 8975 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 8976 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 8977 cat >conftest.$ac_ext <<_ACEOF 8978/* confdefs.h. */ 8979_ACEOF 8980cat confdefs.h >>conftest.$ac_ext 8981cat >>conftest.$ac_ext <<_ACEOF 8982/* end confdefs.h. */ 8983#include <tk.h> 8984int 8985main () 8986{ 8987Tk_InitStubs(NULL, "", 0); 8988 ; 8989 return 0; 8990} 8991_ACEOF 8992rm -f conftest.$ac_objext conftest$ac_exeext 8993if { (ac_try="$ac_link" 8994case "(($ac_try" in 8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8996 *) ac_try_echo=$ac_try;; 8997esac 8998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8999 (eval "$ac_link") 2>conftest.er1 9000 ac_status=$? 9001 grep -v '^ *+' conftest.er1 >conftest.err 9002 rm -f conftest.er1 9003 cat conftest.err >&5 9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9005 (exit $ac_status); } && { 9006 test -z "$ac_c_werror_flag" || 9007 test ! -s conftest.err 9008 } && test -s conftest$ac_exeext && 9009 $as_test_x conftest$ac_exeext; then 9010 tcl_cv_lib_tk_64=yes 9011else 9012 echo "$as_me: failed program was:" >&5 9013sed 's/^/| /' conftest.$ac_ext >&5 9014 9015 tcl_cv_lib_tk_64=no 9016fi 9017 9018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9019 conftest$ac_exeext conftest.$ac_ext 9020 for v in CFLAGS CPPFLAGS LDFLAGS; do 9021 eval $v'="$hold_'$v'"' 9022 done 9023fi 9024{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9025echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9026 9027fi 9028 9029 # remove 64-bit arch flags from CFLAGS et al. if configuration 9030 # does not support 64-bit. 9031 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9032 9033 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9034echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9035 for v in CFLAGS CPPFLAGS LDFLAGS; do 9036 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9037 done 9038fi 9039 9040 9041fi 9042 9043 ;; 9044 OS/390-*) 9045 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9046 9047cat >>confdefs.h <<\_ACEOF 9048#define _OE_SOCKETS 1 9049_ACEOF 9050 9051 ;; 9052 OSF1-V*) 9053 # Digital OSF/1 9054 SHLIB_CFLAGS="" 9055 if test "$SHARED_BUILD" = 1; then 9056 9057 SHLIB_LD='ld -shared -expect_unresolved "*"' 9058 9059else 9060 9061 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9062 9063fi 9064 9065 SHLIB_SUFFIX=".so" 9066 if test $doRpath = yes; then 9067 9068 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9069 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9070fi 9071 9072 if test "$GCC" = yes; then 9073 CFLAGS="$CFLAGS -mieee" 9074else 9075 9076 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9077fi 9078 9079 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9080 if test "${TCL_THREADS}" = 1; then 9081 9082 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9083 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9084 LIBS=`echo $LIBS | sed s/-lpthreads//` 9085 if test "$GCC" = yes; then 9086 9087 LIBS="$LIBS -lpthread -lmach -lexc" 9088 9089else 9090 9091 CFLAGS="$CFLAGS -pthread" 9092 LDFLAGS="$LDFLAGS -pthread" 9093 9094fi 9095 9096 9097fi 9098 9099 ;; 9100 QNX-6*) 9101 # QNX RTP 9102 # This may work for all QNX, but it was only reported for v6. 9103 SHLIB_CFLAGS="-fPIC" 9104 SHLIB_LD="ld -Bshareable -x" 9105 SHLIB_LD_LIBS="" 9106 SHLIB_SUFFIX=".so" 9107 CC_SEARCH_FLAGS="" 9108 LD_SEARCH_FLAGS="" 9109 ;; 9110 SCO_SV-3.2*) 9111 if test "$GCC" = yes; then 9112 9113 SHLIB_CFLAGS="-fPIC -melf" 9114 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9115 9116else 9117 9118 SHLIB_CFLAGS="-Kpic -belf" 9119 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9120 9121fi 9122 9123 SHLIB_LD="ld -G" 9124 SHLIB_LD_LIBS="" 9125 SHLIB_SUFFIX=".so" 9126 CC_SEARCH_FLAGS="" 9127 LD_SEARCH_FLAGS="" 9128 ;; 9129 SunOS-5.[0-6]) 9130 # Careful to not let 5.10+ fall into this case 9131 9132 # Note: If _REENTRANT isn't defined, then Solaris 9133 # won't define thread-safe library routines. 9134 9135 9136cat >>confdefs.h <<\_ACEOF 9137#define _REENTRANT 1 9138_ACEOF 9139 9140 9141cat >>confdefs.h <<\_ACEOF 9142#define _POSIX_PTHREAD_SEMANTICS 1 9143_ACEOF 9144 9145 9146 SHLIB_CFLAGS="-KPIC" 9147 SHLIB_SUFFIX=".so" 9148 if test "$GCC" = yes; then 9149 9150 SHLIB_LD='${CC} -shared' 9151 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9152 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9153 9154else 9155 9156 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9157 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9158 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9159 9160fi 9161 9162 ;; 9163 SunOS-5*) 9164 # Note: If _REENTRANT isn't defined, then Solaris 9165 # won't define thread-safe library routines. 9166 9167 9168cat >>confdefs.h <<\_ACEOF 9169#define _REENTRANT 1 9170_ACEOF 9171 9172 9173cat >>confdefs.h <<\_ACEOF 9174#define _POSIX_PTHREAD_SEMANTICS 1 9175_ACEOF 9176 9177 9178 SHLIB_CFLAGS="-KPIC" 9179 9180 # Check to enable 64-bit flags for compiler/linker 9181 if test "$do64bit" = yes; then 9182 9183 arch=`isainfo` 9184 if test "$arch" = "sparcv9 sparc"; then 9185 9186 if test "$GCC" = yes; then 9187 9188 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9189 9190 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9191echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9192 9193else 9194 9195 do64bit_ok=yes 9196 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9197 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9198 SHLIB_CFLAGS="-fPIC" 9199 9200fi 9201 9202 9203else 9204 9205 do64bit_ok=yes 9206 if test "$do64bitVIS" = yes; then 9207 9208 CFLAGS="$CFLAGS -xarch=v9a" 9209 LDFLAGS_ARCH="-xarch=v9a" 9210 9211else 9212 9213 CFLAGS="$CFLAGS -xarch=v9" 9214 LDFLAGS_ARCH="-xarch=v9" 9215 9216fi 9217 9218 # Solaris 64 uses this as well 9219 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9220 9221fi 9222 9223 9224else 9225 if test "$arch" = "amd64 i386"; then 9226 9227 if test "$GCC" = yes; then 9228 9229 case $system in 9230 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9231 do64bit_ok=yes 9232 CFLAGS="$CFLAGS -m64" 9233 LDFLAGS="$LDFLAGS -m64";; 9234 *) 9235 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9236echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9237 esac 9238 9239else 9240 9241 do64bit_ok=yes 9242 case $system in 9243 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9244 CFLAGS="$CFLAGS -m64" 9245 LDFLAGS="$LDFLAGS -m64";; 9246 *) 9247 CFLAGS="$CFLAGS -xarch=amd64" 9248 LDFLAGS="$LDFLAGS -xarch=amd64";; 9249 esac 9250 9251fi 9252 9253 9254else 9255 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9256echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9257fi 9258 9259fi 9260 9261 9262fi 9263 9264 9265 SHLIB_SUFFIX=".so" 9266 if test "$GCC" = yes; then 9267 9268 SHLIB_LD='${CC} -shared' 9269 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9270 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9271 if test "$do64bit_ok" = yes; then 9272 9273 if test "$arch" = "sparcv9 sparc"; then 9274 9275 # We need to specify -static-libgcc or we need to 9276 # add the path to the sparv9 libgcc. 9277 # JH: static-libgcc is necessary for core Tcl, but may 9278 # not be necessary for extensions. 9279 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9280 # for finding sparcv9 libgcc, get the regular libgcc 9281 # path, remove so name and append 'sparcv9' 9282 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9283 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9284 9285else 9286 if test "$arch" = "amd64 i386"; then 9287 9288 # JH: static-libgcc is necessary for core Tcl, but may 9289 # not be necessary for extensions. 9290 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9291 9292fi 9293 9294fi 9295 9296 9297fi 9298 9299 9300else 9301 9302 case $system in 9303 SunOS-5.[1-9][0-9]*) 9304 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9305 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9306 *) 9307 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9308 esac 9309 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9310 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9311 9312fi 9313 9314 ;; 9315 esac 9316 9317 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9318 9319 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9320echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9321 9322fi 9323 9324 9325 9326 9327 # Add in the arch flags late to ensure it wasn't removed. 9328 # Not necessary in TEA, but this is aligned with core 9329 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9330 9331 # If we're running gcc, then change the C flags for compiling shared 9332 # libraries to the right flags for gcc, instead of those for the 9333 # standard manufacturer compiler. 9334 9335 if test "$GCC" = yes; then 9336 9337 case $system in 9338 AIX-*) ;; 9339 BSD/OS*) ;; 9340 CYGWIN_*) ;; 9341 IRIX*) ;; 9342 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9343 Darwin-*) ;; 9344 SCO_SV-3.2*) ;; 9345 windows) ;; 9346 *) SHLIB_CFLAGS="-fPIC" ;; 9347 esac 9348fi 9349 9350 9351 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9352 9353 9354cat >>confdefs.h <<\_ACEOF 9355#define MODULE_SCOPE extern 9356_ACEOF 9357 9358 9359cat >>confdefs.h <<\_ACEOF 9360#define NO_VIZ 9361_ACEOF 9362 9363 9364fi 9365 9366 9367 if test "$SHARED_LIB_SUFFIX" = ""; then 9368 9369 # TEA specific: use PACKAGE_VERSION instead of VERSION 9370 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9371fi 9372 9373 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9374 9375 # TEA specific: use PACKAGE_VERSION instead of VERSION 9376 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9377fi 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 # These must be called after we do the basic CFLAGS checks and 9393 # verify any possible 64-bit or similar switches are necessary 9394 9395 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9396echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9397 tcl_flags="" 9398 9399 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9400 echo $ECHO_N "(cached) $ECHO_C" >&6 9401else 9402 cat >conftest.$ac_ext <<_ACEOF 9403/* confdefs.h. */ 9404_ACEOF 9405cat confdefs.h >>conftest.$ac_ext 9406cat >>conftest.$ac_ext <<_ACEOF 9407/* end confdefs.h. */ 9408#include <stdlib.h> 9409int 9410main () 9411{ 9412char *p = (char *)strtoll; char *q = (char *)strtoull; 9413 ; 9414 return 0; 9415} 9416_ACEOF 9417rm -f conftest.$ac_objext 9418if { (ac_try="$ac_compile" 9419case "(($ac_try" in 9420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9421 *) ac_try_echo=$ac_try;; 9422esac 9423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9424 (eval "$ac_compile") 2>conftest.er1 9425 ac_status=$? 9426 grep -v '^ *+' conftest.er1 >conftest.err 9427 rm -f conftest.er1 9428 cat conftest.err >&5 9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9430 (exit $ac_status); } && { 9431 test -z "$ac_c_werror_flag" || 9432 test ! -s conftest.err 9433 } && test -s conftest.$ac_objext; then 9434 tcl_cv_flag__isoc99_source=no 9435else 9436 echo "$as_me: failed program was:" >&5 9437sed 's/^/| /' conftest.$ac_ext >&5 9438 9439 cat >conftest.$ac_ext <<_ACEOF 9440/* confdefs.h. */ 9441_ACEOF 9442cat confdefs.h >>conftest.$ac_ext 9443cat >>conftest.$ac_ext <<_ACEOF 9444/* end confdefs.h. */ 9445#define _ISOC99_SOURCE 1 9446#include <stdlib.h> 9447int 9448main () 9449{ 9450char *p = (char *)strtoll; char *q = (char *)strtoull; 9451 ; 9452 return 0; 9453} 9454_ACEOF 9455rm -f conftest.$ac_objext 9456if { (ac_try="$ac_compile" 9457case "(($ac_try" in 9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9459 *) ac_try_echo=$ac_try;; 9460esac 9461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9462 (eval "$ac_compile") 2>conftest.er1 9463 ac_status=$? 9464 grep -v '^ *+' conftest.er1 >conftest.err 9465 rm -f conftest.er1 9466 cat conftest.err >&5 9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9468 (exit $ac_status); } && { 9469 test -z "$ac_c_werror_flag" || 9470 test ! -s conftest.err 9471 } && test -s conftest.$ac_objext; then 9472 tcl_cv_flag__isoc99_source=yes 9473else 9474 echo "$as_me: failed program was:" >&5 9475sed 's/^/| /' conftest.$ac_ext >&5 9476 9477 tcl_cv_flag__isoc99_source=no 9478fi 9479 9480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9481fi 9482 9483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9484fi 9485 9486 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9487 9488cat >>confdefs.h <<\_ACEOF 9489#define _ISOC99_SOURCE 1 9490_ACEOF 9491 9492 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9493 fi 9494 9495 9496 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9497 echo $ECHO_N "(cached) $ECHO_C" >&6 9498else 9499 cat >conftest.$ac_ext <<_ACEOF 9500/* confdefs.h. */ 9501_ACEOF 9502cat confdefs.h >>conftest.$ac_ext 9503cat >>conftest.$ac_ext <<_ACEOF 9504/* end confdefs.h. */ 9505#include <sys/stat.h> 9506int 9507main () 9508{ 9509struct stat64 buf; int i = stat64("/", &buf); 9510 ; 9511 return 0; 9512} 9513_ACEOF 9514rm -f conftest.$ac_objext 9515if { (ac_try="$ac_compile" 9516case "(($ac_try" in 9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9518 *) ac_try_echo=$ac_try;; 9519esac 9520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9521 (eval "$ac_compile") 2>conftest.er1 9522 ac_status=$? 9523 grep -v '^ *+' conftest.er1 >conftest.err 9524 rm -f conftest.er1 9525 cat conftest.err >&5 9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9527 (exit $ac_status); } && { 9528 test -z "$ac_c_werror_flag" || 9529 test ! -s conftest.err 9530 } && test -s conftest.$ac_objext; then 9531 tcl_cv_flag__largefile64_source=no 9532else 9533 echo "$as_me: failed program was:" >&5 9534sed 's/^/| /' conftest.$ac_ext >&5 9535 9536 cat >conftest.$ac_ext <<_ACEOF 9537/* confdefs.h. */ 9538_ACEOF 9539cat confdefs.h >>conftest.$ac_ext 9540cat >>conftest.$ac_ext <<_ACEOF 9541/* end confdefs.h. */ 9542#define _LARGEFILE64_SOURCE 1 9543#include <sys/stat.h> 9544int 9545main () 9546{ 9547struct stat64 buf; int i = stat64("/", &buf); 9548 ; 9549 return 0; 9550} 9551_ACEOF 9552rm -f conftest.$ac_objext 9553if { (ac_try="$ac_compile" 9554case "(($ac_try" in 9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9556 *) ac_try_echo=$ac_try;; 9557esac 9558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9559 (eval "$ac_compile") 2>conftest.er1 9560 ac_status=$? 9561 grep -v '^ *+' conftest.er1 >conftest.err 9562 rm -f conftest.er1 9563 cat conftest.err >&5 9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9565 (exit $ac_status); } && { 9566 test -z "$ac_c_werror_flag" || 9567 test ! -s conftest.err 9568 } && test -s conftest.$ac_objext; then 9569 tcl_cv_flag__largefile64_source=yes 9570else 9571 echo "$as_me: failed program was:" >&5 9572sed 's/^/| /' conftest.$ac_ext >&5 9573 9574 tcl_cv_flag__largefile64_source=no 9575fi 9576 9577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9578fi 9579 9580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9581fi 9582 9583 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9584 9585cat >>confdefs.h <<\_ACEOF 9586#define _LARGEFILE64_SOURCE 1 9587_ACEOF 9588 9589 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9590 fi 9591 9592 9593 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9594 echo $ECHO_N "(cached) $ECHO_C" >&6 9595else 9596 cat >conftest.$ac_ext <<_ACEOF 9597/* confdefs.h. */ 9598_ACEOF 9599cat confdefs.h >>conftest.$ac_ext 9600cat >>conftest.$ac_ext <<_ACEOF 9601/* end confdefs.h. */ 9602#include <sys/stat.h> 9603int 9604main () 9605{ 9606char *p = (char *)open64; 9607 ; 9608 return 0; 9609} 9610_ACEOF 9611rm -f conftest.$ac_objext 9612if { (ac_try="$ac_compile" 9613case "(($ac_try" in 9614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9615 *) ac_try_echo=$ac_try;; 9616esac 9617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9618 (eval "$ac_compile") 2>conftest.er1 9619 ac_status=$? 9620 grep -v '^ *+' conftest.er1 >conftest.err 9621 rm -f conftest.er1 9622 cat conftest.err >&5 9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9624 (exit $ac_status); } && { 9625 test -z "$ac_c_werror_flag" || 9626 test ! -s conftest.err 9627 } && test -s conftest.$ac_objext; then 9628 tcl_cv_flag__largefile_source64=no 9629else 9630 echo "$as_me: failed program was:" >&5 9631sed 's/^/| /' conftest.$ac_ext >&5 9632 9633 cat >conftest.$ac_ext <<_ACEOF 9634/* confdefs.h. */ 9635_ACEOF 9636cat confdefs.h >>conftest.$ac_ext 9637cat >>conftest.$ac_ext <<_ACEOF 9638/* end confdefs.h. */ 9639#define _LARGEFILE_SOURCE64 1 9640#include <sys/stat.h> 9641int 9642main () 9643{ 9644char *p = (char *)open64; 9645 ; 9646 return 0; 9647} 9648_ACEOF 9649rm -f conftest.$ac_objext 9650if { (ac_try="$ac_compile" 9651case "(($ac_try" in 9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9653 *) ac_try_echo=$ac_try;; 9654esac 9655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9656 (eval "$ac_compile") 2>conftest.er1 9657 ac_status=$? 9658 grep -v '^ *+' conftest.er1 >conftest.err 9659 rm -f conftest.er1 9660 cat conftest.err >&5 9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9662 (exit $ac_status); } && { 9663 test -z "$ac_c_werror_flag" || 9664 test ! -s conftest.err 9665 } && test -s conftest.$ac_objext; then 9666 tcl_cv_flag__largefile_source64=yes 9667else 9668 echo "$as_me: failed program was:" >&5 9669sed 's/^/| /' conftest.$ac_ext >&5 9670 9671 tcl_cv_flag__largefile_source64=no 9672fi 9673 9674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9675fi 9676 9677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9678fi 9679 9680 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9681 9682cat >>confdefs.h <<\_ACEOF 9683#define _LARGEFILE_SOURCE64 1 9684_ACEOF 9685 9686 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9687 fi 9688 9689 if test "x${tcl_flags}" = "x" ; then 9690 { echo "$as_me:$LINENO: result: none" >&5 9691echo "${ECHO_T}none" >&6; } 9692 else 9693 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9694echo "${ECHO_T}${tcl_flags}" >&6; } 9695 fi 9696 9697 9698 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9699echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 9700 if test "${tcl_cv_type_64bit+set}" = set; then 9701 echo $ECHO_N "(cached) $ECHO_C" >&6 9702else 9703 9704 tcl_cv_type_64bit=none 9705 # See if the compiler knows natively about __int64 9706 cat >conftest.$ac_ext <<_ACEOF 9707/* confdefs.h. */ 9708_ACEOF 9709cat confdefs.h >>conftest.$ac_ext 9710cat >>conftest.$ac_ext <<_ACEOF 9711/* end confdefs.h. */ 9712 9713int 9714main () 9715{ 9716__int64 value = (__int64) 0; 9717 ; 9718 return 0; 9719} 9720_ACEOF 9721rm -f conftest.$ac_objext 9722if { (ac_try="$ac_compile" 9723case "(($ac_try" in 9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9725 *) ac_try_echo=$ac_try;; 9726esac 9727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9728 (eval "$ac_compile") 2>conftest.er1 9729 ac_status=$? 9730 grep -v '^ *+' conftest.er1 >conftest.err 9731 rm -f conftest.er1 9732 cat conftest.err >&5 9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9734 (exit $ac_status); } && { 9735 test -z "$ac_c_werror_flag" || 9736 test ! -s conftest.err 9737 } && test -s conftest.$ac_objext; then 9738 tcl_type_64bit=__int64 9739else 9740 echo "$as_me: failed program was:" >&5 9741sed 's/^/| /' conftest.$ac_ext >&5 9742 9743 tcl_type_64bit="long long" 9744fi 9745 9746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9747 # See if we should use long anyway Note that we substitute in the 9748 # type that is our current guess for a 64-bit type inside this check 9749 # program, so it should be modified only carefully... 9750 cat >conftest.$ac_ext <<_ACEOF 9751/* confdefs.h. */ 9752_ACEOF 9753cat confdefs.h >>conftest.$ac_ext 9754cat >>conftest.$ac_ext <<_ACEOF 9755/* end confdefs.h. */ 9756 9757int 9758main () 9759{ 9760switch (0) { 9761 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9762 } 9763 ; 9764 return 0; 9765} 9766_ACEOF 9767rm -f conftest.$ac_objext 9768if { (ac_try="$ac_compile" 9769case "(($ac_try" in 9770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9771 *) ac_try_echo=$ac_try;; 9772esac 9773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9774 (eval "$ac_compile") 2>conftest.er1 9775 ac_status=$? 9776 grep -v '^ *+' conftest.er1 >conftest.err 9777 rm -f conftest.er1 9778 cat conftest.err >&5 9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9780 (exit $ac_status); } && { 9781 test -z "$ac_c_werror_flag" || 9782 test ! -s conftest.err 9783 } && test -s conftest.$ac_objext; then 9784 tcl_cv_type_64bit=${tcl_type_64bit} 9785else 9786 echo "$as_me: failed program was:" >&5 9787sed 's/^/| /' conftest.$ac_ext >&5 9788 9789 9790fi 9791 9792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9793fi 9794 9795 if test "${tcl_cv_type_64bit}" = none ; then 9796 9797cat >>confdefs.h <<\_ACEOF 9798#define TCL_WIDE_INT_IS_LONG 1 9799_ACEOF 9800 9801 { echo "$as_me:$LINENO: result: using long" >&5 9802echo "${ECHO_T}using long" >&6; } 9803 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9804 -a "${TEA_PLATFORM}" = "windows" ; then 9805 # TEA specific: We actually want to use the default tcl.h checks in 9806 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 9807 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 9808echo "${ECHO_T}using Tcl header defaults" >&6; } 9809 else 9810 9811cat >>confdefs.h <<_ACEOF 9812#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 9813_ACEOF 9814 9815 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 9816echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 9817 9818 # Now check for auxiliary declarations 9819 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 9820echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 9821if test "${tcl_cv_struct_dirent64+set}" = set; then 9822 echo $ECHO_N "(cached) $ECHO_C" >&6 9823else 9824 9825 cat >conftest.$ac_ext <<_ACEOF 9826/* confdefs.h. */ 9827_ACEOF 9828cat confdefs.h >>conftest.$ac_ext 9829cat >>conftest.$ac_ext <<_ACEOF 9830/* end confdefs.h. */ 9831#include <sys/types.h> 9832#include <sys/dirent.h> 9833int 9834main () 9835{ 9836struct dirent64 p; 9837 ; 9838 return 0; 9839} 9840_ACEOF 9841rm -f conftest.$ac_objext 9842if { (ac_try="$ac_compile" 9843case "(($ac_try" in 9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9845 *) ac_try_echo=$ac_try;; 9846esac 9847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9848 (eval "$ac_compile") 2>conftest.er1 9849 ac_status=$? 9850 grep -v '^ *+' conftest.er1 >conftest.err 9851 rm -f conftest.er1 9852 cat conftest.err >&5 9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9854 (exit $ac_status); } && { 9855 test -z "$ac_c_werror_flag" || 9856 test ! -s conftest.err 9857 } && test -s conftest.$ac_objext; then 9858 tcl_cv_struct_dirent64=yes 9859else 9860 echo "$as_me: failed program was:" >&5 9861sed 's/^/| /' conftest.$ac_ext >&5 9862 9863 tcl_cv_struct_dirent64=no 9864fi 9865 9866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9867fi 9868{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 9869echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 9870 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 9871 9872cat >>confdefs.h <<\_ACEOF 9873#define HAVE_STRUCT_DIRENT64 1 9874_ACEOF 9875 9876 fi 9877 9878 { echo "$as_me:$LINENO: checking for struct stat64" >&5 9879echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 9880if test "${tcl_cv_struct_stat64+set}" = set; then 9881 echo $ECHO_N "(cached) $ECHO_C" >&6 9882else 9883 9884 cat >conftest.$ac_ext <<_ACEOF 9885/* confdefs.h. */ 9886_ACEOF 9887cat confdefs.h >>conftest.$ac_ext 9888cat >>conftest.$ac_ext <<_ACEOF 9889/* end confdefs.h. */ 9890#include <sys/stat.h> 9891int 9892main () 9893{ 9894struct stat64 p; 9895 9896 ; 9897 return 0; 9898} 9899_ACEOF 9900rm -f conftest.$ac_objext 9901if { (ac_try="$ac_compile" 9902case "(($ac_try" in 9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9904 *) ac_try_echo=$ac_try;; 9905esac 9906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9907 (eval "$ac_compile") 2>conftest.er1 9908 ac_status=$? 9909 grep -v '^ *+' conftest.er1 >conftest.err 9910 rm -f conftest.er1 9911 cat conftest.err >&5 9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9913 (exit $ac_status); } && { 9914 test -z "$ac_c_werror_flag" || 9915 test ! -s conftest.err 9916 } && test -s conftest.$ac_objext; then 9917 tcl_cv_struct_stat64=yes 9918else 9919 echo "$as_me: failed program was:" >&5 9920sed 's/^/| /' conftest.$ac_ext >&5 9921 9922 tcl_cv_struct_stat64=no 9923fi 9924 9925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9926fi 9927{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 9928echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 9929 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 9930 9931cat >>confdefs.h <<\_ACEOF 9932#define HAVE_STRUCT_STAT64 1 9933_ACEOF 9934 9935 fi 9936 9937 9938 9939for ac_func in open64 lseek64 9940do 9941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9942{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9944if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9945 echo $ECHO_N "(cached) $ECHO_C" >&6 9946else 9947 cat >conftest.$ac_ext <<_ACEOF 9948/* confdefs.h. */ 9949_ACEOF 9950cat confdefs.h >>conftest.$ac_ext 9951cat >>conftest.$ac_ext <<_ACEOF 9952/* end confdefs.h. */ 9953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9954 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9955#define $ac_func innocuous_$ac_func 9956 9957/* System header to define __stub macros and hopefully few prototypes, 9958 which can conflict with char $ac_func (); below. 9959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9960 <limits.h> exists even on freestanding compilers. */ 9961 9962#ifdef __STDC__ 9963# include <limits.h> 9964#else 9965# include <assert.h> 9966#endif 9967 9968#undef $ac_func 9969 9970/* Override any GCC internal prototype to avoid an error. 9971 Use char because int might match the return type of a GCC 9972 builtin and then its argument prototype would still apply. */ 9973#ifdef __cplusplus 9974extern "C" 9975#endif 9976char $ac_func (); 9977/* The GNU C library defines this for functions which it implements 9978 to always fail with ENOSYS. Some functions are actually named 9979 something starting with __ and the normal name is an alias. */ 9980#if defined __stub_$ac_func || defined __stub___$ac_func 9981choke me 9982#endif 9983 9984int 9985main () 9986{ 9987return $ac_func (); 9988 ; 9989 return 0; 9990} 9991_ACEOF 9992rm -f conftest.$ac_objext conftest$ac_exeext 9993if { (ac_try="$ac_link" 9994case "(($ac_try" in 9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9996 *) ac_try_echo=$ac_try;; 9997esac 9998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9999 (eval "$ac_link") 2>conftest.er1 10000 ac_status=$? 10001 grep -v '^ *+' conftest.er1 >conftest.err 10002 rm -f conftest.er1 10003 cat conftest.err >&5 10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10005 (exit $ac_status); } && { 10006 test -z "$ac_c_werror_flag" || 10007 test ! -s conftest.err 10008 } && test -s conftest$ac_exeext && 10009 $as_test_x conftest$ac_exeext; then 10010 eval "$as_ac_var=yes" 10011else 10012 echo "$as_me: failed program was:" >&5 10013sed 's/^/| /' conftest.$ac_ext >&5 10014 10015 eval "$as_ac_var=no" 10016fi 10017 10018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10019 conftest$ac_exeext conftest.$ac_ext 10020fi 10021ac_res=`eval echo '${'$as_ac_var'}'` 10022 { echo "$as_me:$LINENO: result: $ac_res" >&5 10023echo "${ECHO_T}$ac_res" >&6; } 10024if test `eval echo '${'$as_ac_var'}'` = yes; then 10025 cat >>confdefs.h <<_ACEOF 10026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10027_ACEOF 10028 10029fi 10030done 10031 10032 { echo "$as_me:$LINENO: checking for off64_t" >&5 10033echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10034 if test "${tcl_cv_type_off64_t+set}" = set; then 10035 echo $ECHO_N "(cached) $ECHO_C" >&6 10036else 10037 10038 cat >conftest.$ac_ext <<_ACEOF 10039/* confdefs.h. */ 10040_ACEOF 10041cat confdefs.h >>conftest.$ac_ext 10042cat >>conftest.$ac_ext <<_ACEOF 10043/* end confdefs.h. */ 10044#include <sys/types.h> 10045int 10046main () 10047{ 10048off64_t offset; 10049 10050 ; 10051 return 0; 10052} 10053_ACEOF 10054rm -f conftest.$ac_objext 10055if { (ac_try="$ac_compile" 10056case "(($ac_try" in 10057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10058 *) ac_try_echo=$ac_try;; 10059esac 10060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10061 (eval "$ac_compile") 2>conftest.er1 10062 ac_status=$? 10063 grep -v '^ *+' conftest.er1 >conftest.err 10064 rm -f conftest.er1 10065 cat conftest.err >&5 10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10067 (exit $ac_status); } && { 10068 test -z "$ac_c_werror_flag" || 10069 test ! -s conftest.err 10070 } && test -s conftest.$ac_objext; then 10071 tcl_cv_type_off64_t=yes 10072else 10073 echo "$as_me: failed program was:" >&5 10074sed 's/^/| /' conftest.$ac_ext >&5 10075 10076 tcl_cv_type_off64_t=no 10077fi 10078 10079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10080fi 10081 10082 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10083 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10084 test "x${ac_cv_func_open64}" = "xyes" ; then 10085 10086cat >>confdefs.h <<\_ACEOF 10087#define HAVE_TYPE_OFF64_T 1 10088_ACEOF 10089 10090 { echo "$as_me:$LINENO: result: yes" >&5 10091echo "${ECHO_T}yes" >&6; } 10092 else 10093 { echo "$as_me:$LINENO: result: no" >&5 10094echo "${ECHO_T}no" >&6; } 10095 fi 10096 fi 10097 10098 10099 10100#-------------------------------------------------------------------- 10101# Set the default compiler switches based on the --enable-symbols option. 10102#-------------------------------------------------------------------- 10103 10104 10105 10106 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10107echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10108 # Check whether --enable-symbols was given. 10109if test "${enable_symbols+set}" = set; then 10110 enableval=$enable_symbols; tcl_ok=$enableval 10111else 10112 tcl_ok=no 10113fi 10114 10115 DBGX="" 10116 if test "$tcl_ok" = "no"; then 10117 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10118 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10119 { echo "$as_me:$LINENO: result: no" >&5 10120echo "${ECHO_T}no" >&6; } 10121 else 10122 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10123 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10124 if test "$tcl_ok" = "yes"; then 10125 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10126echo "${ECHO_T}yes (standard debugging)" >&6; } 10127 fi 10128 fi 10129 # TEA specific: 10130 if test "${TEA_PLATFORM}" != "windows" ; then 10131 LDFLAGS_DEFAULT="${LDFLAGS}" 10132 fi 10133 10134 10135 10136 10137 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10138 10139cat >>confdefs.h <<\_ACEOF 10140#define TCL_MEM_DEBUG 1 10141_ACEOF 10142 10143 fi 10144 10145 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10146 if test "$tcl_ok" = "all"; then 10147 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10148echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10149 else 10150 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10151echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10152 fi 10153 fi 10154 10155 10156#-------------------------------------------------------------------- 10157# Everyone should be linking against the Tcl stub library. If you 10158# can't for some reason, remove this definition. If you aren't using 10159# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10160# link against the non-stubbed Tcl library. Add Tk too if necessary. 10161#-------------------------------------------------------------------- 10162 10163cat >>confdefs.h <<\_ACEOF 10164#define USE_TCL_STUBS 1 10165_ACEOF 10166 10167 10168#-------------------------------------------------------------------- 10169# If the variable OPENSSL is set, we will build with the OpenSSL 10170# libraries. If it is not set, then we will use RSA BSAFE SSL-C 10171# libraries instead of the default OpenSSL libaries. 10172#-------------------------------------------------------------------- 10173 10174OPENSSL="1" 10175 10176 10177 10178 #-------------------------------------------------------------------- 10179 # If the variable OPENSSL is set, we will build with the OpenSSL 10180 # libraries. If it is not set, then we will use RSA BSAFE SSL-C 10181 # libraries instead of the default OpenSSL libaries. 10182 #-------------------------------------------------------------------- 10183 10184 # Check whether --enable-bsafe was given. 10185if test "${enable_bsafe+set}" = set; then 10186 enableval=$enable_bsafe; OPENSSL="" 10187else 10188 OPENSSL="1" 10189fi 10190 10191 10192 #-------------------------------------------------------------------- 10193 # Establish the location of the root directory for OpenSSL. 10194 # If we're not using OpenSSL, set the root for BSAFE SSL-C. 10195 # If we're using BSAFE, define the BSAFE compiler flag. 10196 # The "FLAT_INC" flag is used in the BSAFE ssl.h header file and 10197 # doesn't seem to be referenced anywhere else. 10198 #-------------------------------------------------------------------- 10199 if test -n "${OPENSSL}"; then 10200 SSL_DIR='/usr /usr/local' 10201 cat >>confdefs.h <<\_ACEOF 10202#define NO_IDEA 1 10203_ACEOF 10204 10205 cat >>confdefs.h <<\_ACEOF 10206#define NO_RC5 1 10207_ACEOF 10208 10209 else 10210 SSL_DIR='/usr/sslc /usr/local/sslc' 10211 cat >>confdefs.h <<\_ACEOF 10212#define BSAFE 1 10213_ACEOF 10214 10215 cat >>confdefs.h <<\_ACEOF 10216#define FLAT_INC 1 10217_ACEOF 10218 10219 fi 10220 10221 { echo "$as_me:$LINENO: checking for SSL directory" >&5 10222echo $ECHO_N "checking for SSL directory... $ECHO_C" >&6; } 10223 10224 10225# Check whether --with-ssl-dir was given. 10226if test "${with_ssl_dir+set}" = set; then 10227 withval=$with_ssl_dir; with_ssldir=${withval} 10228fi 10229 10230 10231 if test "${ac_cv_c_ssldir+set}" = set; then 10232 echo $ECHO_N "(cached) $ECHO_C" >&6 10233else 10234 10235 # Use the value from --with-ssl-dir, if it was given 10236 if test x"${with_ssldir}" != x ; then 10237 if test -d "${with_ssldir}" ; then 10238 ac_cv_c_ssldir=${with_ssldir} 10239 else 10240 { { echo "$as_me:$LINENO: error: ${with_ssldir} is not a valid directory" >&5 10241echo "$as_me: error: ${with_ssldir} is not a valid directory" >&2;} 10242 { (exit 1); exit 1; }; } 10243 fi 10244 else 10245 list="`ls -d ${SSL_DIR} 2>/dev/null`" 10246 for i in $list ; do 10247 if test -d "$i" ; then 10248 ac_cv_c_ssldir=$i 10249 break 10250 fi 10251 done 10252 fi 10253 10254fi 10255 10256 10257 # Print a message based on how we determined the include path 10258 10259 if test x"${ac_cv_c_ssldir}" = x ; then 10260 { { echo "$as_me:$LINENO: error: Could not find SSL directory. 10261Please specify its location with --with-ssl-dir" >&5 10262echo "$as_me: error: Could not find SSL directory. 10263Please specify its location with --with-ssl-dir" >&2;} 10264 { (exit 1); exit 1; }; } 10265 else 10266 SSL_DIR=${ac_cv_c_ssldir} 10267 { echo "$as_me:$LINENO: result: ${SSL_DIR}" >&5 10268echo "${ECHO_T}${SSL_DIR}" >&6; } 10269 fi 10270 10271 10272 #-------------------------------------------------------------------- 10273 # The OpenSSL and BSAFE SSL-C directory structures differ. 10274 #-------------------------------------------------------------------- 10275 10276 if test -n "${OPENSSL}"; then 10277 SSL_LIB_DIR=${SSL_DIR}/lib 10278 SSL_INCLUDE_DIR=${SSL_DIR}/include 10279 if test ! -f "${SSL_INCLUDE_DIR}/openssl/opensslv.h"; then 10280 { { echo "$as_me:$LINENO: error: bad ssl-dir: cannot find openssl/opensslv.h under ${SSL_INCLUDE_DIR}" >&5 10281echo "$as_me: error: bad ssl-dir: cannot find openssl/opensslv.h under ${SSL_INCLUDE_DIR}" >&2;} 10282 { (exit 1); exit 1; }; } 10283 fi 10284 else 10285 #-------------------------------------------------------------------- 10286 # If we're using RSA BSAFE SSL-C, we need to establish what platform 10287 # we're running on before we can figure out some paths. 10288 # This step isn't necessary if we're using OpenSSL. 10289 #-------------------------------------------------------------------- 10290 10291 if test -z "${OPENSSL}"; then 10292 { echo "$as_me:$LINENO: checking host type" >&5 10293echo $ECHO_N "checking host type... $ECHO_C" >&6; } 10294 case "`uname -s`" in 10295 *win32* | *WIN32* | *CYGWIN_NT*|*CYGWIN_98*|*CYGWIN_95*) 10296 PLATFORM=WIN32 10297 ;; 10298 *SunOS*) 10299 PLATFORM=SOLARIS 10300 ;; 10301 HP-UX) 10302 PLATFORM=HPUX 10303 ;; 10304 *) 10305 PLATFORM=LINUX 10306 ;; 10307 esac 10308 { echo "$as_me:$LINENO: result: ${PLATFORM}" >&5 10309echo "${ECHO_T}${PLATFORM}" >&6; } 10310 fi 10311 SSL_LIB_DIR=${SSL_DIR}/${PLATFORM}/library/lib 10312 SSL_INCLUDE_DIR=${SSL_DIR}/${PLATFORM}/library/include 10313 if test ! -f "${SSL_INCLUDE_DIR}/crypto.h"; then 10314 { { echo "$as_me:$LINENO: error: bad ssl-dir: cannot find crypto.h under ${SSL_INCLUDE_DIR}" >&5 10315echo "$as_me: error: bad ssl-dir: cannot find crypto.h under ${SSL_INCLUDE_DIR}" >&2;} 10316 { (exit 1); exit 1; }; } 10317 fi 10318 fi 10319 10320 10321 10322 10323 10324 SSL_INCLUDE_DIR_NATIVE=\"`${CYGPATH} ${SSL_INCLUDE_DIR}`\" 10325 SSL_LIB_DIR_NATIVE=\"`${CYGPATH} ${SSL_LIB_DIR}`\" 10326 10327 10328 10329 #-------------------------------------------------------------------- 10330 # If OpenSSL was built with gcc then there may be some symbols that need 10331 # resolving before we can load it into tclsh (__udivd3i on solaris. 10332 # Let the user specify if we need to add libgcc to the link line to 10333 # resolve these symbols. 10334 # 10335 # This doesn't seem to be necessary if the RSA BSAFE SSL-C libraries 10336 # are used instead of OpenSSL. 10337 #-------------------------------------------------------------------- 10338 10339 if test -n "${OPENSSL}"; then 10340 { echo "$as_me:$LINENO: checking if libgcc is needed to resolve openssl symbols" >&5 10341echo $ECHO_N "checking if libgcc is needed to resolve openssl symbols... $ECHO_C" >&6; } 10342 10343 10344# Check whether --with-gcclib was given. 10345if test "${with_gcclib+set}" = set; then 10346 withval=$with_gcclib; GCCLIB="-lgcc" 10347else 10348 GCCLIB="" 10349fi 10350 10351 10352 if test "x${GCCLIB}" = "x" ; then 10353 { echo "$as_me:$LINENO: result: no" >&5 10354echo "${ECHO_T}no" >&6; } 10355 else 10356 { echo "$as_me:$LINENO: result: yes" >&5 10357echo "${ECHO_T}yes" >&6; } 10358 { echo "$as_me:$LINENO: checking for gcc library location" >&5 10359echo $ECHO_N "checking for gcc library location... $ECHO_C" >&6; } 10360 GCCPATH=`${CC} -print-libgcc-file-name | sed -e 's#[^/]*0#'` 10361 GCCPATH="-L${GCCPATH}" 10362 { echo "$as_me:$LINENO: result: ${GCCPATH}" >&5 10363echo "${ECHO_T}${GCCPATH}" >&6; } 10364 fi 10365 fi 10366 10367 10368 10369#-------------------------------------------------------------------- 10370# Determine if we should use the patented encryption code 10371#-------------------------------------------------------------------- 10372 10373# Check whether --enable-patents was given. 10374if test "${enable_patents+set}" = set; then 10375 enableval=$enable_patents; PATENTS=${enableval} 10376else 10377 PATENTS=yes 10378fi 10379 10380 10381if test ${PATENTS} = no; then 10382 cat >>confdefs.h <<\_ACEOF 10383#define NO_PATENTS 1 10384_ACEOF 10385 10386fi 10387 10388#-------------------------------------------------------------------- 10389# This macro generates a line to use when building a library. It 10390# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10391# and TEA_LOAD_TCLCONFIG macros above. 10392#-------------------------------------------------------------------- 10393 10394 10395 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10396 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10397 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10398 cat >conftest.$ac_ext <<_ACEOF 10399/* confdefs.h. */ 10400_ACEOF 10401cat confdefs.h >>conftest.$ac_ext 10402cat >>conftest.$ac_ext <<_ACEOF 10403/* end confdefs.h. */ 10404 10405#if defined(_MSC_VER) && _MSC_VER >= 1400 10406print("manifest needed") 10407#endif 10408 10409_ACEOF 10410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10411 $EGREP "manifest needed" >/dev/null 2>&1; then 10412 10413 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 10414 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 10415 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 10416 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 10417 10418 CLEANFILES="$CLEANFILES *.manifest" 10419 10420 10421fi 10422rm -f -r conftest* 10423 10424 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10425 else 10426 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10427 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 10428 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10429 fi 10430 10431 if test "${SHARED_BUILD}" = "1" ; then 10432 MAKE_LIB="${MAKE_SHARED_LIB} " 10433 else 10434 MAKE_LIB="${MAKE_STATIC_LIB} " 10435 fi 10436 10437 #-------------------------------------------------------------------- 10438 # Shared libraries and static libraries have different names. 10439 # Use the double eval to make sure any variables in the suffix is 10440 # substituted. (@@@ Might not be necessary anymore) 10441 #-------------------------------------------------------------------- 10442 10443 if test "${TEA_PLATFORM}" = "windows" ; then 10444 if test "${SHARED_BUILD}" = "1" ; then 10445 # We force the unresolved linking of symbols that are really in 10446 # the private libraries of Tcl and Tk. 10447 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10448 if test x"${TK_BIN_DIR}" != x ; then 10449 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10450 fi 10451 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10452 else 10453 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10454 fi 10455 # Some packages build their own stubs libraries 10456 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10457 if test "$GCC" = "yes"; then 10458 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 10459 fi 10460 # These aren't needed on Windows (either MSVC or gcc) 10461 RANLIB=: 10462 RANLIB_STUB=: 10463 else 10464 RANLIB_STUB="${RANLIB}" 10465 if test "${SHARED_BUILD}" = "1" ; then 10466 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10467 if test x"${TK_BIN_DIR}" != x ; then 10468 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10469 fi 10470 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10471 RANLIB=: 10472 else 10473 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10474 fi 10475 # Some packages build their own stubs libraries 10476 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10477 fi 10478 10479 # These are escaped so that only CFLAGS is picked up at configure time. 10480 # The other values will be substituted at make time. 10481 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10482 if test "${SHARED_BUILD}" = "1" ; then 10483 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10484 fi 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495#-------------------------------------------------------------------- 10496# Shared libraries and static libraries have different names. 10497# Also, windows libraries and unix libraries have different names. 10498# For the OpenSSL version, I chose to use the same library names that 10499# OpenSSL uses as its default names. 10500#-------------------------------------------------------------------- 10501 10502if test "${TEA_PLATFORM}" = "windows" ; then 10503 if test "$GCC" = "yes"; then 10504 10505 vars="-L${SSL_LIB_DIR_NATIVE}" 10506 for i in $vars; do 10507 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 10508 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 10509 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 10510 fi 10511 PKG_LIBS="$PKG_LIBS $i" 10512 done 10513 10514 10515 else 10516 10517 vars="-libpath:${SSL_LIB_DIR_NATIVE}" 10518 for i in $vars; do 10519 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 10520 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 10521 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 10522 fi 10523 PKG_LIBS="$PKG_LIBS $i" 10524 done 10525 10526 10527 fi 10528 if test -n "${OPENSSL}"; then 10529 10530 vars="ssleay32.lib libeay32.lib" 10531 for i in $vars; do 10532 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 10533 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 10534 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 10535 fi 10536 PKG_LIBS="$PKG_LIBS $i" 10537 done 10538 10539 10540 else 10541 10542 vars="sslc32.lib" 10543 for i in $vars; do 10544 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 10545 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 10546 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 10547 fi 10548 PKG_LIBS="$PKG_LIBS $i" 10549 done 10550 10551 10552 fi 10553else 10554 # Subst runtime dir here, use -R and -L where necessary. [Bug 1742859] 10555 LIB_RUNTIME_DIR=${SSL_LIB_DIR} 10556 eval "LD_SEARCH_FLAGS=\"${LD_SEARCH_FLAGS}\"" 10557 if test -n "${OPENSSL}"; then 10558 10559 vars="${LD_SEARCH_FLAGS} -L${SSL_LIB_DIR} -lssl -lcrypto ${GCCPATH} ${GCCLIB}" 10560 for i in $vars; do 10561 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 10562 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 10563 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 10564 fi 10565 PKG_LIBS="$PKG_LIBS $i" 10566 done 10567 10568 10569 else 10570 10571 vars="${LD_SEARCH_FLAGS} -L${SSL_LIB_DIR} -lsslc" 10572 for i in $vars; do 10573 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 10574 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 10575 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 10576 fi 10577 PKG_LIBS="$PKG_LIBS $i" 10578 done 10579 10580 10581 fi 10582fi 10583 10584#-------------------------------------------------------------------- 10585# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 10586# file during the install process. Don't run the TCLSH_PROG through 10587# ${CYGPATH} because it's being used directly by make. 10588# Require that we use a tclsh shell version 8.2 or later since earlier 10589# versions have bugs in the pkg_mkIndex routine. 10590# Add WISH as well if this is a Tk extension. 10591#-------------------------------------------------------------------- 10592 10593 10594 { echo "$as_me:$LINENO: checking for tclsh" >&5 10595echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 10596 if test -f "${TCL_BIN_DIR}/Makefile" ; then 10597 # tclConfig.sh is in Tcl build directory 10598 if test "${TEA_PLATFORM}" = "windows"; then 10599 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10600 else 10601 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 10602 fi 10603 else 10604 # tclConfig.sh is in install location 10605 if test "${TEA_PLATFORM}" = "windows"; then 10606 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10607 else 10608 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10609 fi 10610 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10611 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10612 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10613 for i in $list ; do 10614 if test -f "$i/${TCLSH_PROG}" ; then 10615 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 10616 break 10617 fi 10618 done 10619 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 10620 fi 10621 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10622echo "${ECHO_T}${TCLSH_PROG}" >&6; } 10623 10624 10625 10626#-------------------------------------------------------------------- 10627# Finally, substitute all of the various values into the Makefile. 10628#-------------------------------------------------------------------- 10629 10630ac_config_files="$ac_config_files Makefile" 10631 10632cat >confcache <<\_ACEOF 10633# This file is a shell script that caches the results of configure 10634# tests run on this system so they can be shared between configure 10635# scripts and configure runs, see configure's option --config-cache. 10636# It is not useful on other systems. If it contains results you don't 10637# want to keep, you may remove or edit it. 10638# 10639# config.status only pays attention to the cache file if you give it 10640# the --recheck option to rerun configure. 10641# 10642# `ac_cv_env_foo' variables (set or unset) will be overridden when 10643# loading this file, other *unset* `ac_cv_foo' will be assigned the 10644# following values. 10645 10646_ACEOF 10647 10648# The following way of writing the cache mishandles newlines in values, 10649# but we know of no workaround that is simple, portable, and efficient. 10650# So, we kill variables containing newlines. 10651# Ultrix sh set writes to stderr and can't be redirected directly, 10652# and sets the high bit in the cache file unless we assign to the vars. 10653( 10654 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10655 eval ac_val=\$$ac_var 10656 case $ac_val in #( 10657 *${as_nl}*) 10658 case $ac_var in #( 10659 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 10660echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 10661 esac 10662 case $ac_var in #( 10663 _ | IFS | as_nl) ;; #( 10664 *) $as_unset $ac_var ;; 10665 esac ;; 10666 esac 10667 done 10668 10669 (set) 2>&1 | 10670 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10671 *${as_nl}ac_space=\ *) 10672 # `set' does not quote correctly, so add quotes (double-quote 10673 # substitution turns \\\\ into \\, and sed turns \\ into \). 10674 sed -n \ 10675 "s/'/'\\\\''/g; 10676 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10677 ;; #( 10678 *) 10679 # `set' quotes correctly as required by POSIX, so do not add quotes. 10680 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10681 ;; 10682 esac | 10683 sort 10684) | 10685 sed ' 10686 /^ac_cv_env_/b end 10687 t clear 10688 :clear 10689 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10690 t end 10691 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10692 :end' >>confcache 10693if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10694 if test -w "$cache_file"; then 10695 test "x$cache_file" != "x/dev/null" && 10696 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 10697echo "$as_me: updating cache $cache_file" >&6;} 10698 cat confcache >$cache_file 10699 else 10700 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10701echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10702 fi 10703fi 10704rm -f confcache 10705 10706test "x$prefix" = xNONE && prefix=$ac_default_prefix 10707# Let make expand exec_prefix. 10708test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10709 10710# Transform confdefs.h into DEFS. 10711# Protect against shell expansion while executing Makefile rules. 10712# Protect against Makefile macro expansion. 10713# 10714# If the first sed substitution is executed (which looks for macros that 10715# take arguments), then branch to the quote section. Otherwise, 10716# look for a macro that doesn't take arguments. 10717ac_script=' 10718t clear 10719:clear 10720s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10721t quote 10722s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10723t quote 10724b any 10725:quote 10726s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10727s/\[/\\&/g 10728s/\]/\\&/g 10729s/\$/$$/g 10730H 10731:any 10732${ 10733 g 10734 s/^\n// 10735 s/\n/ /g 10736 p 10737} 10738' 10739DEFS=`sed -n "$ac_script" confdefs.h` 10740 10741 10742ac_libobjs= 10743ac_ltlibobjs= 10744for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10745 # 1. Remove the extension, and $U if already installed. 10746 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10747 ac_i=`echo "$ac_i" | sed "$ac_script"` 10748 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10749 # will be set to the directory where LIBOBJS objects are built. 10750 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10751 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 10752done 10753LIBOBJS=$ac_libobjs 10754 10755LTLIBOBJS=$ac_ltlibobjs 10756 10757 10758CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 10759 10760: ${CONFIG_STATUS=./config.status} 10761ac_clean_files_save=$ac_clean_files 10762ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10763{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10764echo "$as_me: creating $CONFIG_STATUS" >&6;} 10765cat >$CONFIG_STATUS <<_ACEOF 10766#! $SHELL 10767# Generated by $as_me. 10768# Run this file to recreate the current configuration. 10769# Compiler output produced by configure, useful for debugging 10770# configure, is in config.log if it exists. 10771 10772debug=false 10773ac_cs_recheck=false 10774ac_cs_silent=false 10775SHELL=\${CONFIG_SHELL-$SHELL} 10776_ACEOF 10777 10778cat >>$CONFIG_STATUS <<\_ACEOF 10779## --------------------- ## 10780## M4sh Initialization. ## 10781## --------------------- ## 10782 10783# Be more Bourne compatible 10784DUALCASE=1; export DUALCASE # for MKS sh 10785if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10786 emulate sh 10787 NULLCMD=: 10788 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10789 # is contrary to our usage. Disable this feature. 10790 alias -g '${1+"$@"}'='"$@"' 10791 setopt NO_GLOB_SUBST 10792else 10793 case `(set -o) 2>/dev/null` in 10794 *posix*) set -o posix ;; 10795esac 10796 10797fi 10798 10799 10800 10801 10802# PATH needs CR 10803# Avoid depending upon Character Ranges. 10804as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10805as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10806as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10807as_cr_digits='0123456789' 10808as_cr_alnum=$as_cr_Letters$as_cr_digits 10809 10810# The user is always right. 10811if test "${PATH_SEPARATOR+set}" != set; then 10812 echo "#! /bin/sh" >conf$$.sh 10813 echo "exit 0" >>conf$$.sh 10814 chmod +x conf$$.sh 10815 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10816 PATH_SEPARATOR=';' 10817 else 10818 PATH_SEPARATOR=: 10819 fi 10820 rm -f conf$$.sh 10821fi 10822 10823# Support unset when possible. 10824if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10825 as_unset=unset 10826else 10827 as_unset=false 10828fi 10829 10830 10831# IFS 10832# We need space, tab and new line, in precisely that order. Quoting is 10833# there to prevent editors from complaining about space-tab. 10834# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10835# splitting by setting IFS to empty value.) 10836as_nl=' 10837' 10838IFS=" "" $as_nl" 10839 10840# Find who we are. Look in the path if we contain no directory separator. 10841case $0 in 10842 *[\\/]* ) as_myself=$0 ;; 10843 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10844for as_dir in $PATH 10845do 10846 IFS=$as_save_IFS 10847 test -z "$as_dir" && as_dir=. 10848 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10849done 10850IFS=$as_save_IFS 10851 10852 ;; 10853esac 10854# We did not find ourselves, most probably we were run as `sh COMMAND' 10855# in which case we are not to be found in the path. 10856if test "x$as_myself" = x; then 10857 as_myself=$0 10858fi 10859if test ! -f "$as_myself"; then 10860 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10861 { (exit 1); exit 1; } 10862fi 10863 10864# Work around bugs in pre-3.0 UWIN ksh. 10865for as_var in ENV MAIL MAILPATH 10866do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10867done 10868PS1='$ ' 10869PS2='> ' 10870PS4='+ ' 10871 10872# NLS nuisances. 10873for as_var in \ 10874 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10875 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10876 LC_TELEPHONE LC_TIME 10877do 10878 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 10879 eval $as_var=C; export $as_var 10880 else 10881 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10882 fi 10883done 10884 10885# Required to use basename. 10886if expr a : '\(a\)' >/dev/null 2>&1 && 10887 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10888 as_expr=expr 10889else 10890 as_expr=false 10891fi 10892 10893if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10894 as_basename=basename 10895else 10896 as_basename=false 10897fi 10898 10899 10900# Name of the executable. 10901as_me=`$as_basename -- "$0" || 10902$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10903 X"$0" : 'X\(//\)$' \| \ 10904 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10905echo X/"$0" | 10906 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10907 s//\1/ 10908 q 10909 } 10910 /^X\/\(\/\/\)$/{ 10911 s//\1/ 10912 q 10913 } 10914 /^X\/\(\/\).*/{ 10915 s//\1/ 10916 q 10917 } 10918 s/.*/./; q'` 10919 10920# CDPATH. 10921$as_unset CDPATH 10922 10923 10924 10925 as_lineno_1=$LINENO 10926 as_lineno_2=$LINENO 10927 test "x$as_lineno_1" != "x$as_lineno_2" && 10928 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 10929 10930 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10931 # uniformly replaced by the line number. The first 'sed' inserts a 10932 # line-number line after each line using $LINENO; the second 'sed' 10933 # does the real work. The second script uses 'N' to pair each 10934 # line-number line with the line containing $LINENO, and appends 10935 # trailing '-' during substitution so that $LINENO is not a special 10936 # case at line end. 10937 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10938 # scripts with optimization help from Paolo Bonzini. Blame Lee 10939 # E. McMahon (1931-1989) for sed's syntax. :-) 10940 sed -n ' 10941 p 10942 /[$]LINENO/= 10943 ' <$as_myself | 10944 sed ' 10945 s/[$]LINENO.*/&-/ 10946 t lineno 10947 b 10948 :lineno 10949 N 10950 :loop 10951 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 10952 t loop 10953 s/-\n.*// 10954 ' >$as_me.lineno && 10955 chmod +x "$as_me.lineno" || 10956 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 10957 { (exit 1); exit 1; }; } 10958 10959 # Don't try to exec as it changes $[0], causing all sort of problems 10960 # (the dirname of $[0] is not the place where we might find the 10961 # original and so on. Autoconf is especially sensitive to this). 10962 . "./$as_me.lineno" 10963 # Exit status is that of the last command. 10964 exit 10965} 10966 10967 10968if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10969 as_dirname=dirname 10970else 10971 as_dirname=false 10972fi 10973 10974ECHO_C= ECHO_N= ECHO_T= 10975case `echo -n x` in 10976-n*) 10977 case `echo 'x\c'` in 10978 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10979 *) ECHO_C='\c';; 10980 esac;; 10981*) 10982 ECHO_N='-n';; 10983esac 10984 10985if expr a : '\(a\)' >/dev/null 2>&1 && 10986 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10987 as_expr=expr 10988else 10989 as_expr=false 10990fi 10991 10992rm -f conf$$ conf$$.exe conf$$.file 10993if test -d conf$$.dir; then 10994 rm -f conf$$.dir/conf$$.file 10995else 10996 rm -f conf$$.dir 10997 mkdir conf$$.dir 10998fi 10999echo >conf$$.file 11000if ln -s conf$$.file conf$$ 2>/dev/null; then 11001 as_ln_s='ln -s' 11002 # ... but there are two gotchas: 11003 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11004 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11005 # In both cases, we have to default to `cp -p'. 11006 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11007 as_ln_s='cp -p' 11008elif ln conf$$.file conf$$ 2>/dev/null; then 11009 as_ln_s=ln 11010else 11011 as_ln_s='cp -p' 11012fi 11013rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11014rmdir conf$$.dir 2>/dev/null 11015 11016if mkdir -p . 2>/dev/null; then 11017 as_mkdir_p=: 11018else 11019 test -d ./-p && rmdir ./-p 11020 as_mkdir_p=false 11021fi 11022 11023if test -x / >/dev/null 2>&1; then 11024 as_test_x='test -x' 11025else 11026 if ls -dL / >/dev/null 2>&1; then 11027 as_ls_L_option=L 11028 else 11029 as_ls_L_option= 11030 fi 11031 as_test_x=' 11032 eval sh -c '\'' 11033 if test -d "$1"; then 11034 test -d "$1/."; 11035 else 11036 case $1 in 11037 -*)set "./$1";; 11038 esac; 11039 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 11040 ???[sx]*):;;*)false;;esac;fi 11041 '\'' sh 11042 ' 11043fi 11044as_executable_p=$as_test_x 11045 11046# Sed expression to map a string onto a valid CPP name. 11047as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11048 11049# Sed expression to map a string onto a valid variable name. 11050as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11051 11052 11053exec 6>&1 11054 11055# Save the log message, to keep $[0] and so on meaningful, and to 11056# report actual input values of CONFIG_FILES etc. instead of their 11057# values after options handling. 11058ac_log=" 11059This file was extended by tls $as_me 1.6.1, which was 11060generated by GNU Autoconf 2.61. Invocation command line was 11061 11062 CONFIG_FILES = $CONFIG_FILES 11063 CONFIG_HEADERS = $CONFIG_HEADERS 11064 CONFIG_LINKS = $CONFIG_LINKS 11065 CONFIG_COMMANDS = $CONFIG_COMMANDS 11066 $ $0 $@ 11067 11068on `(hostname || uname -n) 2>/dev/null | sed 1q` 11069" 11070 11071_ACEOF 11072 11073cat >>$CONFIG_STATUS <<_ACEOF 11074# Files that config.status was made for. 11075config_files="$ac_config_files" 11076 11077_ACEOF 11078 11079cat >>$CONFIG_STATUS <<\_ACEOF 11080ac_cs_usage="\ 11081\`$as_me' instantiates files from templates according to the 11082current configuration. 11083 11084Usage: $0 [OPTIONS] [FILE]... 11085 11086 -h, --help print this help, then exit 11087 -V, --version print version number and configuration settings, then exit 11088 -q, --quiet do not print progress messages 11089 -d, --debug don't remove temporary files 11090 --recheck update $as_me by reconfiguring in the same conditions 11091 --file=FILE[:TEMPLATE] 11092 instantiate the configuration file FILE 11093 11094Configuration files: 11095$config_files 11096 11097Report bugs to <bug-autoconf@gnu.org>." 11098 11099_ACEOF 11100cat >>$CONFIG_STATUS <<_ACEOF 11101ac_cs_version="\\ 11102tls config.status 1.6.1 11103configured by $0, generated by GNU Autoconf 2.61, 11104 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11105 11106Copyright (C) 2006 Free Software Foundation, Inc. 11107This config.status script is free software; the Free Software Foundation 11108gives unlimited permission to copy, distribute and modify it." 11109 11110ac_pwd='$ac_pwd' 11111srcdir='$srcdir' 11112INSTALL='$INSTALL' 11113_ACEOF 11114 11115cat >>$CONFIG_STATUS <<\_ACEOF 11116# If no file are specified by the user, then we need to provide default 11117# value. By we need to know if files were specified by the user. 11118ac_need_defaults=: 11119while test $# != 0 11120do 11121 case $1 in 11122 --*=*) 11123 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11124 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11125 ac_shift=: 11126 ;; 11127 *) 11128 ac_option=$1 11129 ac_optarg=$2 11130 ac_shift=shift 11131 ;; 11132 esac 11133 11134 case $ac_option in 11135 # Handling of the options. 11136 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11137 ac_cs_recheck=: ;; 11138 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11139 echo "$ac_cs_version"; exit ;; 11140 --debug | --debu | --deb | --de | --d | -d ) 11141 debug=: ;; 11142 --file | --fil | --fi | --f ) 11143 $ac_shift 11144 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11145 ac_need_defaults=false;; 11146 --he | --h | --help | --hel | -h ) 11147 echo "$ac_cs_usage"; exit ;; 11148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11149 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11150 ac_cs_silent=: ;; 11151 11152 # This is an error. 11153 -*) { echo "$as_me: error: unrecognized option: $1 11154Try \`$0 --help' for more information." >&2 11155 { (exit 1); exit 1; }; } ;; 11156 11157 *) ac_config_targets="$ac_config_targets $1" 11158 ac_need_defaults=false ;; 11159 11160 esac 11161 shift 11162done 11163 11164ac_configure_extra_args= 11165 11166if $ac_cs_silent; then 11167 exec 6>/dev/null 11168 ac_configure_extra_args="$ac_configure_extra_args --silent" 11169fi 11170 11171_ACEOF 11172cat >>$CONFIG_STATUS <<_ACEOF 11173if \$ac_cs_recheck; then 11174 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11175 CONFIG_SHELL=$SHELL 11176 export CONFIG_SHELL 11177 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11178fi 11179 11180_ACEOF 11181cat >>$CONFIG_STATUS <<\_ACEOF 11182exec 5>>config.log 11183{ 11184 echo 11185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11186## Running $as_me. ## 11187_ASBOX 11188 echo "$ac_log" 11189} >&5 11190 11191_ACEOF 11192cat >>$CONFIG_STATUS <<_ACEOF 11193_ACEOF 11194 11195cat >>$CONFIG_STATUS <<\_ACEOF 11196 11197# Handling of arguments. 11198for ac_config_target in $ac_config_targets 11199do 11200 case $ac_config_target in 11201 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11202 11203 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11204echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11205 { (exit 1); exit 1; }; };; 11206 esac 11207done 11208 11209 11210# If the user did not use the arguments to specify the items to instantiate, 11211# then the envvar interface is used. Set only those that are not. 11212# We use the long form for the default assignment because of an extremely 11213# bizarre bug on SunOS 4.1.3. 11214if $ac_need_defaults; then 11215 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11216fi 11217 11218# Have a temporary directory for convenience. Make it in the build tree 11219# simply because there is no reason against having it here, and in addition, 11220# creating and moving files from /tmp can sometimes cause problems. 11221# Hook for its removal unless debugging. 11222# Note that there is a small window in which the directory will not be cleaned: 11223# after its creation but before its name has been assigned to `$tmp'. 11224$debug || 11225{ 11226 tmp= 11227 trap 'exit_status=$? 11228 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 11229' 0 11230 trap '{ (exit 1); exit 1; }' 1 2 13 15 11231} 11232# Create a (secure) tmp directory for tmp files. 11233 11234{ 11235 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11236 test -n "$tmp" && test -d "$tmp" 11237} || 11238{ 11239 tmp=./conf$$-$RANDOM 11240 (umask 077 && mkdir "$tmp") 11241} || 11242{ 11243 echo "$me: cannot create a temporary directory in ." >&2 11244 { (exit 1); exit 1; } 11245} 11246 11247# 11248# Set up the sed scripts for CONFIG_FILES section. 11249# 11250 11251# No need to generate the scripts if there are no CONFIG_FILES. 11252# This happens for instance when ./config.status config.h 11253if test -n "$CONFIG_FILES"; then 11254 11255_ACEOF 11256 11257 11258 11259ac_delim='%!_!# ' 11260for ac_last_try in false false false false false :; do 11261 cat >conf$$subs.sed <<_ACEOF 11262SHELL!$SHELL$ac_delim 11263PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 11264PACKAGE_NAME!$PACKAGE_NAME$ac_delim 11265PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 11266PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 11267PACKAGE_STRING!$PACKAGE_STRING$ac_delim 11268PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 11269exec_prefix!$exec_prefix$ac_delim 11270prefix!$prefix$ac_delim 11271program_transform_name!$program_transform_name$ac_delim 11272bindir!$bindir$ac_delim 11273sbindir!$sbindir$ac_delim 11274libexecdir!$libexecdir$ac_delim 11275datarootdir!$datarootdir$ac_delim 11276datadir!$datadir$ac_delim 11277sysconfdir!$sysconfdir$ac_delim 11278sharedstatedir!$sharedstatedir$ac_delim 11279localstatedir!$localstatedir$ac_delim 11280includedir!$includedir$ac_delim 11281oldincludedir!$oldincludedir$ac_delim 11282docdir!$docdir$ac_delim 11283infodir!$infodir$ac_delim 11284htmldir!$htmldir$ac_delim 11285dvidir!$dvidir$ac_delim 11286pdfdir!$pdfdir$ac_delim 11287psdir!$psdir$ac_delim 11288libdir!$libdir$ac_delim 11289localedir!$localedir$ac_delim 11290mandir!$mandir$ac_delim 11291DEFS!$DEFS$ac_delim 11292ECHO_C!$ECHO_C$ac_delim 11293ECHO_N!$ECHO_N$ac_delim 11294ECHO_T!$ECHO_T$ac_delim 11295LIBS!$LIBS$ac_delim 11296build_alias!$build_alias$ac_delim 11297host_alias!$host_alias$ac_delim 11298target_alias!$target_alias$ac_delim 11299CYGPATH!$CYGPATH$ac_delim 11300EXEEXT!$EXEEXT$ac_delim 11301PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 11302PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 11303PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 11304PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 11305PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 11306PKG_HEADERS!$PKG_HEADERS$ac_delim 11307PKG_INCLUDES!$PKG_INCLUDES$ac_delim 11308PKG_LIBS!$PKG_LIBS$ac_delim 11309PKG_CFLAGS!$PKG_CFLAGS$ac_delim 11310TCL_VERSION!$TCL_VERSION$ac_delim 11311TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 11312TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 11313TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 11314TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 11315TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 11316TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 11317TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 11318TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 11319TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 11320CLEANFILES!$CLEANFILES$ac_delim 11321TCL_LIBS!$TCL_LIBS$ac_delim 11322TCL_DEFS!$TCL_DEFS$ac_delim 11323TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 11324TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 11325TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 11326CC!$CC$ac_delim 11327CFLAGS!$CFLAGS$ac_delim 11328LDFLAGS!$LDFLAGS$ac_delim 11329CPPFLAGS!$CPPFLAGS$ac_delim 11330ac_ct_CC!$ac_ct_CC$ac_delim 11331OBJEXT!$OBJEXT$ac_delim 11332CPP!$CPP$ac_delim 11333INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 11334INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 11335INSTALL_DATA!$INSTALL_DATA$ac_delim 11336SET_MAKE!$SET_MAKE$ac_delim 11337RANLIB!$RANLIB$ac_delim 11338GREP!$GREP$ac_delim 11339EGREP!$EGREP$ac_delim 11340MATH_LIBS!$MATH_LIBS$ac_delim 11341PKG_SOURCES!$PKG_SOURCES$ac_delim 11342PKG_OBJECTS!$PKG_OBJECTS$ac_delim 11343TCL_INCLUDES!$TCL_INCLUDES$ac_delim 11344TCL_THREADS!$TCL_THREADS$ac_delim 11345SHARED_BUILD!$SHARED_BUILD$ac_delim 11346AR!$AR$ac_delim 11347CELIB_DIR!$CELIB_DIR$ac_delim 11348CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 11349CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 11350CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 11351STLIB_LD!$STLIB_LD$ac_delim 11352SHLIB_LD!$SHLIB_LD$ac_delim 11353SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 11354SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 11355LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 11356CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 11357LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 11358TCL_DBGX!$TCL_DBGX$ac_delim 11359_ACEOF 11360 11361 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 11362 break 11363 elif $ac_last_try; then 11364 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11365echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11366 { (exit 1); exit 1; }; } 11367 else 11368 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11369 fi 11370done 11371 11372ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11373if test -n "$ac_eof"; then 11374 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11375 ac_eof=`expr $ac_eof + 1` 11376fi 11377 11378cat >>$CONFIG_STATUS <<_ACEOF 11379cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11380/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11381_ACEOF 11382sed ' 11383s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11384s/^/s,@/; s/!/@,|#_!!_#|/ 11385:n 11386t n 11387s/'"$ac_delim"'$/,g/; t 11388s/$/\\/; p 11389N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11390' >>$CONFIG_STATUS <conf$$subs.sed 11391rm -f conf$$subs.sed 11392cat >>$CONFIG_STATUS <<_ACEOF 11393CEOF$ac_eof 11394_ACEOF 11395 11396 11397ac_delim='%!_!# ' 11398for ac_last_try in false false false false false :; do 11399 cat >conf$$subs.sed <<_ACEOF 11400SSL_DIR!$SSL_DIR$ac_delim 11401SSL_LIB_DIR!$SSL_LIB_DIR$ac_delim 11402SSL_INCLUDE_DIR!$SSL_INCLUDE_DIR$ac_delim 11403SSL_INCLUDE_DIR_NATIVE!$SSL_INCLUDE_DIR_NATIVE$ac_delim 11404SSL_LIB_DIR_NATIVE!$SSL_LIB_DIR_NATIVE$ac_delim 11405MAKE_LIB!$MAKE_LIB$ac_delim 11406MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 11407MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 11408MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 11409RANLIB_STUB!$RANLIB_STUB$ac_delim 11410VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 11411VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 11412TCLSH_PROG!$TCLSH_PROG$ac_delim 11413LIBOBJS!$LIBOBJS$ac_delim 11414LTLIBOBJS!$LTLIBOBJS$ac_delim 11415_ACEOF 11416 11417 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then 11418 break 11419 elif $ac_last_try; then 11420 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11421echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11422 { (exit 1); exit 1; }; } 11423 else 11424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11425 fi 11426done 11427 11428ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11429if test -n "$ac_eof"; then 11430 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11431 ac_eof=`expr $ac_eof + 1` 11432fi 11433 11434cat >>$CONFIG_STATUS <<_ACEOF 11435cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 11436/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 11437_ACEOF 11438sed ' 11439s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11440s/^/s,@/; s/!/@,|#_!!_#|/ 11441:n 11442t n 11443s/'"$ac_delim"'$/,g/; t 11444s/$/\\/; p 11445N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11446' >>$CONFIG_STATUS <conf$$subs.sed 11447rm -f conf$$subs.sed 11448cat >>$CONFIG_STATUS <<_ACEOF 11449:end 11450s/|#_!!_#|//g 11451CEOF$ac_eof 11452_ACEOF 11453 11454 11455# VPATH may cause trouble with some makes, so we remove $(srcdir), 11456# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11457# trailing colons and then remove the whole line if VPATH becomes empty 11458# (actually we leave an empty line to preserve line numbers). 11459if test "x$srcdir" = x.; then 11460 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11461s/:*\$(srcdir):*/:/ 11462s/:*\${srcdir}:*/:/ 11463s/:*@srcdir@:*/:/ 11464s/^\([^=]*=[ ]*\):*/\1/ 11465s/:*$// 11466s/^[^=]*=[ ]*$// 11467}' 11468fi 11469 11470cat >>$CONFIG_STATUS <<\_ACEOF 11471fi # test -n "$CONFIG_FILES" 11472 11473 11474for ac_tag in :F $CONFIG_FILES 11475do 11476 case $ac_tag in 11477 :[FHLC]) ac_mode=$ac_tag; continue;; 11478 esac 11479 case $ac_mode$ac_tag in 11480 :[FHL]*:*);; 11481 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 11482echo "$as_me: error: Invalid tag $ac_tag." >&2;} 11483 { (exit 1); exit 1; }; };; 11484 :[FH]-) ac_tag=-:-;; 11485 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11486 esac 11487 ac_save_IFS=$IFS 11488 IFS=: 11489 set x $ac_tag 11490 IFS=$ac_save_IFS 11491 shift 11492 ac_file=$1 11493 shift 11494 11495 case $ac_mode in 11496 :L) ac_source=$1;; 11497 :[FH]) 11498 ac_file_inputs= 11499 for ac_f 11500 do 11501 case $ac_f in 11502 -) ac_f="$tmp/stdin";; 11503 *) # Look for the file first in the build tree, then in the source tree 11504 # (if the path is not absolute). The absolute path cannot be DOS-style, 11505 # because $ac_f cannot contain `:'. 11506 test -f "$ac_f" || 11507 case $ac_f in 11508 [\\/$]*) false;; 11509 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11510 esac || 11511 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11512echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11513 { (exit 1); exit 1; }; };; 11514 esac 11515 ac_file_inputs="$ac_file_inputs $ac_f" 11516 done 11517 11518 # Let's still pretend it is `configure' which instantiates (i.e., don't 11519 # use $as_me), people would be surprised to read: 11520 # /* config.h. Generated by config.status. */ 11521 configure_input="Generated from "`IFS=: 11522 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 11523 if test x"$ac_file" != x-; then 11524 configure_input="$ac_file. $configure_input" 11525 { echo "$as_me:$LINENO: creating $ac_file" >&5 11526echo "$as_me: creating $ac_file" >&6;} 11527 fi 11528 11529 case $ac_tag in 11530 *:-:* | *:-) cat >"$tmp/stdin";; 11531 esac 11532 ;; 11533 esac 11534 11535 ac_dir=`$as_dirname -- "$ac_file" || 11536$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11537 X"$ac_file" : 'X\(//\)[^/]' \| \ 11538 X"$ac_file" : 'X\(//\)$' \| \ 11539 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11540echo X"$ac_file" | 11541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11542 s//\1/ 11543 q 11544 } 11545 /^X\(\/\/\)[^/].*/{ 11546 s//\1/ 11547 q 11548 } 11549 /^X\(\/\/\)$/{ 11550 s//\1/ 11551 q 11552 } 11553 /^X\(\/\).*/{ 11554 s//\1/ 11555 q 11556 } 11557 s/.*/./; q'` 11558 { as_dir="$ac_dir" 11559 case $as_dir in #( 11560 -*) as_dir=./$as_dir;; 11561 esac 11562 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11563 as_dirs= 11564 while :; do 11565 case $as_dir in #( 11566 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 11567 *) as_qdir=$as_dir;; 11568 esac 11569 as_dirs="'$as_qdir' $as_dirs" 11570 as_dir=`$as_dirname -- "$as_dir" || 11571$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11572 X"$as_dir" : 'X\(//\)[^/]' \| \ 11573 X"$as_dir" : 'X\(//\)$' \| \ 11574 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11575echo X"$as_dir" | 11576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11577 s//\1/ 11578 q 11579 } 11580 /^X\(\/\/\)[^/].*/{ 11581 s//\1/ 11582 q 11583 } 11584 /^X\(\/\/\)$/{ 11585 s//\1/ 11586 q 11587 } 11588 /^X\(\/\).*/{ 11589 s//\1/ 11590 q 11591 } 11592 s/.*/./; q'` 11593 test -d "$as_dir" && break 11594 done 11595 test -z "$as_dirs" || eval "mkdir $as_dirs" 11596 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11597echo "$as_me: error: cannot create directory $as_dir" >&2;} 11598 { (exit 1); exit 1; }; }; } 11599 ac_builddir=. 11600 11601case "$ac_dir" in 11602.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11603*) 11604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11605 # A ".." for each directory in $ac_dir_suffix. 11606 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 11607 case $ac_top_builddir_sub in 11608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11610 esac ;; 11611esac 11612ac_abs_top_builddir=$ac_pwd 11613ac_abs_builddir=$ac_pwd$ac_dir_suffix 11614# for backward compatibility: 11615ac_top_builddir=$ac_top_build_prefix 11616 11617case $srcdir in 11618 .) # We are building in place. 11619 ac_srcdir=. 11620 ac_top_srcdir=$ac_top_builddir_sub 11621 ac_abs_top_srcdir=$ac_pwd ;; 11622 [\\/]* | ?:[\\/]* ) # Absolute name. 11623 ac_srcdir=$srcdir$ac_dir_suffix; 11624 ac_top_srcdir=$srcdir 11625 ac_abs_top_srcdir=$srcdir ;; 11626 *) # Relative name. 11627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11628 ac_top_srcdir=$ac_top_build_prefix$srcdir 11629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11630esac 11631ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11632 11633 11634 case $ac_mode in 11635 :F) 11636 # 11637 # CONFIG_FILE 11638 # 11639 11640 case $INSTALL in 11641 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11642 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11643 esac 11644_ACEOF 11645 11646cat >>$CONFIG_STATUS <<\_ACEOF 11647# If the template does not know about datarootdir, expand it. 11648# FIXME: This hack should be removed a few years after 2.60. 11649ac_datarootdir_hack=; ac_datarootdir_seen= 11650 11651case `sed -n '/datarootdir/ { 11652 p 11653 q 11654} 11655/@datadir@/p 11656/@docdir@/p 11657/@infodir@/p 11658/@localedir@/p 11659/@mandir@/p 11660' $ac_file_inputs` in 11661*datarootdir*) ac_datarootdir_seen=yes;; 11662*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11663 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11664echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11665_ACEOF 11666cat >>$CONFIG_STATUS <<_ACEOF 11667 ac_datarootdir_hack=' 11668 s&@datadir@&$datadir&g 11669 s&@docdir@&$docdir&g 11670 s&@infodir@&$infodir&g 11671 s&@localedir@&$localedir&g 11672 s&@mandir@&$mandir&g 11673 s&\\\${datarootdir}&$datarootdir&g' ;; 11674esac 11675_ACEOF 11676 11677# Neutralize VPATH when `$srcdir' = `.'. 11678# Shell code in configure.ac might set extrasub. 11679# FIXME: do we really want to maintain this feature? 11680cat >>$CONFIG_STATUS <<_ACEOF 11681 sed "$ac_vpsub 11682$extrasub 11683_ACEOF 11684cat >>$CONFIG_STATUS <<\_ACEOF 11685:t 11686/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11687s&@configure_input@&$configure_input&;t t 11688s&@top_builddir@&$ac_top_builddir_sub&;t t 11689s&@srcdir@&$ac_srcdir&;t t 11690s&@abs_srcdir@&$ac_abs_srcdir&;t t 11691s&@top_srcdir@&$ac_top_srcdir&;t t 11692s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11693s&@builddir@&$ac_builddir&;t t 11694s&@abs_builddir@&$ac_abs_builddir&;t t 11695s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11696s&@INSTALL@&$ac_INSTALL&;t t 11697$ac_datarootdir_hack 11698" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 11699 11700test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11701 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 11702 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11703 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11704which seems to be undefined. Please make sure it is defined." >&5 11705echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11706which seems to be undefined. Please make sure it is defined." >&2;} 11707 11708 rm -f "$tmp/stdin" 11709 case $ac_file in 11710 -) cat "$tmp/out"; rm -f "$tmp/out";; 11711 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 11712 esac 11713 ;; 11714 11715 11716 11717 esac 11718 11719done # for ac_tag 11720 11721 11722{ (exit 0); exit 0; } 11723_ACEOF 11724chmod +x $CONFIG_STATUS 11725ac_clean_files=$ac_clean_files_save 11726 11727 11728# configure is writing to config.log, and then calls config.status. 11729# config.status does its own redirection, appending to config.log. 11730# Unfortunately, on DOS this fails, as config.log is still kept open 11731# by configure, so config.status won't be able to write to it; its 11732# output is simply discarded. So we exec the FD to /dev/null, 11733# effectively closing config.log, so it can be properly (re)opened and 11734# appended to by config.status. When coming back to configure, we 11735# need to make the FD available again. 11736if test "$no_create" != yes; then 11737 ac_cs_success=: 11738 ac_config_status_args= 11739 test "$silent" = yes && 11740 ac_config_status_args="$ac_config_status_args --quiet" 11741 exec 5>/dev/null 11742 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11743 exec 5>>config.log 11744 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11745 # would make configure fail if this is the last instruction. 11746 $ac_cs_success || { (exit 1); exit 1; } 11747fi 11748 11749