1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for tdom 0.8.3. 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='tdom' 574PACKAGE_TARNAME='tdom' 575PACKAGE_VERSION='0.8.3' 576PACKAGE_STRING='tdom 0.8.3' 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 709TDOM_LD_SEARCH_FLAGS 710CFLAGS_DEFAULT 711LDFLAGS_DEFAULT 712TCL_DBGX 713MAKE_LIB 714MAKE_SHARED_LIB 715MAKE_STATIC_LIB 716MAKE_STUB_LIB 717RANLIB_STUB 718VC_MANIFEST_EMBED_DLL 719VC_MANIFEST_EMBED_EXE 720TCLSH_PROG 721TDOMSHELL 722PKG_BUILD_STUB_LIB_SPEC 723PKG_STUB_LIB_SPEC 724PKG_BUILD_STUB_LIB_PATH 725PKG_STUB_LIB_PATH 726LIBOBJS 727LTLIBOBJS' 728ac_subst_files='' 729 ac_precious_vars='build_alias 730host_alias 731target_alias 732CC 733CFLAGS 734LDFLAGS 735LIBS 736CPPFLAGS 737CPP' 738 739 740# Initialize some variables set by options. 741ac_init_help= 742ac_init_version=false 743# The variables have the same names as the options, with 744# dashes changed to underlines. 745cache_file=/dev/null 746exec_prefix=NONE 747no_create= 748no_recursion= 749prefix=NONE 750program_prefix=NONE 751program_suffix=NONE 752program_transform_name=s,x,x, 753silent= 754site= 755srcdir= 756verbose= 757x_includes=NONE 758x_libraries=NONE 759 760# Installation directory options. 761# These are left unexpanded so users can "make install exec_prefix=/foo" 762# and all the variables that are supposed to be based on exec_prefix 763# by default will actually change. 764# Use braces instead of parens because sh, perl, etc. also accept them. 765# (The list follows the same order as the GNU Coding Standards.) 766bindir='${exec_prefix}/bin' 767sbindir='${exec_prefix}/sbin' 768libexecdir='${exec_prefix}/libexec' 769datarootdir='${prefix}/share' 770datadir='${datarootdir}' 771sysconfdir='${prefix}/etc' 772sharedstatedir='${prefix}/com' 773localstatedir='${prefix}/var' 774includedir='${prefix}/include' 775oldincludedir='/usr/include' 776docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 777infodir='${datarootdir}/info' 778htmldir='${docdir}' 779dvidir='${docdir}' 780pdfdir='${docdir}' 781psdir='${docdir}' 782libdir='${exec_prefix}/lib' 783localedir='${datarootdir}/locale' 784mandir='${datarootdir}/man' 785 786ac_prev= 787ac_dashdash= 788for ac_option 789do 790 # If the previous option needs an argument, assign it. 791 if test -n "$ac_prev"; then 792 eval $ac_prev=\$ac_option 793 ac_prev= 794 continue 795 fi 796 797 case $ac_option in 798 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 799 *) ac_optarg=yes ;; 800 esac 801 802 # Accept the important Cygnus configure options, so we can diagnose typos. 803 804 case $ac_dashdash$ac_option in 805 --) 806 ac_dashdash=yes ;; 807 808 -bindir | --bindir | --bindi | --bind | --bin | --bi) 809 ac_prev=bindir ;; 810 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 811 bindir=$ac_optarg ;; 812 813 -build | --build | --buil | --bui | --bu) 814 ac_prev=build_alias ;; 815 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 816 build_alias=$ac_optarg ;; 817 818 -cache-file | --cache-file | --cache-fil | --cache-fi \ 819 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 820 ac_prev=cache_file ;; 821 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 822 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 823 cache_file=$ac_optarg ;; 824 825 --config-cache | -C) 826 cache_file=config.cache ;; 827 828 -datadir | --datadir | --datadi | --datad) 829 ac_prev=datadir ;; 830 -datadir=* | --datadir=* | --datadi=* | --datad=*) 831 datadir=$ac_optarg ;; 832 833 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 834 | --dataroo | --dataro | --datar) 835 ac_prev=datarootdir ;; 836 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 837 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 838 datarootdir=$ac_optarg ;; 839 840 -disable-* | --disable-*) 841 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 842 # Reject names that are not valid shell variable names. 843 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 844 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 845 { (exit 1); exit 1; }; } 846 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 847 eval enable_$ac_feature=no ;; 848 849 -docdir | --docdir | --docdi | --doc | --do) 850 ac_prev=docdir ;; 851 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 852 docdir=$ac_optarg ;; 853 854 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 855 ac_prev=dvidir ;; 856 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 857 dvidir=$ac_optarg ;; 858 859 -enable-* | --enable-*) 860 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 861 # Reject names that are not valid shell variable names. 862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 864 { (exit 1); exit 1; }; } 865 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 866 eval enable_$ac_feature=\$ac_optarg ;; 867 868 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 869 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 870 | --exec | --exe | --ex) 871 ac_prev=exec_prefix ;; 872 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 873 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 874 | --exec=* | --exe=* | --ex=*) 875 exec_prefix=$ac_optarg ;; 876 877 -gas | --gas | --ga | --g) 878 # Obsolete; use --with-gas. 879 with_gas=yes ;; 880 881 -help | --help | --hel | --he | -h) 882 ac_init_help=long ;; 883 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 884 ac_init_help=recursive ;; 885 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 886 ac_init_help=short ;; 887 888 -host | --host | --hos | --ho) 889 ac_prev=host_alias ;; 890 -host=* | --host=* | --hos=* | --ho=*) 891 host_alias=$ac_optarg ;; 892 893 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 894 ac_prev=htmldir ;; 895 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 896 | --ht=*) 897 htmldir=$ac_optarg ;; 898 899 -includedir | --includedir | --includedi | --included | --include \ 900 | --includ | --inclu | --incl | --inc) 901 ac_prev=includedir ;; 902 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 903 | --includ=* | --inclu=* | --incl=* | --inc=*) 904 includedir=$ac_optarg ;; 905 906 -infodir | --infodir | --infodi | --infod | --info | --inf) 907 ac_prev=infodir ;; 908 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 909 infodir=$ac_optarg ;; 910 911 -libdir | --libdir | --libdi | --libd) 912 ac_prev=libdir ;; 913 -libdir=* | --libdir=* | --libdi=* | --libd=*) 914 libdir=$ac_optarg ;; 915 916 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 917 | --libexe | --libex | --libe) 918 ac_prev=libexecdir ;; 919 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 920 | --libexe=* | --libex=* | --libe=*) 921 libexecdir=$ac_optarg ;; 922 923 -localedir | --localedir | --localedi | --localed | --locale) 924 ac_prev=localedir ;; 925 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 926 localedir=$ac_optarg ;; 927 928 -localstatedir | --localstatedir | --localstatedi | --localstated \ 929 | --localstate | --localstat | --localsta | --localst | --locals) 930 ac_prev=localstatedir ;; 931 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 932 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 933 localstatedir=$ac_optarg ;; 934 935 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 936 ac_prev=mandir ;; 937 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 938 mandir=$ac_optarg ;; 939 940 -nfp | --nfp | --nf) 941 # Obsolete; use --without-fp. 942 with_fp=no ;; 943 944 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 945 | --no-cr | --no-c | -n) 946 no_create=yes ;; 947 948 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 949 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 950 no_recursion=yes ;; 951 952 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 953 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 954 | --oldin | --oldi | --old | --ol | --o) 955 ac_prev=oldincludedir ;; 956 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 957 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 958 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 959 oldincludedir=$ac_optarg ;; 960 961 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 962 ac_prev=prefix ;; 963 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 964 prefix=$ac_optarg ;; 965 966 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 967 | --program-pre | --program-pr | --program-p) 968 ac_prev=program_prefix ;; 969 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 970 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 971 program_prefix=$ac_optarg ;; 972 973 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 974 | --program-suf | --program-su | --program-s) 975 ac_prev=program_suffix ;; 976 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 977 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 978 program_suffix=$ac_optarg ;; 979 980 -program-transform-name | --program-transform-name \ 981 | --program-transform-nam | --program-transform-na \ 982 | --program-transform-n | --program-transform- \ 983 | --program-transform | --program-transfor \ 984 | --program-transfo | --program-transf \ 985 | --program-trans | --program-tran \ 986 | --progr-tra | --program-tr | --program-t) 987 ac_prev=program_transform_name ;; 988 -program-transform-name=* | --program-transform-name=* \ 989 | --program-transform-nam=* | --program-transform-na=* \ 990 | --program-transform-n=* | --program-transform-=* \ 991 | --program-transform=* | --program-transfor=* \ 992 | --program-transfo=* | --program-transf=* \ 993 | --program-trans=* | --program-tran=* \ 994 | --progr-tra=* | --program-tr=* | --program-t=*) 995 program_transform_name=$ac_optarg ;; 996 997 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 998 ac_prev=pdfdir ;; 999 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1000 pdfdir=$ac_optarg ;; 1001 1002 -psdir | --psdir | --psdi | --psd | --ps) 1003 ac_prev=psdir ;; 1004 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1005 psdir=$ac_optarg ;; 1006 1007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1008 | -silent | --silent | --silen | --sile | --sil) 1009 silent=yes ;; 1010 1011 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1012 ac_prev=sbindir ;; 1013 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1014 | --sbi=* | --sb=*) 1015 sbindir=$ac_optarg ;; 1016 1017 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1018 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1019 | --sharedst | --shareds | --shared | --share | --shar \ 1020 | --sha | --sh) 1021 ac_prev=sharedstatedir ;; 1022 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1023 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1024 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1025 | --sha=* | --sh=*) 1026 sharedstatedir=$ac_optarg ;; 1027 1028 -site | --site | --sit) 1029 ac_prev=site ;; 1030 -site=* | --site=* | --sit=*) 1031 site=$ac_optarg ;; 1032 1033 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1034 ac_prev=srcdir ;; 1035 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1036 srcdir=$ac_optarg ;; 1037 1038 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1039 | --syscon | --sysco | --sysc | --sys | --sy) 1040 ac_prev=sysconfdir ;; 1041 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1042 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1043 sysconfdir=$ac_optarg ;; 1044 1045 -target | --target | --targe | --targ | --tar | --ta | --t) 1046 ac_prev=target_alias ;; 1047 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1048 target_alias=$ac_optarg ;; 1049 1050 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1051 verbose=yes ;; 1052 1053 -version | --version | --versio | --versi | --vers | -V) 1054 ac_init_version=: ;; 1055 1056 -with-* | --with-*) 1057 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1058 # Reject names that are not valid shell variable names. 1059 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1060 { echo "$as_me: error: invalid package name: $ac_package" >&2 1061 { (exit 1); exit 1; }; } 1062 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1063 eval with_$ac_package=\$ac_optarg ;; 1064 1065 -without-* | --without-*) 1066 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1067 # Reject names that are not valid shell variable names. 1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1069 { echo "$as_me: error: invalid package name: $ac_package" >&2 1070 { (exit 1); exit 1; }; } 1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1072 eval with_$ac_package=no ;; 1073 1074 --x) 1075 # Obsolete; use --with-x. 1076 with_x=yes ;; 1077 1078 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1079 | --x-incl | --x-inc | --x-in | --x-i) 1080 ac_prev=x_includes ;; 1081 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1082 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1083 x_includes=$ac_optarg ;; 1084 1085 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1086 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1087 ac_prev=x_libraries ;; 1088 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1089 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1090 x_libraries=$ac_optarg ;; 1091 1092 -*) { echo "$as_me: error: unrecognized option: $ac_option 1093Try \`$0 --help' for more information." >&2 1094 { (exit 1); exit 1; }; } 1095 ;; 1096 1097 *=*) 1098 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1099 # Reject names that are not valid shell variable names. 1100 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1101 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1102 { (exit 1); exit 1; }; } 1103 eval $ac_envvar=\$ac_optarg 1104 export $ac_envvar ;; 1105 1106 *) 1107 # FIXME: should be removed in autoconf 3.0. 1108 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1109 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1110 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1111 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1112 ;; 1113 1114 esac 1115done 1116 1117if test -n "$ac_prev"; then 1118 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1119 { echo "$as_me: error: missing argument to $ac_option" >&2 1120 { (exit 1); exit 1; }; } 1121fi 1122 1123# Be sure to have absolute directory names. 1124for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1125 datadir sysconfdir sharedstatedir localstatedir includedir \ 1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1127 libdir localedir mandir 1128do 1129 eval ac_val=\$$ac_var 1130 case $ac_val in 1131 [\\/$]* | ?:[\\/]* ) continue;; 1132 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1133 esac 1134 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1135 { (exit 1); exit 1; }; } 1136done 1137 1138# There might be people who depend on the old broken behavior: `$host' 1139# used to hold the argument of --host etc. 1140# FIXME: To remove some day. 1141build=$build_alias 1142host=$host_alias 1143target=$target_alias 1144 1145# FIXME: To remove some day. 1146if test "x$host_alias" != x; then 1147 if test "x$build_alias" = x; then 1148 cross_compiling=maybe 1149 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1150 If a cross compiler is detected then cross compile mode will be used." >&2 1151 elif test "x$build_alias" != "x$host_alias"; then 1152 cross_compiling=yes 1153 fi 1154fi 1155 1156ac_tool_prefix= 1157test -n "$host_alias" && ac_tool_prefix=$host_alias- 1158 1159test "$silent" = yes && exec 6>/dev/null 1160 1161 1162ac_pwd=`pwd` && test -n "$ac_pwd" && 1163ac_ls_di=`ls -di .` && 1164ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1165 { echo "$as_me: error: Working directory cannot be determined" >&2 1166 { (exit 1); exit 1; }; } 1167test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1168 { echo "$as_me: error: pwd does not report name of working directory" >&2 1169 { (exit 1); exit 1; }; } 1170 1171 1172# Find the source files, if location was not specified. 1173if test -z "$srcdir"; then 1174 ac_srcdir_defaulted=yes 1175 # Try the directory containing this script, then the parent directory. 1176 ac_confdir=`$as_dirname -- "$0" || 1177$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1178 X"$0" : 'X\(//\)[^/]' \| \ 1179 X"$0" : 'X\(//\)$' \| \ 1180 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1181echo X"$0" | 1182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1183 s//\1/ 1184 q 1185 } 1186 /^X\(\/\/\)[^/].*/{ 1187 s//\1/ 1188 q 1189 } 1190 /^X\(\/\/\)$/{ 1191 s//\1/ 1192 q 1193 } 1194 /^X\(\/\).*/{ 1195 s//\1/ 1196 q 1197 } 1198 s/.*/./; q'` 1199 srcdir=$ac_confdir 1200 if test ! -r "$srcdir/$ac_unique_file"; then 1201 srcdir=.. 1202 fi 1203else 1204 ac_srcdir_defaulted=no 1205fi 1206if test ! -r "$srcdir/$ac_unique_file"; then 1207 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1208 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1209 { (exit 1); exit 1; }; } 1210fi 1211ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1212ac_abs_confdir=`( 1213 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1214 { (exit 1); exit 1; }; } 1215 pwd)` 1216# When building in place, set srcdir=. 1217if test "$ac_abs_confdir" = "$ac_pwd"; then 1218 srcdir=. 1219fi 1220# Remove unnecessary trailing slashes from srcdir. 1221# Double slashes in file names in object file debugging info 1222# mess up M-x gdb in Emacs. 1223case $srcdir in 1224*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1225esac 1226for ac_var in $ac_precious_vars; do 1227 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1228 eval ac_env_${ac_var}_value=\$${ac_var} 1229 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1230 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1231done 1232 1233# 1234# Report the --help message. 1235# 1236if test "$ac_init_help" = "long"; then 1237 # Omit some internal or obsolete options to make the list less imposing. 1238 # This message is too long to be a string in the A/UX 3.1 sh. 1239 cat <<_ACEOF 1240\`configure' configures tdom 0.8.3 to adapt to many kinds of systems. 1241 1242Usage: $0 [OPTION]... [VAR=VALUE]... 1243 1244To assign environment variables (e.g., CC, CFLAGS...), specify them as 1245VAR=VALUE. See below for descriptions of some of the useful variables. 1246 1247Defaults for the options are specified in brackets. 1248 1249Configuration: 1250 -h, --help display this help and exit 1251 --help=short display options specific to this package 1252 --help=recursive display the short help of all the included packages 1253 -V, --version display version information and exit 1254 -q, --quiet, --silent do not print \`checking...' messages 1255 --cache-file=FILE cache test results in FILE [disabled] 1256 -C, --config-cache alias for \`--cache-file=config.cache' 1257 -n, --no-create do not create output files 1258 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1259 1260Installation directories: 1261 --prefix=PREFIX install architecture-independent files in PREFIX 1262 [$ac_default_prefix] 1263 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1264 [PREFIX] 1265 1266By default, \`make install' will install all the files in 1267\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1268an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1269for instance \`--prefix=\$HOME'. 1270 1271For better control, use the options below. 1272 1273Fine tuning of the installation directories: 1274 --bindir=DIR user executables [EPREFIX/bin] 1275 --sbindir=DIR system admin executables [EPREFIX/sbin] 1276 --libexecdir=DIR program executables [EPREFIX/libexec] 1277 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1278 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1279 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1280 --libdir=DIR object code libraries [EPREFIX/lib] 1281 --includedir=DIR C header files [PREFIX/include] 1282 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1283 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1284 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1285 --infodir=DIR info documentation [DATAROOTDIR/info] 1286 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1287 --mandir=DIR man documentation [DATAROOTDIR/man] 1288 --docdir=DIR documentation root [DATAROOTDIR/doc/tdom] 1289 --htmldir=DIR html documentation [DOCDIR] 1290 --dvidir=DIR dvi documentation [DOCDIR] 1291 --pdfdir=DIR pdf documentation [DOCDIR] 1292 --psdir=DIR ps documentation [DOCDIR] 1293_ACEOF 1294 1295 cat <<\_ACEOF 1296_ACEOF 1297fi 1298 1299if test -n "$ac_init_help"; then 1300 case $ac_init_help in 1301 short | recursive ) echo "Configuration of tdom 0.8.3:";; 1302 esac 1303 cat <<\_ACEOF 1304 1305Optional Features: 1306 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1307 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1308 --enable-threads build with threads 1309 --enable-shared build and link with shared libraries (default: on) 1310 --enable-64bit enable 64bit support (default: off) 1311 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1312 --disable-rpath disable rpath support (default: on) 1313 --enable-wince enable Win/CE support (where applicable) 1314 --enable-symbols build with debugging symbols (default: off) 1315 --enable-dtd build with dtd support (default: on) 1316 --enable-ns build with XML namespace support (default: on) 1317 --enable-unknown enable built-in unknown command (default: off) 1318 --enable-tdomalloc build with the tDOM allocator (default: off) 1319 1320Optional Packages: 1321 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1322 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1323 --with-tcl directory containing tcl configuration 1324 (tclConfig.sh) 1325 --with-aolserver directory with AOLserver distribution 1326 --with-tclinclude directory containing the public Tcl header files 1327 --with-celib=DIR use Windows/CE support library from DIR 1328 1329Some influential environment variables: 1330 CC C compiler command 1331 CFLAGS C compiler flags 1332 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1333 nonstandard directory <lib dir> 1334 LIBS libraries to pass to the linker, e.g. -l<library> 1335 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1336 you have headers in a nonstandard directory <include dir> 1337 CPP C preprocessor 1338 1339Use these variables to override the choices made by `configure' or to help 1340it to find libraries and programs with nonstandard names/locations. 1341 1342_ACEOF 1343ac_status=$? 1344fi 1345 1346if test "$ac_init_help" = "recursive"; then 1347 # If there are subdirs, report their specific --help. 1348 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1349 test -d "$ac_dir" || continue 1350 ac_builddir=. 1351 1352case "$ac_dir" in 1353.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1354*) 1355 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1356 # A ".." for each directory in $ac_dir_suffix. 1357 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1358 case $ac_top_builddir_sub in 1359 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1360 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1361 esac ;; 1362esac 1363ac_abs_top_builddir=$ac_pwd 1364ac_abs_builddir=$ac_pwd$ac_dir_suffix 1365# for backward compatibility: 1366ac_top_builddir=$ac_top_build_prefix 1367 1368case $srcdir in 1369 .) # We are building in place. 1370 ac_srcdir=. 1371 ac_top_srcdir=$ac_top_builddir_sub 1372 ac_abs_top_srcdir=$ac_pwd ;; 1373 [\\/]* | ?:[\\/]* ) # Absolute name. 1374 ac_srcdir=$srcdir$ac_dir_suffix; 1375 ac_top_srcdir=$srcdir 1376 ac_abs_top_srcdir=$srcdir ;; 1377 *) # Relative name. 1378 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1379 ac_top_srcdir=$ac_top_build_prefix$srcdir 1380 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1381esac 1382ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1383 1384 cd "$ac_dir" || { ac_status=$?; continue; } 1385 # Check for guested configure. 1386 if test -f "$ac_srcdir/configure.gnu"; then 1387 echo && 1388 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1389 elif test -f "$ac_srcdir/configure"; then 1390 echo && 1391 $SHELL "$ac_srcdir/configure" --help=recursive 1392 else 1393 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1394 fi || ac_status=$? 1395 cd "$ac_pwd" || { ac_status=$?; break; } 1396 done 1397fi 1398 1399test -n "$ac_init_help" && exit $ac_status 1400if $ac_init_version; then 1401 cat <<\_ACEOF 1402tdom configure 0.8.3 1403generated by GNU Autoconf 2.61 1404 1405Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14062002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1407This configure script is free software; the Free Software Foundation 1408gives unlimited permission to copy, distribute and modify it. 1409_ACEOF 1410 exit 1411fi 1412cat >config.log <<_ACEOF 1413This file contains any messages produced by compilers while 1414running configure, to aid debugging if configure makes a mistake. 1415 1416It was created by tdom $as_me 0.8.3, which was 1417generated by GNU Autoconf 2.61. Invocation command line was 1418 1419 $ $0 $@ 1420 1421_ACEOF 1422exec 5>>config.log 1423{ 1424cat <<_ASUNAME 1425## --------- ## 1426## Platform. ## 1427## --------- ## 1428 1429hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1430uname -m = `(uname -m) 2>/dev/null || echo unknown` 1431uname -r = `(uname -r) 2>/dev/null || echo unknown` 1432uname -s = `(uname -s) 2>/dev/null || echo unknown` 1433uname -v = `(uname -v) 2>/dev/null || echo unknown` 1434 1435/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1436/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1437 1438/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1439/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1440/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1441/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1442/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1443/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1444/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1445 1446_ASUNAME 1447 1448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1449for as_dir in $PATH 1450do 1451 IFS=$as_save_IFS 1452 test -z "$as_dir" && as_dir=. 1453 echo "PATH: $as_dir" 1454done 1455IFS=$as_save_IFS 1456 1457} >&5 1458 1459cat >&5 <<_ACEOF 1460 1461 1462## ----------- ## 1463## Core tests. ## 1464## ----------- ## 1465 1466_ACEOF 1467 1468 1469# Keep a trace of the command line. 1470# Strip out --no-create and --no-recursion so they do not pile up. 1471# Strip out --silent because we don't want to record it for future runs. 1472# Also quote any args containing shell meta-characters. 1473# Make two passes to allow for proper duplicate-argument suppression. 1474ac_configure_args= 1475ac_configure_args0= 1476ac_configure_args1= 1477ac_must_keep_next=false 1478for ac_pass in 1 2 1479do 1480 for ac_arg 1481 do 1482 case $ac_arg in 1483 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1485 | -silent | --silent | --silen | --sile | --sil) 1486 continue ;; 1487 *\'*) 1488 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1489 esac 1490 case $ac_pass in 1491 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1492 2) 1493 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1494 if test $ac_must_keep_next = true; then 1495 ac_must_keep_next=false # Got value, back to normal. 1496 else 1497 case $ac_arg in 1498 *=* | --config-cache | -C | -disable-* | --disable-* \ 1499 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1500 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1501 | -with-* | --with-* | -without-* | --without-* | --x) 1502 case "$ac_configure_args0 " in 1503 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1504 esac 1505 ;; 1506 -* ) ac_must_keep_next=true ;; 1507 esac 1508 fi 1509 ac_configure_args="$ac_configure_args '$ac_arg'" 1510 ;; 1511 esac 1512 done 1513done 1514$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1515$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1516 1517# When interrupted or exit'd, cleanup temporary files, and complete 1518# config.log. We remove comments because anyway the quotes in there 1519# would cause problems or look ugly. 1520# WARNING: Use '\'' to represent an apostrophe within the trap. 1521# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1522trap 'exit_status=$? 1523 # Save into config.log some information that might help in debugging. 1524 { 1525 echo 1526 1527 cat <<\_ASBOX 1528## ---------------- ## 1529## Cache variables. ## 1530## ---------------- ## 1531_ASBOX 1532 echo 1533 # The following way of writing the cache mishandles newlines in values, 1534( 1535 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1536 eval ac_val=\$$ac_var 1537 case $ac_val in #( 1538 *${as_nl}*) 1539 case $ac_var in #( 1540 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1541echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1542 esac 1543 case $ac_var in #( 1544 _ | IFS | as_nl) ;; #( 1545 *) $as_unset $ac_var ;; 1546 esac ;; 1547 esac 1548 done 1549 (set) 2>&1 | 1550 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1551 *${as_nl}ac_space=\ *) 1552 sed -n \ 1553 "s/'\''/'\''\\\\'\'''\''/g; 1554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1555 ;; #( 1556 *) 1557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1558 ;; 1559 esac | 1560 sort 1561) 1562 echo 1563 1564 cat <<\_ASBOX 1565## ----------------- ## 1566## Output variables. ## 1567## ----------------- ## 1568_ASBOX 1569 echo 1570 for ac_var in $ac_subst_vars 1571 do 1572 eval ac_val=\$$ac_var 1573 case $ac_val in 1574 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1575 esac 1576 echo "$ac_var='\''$ac_val'\''" 1577 done | sort 1578 echo 1579 1580 if test -n "$ac_subst_files"; then 1581 cat <<\_ASBOX 1582## ------------------- ## 1583## File substitutions. ## 1584## ------------------- ## 1585_ASBOX 1586 echo 1587 for ac_var in $ac_subst_files 1588 do 1589 eval ac_val=\$$ac_var 1590 case $ac_val in 1591 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1592 esac 1593 echo "$ac_var='\''$ac_val'\''" 1594 done | sort 1595 echo 1596 fi 1597 1598 if test -s confdefs.h; then 1599 cat <<\_ASBOX 1600## ----------- ## 1601## confdefs.h. ## 1602## ----------- ## 1603_ASBOX 1604 echo 1605 cat confdefs.h 1606 echo 1607 fi 1608 test "$ac_signal" != 0 && 1609 echo "$as_me: caught signal $ac_signal" 1610 echo "$as_me: exit $exit_status" 1611 } >&5 1612 rm -f core *.core core.conftest.* && 1613 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1614 exit $exit_status 1615' 0 1616for ac_signal in 1 2 13 15; do 1617 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1618done 1619ac_signal=0 1620 1621# confdefs.h avoids OS command line length limits that DEFS can exceed. 1622rm -f -r conftest* confdefs.h 1623 1624# Predefined preprocessor variables. 1625 1626cat >>confdefs.h <<_ACEOF 1627#define PACKAGE_NAME "$PACKAGE_NAME" 1628_ACEOF 1629 1630 1631cat >>confdefs.h <<_ACEOF 1632#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1633_ACEOF 1634 1635 1636cat >>confdefs.h <<_ACEOF 1637#define PACKAGE_VERSION "$PACKAGE_VERSION" 1638_ACEOF 1639 1640 1641cat >>confdefs.h <<_ACEOF 1642#define PACKAGE_STRING "$PACKAGE_STRING" 1643_ACEOF 1644 1645 1646cat >>confdefs.h <<_ACEOF 1647#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1648_ACEOF 1649 1650 1651# Let the site file select an alternate cache file if it wants to. 1652# Prefer explicitly selected file to automatically selected ones. 1653if test -n "$CONFIG_SITE"; then 1654 set x "$CONFIG_SITE" 1655elif test "x$prefix" != xNONE; then 1656 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1657else 1658 set x "$ac_default_prefix/share/config.site" \ 1659 "$ac_default_prefix/etc/config.site" 1660fi 1661shift 1662for ac_site_file 1663do 1664 if test -r "$ac_site_file"; then 1665 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1666echo "$as_me: loading site script $ac_site_file" >&6;} 1667 sed 's/^/| /' "$ac_site_file" >&5 1668 . "$ac_site_file" 1669 fi 1670done 1671 1672if test -r "$cache_file"; then 1673 # Some versions of bash will fail to source /dev/null (special 1674 # files actually), so we avoid doing that. 1675 if test -f "$cache_file"; then 1676 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1677echo "$as_me: loading cache $cache_file" >&6;} 1678 case $cache_file in 1679 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1680 *) . "./$cache_file";; 1681 esac 1682 fi 1683else 1684 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1685echo "$as_me: creating cache $cache_file" >&6;} 1686 >$cache_file 1687fi 1688 1689# Check that the precious variables saved in the cache have kept the same 1690# value. 1691ac_cache_corrupted=false 1692for ac_var in $ac_precious_vars; do 1693 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1694 eval ac_new_set=\$ac_env_${ac_var}_set 1695 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1696 eval ac_new_val=\$ac_env_${ac_var}_value 1697 case $ac_old_set,$ac_new_set in 1698 set,) 1699 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1700echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1701 ac_cache_corrupted=: ;; 1702 ,set) 1703 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1704echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1705 ac_cache_corrupted=: ;; 1706 ,);; 1707 *) 1708 if test "x$ac_old_val" != "x$ac_new_val"; then 1709 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1710echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1711 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1712echo "$as_me: former value: $ac_old_val" >&2;} 1713 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1714echo "$as_me: current value: $ac_new_val" >&2;} 1715 ac_cache_corrupted=: 1716 fi;; 1717 esac 1718 # Pass precious variables to config.status. 1719 if test "$ac_new_set" = set; then 1720 case $ac_new_val in 1721 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1722 *) ac_arg=$ac_var=$ac_new_val ;; 1723 esac 1724 case " $ac_configure_args " in 1725 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1726 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1727 esac 1728 fi 1729done 1730if $ac_cache_corrupted; then 1731 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1732echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1733 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1734echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1735 { (exit 1); exit 1; }; } 1736fi 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762ac_ext=c 1763ac_cpp='$CPP $CPPFLAGS' 1764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1766ac_compiler_gnu=$ac_cv_c_compiler_gnu 1767 1768 1769 1770#-------------------------------------------------------------------- 1771# Call TEA_INIT as the first TEA_ macro to set up initial vars. 1772# This will define a ${TEA_PLATFORM} variable == "unix" or "windows" 1773# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. 1774#-------------------------------------------------------------------- 1775 1776 1777 # TEA extensions pass this us the version of TEA they think they 1778 # are compatible with. 1779 TEA_VERSION="3.9" 1780 1781 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1782echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1783 if test x"${PACKAGE_NAME}" = x ; then 1784 { { echo "$as_me:$LINENO: error: 1785The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1786echo "$as_me: error: 1787The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1788 { (exit 1); exit 1; }; } 1789 fi 1790 if test x"3.9" = x ; then 1791 { { echo "$as_me:$LINENO: error: 1792TEA version not specified." >&5 1793echo "$as_me: error: 1794TEA version not specified." >&2;} 1795 { (exit 1); exit 1; }; } 1796 elif test "3.9" != "${TEA_VERSION}" ; then 1797 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1798echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1799 else 1800 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1801echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1802 fi 1803 case "`uname -s`" in 1804 *win32*|*WIN32*|*MINGW32_*) 1805 # Extract the first word of "cygpath", so it can be a program name with args. 1806set dummy cygpath; ac_word=$2 1807{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1809if test "${ac_cv_prog_CYGPATH+set}" = set; then 1810 echo $ECHO_N "(cached) $ECHO_C" >&6 1811else 1812 if test -n "$CYGPATH"; then 1813 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1814else 1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1816for as_dir in $PATH 1817do 1818 IFS=$as_save_IFS 1819 test -z "$as_dir" && as_dir=. 1820 for ac_exec_ext in '' $ac_executable_extensions; do 1821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1822 ac_cv_prog_CYGPATH="cygpath -w" 1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1824 break 2 1825 fi 1826done 1827done 1828IFS=$as_save_IFS 1829 1830 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1831fi 1832fi 1833CYGPATH=$ac_cv_prog_CYGPATH 1834if test -n "$CYGPATH"; then 1835 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1836echo "${ECHO_T}$CYGPATH" >&6; } 1837else 1838 { echo "$as_me:$LINENO: result: no" >&5 1839echo "${ECHO_T}no" >&6; } 1840fi 1841 1842 1843 EXEEXT=".exe" 1844 TEA_PLATFORM="windows" 1845 ;; 1846 *CYGWIN_*) 1847 CYGPATH=echo 1848 EXEEXT=".exe" 1849 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1850 ;; 1851 *) 1852 CYGPATH=echo 1853 EXEEXT="" 1854 TEA_PLATFORM="unix" 1855 ;; 1856 esac 1857 1858 # Check if exec_prefix is set. If not use fall back to prefix. 1859 # Note when adjusted, so that TEA_PREFIX can correct for this. 1860 # This is needed for recursive configures, since autoconf propagates 1861 # $prefix, but not $exec_prefix (doh!). 1862 if test x$exec_prefix = xNONE ; then 1863 exec_prefix_default=yes 1864 exec_prefix=$prefix 1865 fi 1866 1867 1868 1869 1870 # This package name must be replaced statically for AC_SUBST to work 1871 1872 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1873 1874 1875 # We AC_SUBST these here to ensure they are subst'ed, 1876 # in case the user doesn't call TEA_ADD_... 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886ac_aux_dir= 1887for ac_dir in tclconfig "$srcdir"/tclconfig; do 1888 if test -f "$ac_dir/install-sh"; then 1889 ac_aux_dir=$ac_dir 1890 ac_install_sh="$ac_aux_dir/install-sh -c" 1891 break 1892 elif test -f "$ac_dir/install.sh"; then 1893 ac_aux_dir=$ac_dir 1894 ac_install_sh="$ac_aux_dir/install.sh -c" 1895 break 1896 elif test -f "$ac_dir/shtool"; then 1897 ac_aux_dir=$ac_dir 1898 ac_install_sh="$ac_aux_dir/shtool install -c" 1899 break 1900 fi 1901done 1902if test -z "$ac_aux_dir"; then 1903 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5 1904echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;} 1905 { (exit 1); exit 1; }; } 1906fi 1907 1908# These three variables are undocumented and unsupported, 1909# and are intended to be withdrawn in a future Autoconf release. 1910# They can cause serious problems if a builder's source tree is in a directory 1911# whose full name contains unusual characters. 1912ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1913ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1914ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1915 1916 1917 1918#-------------------------------------------------------------------- 1919# Load the tclConfig.sh file 1920#-------------------------------------------------------------------- 1921 1922 1923 1924 # 1925 # Ok, lets find the tcl configuration 1926 # First, look for one uninstalled. 1927 # the alternative search directory is invoked by --with-tcl 1928 # 1929 1930 if test x"${no_tcl}" = x ; then 1931 # we reset no_tcl in case something fails here 1932 no_tcl=true 1933 1934# Check whether --with-tcl was given. 1935if test "${with_tcl+set}" = set; then 1936 withval=$with_tcl; with_tclconfig="${withval}" 1937fi 1938 1939 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1940echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1941 if test "${ac_cv_c_tclconfig+set}" = set; then 1942 echo $ECHO_N "(cached) $ECHO_C" >&6 1943else 1944 1945 1946 # First check to see if --with-tcl was specified. 1947 if test x"${with_tclconfig}" != x ; then 1948 case "${with_tclconfig}" in 1949 */tclConfig.sh ) 1950 if test -f "${with_tclconfig}"; then 1951 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1952echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1953 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1954 fi ;; 1955 esac 1956 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1957 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1958 else 1959 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1960echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1961 { (exit 1); exit 1; }; } 1962 fi 1963 fi 1964 1965 # then check for a private Tcl installation 1966 if test x"${ac_cv_c_tclconfig}" = x ; then 1967 for i in \ 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` \ 1972 ../../tcl \ 1973 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1974 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1975 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1976 ../../../tcl \ 1977 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1978 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1979 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1980 if test "${TEA_PLATFORM}" = "windows" \ 1981 -a -f "$i/win/tclConfig.sh" ; then 1982 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 1983 break 1984 fi 1985 if test -f "$i/unix/tclConfig.sh" ; then 1986 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1987 break 1988 fi 1989 done 1990 fi 1991 1992 # on Darwin, check in Framework installation locations 1993 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1994 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1995 `ls -d /Library/Frameworks 2>/dev/null` \ 1996 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1997 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1998 ; do 1999 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2000 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2001 break 2002 fi 2003 done 2004 fi 2005 2006 # TEA specific: on Windows, check in common installation locations 2007 if test "${TEA_PLATFORM}" = "windows" \ 2008 -a x"${ac_cv_c_tclconfig}" = x ; then 2009 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2010 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2011 ; do 2012 if test -f "$i/tclConfig.sh" ; then 2013 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2014 break 2015 fi 2016 done 2017 fi 2018 2019 # check in a few common install locations 2020 if test x"${ac_cv_c_tclconfig}" = x ; then 2021 for i in `ls -d ${libdir} 2>/dev/null` \ 2022 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2023 `ls -d ${prefix}/lib 2>/dev/null` \ 2024 `ls -d /usr/local/lib 2>/dev/null` \ 2025 `ls -d /usr/contrib/lib 2>/dev/null` \ 2026 `ls -d /usr/lib 2>/dev/null` \ 2027 `ls -d /usr/lib64 2>/dev/null` \ 2028 ; do 2029 if test -f "$i/tclConfig.sh" ; then 2030 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2031 break 2032 fi 2033 done 2034 fi 2035 2036 # check in a few other private locations 2037 if test x"${ac_cv_c_tclconfig}" = x ; then 2038 for i in \ 2039 ${srcdir}/../tcl \ 2040 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2041 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2042 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2043 if test "${TEA_PLATFORM}" = "windows" \ 2044 -a -f "$i/win/tclConfig.sh" ; then 2045 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2046 break 2047 fi 2048 if test -f "$i/unix/tclConfig.sh" ; then 2049 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2050 break 2051 fi 2052 done 2053 fi 2054 2055fi 2056 2057 2058 if test x"${ac_cv_c_tclconfig}" = x ; then 2059 TCL_BIN_DIR="# no Tcl configs found" 2060 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2061echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2062 { (exit 1); exit 1; }; } 2063 else 2064 no_tcl= 2065 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2066 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2067echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2068 fi 2069 fi 2070 2071 2072 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2073echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2074 2075 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2076 { echo "$as_me:$LINENO: result: loading" >&5 2077echo "${ECHO_T}loading" >&6; } 2078 . "${TCL_BIN_DIR}/tclConfig.sh" 2079 else 2080 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2081echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2082 fi 2083 2084 # eval is required to do the TCL_DBGX substitution 2085 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2086 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2087 2088 # If the TCL_BIN_DIR is the build directory (not the install directory), 2089 # then set the common variable name to the value of the build variables. 2090 # For example, the variable TCL_LIB_SPEC will be set to the value 2091 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2092 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2093 # installed and uninstalled version of Tcl. 2094 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2095 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2096 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2097 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2098 elif test "`uname -s`" = "Darwin"; then 2099 # If Tcl was built as a framework, attempt to use the libraries 2100 # from the framework at the given location so that linking works 2101 # against Tcl.framework installed in an arbitrary location. 2102 case ${TCL_DEFS} in 2103 *TCL_FRAMEWORK*) 2104 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2105 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2106 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2107 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2108 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2109 break 2110 fi 2111 done 2112 fi 2113 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2114 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2115 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2116 fi 2117 ;; 2118 esac 2119 fi 2120 2121 # eval is required to do the TCL_DBGX substitution 2122 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2123 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2124 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2125 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 case "`uname -s`" in 2141 *CYGWIN_*) 2142 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2143echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2144 case ${TCL_EXTRA_CFLAGS} in 2145 *-mwin32*|*-mno-cygwin*) 2146 TEA_PLATFORM="windows" 2147 CFLAGS="$CFLAGS -mwin32" 2148 { echo "$as_me:$LINENO: result: win32" >&5 2149echo "${ECHO_T}win32" >&6; } 2150 ;; 2151 *) 2152 TEA_PLATFORM="unix" 2153 { echo "$as_me:$LINENO: result: unix" >&5 2154echo "${ECHO_T}unix" >&6; } 2155 ;; 2156 esac 2157 EXEEXT=".exe" 2158 ;; 2159 *) 2160 ;; 2161 esac 2162 2163 # Do this here as we have fully defined TEA_PLATFORM now 2164 if test "${TEA_PLATFORM}" = "windows" ; then 2165 # The BUILD_$pkg is to define the correct extern storage class 2166 # handling when making this package 2167 2168cat >>confdefs.h <<_ACEOF 2169#define BUILD_${PACKAGE_NAME} 2170_ACEOF 2171 2172 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2173 fi 2174 2175 # TEA specific: 2176 2177 2178 2179 2180 2181 2182 2183 2184#-------------------------------------------------------------------- 2185# Load the tkConfig.sh file if necessary (Tk extension) 2186#-------------------------------------------------------------------- 2187 2188#TEA_PATH_TKCONFIG 2189#TEA_LOAD_TKCONFIG 2190 2191#----------------------------------------------------------------------- 2192# Handle the --prefix=... option by defaulting to what Tcl gave. 2193# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2194#----------------------------------------------------------------------- 2195 2196 2197 if test "${prefix}" = "NONE"; then 2198 prefix_default=yes 2199 if test x"${TCL_PREFIX}" != x; then 2200 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2201echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2202 prefix=${TCL_PREFIX} 2203 else 2204 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2205echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2206 prefix=/usr/local 2207 fi 2208 fi 2209 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2210 -o x"${exec_prefix_default}" = x"yes" ; then 2211 if test x"${TCL_EXEC_PREFIX}" != x; then 2212 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2213echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2214 exec_prefix=${TCL_EXEC_PREFIX} 2215 else 2216 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2217echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2218 exec_prefix=$prefix 2219 fi 2220 fi 2221 2222 2223#----------------------------------------------------------------------- 2224# Standard compiler checks. 2225# This sets up CC by using the CC env var, or looks for gcc otherwise. 2226# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2227# the basic setup necessary to compile executables. 2228#----------------------------------------------------------------------- 2229 2230 2231 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2232 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2233 2234 # If the user did not set CFLAGS, set it now to keep 2235 # the AC_PROG_CC macro from adding "-g -O2". 2236 if test "${CFLAGS+set}" != "set" ; then 2237 CFLAGS="" 2238 fi 2239 2240 ac_ext=c 2241ac_cpp='$CPP $CPPFLAGS' 2242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2244ac_compiler_gnu=$ac_cv_c_compiler_gnu 2245if test -n "$ac_tool_prefix"; then 2246 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2247set dummy ${ac_tool_prefix}gcc; ac_word=$2 2248{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2250if test "${ac_cv_prog_CC+set}" = set; then 2251 echo $ECHO_N "(cached) $ECHO_C" >&6 2252else 2253 if test -n "$CC"; then 2254 ac_cv_prog_CC="$CC" # Let the user override the test. 2255else 2256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2257for as_dir in $PATH 2258do 2259 IFS=$as_save_IFS 2260 test -z "$as_dir" && as_dir=. 2261 for ac_exec_ext in '' $ac_executable_extensions; do 2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2263 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2265 break 2 2266 fi 2267done 2268done 2269IFS=$as_save_IFS 2270 2271fi 2272fi 2273CC=$ac_cv_prog_CC 2274if test -n "$CC"; then 2275 { echo "$as_me:$LINENO: result: $CC" >&5 2276echo "${ECHO_T}$CC" >&6; } 2277else 2278 { echo "$as_me:$LINENO: result: no" >&5 2279echo "${ECHO_T}no" >&6; } 2280fi 2281 2282 2283fi 2284if test -z "$ac_cv_prog_CC"; then 2285 ac_ct_CC=$CC 2286 # Extract the first word of "gcc", so it can be a program name with args. 2287set dummy gcc; ac_word=$2 2288{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2290if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2291 echo $ECHO_N "(cached) $ECHO_C" >&6 2292else 2293 if test -n "$ac_ct_CC"; then 2294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2295else 2296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2297for as_dir in $PATH 2298do 2299 IFS=$as_save_IFS 2300 test -z "$as_dir" && as_dir=. 2301 for ac_exec_ext in '' $ac_executable_extensions; do 2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2303 ac_cv_prog_ac_ct_CC="gcc" 2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2305 break 2 2306 fi 2307done 2308done 2309IFS=$as_save_IFS 2310 2311fi 2312fi 2313ac_ct_CC=$ac_cv_prog_ac_ct_CC 2314if test -n "$ac_ct_CC"; then 2315 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2316echo "${ECHO_T}$ac_ct_CC" >&6; } 2317else 2318 { echo "$as_me:$LINENO: result: no" >&5 2319echo "${ECHO_T}no" >&6; } 2320fi 2321 2322 if test "x$ac_ct_CC" = x; then 2323 CC="" 2324 else 2325 case $cross_compiling:$ac_tool_warned in 2326yes:) 2327{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2328whose name does not start with the host triplet. If you think this 2329configuration is useful to you, please write to autoconf@gnu.org." >&5 2330echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2331whose name does not start with the host triplet. If you think this 2332configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2333ac_tool_warned=yes ;; 2334esac 2335 CC=$ac_ct_CC 2336 fi 2337else 2338 CC="$ac_cv_prog_CC" 2339fi 2340 2341if test -z "$CC"; then 2342 if test -n "$ac_tool_prefix"; then 2343 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2344set dummy ${ac_tool_prefix}cc; ac_word=$2 2345{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2347if test "${ac_cv_prog_CC+set}" = set; then 2348 echo $ECHO_N "(cached) $ECHO_C" >&6 2349else 2350 if test -n "$CC"; then 2351 ac_cv_prog_CC="$CC" # Let the user override the test. 2352else 2353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2354for as_dir in $PATH 2355do 2356 IFS=$as_save_IFS 2357 test -z "$as_dir" && as_dir=. 2358 for ac_exec_ext in '' $ac_executable_extensions; do 2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2360 ac_cv_prog_CC="${ac_tool_prefix}cc" 2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2362 break 2 2363 fi 2364done 2365done 2366IFS=$as_save_IFS 2367 2368fi 2369fi 2370CC=$ac_cv_prog_CC 2371if test -n "$CC"; then 2372 { echo "$as_me:$LINENO: result: $CC" >&5 2373echo "${ECHO_T}$CC" >&6; } 2374else 2375 { echo "$as_me:$LINENO: result: no" >&5 2376echo "${ECHO_T}no" >&6; } 2377fi 2378 2379 2380 fi 2381fi 2382if test -z "$CC"; then 2383 # Extract the first word of "cc", so it can be a program name with args. 2384set dummy cc; ac_word=$2 2385{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2387if test "${ac_cv_prog_CC+set}" = set; then 2388 echo $ECHO_N "(cached) $ECHO_C" >&6 2389else 2390 if test -n "$CC"; then 2391 ac_cv_prog_CC="$CC" # Let the user override the test. 2392else 2393 ac_prog_rejected=no 2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2395for as_dir in $PATH 2396do 2397 IFS=$as_save_IFS 2398 test -z "$as_dir" && as_dir=. 2399 for ac_exec_ext in '' $ac_executable_extensions; do 2400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2401 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2402 ac_prog_rejected=yes 2403 continue 2404 fi 2405 ac_cv_prog_CC="cc" 2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2407 break 2 2408 fi 2409done 2410done 2411IFS=$as_save_IFS 2412 2413if test $ac_prog_rejected = yes; then 2414 # We found a bogon in the path, so make sure we never use it. 2415 set dummy $ac_cv_prog_CC 2416 shift 2417 if test $# != 0; then 2418 # We chose a different compiler from the bogus one. 2419 # However, it has the same basename, so the bogon will be chosen 2420 # first if we set CC to just the basename; use the full file name. 2421 shift 2422 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2423 fi 2424fi 2425fi 2426fi 2427CC=$ac_cv_prog_CC 2428if test -n "$CC"; then 2429 { echo "$as_me:$LINENO: result: $CC" >&5 2430echo "${ECHO_T}$CC" >&6; } 2431else 2432 { echo "$as_me:$LINENO: result: no" >&5 2433echo "${ECHO_T}no" >&6; } 2434fi 2435 2436 2437fi 2438if test -z "$CC"; then 2439 if test -n "$ac_tool_prefix"; then 2440 for ac_prog in cl.exe 2441 do 2442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2443set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2444{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2446if test "${ac_cv_prog_CC+set}" = set; then 2447 echo $ECHO_N "(cached) $ECHO_C" >&6 2448else 2449 if test -n "$CC"; then 2450 ac_cv_prog_CC="$CC" # Let the user override the test. 2451else 2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2453for as_dir in $PATH 2454do 2455 IFS=$as_save_IFS 2456 test -z "$as_dir" && as_dir=. 2457 for ac_exec_ext in '' $ac_executable_extensions; do 2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2459 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2461 break 2 2462 fi 2463done 2464done 2465IFS=$as_save_IFS 2466 2467fi 2468fi 2469CC=$ac_cv_prog_CC 2470if test -n "$CC"; then 2471 { echo "$as_me:$LINENO: result: $CC" >&5 2472echo "${ECHO_T}$CC" >&6; } 2473else 2474 { echo "$as_me:$LINENO: result: no" >&5 2475echo "${ECHO_T}no" >&6; } 2476fi 2477 2478 2479 test -n "$CC" && break 2480 done 2481fi 2482if test -z "$CC"; then 2483 ac_ct_CC=$CC 2484 for ac_prog in cl.exe 2485do 2486 # Extract the first word of "$ac_prog", so it can be a program name with args. 2487set dummy $ac_prog; ac_word=$2 2488{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2490if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2491 echo $ECHO_N "(cached) $ECHO_C" >&6 2492else 2493 if test -n "$ac_ct_CC"; then 2494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2495else 2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2497for as_dir in $PATH 2498do 2499 IFS=$as_save_IFS 2500 test -z "$as_dir" && as_dir=. 2501 for ac_exec_ext in '' $ac_executable_extensions; do 2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2503 ac_cv_prog_ac_ct_CC="$ac_prog" 2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2505 break 2 2506 fi 2507done 2508done 2509IFS=$as_save_IFS 2510 2511fi 2512fi 2513ac_ct_CC=$ac_cv_prog_ac_ct_CC 2514if test -n "$ac_ct_CC"; then 2515 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2516echo "${ECHO_T}$ac_ct_CC" >&6; } 2517else 2518 { echo "$as_me:$LINENO: result: no" >&5 2519echo "${ECHO_T}no" >&6; } 2520fi 2521 2522 2523 test -n "$ac_ct_CC" && break 2524done 2525 2526 if test "x$ac_ct_CC" = x; then 2527 CC="" 2528 else 2529 case $cross_compiling:$ac_tool_warned in 2530yes:) 2531{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2532whose name does not start with the host triplet. If you think this 2533configuration is useful to you, please write to autoconf@gnu.org." >&5 2534echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2535whose name does not start with the host triplet. If you think this 2536configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2537ac_tool_warned=yes ;; 2538esac 2539 CC=$ac_ct_CC 2540 fi 2541fi 2542 2543fi 2544 2545 2546test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2547See \`config.log' for more details." >&5 2548echo "$as_me: error: no acceptable C compiler found in \$PATH 2549See \`config.log' for more details." >&2;} 2550 { (exit 1); exit 1; }; } 2551 2552# Provide some information about the compiler. 2553echo "$as_me:$LINENO: checking for C compiler version" >&5 2554ac_compiler=`set X $ac_compile; echo $2` 2555{ (ac_try="$ac_compiler --version >&5" 2556case "(($ac_try" in 2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2558 *) ac_try_echo=$ac_try;; 2559esac 2560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2561 (eval "$ac_compiler --version >&5") 2>&5 2562 ac_status=$? 2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2564 (exit $ac_status); } 2565{ (ac_try="$ac_compiler -v >&5" 2566case "(($ac_try" in 2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2568 *) ac_try_echo=$ac_try;; 2569esac 2570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2571 (eval "$ac_compiler -v >&5") 2>&5 2572 ac_status=$? 2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2574 (exit $ac_status); } 2575{ (ac_try="$ac_compiler -V >&5" 2576case "(($ac_try" in 2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2578 *) ac_try_echo=$ac_try;; 2579esac 2580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2581 (eval "$ac_compiler -V >&5") 2>&5 2582 ac_status=$? 2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2584 (exit $ac_status); } 2585 2586cat >conftest.$ac_ext <<_ACEOF 2587/* confdefs.h. */ 2588_ACEOF 2589cat confdefs.h >>conftest.$ac_ext 2590cat >>conftest.$ac_ext <<_ACEOF 2591/* end confdefs.h. */ 2592 2593int 2594main () 2595{ 2596 2597 ; 2598 return 0; 2599} 2600_ACEOF 2601ac_clean_files_save=$ac_clean_files 2602ac_clean_files="$ac_clean_files a.out a.exe b.out" 2603# Try to create an executable without -o first, disregard a.out. 2604# It will help us diagnose broken compilers, and finding out an intuition 2605# of exeext. 2606{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2607echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2608ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2609# 2610# List of possible output files, starting from the most likely. 2611# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2612# only as a last resort. b.out is created by i960 compilers. 2613ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2614# 2615# The IRIX 6 linker writes into existing files which may not be 2616# executable, retaining their permissions. Remove them first so a 2617# subsequent execution test works. 2618ac_rmfiles= 2619for ac_file in $ac_files 2620do 2621 case $ac_file in 2622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2623 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2624 esac 2625done 2626rm -f $ac_rmfiles 2627 2628if { (ac_try="$ac_link_default" 2629case "(($ac_try" in 2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2631 *) ac_try_echo=$ac_try;; 2632esac 2633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2634 (eval "$ac_link_default") 2>&5 2635 ac_status=$? 2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2637 (exit $ac_status); }; then 2638 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2639# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2640# in a Makefile. We should not override ac_cv_exeext if it was cached, 2641# so that the user can short-circuit this test for compilers unknown to 2642# Autoconf. 2643for ac_file in $ac_files '' 2644do 2645 test -f "$ac_file" || continue 2646 case $ac_file in 2647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2648 ;; 2649 [ab].out ) 2650 # We found the default executable, but exeext='' is most 2651 # certainly right. 2652 break;; 2653 *.* ) 2654 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2655 then :; else 2656 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2657 fi 2658 # We set ac_cv_exeext here because the later test for it is not 2659 # safe: cross compilers may not add the suffix if given an `-o' 2660 # argument, so we may need to know it at that point already. 2661 # Even if this section looks crufty: it has the advantage of 2662 # actually working. 2663 break;; 2664 * ) 2665 break;; 2666 esac 2667done 2668test "$ac_cv_exeext" = no && ac_cv_exeext= 2669 2670else 2671 ac_file='' 2672fi 2673 2674{ echo "$as_me:$LINENO: result: $ac_file" >&5 2675echo "${ECHO_T}$ac_file" >&6; } 2676if test -z "$ac_file"; then 2677 echo "$as_me: failed program was:" >&5 2678sed 's/^/| /' conftest.$ac_ext >&5 2679 2680{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2681See \`config.log' for more details." >&5 2682echo "$as_me: error: C compiler cannot create executables 2683See \`config.log' for more details." >&2;} 2684 { (exit 77); exit 77; }; } 2685fi 2686 2687ac_exeext=$ac_cv_exeext 2688 2689# Check that the compiler produces executables we can run. If not, either 2690# the compiler is broken, or we cross compile. 2691{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2692echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2693# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2694# If not cross compiling, check that we can run a simple program. 2695if test "$cross_compiling" != yes; then 2696 if { ac_try='./$ac_file' 2697 { (case "(($ac_try" in 2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2699 *) ac_try_echo=$ac_try;; 2700esac 2701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2702 (eval "$ac_try") 2>&5 2703 ac_status=$? 2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2705 (exit $ac_status); }; }; then 2706 cross_compiling=no 2707 else 2708 if test "$cross_compiling" = maybe; then 2709 cross_compiling=yes 2710 else 2711 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2712If you meant to cross compile, use \`--host'. 2713See \`config.log' for more details." >&5 2714echo "$as_me: error: cannot run C compiled programs. 2715If you meant to cross compile, use \`--host'. 2716See \`config.log' for more details." >&2;} 2717 { (exit 1); exit 1; }; } 2718 fi 2719 fi 2720fi 2721{ echo "$as_me:$LINENO: result: yes" >&5 2722echo "${ECHO_T}yes" >&6; } 2723 2724rm -f a.out a.exe conftest$ac_cv_exeext b.out 2725ac_clean_files=$ac_clean_files_save 2726# Check that the compiler produces executables we can run. If not, either 2727# the compiler is broken, or we cross compile. 2728{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2729echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2730{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2731echo "${ECHO_T}$cross_compiling" >&6; } 2732 2733{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2734echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2735if { (ac_try="$ac_link" 2736case "(($ac_try" in 2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2738 *) ac_try_echo=$ac_try;; 2739esac 2740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2741 (eval "$ac_link") 2>&5 2742 ac_status=$? 2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2744 (exit $ac_status); }; then 2745 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2746# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2747# work properly (i.e., refer to `conftest.exe'), while it won't with 2748# `rm'. 2749for ac_file in conftest.exe conftest conftest.*; do 2750 test -f "$ac_file" || continue 2751 case $ac_file in 2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2754 break;; 2755 * ) break;; 2756 esac 2757done 2758else 2759 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2760See \`config.log' for more details." >&5 2761echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2762See \`config.log' for more details." >&2;} 2763 { (exit 1); exit 1; }; } 2764fi 2765 2766rm -f conftest$ac_cv_exeext 2767{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2768echo "${ECHO_T}$ac_cv_exeext" >&6; } 2769 2770rm -f conftest.$ac_ext 2771EXEEXT=$ac_cv_exeext 2772ac_exeext=$EXEEXT 2773{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2774echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2775if test "${ac_cv_objext+set}" = set; then 2776 echo $ECHO_N "(cached) $ECHO_C" >&6 2777else 2778 cat >conftest.$ac_ext <<_ACEOF 2779/* confdefs.h. */ 2780_ACEOF 2781cat confdefs.h >>conftest.$ac_ext 2782cat >>conftest.$ac_ext <<_ACEOF 2783/* end confdefs.h. */ 2784 2785int 2786main () 2787{ 2788 2789 ; 2790 return 0; 2791} 2792_ACEOF 2793rm -f conftest.o conftest.obj 2794if { (ac_try="$ac_compile" 2795case "(($ac_try" in 2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2797 *) ac_try_echo=$ac_try;; 2798esac 2799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2800 (eval "$ac_compile") 2>&5 2801 ac_status=$? 2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2803 (exit $ac_status); }; then 2804 for ac_file in conftest.o conftest.obj conftest.*; do 2805 test -f "$ac_file" || continue; 2806 case $ac_file in 2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2808 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2809 break;; 2810 esac 2811done 2812else 2813 echo "$as_me: failed program was:" >&5 2814sed 's/^/| /' conftest.$ac_ext >&5 2815 2816{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2817See \`config.log' for more details." >&5 2818echo "$as_me: error: cannot compute suffix of object files: cannot compile 2819See \`config.log' for more details." >&2;} 2820 { (exit 1); exit 1; }; } 2821fi 2822 2823rm -f conftest.$ac_cv_objext conftest.$ac_ext 2824fi 2825{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2826echo "${ECHO_T}$ac_cv_objext" >&6; } 2827OBJEXT=$ac_cv_objext 2828ac_objext=$OBJEXT 2829{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2830echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2831if test "${ac_cv_c_compiler_gnu+set}" = set; then 2832 echo $ECHO_N "(cached) $ECHO_C" >&6 2833else 2834 cat >conftest.$ac_ext <<_ACEOF 2835/* confdefs.h. */ 2836_ACEOF 2837cat confdefs.h >>conftest.$ac_ext 2838cat >>conftest.$ac_ext <<_ACEOF 2839/* end confdefs.h. */ 2840 2841int 2842main () 2843{ 2844#ifndef __GNUC__ 2845 choke me 2846#endif 2847 2848 ; 2849 return 0; 2850} 2851_ACEOF 2852rm -f conftest.$ac_objext 2853if { (ac_try="$ac_compile" 2854case "(($ac_try" in 2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2856 *) ac_try_echo=$ac_try;; 2857esac 2858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2859 (eval "$ac_compile") 2>conftest.er1 2860 ac_status=$? 2861 grep -v '^ *+' conftest.er1 >conftest.err 2862 rm -f conftest.er1 2863 cat conftest.err >&5 2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2865 (exit $ac_status); } && { 2866 test -z "$ac_c_werror_flag" || 2867 test ! -s conftest.err 2868 } && test -s conftest.$ac_objext; then 2869 ac_compiler_gnu=yes 2870else 2871 echo "$as_me: failed program was:" >&5 2872sed 's/^/| /' conftest.$ac_ext >&5 2873 2874 ac_compiler_gnu=no 2875fi 2876 2877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2878ac_cv_c_compiler_gnu=$ac_compiler_gnu 2879 2880fi 2881{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2882echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2883GCC=`test $ac_compiler_gnu = yes && echo yes` 2884ac_test_CFLAGS=${CFLAGS+set} 2885ac_save_CFLAGS=$CFLAGS 2886{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2887echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2888if test "${ac_cv_prog_cc_g+set}" = set; then 2889 echo $ECHO_N "(cached) $ECHO_C" >&6 2890else 2891 ac_save_c_werror_flag=$ac_c_werror_flag 2892 ac_c_werror_flag=yes 2893 ac_cv_prog_cc_g=no 2894 CFLAGS="-g" 2895 cat >conftest.$ac_ext <<_ACEOF 2896/* confdefs.h. */ 2897_ACEOF 2898cat confdefs.h >>conftest.$ac_ext 2899cat >>conftest.$ac_ext <<_ACEOF 2900/* end confdefs.h. */ 2901 2902int 2903main () 2904{ 2905 2906 ; 2907 return 0; 2908} 2909_ACEOF 2910rm -f conftest.$ac_objext 2911if { (ac_try="$ac_compile" 2912case "(($ac_try" in 2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2914 *) ac_try_echo=$ac_try;; 2915esac 2916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2917 (eval "$ac_compile") 2>conftest.er1 2918 ac_status=$? 2919 grep -v '^ *+' conftest.er1 >conftest.err 2920 rm -f conftest.er1 2921 cat conftest.err >&5 2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2923 (exit $ac_status); } && { 2924 test -z "$ac_c_werror_flag" || 2925 test ! -s conftest.err 2926 } && test -s conftest.$ac_objext; then 2927 ac_cv_prog_cc_g=yes 2928else 2929 echo "$as_me: failed program was:" >&5 2930sed 's/^/| /' conftest.$ac_ext >&5 2931 2932 CFLAGS="" 2933 cat >conftest.$ac_ext <<_ACEOF 2934/* confdefs.h. */ 2935_ACEOF 2936cat confdefs.h >>conftest.$ac_ext 2937cat >>conftest.$ac_ext <<_ACEOF 2938/* end confdefs.h. */ 2939 2940int 2941main () 2942{ 2943 2944 ; 2945 return 0; 2946} 2947_ACEOF 2948rm -f conftest.$ac_objext 2949if { (ac_try="$ac_compile" 2950case "(($ac_try" in 2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2952 *) ac_try_echo=$ac_try;; 2953esac 2954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2955 (eval "$ac_compile") 2>conftest.er1 2956 ac_status=$? 2957 grep -v '^ *+' conftest.er1 >conftest.err 2958 rm -f conftest.er1 2959 cat conftest.err >&5 2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2961 (exit $ac_status); } && { 2962 test -z "$ac_c_werror_flag" || 2963 test ! -s conftest.err 2964 } && test -s conftest.$ac_objext; then 2965 : 2966else 2967 echo "$as_me: failed program was:" >&5 2968sed 's/^/| /' conftest.$ac_ext >&5 2969 2970 ac_c_werror_flag=$ac_save_c_werror_flag 2971 CFLAGS="-g" 2972 cat >conftest.$ac_ext <<_ACEOF 2973/* confdefs.h. */ 2974_ACEOF 2975cat confdefs.h >>conftest.$ac_ext 2976cat >>conftest.$ac_ext <<_ACEOF 2977/* end confdefs.h. */ 2978 2979int 2980main () 2981{ 2982 2983 ; 2984 return 0; 2985} 2986_ACEOF 2987rm -f conftest.$ac_objext 2988if { (ac_try="$ac_compile" 2989case "(($ac_try" in 2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2991 *) ac_try_echo=$ac_try;; 2992esac 2993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2994 (eval "$ac_compile") 2>conftest.er1 2995 ac_status=$? 2996 grep -v '^ *+' conftest.er1 >conftest.err 2997 rm -f conftest.er1 2998 cat conftest.err >&5 2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3000 (exit $ac_status); } && { 3001 test -z "$ac_c_werror_flag" || 3002 test ! -s conftest.err 3003 } && test -s conftest.$ac_objext; then 3004 ac_cv_prog_cc_g=yes 3005else 3006 echo "$as_me: failed program was:" >&5 3007sed 's/^/| /' conftest.$ac_ext >&5 3008 3009 3010fi 3011 3012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3013fi 3014 3015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3016fi 3017 3018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3019 ac_c_werror_flag=$ac_save_c_werror_flag 3020fi 3021{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3022echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3023if test "$ac_test_CFLAGS" = set; then 3024 CFLAGS=$ac_save_CFLAGS 3025elif test $ac_cv_prog_cc_g = yes; then 3026 if test "$GCC" = yes; then 3027 CFLAGS="-g -O2" 3028 else 3029 CFLAGS="-g" 3030 fi 3031else 3032 if test "$GCC" = yes; then 3033 CFLAGS="-O2" 3034 else 3035 CFLAGS= 3036 fi 3037fi 3038{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3039echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3040if test "${ac_cv_prog_cc_c89+set}" = set; then 3041 echo $ECHO_N "(cached) $ECHO_C" >&6 3042else 3043 ac_cv_prog_cc_c89=no 3044ac_save_CC=$CC 3045cat >conftest.$ac_ext <<_ACEOF 3046/* confdefs.h. */ 3047_ACEOF 3048cat confdefs.h >>conftest.$ac_ext 3049cat >>conftest.$ac_ext <<_ACEOF 3050/* end confdefs.h. */ 3051#include <stdarg.h> 3052#include <stdio.h> 3053#include <sys/types.h> 3054#include <sys/stat.h> 3055/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3056struct buf { int x; }; 3057FILE * (*rcsopen) (struct buf *, struct stat *, int); 3058static char *e (p, i) 3059 char **p; 3060 int i; 3061{ 3062 return p[i]; 3063} 3064static char *f (char * (*g) (char **, int), char **p, ...) 3065{ 3066 char *s; 3067 va_list v; 3068 va_start (v,p); 3069 s = g (p, va_arg (v,int)); 3070 va_end (v); 3071 return s; 3072} 3073 3074/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3075 function prototypes and stuff, but not '\xHH' hex character constants. 3076 These don't provoke an error unfortunately, instead are silently treated 3077 as 'x'. The following induces an error, until -std is added to get 3078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3079 array size at least. It's necessary to write '\x00'==0 to get something 3080 that's true only with -std. */ 3081int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3082 3083/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3084 inside strings and character constants. */ 3085#define FOO(x) 'x' 3086int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3087 3088int test (int i, double x); 3089struct s1 {int (*f) (int a);}; 3090struct s2 {int (*f) (double a);}; 3091int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3092int argc; 3093char **argv; 3094int 3095main () 3096{ 3097return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3098 ; 3099 return 0; 3100} 3101_ACEOF 3102for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3103 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3104do 3105 CC="$ac_save_CC $ac_arg" 3106 rm -f conftest.$ac_objext 3107if { (ac_try="$ac_compile" 3108case "(($ac_try" in 3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3110 *) ac_try_echo=$ac_try;; 3111esac 3112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3113 (eval "$ac_compile") 2>conftest.er1 3114 ac_status=$? 3115 grep -v '^ *+' conftest.er1 >conftest.err 3116 rm -f conftest.er1 3117 cat conftest.err >&5 3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3119 (exit $ac_status); } && { 3120 test -z "$ac_c_werror_flag" || 3121 test ! -s conftest.err 3122 } && test -s conftest.$ac_objext; then 3123 ac_cv_prog_cc_c89=$ac_arg 3124else 3125 echo "$as_me: failed program was:" >&5 3126sed 's/^/| /' conftest.$ac_ext >&5 3127 3128 3129fi 3130 3131rm -f core conftest.err conftest.$ac_objext 3132 test "x$ac_cv_prog_cc_c89" != "xno" && break 3133done 3134rm -f conftest.$ac_ext 3135CC=$ac_save_CC 3136 3137fi 3138# AC_CACHE_VAL 3139case "x$ac_cv_prog_cc_c89" in 3140 x) 3141 { echo "$as_me:$LINENO: result: none needed" >&5 3142echo "${ECHO_T}none needed" >&6; } ;; 3143 xno) 3144 { echo "$as_me:$LINENO: result: unsupported" >&5 3145echo "${ECHO_T}unsupported" >&6; } ;; 3146 *) 3147 CC="$CC $ac_cv_prog_cc_c89" 3148 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3149echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3150esac 3151 3152 3153ac_ext=c 3154ac_cpp='$CPP $CPPFLAGS' 3155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3157ac_compiler_gnu=$ac_cv_c_compiler_gnu 3158 3159 ac_ext=c 3160ac_cpp='$CPP $CPPFLAGS' 3161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3163ac_compiler_gnu=$ac_cv_c_compiler_gnu 3164{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3165echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3166# On Suns, sometimes $CPP names a directory. 3167if test -n "$CPP" && test -d "$CPP"; then 3168 CPP= 3169fi 3170if test -z "$CPP"; then 3171 if test "${ac_cv_prog_CPP+set}" = set; then 3172 echo $ECHO_N "(cached) $ECHO_C" >&6 3173else 3174 # Double quotes because CPP needs to be expanded 3175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3176 do 3177 ac_preproc_ok=false 3178for ac_c_preproc_warn_flag in '' yes 3179do 3180 # Use a header file that comes with gcc, so configuring glibc 3181 # with a fresh cross-compiler works. 3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3183 # <limits.h> exists even on freestanding compilers. 3184 # On the NeXT, cc -E runs the code through the compiler's parser, 3185 # not just through cpp. "Syntax error" is here to catch this case. 3186 cat >conftest.$ac_ext <<_ACEOF 3187/* confdefs.h. */ 3188_ACEOF 3189cat confdefs.h >>conftest.$ac_ext 3190cat >>conftest.$ac_ext <<_ACEOF 3191/* end confdefs.h. */ 3192#ifdef __STDC__ 3193# include <limits.h> 3194#else 3195# include <assert.h> 3196#endif 3197 Syntax error 3198_ACEOF 3199if { (ac_try="$ac_cpp conftest.$ac_ext" 3200case "(($ac_try" in 3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3202 *) ac_try_echo=$ac_try;; 3203esac 3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3206 ac_status=$? 3207 grep -v '^ *+' conftest.er1 >conftest.err 3208 rm -f conftest.er1 3209 cat conftest.err >&5 3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3211 (exit $ac_status); } >/dev/null && { 3212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3213 test ! -s conftest.err 3214 }; then 3215 : 3216else 3217 echo "$as_me: failed program was:" >&5 3218sed 's/^/| /' conftest.$ac_ext >&5 3219 3220 # Broken: fails on valid input. 3221continue 3222fi 3223 3224rm -f conftest.err conftest.$ac_ext 3225 3226 # OK, works on sane cases. Now check whether nonexistent headers 3227 # can be detected and how. 3228 cat >conftest.$ac_ext <<_ACEOF 3229/* confdefs.h. */ 3230_ACEOF 3231cat confdefs.h >>conftest.$ac_ext 3232cat >>conftest.$ac_ext <<_ACEOF 3233/* end confdefs.h. */ 3234#include <ac_nonexistent.h> 3235_ACEOF 3236if { (ac_try="$ac_cpp conftest.$ac_ext" 3237case "(($ac_try" in 3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3239 *) ac_try_echo=$ac_try;; 3240esac 3241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3243 ac_status=$? 3244 grep -v '^ *+' conftest.er1 >conftest.err 3245 rm -f conftest.er1 3246 cat conftest.err >&5 3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3248 (exit $ac_status); } >/dev/null && { 3249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3250 test ! -s conftest.err 3251 }; then 3252 # Broken: success on invalid input. 3253continue 3254else 3255 echo "$as_me: failed program was:" >&5 3256sed 's/^/| /' conftest.$ac_ext >&5 3257 3258 # Passes both tests. 3259ac_preproc_ok=: 3260break 3261fi 3262 3263rm -f conftest.err conftest.$ac_ext 3264 3265done 3266# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3267rm -f conftest.err conftest.$ac_ext 3268if $ac_preproc_ok; then 3269 break 3270fi 3271 3272 done 3273 ac_cv_prog_CPP=$CPP 3274 3275fi 3276 CPP=$ac_cv_prog_CPP 3277else 3278 ac_cv_prog_CPP=$CPP 3279fi 3280{ echo "$as_me:$LINENO: result: $CPP" >&5 3281echo "${ECHO_T}$CPP" >&6; } 3282ac_preproc_ok=false 3283for ac_c_preproc_warn_flag in '' yes 3284do 3285 # Use a header file that comes with gcc, so configuring glibc 3286 # with a fresh cross-compiler works. 3287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3288 # <limits.h> exists even on freestanding compilers. 3289 # On the NeXT, cc -E runs the code through the compiler's parser, 3290 # not just through cpp. "Syntax error" is here to catch this case. 3291 cat >conftest.$ac_ext <<_ACEOF 3292/* confdefs.h. */ 3293_ACEOF 3294cat confdefs.h >>conftest.$ac_ext 3295cat >>conftest.$ac_ext <<_ACEOF 3296/* end confdefs.h. */ 3297#ifdef __STDC__ 3298# include <limits.h> 3299#else 3300# include <assert.h> 3301#endif 3302 Syntax error 3303_ACEOF 3304if { (ac_try="$ac_cpp conftest.$ac_ext" 3305case "(($ac_try" in 3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3307 *) ac_try_echo=$ac_try;; 3308esac 3309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3311 ac_status=$? 3312 grep -v '^ *+' conftest.er1 >conftest.err 3313 rm -f conftest.er1 3314 cat conftest.err >&5 3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3316 (exit $ac_status); } >/dev/null && { 3317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3318 test ! -s conftest.err 3319 }; then 3320 : 3321else 3322 echo "$as_me: failed program was:" >&5 3323sed 's/^/| /' conftest.$ac_ext >&5 3324 3325 # Broken: fails on valid input. 3326continue 3327fi 3328 3329rm -f conftest.err conftest.$ac_ext 3330 3331 # OK, works on sane cases. Now check whether nonexistent headers 3332 # can be detected and how. 3333 cat >conftest.$ac_ext <<_ACEOF 3334/* confdefs.h. */ 3335_ACEOF 3336cat confdefs.h >>conftest.$ac_ext 3337cat >>conftest.$ac_ext <<_ACEOF 3338/* end confdefs.h. */ 3339#include <ac_nonexistent.h> 3340_ACEOF 3341if { (ac_try="$ac_cpp conftest.$ac_ext" 3342case "(($ac_try" in 3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3344 *) ac_try_echo=$ac_try;; 3345esac 3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3348 ac_status=$? 3349 grep -v '^ *+' conftest.er1 >conftest.err 3350 rm -f conftest.er1 3351 cat conftest.err >&5 3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3353 (exit $ac_status); } >/dev/null && { 3354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3355 test ! -s conftest.err 3356 }; then 3357 # Broken: success on invalid input. 3358continue 3359else 3360 echo "$as_me: failed program was:" >&5 3361sed 's/^/| /' conftest.$ac_ext >&5 3362 3363 # Passes both tests. 3364ac_preproc_ok=: 3365break 3366fi 3367 3368rm -f conftest.err conftest.$ac_ext 3369 3370done 3371# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3372rm -f conftest.err conftest.$ac_ext 3373if $ac_preproc_ok; then 3374 : 3375else 3376 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3377See \`config.log' for more details." >&5 3378echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3379See \`config.log' for more details." >&2;} 3380 { (exit 1); exit 1; }; } 3381fi 3382 3383ac_ext=c 3384ac_cpp='$CPP $CPPFLAGS' 3385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3387ac_compiler_gnu=$ac_cv_c_compiler_gnu 3388 3389 3390 # Find a good install program. We prefer a C program (faster), 3391# so one script is as good as another. But avoid the broken or 3392# incompatible versions: 3393# SysV /etc/install, /usr/sbin/install 3394# SunOS /usr/etc/install 3395# IRIX /sbin/install 3396# AIX /bin/install 3397# AmigaOS /C/install, which installs bootblocks on floppy discs 3398# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3399# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3400# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3401# OS/2's system install, which has a completely different semantic 3402# ./install, which can be erroneously created by make from ./install.sh. 3403{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3404echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3405if test -z "$INSTALL"; then 3406if test "${ac_cv_path_install+set}" = set; then 3407 echo $ECHO_N "(cached) $ECHO_C" >&6 3408else 3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3410for as_dir in $PATH 3411do 3412 IFS=$as_save_IFS 3413 test -z "$as_dir" && as_dir=. 3414 # Account for people who put trailing slashes in PATH elements. 3415case $as_dir/ in 3416 ./ | .// | /cC/* | \ 3417 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3418 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3419 /usr/ucb/* ) ;; 3420 *) 3421 # OSF1 and SCO ODT 3.0 have their own names for install. 3422 # Don't use installbsd from OSF since it installs stuff as root 3423 # by default. 3424 for ac_prog in ginstall scoinst install; do 3425 for ac_exec_ext in '' $ac_executable_extensions; do 3426 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3427 if test $ac_prog = install && 3428 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3429 # AIX install. It has an incompatible calling convention. 3430 : 3431 elif test $ac_prog = install && 3432 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3433 # program-specific install script used by HP pwplus--don't use. 3434 : 3435 else 3436 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3437 break 3 3438 fi 3439 fi 3440 done 3441 done 3442 ;; 3443esac 3444done 3445IFS=$as_save_IFS 3446 3447 3448fi 3449 if test "${ac_cv_path_install+set}" = set; then 3450 INSTALL=$ac_cv_path_install 3451 else 3452 # As a last resort, use the slow shell script. Don't cache a 3453 # value for INSTALL within a source directory, because that will 3454 # break other packages using the cache if that directory is 3455 # removed, or if the value is a relative name. 3456 INSTALL=$ac_install_sh 3457 fi 3458fi 3459{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3460echo "${ECHO_T}$INSTALL" >&6; } 3461 3462# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3463# It thinks the first close brace ends the variable substitution. 3464test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3465 3466test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3467 3468test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3469 3470 3471 #-------------------------------------------------------------------- 3472 # Checks to see if the make program sets the $MAKE variable. 3473 #-------------------------------------------------------------------- 3474 3475 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3476echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3477set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3478if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3479 echo $ECHO_N "(cached) $ECHO_C" >&6 3480else 3481 cat >conftest.make <<\_ACEOF 3482SHELL = /bin/sh 3483all: 3484 @echo '@@@%%%=$(MAKE)=@@@%%%' 3485_ACEOF 3486# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3487case `${MAKE-make} -f conftest.make 2>/dev/null` in 3488 *@@@%%%=?*=@@@%%%*) 3489 eval ac_cv_prog_make_${ac_make}_set=yes;; 3490 *) 3491 eval ac_cv_prog_make_${ac_make}_set=no;; 3492esac 3493rm -f conftest.make 3494fi 3495if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3496 { echo "$as_me:$LINENO: result: yes" >&5 3497echo "${ECHO_T}yes" >&6; } 3498 SET_MAKE= 3499else 3500 { echo "$as_me:$LINENO: result: no" >&5 3501echo "${ECHO_T}no" >&6; } 3502 SET_MAKE="MAKE=${MAKE-make}" 3503fi 3504 3505 3506 #-------------------------------------------------------------------- 3507 # Find ranlib 3508 #-------------------------------------------------------------------- 3509 3510 if test -n "$ac_tool_prefix"; then 3511 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3512set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3513{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3515if test "${ac_cv_prog_RANLIB+set}" = set; then 3516 echo $ECHO_N "(cached) $ECHO_C" >&6 3517else 3518 if test -n "$RANLIB"; then 3519 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3520else 3521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3522for as_dir in $PATH 3523do 3524 IFS=$as_save_IFS 3525 test -z "$as_dir" && as_dir=. 3526 for ac_exec_ext in '' $ac_executable_extensions; do 3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3528 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3530 break 2 3531 fi 3532done 3533done 3534IFS=$as_save_IFS 3535 3536fi 3537fi 3538RANLIB=$ac_cv_prog_RANLIB 3539if test -n "$RANLIB"; then 3540 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3541echo "${ECHO_T}$RANLIB" >&6; } 3542else 3543 { echo "$as_me:$LINENO: result: no" >&5 3544echo "${ECHO_T}no" >&6; } 3545fi 3546 3547 3548fi 3549if test -z "$ac_cv_prog_RANLIB"; then 3550 ac_ct_RANLIB=$RANLIB 3551 # Extract the first word of "ranlib", so it can be a program name with args. 3552set dummy ranlib; ac_word=$2 3553{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3555if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3556 echo $ECHO_N "(cached) $ECHO_C" >&6 3557else 3558 if test -n "$ac_ct_RANLIB"; then 3559 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3560else 3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3562for as_dir in $PATH 3563do 3564 IFS=$as_save_IFS 3565 test -z "$as_dir" && as_dir=. 3566 for ac_exec_ext in '' $ac_executable_extensions; do 3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3568 ac_cv_prog_ac_ct_RANLIB="ranlib" 3569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3570 break 2 3571 fi 3572done 3573done 3574IFS=$as_save_IFS 3575 3576fi 3577fi 3578ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3579if test -n "$ac_ct_RANLIB"; then 3580 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3581echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3582else 3583 { echo "$as_me:$LINENO: result: no" >&5 3584echo "${ECHO_T}no" >&6; } 3585fi 3586 3587 if test "x$ac_ct_RANLIB" = x; then 3588 RANLIB=":" 3589 else 3590 case $cross_compiling:$ac_tool_warned in 3591yes:) 3592{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3593whose name does not start with the host triplet. If you think this 3594configuration is useful to you, please write to autoconf@gnu.org." >&5 3595echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3596whose name does not start with the host triplet. If you think this 3597configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3598ac_tool_warned=yes ;; 3599esac 3600 RANLIB=$ac_ct_RANLIB 3601 fi 3602else 3603 RANLIB="$ac_cv_prog_RANLIB" 3604fi 3605 3606 3607 #-------------------------------------------------------------------- 3608 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3609 #-------------------------------------------------------------------- 3610 3611 3612 3613 3614 3615 3616{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3617echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3618if test "${ac_cv_path_GREP+set}" = set; then 3619 echo $ECHO_N "(cached) $ECHO_C" >&6 3620else 3621 # Extract the first word of "grep ggrep" to use in msg output 3622if test -z "$GREP"; then 3623set dummy grep ggrep; ac_prog_name=$2 3624if test "${ac_cv_path_GREP+set}" = set; then 3625 echo $ECHO_N "(cached) $ECHO_C" >&6 3626else 3627 ac_path_GREP_found=false 3628# Loop through the user's path and test for each of PROGNAME-LIST 3629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3630for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3631do 3632 IFS=$as_save_IFS 3633 test -z "$as_dir" && as_dir=. 3634 for ac_prog in grep ggrep; do 3635 for ac_exec_ext in '' $ac_executable_extensions; do 3636 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3637 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3638 # Check for GNU ac_path_GREP and select it if it is found. 3639 # Check for GNU $ac_path_GREP 3640case `"$ac_path_GREP" --version 2>&1` in 3641*GNU*) 3642 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3643*) 3644 ac_count=0 3645 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3646 while : 3647 do 3648 cat "conftest.in" "conftest.in" >"conftest.tmp" 3649 mv "conftest.tmp" "conftest.in" 3650 cp "conftest.in" "conftest.nl" 3651 echo 'GREP' >> "conftest.nl" 3652 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3654 ac_count=`expr $ac_count + 1` 3655 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3656 # Best one so far, save it but keep looking for a better one 3657 ac_cv_path_GREP="$ac_path_GREP" 3658 ac_path_GREP_max=$ac_count 3659 fi 3660 # 10*(2^10) chars as input seems more than enough 3661 test $ac_count -gt 10 && break 3662 done 3663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3664esac 3665 3666 3667 $ac_path_GREP_found && break 3 3668 done 3669done 3670 3671done 3672IFS=$as_save_IFS 3673 3674 3675fi 3676 3677GREP="$ac_cv_path_GREP" 3678if test -z "$GREP"; then 3679 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3680echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3681 { (exit 1); exit 1; }; } 3682fi 3683 3684else 3685 ac_cv_path_GREP=$GREP 3686fi 3687 3688 3689fi 3690{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3691echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3692 GREP="$ac_cv_path_GREP" 3693 3694 3695{ echo "$as_me:$LINENO: checking for egrep" >&5 3696echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3697if test "${ac_cv_path_EGREP+set}" = set; then 3698 echo $ECHO_N "(cached) $ECHO_C" >&6 3699else 3700 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3701 then ac_cv_path_EGREP="$GREP -E" 3702 else 3703 # Extract the first word of "egrep" to use in msg output 3704if test -z "$EGREP"; then 3705set dummy egrep; ac_prog_name=$2 3706if test "${ac_cv_path_EGREP+set}" = set; then 3707 echo $ECHO_N "(cached) $ECHO_C" >&6 3708else 3709 ac_path_EGREP_found=false 3710# Loop through the user's path and test for each of PROGNAME-LIST 3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3712for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3713do 3714 IFS=$as_save_IFS 3715 test -z "$as_dir" && as_dir=. 3716 for ac_prog in egrep; do 3717 for ac_exec_ext in '' $ac_executable_extensions; do 3718 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3719 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3720 # Check for GNU ac_path_EGREP and select it if it is found. 3721 # Check for GNU $ac_path_EGREP 3722case `"$ac_path_EGREP" --version 2>&1` in 3723*GNU*) 3724 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3725*) 3726 ac_count=0 3727 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3728 while : 3729 do 3730 cat "conftest.in" "conftest.in" >"conftest.tmp" 3731 mv "conftest.tmp" "conftest.in" 3732 cp "conftest.in" "conftest.nl" 3733 echo 'EGREP' >> "conftest.nl" 3734 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3736 ac_count=`expr $ac_count + 1` 3737 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3738 # Best one so far, save it but keep looking for a better one 3739 ac_cv_path_EGREP="$ac_path_EGREP" 3740 ac_path_EGREP_max=$ac_count 3741 fi 3742 # 10*(2^10) chars as input seems more than enough 3743 test $ac_count -gt 10 && break 3744 done 3745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3746esac 3747 3748 3749 $ac_path_EGREP_found && break 3 3750 done 3751done 3752 3753done 3754IFS=$as_save_IFS 3755 3756 3757fi 3758 3759EGREP="$ac_cv_path_EGREP" 3760if test -z "$EGREP"; then 3761 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3762echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3763 { (exit 1); exit 1; }; } 3764fi 3765 3766else 3767 ac_cv_path_EGREP=$EGREP 3768fi 3769 3770 3771 fi 3772fi 3773{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3774echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3775 EGREP="$ac_cv_path_EGREP" 3776 3777 3778{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3779echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3780if test "${ac_cv_header_stdc+set}" = set; then 3781 echo $ECHO_N "(cached) $ECHO_C" >&6 3782else 3783 cat >conftest.$ac_ext <<_ACEOF 3784/* confdefs.h. */ 3785_ACEOF 3786cat confdefs.h >>conftest.$ac_ext 3787cat >>conftest.$ac_ext <<_ACEOF 3788/* end confdefs.h. */ 3789#include <stdlib.h> 3790#include <stdarg.h> 3791#include <string.h> 3792#include <float.h> 3793 3794int 3795main () 3796{ 3797 3798 ; 3799 return 0; 3800} 3801_ACEOF 3802rm -f conftest.$ac_objext 3803if { (ac_try="$ac_compile" 3804case "(($ac_try" in 3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3806 *) ac_try_echo=$ac_try;; 3807esac 3808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3809 (eval "$ac_compile") 2>conftest.er1 3810 ac_status=$? 3811 grep -v '^ *+' conftest.er1 >conftest.err 3812 rm -f conftest.er1 3813 cat conftest.err >&5 3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3815 (exit $ac_status); } && { 3816 test -z "$ac_c_werror_flag" || 3817 test ! -s conftest.err 3818 } && test -s conftest.$ac_objext; then 3819 ac_cv_header_stdc=yes 3820else 3821 echo "$as_me: failed program was:" >&5 3822sed 's/^/| /' conftest.$ac_ext >&5 3823 3824 ac_cv_header_stdc=no 3825fi 3826 3827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3828 3829if test $ac_cv_header_stdc = yes; then 3830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3831 cat >conftest.$ac_ext <<_ACEOF 3832/* confdefs.h. */ 3833_ACEOF 3834cat confdefs.h >>conftest.$ac_ext 3835cat >>conftest.$ac_ext <<_ACEOF 3836/* end confdefs.h. */ 3837#include <string.h> 3838 3839_ACEOF 3840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3841 $EGREP "memchr" >/dev/null 2>&1; then 3842 : 3843else 3844 ac_cv_header_stdc=no 3845fi 3846rm -f -r conftest* 3847 3848fi 3849 3850if test $ac_cv_header_stdc = yes; then 3851 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3852 cat >conftest.$ac_ext <<_ACEOF 3853/* confdefs.h. */ 3854_ACEOF 3855cat confdefs.h >>conftest.$ac_ext 3856cat >>conftest.$ac_ext <<_ACEOF 3857/* end confdefs.h. */ 3858#include <stdlib.h> 3859 3860_ACEOF 3861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3862 $EGREP "free" >/dev/null 2>&1; then 3863 : 3864else 3865 ac_cv_header_stdc=no 3866fi 3867rm -f -r conftest* 3868 3869fi 3870 3871if test $ac_cv_header_stdc = yes; then 3872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3873 if test "$cross_compiling" = yes; then 3874 : 3875else 3876 cat >conftest.$ac_ext <<_ACEOF 3877/* confdefs.h. */ 3878_ACEOF 3879cat confdefs.h >>conftest.$ac_ext 3880cat >>conftest.$ac_ext <<_ACEOF 3881/* end confdefs.h. */ 3882#include <ctype.h> 3883#include <stdlib.h> 3884#if ((' ' & 0x0FF) == 0x020) 3885# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3886# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3887#else 3888# define ISLOWER(c) \ 3889 (('a' <= (c) && (c) <= 'i') \ 3890 || ('j' <= (c) && (c) <= 'r') \ 3891 || ('s' <= (c) && (c) <= 'z')) 3892# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3893#endif 3894 3895#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3896int 3897main () 3898{ 3899 int i; 3900 for (i = 0; i < 256; i++) 3901 if (XOR (islower (i), ISLOWER (i)) 3902 || toupper (i) != TOUPPER (i)) 3903 return 2; 3904 return 0; 3905} 3906_ACEOF 3907rm -f conftest$ac_exeext 3908if { (ac_try="$ac_link" 3909case "(($ac_try" in 3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3911 *) ac_try_echo=$ac_try;; 3912esac 3913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3914 (eval "$ac_link") 2>&5 3915 ac_status=$? 3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3918 { (case "(($ac_try" in 3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3920 *) ac_try_echo=$ac_try;; 3921esac 3922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3923 (eval "$ac_try") 2>&5 3924 ac_status=$? 3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3926 (exit $ac_status); }; }; then 3927 : 3928else 3929 echo "$as_me: program exited with status $ac_status" >&5 3930echo "$as_me: failed program was:" >&5 3931sed 's/^/| /' conftest.$ac_ext >&5 3932 3933( exit $ac_status ) 3934ac_cv_header_stdc=no 3935fi 3936rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3937fi 3938 3939 3940fi 3941fi 3942{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3943echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3944if test $ac_cv_header_stdc = yes; then 3945 3946cat >>confdefs.h <<\_ACEOF 3947#define STDC_HEADERS 1 3948_ACEOF 3949 3950fi 3951 3952# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3963 inttypes.h stdint.h unistd.h 3964do 3965as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3966{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3969 echo $ECHO_N "(cached) $ECHO_C" >&6 3970else 3971 cat >conftest.$ac_ext <<_ACEOF 3972/* confdefs.h. */ 3973_ACEOF 3974cat confdefs.h >>conftest.$ac_ext 3975cat >>conftest.$ac_ext <<_ACEOF 3976/* end confdefs.h. */ 3977$ac_includes_default 3978 3979#include <$ac_header> 3980_ACEOF 3981rm -f conftest.$ac_objext 3982if { (ac_try="$ac_compile" 3983case "(($ac_try" in 3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3985 *) ac_try_echo=$ac_try;; 3986esac 3987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3988 (eval "$ac_compile") 2>conftest.er1 3989 ac_status=$? 3990 grep -v '^ *+' conftest.er1 >conftest.err 3991 rm -f conftest.er1 3992 cat conftest.err >&5 3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3994 (exit $ac_status); } && { 3995 test -z "$ac_c_werror_flag" || 3996 test ! -s conftest.err 3997 } && test -s conftest.$ac_objext; then 3998 eval "$as_ac_Header=yes" 3999else 4000 echo "$as_me: failed program was:" >&5 4001sed 's/^/| /' conftest.$ac_ext >&5 4002 4003 eval "$as_ac_Header=no" 4004fi 4005 4006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4007fi 4008ac_res=`eval echo '${'$as_ac_Header'}'` 4009 { echo "$as_me:$LINENO: result: $ac_res" >&5 4010echo "${ECHO_T}$ac_res" >&6; } 4011if test `eval echo '${'$as_ac_Header'}'` = yes; then 4012 cat >>confdefs.h <<_ACEOF 4013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4014_ACEOF 4015 4016fi 4017 4018done 4019 4020 4021 4022 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4023 4024 4025 #------------------------------------------------------------------------ 4026 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4027 # It makes compiling go faster. (This is only a performance feature.) 4028 #------------------------------------------------------------------------ 4029 4030 if test -z "$no_pipe" -a -n "$GCC"; then 4031 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4032echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4033if test "${tcl_cv_cc_pipe+set}" = set; then 4034 echo $ECHO_N "(cached) $ECHO_C" >&6 4035else 4036 4037 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4038 cat >conftest.$ac_ext <<_ACEOF 4039/* confdefs.h. */ 4040_ACEOF 4041cat confdefs.h >>conftest.$ac_ext 4042cat >>conftest.$ac_ext <<_ACEOF 4043/* end confdefs.h. */ 4044 4045int 4046main () 4047{ 4048 4049 ; 4050 return 0; 4051} 4052_ACEOF 4053rm -f conftest.$ac_objext 4054if { (ac_try="$ac_compile" 4055case "(($ac_try" in 4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4057 *) ac_try_echo=$ac_try;; 4058esac 4059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4060 (eval "$ac_compile") 2>conftest.er1 4061 ac_status=$? 4062 grep -v '^ *+' conftest.er1 >conftest.err 4063 rm -f conftest.er1 4064 cat conftest.err >&5 4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4066 (exit $ac_status); } && { 4067 test -z "$ac_c_werror_flag" || 4068 test ! -s conftest.err 4069 } && test -s conftest.$ac_objext; then 4070 tcl_cv_cc_pipe=yes 4071else 4072 echo "$as_me: failed program was:" >&5 4073sed 's/^/| /' conftest.$ac_ext >&5 4074 4075 tcl_cv_cc_pipe=no 4076fi 4077 4078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4079 CFLAGS=$hold_cflags 4080fi 4081{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4082echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4083 if test $tcl_cv_cc_pipe = yes; then 4084 CFLAGS="$CFLAGS -pipe" 4085 fi 4086 fi 4087 4088 #-------------------------------------------------------------------- 4089 # Common compiler flag setup 4090 #-------------------------------------------------------------------- 4091 4092 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4093echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4094if test "${ac_cv_c_bigendian+set}" = set; then 4095 echo $ECHO_N "(cached) $ECHO_C" >&6 4096else 4097 # See if sys/param.h defines the BYTE_ORDER macro. 4098cat >conftest.$ac_ext <<_ACEOF 4099/* confdefs.h. */ 4100_ACEOF 4101cat confdefs.h >>conftest.$ac_ext 4102cat >>conftest.$ac_ext <<_ACEOF 4103/* end confdefs.h. */ 4104#include <sys/types.h> 4105#include <sys/param.h> 4106 4107int 4108main () 4109{ 4110#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4111 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4112 bogus endian macros 4113#endif 4114 4115 ; 4116 return 0; 4117} 4118_ACEOF 4119rm -f conftest.$ac_objext 4120if { (ac_try="$ac_compile" 4121case "(($ac_try" in 4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4123 *) ac_try_echo=$ac_try;; 4124esac 4125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4126 (eval "$ac_compile") 2>conftest.er1 4127 ac_status=$? 4128 grep -v '^ *+' conftest.er1 >conftest.err 4129 rm -f conftest.er1 4130 cat conftest.err >&5 4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4132 (exit $ac_status); } && { 4133 test -z "$ac_c_werror_flag" || 4134 test ! -s conftest.err 4135 } && test -s conftest.$ac_objext; then 4136 # It does; now see whether it defined to BIG_ENDIAN or not. 4137cat >conftest.$ac_ext <<_ACEOF 4138/* confdefs.h. */ 4139_ACEOF 4140cat confdefs.h >>conftest.$ac_ext 4141cat >>conftest.$ac_ext <<_ACEOF 4142/* end confdefs.h. */ 4143#include <sys/types.h> 4144#include <sys/param.h> 4145 4146int 4147main () 4148{ 4149#if BYTE_ORDER != BIG_ENDIAN 4150 not big endian 4151#endif 4152 4153 ; 4154 return 0; 4155} 4156_ACEOF 4157rm -f conftest.$ac_objext 4158if { (ac_try="$ac_compile" 4159case "(($ac_try" in 4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4161 *) ac_try_echo=$ac_try;; 4162esac 4163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4164 (eval "$ac_compile") 2>conftest.er1 4165 ac_status=$? 4166 grep -v '^ *+' conftest.er1 >conftest.err 4167 rm -f conftest.er1 4168 cat conftest.err >&5 4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4170 (exit $ac_status); } && { 4171 test -z "$ac_c_werror_flag" || 4172 test ! -s conftest.err 4173 } && test -s conftest.$ac_objext; then 4174 ac_cv_c_bigendian=yes 4175else 4176 echo "$as_me: failed program was:" >&5 4177sed 's/^/| /' conftest.$ac_ext >&5 4178 4179 ac_cv_c_bigendian=no 4180fi 4181 4182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4183else 4184 echo "$as_me: failed program was:" >&5 4185sed 's/^/| /' conftest.$ac_ext >&5 4186 4187 # It does not; compile a test program. 4188if test "$cross_compiling" = yes; then 4189 # try to guess the endianness by grepping values into an object file 4190 ac_cv_c_bigendian=unknown 4191 cat >conftest.$ac_ext <<_ACEOF 4192/* confdefs.h. */ 4193_ACEOF 4194cat confdefs.h >>conftest.$ac_ext 4195cat >>conftest.$ac_ext <<_ACEOF 4196/* end confdefs.h. */ 4197short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4198short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4199void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4200short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4201short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4202void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4203int 4204main () 4205{ 4206 _ascii (); _ebcdic (); 4207 ; 4208 return 0; 4209} 4210_ACEOF 4211rm -f conftest.$ac_objext 4212if { (ac_try="$ac_compile" 4213case "(($ac_try" in 4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4215 *) ac_try_echo=$ac_try;; 4216esac 4217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4218 (eval "$ac_compile") 2>conftest.er1 4219 ac_status=$? 4220 grep -v '^ *+' conftest.er1 >conftest.err 4221 rm -f conftest.er1 4222 cat conftest.err >&5 4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4224 (exit $ac_status); } && { 4225 test -z "$ac_c_werror_flag" || 4226 test ! -s conftest.err 4227 } && test -s conftest.$ac_objext; then 4228 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4229 ac_cv_c_bigendian=yes 4230fi 4231if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4232 if test "$ac_cv_c_bigendian" = unknown; then 4233 ac_cv_c_bigendian=no 4234 else 4235 # finding both strings is unlikely to happen, but who knows? 4236 ac_cv_c_bigendian=unknown 4237 fi 4238fi 4239else 4240 echo "$as_me: failed program was:" >&5 4241sed 's/^/| /' conftest.$ac_ext >&5 4242 4243 4244fi 4245 4246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4247else 4248 cat >conftest.$ac_ext <<_ACEOF 4249/* confdefs.h. */ 4250_ACEOF 4251cat confdefs.h >>conftest.$ac_ext 4252cat >>conftest.$ac_ext <<_ACEOF 4253/* end confdefs.h. */ 4254$ac_includes_default 4255int 4256main () 4257{ 4258 4259 /* Are we little or big endian? From Harbison&Steele. */ 4260 union 4261 { 4262 long int l; 4263 char c[sizeof (long int)]; 4264 } u; 4265 u.l = 1; 4266 return u.c[sizeof (long int) - 1] == 1; 4267 4268 ; 4269 return 0; 4270} 4271_ACEOF 4272rm -f conftest$ac_exeext 4273if { (ac_try="$ac_link" 4274case "(($ac_try" in 4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4276 *) ac_try_echo=$ac_try;; 4277esac 4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4279 (eval "$ac_link") 2>&5 4280 ac_status=$? 4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4283 { (case "(($ac_try" in 4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4285 *) ac_try_echo=$ac_try;; 4286esac 4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4288 (eval "$ac_try") 2>&5 4289 ac_status=$? 4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4291 (exit $ac_status); }; }; then 4292 ac_cv_c_bigendian=no 4293else 4294 echo "$as_me: program exited with status $ac_status" >&5 4295echo "$as_me: failed program was:" >&5 4296sed 's/^/| /' conftest.$ac_ext >&5 4297 4298( exit $ac_status ) 4299ac_cv_c_bigendian=yes 4300fi 4301rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4302fi 4303 4304 4305fi 4306 4307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4308fi 4309{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4310echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4311case $ac_cv_c_bigendian in 4312 yes) 4313 4314cat >>confdefs.h <<\_ACEOF 4315#define WORDS_BIGENDIAN 1 4316_ACEOF 4317 ;; 4318 no) 4319 ;; 4320 *) 4321 { { echo "$as_me:$LINENO: error: unknown endianness 4322presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4323echo "$as_me: error: unknown endianness 4324presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4325 { (exit 1); exit 1; }; } ;; 4326esac 4327 4328 if test "${TEA_PLATFORM}" = "unix" ; then 4329 4330 #-------------------------------------------------------------------- 4331 # On a few very rare systems, all of the libm.a stuff is 4332 # already in libc.a. Set compiler flags accordingly. 4333 # Also, Linux requires the "ieee" library for math to work 4334 # right (and it must appear before "-lm"). 4335 #-------------------------------------------------------------------- 4336 4337 { echo "$as_me:$LINENO: checking for sin" >&5 4338echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4339if test "${ac_cv_func_sin+set}" = set; then 4340 echo $ECHO_N "(cached) $ECHO_C" >&6 4341else 4342 cat >conftest.$ac_ext <<_ACEOF 4343/* confdefs.h. */ 4344_ACEOF 4345cat confdefs.h >>conftest.$ac_ext 4346cat >>conftest.$ac_ext <<_ACEOF 4347/* end confdefs.h. */ 4348/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4349 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4350#define sin innocuous_sin 4351 4352/* System header to define __stub macros and hopefully few prototypes, 4353 which can conflict with char sin (); below. 4354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4355 <limits.h> exists even on freestanding compilers. */ 4356 4357#ifdef __STDC__ 4358# include <limits.h> 4359#else 4360# include <assert.h> 4361#endif 4362 4363#undef sin 4364 4365/* Override any GCC internal prototype to avoid an error. 4366 Use char because int might match the return type of a GCC 4367 builtin and then its argument prototype would still apply. */ 4368#ifdef __cplusplus 4369extern "C" 4370#endif 4371char sin (); 4372/* The GNU C library defines this for functions which it implements 4373 to always fail with ENOSYS. Some functions are actually named 4374 something starting with __ and the normal name is an alias. */ 4375#if defined __stub_sin || defined __stub___sin 4376choke me 4377#endif 4378 4379int 4380main () 4381{ 4382return sin (); 4383 ; 4384 return 0; 4385} 4386_ACEOF 4387rm -f conftest.$ac_objext conftest$ac_exeext 4388if { (ac_try="$ac_link" 4389case "(($ac_try" in 4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4391 *) ac_try_echo=$ac_try;; 4392esac 4393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4394 (eval "$ac_link") 2>conftest.er1 4395 ac_status=$? 4396 grep -v '^ *+' conftest.er1 >conftest.err 4397 rm -f conftest.er1 4398 cat conftest.err >&5 4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4400 (exit $ac_status); } && { 4401 test -z "$ac_c_werror_flag" || 4402 test ! -s conftest.err 4403 } && test -s conftest$ac_exeext && 4404 $as_test_x conftest$ac_exeext; then 4405 ac_cv_func_sin=yes 4406else 4407 echo "$as_me: failed program was:" >&5 4408sed 's/^/| /' conftest.$ac_ext >&5 4409 4410 ac_cv_func_sin=no 4411fi 4412 4413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4414 conftest$ac_exeext conftest.$ac_ext 4415fi 4416{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4417echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4418if test $ac_cv_func_sin = yes; then 4419 MATH_LIBS="" 4420else 4421 MATH_LIBS="-lm" 4422fi 4423 4424 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4425echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4426if test "${ac_cv_lib_ieee_main+set}" = set; then 4427 echo $ECHO_N "(cached) $ECHO_C" >&6 4428else 4429 ac_check_lib_save_LIBS=$LIBS 4430LIBS="-lieee $LIBS" 4431cat >conftest.$ac_ext <<_ACEOF 4432/* confdefs.h. */ 4433_ACEOF 4434cat confdefs.h >>conftest.$ac_ext 4435cat >>conftest.$ac_ext <<_ACEOF 4436/* end confdefs.h. */ 4437 4438 4439int 4440main () 4441{ 4442return main (); 4443 ; 4444 return 0; 4445} 4446_ACEOF 4447rm -f conftest.$ac_objext conftest$ac_exeext 4448if { (ac_try="$ac_link" 4449case "(($ac_try" in 4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4451 *) ac_try_echo=$ac_try;; 4452esac 4453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4454 (eval "$ac_link") 2>conftest.er1 4455 ac_status=$? 4456 grep -v '^ *+' conftest.er1 >conftest.err 4457 rm -f conftest.er1 4458 cat conftest.err >&5 4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4460 (exit $ac_status); } && { 4461 test -z "$ac_c_werror_flag" || 4462 test ! -s conftest.err 4463 } && test -s conftest$ac_exeext && 4464 $as_test_x conftest$ac_exeext; then 4465 ac_cv_lib_ieee_main=yes 4466else 4467 echo "$as_me: failed program was:" >&5 4468sed 's/^/| /' conftest.$ac_ext >&5 4469 4470 ac_cv_lib_ieee_main=no 4471fi 4472 4473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4474 conftest$ac_exeext conftest.$ac_ext 4475LIBS=$ac_check_lib_save_LIBS 4476fi 4477{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4478echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4479if test $ac_cv_lib_ieee_main = yes; then 4480 MATH_LIBS="-lieee $MATH_LIBS" 4481fi 4482 4483 4484 #-------------------------------------------------------------------- 4485 # Interactive UNIX requires -linet instead of -lsocket, plus it 4486 # needs net/errno.h to define the socket-related error codes. 4487 #-------------------------------------------------------------------- 4488 4489 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4490echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4491if test "${ac_cv_lib_inet_main+set}" = set; then 4492 echo $ECHO_N "(cached) $ECHO_C" >&6 4493else 4494 ac_check_lib_save_LIBS=$LIBS 4495LIBS="-linet $LIBS" 4496cat >conftest.$ac_ext <<_ACEOF 4497/* confdefs.h. */ 4498_ACEOF 4499cat confdefs.h >>conftest.$ac_ext 4500cat >>conftest.$ac_ext <<_ACEOF 4501/* end confdefs.h. */ 4502 4503 4504int 4505main () 4506{ 4507return main (); 4508 ; 4509 return 0; 4510} 4511_ACEOF 4512rm -f conftest.$ac_objext conftest$ac_exeext 4513if { (ac_try="$ac_link" 4514case "(($ac_try" in 4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4516 *) ac_try_echo=$ac_try;; 4517esac 4518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4519 (eval "$ac_link") 2>conftest.er1 4520 ac_status=$? 4521 grep -v '^ *+' conftest.er1 >conftest.err 4522 rm -f conftest.er1 4523 cat conftest.err >&5 4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4525 (exit $ac_status); } && { 4526 test -z "$ac_c_werror_flag" || 4527 test ! -s conftest.err 4528 } && test -s conftest$ac_exeext && 4529 $as_test_x conftest$ac_exeext; then 4530 ac_cv_lib_inet_main=yes 4531else 4532 echo "$as_me: failed program was:" >&5 4533sed 's/^/| /' conftest.$ac_ext >&5 4534 4535 ac_cv_lib_inet_main=no 4536fi 4537 4538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4539 conftest$ac_exeext conftest.$ac_ext 4540LIBS=$ac_check_lib_save_LIBS 4541fi 4542{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4543echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4544if test $ac_cv_lib_inet_main = yes; then 4545 LIBS="$LIBS -linet" 4546fi 4547 4548 if test "${ac_cv_header_net_errno_h+set}" = set; then 4549 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4550echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4551if test "${ac_cv_header_net_errno_h+set}" = set; then 4552 echo $ECHO_N "(cached) $ECHO_C" >&6 4553fi 4554{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4555echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4556else 4557 # Is the header compilable? 4558{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4559echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4560cat >conftest.$ac_ext <<_ACEOF 4561/* confdefs.h. */ 4562_ACEOF 4563cat confdefs.h >>conftest.$ac_ext 4564cat >>conftest.$ac_ext <<_ACEOF 4565/* end confdefs.h. */ 4566$ac_includes_default 4567#include <net/errno.h> 4568_ACEOF 4569rm -f conftest.$ac_objext 4570if { (ac_try="$ac_compile" 4571case "(($ac_try" in 4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4573 *) ac_try_echo=$ac_try;; 4574esac 4575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4576 (eval "$ac_compile") 2>conftest.er1 4577 ac_status=$? 4578 grep -v '^ *+' conftest.er1 >conftest.err 4579 rm -f conftest.er1 4580 cat conftest.err >&5 4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4582 (exit $ac_status); } && { 4583 test -z "$ac_c_werror_flag" || 4584 test ! -s conftest.err 4585 } && test -s conftest.$ac_objext; then 4586 ac_header_compiler=yes 4587else 4588 echo "$as_me: failed program was:" >&5 4589sed 's/^/| /' conftest.$ac_ext >&5 4590 4591 ac_header_compiler=no 4592fi 4593 4594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4595{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4596echo "${ECHO_T}$ac_header_compiler" >&6; } 4597 4598# Is the header present? 4599{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4600echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4601cat >conftest.$ac_ext <<_ACEOF 4602/* confdefs.h. */ 4603_ACEOF 4604cat confdefs.h >>conftest.$ac_ext 4605cat >>conftest.$ac_ext <<_ACEOF 4606/* end confdefs.h. */ 4607#include <net/errno.h> 4608_ACEOF 4609if { (ac_try="$ac_cpp conftest.$ac_ext" 4610case "(($ac_try" in 4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4612 *) ac_try_echo=$ac_try;; 4613esac 4614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4616 ac_status=$? 4617 grep -v '^ *+' conftest.er1 >conftest.err 4618 rm -f conftest.er1 4619 cat conftest.err >&5 4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4621 (exit $ac_status); } >/dev/null && { 4622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4623 test ! -s conftest.err 4624 }; then 4625 ac_header_preproc=yes 4626else 4627 echo "$as_me: failed program was:" >&5 4628sed 's/^/| /' conftest.$ac_ext >&5 4629 4630 ac_header_preproc=no 4631fi 4632 4633rm -f conftest.err conftest.$ac_ext 4634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4635echo "${ECHO_T}$ac_header_preproc" >&6; } 4636 4637# So? What about this header? 4638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4639 yes:no: ) 4640 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4641echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4642 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4643echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4644 ac_header_preproc=yes 4645 ;; 4646 no:yes:* ) 4647 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4648echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4649 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4650echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4651 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4652echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4653 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4654echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4655 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4656echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4657 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4658echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4659 4660 ;; 4661esac 4662{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4663echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4664if test "${ac_cv_header_net_errno_h+set}" = set; then 4665 echo $ECHO_N "(cached) $ECHO_C" >&6 4666else 4667 ac_cv_header_net_errno_h=$ac_header_preproc 4668fi 4669{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4670echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4671 4672fi 4673if test $ac_cv_header_net_errno_h = yes; then 4674 4675 4676cat >>confdefs.h <<\_ACEOF 4677#define HAVE_NET_ERRNO_H 1 4678_ACEOF 4679 4680fi 4681 4682 4683 4684 #-------------------------------------------------------------------- 4685 # Check for the existence of the -lsocket and -lnsl libraries. 4686 # The order here is important, so that they end up in the right 4687 # order in the command line generated by make. Here are some 4688 # special considerations: 4689 # 1. Use "connect" and "accept" to check for -lsocket, and 4690 # "gethostbyname" to check for -lnsl. 4691 # 2. Use each function name only once: can't redo a check because 4692 # autoconf caches the results of the last check and won't redo it. 4693 # 3. Use -lnsl and -lsocket only if they supply procedures that 4694 # aren't already present in the normal libraries. This is because 4695 # IRIX 5.2 has libraries, but they aren't needed and they're 4696 # bogus: they goof up name resolution if used. 4697 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4698 # To get around this problem, check for both libraries together 4699 # if -lsocket doesn't work by itself. 4700 #-------------------------------------------------------------------- 4701 4702 tcl_checkBoth=0 4703 { echo "$as_me:$LINENO: checking for connect" >&5 4704echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4705if test "${ac_cv_func_connect+set}" = set; then 4706 echo $ECHO_N "(cached) $ECHO_C" >&6 4707else 4708 cat >conftest.$ac_ext <<_ACEOF 4709/* confdefs.h. */ 4710_ACEOF 4711cat confdefs.h >>conftest.$ac_ext 4712cat >>conftest.$ac_ext <<_ACEOF 4713/* end confdefs.h. */ 4714/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4715 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4716#define connect innocuous_connect 4717 4718/* System header to define __stub macros and hopefully few prototypes, 4719 which can conflict with char connect (); below. 4720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4721 <limits.h> exists even on freestanding compilers. */ 4722 4723#ifdef __STDC__ 4724# include <limits.h> 4725#else 4726# include <assert.h> 4727#endif 4728 4729#undef connect 4730 4731/* Override any GCC internal prototype to avoid an error. 4732 Use char because int might match the return type of a GCC 4733 builtin and then its argument prototype would still apply. */ 4734#ifdef __cplusplus 4735extern "C" 4736#endif 4737char connect (); 4738/* The GNU C library defines this for functions which it implements 4739 to always fail with ENOSYS. Some functions are actually named 4740 something starting with __ and the normal name is an alias. */ 4741#if defined __stub_connect || defined __stub___connect 4742choke me 4743#endif 4744 4745int 4746main () 4747{ 4748return connect (); 4749 ; 4750 return 0; 4751} 4752_ACEOF 4753rm -f conftest.$ac_objext conftest$ac_exeext 4754if { (ac_try="$ac_link" 4755case "(($ac_try" in 4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4757 *) ac_try_echo=$ac_try;; 4758esac 4759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4760 (eval "$ac_link") 2>conftest.er1 4761 ac_status=$? 4762 grep -v '^ *+' conftest.er1 >conftest.err 4763 rm -f conftest.er1 4764 cat conftest.err >&5 4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4766 (exit $ac_status); } && { 4767 test -z "$ac_c_werror_flag" || 4768 test ! -s conftest.err 4769 } && test -s conftest$ac_exeext && 4770 $as_test_x conftest$ac_exeext; then 4771 ac_cv_func_connect=yes 4772else 4773 echo "$as_me: failed program was:" >&5 4774sed 's/^/| /' conftest.$ac_ext >&5 4775 4776 ac_cv_func_connect=no 4777fi 4778 4779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4780 conftest$ac_exeext conftest.$ac_ext 4781fi 4782{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4783echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4784if test $ac_cv_func_connect = yes; then 4785 tcl_checkSocket=0 4786else 4787 tcl_checkSocket=1 4788fi 4789 4790 if test "$tcl_checkSocket" = 1; then 4791 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4792echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4793if test "${ac_cv_func_setsockopt+set}" = set; then 4794 echo $ECHO_N "(cached) $ECHO_C" >&6 4795else 4796 cat >conftest.$ac_ext <<_ACEOF 4797/* confdefs.h. */ 4798_ACEOF 4799cat confdefs.h >>conftest.$ac_ext 4800cat >>conftest.$ac_ext <<_ACEOF 4801/* end confdefs.h. */ 4802/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4803 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4804#define setsockopt innocuous_setsockopt 4805 4806/* System header to define __stub macros and hopefully few prototypes, 4807 which can conflict with char setsockopt (); below. 4808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4809 <limits.h> exists even on freestanding compilers. */ 4810 4811#ifdef __STDC__ 4812# include <limits.h> 4813#else 4814# include <assert.h> 4815#endif 4816 4817#undef setsockopt 4818 4819/* Override any GCC internal prototype to avoid an error. 4820 Use char because int might match the return type of a GCC 4821 builtin and then its argument prototype would still apply. */ 4822#ifdef __cplusplus 4823extern "C" 4824#endif 4825char setsockopt (); 4826/* The GNU C library defines this for functions which it implements 4827 to always fail with ENOSYS. Some functions are actually named 4828 something starting with __ and the normal name is an alias. */ 4829#if defined __stub_setsockopt || defined __stub___setsockopt 4830choke me 4831#endif 4832 4833int 4834main () 4835{ 4836return setsockopt (); 4837 ; 4838 return 0; 4839} 4840_ACEOF 4841rm -f conftest.$ac_objext conftest$ac_exeext 4842if { (ac_try="$ac_link" 4843case "(($ac_try" in 4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4845 *) ac_try_echo=$ac_try;; 4846esac 4847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4848 (eval "$ac_link") 2>conftest.er1 4849 ac_status=$? 4850 grep -v '^ *+' conftest.er1 >conftest.err 4851 rm -f conftest.er1 4852 cat conftest.err >&5 4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4854 (exit $ac_status); } && { 4855 test -z "$ac_c_werror_flag" || 4856 test ! -s conftest.err 4857 } && test -s conftest$ac_exeext && 4858 $as_test_x conftest$ac_exeext; then 4859 ac_cv_func_setsockopt=yes 4860else 4861 echo "$as_me: failed program was:" >&5 4862sed 's/^/| /' conftest.$ac_ext >&5 4863 4864 ac_cv_func_setsockopt=no 4865fi 4866 4867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4868 conftest$ac_exeext conftest.$ac_ext 4869fi 4870{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4871echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 4872if test $ac_cv_func_setsockopt = yes; then 4873 : 4874else 4875 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4876echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 4877if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4878 echo $ECHO_N "(cached) $ECHO_C" >&6 4879else 4880 ac_check_lib_save_LIBS=$LIBS 4881LIBS="-lsocket $LIBS" 4882cat >conftest.$ac_ext <<_ACEOF 4883/* confdefs.h. */ 4884_ACEOF 4885cat confdefs.h >>conftest.$ac_ext 4886cat >>conftest.$ac_ext <<_ACEOF 4887/* end confdefs.h. */ 4888 4889/* Override any GCC internal prototype to avoid an error. 4890 Use char because int might match the return type of a GCC 4891 builtin and then its argument prototype would still apply. */ 4892#ifdef __cplusplus 4893extern "C" 4894#endif 4895char setsockopt (); 4896int 4897main () 4898{ 4899return setsockopt (); 4900 ; 4901 return 0; 4902} 4903_ACEOF 4904rm -f conftest.$ac_objext conftest$ac_exeext 4905if { (ac_try="$ac_link" 4906case "(($ac_try" in 4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4908 *) ac_try_echo=$ac_try;; 4909esac 4910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4911 (eval "$ac_link") 2>conftest.er1 4912 ac_status=$? 4913 grep -v '^ *+' conftest.er1 >conftest.err 4914 rm -f conftest.er1 4915 cat conftest.err >&5 4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4917 (exit $ac_status); } && { 4918 test -z "$ac_c_werror_flag" || 4919 test ! -s conftest.err 4920 } && test -s conftest$ac_exeext && 4921 $as_test_x conftest$ac_exeext; then 4922 ac_cv_lib_socket_setsockopt=yes 4923else 4924 echo "$as_me: failed program was:" >&5 4925sed 's/^/| /' conftest.$ac_ext >&5 4926 4927 ac_cv_lib_socket_setsockopt=no 4928fi 4929 4930rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4931 conftest$ac_exeext conftest.$ac_ext 4932LIBS=$ac_check_lib_save_LIBS 4933fi 4934{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4935echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 4936if test $ac_cv_lib_socket_setsockopt = yes; then 4937 LIBS="$LIBS -lsocket" 4938else 4939 tcl_checkBoth=1 4940fi 4941 4942fi 4943 4944 fi 4945 if test "$tcl_checkBoth" = 1; then 4946 tk_oldLibs=$LIBS 4947 LIBS="$LIBS -lsocket -lnsl" 4948 { echo "$as_me:$LINENO: checking for accept" >&5 4949echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 4950if test "${ac_cv_func_accept+set}" = set; then 4951 echo $ECHO_N "(cached) $ECHO_C" >&6 4952else 4953 cat >conftest.$ac_ext <<_ACEOF 4954/* confdefs.h. */ 4955_ACEOF 4956cat confdefs.h >>conftest.$ac_ext 4957cat >>conftest.$ac_ext <<_ACEOF 4958/* end confdefs.h. */ 4959/* Define accept to an innocuous variant, in case <limits.h> declares accept. 4960 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4961#define accept innocuous_accept 4962 4963/* System header to define __stub macros and hopefully few prototypes, 4964 which can conflict with char accept (); below. 4965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4966 <limits.h> exists even on freestanding compilers. */ 4967 4968#ifdef __STDC__ 4969# include <limits.h> 4970#else 4971# include <assert.h> 4972#endif 4973 4974#undef accept 4975 4976/* Override any GCC internal prototype to avoid an error. 4977 Use char because int might match the return type of a GCC 4978 builtin and then its argument prototype would still apply. */ 4979#ifdef __cplusplus 4980extern "C" 4981#endif 4982char accept (); 4983/* The GNU C library defines this for functions which it implements 4984 to always fail with ENOSYS. Some functions are actually named 4985 something starting with __ and the normal name is an alias. */ 4986#if defined __stub_accept || defined __stub___accept 4987choke me 4988#endif 4989 4990int 4991main () 4992{ 4993return accept (); 4994 ; 4995 return 0; 4996} 4997_ACEOF 4998rm -f conftest.$ac_objext conftest$ac_exeext 4999if { (ac_try="$ac_link" 5000case "(($ac_try" in 5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5002 *) ac_try_echo=$ac_try;; 5003esac 5004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5005 (eval "$ac_link") 2>conftest.er1 5006 ac_status=$? 5007 grep -v '^ *+' conftest.er1 >conftest.err 5008 rm -f conftest.er1 5009 cat conftest.err >&5 5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5011 (exit $ac_status); } && { 5012 test -z "$ac_c_werror_flag" || 5013 test ! -s conftest.err 5014 } && test -s conftest$ac_exeext && 5015 $as_test_x conftest$ac_exeext; then 5016 ac_cv_func_accept=yes 5017else 5018 echo "$as_me: failed program was:" >&5 5019sed 's/^/| /' conftest.$ac_ext >&5 5020 5021 ac_cv_func_accept=no 5022fi 5023 5024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5025 conftest$ac_exeext conftest.$ac_ext 5026fi 5027{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5028echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5029if test $ac_cv_func_accept = yes; then 5030 tcl_checkNsl=0 5031else 5032 LIBS=$tk_oldLibs 5033fi 5034 5035 fi 5036 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5037echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5038if test "${ac_cv_func_gethostbyname+set}" = set; then 5039 echo $ECHO_N "(cached) $ECHO_C" >&6 5040else 5041 cat >conftest.$ac_ext <<_ACEOF 5042/* confdefs.h. */ 5043_ACEOF 5044cat confdefs.h >>conftest.$ac_ext 5045cat >>conftest.$ac_ext <<_ACEOF 5046/* end confdefs.h. */ 5047/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5048 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5049#define gethostbyname innocuous_gethostbyname 5050 5051/* System header to define __stub macros and hopefully few prototypes, 5052 which can conflict with char gethostbyname (); below. 5053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5054 <limits.h> exists even on freestanding compilers. */ 5055 5056#ifdef __STDC__ 5057# include <limits.h> 5058#else 5059# include <assert.h> 5060#endif 5061 5062#undef gethostbyname 5063 5064/* Override any GCC internal prototype to avoid an error. 5065 Use char because int might match the return type of a GCC 5066 builtin and then its argument prototype would still apply. */ 5067#ifdef __cplusplus 5068extern "C" 5069#endif 5070char gethostbyname (); 5071/* The GNU C library defines this for functions which it implements 5072 to always fail with ENOSYS. Some functions are actually named 5073 something starting with __ and the normal name is an alias. */ 5074#if defined __stub_gethostbyname || defined __stub___gethostbyname 5075choke me 5076#endif 5077 5078int 5079main () 5080{ 5081return gethostbyname (); 5082 ; 5083 return 0; 5084} 5085_ACEOF 5086rm -f conftest.$ac_objext conftest$ac_exeext 5087if { (ac_try="$ac_link" 5088case "(($ac_try" in 5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5090 *) ac_try_echo=$ac_try;; 5091esac 5092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5093 (eval "$ac_link") 2>conftest.er1 5094 ac_status=$? 5095 grep -v '^ *+' conftest.er1 >conftest.err 5096 rm -f conftest.er1 5097 cat conftest.err >&5 5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5099 (exit $ac_status); } && { 5100 test -z "$ac_c_werror_flag" || 5101 test ! -s conftest.err 5102 } && test -s conftest$ac_exeext && 5103 $as_test_x conftest$ac_exeext; then 5104 ac_cv_func_gethostbyname=yes 5105else 5106 echo "$as_me: failed program was:" >&5 5107sed 's/^/| /' conftest.$ac_ext >&5 5108 5109 ac_cv_func_gethostbyname=no 5110fi 5111 5112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5113 conftest$ac_exeext conftest.$ac_ext 5114fi 5115{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5116echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5117if test $ac_cv_func_gethostbyname = yes; then 5118 : 5119else 5120 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5121echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5122if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5123 echo $ECHO_N "(cached) $ECHO_C" >&6 5124else 5125 ac_check_lib_save_LIBS=$LIBS 5126LIBS="-lnsl $LIBS" 5127cat >conftest.$ac_ext <<_ACEOF 5128/* confdefs.h. */ 5129_ACEOF 5130cat confdefs.h >>conftest.$ac_ext 5131cat >>conftest.$ac_ext <<_ACEOF 5132/* end confdefs.h. */ 5133 5134/* Override any GCC internal prototype to avoid an error. 5135 Use char because int might match the return type of a GCC 5136 builtin and then its argument prototype would still apply. */ 5137#ifdef __cplusplus 5138extern "C" 5139#endif 5140char gethostbyname (); 5141int 5142main () 5143{ 5144return gethostbyname (); 5145 ; 5146 return 0; 5147} 5148_ACEOF 5149rm -f conftest.$ac_objext conftest$ac_exeext 5150if { (ac_try="$ac_link" 5151case "(($ac_try" in 5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5153 *) ac_try_echo=$ac_try;; 5154esac 5155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5156 (eval "$ac_link") 2>conftest.er1 5157 ac_status=$? 5158 grep -v '^ *+' conftest.er1 >conftest.err 5159 rm -f conftest.er1 5160 cat conftest.err >&5 5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5162 (exit $ac_status); } && { 5163 test -z "$ac_c_werror_flag" || 5164 test ! -s conftest.err 5165 } && test -s conftest$ac_exeext && 5166 $as_test_x conftest$ac_exeext; then 5167 ac_cv_lib_nsl_gethostbyname=yes 5168else 5169 echo "$as_me: failed program was:" >&5 5170sed 's/^/| /' conftest.$ac_ext >&5 5171 5172 ac_cv_lib_nsl_gethostbyname=no 5173fi 5174 5175rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5176 conftest$ac_exeext conftest.$ac_ext 5177LIBS=$ac_check_lib_save_LIBS 5178fi 5179{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5180echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5181if test $ac_cv_lib_nsl_gethostbyname = yes; then 5182 LIBS="$LIBS -lnsl" 5183fi 5184 5185fi 5186 5187 5188 # TEA specific: Don't perform the eval of the libraries here because 5189 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5190 5191 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5192 5193 5194 5195 5196 { echo "$as_me:$LINENO: checking dirent.h" >&5 5197echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5198if test "${tcl_cv_dirent_h+set}" = set; then 5199 echo $ECHO_N "(cached) $ECHO_C" >&6 5200else 5201 5202 cat >conftest.$ac_ext <<_ACEOF 5203/* confdefs.h. */ 5204_ACEOF 5205cat confdefs.h >>conftest.$ac_ext 5206cat >>conftest.$ac_ext <<_ACEOF 5207/* end confdefs.h. */ 5208#include <sys/types.h> 5209#include <dirent.h> 5210int 5211main () 5212{ 5213 5214#ifndef _POSIX_SOURCE 5215# ifdef __Lynx__ 5216 /* 5217 * Generate compilation error to make the test fail: Lynx headers 5218 * are only valid if really in the POSIX environment. 5219 */ 5220 5221 missing_procedure(); 5222# endif 5223#endif 5224DIR *d; 5225struct dirent *entryPtr; 5226char *p; 5227d = opendir("foobar"); 5228entryPtr = readdir(d); 5229p = entryPtr->d_name; 5230closedir(d); 5231 5232 ; 5233 return 0; 5234} 5235_ACEOF 5236rm -f conftest.$ac_objext conftest$ac_exeext 5237if { (ac_try="$ac_link" 5238case "(($ac_try" in 5239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5240 *) ac_try_echo=$ac_try;; 5241esac 5242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5243 (eval "$ac_link") 2>conftest.er1 5244 ac_status=$? 5245 grep -v '^ *+' conftest.er1 >conftest.err 5246 rm -f conftest.er1 5247 cat conftest.err >&5 5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5249 (exit $ac_status); } && { 5250 test -z "$ac_c_werror_flag" || 5251 test ! -s conftest.err 5252 } && test -s conftest$ac_exeext && 5253 $as_test_x conftest$ac_exeext; then 5254 tcl_cv_dirent_h=yes 5255else 5256 echo "$as_me: failed program was:" >&5 5257sed 's/^/| /' conftest.$ac_ext >&5 5258 5259 tcl_cv_dirent_h=no 5260fi 5261 5262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5263 conftest$ac_exeext conftest.$ac_ext 5264fi 5265{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5266echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5267 5268 if test $tcl_cv_dirent_h = no; then 5269 5270cat >>confdefs.h <<\_ACEOF 5271#define NO_DIRENT_H 1 5272_ACEOF 5273 5274 fi 5275 5276 # TEA specific: 5277 if test "${ac_cv_header_errno_h+set}" = set; then 5278 { echo "$as_me:$LINENO: checking for errno.h" >&5 5279echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5280if test "${ac_cv_header_errno_h+set}" = set; then 5281 echo $ECHO_N "(cached) $ECHO_C" >&6 5282fi 5283{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5284echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5285else 5286 # Is the header compilable? 5287{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5288echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5289cat >conftest.$ac_ext <<_ACEOF 5290/* confdefs.h. */ 5291_ACEOF 5292cat confdefs.h >>conftest.$ac_ext 5293cat >>conftest.$ac_ext <<_ACEOF 5294/* end confdefs.h. */ 5295$ac_includes_default 5296#include <errno.h> 5297_ACEOF 5298rm -f conftest.$ac_objext 5299if { (ac_try="$ac_compile" 5300case "(($ac_try" in 5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5302 *) ac_try_echo=$ac_try;; 5303esac 5304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5305 (eval "$ac_compile") 2>conftest.er1 5306 ac_status=$? 5307 grep -v '^ *+' conftest.er1 >conftest.err 5308 rm -f conftest.er1 5309 cat conftest.err >&5 5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5311 (exit $ac_status); } && { 5312 test -z "$ac_c_werror_flag" || 5313 test ! -s conftest.err 5314 } && test -s conftest.$ac_objext; then 5315 ac_header_compiler=yes 5316else 5317 echo "$as_me: failed program was:" >&5 5318sed 's/^/| /' conftest.$ac_ext >&5 5319 5320 ac_header_compiler=no 5321fi 5322 5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5324{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5325echo "${ECHO_T}$ac_header_compiler" >&6; } 5326 5327# Is the header present? 5328{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5329echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5330cat >conftest.$ac_ext <<_ACEOF 5331/* confdefs.h. */ 5332_ACEOF 5333cat confdefs.h >>conftest.$ac_ext 5334cat >>conftest.$ac_ext <<_ACEOF 5335/* end confdefs.h. */ 5336#include <errno.h> 5337_ACEOF 5338if { (ac_try="$ac_cpp conftest.$ac_ext" 5339case "(($ac_try" in 5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5341 *) ac_try_echo=$ac_try;; 5342esac 5343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5345 ac_status=$? 5346 grep -v '^ *+' conftest.er1 >conftest.err 5347 rm -f conftest.er1 5348 cat conftest.err >&5 5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5350 (exit $ac_status); } >/dev/null && { 5351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5352 test ! -s conftest.err 5353 }; then 5354 ac_header_preproc=yes 5355else 5356 echo "$as_me: failed program was:" >&5 5357sed 's/^/| /' conftest.$ac_ext >&5 5358 5359 ac_header_preproc=no 5360fi 5361 5362rm -f conftest.err conftest.$ac_ext 5363{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5364echo "${ECHO_T}$ac_header_preproc" >&6; } 5365 5366# So? What about this header? 5367case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5368 yes:no: ) 5369 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5370echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5371 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5372echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5373 ac_header_preproc=yes 5374 ;; 5375 no:yes:* ) 5376 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5377echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5378 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5379echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5380 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5381echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5382 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5383echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5384 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5385echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5386 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5387echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5388 5389 ;; 5390esac 5391{ echo "$as_me:$LINENO: checking for errno.h" >&5 5392echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5393if test "${ac_cv_header_errno_h+set}" = set; then 5394 echo $ECHO_N "(cached) $ECHO_C" >&6 5395else 5396 ac_cv_header_errno_h=$ac_header_preproc 5397fi 5398{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5399echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5400 5401fi 5402if test $ac_cv_header_errno_h = yes; then 5403 : 5404else 5405 5406cat >>confdefs.h <<\_ACEOF 5407#define NO_ERRNO_H 1 5408_ACEOF 5409 5410fi 5411 5412 5413 if test "${ac_cv_header_float_h+set}" = set; then 5414 { echo "$as_me:$LINENO: checking for float.h" >&5 5415echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5416if test "${ac_cv_header_float_h+set}" = set; then 5417 echo $ECHO_N "(cached) $ECHO_C" >&6 5418fi 5419{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5420echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5421else 5422 # Is the header compilable? 5423{ echo "$as_me:$LINENO: checking float.h usability" >&5 5424echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5425cat >conftest.$ac_ext <<_ACEOF 5426/* confdefs.h. */ 5427_ACEOF 5428cat confdefs.h >>conftest.$ac_ext 5429cat >>conftest.$ac_ext <<_ACEOF 5430/* end confdefs.h. */ 5431$ac_includes_default 5432#include <float.h> 5433_ACEOF 5434rm -f conftest.$ac_objext 5435if { (ac_try="$ac_compile" 5436case "(($ac_try" in 5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5438 *) ac_try_echo=$ac_try;; 5439esac 5440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5441 (eval "$ac_compile") 2>conftest.er1 5442 ac_status=$? 5443 grep -v '^ *+' conftest.er1 >conftest.err 5444 rm -f conftest.er1 5445 cat conftest.err >&5 5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5447 (exit $ac_status); } && { 5448 test -z "$ac_c_werror_flag" || 5449 test ! -s conftest.err 5450 } && test -s conftest.$ac_objext; then 5451 ac_header_compiler=yes 5452else 5453 echo "$as_me: failed program was:" >&5 5454sed 's/^/| /' conftest.$ac_ext >&5 5455 5456 ac_header_compiler=no 5457fi 5458 5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5460{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5461echo "${ECHO_T}$ac_header_compiler" >&6; } 5462 5463# Is the header present? 5464{ echo "$as_me:$LINENO: checking float.h presence" >&5 5465echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5466cat >conftest.$ac_ext <<_ACEOF 5467/* confdefs.h. */ 5468_ACEOF 5469cat confdefs.h >>conftest.$ac_ext 5470cat >>conftest.$ac_ext <<_ACEOF 5471/* end confdefs.h. */ 5472#include <float.h> 5473_ACEOF 5474if { (ac_try="$ac_cpp conftest.$ac_ext" 5475case "(($ac_try" in 5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5477 *) ac_try_echo=$ac_try;; 5478esac 5479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5481 ac_status=$? 5482 grep -v '^ *+' conftest.er1 >conftest.err 5483 rm -f conftest.er1 5484 cat conftest.err >&5 5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5486 (exit $ac_status); } >/dev/null && { 5487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5488 test ! -s conftest.err 5489 }; then 5490 ac_header_preproc=yes 5491else 5492 echo "$as_me: failed program was:" >&5 5493sed 's/^/| /' conftest.$ac_ext >&5 5494 5495 ac_header_preproc=no 5496fi 5497 5498rm -f conftest.err conftest.$ac_ext 5499{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5500echo "${ECHO_T}$ac_header_preproc" >&6; } 5501 5502# So? What about this header? 5503case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5504 yes:no: ) 5505 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5506echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5507 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5508echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5509 ac_header_preproc=yes 5510 ;; 5511 no:yes:* ) 5512 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5513echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5514 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5515echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5516 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5517echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5518 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5519echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5520 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5521echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5522 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5523echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5524 5525 ;; 5526esac 5527{ echo "$as_me:$LINENO: checking for float.h" >&5 5528echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5529if test "${ac_cv_header_float_h+set}" = set; then 5530 echo $ECHO_N "(cached) $ECHO_C" >&6 5531else 5532 ac_cv_header_float_h=$ac_header_preproc 5533fi 5534{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5535echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5536 5537fi 5538if test $ac_cv_header_float_h = yes; then 5539 : 5540else 5541 5542cat >>confdefs.h <<\_ACEOF 5543#define NO_FLOAT_H 1 5544_ACEOF 5545 5546fi 5547 5548 5549 if test "${ac_cv_header_values_h+set}" = set; then 5550 { echo "$as_me:$LINENO: checking for values.h" >&5 5551echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5552if test "${ac_cv_header_values_h+set}" = set; then 5553 echo $ECHO_N "(cached) $ECHO_C" >&6 5554fi 5555{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5556echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5557else 5558 # Is the header compilable? 5559{ echo "$as_me:$LINENO: checking values.h usability" >&5 5560echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5561cat >conftest.$ac_ext <<_ACEOF 5562/* confdefs.h. */ 5563_ACEOF 5564cat confdefs.h >>conftest.$ac_ext 5565cat >>conftest.$ac_ext <<_ACEOF 5566/* end confdefs.h. */ 5567$ac_includes_default 5568#include <values.h> 5569_ACEOF 5570rm -f conftest.$ac_objext 5571if { (ac_try="$ac_compile" 5572case "(($ac_try" in 5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5574 *) ac_try_echo=$ac_try;; 5575esac 5576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5577 (eval "$ac_compile") 2>conftest.er1 5578 ac_status=$? 5579 grep -v '^ *+' conftest.er1 >conftest.err 5580 rm -f conftest.er1 5581 cat conftest.err >&5 5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5583 (exit $ac_status); } && { 5584 test -z "$ac_c_werror_flag" || 5585 test ! -s conftest.err 5586 } && test -s conftest.$ac_objext; then 5587 ac_header_compiler=yes 5588else 5589 echo "$as_me: failed program was:" >&5 5590sed 's/^/| /' conftest.$ac_ext >&5 5591 5592 ac_header_compiler=no 5593fi 5594 5595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5596{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5597echo "${ECHO_T}$ac_header_compiler" >&6; } 5598 5599# Is the header present? 5600{ echo "$as_me:$LINENO: checking values.h presence" >&5 5601echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5602cat >conftest.$ac_ext <<_ACEOF 5603/* confdefs.h. */ 5604_ACEOF 5605cat confdefs.h >>conftest.$ac_ext 5606cat >>conftest.$ac_ext <<_ACEOF 5607/* end confdefs.h. */ 5608#include <values.h> 5609_ACEOF 5610if { (ac_try="$ac_cpp conftest.$ac_ext" 5611case "(($ac_try" in 5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5613 *) ac_try_echo=$ac_try;; 5614esac 5615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5617 ac_status=$? 5618 grep -v '^ *+' conftest.er1 >conftest.err 5619 rm -f conftest.er1 5620 cat conftest.err >&5 5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5622 (exit $ac_status); } >/dev/null && { 5623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5624 test ! -s conftest.err 5625 }; then 5626 ac_header_preproc=yes 5627else 5628 echo "$as_me: failed program was:" >&5 5629sed 's/^/| /' conftest.$ac_ext >&5 5630 5631 ac_header_preproc=no 5632fi 5633 5634rm -f conftest.err conftest.$ac_ext 5635{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5636echo "${ECHO_T}$ac_header_preproc" >&6; } 5637 5638# So? What about this header? 5639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5640 yes:no: ) 5641 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5642echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5643 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5644echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5645 ac_header_preproc=yes 5646 ;; 5647 no:yes:* ) 5648 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5649echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5650 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5651echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5652 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5653echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5654 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5655echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5656 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5657echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5658 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5659echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5660 5661 ;; 5662esac 5663{ echo "$as_me:$LINENO: checking for values.h" >&5 5664echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5665if test "${ac_cv_header_values_h+set}" = set; then 5666 echo $ECHO_N "(cached) $ECHO_C" >&6 5667else 5668 ac_cv_header_values_h=$ac_header_preproc 5669fi 5670{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5671echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5672 5673fi 5674if test $ac_cv_header_values_h = yes; then 5675 : 5676else 5677 5678cat >>confdefs.h <<\_ACEOF 5679#define NO_VALUES_H 1 5680_ACEOF 5681 5682fi 5683 5684 5685 if test "${ac_cv_header_limits_h+set}" = set; then 5686 { echo "$as_me:$LINENO: checking for limits.h" >&5 5687echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5688if test "${ac_cv_header_limits_h+set}" = set; then 5689 echo $ECHO_N "(cached) $ECHO_C" >&6 5690fi 5691{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5692echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5693else 5694 # Is the header compilable? 5695{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5696echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5697cat >conftest.$ac_ext <<_ACEOF 5698/* confdefs.h. */ 5699_ACEOF 5700cat confdefs.h >>conftest.$ac_ext 5701cat >>conftest.$ac_ext <<_ACEOF 5702/* end confdefs.h. */ 5703$ac_includes_default 5704#include <limits.h> 5705_ACEOF 5706rm -f conftest.$ac_objext 5707if { (ac_try="$ac_compile" 5708case "(($ac_try" in 5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5710 *) ac_try_echo=$ac_try;; 5711esac 5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5713 (eval "$ac_compile") 2>conftest.er1 5714 ac_status=$? 5715 grep -v '^ *+' conftest.er1 >conftest.err 5716 rm -f conftest.er1 5717 cat conftest.err >&5 5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5719 (exit $ac_status); } && { 5720 test -z "$ac_c_werror_flag" || 5721 test ! -s conftest.err 5722 } && test -s conftest.$ac_objext; then 5723 ac_header_compiler=yes 5724else 5725 echo "$as_me: failed program was:" >&5 5726sed 's/^/| /' conftest.$ac_ext >&5 5727 5728 ac_header_compiler=no 5729fi 5730 5731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5732{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5733echo "${ECHO_T}$ac_header_compiler" >&6; } 5734 5735# Is the header present? 5736{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5737echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5738cat >conftest.$ac_ext <<_ACEOF 5739/* confdefs.h. */ 5740_ACEOF 5741cat confdefs.h >>conftest.$ac_ext 5742cat >>conftest.$ac_ext <<_ACEOF 5743/* end confdefs.h. */ 5744#include <limits.h> 5745_ACEOF 5746if { (ac_try="$ac_cpp conftest.$ac_ext" 5747case "(($ac_try" in 5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5749 *) ac_try_echo=$ac_try;; 5750esac 5751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5753 ac_status=$? 5754 grep -v '^ *+' conftest.er1 >conftest.err 5755 rm -f conftest.er1 5756 cat conftest.err >&5 5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5758 (exit $ac_status); } >/dev/null && { 5759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5760 test ! -s conftest.err 5761 }; then 5762 ac_header_preproc=yes 5763else 5764 echo "$as_me: failed program was:" >&5 5765sed 's/^/| /' conftest.$ac_ext >&5 5766 5767 ac_header_preproc=no 5768fi 5769 5770rm -f conftest.err conftest.$ac_ext 5771{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5772echo "${ECHO_T}$ac_header_preproc" >&6; } 5773 5774# So? What about this header? 5775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5776 yes:no: ) 5777 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5778echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5779 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5780echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5781 ac_header_preproc=yes 5782 ;; 5783 no:yes:* ) 5784 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5785echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5786 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5787echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5788 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5789echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5790 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5791echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5792 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5793echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5794 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5795echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5796 5797 ;; 5798esac 5799{ echo "$as_me:$LINENO: checking for limits.h" >&5 5800echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5801if test "${ac_cv_header_limits_h+set}" = set; then 5802 echo $ECHO_N "(cached) $ECHO_C" >&6 5803else 5804 ac_cv_header_limits_h=$ac_header_preproc 5805fi 5806{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5807echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5808 5809fi 5810if test $ac_cv_header_limits_h = yes; then 5811 5812cat >>confdefs.h <<\_ACEOF 5813#define HAVE_LIMITS_H 1 5814_ACEOF 5815 5816else 5817 5818cat >>confdefs.h <<\_ACEOF 5819#define NO_LIMITS_H 1 5820_ACEOF 5821 5822fi 5823 5824 5825 if test "${ac_cv_header_stdlib_h+set}" = set; then 5826 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5827echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5828if test "${ac_cv_header_stdlib_h+set}" = set; then 5829 echo $ECHO_N "(cached) $ECHO_C" >&6 5830fi 5831{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5832echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5833else 5834 # Is the header compilable? 5835{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5836echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5837cat >conftest.$ac_ext <<_ACEOF 5838/* confdefs.h. */ 5839_ACEOF 5840cat confdefs.h >>conftest.$ac_ext 5841cat >>conftest.$ac_ext <<_ACEOF 5842/* end confdefs.h. */ 5843$ac_includes_default 5844#include <stdlib.h> 5845_ACEOF 5846rm -f conftest.$ac_objext 5847if { (ac_try="$ac_compile" 5848case "(($ac_try" in 5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5850 *) ac_try_echo=$ac_try;; 5851esac 5852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5853 (eval "$ac_compile") 2>conftest.er1 5854 ac_status=$? 5855 grep -v '^ *+' conftest.er1 >conftest.err 5856 rm -f conftest.er1 5857 cat conftest.err >&5 5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5859 (exit $ac_status); } && { 5860 test -z "$ac_c_werror_flag" || 5861 test ! -s conftest.err 5862 } && test -s conftest.$ac_objext; then 5863 ac_header_compiler=yes 5864else 5865 echo "$as_me: failed program was:" >&5 5866sed 's/^/| /' conftest.$ac_ext >&5 5867 5868 ac_header_compiler=no 5869fi 5870 5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5872{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5873echo "${ECHO_T}$ac_header_compiler" >&6; } 5874 5875# Is the header present? 5876{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5877echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 5878cat >conftest.$ac_ext <<_ACEOF 5879/* confdefs.h. */ 5880_ACEOF 5881cat confdefs.h >>conftest.$ac_ext 5882cat >>conftest.$ac_ext <<_ACEOF 5883/* end confdefs.h. */ 5884#include <stdlib.h> 5885_ACEOF 5886if { (ac_try="$ac_cpp conftest.$ac_ext" 5887case "(($ac_try" in 5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5889 *) ac_try_echo=$ac_try;; 5890esac 5891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5893 ac_status=$? 5894 grep -v '^ *+' conftest.er1 >conftest.err 5895 rm -f conftest.er1 5896 cat conftest.err >&5 5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5898 (exit $ac_status); } >/dev/null && { 5899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5900 test ! -s conftest.err 5901 }; then 5902 ac_header_preproc=yes 5903else 5904 echo "$as_me: failed program was:" >&5 5905sed 's/^/| /' conftest.$ac_ext >&5 5906 5907 ac_header_preproc=no 5908fi 5909 5910rm -f conftest.err conftest.$ac_ext 5911{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5912echo "${ECHO_T}$ac_header_preproc" >&6; } 5913 5914# So? What about this header? 5915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5916 yes:no: ) 5917 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5918echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5919 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5920echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5921 ac_header_preproc=yes 5922 ;; 5923 no:yes:* ) 5924 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5925echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5926 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5927echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5928 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5929echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5930 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5931echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5932 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5933echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5934 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5935echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5936 5937 ;; 5938esac 5939{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 5940echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5941if test "${ac_cv_header_stdlib_h+set}" = set; then 5942 echo $ECHO_N "(cached) $ECHO_C" >&6 5943else 5944 ac_cv_header_stdlib_h=$ac_header_preproc 5945fi 5946{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5947echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5948 5949fi 5950if test $ac_cv_header_stdlib_h = yes; then 5951 tcl_ok=1 5952else 5953 tcl_ok=0 5954fi 5955 5956 5957 cat >conftest.$ac_ext <<_ACEOF 5958/* confdefs.h. */ 5959_ACEOF 5960cat confdefs.h >>conftest.$ac_ext 5961cat >>conftest.$ac_ext <<_ACEOF 5962/* end confdefs.h. */ 5963#include <stdlib.h> 5964 5965_ACEOF 5966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5967 $EGREP "strtol" >/dev/null 2>&1; then 5968 : 5969else 5970 tcl_ok=0 5971fi 5972rm -f -r conftest* 5973 5974 cat >conftest.$ac_ext <<_ACEOF 5975/* confdefs.h. */ 5976_ACEOF 5977cat confdefs.h >>conftest.$ac_ext 5978cat >>conftest.$ac_ext <<_ACEOF 5979/* end confdefs.h. */ 5980#include <stdlib.h> 5981 5982_ACEOF 5983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5984 $EGREP "strtoul" >/dev/null 2>&1; then 5985 : 5986else 5987 tcl_ok=0 5988fi 5989rm -f -r conftest* 5990 5991 cat >conftest.$ac_ext <<_ACEOF 5992/* confdefs.h. */ 5993_ACEOF 5994cat confdefs.h >>conftest.$ac_ext 5995cat >>conftest.$ac_ext <<_ACEOF 5996/* end confdefs.h. */ 5997#include <stdlib.h> 5998 5999_ACEOF 6000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6001 $EGREP "strtod" >/dev/null 2>&1; then 6002 : 6003else 6004 tcl_ok=0 6005fi 6006rm -f -r conftest* 6007 6008 if test $tcl_ok = 0; then 6009 6010cat >>confdefs.h <<\_ACEOF 6011#define NO_STDLIB_H 1 6012_ACEOF 6013 6014 fi 6015 if test "${ac_cv_header_string_h+set}" = set; then 6016 { echo "$as_me:$LINENO: checking for string.h" >&5 6017echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6018if test "${ac_cv_header_string_h+set}" = set; then 6019 echo $ECHO_N "(cached) $ECHO_C" >&6 6020fi 6021{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6022echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6023else 6024 # Is the header compilable? 6025{ echo "$as_me:$LINENO: checking string.h usability" >&5 6026echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6027cat >conftest.$ac_ext <<_ACEOF 6028/* confdefs.h. */ 6029_ACEOF 6030cat confdefs.h >>conftest.$ac_ext 6031cat >>conftest.$ac_ext <<_ACEOF 6032/* end confdefs.h. */ 6033$ac_includes_default 6034#include <string.h> 6035_ACEOF 6036rm -f conftest.$ac_objext 6037if { (ac_try="$ac_compile" 6038case "(($ac_try" in 6039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6040 *) ac_try_echo=$ac_try;; 6041esac 6042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6043 (eval "$ac_compile") 2>conftest.er1 6044 ac_status=$? 6045 grep -v '^ *+' conftest.er1 >conftest.err 6046 rm -f conftest.er1 6047 cat conftest.err >&5 6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6049 (exit $ac_status); } && { 6050 test -z "$ac_c_werror_flag" || 6051 test ! -s conftest.err 6052 } && test -s conftest.$ac_objext; then 6053 ac_header_compiler=yes 6054else 6055 echo "$as_me: failed program was:" >&5 6056sed 's/^/| /' conftest.$ac_ext >&5 6057 6058 ac_header_compiler=no 6059fi 6060 6061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6062{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6063echo "${ECHO_T}$ac_header_compiler" >&6; } 6064 6065# Is the header present? 6066{ echo "$as_me:$LINENO: checking string.h presence" >&5 6067echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6068cat >conftest.$ac_ext <<_ACEOF 6069/* confdefs.h. */ 6070_ACEOF 6071cat confdefs.h >>conftest.$ac_ext 6072cat >>conftest.$ac_ext <<_ACEOF 6073/* end confdefs.h. */ 6074#include <string.h> 6075_ACEOF 6076if { (ac_try="$ac_cpp conftest.$ac_ext" 6077case "(($ac_try" in 6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6079 *) ac_try_echo=$ac_try;; 6080esac 6081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6083 ac_status=$? 6084 grep -v '^ *+' conftest.er1 >conftest.err 6085 rm -f conftest.er1 6086 cat conftest.err >&5 6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6088 (exit $ac_status); } >/dev/null && { 6089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6090 test ! -s conftest.err 6091 }; then 6092 ac_header_preproc=yes 6093else 6094 echo "$as_me: failed program was:" >&5 6095sed 's/^/| /' conftest.$ac_ext >&5 6096 6097 ac_header_preproc=no 6098fi 6099 6100rm -f conftest.err conftest.$ac_ext 6101{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6102echo "${ECHO_T}$ac_header_preproc" >&6; } 6103 6104# So? What about this header? 6105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6106 yes:no: ) 6107 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6108echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6109 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6110echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6111 ac_header_preproc=yes 6112 ;; 6113 no:yes:* ) 6114 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6115echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6116 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6117echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6118 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6119echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6120 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6121echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6122 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6123echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6124 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6125echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6126 6127 ;; 6128esac 6129{ echo "$as_me:$LINENO: checking for string.h" >&5 6130echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6131if test "${ac_cv_header_string_h+set}" = set; then 6132 echo $ECHO_N "(cached) $ECHO_C" >&6 6133else 6134 ac_cv_header_string_h=$ac_header_preproc 6135fi 6136{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6137echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6138 6139fi 6140if test $ac_cv_header_string_h = yes; then 6141 tcl_ok=1 6142else 6143 tcl_ok=0 6144fi 6145 6146 6147 cat >conftest.$ac_ext <<_ACEOF 6148/* confdefs.h. */ 6149_ACEOF 6150cat confdefs.h >>conftest.$ac_ext 6151cat >>conftest.$ac_ext <<_ACEOF 6152/* end confdefs.h. */ 6153#include <string.h> 6154 6155_ACEOF 6156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6157 $EGREP "strstr" >/dev/null 2>&1; then 6158 : 6159else 6160 tcl_ok=0 6161fi 6162rm -f -r conftest* 6163 6164 cat >conftest.$ac_ext <<_ACEOF 6165/* confdefs.h. */ 6166_ACEOF 6167cat confdefs.h >>conftest.$ac_ext 6168cat >>conftest.$ac_ext <<_ACEOF 6169/* end confdefs.h. */ 6170#include <string.h> 6171 6172_ACEOF 6173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6174 $EGREP "strerror" >/dev/null 2>&1; then 6175 : 6176else 6177 tcl_ok=0 6178fi 6179rm -f -r conftest* 6180 6181 6182 # See also memmove check below for a place where NO_STRING_H can be 6183 # set and why. 6184 6185 if test $tcl_ok = 0; then 6186 6187cat >>confdefs.h <<\_ACEOF 6188#define NO_STRING_H 1 6189_ACEOF 6190 6191 fi 6192 6193 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6194 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6195echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6196if test "${ac_cv_header_sys_wait_h+set}" = set; then 6197 echo $ECHO_N "(cached) $ECHO_C" >&6 6198fi 6199{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6200echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6201else 6202 # Is the header compilable? 6203{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6204echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6205cat >conftest.$ac_ext <<_ACEOF 6206/* confdefs.h. */ 6207_ACEOF 6208cat confdefs.h >>conftest.$ac_ext 6209cat >>conftest.$ac_ext <<_ACEOF 6210/* end confdefs.h. */ 6211$ac_includes_default 6212#include <sys/wait.h> 6213_ACEOF 6214rm -f conftest.$ac_objext 6215if { (ac_try="$ac_compile" 6216case "(($ac_try" in 6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6218 *) ac_try_echo=$ac_try;; 6219esac 6220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6221 (eval "$ac_compile") 2>conftest.er1 6222 ac_status=$? 6223 grep -v '^ *+' conftest.er1 >conftest.err 6224 rm -f conftest.er1 6225 cat conftest.err >&5 6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6227 (exit $ac_status); } && { 6228 test -z "$ac_c_werror_flag" || 6229 test ! -s conftest.err 6230 } && test -s conftest.$ac_objext; then 6231 ac_header_compiler=yes 6232else 6233 echo "$as_me: failed program was:" >&5 6234sed 's/^/| /' conftest.$ac_ext >&5 6235 6236 ac_header_compiler=no 6237fi 6238 6239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6240{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6241echo "${ECHO_T}$ac_header_compiler" >&6; } 6242 6243# Is the header present? 6244{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6245echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6246cat >conftest.$ac_ext <<_ACEOF 6247/* confdefs.h. */ 6248_ACEOF 6249cat confdefs.h >>conftest.$ac_ext 6250cat >>conftest.$ac_ext <<_ACEOF 6251/* end confdefs.h. */ 6252#include <sys/wait.h> 6253_ACEOF 6254if { (ac_try="$ac_cpp conftest.$ac_ext" 6255case "(($ac_try" in 6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6257 *) ac_try_echo=$ac_try;; 6258esac 6259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6261 ac_status=$? 6262 grep -v '^ *+' conftest.er1 >conftest.err 6263 rm -f conftest.er1 6264 cat conftest.err >&5 6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6266 (exit $ac_status); } >/dev/null && { 6267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6268 test ! -s conftest.err 6269 }; then 6270 ac_header_preproc=yes 6271else 6272 echo "$as_me: failed program was:" >&5 6273sed 's/^/| /' conftest.$ac_ext >&5 6274 6275 ac_header_preproc=no 6276fi 6277 6278rm -f conftest.err conftest.$ac_ext 6279{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6280echo "${ECHO_T}$ac_header_preproc" >&6; } 6281 6282# So? What about this header? 6283case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6284 yes:no: ) 6285 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6286echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6287 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6288echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6289 ac_header_preproc=yes 6290 ;; 6291 no:yes:* ) 6292 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6293echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6294 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6295echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6296 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6297echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6298 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6299echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6300 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6301echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6302 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6303echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6304 6305 ;; 6306esac 6307{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6308echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6309if test "${ac_cv_header_sys_wait_h+set}" = set; then 6310 echo $ECHO_N "(cached) $ECHO_C" >&6 6311else 6312 ac_cv_header_sys_wait_h=$ac_header_preproc 6313fi 6314{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6315echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6316 6317fi 6318if test $ac_cv_header_sys_wait_h = yes; then 6319 : 6320else 6321 6322cat >>confdefs.h <<\_ACEOF 6323#define NO_SYS_WAIT_H 1 6324_ACEOF 6325 6326fi 6327 6328 6329 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6330 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6331echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6332if test "${ac_cv_header_dlfcn_h+set}" = set; then 6333 echo $ECHO_N "(cached) $ECHO_C" >&6 6334fi 6335{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6336echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6337else 6338 # Is the header compilable? 6339{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6340echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6341cat >conftest.$ac_ext <<_ACEOF 6342/* confdefs.h. */ 6343_ACEOF 6344cat confdefs.h >>conftest.$ac_ext 6345cat >>conftest.$ac_ext <<_ACEOF 6346/* end confdefs.h. */ 6347$ac_includes_default 6348#include <dlfcn.h> 6349_ACEOF 6350rm -f conftest.$ac_objext 6351if { (ac_try="$ac_compile" 6352case "(($ac_try" in 6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6354 *) ac_try_echo=$ac_try;; 6355esac 6356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6357 (eval "$ac_compile") 2>conftest.er1 6358 ac_status=$? 6359 grep -v '^ *+' conftest.er1 >conftest.err 6360 rm -f conftest.er1 6361 cat conftest.err >&5 6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6363 (exit $ac_status); } && { 6364 test -z "$ac_c_werror_flag" || 6365 test ! -s conftest.err 6366 } && test -s conftest.$ac_objext; then 6367 ac_header_compiler=yes 6368else 6369 echo "$as_me: failed program was:" >&5 6370sed 's/^/| /' conftest.$ac_ext >&5 6371 6372 ac_header_compiler=no 6373fi 6374 6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6376{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6377echo "${ECHO_T}$ac_header_compiler" >&6; } 6378 6379# Is the header present? 6380{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6381echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6382cat >conftest.$ac_ext <<_ACEOF 6383/* confdefs.h. */ 6384_ACEOF 6385cat confdefs.h >>conftest.$ac_ext 6386cat >>conftest.$ac_ext <<_ACEOF 6387/* end confdefs.h. */ 6388#include <dlfcn.h> 6389_ACEOF 6390if { (ac_try="$ac_cpp conftest.$ac_ext" 6391case "(($ac_try" in 6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6393 *) ac_try_echo=$ac_try;; 6394esac 6395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6397 ac_status=$? 6398 grep -v '^ *+' conftest.er1 >conftest.err 6399 rm -f conftest.er1 6400 cat conftest.err >&5 6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6402 (exit $ac_status); } >/dev/null && { 6403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6404 test ! -s conftest.err 6405 }; then 6406 ac_header_preproc=yes 6407else 6408 echo "$as_me: failed program was:" >&5 6409sed 's/^/| /' conftest.$ac_ext >&5 6410 6411 ac_header_preproc=no 6412fi 6413 6414rm -f conftest.err conftest.$ac_ext 6415{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6416echo "${ECHO_T}$ac_header_preproc" >&6; } 6417 6418# So? What about this header? 6419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6420 yes:no: ) 6421 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6422echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6423 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6424echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6425 ac_header_preproc=yes 6426 ;; 6427 no:yes:* ) 6428 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6429echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6430 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6431echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6432 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6433echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6434 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6435echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6436 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6437echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6438 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6439echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6440 6441 ;; 6442esac 6443{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6444echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6445if test "${ac_cv_header_dlfcn_h+set}" = set; then 6446 echo $ECHO_N "(cached) $ECHO_C" >&6 6447else 6448 ac_cv_header_dlfcn_h=$ac_header_preproc 6449fi 6450{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6451echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6452 6453fi 6454if test $ac_cv_header_dlfcn_h = yes; then 6455 : 6456else 6457 6458cat >>confdefs.h <<\_ACEOF 6459#define NO_DLFCN_H 1 6460_ACEOF 6461 6462fi 6463 6464 6465 6466 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6467 6468for ac_header in sys/param.h 6469do 6470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6472 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6475 echo $ECHO_N "(cached) $ECHO_C" >&6 6476fi 6477ac_res=`eval echo '${'$as_ac_Header'}'` 6478 { echo "$as_me:$LINENO: result: $ac_res" >&5 6479echo "${ECHO_T}$ac_res" >&6; } 6480else 6481 # Is the header compilable? 6482{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6483echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6484cat >conftest.$ac_ext <<_ACEOF 6485/* confdefs.h. */ 6486_ACEOF 6487cat confdefs.h >>conftest.$ac_ext 6488cat >>conftest.$ac_ext <<_ACEOF 6489/* end confdefs.h. */ 6490$ac_includes_default 6491#include <$ac_header> 6492_ACEOF 6493rm -f conftest.$ac_objext 6494if { (ac_try="$ac_compile" 6495case "(($ac_try" in 6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6497 *) ac_try_echo=$ac_try;; 6498esac 6499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6500 (eval "$ac_compile") 2>conftest.er1 6501 ac_status=$? 6502 grep -v '^ *+' conftest.er1 >conftest.err 6503 rm -f conftest.er1 6504 cat conftest.err >&5 6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6506 (exit $ac_status); } && { 6507 test -z "$ac_c_werror_flag" || 6508 test ! -s conftest.err 6509 } && test -s conftest.$ac_objext; then 6510 ac_header_compiler=yes 6511else 6512 echo "$as_me: failed program was:" >&5 6513sed 's/^/| /' conftest.$ac_ext >&5 6514 6515 ac_header_compiler=no 6516fi 6517 6518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6519{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6520echo "${ECHO_T}$ac_header_compiler" >&6; } 6521 6522# Is the header present? 6523{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6525cat >conftest.$ac_ext <<_ACEOF 6526/* confdefs.h. */ 6527_ACEOF 6528cat confdefs.h >>conftest.$ac_ext 6529cat >>conftest.$ac_ext <<_ACEOF 6530/* end confdefs.h. */ 6531#include <$ac_header> 6532_ACEOF 6533if { (ac_try="$ac_cpp conftest.$ac_ext" 6534case "(($ac_try" in 6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6536 *) ac_try_echo=$ac_try;; 6537esac 6538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6540 ac_status=$? 6541 grep -v '^ *+' conftest.er1 >conftest.err 6542 rm -f conftest.er1 6543 cat conftest.err >&5 6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6545 (exit $ac_status); } >/dev/null && { 6546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6547 test ! -s conftest.err 6548 }; then 6549 ac_header_preproc=yes 6550else 6551 echo "$as_me: failed program was:" >&5 6552sed 's/^/| /' conftest.$ac_ext >&5 6553 6554 ac_header_preproc=no 6555fi 6556 6557rm -f conftest.err conftest.$ac_ext 6558{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6559echo "${ECHO_T}$ac_header_preproc" >&6; } 6560 6561# So? What about this header? 6562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6563 yes:no: ) 6564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6568 ac_header_preproc=yes 6569 ;; 6570 no:yes:* ) 6571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6574echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6578echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6583 6584 ;; 6585esac 6586{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6589 echo $ECHO_N "(cached) $ECHO_C" >&6 6590else 6591 eval "$as_ac_Header=\$ac_header_preproc" 6592fi 6593ac_res=`eval echo '${'$as_ac_Header'}'` 6594 { echo "$as_me:$LINENO: result: $ac_res" >&5 6595echo "${ECHO_T}$ac_res" >&6; } 6596 6597fi 6598if test `eval echo '${'$as_ac_Header'}'` = yes; then 6599 cat >>confdefs.h <<_ACEOF 6600#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6601_ACEOF 6602 6603fi 6604 6605done 6606 6607 6608 # Let the user call this, because if it triggers, they will 6609 # need a compat/strtod.c that is correct. Users can also 6610 # use Tcl_GetDouble(FromObj) instead. 6611 #TEA_BUGGY_STRTOD 6612 fi 6613 6614 6615#----------------------------------------------------------------------- 6616# Those two are needed for compiling expat. 6617#----------------------------------------------------------------------- 6618 6619 6620 6621for ac_func in memmove bcopy 6622do 6623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6624{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6626if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6627 echo $ECHO_N "(cached) $ECHO_C" >&6 6628else 6629 cat >conftest.$ac_ext <<_ACEOF 6630/* confdefs.h. */ 6631_ACEOF 6632cat confdefs.h >>conftest.$ac_ext 6633cat >>conftest.$ac_ext <<_ACEOF 6634/* end confdefs.h. */ 6635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6636 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6637#define $ac_func innocuous_$ac_func 6638 6639/* System header to define __stub macros and hopefully few prototypes, 6640 which can conflict with char $ac_func (); below. 6641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6642 <limits.h> exists even on freestanding compilers. */ 6643 6644#ifdef __STDC__ 6645# include <limits.h> 6646#else 6647# include <assert.h> 6648#endif 6649 6650#undef $ac_func 6651 6652/* Override any GCC internal prototype to avoid an error. 6653 Use char because int might match the return type of a GCC 6654 builtin and then its argument prototype would still apply. */ 6655#ifdef __cplusplus 6656extern "C" 6657#endif 6658char $ac_func (); 6659/* The GNU C library defines this for functions which it implements 6660 to always fail with ENOSYS. Some functions are actually named 6661 something starting with __ and the normal name is an alias. */ 6662#if defined __stub_$ac_func || defined __stub___$ac_func 6663choke me 6664#endif 6665 6666int 6667main () 6668{ 6669return $ac_func (); 6670 ; 6671 return 0; 6672} 6673_ACEOF 6674rm -f conftest.$ac_objext conftest$ac_exeext 6675if { (ac_try="$ac_link" 6676case "(($ac_try" in 6677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6678 *) ac_try_echo=$ac_try;; 6679esac 6680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6681 (eval "$ac_link") 2>conftest.er1 6682 ac_status=$? 6683 grep -v '^ *+' conftest.er1 >conftest.err 6684 rm -f conftest.er1 6685 cat conftest.err >&5 6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6687 (exit $ac_status); } && { 6688 test -z "$ac_c_werror_flag" || 6689 test ! -s conftest.err 6690 } && test -s conftest$ac_exeext && 6691 $as_test_x conftest$ac_exeext; then 6692 eval "$as_ac_var=yes" 6693else 6694 echo "$as_me: failed program was:" >&5 6695sed 's/^/| /' conftest.$ac_ext >&5 6696 6697 eval "$as_ac_var=no" 6698fi 6699 6700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6701 conftest$ac_exeext conftest.$ac_ext 6702fi 6703ac_res=`eval echo '${'$as_ac_var'}'` 6704 { echo "$as_me:$LINENO: result: $ac_res" >&5 6705echo "${ECHO_T}$ac_res" >&6; } 6706if test `eval echo '${'$as_ac_var'}'` = yes; then 6707 cat >>confdefs.h <<_ACEOF 6708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6709_ACEOF 6710 6711fi 6712done 6713 6714 6715#-------------------------------------------------------------------- 6716# Add optional AOLserver includes 6717#-------------------------------------------------------------------- 6718 6719 6720 { echo "$as_me:$LINENO: checking for AOLserver configuration" >&5 6721echo $ECHO_N "checking for AOLserver configuration... $ECHO_C" >&6; } 6722 6723# Check whether --with-aol was given. 6724if test "${with_aol+set}" = set; then 6725 withval=$with_aol; with_aolserver=${withval} 6726fi 6727 6728 6729 if test "${ac_cv_c_aolserver+set}" = set; then 6730 echo $ECHO_N "(cached) $ECHO_C" >&6 6731else 6732 6733 if test x"${with_aolserver}" != x ; then 6734 if test -f "${with_aolserver}/include/ns.h" ; then 6735 ac_cv_c_aolserver=`(cd ${with_aolserver}; pwd)` 6736 else 6737 { { echo "$as_me:$LINENO: error: ${with_aolserver} directory doesn't contain ns.h" >&5 6738echo "$as_me: error: ${with_aolserver} directory doesn't contain ns.h" >&2;} 6739 { (exit 1); exit 1; }; } 6740 fi 6741 fi 6742 6743fi 6744 6745 if test x"${ac_cv_c_aolserver}" = x ; then 6746 { echo "$as_me:$LINENO: result: none found" >&5 6747echo "${ECHO_T}none found" >&6; } 6748 else 6749 AOL_DIR=${ac_cv_c_aolserver} 6750 AOL_INCLUDES="-I\"${AOL_DIR}/include\"" 6751 if test "`uname -s`" = Darwin ; then 6752 aollibs=`ls ${AOL_DIR}/lib/libns* 2>/dev/null` 6753 if test x"$aollibs" != x ; then 6754 AOL_LIBS="-L\"${AOL_DIR}/lib\" -lnsd -lnsthread" 6755 fi 6756 fi 6757 { echo "$as_me:$LINENO: result: found AOLserver in $AOL_DIR" >&5 6758echo "${ECHO_T}found AOLserver in $AOL_DIR" >&6; } 6759 cat >>confdefs.h <<\_ACEOF 6760#define NS_AOLSERVER 1 6761_ACEOF 6762 6763 cat >>confdefs.h <<\_ACEOF 6764#define USE_NORMAL_ALLOCATOR 1 6765_ACEOF 6766 6767 fi 6768 6769 6770#----------------------------------------------------------------------- 6771# __CHANGE__ 6772# Specify the C source files to compile in TEA_ADD_SOURCES, 6773# public headers that need to be installed in TEA_ADD_HEADERS, 6774# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6775# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6776# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6777# and PKG_TCL_SOURCES. 6778#----------------------------------------------------------------------- 6779 6780 6781 vars="expat/xmlrole.c \ 6782 expat/xmltok.c \ 6783 expat/xmlparse.c \ 6784 generic/xmlsimple.c \ 6785 generic/utf8conv.c \ 6786 generic/dom.c \ 6787 generic/domhtml.c \ 6788 generic/domxpath.c \ 6789 generic/domxslt.c \ 6790 generic/domlock.c \ 6791 generic/tcldom.c \ 6792 generic/nodecmd.c \ 6793 generic/tdominit.c \ 6794 generic/tclexpat.c \ 6795 generic/tdomStubInit.c" 6796 for i in $vars; do 6797 case $i in 6798 \$*) 6799 # allow $-var names 6800 PKG_SOURCES="$PKG_SOURCES $i" 6801 PKG_OBJECTS="$PKG_OBJECTS $i" 6802 ;; 6803 *) 6804 # check for existence - allows for generic/win/unix VPATH 6805 # To add more dirs here (like 'src'), you have to update VPATH 6806 # in Makefile.in as well 6807 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6808 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6809 -a ! -f "${srcdir}/macosx/$i" \ 6810 ; then 6811 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6812echo "$as_me: error: could not find source file '$i'" >&2;} 6813 { (exit 1); exit 1; }; } 6814 fi 6815 PKG_SOURCES="$PKG_SOURCES $i" 6816 # this assumes it is in a VPATH dir 6817 i=`basename $i` 6818 # handle user calling this before or after TEA_SETUP_COMPILER 6819 if test x"${OBJEXT}" != x ; then 6820 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6821 else 6822 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6823 fi 6824 PKG_OBJECTS="$PKG_OBJECTS $j" 6825 ;; 6826 esac 6827 done 6828 6829 6830 6831 6832 vars="generic/tdom.h" 6833 for i in $vars; do 6834 # check for existence, be strict because it is installed 6835 if test ! -f "${srcdir}/$i" ; then 6836 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6837echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6838 { (exit 1); exit 1; }; } 6839 fi 6840 PKG_HEADERS="$PKG_HEADERS $i" 6841 done 6842 6843 6844 6845 vars="-I${srcdir}/generic -I${srcdir}/expat ${AOL_INCLUDES}" 6846 for i in $vars; do 6847 PKG_INCLUDES="$PKG_INCLUDES $i" 6848 done 6849 6850 6851 6852 vars="${AOL_LIBS}" 6853 for i in $vars; do 6854 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6855 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6856 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6857 fi 6858 PKG_LIBS="$PKG_LIBS $i" 6859 done 6860 6861 6862 6863 PKG_CFLAGS="$PKG_CFLAGS " 6864 6865 6866 6867 vars="generic/tdomStubLib.c" 6868 for i in $vars; do 6869 # check for existence - allows for generic/win/unix VPATH 6870 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6871 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6872 -a ! -f "${srcdir}/macosx/$i" \ 6873 ; then 6874 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6875echo "$as_me: error: could not find stub source file '$i'" >&2;} 6876 { (exit 1); exit 1; }; } 6877 fi 6878 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6879 # this assumes it is in a VPATH dir 6880 i=`basename $i` 6881 # handle user calling this before or after TEA_SETUP_COMPILER 6882 if test x"${OBJEXT}" != x ; then 6883 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6884 else 6885 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6886 fi 6887 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6888 done 6889 6890 6891 6892 6893 vars="lib/tdom.tcl" 6894 for i in $vars; do 6895 # check for existence, be strict because it is installed 6896 if test ! -f "${srcdir}/$i" ; then 6897 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6898echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6899 { (exit 1); exit 1; }; } 6900 fi 6901 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6902 done 6903 6904 6905 6906#-------------------------------------------------------------------- 6907# __CHANGE__ 6908# A few miscellaneous platform-specific items: 6909# 6910# Define a special symbol for Windows (BUILD_sample in this case) so 6911# that we create the export library with the dll. 6912# 6913# Windows creates a few extra files that need to be cleaned up. 6914# You can add more files to clean if your extension creates any extra 6915# files. 6916# 6917# TEA_ADD_* any platform specific compiler/build info here. 6918#-------------------------------------------------------------------- 6919 6920if test "${TEA_PLATFORM}" = "windows" ; then 6921 cat >>confdefs.h <<\_ACEOF 6922#define BUILD_tdom 1 6923_ACEOF 6924 6925 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" 6926 #TEA_ADD_SOURCES([win/winFile.c]) 6927 #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"]) 6928else 6929 CLEANFILES="pkgIndex.tcl tcldomsh" 6930 #TEA_ADD_SOURCES([unix/unixFile.c]) 6931 #TEA_ADD_LIBS([-lsuperfly]) 6932fi 6933 6934 6935#-------------------------------------------------------------------- 6936# __CHANGE__ 6937# Choose which headers you need. Extension authors should try very 6938# hard to only rely on the Tcl public header files. Internal headers 6939# contain private data structures and are subject to change without 6940# notice. 6941# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 6942#-------------------------------------------------------------------- 6943 6944 6945 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6946echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6947 6948 6949# Check whether --with-tclinclude was given. 6950if test "${with_tclinclude+set}" = set; then 6951 withval=$with_tclinclude; with_tclinclude=${withval} 6952fi 6953 6954 6955 if test "${ac_cv_c_tclh+set}" = set; then 6956 echo $ECHO_N "(cached) $ECHO_C" >&6 6957else 6958 6959 # Use the value from --with-tclinclude, if it was given 6960 6961 if test x"${with_tclinclude}" != x ; then 6962 if test -f "${with_tclinclude}/tcl.h" ; then 6963 ac_cv_c_tclh=${with_tclinclude} 6964 else 6965 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6966echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6967 { (exit 1); exit 1; }; } 6968 fi 6969 else 6970 list="" 6971 if test "`uname -s`" = "Darwin"; then 6972 # If Tcl was built as a framework, attempt to use 6973 # the framework's Headers directory 6974 case ${TCL_DEFS} in 6975 *TCL_FRAMEWORK*) 6976 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6977 ;; 6978 esac 6979 fi 6980 6981 # Look in the source dir only if Tcl is not installed, 6982 # and in that situation, look there before installed locations. 6983 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6984 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6985 fi 6986 6987 # Check order: pkg --prefix location, Tcl's --prefix location, 6988 # relative to directory of tclConfig.sh. 6989 6990 eval "temp_includedir=${includedir}" 6991 list="$list \ 6992 `ls -d ${temp_includedir} 2>/dev/null` \ 6993 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6994 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6995 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6996 list="$list /usr/local/include /usr/include" 6997 if test x"${TCL_INCLUDE_SPEC}" != x ; then 6998 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 6999 list="$list `ls -d ${d} 2>/dev/null`" 7000 fi 7001 fi 7002 for i in $list ; do 7003 if test -f "$i/tcl.h" ; then 7004 ac_cv_c_tclh=$i 7005 break 7006 fi 7007 done 7008 fi 7009 7010fi 7011 7012 7013 # Print a message based on how we determined the include path 7014 7015 if test x"${ac_cv_c_tclh}" = x ; then 7016 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 7017echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 7018 { (exit 1); exit 1; }; } 7019 else 7020 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 7021echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 7022 fi 7023 7024 # Convert to a native path and substitute into the output files. 7025 7026 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 7027 7028 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7029 7030 7031 7032#TEA_PRIVATE_TCL_HEADERS 7033 7034#TEA_PUBLIC_TK_HEADERS 7035#TEA_PRIVATE_TK_HEADERS 7036#TEA_PATH_X 7037 7038#-------------------------------------------------------------------- 7039# Check whether --enable-threads or --disable-threads was given. 7040# This auto-enables if Tcl was compiled threaded. 7041#-------------------------------------------------------------------- 7042 7043 7044 # Check whether --enable-threads was given. 7045if test "${enable_threads+set}" = set; then 7046 enableval=$enable_threads; tcl_ok=$enableval 7047else 7048 tcl_ok=yes 7049fi 7050 7051 7052 if test "${enable_threads+set}" = set; then 7053 enableval="$enable_threads" 7054 tcl_ok=$enableval 7055 else 7056 tcl_ok=yes 7057 fi 7058 7059 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 7060 TCL_THREADS=1 7061 7062 if test "${TEA_PLATFORM}" != "windows" ; then 7063 # We are always OK on Windows, so check what this platform wants: 7064 7065 # USE_THREAD_ALLOC tells us to try the special thread-based 7066 # allocator that significantly reduces lock contention 7067 7068cat >>confdefs.h <<\_ACEOF 7069#define USE_THREAD_ALLOC 1 7070_ACEOF 7071 7072 7073cat >>confdefs.h <<\_ACEOF 7074#define _REENTRANT 1 7075_ACEOF 7076 7077 if test "`uname -s`" = "SunOS" ; then 7078 7079cat >>confdefs.h <<\_ACEOF 7080#define _POSIX_PTHREAD_SEMANTICS 1 7081_ACEOF 7082 7083 fi 7084 7085cat >>confdefs.h <<\_ACEOF 7086#define _THREAD_SAFE 1 7087_ACEOF 7088 7089 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7090echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7091if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7092 echo $ECHO_N "(cached) $ECHO_C" >&6 7093else 7094 ac_check_lib_save_LIBS=$LIBS 7095LIBS="-lpthread $LIBS" 7096cat >conftest.$ac_ext <<_ACEOF 7097/* confdefs.h. */ 7098_ACEOF 7099cat confdefs.h >>conftest.$ac_ext 7100cat >>conftest.$ac_ext <<_ACEOF 7101/* end confdefs.h. */ 7102 7103/* Override any GCC internal prototype to avoid an error. 7104 Use char because int might match the return type of a GCC 7105 builtin and then its argument prototype would still apply. */ 7106#ifdef __cplusplus 7107extern "C" 7108#endif 7109char pthread_mutex_init (); 7110int 7111main () 7112{ 7113return pthread_mutex_init (); 7114 ; 7115 return 0; 7116} 7117_ACEOF 7118rm -f conftest.$ac_objext conftest$ac_exeext 7119if { (ac_try="$ac_link" 7120case "(($ac_try" in 7121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7122 *) ac_try_echo=$ac_try;; 7123esac 7124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7125 (eval "$ac_link") 2>conftest.er1 7126 ac_status=$? 7127 grep -v '^ *+' conftest.er1 >conftest.err 7128 rm -f conftest.er1 7129 cat conftest.err >&5 7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7131 (exit $ac_status); } && { 7132 test -z "$ac_c_werror_flag" || 7133 test ! -s conftest.err 7134 } && test -s conftest$ac_exeext && 7135 $as_test_x conftest$ac_exeext; then 7136 ac_cv_lib_pthread_pthread_mutex_init=yes 7137else 7138 echo "$as_me: failed program was:" >&5 7139sed 's/^/| /' conftest.$ac_ext >&5 7140 7141 ac_cv_lib_pthread_pthread_mutex_init=no 7142fi 7143 7144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7145 conftest$ac_exeext conftest.$ac_ext 7146LIBS=$ac_check_lib_save_LIBS 7147fi 7148{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7149echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7150if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7151 tcl_ok=yes 7152else 7153 tcl_ok=no 7154fi 7155 7156 if test "$tcl_ok" = "no"; then 7157 # Check a little harder for __pthread_mutex_init in the same 7158 # library, as some systems hide it there until pthread.h is 7159 # defined. We could alternatively do an AC_TRY_COMPILE with 7160 # pthread.h, but that will work with libpthread really doesn't 7161 # exist, like AIX 4.2. [Bug: 4359] 7162 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7163echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7164if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7165 echo $ECHO_N "(cached) $ECHO_C" >&6 7166else 7167 ac_check_lib_save_LIBS=$LIBS 7168LIBS="-lpthread $LIBS" 7169cat >conftest.$ac_ext <<_ACEOF 7170/* confdefs.h. */ 7171_ACEOF 7172cat confdefs.h >>conftest.$ac_ext 7173cat >>conftest.$ac_ext <<_ACEOF 7174/* end confdefs.h. */ 7175 7176/* Override any GCC internal prototype to avoid an error. 7177 Use char because int might match the return type of a GCC 7178 builtin and then its argument prototype would still apply. */ 7179#ifdef __cplusplus 7180extern "C" 7181#endif 7182char __pthread_mutex_init (); 7183int 7184main () 7185{ 7186return __pthread_mutex_init (); 7187 ; 7188 return 0; 7189} 7190_ACEOF 7191rm -f conftest.$ac_objext conftest$ac_exeext 7192if { (ac_try="$ac_link" 7193case "(($ac_try" in 7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7195 *) ac_try_echo=$ac_try;; 7196esac 7197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7198 (eval "$ac_link") 2>conftest.er1 7199 ac_status=$? 7200 grep -v '^ *+' conftest.er1 >conftest.err 7201 rm -f conftest.er1 7202 cat conftest.err >&5 7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7204 (exit $ac_status); } && { 7205 test -z "$ac_c_werror_flag" || 7206 test ! -s conftest.err 7207 } && test -s conftest$ac_exeext && 7208 $as_test_x conftest$ac_exeext; then 7209 ac_cv_lib_pthread___pthread_mutex_init=yes 7210else 7211 echo "$as_me: failed program was:" >&5 7212sed 's/^/| /' conftest.$ac_ext >&5 7213 7214 ac_cv_lib_pthread___pthread_mutex_init=no 7215fi 7216 7217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7218 conftest$ac_exeext conftest.$ac_ext 7219LIBS=$ac_check_lib_save_LIBS 7220fi 7221{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7222echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7223if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7224 tcl_ok=yes 7225else 7226 tcl_ok=no 7227fi 7228 7229 fi 7230 7231 if test "$tcl_ok" = "yes"; then 7232 # The space is needed 7233 THREADS_LIBS=" -lpthread" 7234 else 7235 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7236echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7237if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7238 echo $ECHO_N "(cached) $ECHO_C" >&6 7239else 7240 ac_check_lib_save_LIBS=$LIBS 7241LIBS="-lpthreads $LIBS" 7242cat >conftest.$ac_ext <<_ACEOF 7243/* confdefs.h. */ 7244_ACEOF 7245cat confdefs.h >>conftest.$ac_ext 7246cat >>conftest.$ac_ext <<_ACEOF 7247/* end confdefs.h. */ 7248 7249/* Override any GCC internal prototype to avoid an error. 7250 Use char because int might match the return type of a GCC 7251 builtin and then its argument prototype would still apply. */ 7252#ifdef __cplusplus 7253extern "C" 7254#endif 7255char pthread_mutex_init (); 7256int 7257main () 7258{ 7259return pthread_mutex_init (); 7260 ; 7261 return 0; 7262} 7263_ACEOF 7264rm -f conftest.$ac_objext conftest$ac_exeext 7265if { (ac_try="$ac_link" 7266case "(($ac_try" in 7267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7268 *) ac_try_echo=$ac_try;; 7269esac 7270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7271 (eval "$ac_link") 2>conftest.er1 7272 ac_status=$? 7273 grep -v '^ *+' conftest.er1 >conftest.err 7274 rm -f conftest.er1 7275 cat conftest.err >&5 7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7277 (exit $ac_status); } && { 7278 test -z "$ac_c_werror_flag" || 7279 test ! -s conftest.err 7280 } && test -s conftest$ac_exeext && 7281 $as_test_x conftest$ac_exeext; then 7282 ac_cv_lib_pthreads_pthread_mutex_init=yes 7283else 7284 echo "$as_me: failed program was:" >&5 7285sed 's/^/| /' conftest.$ac_ext >&5 7286 7287 ac_cv_lib_pthreads_pthread_mutex_init=no 7288fi 7289 7290rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7291 conftest$ac_exeext conftest.$ac_ext 7292LIBS=$ac_check_lib_save_LIBS 7293fi 7294{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7295echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7296if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7297 tcl_ok=yes 7298else 7299 tcl_ok=no 7300fi 7301 7302 if test "$tcl_ok" = "yes"; then 7303 # The space is needed 7304 THREADS_LIBS=" -lpthreads" 7305 else 7306 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7307echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7308if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7309 echo $ECHO_N "(cached) $ECHO_C" >&6 7310else 7311 ac_check_lib_save_LIBS=$LIBS 7312LIBS="-lc $LIBS" 7313cat >conftest.$ac_ext <<_ACEOF 7314/* confdefs.h. */ 7315_ACEOF 7316cat confdefs.h >>conftest.$ac_ext 7317cat >>conftest.$ac_ext <<_ACEOF 7318/* end confdefs.h. */ 7319 7320/* Override any GCC internal prototype to avoid an error. 7321 Use char because int might match the return type of a GCC 7322 builtin and then its argument prototype would still apply. */ 7323#ifdef __cplusplus 7324extern "C" 7325#endif 7326char pthread_mutex_init (); 7327int 7328main () 7329{ 7330return pthread_mutex_init (); 7331 ; 7332 return 0; 7333} 7334_ACEOF 7335rm -f conftest.$ac_objext conftest$ac_exeext 7336if { (ac_try="$ac_link" 7337case "(($ac_try" in 7338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7339 *) ac_try_echo=$ac_try;; 7340esac 7341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7342 (eval "$ac_link") 2>conftest.er1 7343 ac_status=$? 7344 grep -v '^ *+' conftest.er1 >conftest.err 7345 rm -f conftest.er1 7346 cat conftest.err >&5 7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7348 (exit $ac_status); } && { 7349 test -z "$ac_c_werror_flag" || 7350 test ! -s conftest.err 7351 } && test -s conftest$ac_exeext && 7352 $as_test_x conftest$ac_exeext; then 7353 ac_cv_lib_c_pthread_mutex_init=yes 7354else 7355 echo "$as_me: failed program was:" >&5 7356sed 's/^/| /' conftest.$ac_ext >&5 7357 7358 ac_cv_lib_c_pthread_mutex_init=no 7359fi 7360 7361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7362 conftest$ac_exeext conftest.$ac_ext 7363LIBS=$ac_check_lib_save_LIBS 7364fi 7365{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7366echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7367if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7368 tcl_ok=yes 7369else 7370 tcl_ok=no 7371fi 7372 7373 if test "$tcl_ok" = "no"; then 7374 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7375echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7376if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7377 echo $ECHO_N "(cached) $ECHO_C" >&6 7378else 7379 ac_check_lib_save_LIBS=$LIBS 7380LIBS="-lc_r $LIBS" 7381cat >conftest.$ac_ext <<_ACEOF 7382/* confdefs.h. */ 7383_ACEOF 7384cat confdefs.h >>conftest.$ac_ext 7385cat >>conftest.$ac_ext <<_ACEOF 7386/* end confdefs.h. */ 7387 7388/* Override any GCC internal prototype to avoid an error. 7389 Use char because int might match the return type of a GCC 7390 builtin and then its argument prototype would still apply. */ 7391#ifdef __cplusplus 7392extern "C" 7393#endif 7394char pthread_mutex_init (); 7395int 7396main () 7397{ 7398return pthread_mutex_init (); 7399 ; 7400 return 0; 7401} 7402_ACEOF 7403rm -f conftest.$ac_objext conftest$ac_exeext 7404if { (ac_try="$ac_link" 7405case "(($ac_try" in 7406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7407 *) ac_try_echo=$ac_try;; 7408esac 7409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7410 (eval "$ac_link") 2>conftest.er1 7411 ac_status=$? 7412 grep -v '^ *+' conftest.er1 >conftest.err 7413 rm -f conftest.er1 7414 cat conftest.err >&5 7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7416 (exit $ac_status); } && { 7417 test -z "$ac_c_werror_flag" || 7418 test ! -s conftest.err 7419 } && test -s conftest$ac_exeext && 7420 $as_test_x conftest$ac_exeext; then 7421 ac_cv_lib_c_r_pthread_mutex_init=yes 7422else 7423 echo "$as_me: failed program was:" >&5 7424sed 's/^/| /' conftest.$ac_ext >&5 7425 7426 ac_cv_lib_c_r_pthread_mutex_init=no 7427fi 7428 7429rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7430 conftest$ac_exeext conftest.$ac_ext 7431LIBS=$ac_check_lib_save_LIBS 7432fi 7433{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7434echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7435if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7436 tcl_ok=yes 7437else 7438 tcl_ok=no 7439fi 7440 7441 if test "$tcl_ok" = "yes"; then 7442 # The space is needed 7443 THREADS_LIBS=" -pthread" 7444 else 7445 TCL_THREADS=0 7446 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7447echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7448 fi 7449 fi 7450 fi 7451 fi 7452 fi 7453 else 7454 TCL_THREADS=0 7455 fi 7456 # Do checking message here to not mess up interleaved configure output 7457 { echo "$as_me:$LINENO: checking for building with threads" >&5 7458echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7459 if test "${TCL_THREADS}" = 1; then 7460 7461cat >>confdefs.h <<\_ACEOF 7462#define TCL_THREADS 1 7463_ACEOF 7464 7465 { echo "$as_me:$LINENO: result: yes (default)" >&5 7466echo "${ECHO_T}yes (default)" >&6; } 7467 else 7468 { echo "$as_me:$LINENO: result: no" >&5 7469echo "${ECHO_T}no" >&6; } 7470 fi 7471 # TCL_THREADS sanity checking. See if our request for building with 7472 # threads is the same as the way Tcl was built. If not, warn the user. 7473 case ${TCL_DEFS} in 7474 *THREADS=1*) 7475 if test "${TCL_THREADS}" = "0"; then 7476 { echo "$as_me:$LINENO: WARNING: 7477 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7478 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7479echo "$as_me: WARNING: 7480 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7481 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7482 fi 7483 ;; 7484 *) 7485 if test "${TCL_THREADS}" = "1"; then 7486 { echo "$as_me:$LINENO: WARNING: 7487 --enable-threads requested, but building against a Tcl that is NOT 7488 thread-enabled. This is an OK configuration that will also run in 7489 a thread-enabled core." >&5 7490echo "$as_me: WARNING: 7491 --enable-threads requested, but building against a Tcl that is NOT 7492 thread-enabled. This is an OK configuration that will also run in 7493 a thread-enabled core." >&2;} 7494 fi 7495 ;; 7496 esac 7497 7498 7499 7500#-------------------------------------------------------------------- 7501# The statement below defines a collection of symbols related to 7502# building as a shared library instead of a static library. 7503#-------------------------------------------------------------------- 7504 7505 7506 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7507echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7508 # Check whether --enable-shared was given. 7509if test "${enable_shared+set}" = set; then 7510 enableval=$enable_shared; tcl_ok=$enableval 7511else 7512 tcl_ok=yes 7513fi 7514 7515 7516 if test "${enable_shared+set}" = set; then 7517 enableval="$enable_shared" 7518 tcl_ok=$enableval 7519 else 7520 tcl_ok=yes 7521 fi 7522 7523 if test "$tcl_ok" = "yes" ; then 7524 { echo "$as_me:$LINENO: result: shared" >&5 7525echo "${ECHO_T}shared" >&6; } 7526 SHARED_BUILD=1 7527 else 7528 { echo "$as_me:$LINENO: result: static" >&5 7529echo "${ECHO_T}static" >&6; } 7530 SHARED_BUILD=0 7531 7532cat >>confdefs.h <<\_ACEOF 7533#define STATIC_BUILD 1 7534_ACEOF 7535 7536 fi 7537 7538 7539 7540#-------------------------------------------------------------------- 7541# This macro figures out what flags to use with the compiler/linker 7542# when building shared/static debug/optimized objects. This information 7543# can be taken from the tclConfig.sh file, but this figures it all out. 7544#-------------------------------------------------------------------- 7545 7546 7547 7548 7549 # Step 0.a: Enable 64 bit support? 7550 7551 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7552echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7553 # Check whether --enable-64bit was given. 7554if test "${enable_64bit+set}" = set; then 7555 enableval=$enable_64bit; do64bit=$enableval 7556else 7557 do64bit=no 7558fi 7559 7560 { echo "$as_me:$LINENO: result: $do64bit" >&5 7561echo "${ECHO_T}$do64bit" >&6; } 7562 7563 # Step 0.b: Enable Solaris 64 bit VIS support? 7564 7565 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7566echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7567 # Check whether --enable-64bit-vis was given. 7568if test "${enable_64bit_vis+set}" = set; then 7569 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7570else 7571 do64bitVIS=no 7572fi 7573 7574 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7575echo "${ECHO_T}$do64bitVIS" >&6; } 7576 # Force 64bit on with VIS 7577 if test "$do64bitVIS" = "yes"; then 7578 do64bit=yes 7579fi 7580 7581 7582 # Step 0.c: Check if visibility support is available. Do this here so 7583 # that platform specific alternatives can be used below if this fails. 7584 7585 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7586echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7587if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7588 echo $ECHO_N "(cached) $ECHO_C" >&6 7589else 7590 7591 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7592 cat >conftest.$ac_ext <<_ACEOF 7593/* confdefs.h. */ 7594_ACEOF 7595cat confdefs.h >>conftest.$ac_ext 7596cat >>conftest.$ac_ext <<_ACEOF 7597/* end confdefs.h. */ 7598 7599 extern __attribute__((__visibility__("hidden"))) void f(void); 7600 void f(void) {} 7601int 7602main () 7603{ 7604f(); 7605 ; 7606 return 0; 7607} 7608_ACEOF 7609rm -f conftest.$ac_objext conftest$ac_exeext 7610if { (ac_try="$ac_link" 7611case "(($ac_try" in 7612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7613 *) ac_try_echo=$ac_try;; 7614esac 7615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7616 (eval "$ac_link") 2>conftest.er1 7617 ac_status=$? 7618 grep -v '^ *+' conftest.er1 >conftest.err 7619 rm -f conftest.er1 7620 cat conftest.err >&5 7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7622 (exit $ac_status); } && { 7623 test -z "$ac_c_werror_flag" || 7624 test ! -s conftest.err 7625 } && test -s conftest$ac_exeext && 7626 $as_test_x conftest$ac_exeext; then 7627 tcl_cv_cc_visibility_hidden=yes 7628else 7629 echo "$as_me: failed program was:" >&5 7630sed 's/^/| /' conftest.$ac_ext >&5 7631 7632 tcl_cv_cc_visibility_hidden=no 7633fi 7634 7635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7636 conftest$ac_exeext conftest.$ac_ext 7637 CFLAGS=$hold_cflags 7638fi 7639{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7640echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7641 if test $tcl_cv_cc_visibility_hidden = yes; then 7642 7643 7644cat >>confdefs.h <<\_ACEOF 7645#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7646_ACEOF 7647 7648 7649fi 7650 7651 7652 # Step 0.d: Disable -rpath support? 7653 7654 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7655echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7656 # Check whether --enable-rpath was given. 7657if test "${enable_rpath+set}" = set; then 7658 enableval=$enable_rpath; doRpath=$enableval 7659else 7660 doRpath=yes 7661fi 7662 7663 { echo "$as_me:$LINENO: result: $doRpath" >&5 7664echo "${ECHO_T}$doRpath" >&6; } 7665 7666 # TEA specific: Cross-compiling options for Windows/CE builds? 7667 7668 if test "${TEA_PLATFORM}" = windows; then 7669 7670 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7671echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7672 # Check whether --enable-wince was given. 7673if test "${enable_wince+set}" = set; then 7674 enableval=$enable_wince; doWince=$enableval 7675else 7676 doWince=no 7677fi 7678 7679 { echo "$as_me:$LINENO: result: $doWince" >&5 7680echo "${ECHO_T}$doWince" >&6; } 7681 7682fi 7683 7684 7685 # Set the variable "system" to hold the name and version number 7686 # for the system. 7687 7688 7689 { echo "$as_me:$LINENO: checking system version" >&5 7690echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7691if test "${tcl_cv_sys_version+set}" = set; then 7692 echo $ECHO_N "(cached) $ECHO_C" >&6 7693else 7694 7695 # TEA specific: 7696 if test "${TEA_PLATFORM}" = "windows" ; then 7697 tcl_cv_sys_version=windows 7698 else 7699 tcl_cv_sys_version=`uname -s`-`uname -r` 7700 if test "$?" -ne 0 ; then 7701 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7702echo "$as_me: WARNING: can't find uname command" >&2;} 7703 tcl_cv_sys_version=unknown 7704 else 7705 if test "`uname -s`" = "AIX" ; then 7706 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7707 fi 7708 fi 7709 fi 7710 7711fi 7712{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7713echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7714 system=$tcl_cv_sys_version 7715 7716 7717 # Require ranlib early so we can override it in special cases below. 7718 7719 7720 7721 # Set configuration options based on system name and version. 7722 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7723 # "windows" case and removed some core-only vars. 7724 7725 do64bit_ok=no 7726 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7727 SHLIB_LD_LIBS='${LIBS}' 7728 # When ld needs options to work in 64-bit mode, put them in 7729 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7730 # is disabled by the user. [Bug 1016796] 7731 LDFLAGS_ARCH="" 7732 UNSHARED_LIB_SUFFIX="" 7733 # TEA specific: use PACKAGE_VERSION instead of VERSION 7734 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7735 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7736 TCL_LIB_VERSIONS_OK=ok 7737 CFLAGS_DEBUG=-g 7738 CFLAGS_OPTIMIZE=-O 7739 if test "$GCC" = yes; then 7740 7741 # TEA specific: 7742 CFLAGS_OPTIMIZE=-O2 7743 CFLAGS_WARNING="-Wall" 7744 7745else 7746 CFLAGS_WARNING="" 7747fi 7748 7749 # Extract the first word of "ar", so it can be a program name with args. 7750set dummy ar; ac_word=$2 7751{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7753if test "${ac_cv_prog_AR+set}" = set; then 7754 echo $ECHO_N "(cached) $ECHO_C" >&6 7755else 7756 if test -n "$AR"; then 7757 ac_cv_prog_AR="$AR" # Let the user override the test. 7758else 7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7760for as_dir in $PATH 7761do 7762 IFS=$as_save_IFS 7763 test -z "$as_dir" && as_dir=. 7764 for ac_exec_ext in '' $ac_executable_extensions; do 7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7766 ac_cv_prog_AR="ar" 7767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7768 break 2 7769 fi 7770done 7771done 7772IFS=$as_save_IFS 7773 7774fi 7775fi 7776AR=$ac_cv_prog_AR 7777if test -n "$AR"; then 7778 { echo "$as_me:$LINENO: result: $AR" >&5 7779echo "${ECHO_T}$AR" >&6; } 7780else 7781 { echo "$as_me:$LINENO: result: no" >&5 7782echo "${ECHO_T}no" >&6; } 7783fi 7784 7785 7786 STLIB_LD='${AR} cr' 7787 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7788 if test "x$SHLIB_VERSION" = x; then 7789 SHLIB_VERSION="1.0" 7790fi 7791 7792 case $system in 7793 # TEA specific: 7794 windows) 7795 # This is a 2-stage check to make sure we have the 64-bit SDK 7796 # We have to know where the SDK is installed. 7797 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7798 # MACHINE is IX86 for LINK, but this is used by the manifest, 7799 # which requires x86|amd64|ia64. 7800 MACHINE="X86" 7801 if test "$do64bit" != "no" ; then 7802 if test "x${MSSDK}x" = "xx" ; then 7803 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7804 fi 7805 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7806 PATH64="" 7807 case "$do64bit" in 7808 amd64|x64|yes) 7809 MACHINE="AMD64" ; # default to AMD64 64-bit build 7810 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7811 ;; 7812 ia64) 7813 MACHINE="IA64" 7814 PATH64="${MSSDK}/Bin/Win64" 7815 ;; 7816 esac 7817 if test ! -d "${PATH64}" ; then 7818 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7819echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7820 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7821echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7822 do64bit="no" 7823 else 7824 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7825echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 7826 do64bit_ok="yes" 7827 fi 7828 fi 7829 7830 if test "$doWince" != "no" ; then 7831 if test "$do64bit" != "no" ; then 7832 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7833echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7834 { (exit 1); exit 1; }; } 7835 fi 7836 if test "$GCC" = "yes" ; then 7837 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7838echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7839 { (exit 1); exit 1; }; } 7840 fi 7841 7842 # First, look for one uninstalled. 7843 # the alternative search directory is invoked by --with-celib 7844 7845 if test x"${no_celib}" = x ; then 7846 # we reset no_celib in case something fails here 7847 no_celib=true 7848 7849# Check whether --with-celib was given. 7850if test "${with_celib+set}" = set; then 7851 withval=$with_celib; with_celibconfig=${withval} 7852fi 7853 7854 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7855echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 7856 if test "${ac_cv_c_celibconfig+set}" = set; then 7857 echo $ECHO_N "(cached) $ECHO_C" >&6 7858else 7859 7860 # First check to see if --with-celibconfig was specified. 7861 if test x"${with_celibconfig}" != x ; then 7862 if test -d "${with_celibconfig}/inc" ; then 7863 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7864 else 7865 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7866echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7867 { (exit 1); exit 1; }; } 7868 fi 7869 fi 7870 7871 # then check for a celib library 7872 if test x"${ac_cv_c_celibconfig}" = x ; then 7873 for i in \ 7874 ../celib-palm-3.0 \ 7875 ../celib \ 7876 ../../celib-palm-3.0 \ 7877 ../../celib \ 7878 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7879 ${srcdir}/../celib-palm-3.0 \ 7880 ${srcdir}/../celib \ 7881 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7882 ; do 7883 if test -d "$i/inc" ; then 7884 ac_cv_c_celibconfig=`(cd $i; pwd)` 7885 break 7886 fi 7887 done 7888 fi 7889 7890fi 7891 7892 if test x"${ac_cv_c_celibconfig}" = x ; then 7893 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7894echo "$as_me: error: Cannot find celib support library directory" >&2;} 7895 { (exit 1); exit 1; }; } 7896 else 7897 no_celib= 7898 CELIB_DIR=${ac_cv_c_celibconfig} 7899 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7900 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7901echo "${ECHO_T}found $CELIB_DIR" >&6; } 7902 fi 7903 fi 7904 7905 # Set defaults for common evc4/PPC2003 setup 7906 # Currently Tcl requires 300+, possibly 420+ for sockets 7907 CEVERSION=420; # could be 211 300 301 400 420 ... 7908 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7909 ARCH=ARM; # could be ARM MIPS X86EM ... 7910 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7911 if test "$doWince" != "yes"; then 7912 # If !yes then the user specified something 7913 # Reset ARCH to allow user to skip specifying it 7914 ARCH= 7915 eval `echo $doWince | awk -F, '{ \ 7916 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7917 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7918 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7919 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7920 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7921 }'` 7922 if test "x${ARCH}" = "x" ; then 7923 ARCH=$TARGETCPU; 7924 fi 7925 fi 7926 OSVERSION=WCE$CEVERSION; 7927 if test "x${WCEROOT}" = "x" ; then 7928 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7929 if test ! -d "${WCEROOT}" ; then 7930 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7931 fi 7932 fi 7933 if test "x${SDKROOT}" = "x" ; then 7934 SDKROOT="C:/Program Files/Windows CE Tools" 7935 if test ! -d "${SDKROOT}" ; then 7936 SDKROOT="C:/Windows CE Tools" 7937 fi 7938 fi 7939 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7940 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7941 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7942 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7943 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7944echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7945 { (exit 1); exit 1; }; } 7946 doWince="no" 7947 else 7948 # We could PATH_NOSPACE these, but that's not important, 7949 # as long as we quote them when used. 7950 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7951 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7952 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7953 fi 7954 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7955 fi 7956 fi 7957 7958 if test "$GCC" != "yes" ; then 7959 if test "${SHARED_BUILD}" = "0" ; then 7960 runtime=-MT 7961 else 7962 runtime=-MD 7963 fi 7964 7965 if test "$do64bit" != "no" ; then 7966 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7967 CC="\"${PATH64}/cl.exe\"" 7968 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7969 RC="\"${MSSDK}/bin/rc.exe\"" 7970 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7971 LINKBIN="\"${PATH64}/link.exe\"" 7972 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7973 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7974 # Avoid 'unresolved external symbol __security_cookie' 7975 # errors, c.f. http://support.microsoft.com/?id=894573 7976 7977 vars="bufferoverflowU.lib" 7978 for i in $vars; do 7979 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7980 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7981 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7982 fi 7983 PKG_LIBS="$PKG_LIBS $i" 7984 done 7985 7986 7987 elif test "$doWince" != "no" ; then 7988 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7989 if test "${TARGETCPU}" = "X86"; then 7990 CC="\"${CEBINROOT}/cl.exe\"" 7991 else 7992 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7993 fi 7994 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7995 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 7996 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7997 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7998 if test "${SHARED_BUILD}" = "1" ; then 7999 # Static CE builds require static celib as well 8000 defs="${defs} _DLL" 8001 fi 8002 for i in $defs ; do 8003 8004cat >>confdefs.h <<_ACEOF 8005#define $i 1 8006_ACEOF 8007 8008 done 8009 8010cat >>confdefs.h <<_ACEOF 8011#define _WIN32_WCE $CEVERSION 8012_ACEOF 8013 8014 8015cat >>confdefs.h <<_ACEOF 8016#define UNDER_CE $CEVERSION 8017_ACEOF 8018 8019 CFLAGS_DEBUG="-nologo -Zi -Od" 8020 CFLAGS_OPTIMIZE="-nologo -Ox" 8021 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 8022 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 8023 LINKBIN="\"${CEBINROOT}/link.exe\"" 8024 8025 else 8026 RC="rc" 8027 lflags="-nologo" 8028 LINKBIN="link" 8029 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 8030 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8031 fi 8032 fi 8033 8034 if test "$GCC" = "yes"; then 8035 # mingw gcc mode 8036 RC="windres" 8037 CFLAGS_DEBUG="-g" 8038 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8039 SHLIB_LD="$CC -shared" 8040 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8041 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 8042 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 8043 else 8044 SHLIB_LD="${LINKBIN} -dll ${lflags}" 8045 # link -lib only works when -lib is the first arg 8046 STLIB_LD="${LINKBIN} -lib ${lflags}" 8047 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 8048 PATHTYPE=-w 8049 # For information on what debugtype is most useful, see: 8050 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8051 # and also 8052 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 8053 # This essentially turns it all on. 8054 LDFLAGS_DEBUG="-debug -debugtype:cv" 8055 LDFLAGS_OPTIMIZE="-release" 8056 if test "$doWince" != "no" ; then 8057 LDFLAGS_CONSOLE="-link ${lflags}" 8058 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8059 else 8060 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8061 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8062 fi 8063 fi 8064 8065 SHLIB_SUFFIX=".dll" 8066 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8067 8068 TCL_LIB_VERSIONS_OK=nodots 8069 ;; 8070 AIX-*) 8071 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 8072 8073 # AIX requires the _r compiler when gcc isn't being used 8074 case "${CC}" in 8075 *_r|*_r\ *) 8076 # ok ... 8077 ;; 8078 *) 8079 # Make sure only first arg gets _r 8080 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 8081 ;; 8082 esac 8083 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8084echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 8085 8086fi 8087 8088 LIBS="$LIBS -lc" 8089 SHLIB_CFLAGS="" 8090 SHLIB_SUFFIX=".so" 8091 8092 LD_LIBRARY_PATH_VAR="LIBPATH" 8093 8094 # Check to enable 64-bit flags for compiler/linker 8095 if test "$do64bit" = yes; then 8096 8097 if test "$GCC" = yes; then 8098 8099 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8100echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8101 8102else 8103 8104 do64bit_ok=yes 8105 CFLAGS="$CFLAGS -q64" 8106 LDFLAGS_ARCH="-q64" 8107 RANLIB="${RANLIB} -X64" 8108 AR="${AR} -X64" 8109 SHLIB_LD_FLAGS="-b64" 8110 8111fi 8112 8113 8114fi 8115 8116 8117 if test "`uname -m`" = ia64; then 8118 8119 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8120 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8121 if test "$GCC" = yes; then 8122 8123 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8124 8125else 8126 8127 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8128 8129fi 8130 8131 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8132 8133else 8134 8135 if test "$GCC" = yes; then 8136 8137 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8138 8139else 8140 8141 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8142 LDFLAGS="$LDFLAGS -brtl" 8143 8144fi 8145 8146 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8147 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8148 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8149 8150fi 8151 8152 ;; 8153 BeOS*) 8154 SHLIB_CFLAGS="-fPIC" 8155 SHLIB_LD='${CC} -nostart' 8156 SHLIB_SUFFIX=".so" 8157 8158 #----------------------------------------------------------- 8159 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8160 # -lsocket, even if the network functions are in -lnet which 8161 # is always linked to, for compatibility. 8162 #----------------------------------------------------------- 8163 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8164echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8165if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8166 echo $ECHO_N "(cached) $ECHO_C" >&6 8167else 8168 ac_check_lib_save_LIBS=$LIBS 8169LIBS="-lbind $LIBS" 8170cat >conftest.$ac_ext <<_ACEOF 8171/* confdefs.h. */ 8172_ACEOF 8173cat confdefs.h >>conftest.$ac_ext 8174cat >>conftest.$ac_ext <<_ACEOF 8175/* end confdefs.h. */ 8176 8177/* Override any GCC internal prototype to avoid an error. 8178 Use char because int might match the return type of a GCC 8179 builtin and then its argument prototype would still apply. */ 8180#ifdef __cplusplus 8181extern "C" 8182#endif 8183char inet_ntoa (); 8184int 8185main () 8186{ 8187return inet_ntoa (); 8188 ; 8189 return 0; 8190} 8191_ACEOF 8192rm -f conftest.$ac_objext conftest$ac_exeext 8193if { (ac_try="$ac_link" 8194case "(($ac_try" in 8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8196 *) ac_try_echo=$ac_try;; 8197esac 8198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8199 (eval "$ac_link") 2>conftest.er1 8200 ac_status=$? 8201 grep -v '^ *+' conftest.er1 >conftest.err 8202 rm -f conftest.er1 8203 cat conftest.err >&5 8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8205 (exit $ac_status); } && { 8206 test -z "$ac_c_werror_flag" || 8207 test ! -s conftest.err 8208 } && test -s conftest$ac_exeext && 8209 $as_test_x conftest$ac_exeext; then 8210 ac_cv_lib_bind_inet_ntoa=yes 8211else 8212 echo "$as_me: failed program was:" >&5 8213sed 's/^/| /' conftest.$ac_ext >&5 8214 8215 ac_cv_lib_bind_inet_ntoa=no 8216fi 8217 8218rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8219 conftest$ac_exeext conftest.$ac_ext 8220LIBS=$ac_check_lib_save_LIBS 8221fi 8222{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8223echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8224if test $ac_cv_lib_bind_inet_ntoa = yes; then 8225 LIBS="$LIBS -lbind -lsocket" 8226fi 8227 8228 ;; 8229 BSD/OS-4.*) 8230 SHLIB_CFLAGS="-export-dynamic -fPIC" 8231 SHLIB_LD='${CC} -shared' 8232 SHLIB_SUFFIX=".so" 8233 LDFLAGS="$LDFLAGS -export-dynamic" 8234 CC_SEARCH_FLAGS="" 8235 LD_SEARCH_FLAGS="" 8236 ;; 8237 CYGWIN_*) 8238 SHLIB_CFLAGS="" 8239 SHLIB_LD='${CC} -shared' 8240 SHLIB_SUFFIX=".dll" 8241 EXE_SUFFIX=".exe" 8242 CC_SEARCH_FLAGS="" 8243 LD_SEARCH_FLAGS="" 8244 ;; 8245 Haiku*) 8246 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8247 SHLIB_CFLAGS="-fPIC" 8248 SHLIB_SUFFIX=".so" 8249 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8250 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8251echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8252if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8253 echo $ECHO_N "(cached) $ECHO_C" >&6 8254else 8255 ac_check_lib_save_LIBS=$LIBS 8256LIBS="-lnetwork $LIBS" 8257cat >conftest.$ac_ext <<_ACEOF 8258/* confdefs.h. */ 8259_ACEOF 8260cat confdefs.h >>conftest.$ac_ext 8261cat >>conftest.$ac_ext <<_ACEOF 8262/* end confdefs.h. */ 8263 8264/* Override any GCC internal prototype to avoid an error. 8265 Use char because int might match the return type of a GCC 8266 builtin and then its argument prototype would still apply. */ 8267#ifdef __cplusplus 8268extern "C" 8269#endif 8270char inet_ntoa (); 8271int 8272main () 8273{ 8274return inet_ntoa (); 8275 ; 8276 return 0; 8277} 8278_ACEOF 8279rm -f conftest.$ac_objext conftest$ac_exeext 8280if { (ac_try="$ac_link" 8281case "(($ac_try" in 8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8283 *) ac_try_echo=$ac_try;; 8284esac 8285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8286 (eval "$ac_link") 2>conftest.er1 8287 ac_status=$? 8288 grep -v '^ *+' conftest.er1 >conftest.err 8289 rm -f conftest.er1 8290 cat conftest.err >&5 8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8292 (exit $ac_status); } && { 8293 test -z "$ac_c_werror_flag" || 8294 test ! -s conftest.err 8295 } && test -s conftest$ac_exeext && 8296 $as_test_x conftest$ac_exeext; then 8297 ac_cv_lib_network_inet_ntoa=yes 8298else 8299 echo "$as_me: failed program was:" >&5 8300sed 's/^/| /' conftest.$ac_ext >&5 8301 8302 ac_cv_lib_network_inet_ntoa=no 8303fi 8304 8305rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8306 conftest$ac_exeext conftest.$ac_ext 8307LIBS=$ac_check_lib_save_LIBS 8308fi 8309{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8310echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8311if test $ac_cv_lib_network_inet_ntoa = yes; then 8312 LIBS="$LIBS -lnetwork" 8313fi 8314 8315 ;; 8316 HP-UX-*.11.*) 8317 # Use updated header definitions where possible 8318 8319cat >>confdefs.h <<\_ACEOF 8320#define _XOPEN_SOURCE_EXTENDED 1 8321_ACEOF 8322 8323 # TEA specific: Needed by Tcl, but not most extensions 8324 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8325 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8326 8327 if test "`uname -m`" = ia64; then 8328 8329 SHLIB_SUFFIX=".so" 8330 # Use newer C++ library for C++ extensions 8331 #if test "$GCC" != "yes" ; then 8332 # CPPFLAGS="-AA" 8333 #fi 8334 8335else 8336 8337 SHLIB_SUFFIX=".sl" 8338 8339fi 8340 8341 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8342echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8343if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8344 echo $ECHO_N "(cached) $ECHO_C" >&6 8345else 8346 ac_check_lib_save_LIBS=$LIBS 8347LIBS="-ldld $LIBS" 8348cat >conftest.$ac_ext <<_ACEOF 8349/* confdefs.h. */ 8350_ACEOF 8351cat confdefs.h >>conftest.$ac_ext 8352cat >>conftest.$ac_ext <<_ACEOF 8353/* end confdefs.h. */ 8354 8355/* Override any GCC internal prototype to avoid an error. 8356 Use char because int might match the return type of a GCC 8357 builtin and then its argument prototype would still apply. */ 8358#ifdef __cplusplus 8359extern "C" 8360#endif 8361char shl_load (); 8362int 8363main () 8364{ 8365return shl_load (); 8366 ; 8367 return 0; 8368} 8369_ACEOF 8370rm -f conftest.$ac_objext conftest$ac_exeext 8371if { (ac_try="$ac_link" 8372case "(($ac_try" in 8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8374 *) ac_try_echo=$ac_try;; 8375esac 8376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8377 (eval "$ac_link") 2>conftest.er1 8378 ac_status=$? 8379 grep -v '^ *+' conftest.er1 >conftest.err 8380 rm -f conftest.er1 8381 cat conftest.err >&5 8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8383 (exit $ac_status); } && { 8384 test -z "$ac_c_werror_flag" || 8385 test ! -s conftest.err 8386 } && test -s conftest$ac_exeext && 8387 $as_test_x conftest$ac_exeext; then 8388 ac_cv_lib_dld_shl_load=yes 8389else 8390 echo "$as_me: failed program was:" >&5 8391sed 's/^/| /' conftest.$ac_ext >&5 8392 8393 ac_cv_lib_dld_shl_load=no 8394fi 8395 8396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8397 conftest$ac_exeext conftest.$ac_ext 8398LIBS=$ac_check_lib_save_LIBS 8399fi 8400{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8401echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8402if test $ac_cv_lib_dld_shl_load = yes; then 8403 tcl_ok=yes 8404else 8405 tcl_ok=no 8406fi 8407 8408 if test "$tcl_ok" = yes; then 8409 8410 LDFLAGS="$LDFLAGS -E" 8411 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8412 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8413 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8414 8415fi 8416 8417 if test "$GCC" = yes; then 8418 8419 SHLIB_LD='${CC} -shared' 8420 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8421 8422else 8423 8424 CFLAGS="$CFLAGS -z" 8425 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8426 #CFLAGS="$CFLAGS +DAportable" 8427 SHLIB_CFLAGS="+z" 8428 SHLIB_LD="ld -b" 8429 8430fi 8431 8432 8433 # Check to enable 64-bit flags for compiler/linker 8434 if test "$do64bit" = "yes"; then 8435 8436 if test "$GCC" = yes; then 8437 8438 case `${CC} -dumpmachine` in 8439 hppa64*) 8440 # 64-bit gcc in use. Fix flags for GNU ld. 8441 do64bit_ok=yes 8442 SHLIB_LD='${CC} -shared' 8443 if test $doRpath = yes; then 8444 8445 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8446fi 8447 8448 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8449 ;; 8450 *) 8451 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8452echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8453 ;; 8454 esac 8455 8456else 8457 8458 do64bit_ok=yes 8459 CFLAGS="$CFLAGS +DD64" 8460 LDFLAGS_ARCH="+DD64" 8461 8462fi 8463 8464 8465fi 8466 ;; 8467 IRIX-6.*) 8468 SHLIB_CFLAGS="" 8469 SHLIB_LD="ld -n32 -shared -rdata_shared" 8470 SHLIB_SUFFIX=".so" 8471 if test $doRpath = yes; then 8472 8473 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8474 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8475fi 8476 8477 if test "$GCC" = yes; then 8478 8479 CFLAGS="$CFLAGS -mabi=n32" 8480 LDFLAGS="$LDFLAGS -mabi=n32" 8481 8482else 8483 8484 case $system in 8485 IRIX-6.3) 8486 # Use to build 6.2 compatible binaries on 6.3. 8487 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8488 ;; 8489 *) 8490 CFLAGS="$CFLAGS -n32" 8491 ;; 8492 esac 8493 LDFLAGS="$LDFLAGS -n32" 8494 8495fi 8496 8497 ;; 8498 IRIX64-6.*) 8499 SHLIB_CFLAGS="" 8500 SHLIB_LD="ld -n32 -shared -rdata_shared" 8501 SHLIB_SUFFIX=".so" 8502 if test $doRpath = yes; then 8503 8504 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8505 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8506fi 8507 8508 8509 # Check to enable 64-bit flags for compiler/linker 8510 8511 if test "$do64bit" = yes; then 8512 8513 if test "$GCC" = yes; then 8514 8515 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8516echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8517 8518else 8519 8520 do64bit_ok=yes 8521 SHLIB_LD="ld -64 -shared -rdata_shared" 8522 CFLAGS="$CFLAGS -64" 8523 LDFLAGS_ARCH="-64" 8524 8525fi 8526 8527 8528fi 8529 8530 ;; 8531 Linux*) 8532 SHLIB_CFLAGS="-fPIC" 8533 SHLIB_SUFFIX=".so" 8534 8535 # TEA specific: 8536 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8537 8538 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8539 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8540 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8541 if test $doRpath = yes; then 8542 8543 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8544fi 8545 8546 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8547 if test "`uname -m`" = "alpha"; then 8548 CFLAGS="$CFLAGS -mieee" 8549fi 8550 8551 if test $do64bit = yes; then 8552 8553 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8554echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8555if test "${tcl_cv_cc_m64+set}" = set; then 8556 echo $ECHO_N "(cached) $ECHO_C" >&6 8557else 8558 8559 hold_cflags=$CFLAGS 8560 CFLAGS="$CFLAGS -m64" 8561 cat >conftest.$ac_ext <<_ACEOF 8562/* confdefs.h. */ 8563_ACEOF 8564cat confdefs.h >>conftest.$ac_ext 8565cat >>conftest.$ac_ext <<_ACEOF 8566/* end confdefs.h. */ 8567 8568int 8569main () 8570{ 8571 8572 ; 8573 return 0; 8574} 8575_ACEOF 8576rm -f conftest.$ac_objext conftest$ac_exeext 8577if { (ac_try="$ac_link" 8578case "(($ac_try" in 8579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8580 *) ac_try_echo=$ac_try;; 8581esac 8582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8583 (eval "$ac_link") 2>conftest.er1 8584 ac_status=$? 8585 grep -v '^ *+' conftest.er1 >conftest.err 8586 rm -f conftest.er1 8587 cat conftest.err >&5 8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8589 (exit $ac_status); } && { 8590 test -z "$ac_c_werror_flag" || 8591 test ! -s conftest.err 8592 } && test -s conftest$ac_exeext && 8593 $as_test_x conftest$ac_exeext; then 8594 tcl_cv_cc_m64=yes 8595else 8596 echo "$as_me: failed program was:" >&5 8597sed 's/^/| /' conftest.$ac_ext >&5 8598 8599 tcl_cv_cc_m64=no 8600fi 8601 8602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8603 conftest$ac_exeext conftest.$ac_ext 8604 CFLAGS=$hold_cflags 8605fi 8606{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8607echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8608 if test $tcl_cv_cc_m64 = yes; then 8609 8610 CFLAGS="$CFLAGS -m64" 8611 do64bit_ok=yes 8612 8613fi 8614 8615 8616fi 8617 8618 8619 # The combo of gcc + glibc has a bug related to inlining of 8620 # functions like strtod(). The -fno-builtin flag should address 8621 # this problem but it does not work. The -fno-inline flag is kind 8622 # of overkill but it works. Disable inlining only when one of the 8623 # files in compat/*.c is being linked in. 8624 8625 if test x"${USE_COMPAT}" != x; then 8626 CFLAGS="$CFLAGS -fno-inline" 8627fi 8628 8629 8630 ;; 8631 GNU*) 8632 SHLIB_CFLAGS="-fPIC" 8633 SHLIB_SUFFIX=".so" 8634 8635 SHLIB_LD='${CC} -shared' 8636 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8637 CC_SEARCH_FLAGS="" 8638 LD_SEARCH_FLAGS="" 8639 if test "`uname -m`" = "alpha"; then 8640 CFLAGS="$CFLAGS -mieee" 8641fi 8642 8643 ;; 8644 Lynx*) 8645 SHLIB_CFLAGS="-fPIC" 8646 SHLIB_SUFFIX=".so" 8647 CFLAGS_OPTIMIZE=-02 8648 SHLIB_LD='${CC} -shared' 8649 LD_FLAGS="-Wl,--export-dynamic" 8650 if test $doRpath = yes; then 8651 8652 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8653 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8654fi 8655 8656 ;; 8657 OpenBSD-*) 8658 SHLIB_CFLAGS="-fPIC" 8659 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8660 SHLIB_SUFFIX=".so" 8661 if test $doRpath = yes; then 8662 8663 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8664fi 8665 8666 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8667 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8668 { echo "$as_me:$LINENO: checking for ELF" >&5 8669echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8670if test "${tcl_cv_ld_elf+set}" = set; then 8671 echo $ECHO_N "(cached) $ECHO_C" >&6 8672else 8673 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 8681#ifdef __ELF__ 8682 yes 8683#endif 8684 8685_ACEOF 8686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8687 $EGREP "yes" >/dev/null 2>&1; then 8688 tcl_cv_ld_elf=yes 8689else 8690 tcl_cv_ld_elf=no 8691fi 8692rm -f -r conftest* 8693 8694fi 8695{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8696echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8697 if test $tcl_cv_ld_elf = yes; then 8698 8699 LDFLAGS=-Wl,-export-dynamic 8700 8701else 8702 LDFLAGS="" 8703fi 8704 8705 if test "${TCL_THREADS}" = "1"; then 8706 8707 # OpenBSD builds and links with -pthread, never -lpthread. 8708 LIBS=`echo $LIBS | sed s/-lpthread//` 8709 CFLAGS="$CFLAGS -pthread" 8710 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8711 8712fi 8713 8714 # OpenBSD doesn't do version numbers with dots. 8715 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8716 TCL_LIB_VERSIONS_OK=nodots 8717 ;; 8718 NetBSD-*|FreeBSD-[3-4].*) 8719 # FreeBSD 3.* and greater have ELF. 8720 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8721 SHLIB_CFLAGS="-fPIC" 8722 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8723 SHLIB_SUFFIX=".so" 8724 LDFLAGS="$LDFLAGS -export-dynamic" 8725 if test $doRpath = yes; then 8726 8727 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8728fi 8729 8730 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8731 if test "${TCL_THREADS}" = "1"; then 8732 8733 # The -pthread needs to go in the CFLAGS, not LIBS 8734 LIBS=`echo $LIBS | sed s/-pthread//` 8735 CFLAGS="$CFLAGS -pthread" 8736 LDFLAGS="$LDFLAGS -pthread" 8737 8738fi 8739 8740 case $system in 8741 FreeBSD-3.*) 8742 # FreeBSD-3 doesn't handle version numbers with dots. 8743 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8744 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8745 TCL_LIB_VERSIONS_OK=nodots 8746 ;; 8747 esac 8748 ;; 8749 FreeBSD-*) 8750 # This configuration from FreeBSD Ports. 8751 SHLIB_CFLAGS="-fPIC" 8752 SHLIB_LD="${CC} -shared" 8753 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8754 SHLIB_SUFFIX=".so" 8755 LDFLAGS="" 8756 if test $doRpath = yes; then 8757 8758 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8759 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8760fi 8761 8762 if test "${TCL_THREADS}" = "1"; then 8763 8764 # The -pthread needs to go in the LDFLAGS, not LIBS 8765 LIBS=`echo $LIBS | sed s/-pthread//` 8766 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8767 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8768fi 8769 8770 # Version numbers are dot-stripped by system policy. 8771 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8772 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8773 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8774 TCL_LIB_VERSIONS_OK=nodots 8775 ;; 8776 Darwin-*) 8777 CFLAGS_OPTIMIZE="-Os" 8778 SHLIB_CFLAGS="-fno-common" 8779 # To avoid discrepancies between what headers configure sees during 8780 # preprocessing tests and compiling tests, move any -isysroot and 8781 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8782 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8783 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8784 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8785 CFLAGS="`echo " ${CFLAGS}" | \ 8786 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8787 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8788 if test $do64bit = yes; then 8789 8790 case `arch` in 8791 ppc) 8792 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8793echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8794if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8795 echo $ECHO_N "(cached) $ECHO_C" >&6 8796else 8797 8798 hold_cflags=$CFLAGS 8799 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8800 cat >conftest.$ac_ext <<_ACEOF 8801/* confdefs.h. */ 8802_ACEOF 8803cat confdefs.h >>conftest.$ac_ext 8804cat >>conftest.$ac_ext <<_ACEOF 8805/* end confdefs.h. */ 8806 8807int 8808main () 8809{ 8810 8811 ; 8812 return 0; 8813} 8814_ACEOF 8815rm -f conftest.$ac_objext conftest$ac_exeext 8816if { (ac_try="$ac_link" 8817case "(($ac_try" in 8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8819 *) ac_try_echo=$ac_try;; 8820esac 8821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8822 (eval "$ac_link") 2>conftest.er1 8823 ac_status=$? 8824 grep -v '^ *+' conftest.er1 >conftest.err 8825 rm -f conftest.er1 8826 cat conftest.err >&5 8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8828 (exit $ac_status); } && { 8829 test -z "$ac_c_werror_flag" || 8830 test ! -s conftest.err 8831 } && test -s conftest$ac_exeext && 8832 $as_test_x conftest$ac_exeext; then 8833 tcl_cv_cc_arch_ppc64=yes 8834else 8835 echo "$as_me: failed program was:" >&5 8836sed 's/^/| /' conftest.$ac_ext >&5 8837 8838 tcl_cv_cc_arch_ppc64=no 8839fi 8840 8841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8842 conftest$ac_exeext conftest.$ac_ext 8843 CFLAGS=$hold_cflags 8844fi 8845{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8846echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 8847 if test $tcl_cv_cc_arch_ppc64 = yes; then 8848 8849 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8850 do64bit_ok=yes 8851 8852fi 8853;; 8854 i386) 8855 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8856echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 8857if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8858 echo $ECHO_N "(cached) $ECHO_C" >&6 8859else 8860 8861 hold_cflags=$CFLAGS 8862 CFLAGS="$CFLAGS -arch x86_64" 8863 cat >conftest.$ac_ext <<_ACEOF 8864/* confdefs.h. */ 8865_ACEOF 8866cat confdefs.h >>conftest.$ac_ext 8867cat >>conftest.$ac_ext <<_ACEOF 8868/* end confdefs.h. */ 8869 8870int 8871main () 8872{ 8873 8874 ; 8875 return 0; 8876} 8877_ACEOF 8878rm -f conftest.$ac_objext conftest$ac_exeext 8879if { (ac_try="$ac_link" 8880case "(($ac_try" in 8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8882 *) ac_try_echo=$ac_try;; 8883esac 8884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8885 (eval "$ac_link") 2>conftest.er1 8886 ac_status=$? 8887 grep -v '^ *+' conftest.er1 >conftest.err 8888 rm -f conftest.er1 8889 cat conftest.err >&5 8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8891 (exit $ac_status); } && { 8892 test -z "$ac_c_werror_flag" || 8893 test ! -s conftest.err 8894 } && test -s conftest$ac_exeext && 8895 $as_test_x conftest$ac_exeext; then 8896 tcl_cv_cc_arch_x86_64=yes 8897else 8898 echo "$as_me: failed program was:" >&5 8899sed 's/^/| /' conftest.$ac_ext >&5 8900 8901 tcl_cv_cc_arch_x86_64=no 8902fi 8903 8904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8905 conftest$ac_exeext conftest.$ac_ext 8906 CFLAGS=$hold_cflags 8907fi 8908{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8909echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 8910 if test $tcl_cv_cc_arch_x86_64 = yes; then 8911 8912 CFLAGS="$CFLAGS -arch x86_64" 8913 do64bit_ok=yes 8914 8915fi 8916;; 8917 *) 8918 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8919echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8920 esac 8921 8922else 8923 8924 # Check for combined 32-bit and 64-bit fat build 8925 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8926 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8927 8928 fat_32_64=yes 8929fi 8930 8931 8932fi 8933 8934 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8935 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8936 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8937echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 8938if test "${tcl_cv_ld_single_module+set}" = set; then 8939 echo $ECHO_N "(cached) $ECHO_C" >&6 8940else 8941 8942 hold_ldflags=$LDFLAGS 8943 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8944 cat >conftest.$ac_ext <<_ACEOF 8945/* confdefs.h. */ 8946_ACEOF 8947cat confdefs.h >>conftest.$ac_ext 8948cat >>conftest.$ac_ext <<_ACEOF 8949/* end confdefs.h. */ 8950 8951int 8952main () 8953{ 8954int i; 8955 ; 8956 return 0; 8957} 8958_ACEOF 8959rm -f conftest.$ac_objext conftest$ac_exeext 8960if { (ac_try="$ac_link" 8961case "(($ac_try" in 8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8963 *) ac_try_echo=$ac_try;; 8964esac 8965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8966 (eval "$ac_link") 2>conftest.er1 8967 ac_status=$? 8968 grep -v '^ *+' conftest.er1 >conftest.err 8969 rm -f conftest.er1 8970 cat conftest.err >&5 8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8972 (exit $ac_status); } && { 8973 test -z "$ac_c_werror_flag" || 8974 test ! -s conftest.err 8975 } && test -s conftest$ac_exeext && 8976 $as_test_x conftest$ac_exeext; then 8977 tcl_cv_ld_single_module=yes 8978else 8979 echo "$as_me: failed program was:" >&5 8980sed 's/^/| /' conftest.$ac_ext >&5 8981 8982 tcl_cv_ld_single_module=no 8983fi 8984 8985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8986 conftest$ac_exeext conftest.$ac_ext 8987 LDFLAGS=$hold_ldflags 8988fi 8989{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 8990echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 8991 if test $tcl_cv_ld_single_module = yes; then 8992 8993 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8994 8995fi 8996 8997 # TEA specific: link shlib with current and compatiblity version flags 8998 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 8999 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 9000 SHLIB_SUFFIX=".dylib" 9001 # Don't use -prebind when building for Mac OS X 10.4 or later only: 9002 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 9003 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 9004 9005 LDFLAGS="$LDFLAGS -prebind" 9006fi 9007 9008 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 9009 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 9010echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 9011if test "${tcl_cv_ld_search_paths_first+set}" = set; then 9012 echo $ECHO_N "(cached) $ECHO_C" >&6 9013else 9014 9015 hold_ldflags=$LDFLAGS 9016 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9017 cat >conftest.$ac_ext <<_ACEOF 9018/* confdefs.h. */ 9019_ACEOF 9020cat confdefs.h >>conftest.$ac_ext 9021cat >>conftest.$ac_ext <<_ACEOF 9022/* end confdefs.h. */ 9023 9024int 9025main () 9026{ 9027int i; 9028 ; 9029 return 0; 9030} 9031_ACEOF 9032rm -f conftest.$ac_objext conftest$ac_exeext 9033if { (ac_try="$ac_link" 9034case "(($ac_try" in 9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9036 *) ac_try_echo=$ac_try;; 9037esac 9038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9039 (eval "$ac_link") 2>conftest.er1 9040 ac_status=$? 9041 grep -v '^ *+' conftest.er1 >conftest.err 9042 rm -f conftest.er1 9043 cat conftest.err >&5 9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9045 (exit $ac_status); } && { 9046 test -z "$ac_c_werror_flag" || 9047 test ! -s conftest.err 9048 } && test -s conftest$ac_exeext && 9049 $as_test_x conftest$ac_exeext; then 9050 tcl_cv_ld_search_paths_first=yes 9051else 9052 echo "$as_me: failed program was:" >&5 9053sed 's/^/| /' conftest.$ac_ext >&5 9054 9055 tcl_cv_ld_search_paths_first=no 9056fi 9057 9058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9059 conftest$ac_exeext conftest.$ac_ext 9060 LDFLAGS=$hold_ldflags 9061fi 9062{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9063echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 9064 if test $tcl_cv_ld_search_paths_first = yes; then 9065 9066 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9067 9068fi 9069 9070 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9071 9072 9073cat >>confdefs.h <<\_ACEOF 9074#define MODULE_SCOPE __private_extern__ 9075_ACEOF 9076 9077 tcl_cv_cc_visibility_hidden=yes 9078 9079fi 9080 9081 CC_SEARCH_FLAGS="" 9082 LD_SEARCH_FLAGS="" 9083 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9084 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9085 # extensions, verify that 64-bit build is possible. 9086 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9087 9088 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9089 9090 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9091echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 9092if test "${tcl_cv_lib_x11_64+set}" = set; then 9093 echo $ECHO_N "(cached) $ECHO_C" >&6 9094else 9095 9096 for v in CFLAGS CPPFLAGS LDFLAGS; do 9097 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9098 done 9099 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9100 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9101 cat >conftest.$ac_ext <<_ACEOF 9102/* confdefs.h. */ 9103_ACEOF 9104cat confdefs.h >>conftest.$ac_ext 9105cat >>conftest.$ac_ext <<_ACEOF 9106/* end confdefs.h. */ 9107#include <X11/Xlib.h> 9108int 9109main () 9110{ 9111XrmInitialize(); 9112 ; 9113 return 0; 9114} 9115_ACEOF 9116rm -f conftest.$ac_objext conftest$ac_exeext 9117if { (ac_try="$ac_link" 9118case "(($ac_try" in 9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9120 *) ac_try_echo=$ac_try;; 9121esac 9122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9123 (eval "$ac_link") 2>conftest.er1 9124 ac_status=$? 9125 grep -v '^ *+' conftest.er1 >conftest.err 9126 rm -f conftest.er1 9127 cat conftest.err >&5 9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9129 (exit $ac_status); } && { 9130 test -z "$ac_c_werror_flag" || 9131 test ! -s conftest.err 9132 } && test -s conftest$ac_exeext && 9133 $as_test_x conftest$ac_exeext; then 9134 tcl_cv_lib_x11_64=yes 9135else 9136 echo "$as_me: failed program was:" >&5 9137sed 's/^/| /' conftest.$ac_ext >&5 9138 9139 tcl_cv_lib_x11_64=no 9140fi 9141 9142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9143 conftest$ac_exeext conftest.$ac_ext 9144 for v in CFLAGS CPPFLAGS LDFLAGS; do 9145 eval $v'="$hold_'$v'"' 9146 done 9147fi 9148{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9149echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9150 9151fi 9152 9153 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9154 9155 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9156echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9157if test "${tcl_cv_lib_tk_64+set}" = set; then 9158 echo $ECHO_N "(cached) $ECHO_C" >&6 9159else 9160 9161 for v in CFLAGS CPPFLAGS LDFLAGS; do 9162 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9163 done 9164 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9165 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9166 cat >conftest.$ac_ext <<_ACEOF 9167/* confdefs.h. */ 9168_ACEOF 9169cat confdefs.h >>conftest.$ac_ext 9170cat >>conftest.$ac_ext <<_ACEOF 9171/* end confdefs.h. */ 9172#include <tk.h> 9173int 9174main () 9175{ 9176Tk_InitStubs(NULL, "", 0); 9177 ; 9178 return 0; 9179} 9180_ACEOF 9181rm -f conftest.$ac_objext conftest$ac_exeext 9182if { (ac_try="$ac_link" 9183case "(($ac_try" in 9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9185 *) ac_try_echo=$ac_try;; 9186esac 9187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9188 (eval "$ac_link") 2>conftest.er1 9189 ac_status=$? 9190 grep -v '^ *+' conftest.er1 >conftest.err 9191 rm -f conftest.er1 9192 cat conftest.err >&5 9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9194 (exit $ac_status); } && { 9195 test -z "$ac_c_werror_flag" || 9196 test ! -s conftest.err 9197 } && test -s conftest$ac_exeext && 9198 $as_test_x conftest$ac_exeext; then 9199 tcl_cv_lib_tk_64=yes 9200else 9201 echo "$as_me: failed program was:" >&5 9202sed 's/^/| /' conftest.$ac_ext >&5 9203 9204 tcl_cv_lib_tk_64=no 9205fi 9206 9207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9208 conftest$ac_exeext conftest.$ac_ext 9209 for v in CFLAGS CPPFLAGS LDFLAGS; do 9210 eval $v'="$hold_'$v'"' 9211 done 9212fi 9213{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9214echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9215 9216fi 9217 9218 # remove 64-bit arch flags from CFLAGS et al. if configuration 9219 # does not support 64-bit. 9220 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9221 9222 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9223echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9224 for v in CFLAGS CPPFLAGS LDFLAGS; do 9225 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9226 done 9227fi 9228 9229 9230fi 9231 9232 ;; 9233 OS/390-*) 9234 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9235 9236cat >>confdefs.h <<\_ACEOF 9237#define _OE_SOCKETS 1 9238_ACEOF 9239 9240 ;; 9241 OSF1-V*) 9242 # Digital OSF/1 9243 SHLIB_CFLAGS="" 9244 if test "$SHARED_BUILD" = 1; then 9245 9246 SHLIB_LD='ld -shared -expect_unresolved "*"' 9247 9248else 9249 9250 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9251 9252fi 9253 9254 SHLIB_SUFFIX=".so" 9255 if test $doRpath = yes; then 9256 9257 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9258 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9259fi 9260 9261 if test "$GCC" = yes; then 9262 CFLAGS="$CFLAGS -mieee" 9263else 9264 9265 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9266fi 9267 9268 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9269 if test "${TCL_THREADS}" = 1; then 9270 9271 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9272 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9273 LIBS=`echo $LIBS | sed s/-lpthreads//` 9274 if test "$GCC" = yes; then 9275 9276 LIBS="$LIBS -lpthread -lmach -lexc" 9277 9278else 9279 9280 CFLAGS="$CFLAGS -pthread" 9281 LDFLAGS="$LDFLAGS -pthread" 9282 9283fi 9284 9285 9286fi 9287 9288 ;; 9289 QNX-6*) 9290 # QNX RTP 9291 # This may work for all QNX, but it was only reported for v6. 9292 SHLIB_CFLAGS="-fPIC" 9293 SHLIB_LD="ld -Bshareable -x" 9294 SHLIB_LD_LIBS="" 9295 SHLIB_SUFFIX=".so" 9296 CC_SEARCH_FLAGS="" 9297 LD_SEARCH_FLAGS="" 9298 ;; 9299 SCO_SV-3.2*) 9300 if test "$GCC" = yes; then 9301 9302 SHLIB_CFLAGS="-fPIC -melf" 9303 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9304 9305else 9306 9307 SHLIB_CFLAGS="-Kpic -belf" 9308 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9309 9310fi 9311 9312 SHLIB_LD="ld -G" 9313 SHLIB_LD_LIBS="" 9314 SHLIB_SUFFIX=".so" 9315 CC_SEARCH_FLAGS="" 9316 LD_SEARCH_FLAGS="" 9317 ;; 9318 SunOS-5.[0-6]) 9319 # Careful to not let 5.10+ fall into this case 9320 9321 # Note: If _REENTRANT isn't defined, then Solaris 9322 # won't define thread-safe library routines. 9323 9324 9325cat >>confdefs.h <<\_ACEOF 9326#define _REENTRANT 1 9327_ACEOF 9328 9329 9330cat >>confdefs.h <<\_ACEOF 9331#define _POSIX_PTHREAD_SEMANTICS 1 9332_ACEOF 9333 9334 9335 SHLIB_CFLAGS="-KPIC" 9336 SHLIB_SUFFIX=".so" 9337 if test "$GCC" = yes; then 9338 9339 SHLIB_LD='${CC} -shared' 9340 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9341 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9342 9343else 9344 9345 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9346 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9347 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9348 9349fi 9350 9351 ;; 9352 SunOS-5*) 9353 # Note: If _REENTRANT isn't defined, then Solaris 9354 # won't define thread-safe library routines. 9355 9356 9357cat >>confdefs.h <<\_ACEOF 9358#define _REENTRANT 1 9359_ACEOF 9360 9361 9362cat >>confdefs.h <<\_ACEOF 9363#define _POSIX_PTHREAD_SEMANTICS 1 9364_ACEOF 9365 9366 9367 SHLIB_CFLAGS="-KPIC" 9368 9369 # Check to enable 64-bit flags for compiler/linker 9370 if test "$do64bit" = yes; then 9371 9372 arch=`isainfo` 9373 if test "$arch" = "sparcv9 sparc"; then 9374 9375 if test "$GCC" = yes; then 9376 9377 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9378 9379 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9380echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9381 9382else 9383 9384 do64bit_ok=yes 9385 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9386 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9387 SHLIB_CFLAGS="-fPIC" 9388 9389fi 9390 9391 9392else 9393 9394 do64bit_ok=yes 9395 if test "$do64bitVIS" = yes; then 9396 9397 CFLAGS="$CFLAGS -xarch=v9a" 9398 LDFLAGS_ARCH="-xarch=v9a" 9399 9400else 9401 9402 CFLAGS="$CFLAGS -xarch=v9" 9403 LDFLAGS_ARCH="-xarch=v9" 9404 9405fi 9406 9407 # Solaris 64 uses this as well 9408 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9409 9410fi 9411 9412 9413else 9414 if test "$arch" = "amd64 i386"; then 9415 9416 if test "$GCC" = yes; then 9417 9418 case $system in 9419 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9420 do64bit_ok=yes 9421 CFLAGS="$CFLAGS -m64" 9422 LDFLAGS="$LDFLAGS -m64";; 9423 *) 9424 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9425echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9426 esac 9427 9428else 9429 9430 do64bit_ok=yes 9431 case $system in 9432 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9433 CFLAGS="$CFLAGS -m64" 9434 LDFLAGS="$LDFLAGS -m64";; 9435 *) 9436 CFLAGS="$CFLAGS -xarch=amd64" 9437 LDFLAGS="$LDFLAGS -xarch=amd64";; 9438 esac 9439 9440fi 9441 9442 9443else 9444 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9445echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9446fi 9447 9448fi 9449 9450 9451fi 9452 9453 9454 SHLIB_SUFFIX=".so" 9455 if test "$GCC" = yes; then 9456 9457 SHLIB_LD='${CC} -shared' 9458 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9459 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9460 if test "$do64bit_ok" = yes; then 9461 9462 if test "$arch" = "sparcv9 sparc"; then 9463 9464 # We need to specify -static-libgcc or we need to 9465 # add the path to the sparv9 libgcc. 9466 # JH: static-libgcc is necessary for core Tcl, but may 9467 # not be necessary for extensions. 9468 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9469 # for finding sparcv9 libgcc, get the regular libgcc 9470 # path, remove so name and append 'sparcv9' 9471 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9472 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9473 9474else 9475 if test "$arch" = "amd64 i386"; then 9476 9477 # JH: static-libgcc is necessary for core Tcl, but may 9478 # not be necessary for extensions. 9479 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9480 9481fi 9482 9483fi 9484 9485 9486fi 9487 9488 9489else 9490 9491 case $system in 9492 SunOS-5.[1-9][0-9]*) 9493 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9494 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9495 *) 9496 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9497 esac 9498 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9499 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9500 9501fi 9502 9503 ;; 9504 esac 9505 9506 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9507 9508 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9509echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9510 9511fi 9512 9513 9514 9515 9516 # Add in the arch flags late to ensure it wasn't removed. 9517 # Not necessary in TEA, but this is aligned with core 9518 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9519 9520 # If we're running gcc, then change the C flags for compiling shared 9521 # libraries to the right flags for gcc, instead of those for the 9522 # standard manufacturer compiler. 9523 9524 if test "$GCC" = yes; then 9525 9526 case $system in 9527 AIX-*) ;; 9528 BSD/OS*) ;; 9529 CYGWIN_*) ;; 9530 IRIX*) ;; 9531 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9532 Darwin-*) ;; 9533 SCO_SV-3.2*) ;; 9534 windows) ;; 9535 *) SHLIB_CFLAGS="-fPIC" ;; 9536 esac 9537fi 9538 9539 9540 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9541 9542 9543cat >>confdefs.h <<\_ACEOF 9544#define MODULE_SCOPE extern 9545_ACEOF 9546 9547 9548cat >>confdefs.h <<\_ACEOF 9549#define NO_VIZ 9550_ACEOF 9551 9552 9553fi 9554 9555 9556 if test "$SHARED_LIB_SUFFIX" = ""; then 9557 9558 # TEA specific: use PACKAGE_VERSION instead of VERSION 9559 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9560fi 9561 9562 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9563 9564 # TEA specific: use PACKAGE_VERSION instead of VERSION 9565 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9566fi 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 # These must be called after we do the basic CFLAGS checks and 9582 # verify any possible 64-bit or similar switches are necessary 9583 9584 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9585echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9586 tcl_flags="" 9587 9588 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9589 echo $ECHO_N "(cached) $ECHO_C" >&6 9590else 9591 cat >conftest.$ac_ext <<_ACEOF 9592/* confdefs.h. */ 9593_ACEOF 9594cat confdefs.h >>conftest.$ac_ext 9595cat >>conftest.$ac_ext <<_ACEOF 9596/* end confdefs.h. */ 9597#include <stdlib.h> 9598int 9599main () 9600{ 9601char *p = (char *)strtoll; char *q = (char *)strtoull; 9602 ; 9603 return 0; 9604} 9605_ACEOF 9606rm -f conftest.$ac_objext 9607if { (ac_try="$ac_compile" 9608case "(($ac_try" in 9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9610 *) ac_try_echo=$ac_try;; 9611esac 9612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9613 (eval "$ac_compile") 2>conftest.er1 9614 ac_status=$? 9615 grep -v '^ *+' conftest.er1 >conftest.err 9616 rm -f conftest.er1 9617 cat conftest.err >&5 9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9619 (exit $ac_status); } && { 9620 test -z "$ac_c_werror_flag" || 9621 test ! -s conftest.err 9622 } && test -s conftest.$ac_objext; then 9623 tcl_cv_flag__isoc99_source=no 9624else 9625 echo "$as_me: failed program was:" >&5 9626sed 's/^/| /' conftest.$ac_ext >&5 9627 9628 cat >conftest.$ac_ext <<_ACEOF 9629/* confdefs.h. */ 9630_ACEOF 9631cat confdefs.h >>conftest.$ac_ext 9632cat >>conftest.$ac_ext <<_ACEOF 9633/* end confdefs.h. */ 9634#define _ISOC99_SOURCE 1 9635#include <stdlib.h> 9636int 9637main () 9638{ 9639char *p = (char *)strtoll; char *q = (char *)strtoull; 9640 ; 9641 return 0; 9642} 9643_ACEOF 9644rm -f conftest.$ac_objext 9645if { (ac_try="$ac_compile" 9646case "(($ac_try" in 9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9648 *) ac_try_echo=$ac_try;; 9649esac 9650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9651 (eval "$ac_compile") 2>conftest.er1 9652 ac_status=$? 9653 grep -v '^ *+' conftest.er1 >conftest.err 9654 rm -f conftest.er1 9655 cat conftest.err >&5 9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9657 (exit $ac_status); } && { 9658 test -z "$ac_c_werror_flag" || 9659 test ! -s conftest.err 9660 } && test -s conftest.$ac_objext; then 9661 tcl_cv_flag__isoc99_source=yes 9662else 9663 echo "$as_me: failed program was:" >&5 9664sed 's/^/| /' conftest.$ac_ext >&5 9665 9666 tcl_cv_flag__isoc99_source=no 9667fi 9668 9669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9670fi 9671 9672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9673fi 9674 9675 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9676 9677cat >>confdefs.h <<\_ACEOF 9678#define _ISOC99_SOURCE 1 9679_ACEOF 9680 9681 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9682 fi 9683 9684 9685 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9686 echo $ECHO_N "(cached) $ECHO_C" >&6 9687else 9688 cat >conftest.$ac_ext <<_ACEOF 9689/* confdefs.h. */ 9690_ACEOF 9691cat confdefs.h >>conftest.$ac_ext 9692cat >>conftest.$ac_ext <<_ACEOF 9693/* end confdefs.h. */ 9694#include <sys/stat.h> 9695int 9696main () 9697{ 9698struct stat64 buf; int i = stat64("/", &buf); 9699 ; 9700 return 0; 9701} 9702_ACEOF 9703rm -f conftest.$ac_objext 9704if { (ac_try="$ac_compile" 9705case "(($ac_try" in 9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9707 *) ac_try_echo=$ac_try;; 9708esac 9709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9710 (eval "$ac_compile") 2>conftest.er1 9711 ac_status=$? 9712 grep -v '^ *+' conftest.er1 >conftest.err 9713 rm -f conftest.er1 9714 cat conftest.err >&5 9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9716 (exit $ac_status); } && { 9717 test -z "$ac_c_werror_flag" || 9718 test ! -s conftest.err 9719 } && test -s conftest.$ac_objext; then 9720 tcl_cv_flag__largefile64_source=no 9721else 9722 echo "$as_me: failed program was:" >&5 9723sed 's/^/| /' conftest.$ac_ext >&5 9724 9725 cat >conftest.$ac_ext <<_ACEOF 9726/* confdefs.h. */ 9727_ACEOF 9728cat confdefs.h >>conftest.$ac_ext 9729cat >>conftest.$ac_ext <<_ACEOF 9730/* end confdefs.h. */ 9731#define _LARGEFILE64_SOURCE 1 9732#include <sys/stat.h> 9733int 9734main () 9735{ 9736struct stat64 buf; int i = stat64("/", &buf); 9737 ; 9738 return 0; 9739} 9740_ACEOF 9741rm -f conftest.$ac_objext 9742if { (ac_try="$ac_compile" 9743case "(($ac_try" in 9744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9745 *) ac_try_echo=$ac_try;; 9746esac 9747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9748 (eval "$ac_compile") 2>conftest.er1 9749 ac_status=$? 9750 grep -v '^ *+' conftest.er1 >conftest.err 9751 rm -f conftest.er1 9752 cat conftest.err >&5 9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9754 (exit $ac_status); } && { 9755 test -z "$ac_c_werror_flag" || 9756 test ! -s conftest.err 9757 } && test -s conftest.$ac_objext; then 9758 tcl_cv_flag__largefile64_source=yes 9759else 9760 echo "$as_me: failed program was:" >&5 9761sed 's/^/| /' conftest.$ac_ext >&5 9762 9763 tcl_cv_flag__largefile64_source=no 9764fi 9765 9766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9767fi 9768 9769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9770fi 9771 9772 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9773 9774cat >>confdefs.h <<\_ACEOF 9775#define _LARGEFILE64_SOURCE 1 9776_ACEOF 9777 9778 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9779 fi 9780 9781 9782 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9783 echo $ECHO_N "(cached) $ECHO_C" >&6 9784else 9785 cat >conftest.$ac_ext <<_ACEOF 9786/* confdefs.h. */ 9787_ACEOF 9788cat confdefs.h >>conftest.$ac_ext 9789cat >>conftest.$ac_ext <<_ACEOF 9790/* end confdefs.h. */ 9791#include <sys/stat.h> 9792int 9793main () 9794{ 9795char *p = (char *)open64; 9796 ; 9797 return 0; 9798} 9799_ACEOF 9800rm -f conftest.$ac_objext 9801if { (ac_try="$ac_compile" 9802case "(($ac_try" in 9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9804 *) ac_try_echo=$ac_try;; 9805esac 9806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9807 (eval "$ac_compile") 2>conftest.er1 9808 ac_status=$? 9809 grep -v '^ *+' conftest.er1 >conftest.err 9810 rm -f conftest.er1 9811 cat conftest.err >&5 9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9813 (exit $ac_status); } && { 9814 test -z "$ac_c_werror_flag" || 9815 test ! -s conftest.err 9816 } && test -s conftest.$ac_objext; then 9817 tcl_cv_flag__largefile_source64=no 9818else 9819 echo "$as_me: failed program was:" >&5 9820sed 's/^/| /' conftest.$ac_ext >&5 9821 9822 cat >conftest.$ac_ext <<_ACEOF 9823/* confdefs.h. */ 9824_ACEOF 9825cat confdefs.h >>conftest.$ac_ext 9826cat >>conftest.$ac_ext <<_ACEOF 9827/* end confdefs.h. */ 9828#define _LARGEFILE_SOURCE64 1 9829#include <sys/stat.h> 9830int 9831main () 9832{ 9833char *p = (char *)open64; 9834 ; 9835 return 0; 9836} 9837_ACEOF 9838rm -f conftest.$ac_objext 9839if { (ac_try="$ac_compile" 9840case "(($ac_try" in 9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9842 *) ac_try_echo=$ac_try;; 9843esac 9844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9845 (eval "$ac_compile") 2>conftest.er1 9846 ac_status=$? 9847 grep -v '^ *+' conftest.er1 >conftest.err 9848 rm -f conftest.er1 9849 cat conftest.err >&5 9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9851 (exit $ac_status); } && { 9852 test -z "$ac_c_werror_flag" || 9853 test ! -s conftest.err 9854 } && test -s conftest.$ac_objext; then 9855 tcl_cv_flag__largefile_source64=yes 9856else 9857 echo "$as_me: failed program was:" >&5 9858sed 's/^/| /' conftest.$ac_ext >&5 9859 9860 tcl_cv_flag__largefile_source64=no 9861fi 9862 9863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9864fi 9865 9866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9867fi 9868 9869 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9870 9871cat >>confdefs.h <<\_ACEOF 9872#define _LARGEFILE_SOURCE64 1 9873_ACEOF 9874 9875 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9876 fi 9877 9878 if test "x${tcl_flags}" = "x" ; then 9879 { echo "$as_me:$LINENO: result: none" >&5 9880echo "${ECHO_T}none" >&6; } 9881 else 9882 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9883echo "${ECHO_T}${tcl_flags}" >&6; } 9884 fi 9885 9886 9887 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9888echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 9889 if test "${tcl_cv_type_64bit+set}" = set; then 9890 echo $ECHO_N "(cached) $ECHO_C" >&6 9891else 9892 9893 tcl_cv_type_64bit=none 9894 # See if the compiler knows natively about __int64 9895 cat >conftest.$ac_ext <<_ACEOF 9896/* confdefs.h. */ 9897_ACEOF 9898cat confdefs.h >>conftest.$ac_ext 9899cat >>conftest.$ac_ext <<_ACEOF 9900/* end confdefs.h. */ 9901 9902int 9903main () 9904{ 9905__int64 value = (__int64) 0; 9906 ; 9907 return 0; 9908} 9909_ACEOF 9910rm -f conftest.$ac_objext 9911if { (ac_try="$ac_compile" 9912case "(($ac_try" in 9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9914 *) ac_try_echo=$ac_try;; 9915esac 9916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9917 (eval "$ac_compile") 2>conftest.er1 9918 ac_status=$? 9919 grep -v '^ *+' conftest.er1 >conftest.err 9920 rm -f conftest.er1 9921 cat conftest.err >&5 9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9923 (exit $ac_status); } && { 9924 test -z "$ac_c_werror_flag" || 9925 test ! -s conftest.err 9926 } && test -s conftest.$ac_objext; then 9927 tcl_type_64bit=__int64 9928else 9929 echo "$as_me: failed program was:" >&5 9930sed 's/^/| /' conftest.$ac_ext >&5 9931 9932 tcl_type_64bit="long long" 9933fi 9934 9935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9936 # See if we should use long anyway Note that we substitute in the 9937 # type that is our current guess for a 64-bit type inside this check 9938 # program, so it should be modified only carefully... 9939 cat >conftest.$ac_ext <<_ACEOF 9940/* confdefs.h. */ 9941_ACEOF 9942cat confdefs.h >>conftest.$ac_ext 9943cat >>conftest.$ac_ext <<_ACEOF 9944/* end confdefs.h. */ 9945 9946int 9947main () 9948{ 9949switch (0) { 9950 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9951 } 9952 ; 9953 return 0; 9954} 9955_ACEOF 9956rm -f conftest.$ac_objext 9957if { (ac_try="$ac_compile" 9958case "(($ac_try" in 9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9960 *) ac_try_echo=$ac_try;; 9961esac 9962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9963 (eval "$ac_compile") 2>conftest.er1 9964 ac_status=$? 9965 grep -v '^ *+' conftest.er1 >conftest.err 9966 rm -f conftest.er1 9967 cat conftest.err >&5 9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9969 (exit $ac_status); } && { 9970 test -z "$ac_c_werror_flag" || 9971 test ! -s conftest.err 9972 } && test -s conftest.$ac_objext; then 9973 tcl_cv_type_64bit=${tcl_type_64bit} 9974else 9975 echo "$as_me: failed program was:" >&5 9976sed 's/^/| /' conftest.$ac_ext >&5 9977 9978 9979fi 9980 9981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9982fi 9983 9984 if test "${tcl_cv_type_64bit}" = none ; then 9985 9986cat >>confdefs.h <<\_ACEOF 9987#define TCL_WIDE_INT_IS_LONG 1 9988_ACEOF 9989 9990 { echo "$as_me:$LINENO: result: using long" >&5 9991echo "${ECHO_T}using long" >&6; } 9992 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9993 -a "${TEA_PLATFORM}" = "windows" ; then 9994 # TEA specific: We actually want to use the default tcl.h checks in 9995 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 9996 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 9997echo "${ECHO_T}using Tcl header defaults" >&6; } 9998 else 9999 10000cat >>confdefs.h <<_ACEOF 10001#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 10002_ACEOF 10003 10004 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 10005echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 10006 10007 # Now check for auxiliary declarations 10008 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 10009echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 10010if test "${tcl_cv_struct_dirent64+set}" = set; then 10011 echo $ECHO_N "(cached) $ECHO_C" >&6 10012else 10013 10014 cat >conftest.$ac_ext <<_ACEOF 10015/* confdefs.h. */ 10016_ACEOF 10017cat confdefs.h >>conftest.$ac_ext 10018cat >>conftest.$ac_ext <<_ACEOF 10019/* end confdefs.h. */ 10020#include <sys/types.h> 10021#include <sys/dirent.h> 10022int 10023main () 10024{ 10025struct dirent64 p; 10026 ; 10027 return 0; 10028} 10029_ACEOF 10030rm -f conftest.$ac_objext 10031if { (ac_try="$ac_compile" 10032case "(($ac_try" in 10033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10034 *) ac_try_echo=$ac_try;; 10035esac 10036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10037 (eval "$ac_compile") 2>conftest.er1 10038 ac_status=$? 10039 grep -v '^ *+' conftest.er1 >conftest.err 10040 rm -f conftest.er1 10041 cat conftest.err >&5 10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10043 (exit $ac_status); } && { 10044 test -z "$ac_c_werror_flag" || 10045 test ! -s conftest.err 10046 } && test -s conftest.$ac_objext; then 10047 tcl_cv_struct_dirent64=yes 10048else 10049 echo "$as_me: failed program was:" >&5 10050sed 's/^/| /' conftest.$ac_ext >&5 10051 10052 tcl_cv_struct_dirent64=no 10053fi 10054 10055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10056fi 10057{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10058echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 10059 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10060 10061cat >>confdefs.h <<\_ACEOF 10062#define HAVE_STRUCT_DIRENT64 1 10063_ACEOF 10064 10065 fi 10066 10067 { echo "$as_me:$LINENO: checking for struct stat64" >&5 10068echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 10069if test "${tcl_cv_struct_stat64+set}" = set; then 10070 echo $ECHO_N "(cached) $ECHO_C" >&6 10071else 10072 10073 cat >conftest.$ac_ext <<_ACEOF 10074/* confdefs.h. */ 10075_ACEOF 10076cat confdefs.h >>conftest.$ac_ext 10077cat >>conftest.$ac_ext <<_ACEOF 10078/* end confdefs.h. */ 10079#include <sys/stat.h> 10080int 10081main () 10082{ 10083struct stat64 p; 10084 10085 ; 10086 return 0; 10087} 10088_ACEOF 10089rm -f conftest.$ac_objext 10090if { (ac_try="$ac_compile" 10091case "(($ac_try" in 10092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10093 *) ac_try_echo=$ac_try;; 10094esac 10095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10096 (eval "$ac_compile") 2>conftest.er1 10097 ac_status=$? 10098 grep -v '^ *+' conftest.er1 >conftest.err 10099 rm -f conftest.er1 10100 cat conftest.err >&5 10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10102 (exit $ac_status); } && { 10103 test -z "$ac_c_werror_flag" || 10104 test ! -s conftest.err 10105 } && test -s conftest.$ac_objext; then 10106 tcl_cv_struct_stat64=yes 10107else 10108 echo "$as_me: failed program was:" >&5 10109sed 's/^/| /' conftest.$ac_ext >&5 10110 10111 tcl_cv_struct_stat64=no 10112fi 10113 10114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10115fi 10116{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10117echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10118 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10119 10120cat >>confdefs.h <<\_ACEOF 10121#define HAVE_STRUCT_STAT64 1 10122_ACEOF 10123 10124 fi 10125 10126 10127 10128for ac_func in open64 lseek64 10129do 10130as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10131{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10132echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10133if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10134 echo $ECHO_N "(cached) $ECHO_C" >&6 10135else 10136 cat >conftest.$ac_ext <<_ACEOF 10137/* confdefs.h. */ 10138_ACEOF 10139cat confdefs.h >>conftest.$ac_ext 10140cat >>conftest.$ac_ext <<_ACEOF 10141/* end confdefs.h. */ 10142/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10143 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10144#define $ac_func innocuous_$ac_func 10145 10146/* System header to define __stub macros and hopefully few prototypes, 10147 which can conflict with char $ac_func (); below. 10148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10149 <limits.h> exists even on freestanding compilers. */ 10150 10151#ifdef __STDC__ 10152# include <limits.h> 10153#else 10154# include <assert.h> 10155#endif 10156 10157#undef $ac_func 10158 10159/* Override any GCC internal prototype to avoid an error. 10160 Use char because int might match the return type of a GCC 10161 builtin and then its argument prototype would still apply. */ 10162#ifdef __cplusplus 10163extern "C" 10164#endif 10165char $ac_func (); 10166/* The GNU C library defines this for functions which it implements 10167 to always fail with ENOSYS. Some functions are actually named 10168 something starting with __ and the normal name is an alias. */ 10169#if defined __stub_$ac_func || defined __stub___$ac_func 10170choke me 10171#endif 10172 10173int 10174main () 10175{ 10176return $ac_func (); 10177 ; 10178 return 0; 10179} 10180_ACEOF 10181rm -f conftest.$ac_objext conftest$ac_exeext 10182if { (ac_try="$ac_link" 10183case "(($ac_try" in 10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10185 *) ac_try_echo=$ac_try;; 10186esac 10187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10188 (eval "$ac_link") 2>conftest.er1 10189 ac_status=$? 10190 grep -v '^ *+' conftest.er1 >conftest.err 10191 rm -f conftest.er1 10192 cat conftest.err >&5 10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10194 (exit $ac_status); } && { 10195 test -z "$ac_c_werror_flag" || 10196 test ! -s conftest.err 10197 } && test -s conftest$ac_exeext && 10198 $as_test_x conftest$ac_exeext; then 10199 eval "$as_ac_var=yes" 10200else 10201 echo "$as_me: failed program was:" >&5 10202sed 's/^/| /' conftest.$ac_ext >&5 10203 10204 eval "$as_ac_var=no" 10205fi 10206 10207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10208 conftest$ac_exeext conftest.$ac_ext 10209fi 10210ac_res=`eval echo '${'$as_ac_var'}'` 10211 { echo "$as_me:$LINENO: result: $ac_res" >&5 10212echo "${ECHO_T}$ac_res" >&6; } 10213if test `eval echo '${'$as_ac_var'}'` = yes; then 10214 cat >>confdefs.h <<_ACEOF 10215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10216_ACEOF 10217 10218fi 10219done 10220 10221 { echo "$as_me:$LINENO: checking for off64_t" >&5 10222echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10223 if test "${tcl_cv_type_off64_t+set}" = set; then 10224 echo $ECHO_N "(cached) $ECHO_C" >&6 10225else 10226 10227 cat >conftest.$ac_ext <<_ACEOF 10228/* confdefs.h. */ 10229_ACEOF 10230cat confdefs.h >>conftest.$ac_ext 10231cat >>conftest.$ac_ext <<_ACEOF 10232/* end confdefs.h. */ 10233#include <sys/types.h> 10234int 10235main () 10236{ 10237off64_t offset; 10238 10239 ; 10240 return 0; 10241} 10242_ACEOF 10243rm -f conftest.$ac_objext 10244if { (ac_try="$ac_compile" 10245case "(($ac_try" in 10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10247 *) ac_try_echo=$ac_try;; 10248esac 10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10250 (eval "$ac_compile") 2>conftest.er1 10251 ac_status=$? 10252 grep -v '^ *+' conftest.er1 >conftest.err 10253 rm -f conftest.er1 10254 cat conftest.err >&5 10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10256 (exit $ac_status); } && { 10257 test -z "$ac_c_werror_flag" || 10258 test ! -s conftest.err 10259 } && test -s conftest.$ac_objext; then 10260 tcl_cv_type_off64_t=yes 10261else 10262 echo "$as_me: failed program was:" >&5 10263sed 's/^/| /' conftest.$ac_ext >&5 10264 10265 tcl_cv_type_off64_t=no 10266fi 10267 10268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10269fi 10270 10271 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10272 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10273 test "x${ac_cv_func_open64}" = "xyes" ; then 10274 10275cat >>confdefs.h <<\_ACEOF 10276#define HAVE_TYPE_OFF64_T 1 10277_ACEOF 10278 10279 { echo "$as_me:$LINENO: result: yes" >&5 10280echo "${ECHO_T}yes" >&6; } 10281 else 10282 { echo "$as_me:$LINENO: result: no" >&5 10283echo "${ECHO_T}no" >&6; } 10284 fi 10285 fi 10286 10287 10288 10289TDOM_LD_SEARCH_FLAGS=${LD_SEARCH_FLAGS} 10290 10291 10292#-------------------------------------------------------------------- 10293# Set the default compiler switches based on the --enable-symbols option. 10294#-------------------------------------------------------------------- 10295 10296 10297 10298 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10299echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10300 # Check whether --enable-symbols was given. 10301if test "${enable_symbols+set}" = set; then 10302 enableval=$enable_symbols; tcl_ok=$enableval 10303else 10304 tcl_ok=no 10305fi 10306 10307 DBGX="" 10308 if test "$tcl_ok" = "no"; then 10309 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10310 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10311 { echo "$as_me:$LINENO: result: no" >&5 10312echo "${ECHO_T}no" >&6; } 10313 else 10314 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10315 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10316 if test "$tcl_ok" = "yes"; then 10317 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10318echo "${ECHO_T}yes (standard debugging)" >&6; } 10319 fi 10320 fi 10321 # TEA specific: 10322 if test "${TEA_PLATFORM}" != "windows" ; then 10323 LDFLAGS_DEFAULT="${LDFLAGS}" 10324 fi 10325 10326 10327 10328 10329 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10330 10331cat >>confdefs.h <<\_ACEOF 10332#define TCL_MEM_DEBUG 1 10333_ACEOF 10334 10335 fi 10336 10337 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10338 if test "$tcl_ok" = "all"; then 10339 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10340echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10341 else 10342 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10343echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10344 fi 10345 fi 10346 10347 10348#-------------------------------------------------------------------- 10349# Everyone should be linking against the Tcl stub library. If you 10350# can't for some reason, remove this definition. If you aren't using 10351# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10352# link against the non-stubbed Tcl library. Add Tk too if necessary. 10353#-------------------------------------------------------------------- 10354 10355cat >>confdefs.h <<\_ACEOF 10356#define USE_TCL_STUBS 1 10357_ACEOF 10358 10359#AC_DEFINE(USE_TK_STUBS) 10360 10361#-------------------------------------------------------------------- 10362# This macro generates a line to use when building a library. It 10363# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10364# and TEA_LOAD_TCLCONFIG macros above. 10365#-------------------------------------------------------------------- 10366 10367 10368 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10369 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10370 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10371 cat >conftest.$ac_ext <<_ACEOF 10372/* confdefs.h. */ 10373_ACEOF 10374cat confdefs.h >>conftest.$ac_ext 10375cat >>conftest.$ac_ext <<_ACEOF 10376/* end confdefs.h. */ 10377 10378#if defined(_MSC_VER) && _MSC_VER >= 1400 10379print("manifest needed") 10380#endif 10381 10382_ACEOF 10383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10384 $EGREP "manifest needed" >/dev/null 2>&1; then 10385 10386 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 10387 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 10388 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 10389 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 10390 10391 CLEANFILES="$CLEANFILES *.manifest" 10392 10393 10394fi 10395rm -f -r conftest* 10396 10397 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10398 else 10399 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10400 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 10401 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10402 fi 10403 10404 if test "${SHARED_BUILD}" = "1" ; then 10405 MAKE_LIB="${MAKE_SHARED_LIB} " 10406 else 10407 MAKE_LIB="${MAKE_STATIC_LIB} " 10408 fi 10409 10410 #-------------------------------------------------------------------- 10411 # Shared libraries and static libraries have different names. 10412 # Use the double eval to make sure any variables in the suffix is 10413 # substituted. (@@@ Might not be necessary anymore) 10414 #-------------------------------------------------------------------- 10415 10416 if test "${TEA_PLATFORM}" = "windows" ; then 10417 if test "${SHARED_BUILD}" = "1" ; then 10418 # We force the unresolved linking of symbols that are really in 10419 # the private libraries of Tcl and Tk. 10420 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10421 if test x"${TK_BIN_DIR}" != x ; then 10422 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10423 fi 10424 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10425 else 10426 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10427 fi 10428 # Some packages build their own stubs libraries 10429 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10430 if test "$GCC" = "yes"; then 10431 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 10432 fi 10433 # These aren't needed on Windows (either MSVC or gcc) 10434 RANLIB=: 10435 RANLIB_STUB=: 10436 else 10437 RANLIB_STUB="${RANLIB}" 10438 if test "${SHARED_BUILD}" = "1" ; then 10439 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10440 if test x"${TK_BIN_DIR}" != x ; then 10441 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10442 fi 10443 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10444 RANLIB=: 10445 else 10446 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10447 fi 10448 # Some packages build their own stubs libraries 10449 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10450 fi 10451 10452 # These are escaped so that only CFLAGS is picked up at configure time. 10453 # The other values will be substituted at make time. 10454 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10455 if test "${SHARED_BUILD}" = "1" ; then 10456 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10457 fi 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468#-------------------------------------------------------------------- 10469# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 10470# file during the install process. Don't run the TCLSH_PROG through 10471# ${CYGPATH} because it's being used directly by make. 10472# Require that we use a tclsh shell version 8.2 or later since earlier 10473# versions have bugs in the pkg_mkIndex routine. 10474# Add WISH as well if this is a Tk extension. 10475#-------------------------------------------------------------------- 10476 10477 10478 { echo "$as_me:$LINENO: checking for tclsh" >&5 10479echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 10480 if test -f "${TCL_BIN_DIR}/Makefile" ; then 10481 # tclConfig.sh is in Tcl build directory 10482 if test "${TEA_PLATFORM}" = "windows"; then 10483 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10484 else 10485 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 10486 fi 10487 else 10488 # tclConfig.sh is in install location 10489 if test "${TEA_PLATFORM}" = "windows"; then 10490 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10491 else 10492 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10493 fi 10494 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10495 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10496 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10497 for i in $list ; do 10498 if test -f "$i/${TCLSH_PROG}" ; then 10499 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 10500 break 10501 fi 10502 done 10503 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 10504 fi 10505 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10506echo "${ECHO_T}${TCLSH_PROG}" >&6; } 10507 10508 10509#TEA_PROG_WISH 10510 10511#-------------------------------------------------------------------- 10512# Add some private preprocessor options 10513#-------------------------------------------------------------------- 10514 10515 10516 { echo "$as_me:$LINENO: checking whether to enable dtd support" >&5 10517echo $ECHO_N "checking whether to enable dtd support... $ECHO_C" >&6; } 10518 # Check whether --enable-dtd was given. 10519if test "${enable_dtd+set}" = set; then 10520 enableval=$enable_dtd; tcl_ok=$enableval 10521else 10522 tcl_ok=yes 10523fi 10524 10525 10526 if test "${enable_dtd+set}" = set; then 10527 enableval="$enable_dtd" 10528 tcl_ok=$enableval 10529 else 10530 tcl_ok=yes 10531 fi 10532 10533 if test "$tcl_ok" = "yes" ; then 10534 { echo "$as_me:$LINENO: result: yes" >&5 10535echo "${ECHO_T}yes" >&6; } 10536 cat >>confdefs.h <<\_ACEOF 10537#define XML_DTD 1 10538_ACEOF 10539 10540 else 10541 { echo "$as_me:$LINENO: result: no" >&5 10542echo "${ECHO_T}no" >&6; } 10543 fi 10544 10545 10546 { echo "$as_me:$LINENO: checking whether to enable namespace support" >&5 10547echo $ECHO_N "checking whether to enable namespace support... $ECHO_C" >&6; } 10548 # Check whether --enable-ns was given. 10549if test "${enable_ns+set}" = set; then 10550 enableval=$enable_ns; tcl_ok=$enableval 10551else 10552 tcl_ok=yes 10553fi 10554 10555 10556 if test "${enable_ns+set}" = set; then 10557 enableval="$enable_ns" 10558 tcl_ok=$enableval 10559 else 10560 tcl_ok=yes 10561 fi 10562 10563 if test "$tcl_ok" = "yes" ; then 10564 { echo "$as_me:$LINENO: result: yes" >&5 10565echo "${ECHO_T}yes" >&6; } 10566 cat >>confdefs.h <<\_ACEOF 10567#define XML_NS 1 10568_ACEOF 10569 10570 else 10571 { echo "$as_me:$LINENO: result: no" >&5 10572echo "${ECHO_T}no" >&6; } 10573 fi 10574 10575 10576 { echo "$as_me:$LINENO: checking whether to enable built-in unknown command" >&5 10577echo $ECHO_N "checking whether to enable built-in unknown command... $ECHO_C" >&6; } 10578 # Check whether --enable-ucmd was given. 10579if test "${enable_ucmd+set}" = set; then 10580 enableval=$enable_ucmd; tcl_ok=$enableval 10581else 10582 tcl_ok=no 10583fi 10584 10585 10586 if test "${enable_unknown+set}" = set; then 10587 enableval="$enable_unknown" 10588 tcl_ok=$enableval 10589 else 10590 tcl_ok=no 10591 fi 10592 10593 if test "$tcl_ok" = "no" ; then 10594 { echo "$as_me:$LINENO: result: no" >&5 10595echo "${ECHO_T}no" >&6; } 10596 cat >>confdefs.h <<\_ACEOF 10597#define TDOM_NO_UNKNOWN_CMD 1 10598_ACEOF 10599 10600 else 10601 { echo "$as_me:$LINENO: result: yes" >&5 10602echo "${ECHO_T}yes" >&6; } 10603 fi 10604 10605 10606 { echo "$as_me:$LINENO: checking whether to enable tDOMs block allocator" >&5 10607echo $ECHO_N "checking whether to enable tDOMs block allocator... $ECHO_C" >&6; } 10608 # Check whether --enable-tdomalloc was given. 10609if test "${enable_tdomalloc+set}" = set; then 10610 enableval=$enable_tdomalloc; tcl_ok=$enableval 10611else 10612 tcl_ok=no 10613fi 10614 10615 10616 if test "${enable_tdomalloc+set}" = set; then 10617 enableval="$enable_tdomalloc" 10618 tcl_ok=$enableval 10619 else 10620 tcl_ok=no 10621 fi 10622 10623 if test "$tcl_ok" = "yes" ; then 10624 { echo "$as_me:$LINENO: result: yes" >&5 10625echo "${ECHO_T}yes" >&6; } 10626 10627 vars="generic/domalloc.c" 10628 for i in $vars; do 10629 case $i in 10630 \$*) 10631 # allow $-var names 10632 PKG_SOURCES="$PKG_SOURCES $i" 10633 PKG_OBJECTS="$PKG_OBJECTS $i" 10634 ;; 10635 *) 10636 # check for existence - allows for generic/win/unix VPATH 10637 # To add more dirs here (like 'src'), you have to update VPATH 10638 # in Makefile.in as well 10639 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 10640 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 10641 -a ! -f "${srcdir}/macosx/$i" \ 10642 ; then 10643 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 10644echo "$as_me: error: could not find source file '$i'" >&2;} 10645 { (exit 1); exit 1; }; } 10646 fi 10647 PKG_SOURCES="$PKG_SOURCES $i" 10648 # this assumes it is in a VPATH dir 10649 i=`basename $i` 10650 # handle user calling this before or after TEA_SETUP_COMPILER 10651 if test x"${OBJEXT}" != x ; then 10652 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 10653 else 10654 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 10655 fi 10656 PKG_OBJECTS="$PKG_OBJECTS $j" 10657 ;; 10658 esac 10659 done 10660 10661 10662 10663 else 10664 { echo "$as_me:$LINENO: result: no" >&5 10665echo "${ECHO_T}no" >&6; } 10666 cat >>confdefs.h <<\_ACEOF 10667#define USE_NORMAL_ALLOCATOR 1 10668_ACEOF 10669 10670 fi 10671 10672 10673TDOMSHELL=tcldomsh 10674 10675 10676 10677 #-------------------------------------------------------------------- 10678 # These are for ${PACKAGE_NAME}Config.sh 10679 #-------------------------------------------------------------------- 10680 10681 # pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib) 10682 eval pkglibdir="${libdir}/${PACKAGE_NAME}${PACKAGE_VERSION}" 10683 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then 10684 eval PKG_STUB_LIB_FLAG="-l${PACKAGE_NAME}stub${PACKAGE_VERSION}" 10685 else 10686 eval PKG_STUB_LIB_FLAG="-l${PACKAGE_NAME}stub`echo ${PACKAGE_VERSION} | tr -d .`" 10687 fi 10688 PKG_BUILD_STUB_LIB_SPEC="-L`pwd` ${PKG_STUB_LIB_FLAG}" 10689 PKG_STUB_LIB_SPEC="-L${pkglibdir} ${PKG_STUB_LIB_FLAG}" 10690 PKG_BUILD_STUB_LIB_PATH="`pwd`/${PKG_STUB_LIB_FILE}" 10691 PKG_STUB_LIB_PATH="${pkglibdir}/${PKG_STUB_LIB_FILE}" 10692 10693 10694 10695 10696 10697 10698 10699#-------------------------------------------------------------------- 10700# Finally, substitute all of the various values into the Makefile. 10701# You may alternatively have a special pkgIndex.tcl.in or other files 10702# which require substituting th AC variables in. Include these here. 10703#-------------------------------------------------------------------- 10704 10705ac_config_files="$ac_config_files Makefile tdomConfig.sh" 10706 10707cat >confcache <<\_ACEOF 10708# This file is a shell script that caches the results of configure 10709# tests run on this system so they can be shared between configure 10710# scripts and configure runs, see configure's option --config-cache. 10711# It is not useful on other systems. If it contains results you don't 10712# want to keep, you may remove or edit it. 10713# 10714# config.status only pays attention to the cache file if you give it 10715# the --recheck option to rerun configure. 10716# 10717# `ac_cv_env_foo' variables (set or unset) will be overridden when 10718# loading this file, other *unset* `ac_cv_foo' will be assigned the 10719# following values. 10720 10721_ACEOF 10722 10723# The following way of writing the cache mishandles newlines in values, 10724# but we know of no workaround that is simple, portable, and efficient. 10725# So, we kill variables containing newlines. 10726# Ultrix sh set writes to stderr and can't be redirected directly, 10727# and sets the high bit in the cache file unless we assign to the vars. 10728( 10729 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10730 eval ac_val=\$$ac_var 10731 case $ac_val in #( 10732 *${as_nl}*) 10733 case $ac_var in #( 10734 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 10735echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 10736 esac 10737 case $ac_var in #( 10738 _ | IFS | as_nl) ;; #( 10739 *) $as_unset $ac_var ;; 10740 esac ;; 10741 esac 10742 done 10743 10744 (set) 2>&1 | 10745 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10746 *${as_nl}ac_space=\ *) 10747 # `set' does not quote correctly, so add quotes (double-quote 10748 # substitution turns \\\\ into \\, and sed turns \\ into \). 10749 sed -n \ 10750 "s/'/'\\\\''/g; 10751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10752 ;; #( 10753 *) 10754 # `set' quotes correctly as required by POSIX, so do not add quotes. 10755 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10756 ;; 10757 esac | 10758 sort 10759) | 10760 sed ' 10761 /^ac_cv_env_/b end 10762 t clear 10763 :clear 10764 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10765 t end 10766 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10767 :end' >>confcache 10768if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10769 if test -w "$cache_file"; then 10770 test "x$cache_file" != "x/dev/null" && 10771 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 10772echo "$as_me: updating cache $cache_file" >&6;} 10773 cat confcache >$cache_file 10774 else 10775 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10776echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10777 fi 10778fi 10779rm -f confcache 10780 10781test "x$prefix" = xNONE && prefix=$ac_default_prefix 10782# Let make expand exec_prefix. 10783test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10784 10785# Transform confdefs.h into DEFS. 10786# Protect against shell expansion while executing Makefile rules. 10787# Protect against Makefile macro expansion. 10788# 10789# If the first sed substitution is executed (which looks for macros that 10790# take arguments), then branch to the quote section. Otherwise, 10791# look for a macro that doesn't take arguments. 10792ac_script=' 10793t clear 10794:clear 10795s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10796t quote 10797s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10798t quote 10799b any 10800:quote 10801s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10802s/\[/\\&/g 10803s/\]/\\&/g 10804s/\$/$$/g 10805H 10806:any 10807${ 10808 g 10809 s/^\n// 10810 s/\n/ /g 10811 p 10812} 10813' 10814DEFS=`sed -n "$ac_script" confdefs.h` 10815 10816 10817ac_libobjs= 10818ac_ltlibobjs= 10819for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10820 # 1. Remove the extension, and $U if already installed. 10821 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10822 ac_i=`echo "$ac_i" | sed "$ac_script"` 10823 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10824 # will be set to the directory where LIBOBJS objects are built. 10825 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10826 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 10827done 10828LIBOBJS=$ac_libobjs 10829 10830LTLIBOBJS=$ac_ltlibobjs 10831 10832 10833CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 10834 10835: ${CONFIG_STATUS=./config.status} 10836ac_clean_files_save=$ac_clean_files 10837ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10838{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10839echo "$as_me: creating $CONFIG_STATUS" >&6;} 10840cat >$CONFIG_STATUS <<_ACEOF 10841#! $SHELL 10842# Generated by $as_me. 10843# Run this file to recreate the current configuration. 10844# Compiler output produced by configure, useful for debugging 10845# configure, is in config.log if it exists. 10846 10847debug=false 10848ac_cs_recheck=false 10849ac_cs_silent=false 10850SHELL=\${CONFIG_SHELL-$SHELL} 10851_ACEOF 10852 10853cat >>$CONFIG_STATUS <<\_ACEOF 10854## --------------------- ## 10855## M4sh Initialization. ## 10856## --------------------- ## 10857 10858# Be more Bourne compatible 10859DUALCASE=1; export DUALCASE # for MKS sh 10860if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10861 emulate sh 10862 NULLCMD=: 10863 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10864 # is contrary to our usage. Disable this feature. 10865 alias -g '${1+"$@"}'='"$@"' 10866 setopt NO_GLOB_SUBST 10867else 10868 case `(set -o) 2>/dev/null` in 10869 *posix*) set -o posix ;; 10870esac 10871 10872fi 10873 10874 10875 10876 10877# PATH needs CR 10878# Avoid depending upon Character Ranges. 10879as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10880as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10881as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10882as_cr_digits='0123456789' 10883as_cr_alnum=$as_cr_Letters$as_cr_digits 10884 10885# The user is always right. 10886if test "${PATH_SEPARATOR+set}" != set; then 10887 echo "#! /bin/sh" >conf$$.sh 10888 echo "exit 0" >>conf$$.sh 10889 chmod +x conf$$.sh 10890 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10891 PATH_SEPARATOR=';' 10892 else 10893 PATH_SEPARATOR=: 10894 fi 10895 rm -f conf$$.sh 10896fi 10897 10898# Support unset when possible. 10899if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10900 as_unset=unset 10901else 10902 as_unset=false 10903fi 10904 10905 10906# IFS 10907# We need space, tab and new line, in precisely that order. Quoting is 10908# there to prevent editors from complaining about space-tab. 10909# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10910# splitting by setting IFS to empty value.) 10911as_nl=' 10912' 10913IFS=" "" $as_nl" 10914 10915# Find who we are. Look in the path if we contain no directory separator. 10916case $0 in 10917 *[\\/]* ) as_myself=$0 ;; 10918 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10919for as_dir in $PATH 10920do 10921 IFS=$as_save_IFS 10922 test -z "$as_dir" && as_dir=. 10923 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10924done 10925IFS=$as_save_IFS 10926 10927 ;; 10928esac 10929# We did not find ourselves, most probably we were run as `sh COMMAND' 10930# in which case we are not to be found in the path. 10931if test "x$as_myself" = x; then 10932 as_myself=$0 10933fi 10934if test ! -f "$as_myself"; then 10935 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10936 { (exit 1); exit 1; } 10937fi 10938 10939# Work around bugs in pre-3.0 UWIN ksh. 10940for as_var in ENV MAIL MAILPATH 10941do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10942done 10943PS1='$ ' 10944PS2='> ' 10945PS4='+ ' 10946 10947# NLS nuisances. 10948for as_var in \ 10949 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10950 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10951 LC_TELEPHONE LC_TIME 10952do 10953 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 10954 eval $as_var=C; export $as_var 10955 else 10956 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10957 fi 10958done 10959 10960# Required to use basename. 10961if expr a : '\(a\)' >/dev/null 2>&1 && 10962 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10963 as_expr=expr 10964else 10965 as_expr=false 10966fi 10967 10968if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10969 as_basename=basename 10970else 10971 as_basename=false 10972fi 10973 10974 10975# Name of the executable. 10976as_me=`$as_basename -- "$0" || 10977$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10978 X"$0" : 'X\(//\)$' \| \ 10979 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10980echo X/"$0" | 10981 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10982 s//\1/ 10983 q 10984 } 10985 /^X\/\(\/\/\)$/{ 10986 s//\1/ 10987 q 10988 } 10989 /^X\/\(\/\).*/{ 10990 s//\1/ 10991 q 10992 } 10993 s/.*/./; q'` 10994 10995# CDPATH. 10996$as_unset CDPATH 10997 10998 10999 11000 as_lineno_1=$LINENO 11001 as_lineno_2=$LINENO 11002 test "x$as_lineno_1" != "x$as_lineno_2" && 11003 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 11004 11005 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11006 # uniformly replaced by the line number. The first 'sed' inserts a 11007 # line-number line after each line using $LINENO; the second 'sed' 11008 # does the real work. The second script uses 'N' to pair each 11009 # line-number line with the line containing $LINENO, and appends 11010 # trailing '-' during substitution so that $LINENO is not a special 11011 # case at line end. 11012 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11013 # scripts with optimization help from Paolo Bonzini. Blame Lee 11014 # E. McMahon (1931-1989) for sed's syntax. :-) 11015 sed -n ' 11016 p 11017 /[$]LINENO/= 11018 ' <$as_myself | 11019 sed ' 11020 s/[$]LINENO.*/&-/ 11021 t lineno 11022 b 11023 :lineno 11024 N 11025 :loop 11026 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 11027 t loop 11028 s/-\n.*// 11029 ' >$as_me.lineno && 11030 chmod +x "$as_me.lineno" || 11031 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 11032 { (exit 1); exit 1; }; } 11033 11034 # Don't try to exec as it changes $[0], causing all sort of problems 11035 # (the dirname of $[0] is not the place where we might find the 11036 # original and so on. Autoconf is especially sensitive to this). 11037 . "./$as_me.lineno" 11038 # Exit status is that of the last command. 11039 exit 11040} 11041 11042 11043if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11044 as_dirname=dirname 11045else 11046 as_dirname=false 11047fi 11048 11049ECHO_C= ECHO_N= ECHO_T= 11050case `echo -n x` in 11051-n*) 11052 case `echo 'x\c'` in 11053 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11054 *) ECHO_C='\c';; 11055 esac;; 11056*) 11057 ECHO_N='-n';; 11058esac 11059 11060if expr a : '\(a\)' >/dev/null 2>&1 && 11061 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11062 as_expr=expr 11063else 11064 as_expr=false 11065fi 11066 11067rm -f conf$$ conf$$.exe conf$$.file 11068if test -d conf$$.dir; then 11069 rm -f conf$$.dir/conf$$.file 11070else 11071 rm -f conf$$.dir 11072 mkdir conf$$.dir 11073fi 11074echo >conf$$.file 11075if ln -s conf$$.file conf$$ 2>/dev/null; then 11076 as_ln_s='ln -s' 11077 # ... but there are two gotchas: 11078 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11079 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11080 # In both cases, we have to default to `cp -p'. 11081 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11082 as_ln_s='cp -p' 11083elif ln conf$$.file conf$$ 2>/dev/null; then 11084 as_ln_s=ln 11085else 11086 as_ln_s='cp -p' 11087fi 11088rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11089rmdir conf$$.dir 2>/dev/null 11090 11091if mkdir -p . 2>/dev/null; then 11092 as_mkdir_p=: 11093else 11094 test -d ./-p && rmdir ./-p 11095 as_mkdir_p=false 11096fi 11097 11098if test -x / >/dev/null 2>&1; then 11099 as_test_x='test -x' 11100else 11101 if ls -dL / >/dev/null 2>&1; then 11102 as_ls_L_option=L 11103 else 11104 as_ls_L_option= 11105 fi 11106 as_test_x=' 11107 eval sh -c '\'' 11108 if test -d "$1"; then 11109 test -d "$1/."; 11110 else 11111 case $1 in 11112 -*)set "./$1";; 11113 esac; 11114 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 11115 ???[sx]*):;;*)false;;esac;fi 11116 '\'' sh 11117 ' 11118fi 11119as_executable_p=$as_test_x 11120 11121# Sed expression to map a string onto a valid CPP name. 11122as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11123 11124# Sed expression to map a string onto a valid variable name. 11125as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11126 11127 11128exec 6>&1 11129 11130# Save the log message, to keep $[0] and so on meaningful, and to 11131# report actual input values of CONFIG_FILES etc. instead of their 11132# values after options handling. 11133ac_log=" 11134This file was extended by tdom $as_me 0.8.3, which was 11135generated by GNU Autoconf 2.61. Invocation command line was 11136 11137 CONFIG_FILES = $CONFIG_FILES 11138 CONFIG_HEADERS = $CONFIG_HEADERS 11139 CONFIG_LINKS = $CONFIG_LINKS 11140 CONFIG_COMMANDS = $CONFIG_COMMANDS 11141 $ $0 $@ 11142 11143on `(hostname || uname -n) 2>/dev/null | sed 1q` 11144" 11145 11146_ACEOF 11147 11148cat >>$CONFIG_STATUS <<_ACEOF 11149# Files that config.status was made for. 11150config_files="$ac_config_files" 11151 11152_ACEOF 11153 11154cat >>$CONFIG_STATUS <<\_ACEOF 11155ac_cs_usage="\ 11156\`$as_me' instantiates files from templates according to the 11157current configuration. 11158 11159Usage: $0 [OPTIONS] [FILE]... 11160 11161 -h, --help print this help, then exit 11162 -V, --version print version number and configuration settings, then exit 11163 -q, --quiet do not print progress messages 11164 -d, --debug don't remove temporary files 11165 --recheck update $as_me by reconfiguring in the same conditions 11166 --file=FILE[:TEMPLATE] 11167 instantiate the configuration file FILE 11168 11169Configuration files: 11170$config_files 11171 11172Report bugs to <bug-autoconf@gnu.org>." 11173 11174_ACEOF 11175cat >>$CONFIG_STATUS <<_ACEOF 11176ac_cs_version="\\ 11177tdom config.status 0.8.3 11178configured by $0, generated by GNU Autoconf 2.61, 11179 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11180 11181Copyright (C) 2006 Free Software Foundation, Inc. 11182This config.status script is free software; the Free Software Foundation 11183gives unlimited permission to copy, distribute and modify it." 11184 11185ac_pwd='$ac_pwd' 11186srcdir='$srcdir' 11187INSTALL='$INSTALL' 11188_ACEOF 11189 11190cat >>$CONFIG_STATUS <<\_ACEOF 11191# If no file are specified by the user, then we need to provide default 11192# value. By we need to know if files were specified by the user. 11193ac_need_defaults=: 11194while test $# != 0 11195do 11196 case $1 in 11197 --*=*) 11198 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11199 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11200 ac_shift=: 11201 ;; 11202 *) 11203 ac_option=$1 11204 ac_optarg=$2 11205 ac_shift=shift 11206 ;; 11207 esac 11208 11209 case $ac_option in 11210 # Handling of the options. 11211 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11212 ac_cs_recheck=: ;; 11213 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11214 echo "$ac_cs_version"; exit ;; 11215 --debug | --debu | --deb | --de | --d | -d ) 11216 debug=: ;; 11217 --file | --fil | --fi | --f ) 11218 $ac_shift 11219 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11220 ac_need_defaults=false;; 11221 --he | --h | --help | --hel | -h ) 11222 echo "$ac_cs_usage"; exit ;; 11223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11224 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11225 ac_cs_silent=: ;; 11226 11227 # This is an error. 11228 -*) { echo "$as_me: error: unrecognized option: $1 11229Try \`$0 --help' for more information." >&2 11230 { (exit 1); exit 1; }; } ;; 11231 11232 *) ac_config_targets="$ac_config_targets $1" 11233 ac_need_defaults=false ;; 11234 11235 esac 11236 shift 11237done 11238 11239ac_configure_extra_args= 11240 11241if $ac_cs_silent; then 11242 exec 6>/dev/null 11243 ac_configure_extra_args="$ac_configure_extra_args --silent" 11244fi 11245 11246_ACEOF 11247cat >>$CONFIG_STATUS <<_ACEOF 11248if \$ac_cs_recheck; then 11249 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11250 CONFIG_SHELL=$SHELL 11251 export CONFIG_SHELL 11252 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11253fi 11254 11255_ACEOF 11256cat >>$CONFIG_STATUS <<\_ACEOF 11257exec 5>>config.log 11258{ 11259 echo 11260 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11261## Running $as_me. ## 11262_ASBOX 11263 echo "$ac_log" 11264} >&5 11265 11266_ACEOF 11267cat >>$CONFIG_STATUS <<_ACEOF 11268_ACEOF 11269 11270cat >>$CONFIG_STATUS <<\_ACEOF 11271 11272# Handling of arguments. 11273for ac_config_target in $ac_config_targets 11274do 11275 case $ac_config_target in 11276 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11277 "tdomConfig.sh") CONFIG_FILES="$CONFIG_FILES tdomConfig.sh" ;; 11278 11279 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11280echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11281 { (exit 1); exit 1; }; };; 11282 esac 11283done 11284 11285 11286# If the user did not use the arguments to specify the items to instantiate, 11287# then the envvar interface is used. Set only those that are not. 11288# We use the long form for the default assignment because of an extremely 11289# bizarre bug on SunOS 4.1.3. 11290if $ac_need_defaults; then 11291 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11292fi 11293 11294# Have a temporary directory for convenience. Make it in the build tree 11295# simply because there is no reason against having it here, and in addition, 11296# creating and moving files from /tmp can sometimes cause problems. 11297# Hook for its removal unless debugging. 11298# Note that there is a small window in which the directory will not be cleaned: 11299# after its creation but before its name has been assigned to `$tmp'. 11300$debug || 11301{ 11302 tmp= 11303 trap 'exit_status=$? 11304 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 11305' 0 11306 trap '{ (exit 1); exit 1; }' 1 2 13 15 11307} 11308# Create a (secure) tmp directory for tmp files. 11309 11310{ 11311 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11312 test -n "$tmp" && test -d "$tmp" 11313} || 11314{ 11315 tmp=./conf$$-$RANDOM 11316 (umask 077 && mkdir "$tmp") 11317} || 11318{ 11319 echo "$me: cannot create a temporary directory in ." >&2 11320 { (exit 1); exit 1; } 11321} 11322 11323# 11324# Set up the sed scripts for CONFIG_FILES section. 11325# 11326 11327# No need to generate the scripts if there are no CONFIG_FILES. 11328# This happens for instance when ./config.status config.h 11329if test -n "$CONFIG_FILES"; then 11330 11331_ACEOF 11332 11333 11334 11335ac_delim='%!_!# ' 11336for ac_last_try in false false false false false :; do 11337 cat >conf$$subs.sed <<_ACEOF 11338SHELL!$SHELL$ac_delim 11339PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 11340PACKAGE_NAME!$PACKAGE_NAME$ac_delim 11341PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 11342PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 11343PACKAGE_STRING!$PACKAGE_STRING$ac_delim 11344PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 11345exec_prefix!$exec_prefix$ac_delim 11346prefix!$prefix$ac_delim 11347program_transform_name!$program_transform_name$ac_delim 11348bindir!$bindir$ac_delim 11349sbindir!$sbindir$ac_delim 11350libexecdir!$libexecdir$ac_delim 11351datarootdir!$datarootdir$ac_delim 11352datadir!$datadir$ac_delim 11353sysconfdir!$sysconfdir$ac_delim 11354sharedstatedir!$sharedstatedir$ac_delim 11355localstatedir!$localstatedir$ac_delim 11356includedir!$includedir$ac_delim 11357oldincludedir!$oldincludedir$ac_delim 11358docdir!$docdir$ac_delim 11359infodir!$infodir$ac_delim 11360htmldir!$htmldir$ac_delim 11361dvidir!$dvidir$ac_delim 11362pdfdir!$pdfdir$ac_delim 11363psdir!$psdir$ac_delim 11364libdir!$libdir$ac_delim 11365localedir!$localedir$ac_delim 11366mandir!$mandir$ac_delim 11367DEFS!$DEFS$ac_delim 11368ECHO_C!$ECHO_C$ac_delim 11369ECHO_N!$ECHO_N$ac_delim 11370ECHO_T!$ECHO_T$ac_delim 11371LIBS!$LIBS$ac_delim 11372build_alias!$build_alias$ac_delim 11373host_alias!$host_alias$ac_delim 11374target_alias!$target_alias$ac_delim 11375CYGPATH!$CYGPATH$ac_delim 11376EXEEXT!$EXEEXT$ac_delim 11377PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 11378PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 11379PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 11380PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 11381PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 11382PKG_HEADERS!$PKG_HEADERS$ac_delim 11383PKG_INCLUDES!$PKG_INCLUDES$ac_delim 11384PKG_LIBS!$PKG_LIBS$ac_delim 11385PKG_CFLAGS!$PKG_CFLAGS$ac_delim 11386TCL_VERSION!$TCL_VERSION$ac_delim 11387TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 11388TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 11389TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 11390TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 11391TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 11392TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 11393TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 11394TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 11395TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 11396CLEANFILES!$CLEANFILES$ac_delim 11397TCL_LIBS!$TCL_LIBS$ac_delim 11398TCL_DEFS!$TCL_DEFS$ac_delim 11399TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 11400TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 11401TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 11402CC!$CC$ac_delim 11403CFLAGS!$CFLAGS$ac_delim 11404LDFLAGS!$LDFLAGS$ac_delim 11405CPPFLAGS!$CPPFLAGS$ac_delim 11406ac_ct_CC!$ac_ct_CC$ac_delim 11407OBJEXT!$OBJEXT$ac_delim 11408CPP!$CPP$ac_delim 11409INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 11410INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 11411INSTALL_DATA!$INSTALL_DATA$ac_delim 11412SET_MAKE!$SET_MAKE$ac_delim 11413RANLIB!$RANLIB$ac_delim 11414GREP!$GREP$ac_delim 11415EGREP!$EGREP$ac_delim 11416MATH_LIBS!$MATH_LIBS$ac_delim 11417PKG_SOURCES!$PKG_SOURCES$ac_delim 11418PKG_OBJECTS!$PKG_OBJECTS$ac_delim 11419TCL_INCLUDES!$TCL_INCLUDES$ac_delim 11420TCL_THREADS!$TCL_THREADS$ac_delim 11421SHARED_BUILD!$SHARED_BUILD$ac_delim 11422AR!$AR$ac_delim 11423CELIB_DIR!$CELIB_DIR$ac_delim 11424CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 11425CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 11426CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 11427STLIB_LD!$STLIB_LD$ac_delim 11428SHLIB_LD!$SHLIB_LD$ac_delim 11429SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 11430SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 11431LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 11432TDOM_LD_SEARCH_FLAGS!$TDOM_LD_SEARCH_FLAGS$ac_delim 11433CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 11434LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 11435_ACEOF 11436 11437 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 11438 break 11439 elif $ac_last_try; then 11440 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11441echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11442 { (exit 1); exit 1; }; } 11443 else 11444 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11445 fi 11446done 11447 11448ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11449if test -n "$ac_eof"; then 11450 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11451 ac_eof=`expr $ac_eof + 1` 11452fi 11453 11454cat >>$CONFIG_STATUS <<_ACEOF 11455cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11456/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11457_ACEOF 11458sed ' 11459s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11460s/^/s,@/; s/!/@,|#_!!_#|/ 11461:n 11462t n 11463s/'"$ac_delim"'$/,g/; t 11464s/$/\\/; p 11465N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11466' >>$CONFIG_STATUS <conf$$subs.sed 11467rm -f conf$$subs.sed 11468cat >>$CONFIG_STATUS <<_ACEOF 11469CEOF$ac_eof 11470_ACEOF 11471 11472 11473ac_delim='%!_!# ' 11474for ac_last_try in false false false false false :; do 11475 cat >conf$$subs.sed <<_ACEOF 11476TCL_DBGX!$TCL_DBGX$ac_delim 11477MAKE_LIB!$MAKE_LIB$ac_delim 11478MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 11479MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 11480MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 11481RANLIB_STUB!$RANLIB_STUB$ac_delim 11482VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 11483VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 11484TCLSH_PROG!$TCLSH_PROG$ac_delim 11485TDOMSHELL!$TDOMSHELL$ac_delim 11486PKG_BUILD_STUB_LIB_SPEC!$PKG_BUILD_STUB_LIB_SPEC$ac_delim 11487PKG_STUB_LIB_SPEC!$PKG_STUB_LIB_SPEC$ac_delim 11488PKG_BUILD_STUB_LIB_PATH!$PKG_BUILD_STUB_LIB_PATH$ac_delim 11489PKG_STUB_LIB_PATH!$PKG_STUB_LIB_PATH$ac_delim 11490LIBOBJS!$LIBOBJS$ac_delim 11491LTLIBOBJS!$LTLIBOBJS$ac_delim 11492_ACEOF 11493 11494 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then 11495 break 11496 elif $ac_last_try; then 11497 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11498echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11499 { (exit 1); exit 1; }; } 11500 else 11501 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11502 fi 11503done 11504 11505ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11506if test -n "$ac_eof"; then 11507 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11508 ac_eof=`expr $ac_eof + 1` 11509fi 11510 11511cat >>$CONFIG_STATUS <<_ACEOF 11512cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 11513/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 11514_ACEOF 11515sed ' 11516s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11517s/^/s,@/; s/!/@,|#_!!_#|/ 11518:n 11519t n 11520s/'"$ac_delim"'$/,g/; t 11521s/$/\\/; p 11522N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11523' >>$CONFIG_STATUS <conf$$subs.sed 11524rm -f conf$$subs.sed 11525cat >>$CONFIG_STATUS <<_ACEOF 11526:end 11527s/|#_!!_#|//g 11528CEOF$ac_eof 11529_ACEOF 11530 11531 11532# VPATH may cause trouble with some makes, so we remove $(srcdir), 11533# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11534# trailing colons and then remove the whole line if VPATH becomes empty 11535# (actually we leave an empty line to preserve line numbers). 11536if test "x$srcdir" = x.; then 11537 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11538s/:*\$(srcdir):*/:/ 11539s/:*\${srcdir}:*/:/ 11540s/:*@srcdir@:*/:/ 11541s/^\([^=]*=[ ]*\):*/\1/ 11542s/:*$// 11543s/^[^=]*=[ ]*$// 11544}' 11545fi 11546 11547cat >>$CONFIG_STATUS <<\_ACEOF 11548fi # test -n "$CONFIG_FILES" 11549 11550 11551for ac_tag in :F $CONFIG_FILES 11552do 11553 case $ac_tag in 11554 :[FHLC]) ac_mode=$ac_tag; continue;; 11555 esac 11556 case $ac_mode$ac_tag in 11557 :[FHL]*:*);; 11558 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 11559echo "$as_me: error: Invalid tag $ac_tag." >&2;} 11560 { (exit 1); exit 1; }; };; 11561 :[FH]-) ac_tag=-:-;; 11562 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11563 esac 11564 ac_save_IFS=$IFS 11565 IFS=: 11566 set x $ac_tag 11567 IFS=$ac_save_IFS 11568 shift 11569 ac_file=$1 11570 shift 11571 11572 case $ac_mode in 11573 :L) ac_source=$1;; 11574 :[FH]) 11575 ac_file_inputs= 11576 for ac_f 11577 do 11578 case $ac_f in 11579 -) ac_f="$tmp/stdin";; 11580 *) # Look for the file first in the build tree, then in the source tree 11581 # (if the path is not absolute). The absolute path cannot be DOS-style, 11582 # because $ac_f cannot contain `:'. 11583 test -f "$ac_f" || 11584 case $ac_f in 11585 [\\/$]*) false;; 11586 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11587 esac || 11588 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11589echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11590 { (exit 1); exit 1; }; };; 11591 esac 11592 ac_file_inputs="$ac_file_inputs $ac_f" 11593 done 11594 11595 # Let's still pretend it is `configure' which instantiates (i.e., don't 11596 # use $as_me), people would be surprised to read: 11597 # /* config.h. Generated by config.status. */ 11598 configure_input="Generated from "`IFS=: 11599 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 11600 if test x"$ac_file" != x-; then 11601 configure_input="$ac_file. $configure_input" 11602 { echo "$as_me:$LINENO: creating $ac_file" >&5 11603echo "$as_me: creating $ac_file" >&6;} 11604 fi 11605 11606 case $ac_tag in 11607 *:-:* | *:-) cat >"$tmp/stdin";; 11608 esac 11609 ;; 11610 esac 11611 11612 ac_dir=`$as_dirname -- "$ac_file" || 11613$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11614 X"$ac_file" : 'X\(//\)[^/]' \| \ 11615 X"$ac_file" : 'X\(//\)$' \| \ 11616 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11617echo X"$ac_file" | 11618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11619 s//\1/ 11620 q 11621 } 11622 /^X\(\/\/\)[^/].*/{ 11623 s//\1/ 11624 q 11625 } 11626 /^X\(\/\/\)$/{ 11627 s//\1/ 11628 q 11629 } 11630 /^X\(\/\).*/{ 11631 s//\1/ 11632 q 11633 } 11634 s/.*/./; q'` 11635 { as_dir="$ac_dir" 11636 case $as_dir in #( 11637 -*) as_dir=./$as_dir;; 11638 esac 11639 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11640 as_dirs= 11641 while :; do 11642 case $as_dir in #( 11643 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 11644 *) as_qdir=$as_dir;; 11645 esac 11646 as_dirs="'$as_qdir' $as_dirs" 11647 as_dir=`$as_dirname -- "$as_dir" || 11648$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11649 X"$as_dir" : 'X\(//\)[^/]' \| \ 11650 X"$as_dir" : 'X\(//\)$' \| \ 11651 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11652echo X"$as_dir" | 11653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11654 s//\1/ 11655 q 11656 } 11657 /^X\(\/\/\)[^/].*/{ 11658 s//\1/ 11659 q 11660 } 11661 /^X\(\/\/\)$/{ 11662 s//\1/ 11663 q 11664 } 11665 /^X\(\/\).*/{ 11666 s//\1/ 11667 q 11668 } 11669 s/.*/./; q'` 11670 test -d "$as_dir" && break 11671 done 11672 test -z "$as_dirs" || eval "mkdir $as_dirs" 11673 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11674echo "$as_me: error: cannot create directory $as_dir" >&2;} 11675 { (exit 1); exit 1; }; }; } 11676 ac_builddir=. 11677 11678case "$ac_dir" in 11679.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11680*) 11681 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11682 # A ".." for each directory in $ac_dir_suffix. 11683 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 11684 case $ac_top_builddir_sub in 11685 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11686 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11687 esac ;; 11688esac 11689ac_abs_top_builddir=$ac_pwd 11690ac_abs_builddir=$ac_pwd$ac_dir_suffix 11691# for backward compatibility: 11692ac_top_builddir=$ac_top_build_prefix 11693 11694case $srcdir in 11695 .) # We are building in place. 11696 ac_srcdir=. 11697 ac_top_srcdir=$ac_top_builddir_sub 11698 ac_abs_top_srcdir=$ac_pwd ;; 11699 [\\/]* | ?:[\\/]* ) # Absolute name. 11700 ac_srcdir=$srcdir$ac_dir_suffix; 11701 ac_top_srcdir=$srcdir 11702 ac_abs_top_srcdir=$srcdir ;; 11703 *) # Relative name. 11704 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11705 ac_top_srcdir=$ac_top_build_prefix$srcdir 11706 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11707esac 11708ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11709 11710 11711 case $ac_mode in 11712 :F) 11713 # 11714 # CONFIG_FILE 11715 # 11716 11717 case $INSTALL in 11718 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11719 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11720 esac 11721_ACEOF 11722 11723cat >>$CONFIG_STATUS <<\_ACEOF 11724# If the template does not know about datarootdir, expand it. 11725# FIXME: This hack should be removed a few years after 2.60. 11726ac_datarootdir_hack=; ac_datarootdir_seen= 11727 11728case `sed -n '/datarootdir/ { 11729 p 11730 q 11731} 11732/@datadir@/p 11733/@docdir@/p 11734/@infodir@/p 11735/@localedir@/p 11736/@mandir@/p 11737' $ac_file_inputs` in 11738*datarootdir*) ac_datarootdir_seen=yes;; 11739*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11740 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11741echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11742_ACEOF 11743cat >>$CONFIG_STATUS <<_ACEOF 11744 ac_datarootdir_hack=' 11745 s&@datadir@&$datadir&g 11746 s&@docdir@&$docdir&g 11747 s&@infodir@&$infodir&g 11748 s&@localedir@&$localedir&g 11749 s&@mandir@&$mandir&g 11750 s&\\\${datarootdir}&$datarootdir&g' ;; 11751esac 11752_ACEOF 11753 11754# Neutralize VPATH when `$srcdir' = `.'. 11755# Shell code in configure.ac might set extrasub. 11756# FIXME: do we really want to maintain this feature? 11757cat >>$CONFIG_STATUS <<_ACEOF 11758 sed "$ac_vpsub 11759$extrasub 11760_ACEOF 11761cat >>$CONFIG_STATUS <<\_ACEOF 11762:t 11763/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11764s&@configure_input@&$configure_input&;t t 11765s&@top_builddir@&$ac_top_builddir_sub&;t t 11766s&@srcdir@&$ac_srcdir&;t t 11767s&@abs_srcdir@&$ac_abs_srcdir&;t t 11768s&@top_srcdir@&$ac_top_srcdir&;t t 11769s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11770s&@builddir@&$ac_builddir&;t t 11771s&@abs_builddir@&$ac_abs_builddir&;t t 11772s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11773s&@INSTALL@&$ac_INSTALL&;t t 11774$ac_datarootdir_hack 11775" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 11776 11777test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11778 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 11779 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11780 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11781which seems to be undefined. Please make sure it is defined." >&5 11782echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11783which seems to be undefined. Please make sure it is defined." >&2;} 11784 11785 rm -f "$tmp/stdin" 11786 case $ac_file in 11787 -) cat "$tmp/out"; rm -f "$tmp/out";; 11788 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 11789 esac 11790 ;; 11791 11792 11793 11794 esac 11795 11796done # for ac_tag 11797 11798 11799{ (exit 0); exit 0; } 11800_ACEOF 11801chmod +x $CONFIG_STATUS 11802ac_clean_files=$ac_clean_files_save 11803 11804 11805# configure is writing to config.log, and then calls config.status. 11806# config.status does its own redirection, appending to config.log. 11807# Unfortunately, on DOS this fails, as config.log is still kept open 11808# by configure, so config.status won't be able to write to it; its 11809# output is simply discarded. So we exec the FD to /dev/null, 11810# effectively closing config.log, so it can be properly (re)opened and 11811# appended to by config.status. When coming back to configure, we 11812# need to make the FD available again. 11813if test "$no_create" != yes; then 11814 ac_cs_success=: 11815 ac_config_status_args= 11816 test "$silent" = yes && 11817 ac_config_status_args="$ac_config_status_args --quiet" 11818 exec 5>/dev/null 11819 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11820 exec 5>>config.log 11821 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11822 # would make configure fail if this is the last instruction. 11823 $ac_cs_success || { (exit 1); exit 1; } 11824fi 11825 11826