1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for itk 3.4. 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='itk' 574PACKAGE_TARNAME='itk' 575PACKAGE_VERSION='3.4' 576PACKAGE_STRING='itk 3.4' 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 663LN_S 664CONFIG_CLEAN_FILES 665TCL_VERSION 666TCL_PATCH_LEVEL 667TCL_BIN_DIR 668TCL_SRC_DIR 669TCL_LIB_FILE 670TCL_LIB_FLAG 671TCL_LIB_SPEC 672TCL_STUB_LIB_FILE 673TCL_STUB_LIB_FLAG 674TCL_STUB_LIB_SPEC 675CLEANFILES 676TCL_LIBS 677TCL_DEFS 678TCL_EXTRA_CFLAGS 679TCL_LD_FLAGS 680TCL_SHLIB_LD_LIBS 681TK_VERSION 682TK_BIN_DIR 683TK_SRC_DIR 684TK_LIB_FILE 685TK_LIB_FLAG 686TK_LIB_SPEC 687TK_STUB_LIB_FILE 688TK_STUB_LIB_FLAG 689TK_STUB_LIB_SPEC 690TK_LIBS 691TK_XINCLUDES 692itcl_VERSION 693itcl_BIN_DIR 694itcl_SRC_DIR 695itcl_LIB_FILE 696itcl_LIB_SPEC 697itcl_STUB_LIB_FILE 698itcl_STUB_LIB_SPEC 699itcl_STUB_LIB_PATH 700CC 701CFLAGS 702LDFLAGS 703CPPFLAGS 704ac_ct_CC 705OBJEXT 706CPP 707INSTALL_PROGRAM 708INSTALL_SCRIPT 709INSTALL_DATA 710SET_MAKE 711RANLIB 712GREP 713EGREP 714MATH_LIBS 715PKG_SOURCES 716PKG_OBJECTS 717TCL_INCLUDES 718TCL_TOP_DIR_NATIVE 719TK_INCLUDES 720TK_TOP_DIR_NATIVE 721TK_XLIB_DIR_NATIVE 722XMKMF 723SHARED_BUILD 724AR 725CELIB_DIR 726CFLAGS_DEBUG 727CFLAGS_OPTIMIZE 728CFLAGS_WARNING 729STLIB_LD 730SHLIB_LD 731SHLIB_LD_LIBS 732SHLIB_CFLAGS 733LD_LIBRARY_PATH_VAR 734CFLAGS_DEFAULT 735LDFLAGS_DEFAULT 736TCL_DBGX 737MAKE_LIB 738MAKE_SHARED_LIB 739MAKE_STATIC_LIB 740MAKE_STUB_LIB 741RANLIB_STUB 742VC_MANIFEST_EMBED_DLL 743VC_MANIFEST_EMBED_EXE 744itkstub_LIB_FILE 745itk_LIB_FILE 746TCLSH_PROG 747WISH_PROG 748LIBOBJS 749LTLIBOBJS' 750ac_subst_files='' 751 ac_precious_vars='build_alias 752host_alias 753target_alias 754CC 755CFLAGS 756LDFLAGS 757LIBS 758CPPFLAGS 759CPP 760XMKMF' 761 762 763# Initialize some variables set by options. 764ac_init_help= 765ac_init_version=false 766# The variables have the same names as the options, with 767# dashes changed to underlines. 768cache_file=/dev/null 769exec_prefix=NONE 770no_create= 771no_recursion= 772prefix=NONE 773program_prefix=NONE 774program_suffix=NONE 775program_transform_name=s,x,x, 776silent= 777site= 778srcdir= 779verbose= 780x_includes=NONE 781x_libraries=NONE 782 783# Installation directory options. 784# These are left unexpanded so users can "make install exec_prefix=/foo" 785# and all the variables that are supposed to be based on exec_prefix 786# by default will actually change. 787# Use braces instead of parens because sh, perl, etc. also accept them. 788# (The list follows the same order as the GNU Coding Standards.) 789bindir='${exec_prefix}/bin' 790sbindir='${exec_prefix}/sbin' 791libexecdir='${exec_prefix}/libexec' 792datarootdir='${prefix}/share' 793datadir='${datarootdir}' 794sysconfdir='${prefix}/etc' 795sharedstatedir='${prefix}/com' 796localstatedir='${prefix}/var' 797includedir='${prefix}/include' 798oldincludedir='/usr/include' 799docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 800infodir='${datarootdir}/info' 801htmldir='${docdir}' 802dvidir='${docdir}' 803pdfdir='${docdir}' 804psdir='${docdir}' 805libdir='${exec_prefix}/lib' 806localedir='${datarootdir}/locale' 807mandir='${datarootdir}/man' 808 809ac_prev= 810ac_dashdash= 811for ac_option 812do 813 # If the previous option needs an argument, assign it. 814 if test -n "$ac_prev"; then 815 eval $ac_prev=\$ac_option 816 ac_prev= 817 continue 818 fi 819 820 case $ac_option in 821 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 822 *) ac_optarg=yes ;; 823 esac 824 825 # Accept the important Cygnus configure options, so we can diagnose typos. 826 827 case $ac_dashdash$ac_option in 828 --) 829 ac_dashdash=yes ;; 830 831 -bindir | --bindir | --bindi | --bind | --bin | --bi) 832 ac_prev=bindir ;; 833 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 834 bindir=$ac_optarg ;; 835 836 -build | --build | --buil | --bui | --bu) 837 ac_prev=build_alias ;; 838 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 839 build_alias=$ac_optarg ;; 840 841 -cache-file | --cache-file | --cache-fil | --cache-fi \ 842 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 843 ac_prev=cache_file ;; 844 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 845 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 846 cache_file=$ac_optarg ;; 847 848 --config-cache | -C) 849 cache_file=config.cache ;; 850 851 -datadir | --datadir | --datadi | --datad) 852 ac_prev=datadir ;; 853 -datadir=* | --datadir=* | --datadi=* | --datad=*) 854 datadir=$ac_optarg ;; 855 856 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 857 | --dataroo | --dataro | --datar) 858 ac_prev=datarootdir ;; 859 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 860 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 861 datarootdir=$ac_optarg ;; 862 863 -disable-* | --disable-*) 864 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 865 # Reject names that are not valid shell variable names. 866 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 867 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 868 { (exit 1); exit 1; }; } 869 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 870 eval enable_$ac_feature=no ;; 871 872 -docdir | --docdir | --docdi | --doc | --do) 873 ac_prev=docdir ;; 874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 875 docdir=$ac_optarg ;; 876 877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 878 ac_prev=dvidir ;; 879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 880 dvidir=$ac_optarg ;; 881 882 -enable-* | --enable-*) 883 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 884 # Reject names that are not valid shell variable names. 885 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 886 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 887 { (exit 1); exit 1; }; } 888 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 889 eval enable_$ac_feature=\$ac_optarg ;; 890 891 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 892 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 893 | --exec | --exe | --ex) 894 ac_prev=exec_prefix ;; 895 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 896 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 897 | --exec=* | --exe=* | --ex=*) 898 exec_prefix=$ac_optarg ;; 899 900 -gas | --gas | --ga | --g) 901 # Obsolete; use --with-gas. 902 with_gas=yes ;; 903 904 -help | --help | --hel | --he | -h) 905 ac_init_help=long ;; 906 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 907 ac_init_help=recursive ;; 908 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 909 ac_init_help=short ;; 910 911 -host | --host | --hos | --ho) 912 ac_prev=host_alias ;; 913 -host=* | --host=* | --hos=* | --ho=*) 914 host_alias=$ac_optarg ;; 915 916 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 917 ac_prev=htmldir ;; 918 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 919 | --ht=*) 920 htmldir=$ac_optarg ;; 921 922 -includedir | --includedir | --includedi | --included | --include \ 923 | --includ | --inclu | --incl | --inc) 924 ac_prev=includedir ;; 925 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 926 | --includ=* | --inclu=* | --incl=* | --inc=*) 927 includedir=$ac_optarg ;; 928 929 -infodir | --infodir | --infodi | --infod | --info | --inf) 930 ac_prev=infodir ;; 931 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 932 infodir=$ac_optarg ;; 933 934 -libdir | --libdir | --libdi | --libd) 935 ac_prev=libdir ;; 936 -libdir=* | --libdir=* | --libdi=* | --libd=*) 937 libdir=$ac_optarg ;; 938 939 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 940 | --libexe | --libex | --libe) 941 ac_prev=libexecdir ;; 942 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 943 | --libexe=* | --libex=* | --libe=*) 944 libexecdir=$ac_optarg ;; 945 946 -localedir | --localedir | --localedi | --localed | --locale) 947 ac_prev=localedir ;; 948 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 949 localedir=$ac_optarg ;; 950 951 -localstatedir | --localstatedir | --localstatedi | --localstated \ 952 | --localstate | --localstat | --localsta | --localst | --locals) 953 ac_prev=localstatedir ;; 954 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 955 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 956 localstatedir=$ac_optarg ;; 957 958 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 959 ac_prev=mandir ;; 960 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 961 mandir=$ac_optarg ;; 962 963 -nfp | --nfp | --nf) 964 # Obsolete; use --without-fp. 965 with_fp=no ;; 966 967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 968 | --no-cr | --no-c | -n) 969 no_create=yes ;; 970 971 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 972 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 973 no_recursion=yes ;; 974 975 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 976 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 977 | --oldin | --oldi | --old | --ol | --o) 978 ac_prev=oldincludedir ;; 979 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 980 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 981 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 982 oldincludedir=$ac_optarg ;; 983 984 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 985 ac_prev=prefix ;; 986 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 987 prefix=$ac_optarg ;; 988 989 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 990 | --program-pre | --program-pr | --program-p) 991 ac_prev=program_prefix ;; 992 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 993 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 994 program_prefix=$ac_optarg ;; 995 996 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 997 | --program-suf | --program-su | --program-s) 998 ac_prev=program_suffix ;; 999 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1000 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1001 program_suffix=$ac_optarg ;; 1002 1003 -program-transform-name | --program-transform-name \ 1004 | --program-transform-nam | --program-transform-na \ 1005 | --program-transform-n | --program-transform- \ 1006 | --program-transform | --program-transfor \ 1007 | --program-transfo | --program-transf \ 1008 | --program-trans | --program-tran \ 1009 | --progr-tra | --program-tr | --program-t) 1010 ac_prev=program_transform_name ;; 1011 -program-transform-name=* | --program-transform-name=* \ 1012 | --program-transform-nam=* | --program-transform-na=* \ 1013 | --program-transform-n=* | --program-transform-=* \ 1014 | --program-transform=* | --program-transfor=* \ 1015 | --program-transfo=* | --program-transf=* \ 1016 | --program-trans=* | --program-tran=* \ 1017 | --progr-tra=* | --program-tr=* | --program-t=*) 1018 program_transform_name=$ac_optarg ;; 1019 1020 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1021 ac_prev=pdfdir ;; 1022 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1023 pdfdir=$ac_optarg ;; 1024 1025 -psdir | --psdir | --psdi | --psd | --ps) 1026 ac_prev=psdir ;; 1027 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1028 psdir=$ac_optarg ;; 1029 1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1031 | -silent | --silent | --silen | --sile | --sil) 1032 silent=yes ;; 1033 1034 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1035 ac_prev=sbindir ;; 1036 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1037 | --sbi=* | --sb=*) 1038 sbindir=$ac_optarg ;; 1039 1040 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1041 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1042 | --sharedst | --shareds | --shared | --share | --shar \ 1043 | --sha | --sh) 1044 ac_prev=sharedstatedir ;; 1045 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1046 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1047 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1048 | --sha=* | --sh=*) 1049 sharedstatedir=$ac_optarg ;; 1050 1051 -site | --site | --sit) 1052 ac_prev=site ;; 1053 -site=* | --site=* | --sit=*) 1054 site=$ac_optarg ;; 1055 1056 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1057 ac_prev=srcdir ;; 1058 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1059 srcdir=$ac_optarg ;; 1060 1061 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1062 | --syscon | --sysco | --sysc | --sys | --sy) 1063 ac_prev=sysconfdir ;; 1064 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1065 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1066 sysconfdir=$ac_optarg ;; 1067 1068 -target | --target | --targe | --targ | --tar | --ta | --t) 1069 ac_prev=target_alias ;; 1070 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1071 target_alias=$ac_optarg ;; 1072 1073 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1074 verbose=yes ;; 1075 1076 -version | --version | --versio | --versi | --vers | -V) 1077 ac_init_version=: ;; 1078 1079 -with-* | --with-*) 1080 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1081 # Reject names that are not valid shell variable names. 1082 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1083 { echo "$as_me: error: invalid package name: $ac_package" >&2 1084 { (exit 1); exit 1; }; } 1085 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1086 eval with_$ac_package=\$ac_optarg ;; 1087 1088 -without-* | --without-*) 1089 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1090 # Reject names that are not valid shell variable names. 1091 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1092 { echo "$as_me: error: invalid package name: $ac_package" >&2 1093 { (exit 1); exit 1; }; } 1094 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1095 eval with_$ac_package=no ;; 1096 1097 --x) 1098 # Obsolete; use --with-x. 1099 with_x=yes ;; 1100 1101 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1102 | --x-incl | --x-inc | --x-in | --x-i) 1103 ac_prev=x_includes ;; 1104 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1105 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1106 x_includes=$ac_optarg ;; 1107 1108 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1109 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1110 ac_prev=x_libraries ;; 1111 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1112 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1113 x_libraries=$ac_optarg ;; 1114 1115 -*) { echo "$as_me: error: unrecognized option: $ac_option 1116Try \`$0 --help' for more information." >&2 1117 { (exit 1); exit 1; }; } 1118 ;; 1119 1120 *=*) 1121 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1122 # Reject names that are not valid shell variable names. 1123 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1124 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1125 { (exit 1); exit 1; }; } 1126 eval $ac_envvar=\$ac_optarg 1127 export $ac_envvar ;; 1128 1129 *) 1130 # FIXME: should be removed in autoconf 3.0. 1131 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1132 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1133 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1134 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1135 ;; 1136 1137 esac 1138done 1139 1140if test -n "$ac_prev"; then 1141 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1142 { echo "$as_me: error: missing argument to $ac_option" >&2 1143 { (exit 1); exit 1; }; } 1144fi 1145 1146# Be sure to have absolute directory names. 1147for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1148 datadir sysconfdir sharedstatedir localstatedir includedir \ 1149 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1150 libdir localedir mandir 1151do 1152 eval ac_val=\$$ac_var 1153 case $ac_val in 1154 [\\/$]* | ?:[\\/]* ) continue;; 1155 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1156 esac 1157 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1158 { (exit 1); exit 1; }; } 1159done 1160 1161# There might be people who depend on the old broken behavior: `$host' 1162# used to hold the argument of --host etc. 1163# FIXME: To remove some day. 1164build=$build_alias 1165host=$host_alias 1166target=$target_alias 1167 1168# FIXME: To remove some day. 1169if test "x$host_alias" != x; then 1170 if test "x$build_alias" = x; then 1171 cross_compiling=maybe 1172 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1173 If a cross compiler is detected then cross compile mode will be used." >&2 1174 elif test "x$build_alias" != "x$host_alias"; then 1175 cross_compiling=yes 1176 fi 1177fi 1178 1179ac_tool_prefix= 1180test -n "$host_alias" && ac_tool_prefix=$host_alias- 1181 1182test "$silent" = yes && exec 6>/dev/null 1183 1184 1185ac_pwd=`pwd` && test -n "$ac_pwd" && 1186ac_ls_di=`ls -di .` && 1187ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1188 { echo "$as_me: error: Working directory cannot be determined" >&2 1189 { (exit 1); exit 1; }; } 1190test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1191 { echo "$as_me: error: pwd does not report name of working directory" >&2 1192 { (exit 1); exit 1; }; } 1193 1194 1195# Find the source files, if location was not specified. 1196if test -z "$srcdir"; then 1197 ac_srcdir_defaulted=yes 1198 # Try the directory containing this script, then the parent directory. 1199 ac_confdir=`$as_dirname -- "$0" || 1200$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1201 X"$0" : 'X\(//\)[^/]' \| \ 1202 X"$0" : 'X\(//\)$' \| \ 1203 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1204echo X"$0" | 1205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1206 s//\1/ 1207 q 1208 } 1209 /^X\(\/\/\)[^/].*/{ 1210 s//\1/ 1211 q 1212 } 1213 /^X\(\/\/\)$/{ 1214 s//\1/ 1215 q 1216 } 1217 /^X\(\/\).*/{ 1218 s//\1/ 1219 q 1220 } 1221 s/.*/./; q'` 1222 srcdir=$ac_confdir 1223 if test ! -r "$srcdir/$ac_unique_file"; then 1224 srcdir=.. 1225 fi 1226else 1227 ac_srcdir_defaulted=no 1228fi 1229if test ! -r "$srcdir/$ac_unique_file"; then 1230 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1231 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1232 { (exit 1); exit 1; }; } 1233fi 1234ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1235ac_abs_confdir=`( 1236 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1237 { (exit 1); exit 1; }; } 1238 pwd)` 1239# When building in place, set srcdir=. 1240if test "$ac_abs_confdir" = "$ac_pwd"; then 1241 srcdir=. 1242fi 1243# Remove unnecessary trailing slashes from srcdir. 1244# Double slashes in file names in object file debugging info 1245# mess up M-x gdb in Emacs. 1246case $srcdir in 1247*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1248esac 1249for ac_var in $ac_precious_vars; do 1250 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1251 eval ac_env_${ac_var}_value=\$${ac_var} 1252 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1253 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1254done 1255 1256# 1257# Report the --help message. 1258# 1259if test "$ac_init_help" = "long"; then 1260 # Omit some internal or obsolete options to make the list less imposing. 1261 # This message is too long to be a string in the A/UX 3.1 sh. 1262 cat <<_ACEOF 1263\`configure' configures itk 3.4 to adapt to many kinds of systems. 1264 1265Usage: $0 [OPTION]... [VAR=VALUE]... 1266 1267To assign environment variables (e.g., CC, CFLAGS...), specify them as 1268VAR=VALUE. See below for descriptions of some of the useful variables. 1269 1270Defaults for the options are specified in brackets. 1271 1272Configuration: 1273 -h, --help display this help and exit 1274 --help=short display options specific to this package 1275 --help=recursive display the short help of all the included packages 1276 -V, --version display version information and exit 1277 -q, --quiet, --silent do not print \`checking...' messages 1278 --cache-file=FILE cache test results in FILE [disabled] 1279 -C, --config-cache alias for \`--cache-file=config.cache' 1280 -n, --no-create do not create output files 1281 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1282 1283Installation directories: 1284 --prefix=PREFIX install architecture-independent files in PREFIX 1285 [$ac_default_prefix] 1286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1287 [PREFIX] 1288 1289By default, \`make install' will install all the files in 1290\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1291an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1292for instance \`--prefix=\$HOME'. 1293 1294For better control, use the options below. 1295 1296Fine tuning of the installation directories: 1297 --bindir=DIR user executables [EPREFIX/bin] 1298 --sbindir=DIR system admin executables [EPREFIX/sbin] 1299 --libexecdir=DIR program executables [EPREFIX/libexec] 1300 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1301 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1302 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1303 --libdir=DIR object code libraries [EPREFIX/lib] 1304 --includedir=DIR C header files [PREFIX/include] 1305 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1306 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1307 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1308 --infodir=DIR info documentation [DATAROOTDIR/info] 1309 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1310 --mandir=DIR man documentation [DATAROOTDIR/man] 1311 --docdir=DIR documentation root [DATAROOTDIR/doc/itk] 1312 --htmldir=DIR html documentation [DOCDIR] 1313 --dvidir=DIR dvi documentation [DOCDIR] 1314 --pdfdir=DIR pdf documentation [DOCDIR] 1315 --psdir=DIR ps documentation [DOCDIR] 1316_ACEOF 1317 1318 cat <<\_ACEOF 1319 1320X features: 1321 --x-includes=DIR X include files are in DIR 1322 --x-libraries=DIR X library files are in DIR 1323_ACEOF 1324fi 1325 1326if test -n "$ac_init_help"; then 1327 case $ac_init_help in 1328 short | recursive ) echo "Configuration of itk 3.4:";; 1329 esac 1330 cat <<\_ACEOF 1331 1332Optional Features: 1333 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1334 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1335 --enable-shared build and link with shared libraries (default: on) 1336 --enable-64bit enable 64bit support (default: off) 1337 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1338 --disable-rpath disable rpath support (default: on) 1339 --enable-wince enable Win/CE support (where applicable) 1340 --enable-symbols build with debugging symbols (default: off) 1341 1342Optional Packages: 1343 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1344 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1345 --with-tcl directory containing tcl configuration 1346 (tclConfig.sh) 1347 --with-tk directory containing tk configuration (tkConfig.sh) 1348 --with-itcl directory containing itcl configuration (itclConfig.sh) 1349 --with-tclinclude directory containing the public Tcl header files 1350 --with-tkinclude directory containing the public Tk header files 1351 --with-x use the X Window System 1352 --with-celib=DIR use Windows/CE support library from DIR 1353 1354Some influential environment variables: 1355 CC C compiler command 1356 CFLAGS C compiler flags 1357 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1358 nonstandard directory <lib dir> 1359 LIBS libraries to pass to the linker, e.g. -l<library> 1360 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1361 you have headers in a nonstandard directory <include dir> 1362 CPP C preprocessor 1363 XMKMF Path to xmkmf, Makefile generator for X Window System 1364 1365Use these variables to override the choices made by `configure' or to help 1366it to find libraries and programs with nonstandard names/locations. 1367 1368_ACEOF 1369ac_status=$? 1370fi 1371 1372if test "$ac_init_help" = "recursive"; then 1373 # If there are subdirs, report their specific --help. 1374 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1375 test -d "$ac_dir" || continue 1376 ac_builddir=. 1377 1378case "$ac_dir" in 1379.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1380*) 1381 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1382 # A ".." for each directory in $ac_dir_suffix. 1383 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1384 case $ac_top_builddir_sub in 1385 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1386 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1387 esac ;; 1388esac 1389ac_abs_top_builddir=$ac_pwd 1390ac_abs_builddir=$ac_pwd$ac_dir_suffix 1391# for backward compatibility: 1392ac_top_builddir=$ac_top_build_prefix 1393 1394case $srcdir in 1395 .) # We are building in place. 1396 ac_srcdir=. 1397 ac_top_srcdir=$ac_top_builddir_sub 1398 ac_abs_top_srcdir=$ac_pwd ;; 1399 [\\/]* | ?:[\\/]* ) # Absolute name. 1400 ac_srcdir=$srcdir$ac_dir_suffix; 1401 ac_top_srcdir=$srcdir 1402 ac_abs_top_srcdir=$srcdir ;; 1403 *) # Relative name. 1404 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1405 ac_top_srcdir=$ac_top_build_prefix$srcdir 1406 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1407esac 1408ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1409 1410 cd "$ac_dir" || { ac_status=$?; continue; } 1411 # Check for guested configure. 1412 if test -f "$ac_srcdir/configure.gnu"; then 1413 echo && 1414 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1415 elif test -f "$ac_srcdir/configure"; then 1416 echo && 1417 $SHELL "$ac_srcdir/configure" --help=recursive 1418 else 1419 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1420 fi || ac_status=$? 1421 cd "$ac_pwd" || { ac_status=$?; break; } 1422 done 1423fi 1424 1425test -n "$ac_init_help" && exit $ac_status 1426if $ac_init_version; then 1427 cat <<\_ACEOF 1428itk configure 3.4 1429generated by GNU Autoconf 2.61 1430 1431Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14322002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1433This configure script is free software; the Free Software Foundation 1434gives unlimited permission to copy, distribute and modify it. 1435_ACEOF 1436 exit 1437fi 1438cat >config.log <<_ACEOF 1439This file contains any messages produced by compilers while 1440running configure, to aid debugging if configure makes a mistake. 1441 1442It was created by itk $as_me 3.4, which was 1443generated by GNU Autoconf 2.61. Invocation command line was 1444 1445 $ $0 $@ 1446 1447_ACEOF 1448exec 5>>config.log 1449{ 1450cat <<_ASUNAME 1451## --------- ## 1452## Platform. ## 1453## --------- ## 1454 1455hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1456uname -m = `(uname -m) 2>/dev/null || echo unknown` 1457uname -r = `(uname -r) 2>/dev/null || echo unknown` 1458uname -s = `(uname -s) 2>/dev/null || echo unknown` 1459uname -v = `(uname -v) 2>/dev/null || echo unknown` 1460 1461/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1462/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1463 1464/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1465/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1466/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1467/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1468/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1469/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1470/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1471 1472_ASUNAME 1473 1474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1475for as_dir in $PATH 1476do 1477 IFS=$as_save_IFS 1478 test -z "$as_dir" && as_dir=. 1479 echo "PATH: $as_dir" 1480done 1481IFS=$as_save_IFS 1482 1483} >&5 1484 1485cat >&5 <<_ACEOF 1486 1487 1488## ----------- ## 1489## Core tests. ## 1490## ----------- ## 1491 1492_ACEOF 1493 1494 1495# Keep a trace of the command line. 1496# Strip out --no-create and --no-recursion so they do not pile up. 1497# Strip out --silent because we don't want to record it for future runs. 1498# Also quote any args containing shell meta-characters. 1499# Make two passes to allow for proper duplicate-argument suppression. 1500ac_configure_args= 1501ac_configure_args0= 1502ac_configure_args1= 1503ac_must_keep_next=false 1504for ac_pass in 1 2 1505do 1506 for ac_arg 1507 do 1508 case $ac_arg in 1509 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1511 | -silent | --silent | --silen | --sile | --sil) 1512 continue ;; 1513 *\'*) 1514 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1515 esac 1516 case $ac_pass in 1517 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1518 2) 1519 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1520 if test $ac_must_keep_next = true; then 1521 ac_must_keep_next=false # Got value, back to normal. 1522 else 1523 case $ac_arg in 1524 *=* | --config-cache | -C | -disable-* | --disable-* \ 1525 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1526 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1527 | -with-* | --with-* | -without-* | --without-* | --x) 1528 case "$ac_configure_args0 " in 1529 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1530 esac 1531 ;; 1532 -* ) ac_must_keep_next=true ;; 1533 esac 1534 fi 1535 ac_configure_args="$ac_configure_args '$ac_arg'" 1536 ;; 1537 esac 1538 done 1539done 1540$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1541$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1542 1543# When interrupted or exit'd, cleanup temporary files, and complete 1544# config.log. We remove comments because anyway the quotes in there 1545# would cause problems or look ugly. 1546# WARNING: Use '\'' to represent an apostrophe within the trap. 1547# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1548trap 'exit_status=$? 1549 # Save into config.log some information that might help in debugging. 1550 { 1551 echo 1552 1553 cat <<\_ASBOX 1554## ---------------- ## 1555## Cache variables. ## 1556## ---------------- ## 1557_ASBOX 1558 echo 1559 # The following way of writing the cache mishandles newlines in values, 1560( 1561 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1562 eval ac_val=\$$ac_var 1563 case $ac_val in #( 1564 *${as_nl}*) 1565 case $ac_var in #( 1566 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1567echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1568 esac 1569 case $ac_var in #( 1570 _ | IFS | as_nl) ;; #( 1571 *) $as_unset $ac_var ;; 1572 esac ;; 1573 esac 1574 done 1575 (set) 2>&1 | 1576 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1577 *${as_nl}ac_space=\ *) 1578 sed -n \ 1579 "s/'\''/'\''\\\\'\'''\''/g; 1580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1581 ;; #( 1582 *) 1583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1584 ;; 1585 esac | 1586 sort 1587) 1588 echo 1589 1590 cat <<\_ASBOX 1591## ----------------- ## 1592## Output variables. ## 1593## ----------------- ## 1594_ASBOX 1595 echo 1596 for ac_var in $ac_subst_vars 1597 do 1598 eval ac_val=\$$ac_var 1599 case $ac_val in 1600 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1601 esac 1602 echo "$ac_var='\''$ac_val'\''" 1603 done | sort 1604 echo 1605 1606 if test -n "$ac_subst_files"; then 1607 cat <<\_ASBOX 1608## ------------------- ## 1609## File substitutions. ## 1610## ------------------- ## 1611_ASBOX 1612 echo 1613 for ac_var in $ac_subst_files 1614 do 1615 eval ac_val=\$$ac_var 1616 case $ac_val in 1617 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1618 esac 1619 echo "$ac_var='\''$ac_val'\''" 1620 done | sort 1621 echo 1622 fi 1623 1624 if test -s confdefs.h; then 1625 cat <<\_ASBOX 1626## ----------- ## 1627## confdefs.h. ## 1628## ----------- ## 1629_ASBOX 1630 echo 1631 cat confdefs.h 1632 echo 1633 fi 1634 test "$ac_signal" != 0 && 1635 echo "$as_me: caught signal $ac_signal" 1636 echo "$as_me: exit $exit_status" 1637 } >&5 1638 rm -f core *.core core.conftest.* && 1639 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1640 exit $exit_status 1641' 0 1642for ac_signal in 1 2 13 15; do 1643 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1644done 1645ac_signal=0 1646 1647# confdefs.h avoids OS command line length limits that DEFS can exceed. 1648rm -f -r conftest* confdefs.h 1649 1650# Predefined preprocessor variables. 1651 1652cat >>confdefs.h <<_ACEOF 1653#define PACKAGE_NAME "$PACKAGE_NAME" 1654_ACEOF 1655 1656 1657cat >>confdefs.h <<_ACEOF 1658#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1659_ACEOF 1660 1661 1662cat >>confdefs.h <<_ACEOF 1663#define PACKAGE_VERSION "$PACKAGE_VERSION" 1664_ACEOF 1665 1666 1667cat >>confdefs.h <<_ACEOF 1668#define PACKAGE_STRING "$PACKAGE_STRING" 1669_ACEOF 1670 1671 1672cat >>confdefs.h <<_ACEOF 1673#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1674_ACEOF 1675 1676 1677# Let the site file select an alternate cache file if it wants to. 1678# Prefer explicitly selected file to automatically selected ones. 1679if test -n "$CONFIG_SITE"; then 1680 set x "$CONFIG_SITE" 1681elif test "x$prefix" != xNONE; then 1682 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1683else 1684 set x "$ac_default_prefix/share/config.site" \ 1685 "$ac_default_prefix/etc/config.site" 1686fi 1687shift 1688for ac_site_file 1689do 1690 if test -r "$ac_site_file"; then 1691 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1692echo "$as_me: loading site script $ac_site_file" >&6;} 1693 sed 's/^/| /' "$ac_site_file" >&5 1694 . "$ac_site_file" 1695 fi 1696done 1697 1698if test -r "$cache_file"; then 1699 # Some versions of bash will fail to source /dev/null (special 1700 # files actually), so we avoid doing that. 1701 if test -f "$cache_file"; then 1702 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1703echo "$as_me: loading cache $cache_file" >&6;} 1704 case $cache_file in 1705 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1706 *) . "./$cache_file";; 1707 esac 1708 fi 1709else 1710 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1711echo "$as_me: creating cache $cache_file" >&6;} 1712 >$cache_file 1713fi 1714 1715# Check that the precious variables saved in the cache have kept the same 1716# value. 1717ac_cache_corrupted=false 1718for ac_var in $ac_precious_vars; do 1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1720 eval ac_new_set=\$ac_env_${ac_var}_set 1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1722 eval ac_new_val=\$ac_env_${ac_var}_value 1723 case $ac_old_set,$ac_new_set in 1724 set,) 1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1726echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1727 ac_cache_corrupted=: ;; 1728 ,set) 1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1730echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1731 ac_cache_corrupted=: ;; 1732 ,);; 1733 *) 1734 if test "x$ac_old_val" != "x$ac_new_val"; then 1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1736echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1737 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1738echo "$as_me: former value: $ac_old_val" >&2;} 1739 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1740echo "$as_me: current value: $ac_new_val" >&2;} 1741 ac_cache_corrupted=: 1742 fi;; 1743 esac 1744 # Pass precious variables to config.status. 1745 if test "$ac_new_set" = set; then 1746 case $ac_new_val in 1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1748 *) ac_arg=$ac_var=$ac_new_val ;; 1749 esac 1750 case " $ac_configure_args " in 1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1753 esac 1754 fi 1755done 1756if $ac_cache_corrupted; then 1757 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1758echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1759 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1760echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1761 { (exit 1); exit 1; }; } 1762fi 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788ac_ext=c 1789ac_cpp='$CPP $CPPFLAGS' 1790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1792ac_compiler_gnu=$ac_cv_c_compiler_gnu 1793 1794 1795 1796#-------------------------------------------------------------------- 1797# Call TEA_INIT as the first TEA_ macro to set up initial vars. 1798# This will define a ${TEA_PLATFORM} variable == "unix" or "windows" 1799# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. 1800#-------------------------------------------------------------------- 1801 1802 1803 # TEA extensions pass this us the version of TEA they think they 1804 # are compatible with. 1805 TEA_VERSION="3.9" 1806 1807 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1808echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1809 if test x"${PACKAGE_NAME}" = x ; then 1810 { { echo "$as_me:$LINENO: error: 1811The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1812echo "$as_me: error: 1813The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1814 { (exit 1); exit 1; }; } 1815 fi 1816 if test x"3.9" = x ; then 1817 { { echo "$as_me:$LINENO: error: 1818TEA version not specified." >&5 1819echo "$as_me: error: 1820TEA version not specified." >&2;} 1821 { (exit 1); exit 1; }; } 1822 elif test "3.9" != "${TEA_VERSION}" ; then 1823 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1824echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1825 else 1826 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1827echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1828 fi 1829 case "`uname -s`" in 1830 *win32*|*WIN32*|*MINGW32_*) 1831 # Extract the first word of "cygpath", so it can be a program name with args. 1832set dummy cygpath; ac_word=$2 1833{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1835if test "${ac_cv_prog_CYGPATH+set}" = set; then 1836 echo $ECHO_N "(cached) $ECHO_C" >&6 1837else 1838 if test -n "$CYGPATH"; then 1839 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1840else 1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1842for as_dir in $PATH 1843do 1844 IFS=$as_save_IFS 1845 test -z "$as_dir" && as_dir=. 1846 for ac_exec_ext in '' $ac_executable_extensions; do 1847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1848 ac_cv_prog_CYGPATH="cygpath -w" 1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1850 break 2 1851 fi 1852done 1853done 1854IFS=$as_save_IFS 1855 1856 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1857fi 1858fi 1859CYGPATH=$ac_cv_prog_CYGPATH 1860if test -n "$CYGPATH"; then 1861 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1862echo "${ECHO_T}$CYGPATH" >&6; } 1863else 1864 { echo "$as_me:$LINENO: result: no" >&5 1865echo "${ECHO_T}no" >&6; } 1866fi 1867 1868 1869 EXEEXT=".exe" 1870 TEA_PLATFORM="windows" 1871 ;; 1872 *CYGWIN_*) 1873 CYGPATH=echo 1874 EXEEXT=".exe" 1875 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1876 ;; 1877 *) 1878 CYGPATH=echo 1879 EXEEXT="" 1880 TEA_PLATFORM="unix" 1881 ;; 1882 esac 1883 1884 # Check if exec_prefix is set. If not use fall back to prefix. 1885 # Note when adjusted, so that TEA_PREFIX can correct for this. 1886 # This is needed for recursive configures, since autoconf propagates 1887 # $prefix, but not $exec_prefix (doh!). 1888 if test x$exec_prefix = xNONE ; then 1889 exec_prefix_default=yes 1890 exec_prefix=$prefix 1891 fi 1892 1893 1894 1895 1896 # This package name must be replaced statically for AC_SUBST to work 1897 1898 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1899 1900 1901 # We AC_SUBST these here to ensure they are subst'ed, 1902 # in case the user doesn't call TEA_ADD_... 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 1913echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 1914LN_S=$as_ln_s 1915if test "$LN_S" = "ln -s"; then 1916 { echo "$as_me:$LINENO: result: yes" >&5 1917echo "${ECHO_T}yes" >&6; } 1918else 1919 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 1920echo "${ECHO_T}no, using $LN_S" >&6; } 1921fi 1922 1923CONFIG_CLEAN_FILES= 1924if test ! -d $srcdir/tclconfig ; then 1925 if test -d $srcdir/../tclconfig ; then 1926 $LN_S $srcdir/../tclconfig tclconfig 1927 CONFIG_CLEAN_FILES=tclconfig 1928 fi 1929fi 1930 1931 1932ac_aux_dir= 1933for ac_dir in ../tclconfig "$srcdir"/../tclconfig; do 1934 if test -f "$ac_dir/install-sh"; then 1935 ac_aux_dir=$ac_dir 1936 ac_install_sh="$ac_aux_dir/install-sh -c" 1937 break 1938 elif test -f "$ac_dir/install.sh"; then 1939 ac_aux_dir=$ac_dir 1940 ac_install_sh="$ac_aux_dir/install.sh -c" 1941 break 1942 elif test -f "$ac_dir/shtool"; then 1943 ac_aux_dir=$ac_dir 1944 ac_install_sh="$ac_aux_dir/shtool install -c" 1945 break 1946 fi 1947done 1948if test -z "$ac_aux_dir"; then 1949 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&5 1950echo "$as_me: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&2;} 1951 { (exit 1); exit 1; }; } 1952fi 1953 1954# These three variables are undocumented and unsupported, 1955# and are intended to be withdrawn in a future Autoconf release. 1956# They can cause serious problems if a builder's source tree is in a directory 1957# whose full name contains unusual characters. 1958ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1959ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1960ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1961 1962 1963 1964#-------------------------------------------------------------------- 1965# Load the tclConfig.sh file 1966#-------------------------------------------------------------------- 1967 1968 1969 1970 # 1971 # Ok, lets find the tcl configuration 1972 # First, look for one uninstalled. 1973 # the alternative search directory is invoked by --with-tcl 1974 # 1975 1976 if test x"${no_tcl}" = x ; then 1977 # we reset no_tcl in case something fails here 1978 no_tcl=true 1979 1980# Check whether --with-tcl was given. 1981if test "${with_tcl+set}" = set; then 1982 withval=$with_tcl; with_tclconfig="${withval}" 1983fi 1984 1985 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1986echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1987 if test "${ac_cv_c_tclconfig+set}" = set; then 1988 echo $ECHO_N "(cached) $ECHO_C" >&6 1989else 1990 1991 1992 # First check to see if --with-tcl was specified. 1993 if test x"${with_tclconfig}" != x ; then 1994 case "${with_tclconfig}" in 1995 */tclConfig.sh ) 1996 if test -f "${with_tclconfig}"; then 1997 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1998echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1999 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 2000 fi ;; 2001 esac 2002 if test -f "${with_tclconfig}/tclConfig.sh" ; then 2003 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 2004 else 2005 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 2006echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 2007 { (exit 1); exit 1; }; } 2008 fi 2009 fi 2010 2011 # then check for a private Tcl installation 2012 if test x"${ac_cv_c_tclconfig}" = x ; then 2013 for i in \ 2014 ../tcl \ 2015 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2016 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 2017 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 2018 ../../tcl \ 2019 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2020 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 2021 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2022 ../../../tcl \ 2023 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2024 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2025 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2026 if test "${TEA_PLATFORM}" = "windows" \ 2027 -a -f "$i/win/tclConfig.sh" ; then 2028 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2029 break 2030 fi 2031 if test -f "$i/unix/tclConfig.sh" ; then 2032 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2033 break 2034 fi 2035 done 2036 fi 2037 2038 # on Darwin, check in Framework installation locations 2039 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2040 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2041 `ls -d /Library/Frameworks 2>/dev/null` \ 2042 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2043 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2044 ; do 2045 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2046 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2047 break 2048 fi 2049 done 2050 fi 2051 2052 # TEA specific: on Windows, check in common installation locations 2053 if test "${TEA_PLATFORM}" = "windows" \ 2054 -a x"${ac_cv_c_tclconfig}" = x ; then 2055 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2056 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2057 ; do 2058 if test -f "$i/tclConfig.sh" ; then 2059 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2060 break 2061 fi 2062 done 2063 fi 2064 2065 # check in a few common install locations 2066 if test x"${ac_cv_c_tclconfig}" = x ; then 2067 for i in `ls -d ${libdir} 2>/dev/null` \ 2068 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2069 `ls -d ${prefix}/lib 2>/dev/null` \ 2070 `ls -d /usr/local/lib 2>/dev/null` \ 2071 `ls -d /usr/contrib/lib 2>/dev/null` \ 2072 `ls -d /usr/lib 2>/dev/null` \ 2073 `ls -d /usr/lib64 2>/dev/null` \ 2074 ; do 2075 if test -f "$i/tclConfig.sh" ; then 2076 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2077 break 2078 fi 2079 done 2080 fi 2081 2082 # check in a few other private locations 2083 if test x"${ac_cv_c_tclconfig}" = x ; then 2084 for i in \ 2085 ${srcdir}/../tcl \ 2086 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2087 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2088 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2089 if test "${TEA_PLATFORM}" = "windows" \ 2090 -a -f "$i/win/tclConfig.sh" ; then 2091 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2092 break 2093 fi 2094 if test -f "$i/unix/tclConfig.sh" ; then 2095 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2096 break 2097 fi 2098 done 2099 fi 2100 2101fi 2102 2103 2104 if test x"${ac_cv_c_tclconfig}" = x ; then 2105 TCL_BIN_DIR="# no Tcl configs found" 2106 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2107echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2108 { (exit 1); exit 1; }; } 2109 else 2110 no_tcl= 2111 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2112 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2113echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2114 fi 2115 fi 2116 2117 2118 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2119echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2120 2121 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2122 { echo "$as_me:$LINENO: result: loading" >&5 2123echo "${ECHO_T}loading" >&6; } 2124 . "${TCL_BIN_DIR}/tclConfig.sh" 2125 else 2126 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2127echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2128 fi 2129 2130 # eval is required to do the TCL_DBGX substitution 2131 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2132 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2133 2134 # If the TCL_BIN_DIR is the build directory (not the install directory), 2135 # then set the common variable name to the value of the build variables. 2136 # For example, the variable TCL_LIB_SPEC will be set to the value 2137 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2138 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2139 # installed and uninstalled version of Tcl. 2140 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2141 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2142 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2143 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2144 elif test "`uname -s`" = "Darwin"; then 2145 # If Tcl was built as a framework, attempt to use the libraries 2146 # from the framework at the given location so that linking works 2147 # against Tcl.framework installed in an arbitrary location. 2148 case ${TCL_DEFS} in 2149 *TCL_FRAMEWORK*) 2150 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2151 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2152 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2153 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2154 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2155 break 2156 fi 2157 done 2158 fi 2159 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2160 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2161 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2162 fi 2163 ;; 2164 esac 2165 fi 2166 2167 # eval is required to do the TCL_DBGX substitution 2168 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2169 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2170 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2171 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 case "`uname -s`" in 2187 *CYGWIN_*) 2188 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2189echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2190 case ${TCL_EXTRA_CFLAGS} in 2191 *-mwin32*|*-mno-cygwin*) 2192 TEA_PLATFORM="windows" 2193 CFLAGS="$CFLAGS -mwin32" 2194 { echo "$as_me:$LINENO: result: win32" >&5 2195echo "${ECHO_T}win32" >&6; } 2196 ;; 2197 *) 2198 TEA_PLATFORM="unix" 2199 { echo "$as_me:$LINENO: result: unix" >&5 2200echo "${ECHO_T}unix" >&6; } 2201 ;; 2202 esac 2203 EXEEXT=".exe" 2204 ;; 2205 *) 2206 ;; 2207 esac 2208 2209 # Do this here as we have fully defined TEA_PLATFORM now 2210 if test "${TEA_PLATFORM}" = "windows" ; then 2211 # The BUILD_$pkg is to define the correct extern storage class 2212 # handling when making this package 2213 2214cat >>confdefs.h <<_ACEOF 2215#define BUILD_${PACKAGE_NAME} 2216_ACEOF 2217 2218 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2219 fi 2220 2221 # TEA specific: 2222 2223 2224 2225 2226 2227 2228 2229 2230#-------------------------------------------------------------------- 2231# Load the tkConfig.sh file 2232#-------------------------------------------------------------------- 2233 2234 2235 # 2236 # Ok, lets find the tk configuration 2237 # First, look for one uninstalled. 2238 # the alternative search directory is invoked by --with-tk 2239 # 2240 2241 if test x"${no_tk}" = x ; then 2242 # we reset no_tk in case something fails here 2243 no_tk=true 2244 2245# Check whether --with-tk was given. 2246if test "${with_tk+set}" = set; then 2247 withval=$with_tk; with_tkconfig="${withval}" 2248fi 2249 2250 { echo "$as_me:$LINENO: checking for Tk configuration" >&5 2251echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6; } 2252 if test "${ac_cv_c_tkconfig+set}" = set; then 2253 echo $ECHO_N "(cached) $ECHO_C" >&6 2254else 2255 2256 2257 # First check to see if --with-tkconfig was specified. 2258 if test x"${with_tkconfig}" != x ; then 2259 case "${with_tkconfig}" in 2260 */tkConfig.sh ) 2261 if test -f "${with_tkconfig}"; then 2262 { echo "$as_me:$LINENO: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5 2263echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;} 2264 with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`" 2265 fi ;; 2266 esac 2267 if test -f "${with_tkconfig}/tkConfig.sh" ; then 2268 ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`" 2269 else 2270 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 2271echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} 2272 { (exit 1); exit 1; }; } 2273 fi 2274 fi 2275 2276 # then check for a private Tk library 2277 if test x"${ac_cv_c_tkconfig}" = x ; then 2278 for i in \ 2279 ../tk \ 2280 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2281 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ 2282 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ 2283 ../../tk \ 2284 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2285 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ 2286 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ 2287 ../../../tk \ 2288 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2289 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ 2290 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do 2291 if test "${TEA_PLATFORM}" = "windows" \ 2292 -a -f "$i/win/tkConfig.sh" ; then 2293 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2294 break 2295 fi 2296 if test -f "$i/unix/tkConfig.sh" ; then 2297 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2298 break 2299 fi 2300 done 2301 fi 2302 2303 # on Darwin, check in Framework installation locations 2304 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then 2305 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2306 `ls -d /Library/Frameworks 2>/dev/null` \ 2307 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2308 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2309 ; do 2310 if test -f "$i/Tk.framework/tkConfig.sh" ; then 2311 ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`" 2312 break 2313 fi 2314 done 2315 fi 2316 2317 # check in a few common install locations 2318 if test x"${ac_cv_c_tkconfig}" = x ; then 2319 for i in `ls -d ${libdir} 2>/dev/null` \ 2320 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2321 `ls -d ${prefix}/lib 2>/dev/null` \ 2322 `ls -d /usr/local/lib 2>/dev/null` \ 2323 `ls -d /usr/contrib/lib 2>/dev/null` \ 2324 `ls -d /usr/lib 2>/dev/null` \ 2325 `ls -d /usr/lib64 2>/dev/null` \ 2326 ; do 2327 if test -f "$i/tkConfig.sh" ; then 2328 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2329 break 2330 fi 2331 done 2332 fi 2333 2334 # TEA specific: on Windows, check in common installation locations 2335 if test "${TEA_PLATFORM}" = "windows" \ 2336 -a x"${ac_cv_c_tkconfig}" = x ; then 2337 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2338 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2339 ; do 2340 if test -f "$i/tkConfig.sh" ; then 2341 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2342 break 2343 fi 2344 done 2345 fi 2346 2347 # check in a few other private locations 2348 if test x"${ac_cv_c_tkconfig}" = x ; then 2349 for i in \ 2350 ${srcdir}/../tk \ 2351 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2352 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ 2353 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do 2354 if test "${TEA_PLATFORM}" = "windows" \ 2355 -a -f "$i/win/tkConfig.sh" ; then 2356 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2357 break 2358 fi 2359 if test -f "$i/unix/tkConfig.sh" ; then 2360 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2361 break 2362 fi 2363 done 2364 fi 2365 2366fi 2367 2368 2369 if test x"${ac_cv_c_tkconfig}" = x ; then 2370 TK_BIN_DIR="# no Tk configs found" 2371 { { echo "$as_me:$LINENO: error: Can't find Tk configuration definitions" >&5 2372echo "$as_me: error: Can't find Tk configuration definitions" >&2;} 2373 { (exit 1); exit 1; }; } 2374 else 2375 no_tk= 2376 TK_BIN_DIR="${ac_cv_c_tkconfig}" 2377 { echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 2378echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2379 fi 2380 fi 2381 2382 2383 { echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 2384echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6; } 2385 2386 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then 2387 { echo "$as_me:$LINENO: result: loading" >&5 2388echo "${ECHO_T}loading" >&6; } 2389 . "${TK_BIN_DIR}/tkConfig.sh" 2390 else 2391 { echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 2392echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2393 fi 2394 2395 # eval is required to do the TK_DBGX substitution 2396 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" 2397 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" 2398 2399 # If the TK_BIN_DIR is the build directory (not the install directory), 2400 # then set the common variable name to the value of the build variables. 2401 # For example, the variable TK_LIB_SPEC will be set to the value 2402 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC 2403 # instead of TK_BUILD_LIB_SPEC since it will work with both an 2404 # installed and uninstalled version of Tcl. 2405 if test -f "${TK_BIN_DIR}/Makefile" ; then 2406 TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}" 2407 TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}" 2408 TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}" 2409 elif test "`uname -s`" = "Darwin"; then 2410 # If Tk was built as a framework, attempt to use the libraries 2411 # from the framework at the given location so that linking works 2412 # against Tk.framework installed in an arbitrary location. 2413 case ${TK_DEFS} in 2414 *TK_FRAMEWORK*) 2415 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then 2416 for i in "`cd "${TK_BIN_DIR}"; pwd`" \ 2417 "`cd "${TK_BIN_DIR}"/../..; pwd`"; do 2418 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then 2419 TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}" 2420 break 2421 fi 2422 done 2423 fi 2424 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then 2425 TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}" 2426 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" 2427 fi 2428 ;; 2429 esac 2430 fi 2431 2432 # eval is required to do the TK_DBGX substitution 2433 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" 2434 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" 2435 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" 2436 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" 2437 2438 # TEA specific: Ensure windowingsystem is defined 2439 if test "${TEA_PLATFORM}" = "unix" ; then 2440 case ${TK_DEFS} in 2441 *MAC_OSX_TK*) 2442 2443cat >>confdefs.h <<\_ACEOF 2444#define MAC_OSX_TK 1 2445_ACEOF 2446 2447 TEA_WINDOWINGSYSTEM="aqua" 2448 ;; 2449 *) 2450 TEA_WINDOWINGSYSTEM="x11" 2451 ;; 2452 esac 2453 elif test "${TEA_PLATFORM}" = "windows" ; then 2454 TEA_WINDOWINGSYSTEM="win32" 2455 fi 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 # TEA specific: 2470 2471 2472 2473 2474 2475 # 2476 # Ok, lets find the itcl configuration 2477 # First, look for one uninstalled. 2478 # the alternative search directory is invoked by --with-itcl 2479 # 2480 2481 if test x"${no_itcl}" = x ; then 2482 # we reset no_itcl in case something fails here 2483 no_itcl=true 2484 2485# Check whether --with-itcl was given. 2486if test "${with_itcl+set}" = set; then 2487 withval=$with_itcl; with_itclconfig=${withval} 2488fi 2489 2490 { echo "$as_me:$LINENO: checking for itcl configuration" >&5 2491echo $ECHO_N "checking for itcl configuration... $ECHO_C" >&6; } 2492 if test "${ac_cv_c_itclconfig+set}" = set; then 2493 echo $ECHO_N "(cached) $ECHO_C" >&6 2494else 2495 2496 2497 # First check to see if --with-itcl was specified. 2498 if test x"${with_itclconfig}" != x ; then 2499 case ${with_itclconfig} in 2500 */itclConfig.sh ) 2501 if test -f ${with_itclconfig}; then 2502 { echo "$as_me:$LINENO: WARNING: --with-itcl argument should refer to directory containing itclConfig.sh, not to itclConfig.sh itself" >&5 2503echo "$as_me: WARNING: --with-itcl argument should refer to directory containing itclConfig.sh, not to itclConfig.sh itself" >&2;} 2504 with_itclconfig=`echo ${with_itclconfig} | sed 's!/itclConfig\.sh$!!'` 2505 fi;; 2506 esac 2507 if test -f "${with_itclconfig}/itclConfig.sh" ; then 2508 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` 2509 else 2510 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 2511echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} 2512 { (exit 1); exit 1; }; } 2513 fi 2514 fi 2515 2516 # then check for a private itcl installation 2517 if test x"${ac_cv_c_itclconfig}" = x ; then 2518 for i in \ 2519 ../itcl \ 2520 `ls -dr ../itcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 2521 `ls -dr ../itcl*[0-9].[0-9][0-9] 2>/dev/null` \ 2522 `ls -dr ../itcl*[0-9].[0-9] 2>/dev/null` \ 2523 `ls -dr ../itcl*[0-9].[0-9]* 2>/dev/null` \ 2524 ../../itcl \ 2525 `ls -dr ../../itcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 2526 `ls -dr ../../itcl*[0-9].[0-9][0-9] 2>/dev/null` \ 2527 `ls -dr ../../itcl*[0-9].[0-9] 2>/dev/null` \ 2528 `ls -dr ../../itcl*[0-9].[0-9]* 2>/dev/null` \ 2529 ../../../itcl \ 2530 `ls -dr ../../../itcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 2531 `ls -dr ../../../itcl*[0-9].[0-9][0-9] 2>/dev/null` \ 2532 `ls -dr ../../../itcl*[0-9].[0-9] 2>/dev/null` \ 2533 `ls -dr ../../../itcl*[0-9].[0-9]* 2>/dev/null` \ 2534 ${srcdir}/../itcl \ 2535 `ls -dr ${srcdir}/../itcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 2536 `ls -dr ${srcdir}/../itcl*[0-9].[0-9][0-9] 2>/dev/null` \ 2537 `ls -dr ${srcdir}/../itcl*[0-9].[0-9] 2>/dev/null` \ 2538 `ls -dr ${srcdir}/../itcl*[0-9].[0-9]* 2>/dev/null` \ 2539 ; do 2540 if test -f "$i/itclConfig.sh" ; then 2541 ac_cv_c_itclconfig=`(cd $i; pwd)` 2542 break 2543 fi 2544 if test -f "$i/unix/itclConfig.sh" ; then 2545 ac_cv_c_itclconfig=`(cd $i/unix; pwd)` 2546 break 2547 fi 2548 done 2549 fi 2550 2551 # check in a few common install locations 2552 if test x"${ac_cv_c_itclconfig}" = x ; then 2553 for i in `ls -d ${libdir} 2>/dev/null` \ 2554 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2555 `ls -d ${prefix}/lib 2>/dev/null` \ 2556 `ls -d /usr/local/lib 2>/dev/null` \ 2557 `ls -d /usr/contrib/lib 2>/dev/null` \ 2558 `ls -d /usr/lib 2>/dev/null` \ 2559 `ls -d /usr/lib64 2>/dev/null` \ 2560 ; do 2561 if test -f "$i/itclConfig.sh" ; then 2562 ac_cv_c_itclconfig=`(cd $i; pwd)` 2563 break 2564 fi 2565 done 2566 fi 2567 2568fi 2569 2570 2571 if test x"${ac_cv_c_itclconfig}" = x ; then 2572 itcl_BIN_DIR="# no itcl configs found" 2573 { echo "$as_me:$LINENO: WARNING: Cannot find itcl configuration definitions" >&5 2574echo "$as_me: WARNING: Cannot find itcl configuration definitions" >&2;} 2575 exit 0 2576 else 2577 no_itcl= 2578 itcl_BIN_DIR=${ac_cv_c_itclconfig} 2579 { echo "$as_me:$LINENO: result: found $itcl_BIN_DIR/itclConfig.sh" >&5 2580echo "${ECHO_T}found $itcl_BIN_DIR/itclConfig.sh" >&6; } 2581 fi 2582 fi 2583 2584 2585 { echo "$as_me:$LINENO: checking for existence of ${itcl_BIN_DIR}/itclConfig.sh" >&5 2586echo $ECHO_N "checking for existence of ${itcl_BIN_DIR}/itclConfig.sh... $ECHO_C" >&6; } 2587 2588 if test -f "${itcl_BIN_DIR}/itclConfig.sh" ; then 2589 { echo "$as_me:$LINENO: result: loading" >&5 2590echo "${ECHO_T}loading" >&6; } 2591 . "${itcl_BIN_DIR}/itclConfig.sh" 2592 else 2593 { echo "$as_me:$LINENO: result: file not found" >&5 2594echo "${ECHO_T}file not found" >&6; } 2595 fi 2596 2597 # 2598 # If the itcl_BIN_DIR is the build directory (not the install directory), 2599 # then set the common variable name to the value of the build variables. 2600 # For example, the variable itcl_LIB_SPEC will be set to the value 2601 # of itcl_BUILD_LIB_SPEC. An extension should make use of itcl_LIB_SPEC 2602 # instead of itcl_BUILD_LIB_SPEC since it will work with both an 2603 # installed and uninstalled version of Tcl. 2604 # 2605 2606 if test -f "${itcl_BIN_DIR}/Makefile" ; then 2607 { echo "$as_me:$LINENO: WARNING: Found Makefile - using build library specs for itcl" >&5 2608echo "$as_me: WARNING: Found Makefile - using build library specs for itcl" >&2;} 2609 itcl_LIB_SPEC=${itcl_BUILD_LIB_SPEC} 2610 itcl_STUB_LIB_SPEC=${itcl_BUILD_STUB_LIB_SPEC} 2611 itcl_STUB_LIB_PATH=${itcl_BUILD_STUB_LIB_PATH} 2612 fi 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 # Allow the caller to prevent this auto-check by specifying any 2nd arg 2626 if test "x" = x; then 2627 2628 # Check both upper and lower-case variants 2629 # If a dev wanted non-stubs libs, this function could take an option 2630 # to not use _STUB in the paths below 2631 if test "x${itcl_STUB_LIB_SPEC}" = x; then 2632 2633 { echo "$as_me:$LINENO: checking For ITCL_STUB library for LIBS" >&5 2634echo $ECHO_N "checking For ITCL_STUB library for LIBS... $ECHO_C" >&6; } 2635 # This simplifies the use of stub libraries by automatically adding 2636 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 2637 # but this is called before CONFIG_CFLAGS. More importantly, this adds 2638 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 2639 if test "x${ITCL_STUB_LIB_SPEC}" != "x" ; then 2640 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 2641 2642 vars="\"`${CYGPATH} ${ITCL_STUB_LIB_PATH}`\"" 2643 for i in $vars; do 2644 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 2645 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 2646 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 2647 fi 2648 PKG_LIBS="$PKG_LIBS $i" 2649 done 2650 2651 2652 { echo "$as_me:$LINENO: result: using ITCL_STUB_LIB_PATH ${ITCL_STUB_LIB_PATH}" >&5 2653echo "${ECHO_T}using ITCL_STUB_LIB_PATH ${ITCL_STUB_LIB_PATH}" >&6; } 2654 else 2655 2656 vars="${ITCL_STUB_LIB_SPEC}" 2657 for i in $vars; do 2658 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 2659 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 2660 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 2661 fi 2662 PKG_LIBS="$PKG_LIBS $i" 2663 done 2664 2665 2666 { echo "$as_me:$LINENO: result: using ITCL_STUB_LIB_SPEC ${ITCL_STUB_LIB_SPEC}" >&5 2667echo "${ECHO_T}using ITCL_STUB_LIB_SPEC ${ITCL_STUB_LIB_SPEC}" >&6; } 2668 fi 2669 else 2670 { echo "$as_me:$LINENO: result: file not found" >&5 2671echo "${ECHO_T}file not found" >&6; } 2672 fi 2673 2674else 2675 2676 { echo "$as_me:$LINENO: checking For itcl_STUB library for LIBS" >&5 2677echo $ECHO_N "checking For itcl_STUB library for LIBS... $ECHO_C" >&6; } 2678 # This simplifies the use of stub libraries by automatically adding 2679 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 2680 # but this is called before CONFIG_CFLAGS. More importantly, this adds 2681 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 2682 if test "x${itcl_STUB_LIB_SPEC}" != "x" ; then 2683 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 2684 2685 vars="\"`${CYGPATH} ${itcl_STUB_LIB_PATH}`\"" 2686 for i in $vars; do 2687 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 2688 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 2689 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 2690 fi 2691 PKG_LIBS="$PKG_LIBS $i" 2692 done 2693 2694 2695 { echo "$as_me:$LINENO: result: using itcl_STUB_LIB_PATH ${itcl_STUB_LIB_PATH}" >&5 2696echo "${ECHO_T}using itcl_STUB_LIB_PATH ${itcl_STUB_LIB_PATH}" >&6; } 2697 else 2698 2699 vars="${itcl_STUB_LIB_SPEC}" 2700 for i in $vars; do 2701 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 2702 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 2703 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 2704 fi 2705 PKG_LIBS="$PKG_LIBS $i" 2706 done 2707 2708 2709 { echo "$as_me:$LINENO: result: using itcl_STUB_LIB_SPEC ${itcl_STUB_LIB_SPEC}" >&5 2710echo "${ECHO_T}using itcl_STUB_LIB_SPEC ${itcl_STUB_LIB_SPEC}" >&6; } 2711 fi 2712 else 2713 { echo "$as_me:$LINENO: result: file not found" >&5 2714echo "${ECHO_T}file not found" >&6; } 2715 fi 2716 2717fi 2718 2719 2720fi 2721 2722 2723 2724ITCL_INCLUDES="-I\"`${CYGPATH} ${itcl_SRC_DIR}/generic`\"" 2725 2726#-------------------------------------------------------------------- 2727# Handle the --prefix=... option by defaulting to what Tcl gave. 2728# Must be called after TEA_LOAD_TCLCONFIG and before $prefix is used. 2729#-------------------------------------------------------------------- 2730 2731 2732 if test "${prefix}" = "NONE"; then 2733 prefix_default=yes 2734 if test x"${TCL_PREFIX}" != x; then 2735 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2736echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2737 prefix=${TCL_PREFIX} 2738 else 2739 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2740echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2741 prefix=/usr/local 2742 fi 2743 fi 2744 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2745 -o x"${exec_prefix_default}" = x"yes" ; then 2746 if test x"${TCL_EXEC_PREFIX}" != x; then 2747 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2748echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2749 exec_prefix=${TCL_EXEC_PREFIX} 2750 else 2751 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2752echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2753 exec_prefix=$prefix 2754 fi 2755 fi 2756 2757 2758#------------------------------------------------------------------------ 2759# Standard compiler checks. 2760# This sets up CC by using the CC env var, or looks for gcc otherwise. 2761# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2762# the basic setup necessary to compile executables. 2763#------------------------------------------------------------------------ 2764 2765 2766 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2767 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2768 2769 # If the user did not set CFLAGS, set it now to keep 2770 # the AC_PROG_CC macro from adding "-g -O2". 2771 if test "${CFLAGS+set}" != "set" ; then 2772 CFLAGS="" 2773 fi 2774 2775 ac_ext=c 2776ac_cpp='$CPP $CPPFLAGS' 2777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2779ac_compiler_gnu=$ac_cv_c_compiler_gnu 2780if test -n "$ac_tool_prefix"; then 2781 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2782set dummy ${ac_tool_prefix}gcc; ac_word=$2 2783{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2785if test "${ac_cv_prog_CC+set}" = set; then 2786 echo $ECHO_N "(cached) $ECHO_C" >&6 2787else 2788 if test -n "$CC"; then 2789 ac_cv_prog_CC="$CC" # Let the user override the test. 2790else 2791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2792for as_dir in $PATH 2793do 2794 IFS=$as_save_IFS 2795 test -z "$as_dir" && as_dir=. 2796 for ac_exec_ext in '' $ac_executable_extensions; do 2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2798 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2800 break 2 2801 fi 2802done 2803done 2804IFS=$as_save_IFS 2805 2806fi 2807fi 2808CC=$ac_cv_prog_CC 2809if test -n "$CC"; then 2810 { echo "$as_me:$LINENO: result: $CC" >&5 2811echo "${ECHO_T}$CC" >&6; } 2812else 2813 { echo "$as_me:$LINENO: result: no" >&5 2814echo "${ECHO_T}no" >&6; } 2815fi 2816 2817 2818fi 2819if test -z "$ac_cv_prog_CC"; then 2820 ac_ct_CC=$CC 2821 # Extract the first word of "gcc", so it can be a program name with args. 2822set dummy gcc; ac_word=$2 2823{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2825if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2826 echo $ECHO_N "(cached) $ECHO_C" >&6 2827else 2828 if test -n "$ac_ct_CC"; then 2829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2830else 2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2832for as_dir in $PATH 2833do 2834 IFS=$as_save_IFS 2835 test -z "$as_dir" && as_dir=. 2836 for ac_exec_ext in '' $ac_executable_extensions; do 2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2838 ac_cv_prog_ac_ct_CC="gcc" 2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2840 break 2 2841 fi 2842done 2843done 2844IFS=$as_save_IFS 2845 2846fi 2847fi 2848ac_ct_CC=$ac_cv_prog_ac_ct_CC 2849if test -n "$ac_ct_CC"; then 2850 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2851echo "${ECHO_T}$ac_ct_CC" >&6; } 2852else 2853 { echo "$as_me:$LINENO: result: no" >&5 2854echo "${ECHO_T}no" >&6; } 2855fi 2856 2857 if test "x$ac_ct_CC" = x; then 2858 CC="" 2859 else 2860 case $cross_compiling:$ac_tool_warned in 2861yes:) 2862{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2863whose name does not start with the host triplet. If you think this 2864configuration is useful to you, please write to autoconf@gnu.org." >&5 2865echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2866whose name does not start with the host triplet. If you think this 2867configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2868ac_tool_warned=yes ;; 2869esac 2870 CC=$ac_ct_CC 2871 fi 2872else 2873 CC="$ac_cv_prog_CC" 2874fi 2875 2876if test -z "$CC"; then 2877 if test -n "$ac_tool_prefix"; then 2878 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2879set dummy ${ac_tool_prefix}cc; ac_word=$2 2880{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2882if test "${ac_cv_prog_CC+set}" = set; then 2883 echo $ECHO_N "(cached) $ECHO_C" >&6 2884else 2885 if test -n "$CC"; then 2886 ac_cv_prog_CC="$CC" # Let the user override the test. 2887else 2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2889for as_dir in $PATH 2890do 2891 IFS=$as_save_IFS 2892 test -z "$as_dir" && as_dir=. 2893 for ac_exec_ext in '' $ac_executable_extensions; do 2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2895 ac_cv_prog_CC="${ac_tool_prefix}cc" 2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2897 break 2 2898 fi 2899done 2900done 2901IFS=$as_save_IFS 2902 2903fi 2904fi 2905CC=$ac_cv_prog_CC 2906if test -n "$CC"; then 2907 { echo "$as_me:$LINENO: result: $CC" >&5 2908echo "${ECHO_T}$CC" >&6; } 2909else 2910 { echo "$as_me:$LINENO: result: no" >&5 2911echo "${ECHO_T}no" >&6; } 2912fi 2913 2914 2915 fi 2916fi 2917if test -z "$CC"; then 2918 # Extract the first word of "cc", so it can be a program name with args. 2919set dummy cc; ac_word=$2 2920{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2922if test "${ac_cv_prog_CC+set}" = set; then 2923 echo $ECHO_N "(cached) $ECHO_C" >&6 2924else 2925 if test -n "$CC"; then 2926 ac_cv_prog_CC="$CC" # Let the user override the test. 2927else 2928 ac_prog_rejected=no 2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2930for as_dir in $PATH 2931do 2932 IFS=$as_save_IFS 2933 test -z "$as_dir" && as_dir=. 2934 for ac_exec_ext in '' $ac_executable_extensions; do 2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2937 ac_prog_rejected=yes 2938 continue 2939 fi 2940 ac_cv_prog_CC="cc" 2941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2942 break 2 2943 fi 2944done 2945done 2946IFS=$as_save_IFS 2947 2948if test $ac_prog_rejected = yes; then 2949 # We found a bogon in the path, so make sure we never use it. 2950 set dummy $ac_cv_prog_CC 2951 shift 2952 if test $# != 0; then 2953 # We chose a different compiler from the bogus one. 2954 # However, it has the same basename, so the bogon will be chosen 2955 # first if we set CC to just the basename; use the full file name. 2956 shift 2957 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2958 fi 2959fi 2960fi 2961fi 2962CC=$ac_cv_prog_CC 2963if test -n "$CC"; then 2964 { echo "$as_me:$LINENO: result: $CC" >&5 2965echo "${ECHO_T}$CC" >&6; } 2966else 2967 { echo "$as_me:$LINENO: result: no" >&5 2968echo "${ECHO_T}no" >&6; } 2969fi 2970 2971 2972fi 2973if test -z "$CC"; then 2974 if test -n "$ac_tool_prefix"; then 2975 for ac_prog in cl.exe 2976 do 2977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2978set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2979{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2981if test "${ac_cv_prog_CC+set}" = set; then 2982 echo $ECHO_N "(cached) $ECHO_C" >&6 2983else 2984 if test -n "$CC"; then 2985 ac_cv_prog_CC="$CC" # Let the user override the test. 2986else 2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2988for as_dir in $PATH 2989do 2990 IFS=$as_save_IFS 2991 test -z "$as_dir" && as_dir=. 2992 for ac_exec_ext in '' $ac_executable_extensions; do 2993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2996 break 2 2997 fi 2998done 2999done 3000IFS=$as_save_IFS 3001 3002fi 3003fi 3004CC=$ac_cv_prog_CC 3005if test -n "$CC"; then 3006 { echo "$as_me:$LINENO: result: $CC" >&5 3007echo "${ECHO_T}$CC" >&6; } 3008else 3009 { echo "$as_me:$LINENO: result: no" >&5 3010echo "${ECHO_T}no" >&6; } 3011fi 3012 3013 3014 test -n "$CC" && break 3015 done 3016fi 3017if test -z "$CC"; then 3018 ac_ct_CC=$CC 3019 for ac_prog in cl.exe 3020do 3021 # Extract the first word of "$ac_prog", so it can be a program name with args. 3022set dummy $ac_prog; ac_word=$2 3023{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3025if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3026 echo $ECHO_N "(cached) $ECHO_C" >&6 3027else 3028 if test -n "$ac_ct_CC"; then 3029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3030else 3031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3032for as_dir in $PATH 3033do 3034 IFS=$as_save_IFS 3035 test -z "$as_dir" && as_dir=. 3036 for ac_exec_ext in '' $ac_executable_extensions; do 3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3038 ac_cv_prog_ac_ct_CC="$ac_prog" 3039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3040 break 2 3041 fi 3042done 3043done 3044IFS=$as_save_IFS 3045 3046fi 3047fi 3048ac_ct_CC=$ac_cv_prog_ac_ct_CC 3049if test -n "$ac_ct_CC"; then 3050 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3051echo "${ECHO_T}$ac_ct_CC" >&6; } 3052else 3053 { echo "$as_me:$LINENO: result: no" >&5 3054echo "${ECHO_T}no" >&6; } 3055fi 3056 3057 3058 test -n "$ac_ct_CC" && break 3059done 3060 3061 if test "x$ac_ct_CC" = x; then 3062 CC="" 3063 else 3064 case $cross_compiling:$ac_tool_warned in 3065yes:) 3066{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3067whose name does not start with the host triplet. If you think this 3068configuration is useful to you, please write to autoconf@gnu.org." >&5 3069echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3070whose name does not start with the host triplet. If you think this 3071configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3072ac_tool_warned=yes ;; 3073esac 3074 CC=$ac_ct_CC 3075 fi 3076fi 3077 3078fi 3079 3080 3081test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3082See \`config.log' for more details." >&5 3083echo "$as_me: error: no acceptable C compiler found in \$PATH 3084See \`config.log' for more details." >&2;} 3085 { (exit 1); exit 1; }; } 3086 3087# Provide some information about the compiler. 3088echo "$as_me:$LINENO: checking for C compiler version" >&5 3089ac_compiler=`set X $ac_compile; echo $2` 3090{ (ac_try="$ac_compiler --version >&5" 3091case "(($ac_try" in 3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3093 *) ac_try_echo=$ac_try;; 3094esac 3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3096 (eval "$ac_compiler --version >&5") 2>&5 3097 ac_status=$? 3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099 (exit $ac_status); } 3100{ (ac_try="$ac_compiler -v >&5" 3101case "(($ac_try" in 3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3103 *) ac_try_echo=$ac_try;; 3104esac 3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3106 (eval "$ac_compiler -v >&5") 2>&5 3107 ac_status=$? 3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3109 (exit $ac_status); } 3110{ (ac_try="$ac_compiler -V >&5" 3111case "(($ac_try" in 3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3113 *) ac_try_echo=$ac_try;; 3114esac 3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3116 (eval "$ac_compiler -V >&5") 2>&5 3117 ac_status=$? 3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3119 (exit $ac_status); } 3120 3121cat >conftest.$ac_ext <<_ACEOF 3122/* confdefs.h. */ 3123_ACEOF 3124cat confdefs.h >>conftest.$ac_ext 3125cat >>conftest.$ac_ext <<_ACEOF 3126/* end confdefs.h. */ 3127 3128int 3129main () 3130{ 3131 3132 ; 3133 return 0; 3134} 3135_ACEOF 3136ac_clean_files_save=$ac_clean_files 3137ac_clean_files="$ac_clean_files a.out a.exe b.out" 3138# Try to create an executable without -o first, disregard a.out. 3139# It will help us diagnose broken compilers, and finding out an intuition 3140# of exeext. 3141{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3142echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3143ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3144# 3145# List of possible output files, starting from the most likely. 3146# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3147# only as a last resort. b.out is created by i960 compilers. 3148ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3149# 3150# The IRIX 6 linker writes into existing files which may not be 3151# executable, retaining their permissions. Remove them first so a 3152# subsequent execution test works. 3153ac_rmfiles= 3154for ac_file in $ac_files 3155do 3156 case $ac_file in 3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3158 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3159 esac 3160done 3161rm -f $ac_rmfiles 3162 3163if { (ac_try="$ac_link_default" 3164case "(($ac_try" in 3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3166 *) ac_try_echo=$ac_try;; 3167esac 3168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3169 (eval "$ac_link_default") 2>&5 3170 ac_status=$? 3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3172 (exit $ac_status); }; then 3173 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3174# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3175# in a Makefile. We should not override ac_cv_exeext if it was cached, 3176# so that the user can short-circuit this test for compilers unknown to 3177# Autoconf. 3178for ac_file in $ac_files '' 3179do 3180 test -f "$ac_file" || continue 3181 case $ac_file in 3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3183 ;; 3184 [ab].out ) 3185 # We found the default executable, but exeext='' is most 3186 # certainly right. 3187 break;; 3188 *.* ) 3189 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3190 then :; else 3191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3192 fi 3193 # We set ac_cv_exeext here because the later test for it is not 3194 # safe: cross compilers may not add the suffix if given an `-o' 3195 # argument, so we may need to know it at that point already. 3196 # Even if this section looks crufty: it has the advantage of 3197 # actually working. 3198 break;; 3199 * ) 3200 break;; 3201 esac 3202done 3203test "$ac_cv_exeext" = no && ac_cv_exeext= 3204 3205else 3206 ac_file='' 3207fi 3208 3209{ echo "$as_me:$LINENO: result: $ac_file" >&5 3210echo "${ECHO_T}$ac_file" >&6; } 3211if test -z "$ac_file"; then 3212 echo "$as_me: failed program was:" >&5 3213sed 's/^/| /' conftest.$ac_ext >&5 3214 3215{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3216See \`config.log' for more details." >&5 3217echo "$as_me: error: C compiler cannot create executables 3218See \`config.log' for more details." >&2;} 3219 { (exit 77); exit 77; }; } 3220fi 3221 3222ac_exeext=$ac_cv_exeext 3223 3224# Check that the compiler produces executables we can run. If not, either 3225# the compiler is broken, or we cross compile. 3226{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3227echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3228# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3229# If not cross compiling, check that we can run a simple program. 3230if test "$cross_compiling" != yes; then 3231 if { ac_try='./$ac_file' 3232 { (case "(($ac_try" in 3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3234 *) ac_try_echo=$ac_try;; 3235esac 3236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3237 (eval "$ac_try") 2>&5 3238 ac_status=$? 3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3240 (exit $ac_status); }; }; then 3241 cross_compiling=no 3242 else 3243 if test "$cross_compiling" = maybe; then 3244 cross_compiling=yes 3245 else 3246 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3247If you meant to cross compile, use \`--host'. 3248See \`config.log' for more details." >&5 3249echo "$as_me: error: cannot run C compiled programs. 3250If you meant to cross compile, use \`--host'. 3251See \`config.log' for more details." >&2;} 3252 { (exit 1); exit 1; }; } 3253 fi 3254 fi 3255fi 3256{ echo "$as_me:$LINENO: result: yes" >&5 3257echo "${ECHO_T}yes" >&6; } 3258 3259rm -f a.out a.exe conftest$ac_cv_exeext b.out 3260ac_clean_files=$ac_clean_files_save 3261# Check that the compiler produces executables we can run. If not, either 3262# the compiler is broken, or we cross compile. 3263{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3264echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3265{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3266echo "${ECHO_T}$cross_compiling" >&6; } 3267 3268{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3269echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3270if { (ac_try="$ac_link" 3271case "(($ac_try" in 3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3273 *) ac_try_echo=$ac_try;; 3274esac 3275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3276 (eval "$ac_link") 2>&5 3277 ac_status=$? 3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3279 (exit $ac_status); }; then 3280 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3281# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3282# work properly (i.e., refer to `conftest.exe'), while it won't with 3283# `rm'. 3284for ac_file in conftest.exe conftest conftest.*; do 3285 test -f "$ac_file" || continue 3286 case $ac_file in 3287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3288 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3289 break;; 3290 * ) break;; 3291 esac 3292done 3293else 3294 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3295See \`config.log' for more details." >&5 3296echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3297See \`config.log' for more details." >&2;} 3298 { (exit 1); exit 1; }; } 3299fi 3300 3301rm -f conftest$ac_cv_exeext 3302{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3303echo "${ECHO_T}$ac_cv_exeext" >&6; } 3304 3305rm -f conftest.$ac_ext 3306EXEEXT=$ac_cv_exeext 3307ac_exeext=$EXEEXT 3308{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3309echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3310if test "${ac_cv_objext+set}" = set; then 3311 echo $ECHO_N "(cached) $ECHO_C" >&6 3312else 3313 cat >conftest.$ac_ext <<_ACEOF 3314/* confdefs.h. */ 3315_ACEOF 3316cat confdefs.h >>conftest.$ac_ext 3317cat >>conftest.$ac_ext <<_ACEOF 3318/* end confdefs.h. */ 3319 3320int 3321main () 3322{ 3323 3324 ; 3325 return 0; 3326} 3327_ACEOF 3328rm -f conftest.o conftest.obj 3329if { (ac_try="$ac_compile" 3330case "(($ac_try" in 3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3332 *) ac_try_echo=$ac_try;; 3333esac 3334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3335 (eval "$ac_compile") 2>&5 3336 ac_status=$? 3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3338 (exit $ac_status); }; then 3339 for ac_file in conftest.o conftest.obj conftest.*; do 3340 test -f "$ac_file" || continue; 3341 case $ac_file in 3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3343 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3344 break;; 3345 esac 3346done 3347else 3348 echo "$as_me: failed program was:" >&5 3349sed 's/^/| /' conftest.$ac_ext >&5 3350 3351{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3352See \`config.log' for more details." >&5 3353echo "$as_me: error: cannot compute suffix of object files: cannot compile 3354See \`config.log' for more details." >&2;} 3355 { (exit 1); exit 1; }; } 3356fi 3357 3358rm -f conftest.$ac_cv_objext conftest.$ac_ext 3359fi 3360{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3361echo "${ECHO_T}$ac_cv_objext" >&6; } 3362OBJEXT=$ac_cv_objext 3363ac_objext=$OBJEXT 3364{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3365echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3366if test "${ac_cv_c_compiler_gnu+set}" = set; then 3367 echo $ECHO_N "(cached) $ECHO_C" >&6 3368else 3369 cat >conftest.$ac_ext <<_ACEOF 3370/* confdefs.h. */ 3371_ACEOF 3372cat confdefs.h >>conftest.$ac_ext 3373cat >>conftest.$ac_ext <<_ACEOF 3374/* end confdefs.h. */ 3375 3376int 3377main () 3378{ 3379#ifndef __GNUC__ 3380 choke me 3381#endif 3382 3383 ; 3384 return 0; 3385} 3386_ACEOF 3387rm -f conftest.$ac_objext 3388if { (ac_try="$ac_compile" 3389case "(($ac_try" in 3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3391 *) ac_try_echo=$ac_try;; 3392esac 3393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3394 (eval "$ac_compile") 2>conftest.er1 3395 ac_status=$? 3396 grep -v '^ *+' conftest.er1 >conftest.err 3397 rm -f conftest.er1 3398 cat conftest.err >&5 3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3400 (exit $ac_status); } && { 3401 test -z "$ac_c_werror_flag" || 3402 test ! -s conftest.err 3403 } && test -s conftest.$ac_objext; then 3404 ac_compiler_gnu=yes 3405else 3406 echo "$as_me: failed program was:" >&5 3407sed 's/^/| /' conftest.$ac_ext >&5 3408 3409 ac_compiler_gnu=no 3410fi 3411 3412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3413ac_cv_c_compiler_gnu=$ac_compiler_gnu 3414 3415fi 3416{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3417echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3418GCC=`test $ac_compiler_gnu = yes && echo yes` 3419ac_test_CFLAGS=${CFLAGS+set} 3420ac_save_CFLAGS=$CFLAGS 3421{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3422echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3423if test "${ac_cv_prog_cc_g+set}" = set; then 3424 echo $ECHO_N "(cached) $ECHO_C" >&6 3425else 3426 ac_save_c_werror_flag=$ac_c_werror_flag 3427 ac_c_werror_flag=yes 3428 ac_cv_prog_cc_g=no 3429 CFLAGS="-g" 3430 cat >conftest.$ac_ext <<_ACEOF 3431/* confdefs.h. */ 3432_ACEOF 3433cat confdefs.h >>conftest.$ac_ext 3434cat >>conftest.$ac_ext <<_ACEOF 3435/* end confdefs.h. */ 3436 3437int 3438main () 3439{ 3440 3441 ; 3442 return 0; 3443} 3444_ACEOF 3445rm -f conftest.$ac_objext 3446if { (ac_try="$ac_compile" 3447case "(($ac_try" in 3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3449 *) ac_try_echo=$ac_try;; 3450esac 3451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3452 (eval "$ac_compile") 2>conftest.er1 3453 ac_status=$? 3454 grep -v '^ *+' conftest.er1 >conftest.err 3455 rm -f conftest.er1 3456 cat conftest.err >&5 3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3458 (exit $ac_status); } && { 3459 test -z "$ac_c_werror_flag" || 3460 test ! -s conftest.err 3461 } && test -s conftest.$ac_objext; then 3462 ac_cv_prog_cc_g=yes 3463else 3464 echo "$as_me: failed program was:" >&5 3465sed 's/^/| /' conftest.$ac_ext >&5 3466 3467 CFLAGS="" 3468 cat >conftest.$ac_ext <<_ACEOF 3469/* confdefs.h. */ 3470_ACEOF 3471cat confdefs.h >>conftest.$ac_ext 3472cat >>conftest.$ac_ext <<_ACEOF 3473/* end confdefs.h. */ 3474 3475int 3476main () 3477{ 3478 3479 ; 3480 return 0; 3481} 3482_ACEOF 3483rm -f conftest.$ac_objext 3484if { (ac_try="$ac_compile" 3485case "(($ac_try" in 3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3487 *) ac_try_echo=$ac_try;; 3488esac 3489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3490 (eval "$ac_compile") 2>conftest.er1 3491 ac_status=$? 3492 grep -v '^ *+' conftest.er1 >conftest.err 3493 rm -f conftest.er1 3494 cat conftest.err >&5 3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3496 (exit $ac_status); } && { 3497 test -z "$ac_c_werror_flag" || 3498 test ! -s conftest.err 3499 } && test -s conftest.$ac_objext; then 3500 : 3501else 3502 echo "$as_me: failed program was:" >&5 3503sed 's/^/| /' conftest.$ac_ext >&5 3504 3505 ac_c_werror_flag=$ac_save_c_werror_flag 3506 CFLAGS="-g" 3507 cat >conftest.$ac_ext <<_ACEOF 3508/* confdefs.h. */ 3509_ACEOF 3510cat confdefs.h >>conftest.$ac_ext 3511cat >>conftest.$ac_ext <<_ACEOF 3512/* end confdefs.h. */ 3513 3514int 3515main () 3516{ 3517 3518 ; 3519 return 0; 3520} 3521_ACEOF 3522rm -f conftest.$ac_objext 3523if { (ac_try="$ac_compile" 3524case "(($ac_try" in 3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3526 *) ac_try_echo=$ac_try;; 3527esac 3528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3529 (eval "$ac_compile") 2>conftest.er1 3530 ac_status=$? 3531 grep -v '^ *+' conftest.er1 >conftest.err 3532 rm -f conftest.er1 3533 cat conftest.err >&5 3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3535 (exit $ac_status); } && { 3536 test -z "$ac_c_werror_flag" || 3537 test ! -s conftest.err 3538 } && test -s conftest.$ac_objext; then 3539 ac_cv_prog_cc_g=yes 3540else 3541 echo "$as_me: failed program was:" >&5 3542sed 's/^/| /' conftest.$ac_ext >&5 3543 3544 3545fi 3546 3547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3548fi 3549 3550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3551fi 3552 3553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3554 ac_c_werror_flag=$ac_save_c_werror_flag 3555fi 3556{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3557echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3558if test "$ac_test_CFLAGS" = set; then 3559 CFLAGS=$ac_save_CFLAGS 3560elif test $ac_cv_prog_cc_g = yes; then 3561 if test "$GCC" = yes; then 3562 CFLAGS="-g -O2" 3563 else 3564 CFLAGS="-g" 3565 fi 3566else 3567 if test "$GCC" = yes; then 3568 CFLAGS="-O2" 3569 else 3570 CFLAGS= 3571 fi 3572fi 3573{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3574echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3575if test "${ac_cv_prog_cc_c89+set}" = set; then 3576 echo $ECHO_N "(cached) $ECHO_C" >&6 3577else 3578 ac_cv_prog_cc_c89=no 3579ac_save_CC=$CC 3580cat >conftest.$ac_ext <<_ACEOF 3581/* confdefs.h. */ 3582_ACEOF 3583cat confdefs.h >>conftest.$ac_ext 3584cat >>conftest.$ac_ext <<_ACEOF 3585/* end confdefs.h. */ 3586#include <stdarg.h> 3587#include <stdio.h> 3588#include <sys/types.h> 3589#include <sys/stat.h> 3590/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3591struct buf { int x; }; 3592FILE * (*rcsopen) (struct buf *, struct stat *, int); 3593static char *e (p, i) 3594 char **p; 3595 int i; 3596{ 3597 return p[i]; 3598} 3599static char *f (char * (*g) (char **, int), char **p, ...) 3600{ 3601 char *s; 3602 va_list v; 3603 va_start (v,p); 3604 s = g (p, va_arg (v,int)); 3605 va_end (v); 3606 return s; 3607} 3608 3609/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3610 function prototypes and stuff, but not '\xHH' hex character constants. 3611 These don't provoke an error unfortunately, instead are silently treated 3612 as 'x'. The following induces an error, until -std is added to get 3613 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3614 array size at least. It's necessary to write '\x00'==0 to get something 3615 that's true only with -std. */ 3616int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3617 3618/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3619 inside strings and character constants. */ 3620#define FOO(x) 'x' 3621int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3622 3623int test (int i, double x); 3624struct s1 {int (*f) (int a);}; 3625struct s2 {int (*f) (double a);}; 3626int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3627int argc; 3628char **argv; 3629int 3630main () 3631{ 3632return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3633 ; 3634 return 0; 3635} 3636_ACEOF 3637for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3638 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3639do 3640 CC="$ac_save_CC $ac_arg" 3641 rm -f conftest.$ac_objext 3642if { (ac_try="$ac_compile" 3643case "(($ac_try" in 3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3645 *) ac_try_echo=$ac_try;; 3646esac 3647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3648 (eval "$ac_compile") 2>conftest.er1 3649 ac_status=$? 3650 grep -v '^ *+' conftest.er1 >conftest.err 3651 rm -f conftest.er1 3652 cat conftest.err >&5 3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3654 (exit $ac_status); } && { 3655 test -z "$ac_c_werror_flag" || 3656 test ! -s conftest.err 3657 } && test -s conftest.$ac_objext; then 3658 ac_cv_prog_cc_c89=$ac_arg 3659else 3660 echo "$as_me: failed program was:" >&5 3661sed 's/^/| /' conftest.$ac_ext >&5 3662 3663 3664fi 3665 3666rm -f core conftest.err conftest.$ac_objext 3667 test "x$ac_cv_prog_cc_c89" != "xno" && break 3668done 3669rm -f conftest.$ac_ext 3670CC=$ac_save_CC 3671 3672fi 3673# AC_CACHE_VAL 3674case "x$ac_cv_prog_cc_c89" in 3675 x) 3676 { echo "$as_me:$LINENO: result: none needed" >&5 3677echo "${ECHO_T}none needed" >&6; } ;; 3678 xno) 3679 { echo "$as_me:$LINENO: result: unsupported" >&5 3680echo "${ECHO_T}unsupported" >&6; } ;; 3681 *) 3682 CC="$CC $ac_cv_prog_cc_c89" 3683 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3684echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3685esac 3686 3687 3688ac_ext=c 3689ac_cpp='$CPP $CPPFLAGS' 3690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3692ac_compiler_gnu=$ac_cv_c_compiler_gnu 3693 3694 ac_ext=c 3695ac_cpp='$CPP $CPPFLAGS' 3696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3698ac_compiler_gnu=$ac_cv_c_compiler_gnu 3699{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3700echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3701# On Suns, sometimes $CPP names a directory. 3702if test -n "$CPP" && test -d "$CPP"; then 3703 CPP= 3704fi 3705if test -z "$CPP"; then 3706 if test "${ac_cv_prog_CPP+set}" = set; then 3707 echo $ECHO_N "(cached) $ECHO_C" >&6 3708else 3709 # Double quotes because CPP needs to be expanded 3710 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3711 do 3712 ac_preproc_ok=false 3713for ac_c_preproc_warn_flag in '' yes 3714do 3715 # Use a header file that comes with gcc, so configuring glibc 3716 # with a fresh cross-compiler works. 3717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3718 # <limits.h> exists even on freestanding compilers. 3719 # On the NeXT, cc -E runs the code through the compiler's parser, 3720 # not just through cpp. "Syntax error" is here to catch this case. 3721 cat >conftest.$ac_ext <<_ACEOF 3722/* confdefs.h. */ 3723_ACEOF 3724cat confdefs.h >>conftest.$ac_ext 3725cat >>conftest.$ac_ext <<_ACEOF 3726/* end confdefs.h. */ 3727#ifdef __STDC__ 3728# include <limits.h> 3729#else 3730# include <assert.h> 3731#endif 3732 Syntax error 3733_ACEOF 3734if { (ac_try="$ac_cpp conftest.$ac_ext" 3735case "(($ac_try" in 3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3737 *) ac_try_echo=$ac_try;; 3738esac 3739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3741 ac_status=$? 3742 grep -v '^ *+' conftest.er1 >conftest.err 3743 rm -f conftest.er1 3744 cat conftest.err >&5 3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3746 (exit $ac_status); } >/dev/null && { 3747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3748 test ! -s conftest.err 3749 }; then 3750 : 3751else 3752 echo "$as_me: failed program was:" >&5 3753sed 's/^/| /' conftest.$ac_ext >&5 3754 3755 # Broken: fails on valid input. 3756continue 3757fi 3758 3759rm -f conftest.err conftest.$ac_ext 3760 3761 # OK, works on sane cases. Now check whether nonexistent headers 3762 # can be detected and how. 3763 cat >conftest.$ac_ext <<_ACEOF 3764/* confdefs.h. */ 3765_ACEOF 3766cat confdefs.h >>conftest.$ac_ext 3767cat >>conftest.$ac_ext <<_ACEOF 3768/* end confdefs.h. */ 3769#include <ac_nonexistent.h> 3770_ACEOF 3771if { (ac_try="$ac_cpp conftest.$ac_ext" 3772case "(($ac_try" in 3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3774 *) ac_try_echo=$ac_try;; 3775esac 3776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3778 ac_status=$? 3779 grep -v '^ *+' conftest.er1 >conftest.err 3780 rm -f conftest.er1 3781 cat conftest.err >&5 3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3783 (exit $ac_status); } >/dev/null && { 3784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3785 test ! -s conftest.err 3786 }; then 3787 # Broken: success on invalid input. 3788continue 3789else 3790 echo "$as_me: failed program was:" >&5 3791sed 's/^/| /' conftest.$ac_ext >&5 3792 3793 # Passes both tests. 3794ac_preproc_ok=: 3795break 3796fi 3797 3798rm -f conftest.err conftest.$ac_ext 3799 3800done 3801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3802rm -f conftest.err conftest.$ac_ext 3803if $ac_preproc_ok; then 3804 break 3805fi 3806 3807 done 3808 ac_cv_prog_CPP=$CPP 3809 3810fi 3811 CPP=$ac_cv_prog_CPP 3812else 3813 ac_cv_prog_CPP=$CPP 3814fi 3815{ echo "$as_me:$LINENO: result: $CPP" >&5 3816echo "${ECHO_T}$CPP" >&6; } 3817ac_preproc_ok=false 3818for ac_c_preproc_warn_flag in '' yes 3819do 3820 # Use a header file that comes with gcc, so configuring glibc 3821 # with a fresh cross-compiler works. 3822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3823 # <limits.h> exists even on freestanding compilers. 3824 # On the NeXT, cc -E runs the code through the compiler's parser, 3825 # not just through cpp. "Syntax error" is here to catch this case. 3826 cat >conftest.$ac_ext <<_ACEOF 3827/* confdefs.h. */ 3828_ACEOF 3829cat confdefs.h >>conftest.$ac_ext 3830cat >>conftest.$ac_ext <<_ACEOF 3831/* end confdefs.h. */ 3832#ifdef __STDC__ 3833# include <limits.h> 3834#else 3835# include <assert.h> 3836#endif 3837 Syntax error 3838_ACEOF 3839if { (ac_try="$ac_cpp conftest.$ac_ext" 3840case "(($ac_try" in 3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3842 *) ac_try_echo=$ac_try;; 3843esac 3844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3846 ac_status=$? 3847 grep -v '^ *+' conftest.er1 >conftest.err 3848 rm -f conftest.er1 3849 cat conftest.err >&5 3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3851 (exit $ac_status); } >/dev/null && { 3852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3853 test ! -s conftest.err 3854 }; then 3855 : 3856else 3857 echo "$as_me: failed program was:" >&5 3858sed 's/^/| /' conftest.$ac_ext >&5 3859 3860 # Broken: fails on valid input. 3861continue 3862fi 3863 3864rm -f conftest.err conftest.$ac_ext 3865 3866 # OK, works on sane cases. Now check whether nonexistent headers 3867 # can be detected and how. 3868 cat >conftest.$ac_ext <<_ACEOF 3869/* confdefs.h. */ 3870_ACEOF 3871cat confdefs.h >>conftest.$ac_ext 3872cat >>conftest.$ac_ext <<_ACEOF 3873/* end confdefs.h. */ 3874#include <ac_nonexistent.h> 3875_ACEOF 3876if { (ac_try="$ac_cpp conftest.$ac_ext" 3877case "(($ac_try" in 3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3879 *) ac_try_echo=$ac_try;; 3880esac 3881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3883 ac_status=$? 3884 grep -v '^ *+' conftest.er1 >conftest.err 3885 rm -f conftest.er1 3886 cat conftest.err >&5 3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3888 (exit $ac_status); } >/dev/null && { 3889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3890 test ! -s conftest.err 3891 }; then 3892 # Broken: success on invalid input. 3893continue 3894else 3895 echo "$as_me: failed program was:" >&5 3896sed 's/^/| /' conftest.$ac_ext >&5 3897 3898 # Passes both tests. 3899ac_preproc_ok=: 3900break 3901fi 3902 3903rm -f conftest.err conftest.$ac_ext 3904 3905done 3906# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3907rm -f conftest.err conftest.$ac_ext 3908if $ac_preproc_ok; then 3909 : 3910else 3911 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3912See \`config.log' for more details." >&5 3913echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3914See \`config.log' for more details." >&2;} 3915 { (exit 1); exit 1; }; } 3916fi 3917 3918ac_ext=c 3919ac_cpp='$CPP $CPPFLAGS' 3920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3922ac_compiler_gnu=$ac_cv_c_compiler_gnu 3923 3924 3925 # Find a good install program. We prefer a C program (faster), 3926# so one script is as good as another. But avoid the broken or 3927# incompatible versions: 3928# SysV /etc/install, /usr/sbin/install 3929# SunOS /usr/etc/install 3930# IRIX /sbin/install 3931# AIX /bin/install 3932# AmigaOS /C/install, which installs bootblocks on floppy discs 3933# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3934# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3935# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3936# OS/2's system install, which has a completely different semantic 3937# ./install, which can be erroneously created by make from ./install.sh. 3938{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3939echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3940if test -z "$INSTALL"; then 3941if test "${ac_cv_path_install+set}" = set; then 3942 echo $ECHO_N "(cached) $ECHO_C" >&6 3943else 3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3945for as_dir in $PATH 3946do 3947 IFS=$as_save_IFS 3948 test -z "$as_dir" && as_dir=. 3949 # Account for people who put trailing slashes in PATH elements. 3950case $as_dir/ in 3951 ./ | .// | /cC/* | \ 3952 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3953 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3954 /usr/ucb/* ) ;; 3955 *) 3956 # OSF1 and SCO ODT 3.0 have their own names for install. 3957 # Don't use installbsd from OSF since it installs stuff as root 3958 # by default. 3959 for ac_prog in ginstall scoinst install; do 3960 for ac_exec_ext in '' $ac_executable_extensions; do 3961 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3962 if test $ac_prog = install && 3963 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3964 # AIX install. It has an incompatible calling convention. 3965 : 3966 elif test $ac_prog = install && 3967 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3968 # program-specific install script used by HP pwplus--don't use. 3969 : 3970 else 3971 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3972 break 3 3973 fi 3974 fi 3975 done 3976 done 3977 ;; 3978esac 3979done 3980IFS=$as_save_IFS 3981 3982 3983fi 3984 if test "${ac_cv_path_install+set}" = set; then 3985 INSTALL=$ac_cv_path_install 3986 else 3987 # As a last resort, use the slow shell script. Don't cache a 3988 # value for INSTALL within a source directory, because that will 3989 # break other packages using the cache if that directory is 3990 # removed, or if the value is a relative name. 3991 INSTALL=$ac_install_sh 3992 fi 3993fi 3994{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3995echo "${ECHO_T}$INSTALL" >&6; } 3996 3997# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3998# It thinks the first close brace ends the variable substitution. 3999test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4000 4001test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4002 4003test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4004 4005 4006 #-------------------------------------------------------------------- 4007 # Checks to see if the make program sets the $MAKE variable. 4008 #-------------------------------------------------------------------- 4009 4010 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4011echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 4012set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4013if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 4014 echo $ECHO_N "(cached) $ECHO_C" >&6 4015else 4016 cat >conftest.make <<\_ACEOF 4017SHELL = /bin/sh 4018all: 4019 @echo '@@@%%%=$(MAKE)=@@@%%%' 4020_ACEOF 4021# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4022case `${MAKE-make} -f conftest.make 2>/dev/null` in 4023 *@@@%%%=?*=@@@%%%*) 4024 eval ac_cv_prog_make_${ac_make}_set=yes;; 4025 *) 4026 eval ac_cv_prog_make_${ac_make}_set=no;; 4027esac 4028rm -f conftest.make 4029fi 4030if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4031 { echo "$as_me:$LINENO: result: yes" >&5 4032echo "${ECHO_T}yes" >&6; } 4033 SET_MAKE= 4034else 4035 { echo "$as_me:$LINENO: result: no" >&5 4036echo "${ECHO_T}no" >&6; } 4037 SET_MAKE="MAKE=${MAKE-make}" 4038fi 4039 4040 4041 #-------------------------------------------------------------------- 4042 # Find ranlib 4043 #-------------------------------------------------------------------- 4044 4045 if test -n "$ac_tool_prefix"; then 4046 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4047set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4048{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4050if test "${ac_cv_prog_RANLIB+set}" = set; then 4051 echo $ECHO_N "(cached) $ECHO_C" >&6 4052else 4053 if test -n "$RANLIB"; then 4054 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4055else 4056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4057for as_dir in $PATH 4058do 4059 IFS=$as_save_IFS 4060 test -z "$as_dir" && as_dir=. 4061 for ac_exec_ext in '' $ac_executable_extensions; do 4062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4063 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4065 break 2 4066 fi 4067done 4068done 4069IFS=$as_save_IFS 4070 4071fi 4072fi 4073RANLIB=$ac_cv_prog_RANLIB 4074if test -n "$RANLIB"; then 4075 { echo "$as_me:$LINENO: result: $RANLIB" >&5 4076echo "${ECHO_T}$RANLIB" >&6; } 4077else 4078 { echo "$as_me:$LINENO: result: no" >&5 4079echo "${ECHO_T}no" >&6; } 4080fi 4081 4082 4083fi 4084if test -z "$ac_cv_prog_RANLIB"; then 4085 ac_ct_RANLIB=$RANLIB 4086 # Extract the first word of "ranlib", so it can be a program name with args. 4087set dummy ranlib; ac_word=$2 4088{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4090if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4091 echo $ECHO_N "(cached) $ECHO_C" >&6 4092else 4093 if test -n "$ac_ct_RANLIB"; then 4094 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4095else 4096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4097for as_dir in $PATH 4098do 4099 IFS=$as_save_IFS 4100 test -z "$as_dir" && as_dir=. 4101 for ac_exec_ext in '' $ac_executable_extensions; do 4102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4103 ac_cv_prog_ac_ct_RANLIB="ranlib" 4104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4105 break 2 4106 fi 4107done 4108done 4109IFS=$as_save_IFS 4110 4111fi 4112fi 4113ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4114if test -n "$ac_ct_RANLIB"; then 4115 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4116echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 4117else 4118 { echo "$as_me:$LINENO: result: no" >&5 4119echo "${ECHO_T}no" >&6; } 4120fi 4121 4122 if test "x$ac_ct_RANLIB" = x; then 4123 RANLIB=":" 4124 else 4125 case $cross_compiling:$ac_tool_warned in 4126yes:) 4127{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4128whose name does not start with the host triplet. If you think this 4129configuration is useful to you, please write to autoconf@gnu.org." >&5 4130echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4131whose name does not start with the host triplet. If you think this 4132configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4133ac_tool_warned=yes ;; 4134esac 4135 RANLIB=$ac_ct_RANLIB 4136 fi 4137else 4138 RANLIB="$ac_cv_prog_RANLIB" 4139fi 4140 4141 4142 #-------------------------------------------------------------------- 4143 # Determines the correct binary file extension (.o, .obj, .exe etc.) 4144 #-------------------------------------------------------------------- 4145 4146 4147 4148 4149 4150 4151{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4152echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4153if test "${ac_cv_path_GREP+set}" = set; then 4154 echo $ECHO_N "(cached) $ECHO_C" >&6 4155else 4156 # Extract the first word of "grep ggrep" to use in msg output 4157if test -z "$GREP"; then 4158set dummy grep ggrep; ac_prog_name=$2 4159if test "${ac_cv_path_GREP+set}" = set; then 4160 echo $ECHO_N "(cached) $ECHO_C" >&6 4161else 4162 ac_path_GREP_found=false 4163# Loop through the user's path and test for each of PROGNAME-LIST 4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4165for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4166do 4167 IFS=$as_save_IFS 4168 test -z "$as_dir" && as_dir=. 4169 for ac_prog in grep ggrep; do 4170 for ac_exec_ext in '' $ac_executable_extensions; do 4171 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4172 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4173 # Check for GNU ac_path_GREP and select it if it is found. 4174 # Check for GNU $ac_path_GREP 4175case `"$ac_path_GREP" --version 2>&1` in 4176*GNU*) 4177 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4178*) 4179 ac_count=0 4180 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4181 while : 4182 do 4183 cat "conftest.in" "conftest.in" >"conftest.tmp" 4184 mv "conftest.tmp" "conftest.in" 4185 cp "conftest.in" "conftest.nl" 4186 echo 'GREP' >> "conftest.nl" 4187 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4189 ac_count=`expr $ac_count + 1` 4190 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4191 # Best one so far, save it but keep looking for a better one 4192 ac_cv_path_GREP="$ac_path_GREP" 4193 ac_path_GREP_max=$ac_count 4194 fi 4195 # 10*(2^10) chars as input seems more than enough 4196 test $ac_count -gt 10 && break 4197 done 4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4199esac 4200 4201 4202 $ac_path_GREP_found && break 3 4203 done 4204done 4205 4206done 4207IFS=$as_save_IFS 4208 4209 4210fi 4211 4212GREP="$ac_cv_path_GREP" 4213if test -z "$GREP"; then 4214 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4215echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4216 { (exit 1); exit 1; }; } 4217fi 4218 4219else 4220 ac_cv_path_GREP=$GREP 4221fi 4222 4223 4224fi 4225{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4226echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4227 GREP="$ac_cv_path_GREP" 4228 4229 4230{ echo "$as_me:$LINENO: checking for egrep" >&5 4231echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4232if test "${ac_cv_path_EGREP+set}" = set; then 4233 echo $ECHO_N "(cached) $ECHO_C" >&6 4234else 4235 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4236 then ac_cv_path_EGREP="$GREP -E" 4237 else 4238 # Extract the first word of "egrep" to use in msg output 4239if test -z "$EGREP"; then 4240set dummy egrep; ac_prog_name=$2 4241if test "${ac_cv_path_EGREP+set}" = set; then 4242 echo $ECHO_N "(cached) $ECHO_C" >&6 4243else 4244 ac_path_EGREP_found=false 4245# Loop through the user's path and test for each of PROGNAME-LIST 4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4247for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4248do 4249 IFS=$as_save_IFS 4250 test -z "$as_dir" && as_dir=. 4251 for ac_prog in egrep; do 4252 for ac_exec_ext in '' $ac_executable_extensions; do 4253 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4254 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4255 # Check for GNU ac_path_EGREP and select it if it is found. 4256 # Check for GNU $ac_path_EGREP 4257case `"$ac_path_EGREP" --version 2>&1` in 4258*GNU*) 4259 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4260*) 4261 ac_count=0 4262 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4263 while : 4264 do 4265 cat "conftest.in" "conftest.in" >"conftest.tmp" 4266 mv "conftest.tmp" "conftest.in" 4267 cp "conftest.in" "conftest.nl" 4268 echo 'EGREP' >> "conftest.nl" 4269 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4271 ac_count=`expr $ac_count + 1` 4272 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4273 # Best one so far, save it but keep looking for a better one 4274 ac_cv_path_EGREP="$ac_path_EGREP" 4275 ac_path_EGREP_max=$ac_count 4276 fi 4277 # 10*(2^10) chars as input seems more than enough 4278 test $ac_count -gt 10 && break 4279 done 4280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4281esac 4282 4283 4284 $ac_path_EGREP_found && break 3 4285 done 4286done 4287 4288done 4289IFS=$as_save_IFS 4290 4291 4292fi 4293 4294EGREP="$ac_cv_path_EGREP" 4295if test -z "$EGREP"; then 4296 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4297echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4298 { (exit 1); exit 1; }; } 4299fi 4300 4301else 4302 ac_cv_path_EGREP=$EGREP 4303fi 4304 4305 4306 fi 4307fi 4308{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4309echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4310 EGREP="$ac_cv_path_EGREP" 4311 4312 4313{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4314echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4315if test "${ac_cv_header_stdc+set}" = set; then 4316 echo $ECHO_N "(cached) $ECHO_C" >&6 4317else 4318 cat >conftest.$ac_ext <<_ACEOF 4319/* confdefs.h. */ 4320_ACEOF 4321cat confdefs.h >>conftest.$ac_ext 4322cat >>conftest.$ac_ext <<_ACEOF 4323/* end confdefs.h. */ 4324#include <stdlib.h> 4325#include <stdarg.h> 4326#include <string.h> 4327#include <float.h> 4328 4329int 4330main () 4331{ 4332 4333 ; 4334 return 0; 4335} 4336_ACEOF 4337rm -f conftest.$ac_objext 4338if { (ac_try="$ac_compile" 4339case "(($ac_try" in 4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4341 *) ac_try_echo=$ac_try;; 4342esac 4343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4344 (eval "$ac_compile") 2>conftest.er1 4345 ac_status=$? 4346 grep -v '^ *+' conftest.er1 >conftest.err 4347 rm -f conftest.er1 4348 cat conftest.err >&5 4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4350 (exit $ac_status); } && { 4351 test -z "$ac_c_werror_flag" || 4352 test ! -s conftest.err 4353 } && test -s conftest.$ac_objext; then 4354 ac_cv_header_stdc=yes 4355else 4356 echo "$as_me: failed program was:" >&5 4357sed 's/^/| /' conftest.$ac_ext >&5 4358 4359 ac_cv_header_stdc=no 4360fi 4361 4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4363 4364if test $ac_cv_header_stdc = yes; then 4365 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4366 cat >conftest.$ac_ext <<_ACEOF 4367/* confdefs.h. */ 4368_ACEOF 4369cat confdefs.h >>conftest.$ac_ext 4370cat >>conftest.$ac_ext <<_ACEOF 4371/* end confdefs.h. */ 4372#include <string.h> 4373 4374_ACEOF 4375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4376 $EGREP "memchr" >/dev/null 2>&1; then 4377 : 4378else 4379 ac_cv_header_stdc=no 4380fi 4381rm -f -r conftest* 4382 4383fi 4384 4385if test $ac_cv_header_stdc = yes; then 4386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4387 cat >conftest.$ac_ext <<_ACEOF 4388/* confdefs.h. */ 4389_ACEOF 4390cat confdefs.h >>conftest.$ac_ext 4391cat >>conftest.$ac_ext <<_ACEOF 4392/* end confdefs.h. */ 4393#include <stdlib.h> 4394 4395_ACEOF 4396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4397 $EGREP "free" >/dev/null 2>&1; then 4398 : 4399else 4400 ac_cv_header_stdc=no 4401fi 4402rm -f -r conftest* 4403 4404fi 4405 4406if test $ac_cv_header_stdc = yes; then 4407 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4408 if test "$cross_compiling" = yes; then 4409 : 4410else 4411 cat >conftest.$ac_ext <<_ACEOF 4412/* confdefs.h. */ 4413_ACEOF 4414cat confdefs.h >>conftest.$ac_ext 4415cat >>conftest.$ac_ext <<_ACEOF 4416/* end confdefs.h. */ 4417#include <ctype.h> 4418#include <stdlib.h> 4419#if ((' ' & 0x0FF) == 0x020) 4420# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4421# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4422#else 4423# define ISLOWER(c) \ 4424 (('a' <= (c) && (c) <= 'i') \ 4425 || ('j' <= (c) && (c) <= 'r') \ 4426 || ('s' <= (c) && (c) <= 'z')) 4427# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4428#endif 4429 4430#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4431int 4432main () 4433{ 4434 int i; 4435 for (i = 0; i < 256; i++) 4436 if (XOR (islower (i), ISLOWER (i)) 4437 || toupper (i) != TOUPPER (i)) 4438 return 2; 4439 return 0; 4440} 4441_ACEOF 4442rm -f conftest$ac_exeext 4443if { (ac_try="$ac_link" 4444case "(($ac_try" in 4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4446 *) ac_try_echo=$ac_try;; 4447esac 4448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4449 (eval "$ac_link") 2>&5 4450 ac_status=$? 4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4453 { (case "(($ac_try" in 4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4455 *) ac_try_echo=$ac_try;; 4456esac 4457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4458 (eval "$ac_try") 2>&5 4459 ac_status=$? 4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4461 (exit $ac_status); }; }; then 4462 : 4463else 4464 echo "$as_me: program exited with status $ac_status" >&5 4465echo "$as_me: failed program was:" >&5 4466sed 's/^/| /' conftest.$ac_ext >&5 4467 4468( exit $ac_status ) 4469ac_cv_header_stdc=no 4470fi 4471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4472fi 4473 4474 4475fi 4476fi 4477{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4478echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4479if test $ac_cv_header_stdc = yes; then 4480 4481cat >>confdefs.h <<\_ACEOF 4482#define STDC_HEADERS 1 4483_ACEOF 4484 4485fi 4486 4487# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4498 inttypes.h stdint.h unistd.h 4499do 4500as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4501{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4504 echo $ECHO_N "(cached) $ECHO_C" >&6 4505else 4506 cat >conftest.$ac_ext <<_ACEOF 4507/* confdefs.h. */ 4508_ACEOF 4509cat confdefs.h >>conftest.$ac_ext 4510cat >>conftest.$ac_ext <<_ACEOF 4511/* end confdefs.h. */ 4512$ac_includes_default 4513 4514#include <$ac_header> 4515_ACEOF 4516rm -f conftest.$ac_objext 4517if { (ac_try="$ac_compile" 4518case "(($ac_try" in 4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4520 *) ac_try_echo=$ac_try;; 4521esac 4522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4523 (eval "$ac_compile") 2>conftest.er1 4524 ac_status=$? 4525 grep -v '^ *+' conftest.er1 >conftest.err 4526 rm -f conftest.er1 4527 cat conftest.err >&5 4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4529 (exit $ac_status); } && { 4530 test -z "$ac_c_werror_flag" || 4531 test ! -s conftest.err 4532 } && test -s conftest.$ac_objext; then 4533 eval "$as_ac_Header=yes" 4534else 4535 echo "$as_me: failed program was:" >&5 4536sed 's/^/| /' conftest.$ac_ext >&5 4537 4538 eval "$as_ac_Header=no" 4539fi 4540 4541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4542fi 4543ac_res=`eval echo '${'$as_ac_Header'}'` 4544 { echo "$as_me:$LINENO: result: $ac_res" >&5 4545echo "${ECHO_T}$ac_res" >&6; } 4546if test `eval echo '${'$as_ac_Header'}'` = yes; then 4547 cat >>confdefs.h <<_ACEOF 4548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4549_ACEOF 4550 4551fi 4552 4553done 4554 4555 4556 4557 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4558 4559 4560 #------------------------------------------------------------------------ 4561 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4562 # It makes compiling go faster. (This is only a performance feature.) 4563 #------------------------------------------------------------------------ 4564 4565 if test -z "$no_pipe" -a -n "$GCC"; then 4566 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4567echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4568if test "${tcl_cv_cc_pipe+set}" = set; then 4569 echo $ECHO_N "(cached) $ECHO_C" >&6 4570else 4571 4572 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4573 cat >conftest.$ac_ext <<_ACEOF 4574/* confdefs.h. */ 4575_ACEOF 4576cat confdefs.h >>conftest.$ac_ext 4577cat >>conftest.$ac_ext <<_ACEOF 4578/* end confdefs.h. */ 4579 4580int 4581main () 4582{ 4583 4584 ; 4585 return 0; 4586} 4587_ACEOF 4588rm -f conftest.$ac_objext 4589if { (ac_try="$ac_compile" 4590case "(($ac_try" in 4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4592 *) ac_try_echo=$ac_try;; 4593esac 4594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4595 (eval "$ac_compile") 2>conftest.er1 4596 ac_status=$? 4597 grep -v '^ *+' conftest.er1 >conftest.err 4598 rm -f conftest.er1 4599 cat conftest.err >&5 4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4601 (exit $ac_status); } && { 4602 test -z "$ac_c_werror_flag" || 4603 test ! -s conftest.err 4604 } && test -s conftest.$ac_objext; then 4605 tcl_cv_cc_pipe=yes 4606else 4607 echo "$as_me: failed program was:" >&5 4608sed 's/^/| /' conftest.$ac_ext >&5 4609 4610 tcl_cv_cc_pipe=no 4611fi 4612 4613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4614 CFLAGS=$hold_cflags 4615fi 4616{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4617echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4618 if test $tcl_cv_cc_pipe = yes; then 4619 CFLAGS="$CFLAGS -pipe" 4620 fi 4621 fi 4622 4623 #-------------------------------------------------------------------- 4624 # Common compiler flag setup 4625 #-------------------------------------------------------------------- 4626 4627 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4628echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4629if test "${ac_cv_c_bigendian+set}" = set; then 4630 echo $ECHO_N "(cached) $ECHO_C" >&6 4631else 4632 # See if sys/param.h defines the BYTE_ORDER macro. 4633cat >conftest.$ac_ext <<_ACEOF 4634/* confdefs.h. */ 4635_ACEOF 4636cat confdefs.h >>conftest.$ac_ext 4637cat >>conftest.$ac_ext <<_ACEOF 4638/* end confdefs.h. */ 4639#include <sys/types.h> 4640#include <sys/param.h> 4641 4642int 4643main () 4644{ 4645#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4646 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4647 bogus endian macros 4648#endif 4649 4650 ; 4651 return 0; 4652} 4653_ACEOF 4654rm -f conftest.$ac_objext 4655if { (ac_try="$ac_compile" 4656case "(($ac_try" in 4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4658 *) ac_try_echo=$ac_try;; 4659esac 4660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4661 (eval "$ac_compile") 2>conftest.er1 4662 ac_status=$? 4663 grep -v '^ *+' conftest.er1 >conftest.err 4664 rm -f conftest.er1 4665 cat conftest.err >&5 4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4667 (exit $ac_status); } && { 4668 test -z "$ac_c_werror_flag" || 4669 test ! -s conftest.err 4670 } && test -s conftest.$ac_objext; then 4671 # It does; now see whether it defined to BIG_ENDIAN or not. 4672cat >conftest.$ac_ext <<_ACEOF 4673/* confdefs.h. */ 4674_ACEOF 4675cat confdefs.h >>conftest.$ac_ext 4676cat >>conftest.$ac_ext <<_ACEOF 4677/* end confdefs.h. */ 4678#include <sys/types.h> 4679#include <sys/param.h> 4680 4681int 4682main () 4683{ 4684#if BYTE_ORDER != BIG_ENDIAN 4685 not big endian 4686#endif 4687 4688 ; 4689 return 0; 4690} 4691_ACEOF 4692rm -f conftest.$ac_objext 4693if { (ac_try="$ac_compile" 4694case "(($ac_try" in 4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4696 *) ac_try_echo=$ac_try;; 4697esac 4698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4699 (eval "$ac_compile") 2>conftest.er1 4700 ac_status=$? 4701 grep -v '^ *+' conftest.er1 >conftest.err 4702 rm -f conftest.er1 4703 cat conftest.err >&5 4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4705 (exit $ac_status); } && { 4706 test -z "$ac_c_werror_flag" || 4707 test ! -s conftest.err 4708 } && test -s conftest.$ac_objext; then 4709 ac_cv_c_bigendian=yes 4710else 4711 echo "$as_me: failed program was:" >&5 4712sed 's/^/| /' conftest.$ac_ext >&5 4713 4714 ac_cv_c_bigendian=no 4715fi 4716 4717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4718else 4719 echo "$as_me: failed program was:" >&5 4720sed 's/^/| /' conftest.$ac_ext >&5 4721 4722 # It does not; compile a test program. 4723if test "$cross_compiling" = yes; then 4724 # try to guess the endianness by grepping values into an object file 4725 ac_cv_c_bigendian=unknown 4726 cat >conftest.$ac_ext <<_ACEOF 4727/* confdefs.h. */ 4728_ACEOF 4729cat confdefs.h >>conftest.$ac_ext 4730cat >>conftest.$ac_ext <<_ACEOF 4731/* end confdefs.h. */ 4732short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4733short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4734void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4735short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4736short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4737void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4738int 4739main () 4740{ 4741 _ascii (); _ebcdic (); 4742 ; 4743 return 0; 4744} 4745_ACEOF 4746rm -f conftest.$ac_objext 4747if { (ac_try="$ac_compile" 4748case "(($ac_try" in 4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4750 *) ac_try_echo=$ac_try;; 4751esac 4752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4753 (eval "$ac_compile") 2>conftest.er1 4754 ac_status=$? 4755 grep -v '^ *+' conftest.er1 >conftest.err 4756 rm -f conftest.er1 4757 cat conftest.err >&5 4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4759 (exit $ac_status); } && { 4760 test -z "$ac_c_werror_flag" || 4761 test ! -s conftest.err 4762 } && test -s conftest.$ac_objext; then 4763 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4764 ac_cv_c_bigendian=yes 4765fi 4766if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4767 if test "$ac_cv_c_bigendian" = unknown; then 4768 ac_cv_c_bigendian=no 4769 else 4770 # finding both strings is unlikely to happen, but who knows? 4771 ac_cv_c_bigendian=unknown 4772 fi 4773fi 4774else 4775 echo "$as_me: failed program was:" >&5 4776sed 's/^/| /' conftest.$ac_ext >&5 4777 4778 4779fi 4780 4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4782else 4783 cat >conftest.$ac_ext <<_ACEOF 4784/* confdefs.h. */ 4785_ACEOF 4786cat confdefs.h >>conftest.$ac_ext 4787cat >>conftest.$ac_ext <<_ACEOF 4788/* end confdefs.h. */ 4789$ac_includes_default 4790int 4791main () 4792{ 4793 4794 /* Are we little or big endian? From Harbison&Steele. */ 4795 union 4796 { 4797 long int l; 4798 char c[sizeof (long int)]; 4799 } u; 4800 u.l = 1; 4801 return u.c[sizeof (long int) - 1] == 1; 4802 4803 ; 4804 return 0; 4805} 4806_ACEOF 4807rm -f conftest$ac_exeext 4808if { (ac_try="$ac_link" 4809case "(($ac_try" in 4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4811 *) ac_try_echo=$ac_try;; 4812esac 4813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4814 (eval "$ac_link") 2>&5 4815 ac_status=$? 4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4818 { (case "(($ac_try" in 4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4820 *) ac_try_echo=$ac_try;; 4821esac 4822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4823 (eval "$ac_try") 2>&5 4824 ac_status=$? 4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4826 (exit $ac_status); }; }; then 4827 ac_cv_c_bigendian=no 4828else 4829 echo "$as_me: program exited with status $ac_status" >&5 4830echo "$as_me: failed program was:" >&5 4831sed 's/^/| /' conftest.$ac_ext >&5 4832 4833( exit $ac_status ) 4834ac_cv_c_bigendian=yes 4835fi 4836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4837fi 4838 4839 4840fi 4841 4842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4843fi 4844{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4845echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4846case $ac_cv_c_bigendian in 4847 yes) 4848 4849cat >>confdefs.h <<\_ACEOF 4850#define WORDS_BIGENDIAN 1 4851_ACEOF 4852 ;; 4853 no) 4854 ;; 4855 *) 4856 { { echo "$as_me:$LINENO: error: unknown endianness 4857presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4858echo "$as_me: error: unknown endianness 4859presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4860 { (exit 1); exit 1; }; } ;; 4861esac 4862 4863 if test "${TEA_PLATFORM}" = "unix" ; then 4864 4865 #-------------------------------------------------------------------- 4866 # On a few very rare systems, all of the libm.a stuff is 4867 # already in libc.a. Set compiler flags accordingly. 4868 # Also, Linux requires the "ieee" library for math to work 4869 # right (and it must appear before "-lm"). 4870 #-------------------------------------------------------------------- 4871 4872 { echo "$as_me:$LINENO: checking for sin" >&5 4873echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4874if test "${ac_cv_func_sin+set}" = set; then 4875 echo $ECHO_N "(cached) $ECHO_C" >&6 4876else 4877 cat >conftest.$ac_ext <<_ACEOF 4878/* confdefs.h. */ 4879_ACEOF 4880cat confdefs.h >>conftest.$ac_ext 4881cat >>conftest.$ac_ext <<_ACEOF 4882/* end confdefs.h. */ 4883/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4884 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4885#define sin innocuous_sin 4886 4887/* System header to define __stub macros and hopefully few prototypes, 4888 which can conflict with char sin (); below. 4889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4890 <limits.h> exists even on freestanding compilers. */ 4891 4892#ifdef __STDC__ 4893# include <limits.h> 4894#else 4895# include <assert.h> 4896#endif 4897 4898#undef sin 4899 4900/* Override any GCC internal prototype to avoid an error. 4901 Use char because int might match the return type of a GCC 4902 builtin and then its argument prototype would still apply. */ 4903#ifdef __cplusplus 4904extern "C" 4905#endif 4906char sin (); 4907/* The GNU C library defines this for functions which it implements 4908 to always fail with ENOSYS. Some functions are actually named 4909 something starting with __ and the normal name is an alias. */ 4910#if defined __stub_sin || defined __stub___sin 4911choke me 4912#endif 4913 4914int 4915main () 4916{ 4917return sin (); 4918 ; 4919 return 0; 4920} 4921_ACEOF 4922rm -f conftest.$ac_objext conftest$ac_exeext 4923if { (ac_try="$ac_link" 4924case "(($ac_try" in 4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4926 *) ac_try_echo=$ac_try;; 4927esac 4928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4929 (eval "$ac_link") 2>conftest.er1 4930 ac_status=$? 4931 grep -v '^ *+' conftest.er1 >conftest.err 4932 rm -f conftest.er1 4933 cat conftest.err >&5 4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4935 (exit $ac_status); } && { 4936 test -z "$ac_c_werror_flag" || 4937 test ! -s conftest.err 4938 } && test -s conftest$ac_exeext && 4939 $as_test_x conftest$ac_exeext; then 4940 ac_cv_func_sin=yes 4941else 4942 echo "$as_me: failed program was:" >&5 4943sed 's/^/| /' conftest.$ac_ext >&5 4944 4945 ac_cv_func_sin=no 4946fi 4947 4948rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4949 conftest$ac_exeext conftest.$ac_ext 4950fi 4951{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4952echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4953if test $ac_cv_func_sin = yes; then 4954 MATH_LIBS="" 4955else 4956 MATH_LIBS="-lm" 4957fi 4958 4959 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4960echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4961if test "${ac_cv_lib_ieee_main+set}" = set; then 4962 echo $ECHO_N "(cached) $ECHO_C" >&6 4963else 4964 ac_check_lib_save_LIBS=$LIBS 4965LIBS="-lieee $LIBS" 4966cat >conftest.$ac_ext <<_ACEOF 4967/* confdefs.h. */ 4968_ACEOF 4969cat confdefs.h >>conftest.$ac_ext 4970cat >>conftest.$ac_ext <<_ACEOF 4971/* end confdefs.h. */ 4972 4973 4974int 4975main () 4976{ 4977return main (); 4978 ; 4979 return 0; 4980} 4981_ACEOF 4982rm -f conftest.$ac_objext conftest$ac_exeext 4983if { (ac_try="$ac_link" 4984case "(($ac_try" in 4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4986 *) ac_try_echo=$ac_try;; 4987esac 4988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4989 (eval "$ac_link") 2>conftest.er1 4990 ac_status=$? 4991 grep -v '^ *+' conftest.er1 >conftest.err 4992 rm -f conftest.er1 4993 cat conftest.err >&5 4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4995 (exit $ac_status); } && { 4996 test -z "$ac_c_werror_flag" || 4997 test ! -s conftest.err 4998 } && test -s conftest$ac_exeext && 4999 $as_test_x conftest$ac_exeext; then 5000 ac_cv_lib_ieee_main=yes 5001else 5002 echo "$as_me: failed program was:" >&5 5003sed 's/^/| /' conftest.$ac_ext >&5 5004 5005 ac_cv_lib_ieee_main=no 5006fi 5007 5008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5009 conftest$ac_exeext conftest.$ac_ext 5010LIBS=$ac_check_lib_save_LIBS 5011fi 5012{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 5013echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 5014if test $ac_cv_lib_ieee_main = yes; then 5015 MATH_LIBS="-lieee $MATH_LIBS" 5016fi 5017 5018 5019 #-------------------------------------------------------------------- 5020 # Interactive UNIX requires -linet instead of -lsocket, plus it 5021 # needs net/errno.h to define the socket-related error codes. 5022 #-------------------------------------------------------------------- 5023 5024 { echo "$as_me:$LINENO: checking for main in -linet" >&5 5025echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 5026if test "${ac_cv_lib_inet_main+set}" = set; then 5027 echo $ECHO_N "(cached) $ECHO_C" >&6 5028else 5029 ac_check_lib_save_LIBS=$LIBS 5030LIBS="-linet $LIBS" 5031cat >conftest.$ac_ext <<_ACEOF 5032/* confdefs.h. */ 5033_ACEOF 5034cat confdefs.h >>conftest.$ac_ext 5035cat >>conftest.$ac_ext <<_ACEOF 5036/* end confdefs.h. */ 5037 5038 5039int 5040main () 5041{ 5042return main (); 5043 ; 5044 return 0; 5045} 5046_ACEOF 5047rm -f conftest.$ac_objext conftest$ac_exeext 5048if { (ac_try="$ac_link" 5049case "(($ac_try" in 5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5051 *) ac_try_echo=$ac_try;; 5052esac 5053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5054 (eval "$ac_link") 2>conftest.er1 5055 ac_status=$? 5056 grep -v '^ *+' conftest.er1 >conftest.err 5057 rm -f conftest.er1 5058 cat conftest.err >&5 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5060 (exit $ac_status); } && { 5061 test -z "$ac_c_werror_flag" || 5062 test ! -s conftest.err 5063 } && test -s conftest$ac_exeext && 5064 $as_test_x conftest$ac_exeext; then 5065 ac_cv_lib_inet_main=yes 5066else 5067 echo "$as_me: failed program was:" >&5 5068sed 's/^/| /' conftest.$ac_ext >&5 5069 5070 ac_cv_lib_inet_main=no 5071fi 5072 5073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5074 conftest$ac_exeext conftest.$ac_ext 5075LIBS=$ac_check_lib_save_LIBS 5076fi 5077{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 5078echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 5079if test $ac_cv_lib_inet_main = yes; then 5080 LIBS="$LIBS -linet" 5081fi 5082 5083 if test "${ac_cv_header_net_errno_h+set}" = set; then 5084 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 5085echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 5086if test "${ac_cv_header_net_errno_h+set}" = set; then 5087 echo $ECHO_N "(cached) $ECHO_C" >&6 5088fi 5089{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 5090echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 5091else 5092 # Is the header compilable? 5093{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 5094echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 5095cat >conftest.$ac_ext <<_ACEOF 5096/* confdefs.h. */ 5097_ACEOF 5098cat confdefs.h >>conftest.$ac_ext 5099cat >>conftest.$ac_ext <<_ACEOF 5100/* end confdefs.h. */ 5101$ac_includes_default 5102#include <net/errno.h> 5103_ACEOF 5104rm -f conftest.$ac_objext 5105if { (ac_try="$ac_compile" 5106case "(($ac_try" in 5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5108 *) ac_try_echo=$ac_try;; 5109esac 5110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5111 (eval "$ac_compile") 2>conftest.er1 5112 ac_status=$? 5113 grep -v '^ *+' conftest.er1 >conftest.err 5114 rm -f conftest.er1 5115 cat conftest.err >&5 5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5117 (exit $ac_status); } && { 5118 test -z "$ac_c_werror_flag" || 5119 test ! -s conftest.err 5120 } && test -s conftest.$ac_objext; then 5121 ac_header_compiler=yes 5122else 5123 echo "$as_me: failed program was:" >&5 5124sed 's/^/| /' conftest.$ac_ext >&5 5125 5126 ac_header_compiler=no 5127fi 5128 5129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5130{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5131echo "${ECHO_T}$ac_header_compiler" >&6; } 5132 5133# Is the header present? 5134{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 5135echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 5136cat >conftest.$ac_ext <<_ACEOF 5137/* confdefs.h. */ 5138_ACEOF 5139cat confdefs.h >>conftest.$ac_ext 5140cat >>conftest.$ac_ext <<_ACEOF 5141/* end confdefs.h. */ 5142#include <net/errno.h> 5143_ACEOF 5144if { (ac_try="$ac_cpp conftest.$ac_ext" 5145case "(($ac_try" in 5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5147 *) ac_try_echo=$ac_try;; 5148esac 5149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5151 ac_status=$? 5152 grep -v '^ *+' conftest.er1 >conftest.err 5153 rm -f conftest.er1 5154 cat conftest.err >&5 5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5156 (exit $ac_status); } >/dev/null && { 5157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5158 test ! -s conftest.err 5159 }; then 5160 ac_header_preproc=yes 5161else 5162 echo "$as_me: failed program was:" >&5 5163sed 's/^/| /' conftest.$ac_ext >&5 5164 5165 ac_header_preproc=no 5166fi 5167 5168rm -f conftest.err conftest.$ac_ext 5169{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5170echo "${ECHO_T}$ac_header_preproc" >&6; } 5171 5172# So? What about this header? 5173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5174 yes:no: ) 5175 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5176echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5177 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 5178echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 5179 ac_header_preproc=yes 5180 ;; 5181 no:yes:* ) 5182 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 5183echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 5184 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 5185echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 5186 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 5187echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 5188 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 5189echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5190 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 5191echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 5192 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 5193echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 5194 5195 ;; 5196esac 5197{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 5198echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 5199if test "${ac_cv_header_net_errno_h+set}" = set; then 5200 echo $ECHO_N "(cached) $ECHO_C" >&6 5201else 5202 ac_cv_header_net_errno_h=$ac_header_preproc 5203fi 5204{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 5205echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 5206 5207fi 5208if test $ac_cv_header_net_errno_h = yes; then 5209 5210 5211cat >>confdefs.h <<\_ACEOF 5212#define HAVE_NET_ERRNO_H 1 5213_ACEOF 5214 5215fi 5216 5217 5218 5219 #-------------------------------------------------------------------- 5220 # Check for the existence of the -lsocket and -lnsl libraries. 5221 # The order here is important, so that they end up in the right 5222 # order in the command line generated by make. Here are some 5223 # special considerations: 5224 # 1. Use "connect" and "accept" to check for -lsocket, and 5225 # "gethostbyname" to check for -lnsl. 5226 # 2. Use each function name only once: can't redo a check because 5227 # autoconf caches the results of the last check and won't redo it. 5228 # 3. Use -lnsl and -lsocket only if they supply procedures that 5229 # aren't already present in the normal libraries. This is because 5230 # IRIX 5.2 has libraries, but they aren't needed and they're 5231 # bogus: they goof up name resolution if used. 5232 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 5233 # To get around this problem, check for both libraries together 5234 # if -lsocket doesn't work by itself. 5235 #-------------------------------------------------------------------- 5236 5237 tcl_checkBoth=0 5238 { echo "$as_me:$LINENO: checking for connect" >&5 5239echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 5240if test "${ac_cv_func_connect+set}" = set; then 5241 echo $ECHO_N "(cached) $ECHO_C" >&6 5242else 5243 cat >conftest.$ac_ext <<_ACEOF 5244/* confdefs.h. */ 5245_ACEOF 5246cat confdefs.h >>conftest.$ac_ext 5247cat >>conftest.$ac_ext <<_ACEOF 5248/* end confdefs.h. */ 5249/* Define connect to an innocuous variant, in case <limits.h> declares connect. 5250 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5251#define connect innocuous_connect 5252 5253/* System header to define __stub macros and hopefully few prototypes, 5254 which can conflict with char connect (); below. 5255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5256 <limits.h> exists even on freestanding compilers. */ 5257 5258#ifdef __STDC__ 5259# include <limits.h> 5260#else 5261# include <assert.h> 5262#endif 5263 5264#undef connect 5265 5266/* Override any GCC internal prototype to avoid an error. 5267 Use char because int might match the return type of a GCC 5268 builtin and then its argument prototype would still apply. */ 5269#ifdef __cplusplus 5270extern "C" 5271#endif 5272char connect (); 5273/* The GNU C library defines this for functions which it implements 5274 to always fail with ENOSYS. Some functions are actually named 5275 something starting with __ and the normal name is an alias. */ 5276#if defined __stub_connect || defined __stub___connect 5277choke me 5278#endif 5279 5280int 5281main () 5282{ 5283return connect (); 5284 ; 5285 return 0; 5286} 5287_ACEOF 5288rm -f conftest.$ac_objext conftest$ac_exeext 5289if { (ac_try="$ac_link" 5290case "(($ac_try" in 5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5292 *) ac_try_echo=$ac_try;; 5293esac 5294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5295 (eval "$ac_link") 2>conftest.er1 5296 ac_status=$? 5297 grep -v '^ *+' conftest.er1 >conftest.err 5298 rm -f conftest.er1 5299 cat conftest.err >&5 5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5301 (exit $ac_status); } && { 5302 test -z "$ac_c_werror_flag" || 5303 test ! -s conftest.err 5304 } && test -s conftest$ac_exeext && 5305 $as_test_x conftest$ac_exeext; then 5306 ac_cv_func_connect=yes 5307else 5308 echo "$as_me: failed program was:" >&5 5309sed 's/^/| /' conftest.$ac_ext >&5 5310 5311 ac_cv_func_connect=no 5312fi 5313 5314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5315 conftest$ac_exeext conftest.$ac_ext 5316fi 5317{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 5318echo "${ECHO_T}$ac_cv_func_connect" >&6; } 5319if test $ac_cv_func_connect = yes; then 5320 tcl_checkSocket=0 5321else 5322 tcl_checkSocket=1 5323fi 5324 5325 if test "$tcl_checkSocket" = 1; then 5326 { echo "$as_me:$LINENO: checking for setsockopt" >&5 5327echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 5328if test "${ac_cv_func_setsockopt+set}" = set; then 5329 echo $ECHO_N "(cached) $ECHO_C" >&6 5330else 5331 cat >conftest.$ac_ext <<_ACEOF 5332/* confdefs.h. */ 5333_ACEOF 5334cat confdefs.h >>conftest.$ac_ext 5335cat >>conftest.$ac_ext <<_ACEOF 5336/* end confdefs.h. */ 5337/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 5338 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5339#define setsockopt innocuous_setsockopt 5340 5341/* System header to define __stub macros and hopefully few prototypes, 5342 which can conflict with char setsockopt (); below. 5343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5344 <limits.h> exists even on freestanding compilers. */ 5345 5346#ifdef __STDC__ 5347# include <limits.h> 5348#else 5349# include <assert.h> 5350#endif 5351 5352#undef setsockopt 5353 5354/* Override any GCC internal prototype to avoid an error. 5355 Use char because int might match the return type of a GCC 5356 builtin and then its argument prototype would still apply. */ 5357#ifdef __cplusplus 5358extern "C" 5359#endif 5360char setsockopt (); 5361/* The GNU C library defines this for functions which it implements 5362 to always fail with ENOSYS. Some functions are actually named 5363 something starting with __ and the normal name is an alias. */ 5364#if defined __stub_setsockopt || defined __stub___setsockopt 5365choke me 5366#endif 5367 5368int 5369main () 5370{ 5371return setsockopt (); 5372 ; 5373 return 0; 5374} 5375_ACEOF 5376rm -f conftest.$ac_objext conftest$ac_exeext 5377if { (ac_try="$ac_link" 5378case "(($ac_try" in 5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5380 *) ac_try_echo=$ac_try;; 5381esac 5382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5383 (eval "$ac_link") 2>conftest.er1 5384 ac_status=$? 5385 grep -v '^ *+' conftest.er1 >conftest.err 5386 rm -f conftest.er1 5387 cat conftest.err >&5 5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5389 (exit $ac_status); } && { 5390 test -z "$ac_c_werror_flag" || 5391 test ! -s conftest.err 5392 } && test -s conftest$ac_exeext && 5393 $as_test_x conftest$ac_exeext; then 5394 ac_cv_func_setsockopt=yes 5395else 5396 echo "$as_me: failed program was:" >&5 5397sed 's/^/| /' conftest.$ac_ext >&5 5398 5399 ac_cv_func_setsockopt=no 5400fi 5401 5402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5403 conftest$ac_exeext conftest.$ac_ext 5404fi 5405{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 5406echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 5407if test $ac_cv_func_setsockopt = yes; then 5408 : 5409else 5410 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 5411echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 5412if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 5413 echo $ECHO_N "(cached) $ECHO_C" >&6 5414else 5415 ac_check_lib_save_LIBS=$LIBS 5416LIBS="-lsocket $LIBS" 5417cat >conftest.$ac_ext <<_ACEOF 5418/* confdefs.h. */ 5419_ACEOF 5420cat confdefs.h >>conftest.$ac_ext 5421cat >>conftest.$ac_ext <<_ACEOF 5422/* end confdefs.h. */ 5423 5424/* Override any GCC internal prototype to avoid an error. 5425 Use char because int might match the return type of a GCC 5426 builtin and then its argument prototype would still apply. */ 5427#ifdef __cplusplus 5428extern "C" 5429#endif 5430char setsockopt (); 5431int 5432main () 5433{ 5434return setsockopt (); 5435 ; 5436 return 0; 5437} 5438_ACEOF 5439rm -f conftest.$ac_objext conftest$ac_exeext 5440if { (ac_try="$ac_link" 5441case "(($ac_try" in 5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5443 *) ac_try_echo=$ac_try;; 5444esac 5445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5446 (eval "$ac_link") 2>conftest.er1 5447 ac_status=$? 5448 grep -v '^ *+' conftest.er1 >conftest.err 5449 rm -f conftest.er1 5450 cat conftest.err >&5 5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5452 (exit $ac_status); } && { 5453 test -z "$ac_c_werror_flag" || 5454 test ! -s conftest.err 5455 } && test -s conftest$ac_exeext && 5456 $as_test_x conftest$ac_exeext; then 5457 ac_cv_lib_socket_setsockopt=yes 5458else 5459 echo "$as_me: failed program was:" >&5 5460sed 's/^/| /' conftest.$ac_ext >&5 5461 5462 ac_cv_lib_socket_setsockopt=no 5463fi 5464 5465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5466 conftest$ac_exeext conftest.$ac_ext 5467LIBS=$ac_check_lib_save_LIBS 5468fi 5469{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 5470echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 5471if test $ac_cv_lib_socket_setsockopt = yes; then 5472 LIBS="$LIBS -lsocket" 5473else 5474 tcl_checkBoth=1 5475fi 5476 5477fi 5478 5479 fi 5480 if test "$tcl_checkBoth" = 1; then 5481 tk_oldLibs=$LIBS 5482 LIBS="$LIBS -lsocket -lnsl" 5483 { echo "$as_me:$LINENO: checking for accept" >&5 5484echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 5485if test "${ac_cv_func_accept+set}" = set; then 5486 echo $ECHO_N "(cached) $ECHO_C" >&6 5487else 5488 cat >conftest.$ac_ext <<_ACEOF 5489/* confdefs.h. */ 5490_ACEOF 5491cat confdefs.h >>conftest.$ac_ext 5492cat >>conftest.$ac_ext <<_ACEOF 5493/* end confdefs.h. */ 5494/* Define accept to an innocuous variant, in case <limits.h> declares accept. 5495 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5496#define accept innocuous_accept 5497 5498/* System header to define __stub macros and hopefully few prototypes, 5499 which can conflict with char accept (); below. 5500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5501 <limits.h> exists even on freestanding compilers. */ 5502 5503#ifdef __STDC__ 5504# include <limits.h> 5505#else 5506# include <assert.h> 5507#endif 5508 5509#undef accept 5510 5511/* Override any GCC internal prototype to avoid an error. 5512 Use char because int might match the return type of a GCC 5513 builtin and then its argument prototype would still apply. */ 5514#ifdef __cplusplus 5515extern "C" 5516#endif 5517char accept (); 5518/* The GNU C library defines this for functions which it implements 5519 to always fail with ENOSYS. Some functions are actually named 5520 something starting with __ and the normal name is an alias. */ 5521#if defined __stub_accept || defined __stub___accept 5522choke me 5523#endif 5524 5525int 5526main () 5527{ 5528return accept (); 5529 ; 5530 return 0; 5531} 5532_ACEOF 5533rm -f conftest.$ac_objext conftest$ac_exeext 5534if { (ac_try="$ac_link" 5535case "(($ac_try" in 5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5537 *) ac_try_echo=$ac_try;; 5538esac 5539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5540 (eval "$ac_link") 2>conftest.er1 5541 ac_status=$? 5542 grep -v '^ *+' conftest.er1 >conftest.err 5543 rm -f conftest.er1 5544 cat conftest.err >&5 5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5546 (exit $ac_status); } && { 5547 test -z "$ac_c_werror_flag" || 5548 test ! -s conftest.err 5549 } && test -s conftest$ac_exeext && 5550 $as_test_x conftest$ac_exeext; then 5551 ac_cv_func_accept=yes 5552else 5553 echo "$as_me: failed program was:" >&5 5554sed 's/^/| /' conftest.$ac_ext >&5 5555 5556 ac_cv_func_accept=no 5557fi 5558 5559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5560 conftest$ac_exeext conftest.$ac_ext 5561fi 5562{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5563echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5564if test $ac_cv_func_accept = yes; then 5565 tcl_checkNsl=0 5566else 5567 LIBS=$tk_oldLibs 5568fi 5569 5570 fi 5571 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5572echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5573if test "${ac_cv_func_gethostbyname+set}" = set; then 5574 echo $ECHO_N "(cached) $ECHO_C" >&6 5575else 5576 cat >conftest.$ac_ext <<_ACEOF 5577/* confdefs.h. */ 5578_ACEOF 5579cat confdefs.h >>conftest.$ac_ext 5580cat >>conftest.$ac_ext <<_ACEOF 5581/* end confdefs.h. */ 5582/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5583 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5584#define gethostbyname innocuous_gethostbyname 5585 5586/* System header to define __stub macros and hopefully few prototypes, 5587 which can conflict with char gethostbyname (); below. 5588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5589 <limits.h> exists even on freestanding compilers. */ 5590 5591#ifdef __STDC__ 5592# include <limits.h> 5593#else 5594# include <assert.h> 5595#endif 5596 5597#undef gethostbyname 5598 5599/* Override any GCC internal prototype to avoid an error. 5600 Use char because int might match the return type of a GCC 5601 builtin and then its argument prototype would still apply. */ 5602#ifdef __cplusplus 5603extern "C" 5604#endif 5605char gethostbyname (); 5606/* The GNU C library defines this for functions which it implements 5607 to always fail with ENOSYS. Some functions are actually named 5608 something starting with __ and the normal name is an alias. */ 5609#if defined __stub_gethostbyname || defined __stub___gethostbyname 5610choke me 5611#endif 5612 5613int 5614main () 5615{ 5616return gethostbyname (); 5617 ; 5618 return 0; 5619} 5620_ACEOF 5621rm -f conftest.$ac_objext conftest$ac_exeext 5622if { (ac_try="$ac_link" 5623case "(($ac_try" in 5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5625 *) ac_try_echo=$ac_try;; 5626esac 5627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5628 (eval "$ac_link") 2>conftest.er1 5629 ac_status=$? 5630 grep -v '^ *+' conftest.er1 >conftest.err 5631 rm -f conftest.er1 5632 cat conftest.err >&5 5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5634 (exit $ac_status); } && { 5635 test -z "$ac_c_werror_flag" || 5636 test ! -s conftest.err 5637 } && test -s conftest$ac_exeext && 5638 $as_test_x conftest$ac_exeext; then 5639 ac_cv_func_gethostbyname=yes 5640else 5641 echo "$as_me: failed program was:" >&5 5642sed 's/^/| /' conftest.$ac_ext >&5 5643 5644 ac_cv_func_gethostbyname=no 5645fi 5646 5647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5648 conftest$ac_exeext conftest.$ac_ext 5649fi 5650{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5651echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5652if test $ac_cv_func_gethostbyname = yes; then 5653 : 5654else 5655 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5656echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5657if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5658 echo $ECHO_N "(cached) $ECHO_C" >&6 5659else 5660 ac_check_lib_save_LIBS=$LIBS 5661LIBS="-lnsl $LIBS" 5662cat >conftest.$ac_ext <<_ACEOF 5663/* confdefs.h. */ 5664_ACEOF 5665cat confdefs.h >>conftest.$ac_ext 5666cat >>conftest.$ac_ext <<_ACEOF 5667/* end confdefs.h. */ 5668 5669/* Override any GCC internal prototype to avoid an error. 5670 Use char because int might match the return type of a GCC 5671 builtin and then its argument prototype would still apply. */ 5672#ifdef __cplusplus 5673extern "C" 5674#endif 5675char gethostbyname (); 5676int 5677main () 5678{ 5679return gethostbyname (); 5680 ; 5681 return 0; 5682} 5683_ACEOF 5684rm -f conftest.$ac_objext conftest$ac_exeext 5685if { (ac_try="$ac_link" 5686case "(($ac_try" in 5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5688 *) ac_try_echo=$ac_try;; 5689esac 5690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5691 (eval "$ac_link") 2>conftest.er1 5692 ac_status=$? 5693 grep -v '^ *+' conftest.er1 >conftest.err 5694 rm -f conftest.er1 5695 cat conftest.err >&5 5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5697 (exit $ac_status); } && { 5698 test -z "$ac_c_werror_flag" || 5699 test ! -s conftest.err 5700 } && test -s conftest$ac_exeext && 5701 $as_test_x conftest$ac_exeext; then 5702 ac_cv_lib_nsl_gethostbyname=yes 5703else 5704 echo "$as_me: failed program was:" >&5 5705sed 's/^/| /' conftest.$ac_ext >&5 5706 5707 ac_cv_lib_nsl_gethostbyname=no 5708fi 5709 5710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5711 conftest$ac_exeext conftest.$ac_ext 5712LIBS=$ac_check_lib_save_LIBS 5713fi 5714{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5715echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5716if test $ac_cv_lib_nsl_gethostbyname = yes; then 5717 LIBS="$LIBS -lnsl" 5718fi 5719 5720fi 5721 5722 5723 # TEA specific: Don't perform the eval of the libraries here because 5724 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5725 5726 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5727 5728 5729 5730 5731 { echo "$as_me:$LINENO: checking dirent.h" >&5 5732echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5733if test "${tcl_cv_dirent_h+set}" = set; then 5734 echo $ECHO_N "(cached) $ECHO_C" >&6 5735else 5736 5737 cat >conftest.$ac_ext <<_ACEOF 5738/* confdefs.h. */ 5739_ACEOF 5740cat confdefs.h >>conftest.$ac_ext 5741cat >>conftest.$ac_ext <<_ACEOF 5742/* end confdefs.h. */ 5743#include <sys/types.h> 5744#include <dirent.h> 5745int 5746main () 5747{ 5748 5749#ifndef _POSIX_SOURCE 5750# ifdef __Lynx__ 5751 /* 5752 * Generate compilation error to make the test fail: Lynx headers 5753 * are only valid if really in the POSIX environment. 5754 */ 5755 5756 missing_procedure(); 5757# endif 5758#endif 5759DIR *d; 5760struct dirent *entryPtr; 5761char *p; 5762d = opendir("foobar"); 5763entryPtr = readdir(d); 5764p = entryPtr->d_name; 5765closedir(d); 5766 5767 ; 5768 return 0; 5769} 5770_ACEOF 5771rm -f conftest.$ac_objext conftest$ac_exeext 5772if { (ac_try="$ac_link" 5773case "(($ac_try" in 5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5775 *) ac_try_echo=$ac_try;; 5776esac 5777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5778 (eval "$ac_link") 2>conftest.er1 5779 ac_status=$? 5780 grep -v '^ *+' conftest.er1 >conftest.err 5781 rm -f conftest.er1 5782 cat conftest.err >&5 5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5784 (exit $ac_status); } && { 5785 test -z "$ac_c_werror_flag" || 5786 test ! -s conftest.err 5787 } && test -s conftest$ac_exeext && 5788 $as_test_x conftest$ac_exeext; then 5789 tcl_cv_dirent_h=yes 5790else 5791 echo "$as_me: failed program was:" >&5 5792sed 's/^/| /' conftest.$ac_ext >&5 5793 5794 tcl_cv_dirent_h=no 5795fi 5796 5797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5798 conftest$ac_exeext conftest.$ac_ext 5799fi 5800{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5801echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5802 5803 if test $tcl_cv_dirent_h = no; then 5804 5805cat >>confdefs.h <<\_ACEOF 5806#define NO_DIRENT_H 1 5807_ACEOF 5808 5809 fi 5810 5811 # TEA specific: 5812 if test "${ac_cv_header_errno_h+set}" = set; then 5813 { echo "$as_me:$LINENO: checking for errno.h" >&5 5814echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5815if test "${ac_cv_header_errno_h+set}" = set; then 5816 echo $ECHO_N "(cached) $ECHO_C" >&6 5817fi 5818{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5819echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5820else 5821 # Is the header compilable? 5822{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5823echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5824cat >conftest.$ac_ext <<_ACEOF 5825/* confdefs.h. */ 5826_ACEOF 5827cat confdefs.h >>conftest.$ac_ext 5828cat >>conftest.$ac_ext <<_ACEOF 5829/* end confdefs.h. */ 5830$ac_includes_default 5831#include <errno.h> 5832_ACEOF 5833rm -f conftest.$ac_objext 5834if { (ac_try="$ac_compile" 5835case "(($ac_try" in 5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5837 *) ac_try_echo=$ac_try;; 5838esac 5839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5840 (eval "$ac_compile") 2>conftest.er1 5841 ac_status=$? 5842 grep -v '^ *+' conftest.er1 >conftest.err 5843 rm -f conftest.er1 5844 cat conftest.err >&5 5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5846 (exit $ac_status); } && { 5847 test -z "$ac_c_werror_flag" || 5848 test ! -s conftest.err 5849 } && test -s conftest.$ac_objext; then 5850 ac_header_compiler=yes 5851else 5852 echo "$as_me: failed program was:" >&5 5853sed 's/^/| /' conftest.$ac_ext >&5 5854 5855 ac_header_compiler=no 5856fi 5857 5858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5859{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5860echo "${ECHO_T}$ac_header_compiler" >&6; } 5861 5862# Is the header present? 5863{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5864echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5865cat >conftest.$ac_ext <<_ACEOF 5866/* confdefs.h. */ 5867_ACEOF 5868cat confdefs.h >>conftest.$ac_ext 5869cat >>conftest.$ac_ext <<_ACEOF 5870/* end confdefs.h. */ 5871#include <errno.h> 5872_ACEOF 5873if { (ac_try="$ac_cpp conftest.$ac_ext" 5874case "(($ac_try" in 5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5876 *) ac_try_echo=$ac_try;; 5877esac 5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5880 ac_status=$? 5881 grep -v '^ *+' conftest.er1 >conftest.err 5882 rm -f conftest.er1 5883 cat conftest.err >&5 5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5885 (exit $ac_status); } >/dev/null && { 5886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5887 test ! -s conftest.err 5888 }; then 5889 ac_header_preproc=yes 5890else 5891 echo "$as_me: failed program was:" >&5 5892sed 's/^/| /' conftest.$ac_ext >&5 5893 5894 ac_header_preproc=no 5895fi 5896 5897rm -f conftest.err conftest.$ac_ext 5898{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5899echo "${ECHO_T}$ac_header_preproc" >&6; } 5900 5901# So? What about this header? 5902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5903 yes:no: ) 5904 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5905echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5906 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5907echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5908 ac_header_preproc=yes 5909 ;; 5910 no:yes:* ) 5911 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5912echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5913 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5914echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5915 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5916echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5917 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5918echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5919 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5920echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5921 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5922echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5923 5924 ;; 5925esac 5926{ echo "$as_me:$LINENO: checking for errno.h" >&5 5927echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5928if test "${ac_cv_header_errno_h+set}" = set; then 5929 echo $ECHO_N "(cached) $ECHO_C" >&6 5930else 5931 ac_cv_header_errno_h=$ac_header_preproc 5932fi 5933{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5934echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5935 5936fi 5937if test $ac_cv_header_errno_h = yes; then 5938 : 5939else 5940 5941cat >>confdefs.h <<\_ACEOF 5942#define NO_ERRNO_H 1 5943_ACEOF 5944 5945fi 5946 5947 5948 if test "${ac_cv_header_float_h+set}" = set; then 5949 { echo "$as_me:$LINENO: checking for float.h" >&5 5950echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5951if test "${ac_cv_header_float_h+set}" = set; then 5952 echo $ECHO_N "(cached) $ECHO_C" >&6 5953fi 5954{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5955echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5956else 5957 # Is the header compilable? 5958{ echo "$as_me:$LINENO: checking float.h usability" >&5 5959echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5960cat >conftest.$ac_ext <<_ACEOF 5961/* confdefs.h. */ 5962_ACEOF 5963cat confdefs.h >>conftest.$ac_ext 5964cat >>conftest.$ac_ext <<_ACEOF 5965/* end confdefs.h. */ 5966$ac_includes_default 5967#include <float.h> 5968_ACEOF 5969rm -f conftest.$ac_objext 5970if { (ac_try="$ac_compile" 5971case "(($ac_try" in 5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5973 *) ac_try_echo=$ac_try;; 5974esac 5975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5976 (eval "$ac_compile") 2>conftest.er1 5977 ac_status=$? 5978 grep -v '^ *+' conftest.er1 >conftest.err 5979 rm -f conftest.er1 5980 cat conftest.err >&5 5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5982 (exit $ac_status); } && { 5983 test -z "$ac_c_werror_flag" || 5984 test ! -s conftest.err 5985 } && test -s conftest.$ac_objext; then 5986 ac_header_compiler=yes 5987else 5988 echo "$as_me: failed program was:" >&5 5989sed 's/^/| /' conftest.$ac_ext >&5 5990 5991 ac_header_compiler=no 5992fi 5993 5994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5995{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5996echo "${ECHO_T}$ac_header_compiler" >&6; } 5997 5998# Is the header present? 5999{ echo "$as_me:$LINENO: checking float.h presence" >&5 6000echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 6001cat >conftest.$ac_ext <<_ACEOF 6002/* confdefs.h. */ 6003_ACEOF 6004cat confdefs.h >>conftest.$ac_ext 6005cat >>conftest.$ac_ext <<_ACEOF 6006/* end confdefs.h. */ 6007#include <float.h> 6008_ACEOF 6009if { (ac_try="$ac_cpp conftest.$ac_ext" 6010case "(($ac_try" in 6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6012 *) ac_try_echo=$ac_try;; 6013esac 6014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6016 ac_status=$? 6017 grep -v '^ *+' conftest.er1 >conftest.err 6018 rm -f conftest.er1 6019 cat conftest.err >&5 6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6021 (exit $ac_status); } >/dev/null && { 6022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6023 test ! -s conftest.err 6024 }; then 6025 ac_header_preproc=yes 6026else 6027 echo "$as_me: failed program was:" >&5 6028sed 's/^/| /' conftest.$ac_ext >&5 6029 6030 ac_header_preproc=no 6031fi 6032 6033rm -f conftest.err conftest.$ac_ext 6034{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6035echo "${ECHO_T}$ac_header_preproc" >&6; } 6036 6037# So? What about this header? 6038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6039 yes:no: ) 6040 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 6041echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6042 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 6043echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 6044 ac_header_preproc=yes 6045 ;; 6046 no:yes:* ) 6047 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 6048echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 6049 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 6050echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 6051 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 6052echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 6053 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 6054echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 6055 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 6056echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 6057 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 6058echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 6059 6060 ;; 6061esac 6062{ echo "$as_me:$LINENO: checking for float.h" >&5 6063echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 6064if test "${ac_cv_header_float_h+set}" = set; then 6065 echo $ECHO_N "(cached) $ECHO_C" >&6 6066else 6067 ac_cv_header_float_h=$ac_header_preproc 6068fi 6069{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 6070echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 6071 6072fi 6073if test $ac_cv_header_float_h = yes; then 6074 : 6075else 6076 6077cat >>confdefs.h <<\_ACEOF 6078#define NO_FLOAT_H 1 6079_ACEOF 6080 6081fi 6082 6083 6084 if test "${ac_cv_header_values_h+set}" = set; then 6085 { echo "$as_me:$LINENO: checking for values.h" >&5 6086echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 6087if test "${ac_cv_header_values_h+set}" = set; then 6088 echo $ECHO_N "(cached) $ECHO_C" >&6 6089fi 6090{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 6091echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 6092else 6093 # Is the header compilable? 6094{ echo "$as_me:$LINENO: checking values.h usability" >&5 6095echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 6096cat >conftest.$ac_ext <<_ACEOF 6097/* confdefs.h. */ 6098_ACEOF 6099cat confdefs.h >>conftest.$ac_ext 6100cat >>conftest.$ac_ext <<_ACEOF 6101/* end confdefs.h. */ 6102$ac_includes_default 6103#include <values.h> 6104_ACEOF 6105rm -f conftest.$ac_objext 6106if { (ac_try="$ac_compile" 6107case "(($ac_try" in 6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6109 *) ac_try_echo=$ac_try;; 6110esac 6111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6112 (eval "$ac_compile") 2>conftest.er1 6113 ac_status=$? 6114 grep -v '^ *+' conftest.er1 >conftest.err 6115 rm -f conftest.er1 6116 cat conftest.err >&5 6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6118 (exit $ac_status); } && { 6119 test -z "$ac_c_werror_flag" || 6120 test ! -s conftest.err 6121 } && test -s conftest.$ac_objext; then 6122 ac_header_compiler=yes 6123else 6124 echo "$as_me: failed program was:" >&5 6125sed 's/^/| /' conftest.$ac_ext >&5 6126 6127 ac_header_compiler=no 6128fi 6129 6130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6131{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6132echo "${ECHO_T}$ac_header_compiler" >&6; } 6133 6134# Is the header present? 6135{ echo "$as_me:$LINENO: checking values.h presence" >&5 6136echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 6137cat >conftest.$ac_ext <<_ACEOF 6138/* confdefs.h. */ 6139_ACEOF 6140cat confdefs.h >>conftest.$ac_ext 6141cat >>conftest.$ac_ext <<_ACEOF 6142/* end confdefs.h. */ 6143#include <values.h> 6144_ACEOF 6145if { (ac_try="$ac_cpp conftest.$ac_ext" 6146case "(($ac_try" in 6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6148 *) ac_try_echo=$ac_try;; 6149esac 6150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6152 ac_status=$? 6153 grep -v '^ *+' conftest.er1 >conftest.err 6154 rm -f conftest.er1 6155 cat conftest.err >&5 6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6157 (exit $ac_status); } >/dev/null && { 6158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6159 test ! -s conftest.err 6160 }; then 6161 ac_header_preproc=yes 6162else 6163 echo "$as_me: failed program was:" >&5 6164sed 's/^/| /' conftest.$ac_ext >&5 6165 6166 ac_header_preproc=no 6167fi 6168 6169rm -f conftest.err conftest.$ac_ext 6170{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6171echo "${ECHO_T}$ac_header_preproc" >&6; } 6172 6173# So? What about this header? 6174case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6175 yes:no: ) 6176 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 6177echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6178 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 6179echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 6180 ac_header_preproc=yes 6181 ;; 6182 no:yes:* ) 6183 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 6184echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 6185 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 6186echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 6187 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 6188echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 6189 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 6190echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 6191 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 6192echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 6193 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 6194echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 6195 6196 ;; 6197esac 6198{ echo "$as_me:$LINENO: checking for values.h" >&5 6199echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 6200if test "${ac_cv_header_values_h+set}" = set; then 6201 echo $ECHO_N "(cached) $ECHO_C" >&6 6202else 6203 ac_cv_header_values_h=$ac_header_preproc 6204fi 6205{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 6206echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 6207 6208fi 6209if test $ac_cv_header_values_h = yes; then 6210 : 6211else 6212 6213cat >>confdefs.h <<\_ACEOF 6214#define NO_VALUES_H 1 6215_ACEOF 6216 6217fi 6218 6219 6220 if test "${ac_cv_header_limits_h+set}" = set; then 6221 { echo "$as_me:$LINENO: checking for limits.h" >&5 6222echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 6223if test "${ac_cv_header_limits_h+set}" = set; then 6224 echo $ECHO_N "(cached) $ECHO_C" >&6 6225fi 6226{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 6227echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 6228else 6229 # Is the header compilable? 6230{ echo "$as_me:$LINENO: checking limits.h usability" >&5 6231echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 6232cat >conftest.$ac_ext <<_ACEOF 6233/* confdefs.h. */ 6234_ACEOF 6235cat confdefs.h >>conftest.$ac_ext 6236cat >>conftest.$ac_ext <<_ACEOF 6237/* end confdefs.h. */ 6238$ac_includes_default 6239#include <limits.h> 6240_ACEOF 6241rm -f conftest.$ac_objext 6242if { (ac_try="$ac_compile" 6243case "(($ac_try" in 6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6245 *) ac_try_echo=$ac_try;; 6246esac 6247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6248 (eval "$ac_compile") 2>conftest.er1 6249 ac_status=$? 6250 grep -v '^ *+' conftest.er1 >conftest.err 6251 rm -f conftest.er1 6252 cat conftest.err >&5 6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6254 (exit $ac_status); } && { 6255 test -z "$ac_c_werror_flag" || 6256 test ! -s conftest.err 6257 } && test -s conftest.$ac_objext; then 6258 ac_header_compiler=yes 6259else 6260 echo "$as_me: failed program was:" >&5 6261sed 's/^/| /' conftest.$ac_ext >&5 6262 6263 ac_header_compiler=no 6264fi 6265 6266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6267{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6268echo "${ECHO_T}$ac_header_compiler" >&6; } 6269 6270# Is the header present? 6271{ echo "$as_me:$LINENO: checking limits.h presence" >&5 6272echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 6273cat >conftest.$ac_ext <<_ACEOF 6274/* confdefs.h. */ 6275_ACEOF 6276cat confdefs.h >>conftest.$ac_ext 6277cat >>conftest.$ac_ext <<_ACEOF 6278/* end confdefs.h. */ 6279#include <limits.h> 6280_ACEOF 6281if { (ac_try="$ac_cpp conftest.$ac_ext" 6282case "(($ac_try" in 6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6284 *) ac_try_echo=$ac_try;; 6285esac 6286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6288 ac_status=$? 6289 grep -v '^ *+' conftest.er1 >conftest.err 6290 rm -f conftest.er1 6291 cat conftest.err >&5 6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6293 (exit $ac_status); } >/dev/null && { 6294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6295 test ! -s conftest.err 6296 }; then 6297 ac_header_preproc=yes 6298else 6299 echo "$as_me: failed program was:" >&5 6300sed 's/^/| /' conftest.$ac_ext >&5 6301 6302 ac_header_preproc=no 6303fi 6304 6305rm -f conftest.err conftest.$ac_ext 6306{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6307echo "${ECHO_T}$ac_header_preproc" >&6; } 6308 6309# So? What about this header? 6310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6311 yes:no: ) 6312 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 6313echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6314 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 6315echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 6316 ac_header_preproc=yes 6317 ;; 6318 no:yes:* ) 6319 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 6320echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 6321 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 6322echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 6323 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 6324echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 6325 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 6326echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 6327 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 6328echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 6329 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 6330echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 6331 6332 ;; 6333esac 6334{ echo "$as_me:$LINENO: checking for limits.h" >&5 6335echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 6336if test "${ac_cv_header_limits_h+set}" = set; then 6337 echo $ECHO_N "(cached) $ECHO_C" >&6 6338else 6339 ac_cv_header_limits_h=$ac_header_preproc 6340fi 6341{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 6342echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 6343 6344fi 6345if test $ac_cv_header_limits_h = yes; then 6346 6347cat >>confdefs.h <<\_ACEOF 6348#define HAVE_LIMITS_H 1 6349_ACEOF 6350 6351else 6352 6353cat >>confdefs.h <<\_ACEOF 6354#define NO_LIMITS_H 1 6355_ACEOF 6356 6357fi 6358 6359 6360 if test "${ac_cv_header_stdlib_h+set}" = set; then 6361 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 6362echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6363if test "${ac_cv_header_stdlib_h+set}" = set; then 6364 echo $ECHO_N "(cached) $ECHO_C" >&6 6365fi 6366{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6367echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6368else 6369 # Is the header compilable? 6370{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 6371echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 6372cat >conftest.$ac_ext <<_ACEOF 6373/* confdefs.h. */ 6374_ACEOF 6375cat confdefs.h >>conftest.$ac_ext 6376cat >>conftest.$ac_ext <<_ACEOF 6377/* end confdefs.h. */ 6378$ac_includes_default 6379#include <stdlib.h> 6380_ACEOF 6381rm -f conftest.$ac_objext 6382if { (ac_try="$ac_compile" 6383case "(($ac_try" in 6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6385 *) ac_try_echo=$ac_try;; 6386esac 6387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6388 (eval "$ac_compile") 2>conftest.er1 6389 ac_status=$? 6390 grep -v '^ *+' conftest.er1 >conftest.err 6391 rm -f conftest.er1 6392 cat conftest.err >&5 6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6394 (exit $ac_status); } && { 6395 test -z "$ac_c_werror_flag" || 6396 test ! -s conftest.err 6397 } && test -s conftest.$ac_objext; then 6398 ac_header_compiler=yes 6399else 6400 echo "$as_me: failed program was:" >&5 6401sed 's/^/| /' conftest.$ac_ext >&5 6402 6403 ac_header_compiler=no 6404fi 6405 6406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6407{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6408echo "${ECHO_T}$ac_header_compiler" >&6; } 6409 6410# Is the header present? 6411{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 6412echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 6413cat >conftest.$ac_ext <<_ACEOF 6414/* confdefs.h. */ 6415_ACEOF 6416cat confdefs.h >>conftest.$ac_ext 6417cat >>conftest.$ac_ext <<_ACEOF 6418/* end confdefs.h. */ 6419#include <stdlib.h> 6420_ACEOF 6421if { (ac_try="$ac_cpp conftest.$ac_ext" 6422case "(($ac_try" in 6423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6424 *) ac_try_echo=$ac_try;; 6425esac 6426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6428 ac_status=$? 6429 grep -v '^ *+' conftest.er1 >conftest.err 6430 rm -f conftest.er1 6431 cat conftest.err >&5 6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6433 (exit $ac_status); } >/dev/null && { 6434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6435 test ! -s conftest.err 6436 }; then 6437 ac_header_preproc=yes 6438else 6439 echo "$as_me: failed program was:" >&5 6440sed 's/^/| /' conftest.$ac_ext >&5 6441 6442 ac_header_preproc=no 6443fi 6444 6445rm -f conftest.err conftest.$ac_ext 6446{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6447echo "${ECHO_T}$ac_header_preproc" >&6; } 6448 6449# So? What about this header? 6450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6451 yes:no: ) 6452 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 6453echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6454 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 6455echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 6456 ac_header_preproc=yes 6457 ;; 6458 no:yes:* ) 6459 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 6460echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 6461 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 6462echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 6463 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 6464echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 6465 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 6466echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 6467 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 6468echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 6469 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 6470echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 6471 6472 ;; 6473esac 6474{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 6475echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6476if test "${ac_cv_header_stdlib_h+set}" = set; then 6477 echo $ECHO_N "(cached) $ECHO_C" >&6 6478else 6479 ac_cv_header_stdlib_h=$ac_header_preproc 6480fi 6481{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6482echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6483 6484fi 6485if test $ac_cv_header_stdlib_h = yes; then 6486 tcl_ok=1 6487else 6488 tcl_ok=0 6489fi 6490 6491 6492 cat >conftest.$ac_ext <<_ACEOF 6493/* confdefs.h. */ 6494_ACEOF 6495cat confdefs.h >>conftest.$ac_ext 6496cat >>conftest.$ac_ext <<_ACEOF 6497/* end confdefs.h. */ 6498#include <stdlib.h> 6499 6500_ACEOF 6501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6502 $EGREP "strtol" >/dev/null 2>&1; then 6503 : 6504else 6505 tcl_ok=0 6506fi 6507rm -f -r conftest* 6508 6509 cat >conftest.$ac_ext <<_ACEOF 6510/* confdefs.h. */ 6511_ACEOF 6512cat confdefs.h >>conftest.$ac_ext 6513cat >>conftest.$ac_ext <<_ACEOF 6514/* end confdefs.h. */ 6515#include <stdlib.h> 6516 6517_ACEOF 6518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6519 $EGREP "strtoul" >/dev/null 2>&1; then 6520 : 6521else 6522 tcl_ok=0 6523fi 6524rm -f -r conftest* 6525 6526 cat >conftest.$ac_ext <<_ACEOF 6527/* confdefs.h. */ 6528_ACEOF 6529cat confdefs.h >>conftest.$ac_ext 6530cat >>conftest.$ac_ext <<_ACEOF 6531/* end confdefs.h. */ 6532#include <stdlib.h> 6533 6534_ACEOF 6535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6536 $EGREP "strtod" >/dev/null 2>&1; then 6537 : 6538else 6539 tcl_ok=0 6540fi 6541rm -f -r conftest* 6542 6543 if test $tcl_ok = 0; then 6544 6545cat >>confdefs.h <<\_ACEOF 6546#define NO_STDLIB_H 1 6547_ACEOF 6548 6549 fi 6550 if test "${ac_cv_header_string_h+set}" = set; then 6551 { echo "$as_me:$LINENO: checking for string.h" >&5 6552echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6553if test "${ac_cv_header_string_h+set}" = set; then 6554 echo $ECHO_N "(cached) $ECHO_C" >&6 6555fi 6556{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6557echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6558else 6559 # Is the header compilable? 6560{ echo "$as_me:$LINENO: checking string.h usability" >&5 6561echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6562cat >conftest.$ac_ext <<_ACEOF 6563/* confdefs.h. */ 6564_ACEOF 6565cat confdefs.h >>conftest.$ac_ext 6566cat >>conftest.$ac_ext <<_ACEOF 6567/* end confdefs.h. */ 6568$ac_includes_default 6569#include <string.h> 6570_ACEOF 6571rm -f conftest.$ac_objext 6572if { (ac_try="$ac_compile" 6573case "(($ac_try" in 6574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6575 *) ac_try_echo=$ac_try;; 6576esac 6577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6578 (eval "$ac_compile") 2>conftest.er1 6579 ac_status=$? 6580 grep -v '^ *+' conftest.er1 >conftest.err 6581 rm -f conftest.er1 6582 cat conftest.err >&5 6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6584 (exit $ac_status); } && { 6585 test -z "$ac_c_werror_flag" || 6586 test ! -s conftest.err 6587 } && test -s conftest.$ac_objext; then 6588 ac_header_compiler=yes 6589else 6590 echo "$as_me: failed program was:" >&5 6591sed 's/^/| /' conftest.$ac_ext >&5 6592 6593 ac_header_compiler=no 6594fi 6595 6596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6597{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6598echo "${ECHO_T}$ac_header_compiler" >&6; } 6599 6600# Is the header present? 6601{ echo "$as_me:$LINENO: checking string.h presence" >&5 6602echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6603cat >conftest.$ac_ext <<_ACEOF 6604/* confdefs.h. */ 6605_ACEOF 6606cat confdefs.h >>conftest.$ac_ext 6607cat >>conftest.$ac_ext <<_ACEOF 6608/* end confdefs.h. */ 6609#include <string.h> 6610_ACEOF 6611if { (ac_try="$ac_cpp conftest.$ac_ext" 6612case "(($ac_try" in 6613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6614 *) ac_try_echo=$ac_try;; 6615esac 6616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6618 ac_status=$? 6619 grep -v '^ *+' conftest.er1 >conftest.err 6620 rm -f conftest.er1 6621 cat conftest.err >&5 6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6623 (exit $ac_status); } >/dev/null && { 6624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6625 test ! -s conftest.err 6626 }; then 6627 ac_header_preproc=yes 6628else 6629 echo "$as_me: failed program was:" >&5 6630sed 's/^/| /' conftest.$ac_ext >&5 6631 6632 ac_header_preproc=no 6633fi 6634 6635rm -f conftest.err conftest.$ac_ext 6636{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6637echo "${ECHO_T}$ac_header_preproc" >&6; } 6638 6639# So? What about this header? 6640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6641 yes:no: ) 6642 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6643echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6644 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6645echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6646 ac_header_preproc=yes 6647 ;; 6648 no:yes:* ) 6649 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6650echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6651 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6652echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6653 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6654echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6655 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6656echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6657 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6658echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6659 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6660echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6661 6662 ;; 6663esac 6664{ echo "$as_me:$LINENO: checking for string.h" >&5 6665echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6666if test "${ac_cv_header_string_h+set}" = set; then 6667 echo $ECHO_N "(cached) $ECHO_C" >&6 6668else 6669 ac_cv_header_string_h=$ac_header_preproc 6670fi 6671{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6672echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6673 6674fi 6675if test $ac_cv_header_string_h = yes; then 6676 tcl_ok=1 6677else 6678 tcl_ok=0 6679fi 6680 6681 6682 cat >conftest.$ac_ext <<_ACEOF 6683/* confdefs.h. */ 6684_ACEOF 6685cat confdefs.h >>conftest.$ac_ext 6686cat >>conftest.$ac_ext <<_ACEOF 6687/* end confdefs.h. */ 6688#include <string.h> 6689 6690_ACEOF 6691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6692 $EGREP "strstr" >/dev/null 2>&1; then 6693 : 6694else 6695 tcl_ok=0 6696fi 6697rm -f -r conftest* 6698 6699 cat >conftest.$ac_ext <<_ACEOF 6700/* confdefs.h. */ 6701_ACEOF 6702cat confdefs.h >>conftest.$ac_ext 6703cat >>conftest.$ac_ext <<_ACEOF 6704/* end confdefs.h. */ 6705#include <string.h> 6706 6707_ACEOF 6708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6709 $EGREP "strerror" >/dev/null 2>&1; then 6710 : 6711else 6712 tcl_ok=0 6713fi 6714rm -f -r conftest* 6715 6716 6717 # See also memmove check below for a place where NO_STRING_H can be 6718 # set and why. 6719 6720 if test $tcl_ok = 0; then 6721 6722cat >>confdefs.h <<\_ACEOF 6723#define NO_STRING_H 1 6724_ACEOF 6725 6726 fi 6727 6728 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6729 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6730echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6731if test "${ac_cv_header_sys_wait_h+set}" = set; then 6732 echo $ECHO_N "(cached) $ECHO_C" >&6 6733fi 6734{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6735echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6736else 6737 # Is the header compilable? 6738{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6739echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6740cat >conftest.$ac_ext <<_ACEOF 6741/* confdefs.h. */ 6742_ACEOF 6743cat confdefs.h >>conftest.$ac_ext 6744cat >>conftest.$ac_ext <<_ACEOF 6745/* end confdefs.h. */ 6746$ac_includes_default 6747#include <sys/wait.h> 6748_ACEOF 6749rm -f conftest.$ac_objext 6750if { (ac_try="$ac_compile" 6751case "(($ac_try" in 6752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6753 *) ac_try_echo=$ac_try;; 6754esac 6755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6756 (eval "$ac_compile") 2>conftest.er1 6757 ac_status=$? 6758 grep -v '^ *+' conftest.er1 >conftest.err 6759 rm -f conftest.er1 6760 cat conftest.err >&5 6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6762 (exit $ac_status); } && { 6763 test -z "$ac_c_werror_flag" || 6764 test ! -s conftest.err 6765 } && test -s conftest.$ac_objext; then 6766 ac_header_compiler=yes 6767else 6768 echo "$as_me: failed program was:" >&5 6769sed 's/^/| /' conftest.$ac_ext >&5 6770 6771 ac_header_compiler=no 6772fi 6773 6774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6775{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6776echo "${ECHO_T}$ac_header_compiler" >&6; } 6777 6778# Is the header present? 6779{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6780echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6781cat >conftest.$ac_ext <<_ACEOF 6782/* confdefs.h. */ 6783_ACEOF 6784cat confdefs.h >>conftest.$ac_ext 6785cat >>conftest.$ac_ext <<_ACEOF 6786/* end confdefs.h. */ 6787#include <sys/wait.h> 6788_ACEOF 6789if { (ac_try="$ac_cpp conftest.$ac_ext" 6790case "(($ac_try" in 6791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6792 *) ac_try_echo=$ac_try;; 6793esac 6794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6796 ac_status=$? 6797 grep -v '^ *+' conftest.er1 >conftest.err 6798 rm -f conftest.er1 6799 cat conftest.err >&5 6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6801 (exit $ac_status); } >/dev/null && { 6802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6803 test ! -s conftest.err 6804 }; then 6805 ac_header_preproc=yes 6806else 6807 echo "$as_me: failed program was:" >&5 6808sed 's/^/| /' conftest.$ac_ext >&5 6809 6810 ac_header_preproc=no 6811fi 6812 6813rm -f conftest.err conftest.$ac_ext 6814{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6815echo "${ECHO_T}$ac_header_preproc" >&6; } 6816 6817# So? What about this header? 6818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6819 yes:no: ) 6820 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6821echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6822 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6823echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6824 ac_header_preproc=yes 6825 ;; 6826 no:yes:* ) 6827 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6828echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6829 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6830echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6831 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6832echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6833 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6834echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6835 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6836echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6837 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6838echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6839 6840 ;; 6841esac 6842{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6843echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6844if test "${ac_cv_header_sys_wait_h+set}" = set; then 6845 echo $ECHO_N "(cached) $ECHO_C" >&6 6846else 6847 ac_cv_header_sys_wait_h=$ac_header_preproc 6848fi 6849{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6850echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6851 6852fi 6853if test $ac_cv_header_sys_wait_h = yes; then 6854 : 6855else 6856 6857cat >>confdefs.h <<\_ACEOF 6858#define NO_SYS_WAIT_H 1 6859_ACEOF 6860 6861fi 6862 6863 6864 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6865 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6866echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6867if test "${ac_cv_header_dlfcn_h+set}" = set; then 6868 echo $ECHO_N "(cached) $ECHO_C" >&6 6869fi 6870{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6871echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6872else 6873 # Is the header compilable? 6874{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6875echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6876cat >conftest.$ac_ext <<_ACEOF 6877/* confdefs.h. */ 6878_ACEOF 6879cat confdefs.h >>conftest.$ac_ext 6880cat >>conftest.$ac_ext <<_ACEOF 6881/* end confdefs.h. */ 6882$ac_includes_default 6883#include <dlfcn.h> 6884_ACEOF 6885rm -f conftest.$ac_objext 6886if { (ac_try="$ac_compile" 6887case "(($ac_try" in 6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6889 *) ac_try_echo=$ac_try;; 6890esac 6891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6892 (eval "$ac_compile") 2>conftest.er1 6893 ac_status=$? 6894 grep -v '^ *+' conftest.er1 >conftest.err 6895 rm -f conftest.er1 6896 cat conftest.err >&5 6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6898 (exit $ac_status); } && { 6899 test -z "$ac_c_werror_flag" || 6900 test ! -s conftest.err 6901 } && test -s conftest.$ac_objext; then 6902 ac_header_compiler=yes 6903else 6904 echo "$as_me: failed program was:" >&5 6905sed 's/^/| /' conftest.$ac_ext >&5 6906 6907 ac_header_compiler=no 6908fi 6909 6910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6911{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6912echo "${ECHO_T}$ac_header_compiler" >&6; } 6913 6914# Is the header present? 6915{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6916echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6917cat >conftest.$ac_ext <<_ACEOF 6918/* confdefs.h. */ 6919_ACEOF 6920cat confdefs.h >>conftest.$ac_ext 6921cat >>conftest.$ac_ext <<_ACEOF 6922/* end confdefs.h. */ 6923#include <dlfcn.h> 6924_ACEOF 6925if { (ac_try="$ac_cpp conftest.$ac_ext" 6926case "(($ac_try" in 6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6928 *) ac_try_echo=$ac_try;; 6929esac 6930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6932 ac_status=$? 6933 grep -v '^ *+' conftest.er1 >conftest.err 6934 rm -f conftest.er1 6935 cat conftest.err >&5 6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6937 (exit $ac_status); } >/dev/null && { 6938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6939 test ! -s conftest.err 6940 }; then 6941 ac_header_preproc=yes 6942else 6943 echo "$as_me: failed program was:" >&5 6944sed 's/^/| /' conftest.$ac_ext >&5 6945 6946 ac_header_preproc=no 6947fi 6948 6949rm -f conftest.err conftest.$ac_ext 6950{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6951echo "${ECHO_T}$ac_header_preproc" >&6; } 6952 6953# So? What about this header? 6954case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6955 yes:no: ) 6956 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6957echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6958 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6959echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6960 ac_header_preproc=yes 6961 ;; 6962 no:yes:* ) 6963 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6964echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6965 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6966echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6967 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6968echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6969 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6970echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6971 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6972echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6973 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6974echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6975 6976 ;; 6977esac 6978{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6979echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6980if test "${ac_cv_header_dlfcn_h+set}" = set; then 6981 echo $ECHO_N "(cached) $ECHO_C" >&6 6982else 6983 ac_cv_header_dlfcn_h=$ac_header_preproc 6984fi 6985{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6986echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6987 6988fi 6989if test $ac_cv_header_dlfcn_h = yes; then 6990 : 6991else 6992 6993cat >>confdefs.h <<\_ACEOF 6994#define NO_DLFCN_H 1 6995_ACEOF 6996 6997fi 6998 6999 7000 7001 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 7002 7003for ac_header in sys/param.h 7004do 7005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7007 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7010 echo $ECHO_N "(cached) $ECHO_C" >&6 7011fi 7012ac_res=`eval echo '${'$as_ac_Header'}'` 7013 { echo "$as_me:$LINENO: result: $ac_res" >&5 7014echo "${ECHO_T}$ac_res" >&6; } 7015else 7016 # Is the header compilable? 7017{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7019cat >conftest.$ac_ext <<_ACEOF 7020/* confdefs.h. */ 7021_ACEOF 7022cat confdefs.h >>conftest.$ac_ext 7023cat >>conftest.$ac_ext <<_ACEOF 7024/* end confdefs.h. */ 7025$ac_includes_default 7026#include <$ac_header> 7027_ACEOF 7028rm -f conftest.$ac_objext 7029if { (ac_try="$ac_compile" 7030case "(($ac_try" in 7031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7032 *) ac_try_echo=$ac_try;; 7033esac 7034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7035 (eval "$ac_compile") 2>conftest.er1 7036 ac_status=$? 7037 grep -v '^ *+' conftest.er1 >conftest.err 7038 rm -f conftest.er1 7039 cat conftest.err >&5 7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7041 (exit $ac_status); } && { 7042 test -z "$ac_c_werror_flag" || 7043 test ! -s conftest.err 7044 } && test -s conftest.$ac_objext; then 7045 ac_header_compiler=yes 7046else 7047 echo "$as_me: failed program was:" >&5 7048sed 's/^/| /' conftest.$ac_ext >&5 7049 7050 ac_header_compiler=no 7051fi 7052 7053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7054{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7055echo "${ECHO_T}$ac_header_compiler" >&6; } 7056 7057# Is the header present? 7058{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 7059echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 7060cat >conftest.$ac_ext <<_ACEOF 7061/* confdefs.h. */ 7062_ACEOF 7063cat confdefs.h >>conftest.$ac_ext 7064cat >>conftest.$ac_ext <<_ACEOF 7065/* end confdefs.h. */ 7066#include <$ac_header> 7067_ACEOF 7068if { (ac_try="$ac_cpp conftest.$ac_ext" 7069case "(($ac_try" in 7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7071 *) ac_try_echo=$ac_try;; 7072esac 7073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7075 ac_status=$? 7076 grep -v '^ *+' conftest.er1 >conftest.err 7077 rm -f conftest.er1 7078 cat conftest.err >&5 7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7080 (exit $ac_status); } >/dev/null && { 7081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7082 test ! -s conftest.err 7083 }; then 7084 ac_header_preproc=yes 7085else 7086 echo "$as_me: failed program was:" >&5 7087sed 's/^/| /' conftest.$ac_ext >&5 7088 7089 ac_header_preproc=no 7090fi 7091 7092rm -f conftest.err conftest.$ac_ext 7093{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7094echo "${ECHO_T}$ac_header_preproc" >&6; } 7095 7096# So? What about this header? 7097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7098 yes:no: ) 7099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7102echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7103 ac_header_preproc=yes 7104 ;; 7105 no:yes:* ) 7106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7109echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7111echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7113echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7117echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7118 7119 ;; 7120esac 7121{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7124 echo $ECHO_N "(cached) $ECHO_C" >&6 7125else 7126 eval "$as_ac_Header=\$ac_header_preproc" 7127fi 7128ac_res=`eval echo '${'$as_ac_Header'}'` 7129 { echo "$as_me:$LINENO: result: $ac_res" >&5 7130echo "${ECHO_T}$ac_res" >&6; } 7131 7132fi 7133if test `eval echo '${'$as_ac_Header'}'` = yes; then 7134 cat >>confdefs.h <<_ACEOF 7135#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7136_ACEOF 7137 7138fi 7139 7140done 7141 7142 7143 # Let the user call this, because if it triggers, they will 7144 # need a compat/strtod.c that is correct. Users can also 7145 # use Tcl_GetDouble(FromObj) instead. 7146 #TEA_BUGGY_STRTOD 7147 fi 7148 7149 7150#----------------------------------------------------------------------- 7151# __CHANGE__ 7152# Specify the C source files to compile in TEA_ADD_SOURCES, 7153# public headers that need to be installed in TEA_ADD_HEADERS, 7154# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 7155# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 7156# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 7157# and PKG_TCL_SOURCES. 7158#----------------------------------------------------------------------- 7159 7160 7161 vars="itk_cmds.c 7162 itk_option.c 7163 itk_archetype.c 7164 itk_util.c 7165 itkStubInit.c" 7166 for i in $vars; do 7167 case $i in 7168 \$*) 7169 # allow $-var names 7170 PKG_SOURCES="$PKG_SOURCES $i" 7171 PKG_OBJECTS="$PKG_OBJECTS $i" 7172 ;; 7173 *) 7174 # check for existence - allows for generic/win/unix VPATH 7175 # To add more dirs here (like 'src'), you have to update VPATH 7176 # in Makefile.in as well 7177 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7178 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7179 -a ! -f "${srcdir}/macosx/$i" \ 7180 ; then 7181 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7182echo "$as_me: error: could not find source file '$i'" >&2;} 7183 { (exit 1); exit 1; }; } 7184 fi 7185 PKG_SOURCES="$PKG_SOURCES $i" 7186 # this assumes it is in a VPATH dir 7187 i=`basename $i` 7188 # handle user calling this before or after TEA_SETUP_COMPILER 7189 if test x"${OBJEXT}" != x ; then 7190 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7191 else 7192 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7193 fi 7194 PKG_OBJECTS="$PKG_OBJECTS $j" 7195 ;; 7196 esac 7197 done 7198 7199 7200 7201 7202 vars="generic/itk.h generic/itkDecls.h" 7203 for i in $vars; do 7204 # check for existence, be strict because it is installed 7205 if test ! -f "${srcdir}/$i" ; then 7206 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 7207echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 7208 { (exit 1); exit 1; }; } 7209 fi 7210 PKG_HEADERS="$PKG_HEADERS $i" 7211 done 7212 7213 7214 7215 vars="${ITCL_INCLUDES} -I\"`${CYGPATH} ${srcdir}/generic`\"" 7216 for i in $vars; do 7217 PKG_INCLUDES="$PKG_INCLUDES $i" 7218 done 7219 7220 7221 7222 vars="" 7223 for i in $vars; do 7224 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7225 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7226 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7227 fi 7228 PKG_LIBS="$PKG_LIBS $i" 7229 done 7230 7231 7232 7233 PKG_CFLAGS="$PKG_CFLAGS " 7234 7235 7236#TEA_ADD_STUB_SOURCES([itkStubLib.c]) 7237 7238 vars="library/Archetype.itk 7239 library/Toplevel.itk 7240 library/Widget.itk 7241 library/itk.tcl 7242 library/tclIndex" 7243 for i in $vars; do 7244 # check for existence, be strict because it is installed 7245 if test ! -f "${srcdir}/$i" ; then 7246 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 7247echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 7248 { (exit 1); exit 1; }; } 7249 fi 7250 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 7251 done 7252 7253 7254 7255#-------------------------------------------------------------------- 7256# __CHANGE__ 7257# A few miscellaneous platform-specific items: 7258# 7259# Windows creates a few extra files that need to be cleaned up. 7260# You can add more files to clean if your extension creates any extra 7261# files by extending CLEANFILES. 7262#-------------------------------------------------------------------- 7263 7264if test "${TEA_PLATFORM}" = "windows" ; then 7265 7266 vars="dllEntryPoint.c" 7267 for i in $vars; do 7268 case $i in 7269 \$*) 7270 # allow $-var names 7271 PKG_SOURCES="$PKG_SOURCES $i" 7272 PKG_OBJECTS="$PKG_OBJECTS $i" 7273 ;; 7274 *) 7275 # check for existence - allows for generic/win/unix VPATH 7276 # To add more dirs here (like 'src'), you have to update VPATH 7277 # in Makefile.in as well 7278 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7279 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7280 -a ! -f "${srcdir}/macosx/$i" \ 7281 ; then 7282 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7283echo "$as_me: error: could not find source file '$i'" >&2;} 7284 { (exit 1); exit 1; }; } 7285 fi 7286 PKG_SOURCES="$PKG_SOURCES $i" 7287 # this assumes it is in a VPATH dir 7288 i=`basename $i` 7289 # handle user calling this before or after TEA_SETUP_COMPILER 7290 if test x"${OBJEXT}" != x ; then 7291 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7292 else 7293 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7294 fi 7295 PKG_OBJECTS="$PKG_OBJECTS $j" 7296 ;; 7297 esac 7298 done 7299 7300 7301 7302fi 7303#CLEANFILES="$CLEANFILES *.ext" 7304 7305#-------------------------------------------------------------------- 7306# __CHANGE__ 7307# Choose which headers you need. Extension authors should try very 7308# hard to only rely on the Tcl public header files. Internal headers 7309# contain private data structures and are subject to change without 7310# notice. 7311# This must be done AFTER calling TEA_PATH_TCLCONFIG/TEA_LOAD_TCLCONFIG 7312# so that we can extract TCL_SRC_DIR from the config file (in the case 7313# of private headers 7314#-------------------------------------------------------------------- 7315 7316#TEA_PUBLIC_TCL_HEADERS 7317 7318 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 7319echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 7320 7321 7322# Check whether --with-tclinclude was given. 7323if test "${with_tclinclude+set}" = set; then 7324 withval=$with_tclinclude; with_tclinclude=${withval} 7325fi 7326 7327 7328 if test "${ac_cv_c_tclh+set}" = set; then 7329 echo $ECHO_N "(cached) $ECHO_C" >&6 7330else 7331 7332 # Use the value from --with-tclinclude, if it was given 7333 7334 if test x"${with_tclinclude}" != x ; then 7335 if test -f "${with_tclinclude}/tcl.h" ; then 7336 ac_cv_c_tclh=${with_tclinclude} 7337 else 7338 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 7339echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 7340 { (exit 1); exit 1; }; } 7341 fi 7342 else 7343 list="" 7344 if test "`uname -s`" = "Darwin"; then 7345 # If Tcl was built as a framework, attempt to use 7346 # the framework's Headers directory 7347 case ${TCL_DEFS} in 7348 *TCL_FRAMEWORK*) 7349 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 7350 ;; 7351 esac 7352 fi 7353 7354 # Look in the source dir only if Tcl is not installed, 7355 # and in that situation, look there before installed locations. 7356 if test -f "${TCL_BIN_DIR}/Makefile" ; then 7357 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 7358 fi 7359 7360 # Check order: pkg --prefix location, Tcl's --prefix location, 7361 # relative to directory of tclConfig.sh. 7362 7363 eval "temp_includedir=${includedir}" 7364 list="$list \ 7365 `ls -d ${temp_includedir} 2>/dev/null` \ 7366 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7367 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7368 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7369 list="$list /usr/local/include /usr/include" 7370 if test x"${TCL_INCLUDE_SPEC}" != x ; then 7371 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7372 list="$list `ls -d ${d} 2>/dev/null`" 7373 fi 7374 fi 7375 for i in $list ; do 7376 if test -f "$i/tcl.h" ; then 7377 ac_cv_c_tclh=$i 7378 break 7379 fi 7380 done 7381 fi 7382 7383fi 7384 7385 7386 # Print a message based on how we determined the include path 7387 7388 if test x"${ac_cv_c_tclh}" = x ; then 7389 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 7390echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 7391 { (exit 1); exit 1; }; } 7392 else 7393 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 7394echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 7395 fi 7396 7397 # Convert to a native path and substitute into the output files. 7398 7399 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 7400 7401 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7402 7403 7404 7405 7406 # Allow for --with-tclinclude to take effect and define ${ac_cv_c_tclh} 7407 7408 { echo "$as_me:$LINENO: checking for Tcl private include files" >&5 7409echo $ECHO_N "checking for Tcl private include files... $ECHO_C" >&6; } 7410 7411 TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}` 7412 TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\" 7413 7414 # Check to see if tcl<Plat>Port.h isn't already with the public headers 7415 # Don't look for tclInt.h because that resides with tcl.h in the core 7416 # sources, but the <plat>Port headers are in a different directory 7417 if test "${TEA_PLATFORM}" = "windows" -a \ 7418 -f "${ac_cv_c_tclh}/tclWinPort.h"; then 7419 result="private headers found with public headers" 7420 elif test "${TEA_PLATFORM}" = "unix" -a \ 7421 -f "${ac_cv_c_tclh}/tclUnixPort.h"; then 7422 result="private headers found with public headers" 7423 else 7424 TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\" 7425 if test "${TEA_PLATFORM}" = "windows"; then 7426 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\" 7427 else 7428 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\" 7429 fi 7430 # Overwrite the previous TCL_INCLUDES as this should capture both 7431 # public and private headers in the same set. 7432 # We want to ensure these are substituted so as not to require 7433 # any *_NATIVE vars be defined in the Makefile 7434 TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}" 7435 if test "`uname -s`" = "Darwin"; then 7436 # If Tcl was built as a framework, attempt to use 7437 # the framework's Headers and PrivateHeaders directories 7438 case ${TCL_DEFS} in 7439 *TCL_FRAMEWORK*) 7440 if test -d "${TCL_BIN_DIR}/Headers" -a \ 7441 -d "${TCL_BIN_DIR}/PrivateHeaders"; then 7442 TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}" 7443 else 7444 TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`" 7445 fi 7446 ;; 7447 esac 7448 result="Using ${TCL_INCLUDES}" 7449 else 7450 if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then 7451 { { echo "$as_me:$LINENO: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&5 7452echo "$as_me: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&2;} 7453 { (exit 1); exit 1; }; } 7454 fi 7455 result="Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" 7456 fi 7457 fi 7458 7459 7460 7461 7462 { echo "$as_me:$LINENO: result: ${result}" >&5 7463echo "${ECHO_T}${result}" >&6; } 7464 7465 7466#TEA_PUBLIC_TK_HEADERS 7467 7468 { echo "$as_me:$LINENO: checking for Tk public headers" >&5 7469echo $ECHO_N "checking for Tk public headers... $ECHO_C" >&6; } 7470 7471 7472# Check whether --with-tkinclude was given. 7473if test "${with_tkinclude+set}" = set; then 7474 withval=$with_tkinclude; with_tkinclude=${withval} 7475fi 7476 7477 7478 if test "${ac_cv_c_tkh+set}" = set; then 7479 echo $ECHO_N "(cached) $ECHO_C" >&6 7480else 7481 7482 # Use the value from --with-tkinclude, if it was given 7483 7484 if test x"${with_tkinclude}" != x ; then 7485 if test -f "${with_tkinclude}/tk.h" ; then 7486 ac_cv_c_tkh=${with_tkinclude} 7487 else 7488 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory does not contain tk.h" >&5 7489echo "$as_me: error: ${with_tkinclude} directory does not contain tk.h" >&2;} 7490 { (exit 1); exit 1; }; } 7491 fi 7492 else 7493 list="" 7494 if test "`uname -s`" = "Darwin"; then 7495 # If Tk was built as a framework, attempt to use 7496 # the framework's Headers directory. 7497 case ${TK_DEFS} in 7498 *TK_FRAMEWORK*) 7499 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`" 7500 ;; 7501 esac 7502 fi 7503 7504 # Look in the source dir only if Tk is not installed, 7505 # and in that situation, look there before installed locations. 7506 if test -f "${TK_BIN_DIR}/Makefile" ; then 7507 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`" 7508 fi 7509 7510 # Check order: pkg --prefix location, Tk's --prefix location, 7511 # relative to directory of tkConfig.sh, Tcl's --prefix location, 7512 # relative to directory of tclConfig.sh. 7513 7514 eval "temp_includedir=${includedir}" 7515 list="$list \ 7516 `ls -d ${temp_includedir} 2>/dev/null` \ 7517 `ls -d ${TK_PREFIX}/include 2>/dev/null` \ 7518 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \ 7519 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7520 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7521 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7522 list="$list /usr/local/include /usr/include" 7523 if test x"${TK_INCLUDE_SPEC}" != x ; then 7524 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7525 list="$list `ls -d ${d} 2>/dev/null`" 7526 fi 7527 fi 7528 for i in $list ; do 7529 if test -f "$i/tk.h" ; then 7530 ac_cv_c_tkh=$i 7531 break 7532 fi 7533 done 7534 fi 7535 7536fi 7537 7538 7539 # Print a message based on how we determined the include path 7540 7541 if test x"${ac_cv_c_tkh}" = x ; then 7542 { { echo "$as_me:$LINENO: error: tk.h not found. Please specify its location with --with-tkinclude" >&5 7543echo "$as_me: error: tk.h not found. Please specify its location with --with-tkinclude" >&2;} 7544 { (exit 1); exit 1; }; } 7545 else 7546 { echo "$as_me:$LINENO: result: ${ac_cv_c_tkh}" >&5 7547echo "${ECHO_T}${ac_cv_c_tkh}" >&6; } 7548 fi 7549 7550 # Convert to a native path and substitute into the output files. 7551 7552 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}` 7553 7554 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7555 7556 7557 7558 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then 7559 # On Windows and Aqua, we need the X compat headers 7560 { echo "$as_me:$LINENO: checking for X11 header files" >&5 7561echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 7562 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then 7563 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`" 7564 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7565 7566 fi 7567 { echo "$as_me:$LINENO: result: ${INCLUDE_DIR_NATIVE}" >&5 7568echo "${ECHO_T}${INCLUDE_DIR_NATIVE}" >&6; } 7569 fi 7570 7571 7572 # Allow for --with-tkinclude to take effect and define ${ac_cv_c_tkh} 7573 7574 { echo "$as_me:$LINENO: checking for Tk private include files" >&5 7575echo $ECHO_N "checking for Tk private include files... $ECHO_C" >&6; } 7576 7577 TK_SRC_DIR_NATIVE=`${CYGPATH} ${TK_SRC_DIR}` 7578 TK_TOP_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}\" 7579 7580 # Check to see if tk<Plat>Port.h isn't already with the public headers 7581 # Don't look for tkInt.h because that resides with tk.h in the core 7582 # sources, but the <plat>Port headers are in a different directory 7583 if test "${TEA_PLATFORM}" = "windows" -a \ 7584 -f "${ac_cv_c_tkh}/tkWinPort.h"; then 7585 result="private headers found with public headers" 7586 elif test "${TEA_PLATFORM}" = "unix" -a \ 7587 -f "${ac_cv_c_tkh}/tkUnixPort.h"; then 7588 result="private headers found with public headers" 7589 else 7590 TK_GENERIC_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/generic\" 7591 TK_XLIB_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/xlib\" 7592 if test "${TEA_PLATFORM}" = "windows"; then 7593 TK_PLATFORM_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/win\" 7594 else 7595 TK_PLATFORM_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/unix\" 7596 fi 7597 # Overwrite the previous TK_INCLUDES as this should capture both 7598 # public and private headers in the same set. 7599 # We want to ensure these are substituted so as not to require 7600 # any *_NATIVE vars be defined in the Makefile 7601 TK_INCLUDES="-I${TK_GENERIC_DIR_NATIVE} -I${TK_PLATFORM_DIR_NATIVE}" 7602 # Detect and add ttk subdir 7603 if test -d "${TK_SRC_DIR}/generic/ttk"; then 7604 TK_INCLUDES="${TK_INCLUDES} -I\"${TK_SRC_DIR_NATIVE}/generic/ttk\"" 7605 fi 7606 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then 7607 TK_INCLUDES="${TK_INCLUDES} -I${TK_XLIB_DIR_NATIVE}" 7608 fi 7609 if test "${TEA_WINDOWINGSYSTEM}" = "aqua"; then 7610 TK_INCLUDES="${TK_INCLUDES} -I\"${TK_SRC_DIR_NATIVE}/macosx\"" 7611 fi 7612 if test "`uname -s`" = "Darwin"; then 7613 # If Tk was built as a framework, attempt to use 7614 # the framework's Headers and PrivateHeaders directories 7615 case ${TK_DEFS} in 7616 *TK_FRAMEWORK*) 7617 if test -d "${TK_BIN_DIR}/Headers" -a \ 7618 -d "${TK_BIN_DIR}/PrivateHeaders"; then 7619 TK_INCLUDES="-I\"${TK_BIN_DIR}/Headers\" -I\"${TK_BIN_DIR}/PrivateHeaders\" ${TK_INCLUDES}" 7620 else 7621 TK_INCLUDES="${TK_INCLUDES} ${TK_INCLUDE_SPEC} `echo "${TK_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`" 7622 fi 7623 ;; 7624 esac 7625 result="Using ${TK_INCLUDES}" 7626 else 7627 if test ! -f "${TK_SRC_DIR}/generic/tkInt.h" ; then 7628 { { echo "$as_me:$LINENO: error: Cannot find private header tkInt.h in ${TK_SRC_DIR}" >&5 7629echo "$as_me: error: Cannot find private header tkInt.h in ${TK_SRC_DIR}" >&2;} 7630 { (exit 1); exit 1; }; } 7631 fi 7632 result="Using srcdir found in tkConfig.sh: ${TK_SRC_DIR}" 7633 fi 7634 fi 7635 7636 7637 7638 7639 7640 { echo "$as_me:$LINENO: result: ${result}" >&5 7641echo "${ECHO_T}${result}" >&6; } 7642 7643 7644#-------------------------------------------------------------------- 7645# For Unix/Tk builds, make sure that the X libraries/headers are found. 7646#-------------------------------------------------------------------- 7647 7648 7649 if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then 7650 7651 { echo "$as_me:$LINENO: checking for X" >&5 7652echo $ECHO_N "checking for X... $ECHO_C" >&6; } 7653 7654 7655# Check whether --with-x was given. 7656if test "${with_x+set}" = set; then 7657 withval=$with_x; 7658fi 7659 7660# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 7661if test "x$with_x" = xno; then 7662 # The user explicitly disabled X. 7663 have_x=disabled 7664else 7665 case $x_includes,$x_libraries in #( 7666 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 7667echo "$as_me: error: Cannot use X directory names containing '" >&2;} 7668 { (exit 1); exit 1; }; };; #( 7669 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 7670 echo $ECHO_N "(cached) $ECHO_C" >&6 7671else 7672 # One or both of the vars are not set, and there is no cached value. 7673ac_x_includes=no ac_x_libraries=no 7674rm -f -r conftest.dir 7675if mkdir conftest.dir; then 7676 cd conftest.dir 7677 cat >Imakefile <<'_ACEOF' 7678incroot: 7679 @echo incroot='${INCROOT}' 7680usrlibdir: 7681 @echo usrlibdir='${USRLIBDIR}' 7682libdir: 7683 @echo libdir='${LIBDIR}' 7684_ACEOF 7685 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 7686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 7687 for ac_var in incroot usrlibdir libdir; do 7688 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 7689 done 7690 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7691 for ac_extension in a so sl dylib la dll; do 7692 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 7693 test -f "$ac_im_libdir/libX11.$ac_extension"; then 7694 ac_im_usrlibdir=$ac_im_libdir; break 7695 fi 7696 done 7697 # Screen out bogus values from the imake configuration. They are 7698 # bogus both because they are the default anyway, and because 7699 # using them would break gcc on systems where it needs fixed includes. 7700 case $ac_im_incroot in 7701 /usr/include) ac_x_includes= ;; 7702 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 7703 esac 7704 case $ac_im_usrlibdir in 7705 /usr/lib | /lib) ;; 7706 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 7707 esac 7708 fi 7709 cd .. 7710 rm -f -r conftest.dir 7711fi 7712 7713# Standard set of common directories for X headers. 7714# Check X11 before X11Rn because it is often a symlink to the current release. 7715ac_x_header_dirs=' 7716/usr/X11/include 7717/usr/X11R6/include 7718/usr/X11R5/include 7719/usr/X11R4/include 7720 7721/usr/include/X11 7722/usr/include/X11R6 7723/usr/include/X11R5 7724/usr/include/X11R4 7725 7726/usr/local/X11/include 7727/usr/local/X11R6/include 7728/usr/local/X11R5/include 7729/usr/local/X11R4/include 7730 7731/usr/local/include/X11 7732/usr/local/include/X11R6 7733/usr/local/include/X11R5 7734/usr/local/include/X11R4 7735 7736/usr/X386/include 7737/usr/x386/include 7738/usr/XFree86/include/X11 7739 7740/usr/include 7741/usr/local/include 7742/usr/unsupported/include 7743/usr/athena/include 7744/usr/local/x11r5/include 7745/usr/lpp/Xamples/include 7746 7747/usr/openwin/include 7748/usr/openwin/share/include' 7749 7750if test "$ac_x_includes" = no; then 7751 # Guess where to find include files, by looking for Xlib.h. 7752 # First, try using that file with no special directory specified. 7753 cat >conftest.$ac_ext <<_ACEOF 7754/* confdefs.h. */ 7755_ACEOF 7756cat confdefs.h >>conftest.$ac_ext 7757cat >>conftest.$ac_ext <<_ACEOF 7758/* end confdefs.h. */ 7759#include <X11/Xlib.h> 7760_ACEOF 7761if { (ac_try="$ac_cpp conftest.$ac_ext" 7762case "(($ac_try" in 7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7764 *) ac_try_echo=$ac_try;; 7765esac 7766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7768 ac_status=$? 7769 grep -v '^ *+' conftest.er1 >conftest.err 7770 rm -f conftest.er1 7771 cat conftest.err >&5 7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7773 (exit $ac_status); } >/dev/null && { 7774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7775 test ! -s conftest.err 7776 }; then 7777 # We can compile using X headers with no special include directory. 7778ac_x_includes= 7779else 7780 echo "$as_me: failed program was:" >&5 7781sed 's/^/| /' conftest.$ac_ext >&5 7782 7783 for ac_dir in $ac_x_header_dirs; do 7784 if test -r "$ac_dir/X11/Xlib.h"; then 7785 ac_x_includes=$ac_dir 7786 break 7787 fi 7788done 7789fi 7790 7791rm -f conftest.err conftest.$ac_ext 7792fi # $ac_x_includes = no 7793 7794if test "$ac_x_libraries" = no; then 7795 # Check for the libraries. 7796 # See if we find them without any special options. 7797 # Don't add to $LIBS permanently. 7798 ac_save_LIBS=$LIBS 7799 LIBS="-lX11 $LIBS" 7800 cat >conftest.$ac_ext <<_ACEOF 7801/* confdefs.h. */ 7802_ACEOF 7803cat confdefs.h >>conftest.$ac_ext 7804cat >>conftest.$ac_ext <<_ACEOF 7805/* end confdefs.h. */ 7806#include <X11/Xlib.h> 7807int 7808main () 7809{ 7810XrmInitialize () 7811 ; 7812 return 0; 7813} 7814_ACEOF 7815rm -f conftest.$ac_objext conftest$ac_exeext 7816if { (ac_try="$ac_link" 7817case "(($ac_try" in 7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7819 *) ac_try_echo=$ac_try;; 7820esac 7821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7822 (eval "$ac_link") 2>conftest.er1 7823 ac_status=$? 7824 grep -v '^ *+' conftest.er1 >conftest.err 7825 rm -f conftest.er1 7826 cat conftest.err >&5 7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7828 (exit $ac_status); } && { 7829 test -z "$ac_c_werror_flag" || 7830 test ! -s conftest.err 7831 } && test -s conftest$ac_exeext && 7832 $as_test_x conftest$ac_exeext; then 7833 LIBS=$ac_save_LIBS 7834# We can link X programs with no special library path. 7835ac_x_libraries= 7836else 7837 echo "$as_me: failed program was:" >&5 7838sed 's/^/| /' conftest.$ac_ext >&5 7839 7840 LIBS=$ac_save_LIBS 7841for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7842do 7843 # Don't even attempt the hair of trying to link an X program! 7844 for ac_extension in a so sl dylib la dll; do 7845 if test -r "$ac_dir/libX11.$ac_extension"; then 7846 ac_x_libraries=$ac_dir 7847 break 2 7848 fi 7849 done 7850done 7851fi 7852 7853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7854 conftest$ac_exeext conftest.$ac_ext 7855fi # $ac_x_libraries = no 7856 7857case $ac_x_includes,$ac_x_libraries in #( 7858 no,* | *,no | *\'*) 7859 # Didn't find X, or a directory has "'" in its name. 7860 ac_cv_have_x="have_x=no";; #( 7861 *) 7862 # Record where we found X for the cache. 7863 ac_cv_have_x="have_x=yes\ 7864 ac_x_includes='$ac_x_includes'\ 7865 ac_x_libraries='$ac_x_libraries'" 7866esac 7867fi 7868;; #( 7869 *) have_x=yes;; 7870 esac 7871 eval "$ac_cv_have_x" 7872fi # $with_x != no 7873 7874if test "$have_x" != yes; then 7875 { echo "$as_me:$LINENO: result: $have_x" >&5 7876echo "${ECHO_T}$have_x" >&6; } 7877 no_x=yes 7878else 7879 # If each of the values was on the command line, it overrides each guess. 7880 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7881 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7882 # Update the cache value to reflect the command line values. 7883 ac_cv_have_x="have_x=yes\ 7884 ac_x_includes='$x_includes'\ 7885 ac_x_libraries='$x_libraries'" 7886 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 7887echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 7888fi 7889 7890 not_really_there="" 7891 if test "$no_x" = ""; then 7892 if test "$x_includes" = ""; then 7893 cat >conftest.$ac_ext <<_ACEOF 7894/* confdefs.h. */ 7895_ACEOF 7896cat confdefs.h >>conftest.$ac_ext 7897cat >>conftest.$ac_ext <<_ACEOF 7898/* end confdefs.h. */ 7899#include <X11/XIntrinsic.h> 7900_ACEOF 7901if { (ac_try="$ac_cpp conftest.$ac_ext" 7902case "(($ac_try" in 7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7904 *) ac_try_echo=$ac_try;; 7905esac 7906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7908 ac_status=$? 7909 grep -v '^ *+' conftest.er1 >conftest.err 7910 rm -f conftest.er1 7911 cat conftest.err >&5 7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7913 (exit $ac_status); } >/dev/null && { 7914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7915 test ! -s conftest.err 7916 }; then 7917 : 7918else 7919 echo "$as_me: failed program was:" >&5 7920sed 's/^/| /' conftest.$ac_ext >&5 7921 7922 not_really_there="yes" 7923fi 7924 7925rm -f conftest.err conftest.$ac_ext 7926 else 7927 if test ! -r $x_includes/X11/Intrinsic.h; then 7928 not_really_there="yes" 7929 fi 7930 fi 7931 fi 7932 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then 7933 { echo "$as_me:$LINENO: checking for X11 header files" >&5 7934echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 7935 found_xincludes="no" 7936 cat >conftest.$ac_ext <<_ACEOF 7937/* confdefs.h. */ 7938_ACEOF 7939cat confdefs.h >>conftest.$ac_ext 7940cat >>conftest.$ac_ext <<_ACEOF 7941/* end confdefs.h. */ 7942#include <X11/Intrinsic.h> 7943_ACEOF 7944if { (ac_try="$ac_cpp conftest.$ac_ext" 7945case "(($ac_try" in 7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7947 *) ac_try_echo=$ac_try;; 7948esac 7949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7951 ac_status=$? 7952 grep -v '^ *+' conftest.er1 >conftest.err 7953 rm -f conftest.er1 7954 cat conftest.err >&5 7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7956 (exit $ac_status); } >/dev/null && { 7957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7958 test ! -s conftest.err 7959 }; then 7960 found_xincludes="yes" 7961else 7962 echo "$as_me: failed program was:" >&5 7963sed 's/^/| /' conftest.$ac_ext >&5 7964 7965 found_xincludes="no" 7966fi 7967 7968rm -f conftest.err conftest.$ac_ext 7969 if test "$found_xincludes" = "no"; then 7970 dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include" 7971 for i in $dirs ; do 7972 if test -r $i/X11/Intrinsic.h; then 7973 { echo "$as_me:$LINENO: result: $i" >&5 7974echo "${ECHO_T}$i" >&6; } 7975 XINCLUDES=" -I$i" 7976 found_xincludes="yes" 7977 break 7978 fi 7979 done 7980 fi 7981 else 7982 if test "$x_includes" != ""; then 7983 XINCLUDES="-I$x_includes" 7984 found_xincludes="yes" 7985 fi 7986 fi 7987 if test "$found_xincludes" = "no"; then 7988 { echo "$as_me:$LINENO: result: couldn't find any!" >&5 7989echo "${ECHO_T}couldn't find any!" >&6; } 7990 fi 7991 7992 if test "$no_x" = yes; then 7993 { echo "$as_me:$LINENO: checking for X11 libraries" >&5 7994echo $ECHO_N "checking for X11 libraries... $ECHO_C" >&6; } 7995 XLIBSW=nope 7996 dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/X11R6/lib /usr/X11R5/lib /usr/lib/X11R5 /usr/lib/X11R4 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib" 7997 for i in $dirs ; do 7998 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then 7999 { echo "$as_me:$LINENO: result: $i" >&5 8000echo "${ECHO_T}$i" >&6; } 8001 XLIBSW="-L$i -lX11" 8002 x_libraries="$i" 8003 break 8004 fi 8005 done 8006 else 8007 if test "$x_libraries" = ""; then 8008 XLIBSW=-lX11 8009 else 8010 XLIBSW="-L$x_libraries -lX11" 8011 fi 8012 fi 8013 if test "$XLIBSW" = nope ; then 8014 { echo "$as_me:$LINENO: checking for XCreateWindow in -lXwindow" >&5 8015echo $ECHO_N "checking for XCreateWindow in -lXwindow... $ECHO_C" >&6; } 8016if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then 8017 echo $ECHO_N "(cached) $ECHO_C" >&6 8018else 8019 ac_check_lib_save_LIBS=$LIBS 8020LIBS="-lXwindow $LIBS" 8021cat >conftest.$ac_ext <<_ACEOF 8022/* confdefs.h. */ 8023_ACEOF 8024cat confdefs.h >>conftest.$ac_ext 8025cat >>conftest.$ac_ext <<_ACEOF 8026/* end confdefs.h. */ 8027 8028/* Override any GCC internal prototype to avoid an error. 8029 Use char because int might match the return type of a GCC 8030 builtin and then its argument prototype would still apply. */ 8031#ifdef __cplusplus 8032extern "C" 8033#endif 8034char XCreateWindow (); 8035int 8036main () 8037{ 8038return XCreateWindow (); 8039 ; 8040 return 0; 8041} 8042_ACEOF 8043rm -f conftest.$ac_objext conftest$ac_exeext 8044if { (ac_try="$ac_link" 8045case "(($ac_try" in 8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8047 *) ac_try_echo=$ac_try;; 8048esac 8049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8050 (eval "$ac_link") 2>conftest.er1 8051 ac_status=$? 8052 grep -v '^ *+' conftest.er1 >conftest.err 8053 rm -f conftest.er1 8054 cat conftest.err >&5 8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8056 (exit $ac_status); } && { 8057 test -z "$ac_c_werror_flag" || 8058 test ! -s conftest.err 8059 } && test -s conftest$ac_exeext && 8060 $as_test_x conftest$ac_exeext; then 8061 ac_cv_lib_Xwindow_XCreateWindow=yes 8062else 8063 echo "$as_me: failed program was:" >&5 8064sed 's/^/| /' conftest.$ac_ext >&5 8065 8066 ac_cv_lib_Xwindow_XCreateWindow=no 8067fi 8068 8069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8070 conftest$ac_exeext conftest.$ac_ext 8071LIBS=$ac_check_lib_save_LIBS 8072fi 8073{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5 8074echo "${ECHO_T}$ac_cv_lib_Xwindow_XCreateWindow" >&6; } 8075if test $ac_cv_lib_Xwindow_XCreateWindow = yes; then 8076 XLIBSW=-lXwindow 8077fi 8078 8079 fi 8080 if test "$XLIBSW" = nope ; then 8081 { echo "$as_me:$LINENO: result: could not find any! Using -lX11." >&5 8082echo "${ECHO_T}could not find any! Using -lX11." >&6; } 8083 XLIBSW=-lX11 8084 fi 8085 # TEA specific: 8086 if test x"${XLIBSW}" != x ; then 8087 PKG_LIBS="${PKG_LIBS} ${XLIBSW}" 8088 fi 8089 8090 fi 8091 8092 8093#-------------------------------------------------------------------- 8094# We need to enable the threading macros found in tcl.h and tclInt.h. 8095# The use of the threading features is determined by the core the 8096# extension is loaded into, but we need to compile with these macros 8097# turned on. 8098#-------------------------------------------------------------------- 8099 8100cat >>confdefs.h <<\_ACEOF 8101#define TCL_THREADS 1 8102_ACEOF 8103 8104#-------------------------------------------------------------------- 8105# Check whether --enable-threads or --disable-threads was given. 8106# This auto-enables if Tcl was compiled threaded. 8107#-------------------------------------------------------------------- 8108 8109#TEA_ENABLE_THREADS 8110 8111#-------------------------------------------------------------------- 8112# The statement below defines a collection of symbols related to 8113# building as a shared library instead of a static library. 8114#-------------------------------------------------------------------- 8115 8116 8117 { echo "$as_me:$LINENO: checking how to build libraries" >&5 8118echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 8119 # Check whether --enable-shared was given. 8120if test "${enable_shared+set}" = set; then 8121 enableval=$enable_shared; tcl_ok=$enableval 8122else 8123 tcl_ok=yes 8124fi 8125 8126 8127 if test "${enable_shared+set}" = set; then 8128 enableval="$enable_shared" 8129 tcl_ok=$enableval 8130 else 8131 tcl_ok=yes 8132 fi 8133 8134 if test "$tcl_ok" = "yes" ; then 8135 { echo "$as_me:$LINENO: result: shared" >&5 8136echo "${ECHO_T}shared" >&6; } 8137 SHARED_BUILD=1 8138 else 8139 { echo "$as_me:$LINENO: result: static" >&5 8140echo "${ECHO_T}static" >&6; } 8141 SHARED_BUILD=0 8142 8143cat >>confdefs.h <<\_ACEOF 8144#define STATIC_BUILD 1 8145_ACEOF 8146 8147 fi 8148 8149 8150 8151#-------------------------------------------------------------------- 8152# This macro figures out what flags to use with the compiler/linker 8153# when building shared/static debug/optimized objects. This information 8154# can be taken from the tclConfig.sh file, but this figures it all out. 8155#-------------------------------------------------------------------- 8156 8157 8158 8159 8160 # Step 0.a: Enable 64 bit support? 8161 8162 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 8163echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 8164 # Check whether --enable-64bit was given. 8165if test "${enable_64bit+set}" = set; then 8166 enableval=$enable_64bit; do64bit=$enableval 8167else 8168 do64bit=no 8169fi 8170 8171 { echo "$as_me:$LINENO: result: $do64bit" >&5 8172echo "${ECHO_T}$do64bit" >&6; } 8173 8174 # Step 0.b: Enable Solaris 64 bit VIS support? 8175 8176 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 8177echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 8178 # Check whether --enable-64bit-vis was given. 8179if test "${enable_64bit_vis+set}" = set; then 8180 enableval=$enable_64bit_vis; do64bitVIS=$enableval 8181else 8182 do64bitVIS=no 8183fi 8184 8185 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 8186echo "${ECHO_T}$do64bitVIS" >&6; } 8187 # Force 64bit on with VIS 8188 if test "$do64bitVIS" = "yes"; then 8189 do64bit=yes 8190fi 8191 8192 8193 # Step 0.c: Check if visibility support is available. Do this here so 8194 # that platform specific alternatives can be used below if this fails. 8195 8196 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 8197echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 8198if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 8199 echo $ECHO_N "(cached) $ECHO_C" >&6 8200else 8201 8202 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 8203 cat >conftest.$ac_ext <<_ACEOF 8204/* confdefs.h. */ 8205_ACEOF 8206cat confdefs.h >>conftest.$ac_ext 8207cat >>conftest.$ac_ext <<_ACEOF 8208/* end confdefs.h. */ 8209 8210 extern __attribute__((__visibility__("hidden"))) void f(void); 8211 void f(void) {} 8212int 8213main () 8214{ 8215f(); 8216 ; 8217 return 0; 8218} 8219_ACEOF 8220rm -f conftest.$ac_objext conftest$ac_exeext 8221if { (ac_try="$ac_link" 8222case "(($ac_try" in 8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8224 *) ac_try_echo=$ac_try;; 8225esac 8226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8227 (eval "$ac_link") 2>conftest.er1 8228 ac_status=$? 8229 grep -v '^ *+' conftest.er1 >conftest.err 8230 rm -f conftest.er1 8231 cat conftest.err >&5 8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8233 (exit $ac_status); } && { 8234 test -z "$ac_c_werror_flag" || 8235 test ! -s conftest.err 8236 } && test -s conftest$ac_exeext && 8237 $as_test_x conftest$ac_exeext; then 8238 tcl_cv_cc_visibility_hidden=yes 8239else 8240 echo "$as_me: failed program was:" >&5 8241sed 's/^/| /' conftest.$ac_ext >&5 8242 8243 tcl_cv_cc_visibility_hidden=no 8244fi 8245 8246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8247 conftest$ac_exeext conftest.$ac_ext 8248 CFLAGS=$hold_cflags 8249fi 8250{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 8251echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 8252 if test $tcl_cv_cc_visibility_hidden = yes; then 8253 8254 8255cat >>confdefs.h <<\_ACEOF 8256#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 8257_ACEOF 8258 8259 8260fi 8261 8262 8263 # Step 0.d: Disable -rpath support? 8264 8265 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 8266echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 8267 # Check whether --enable-rpath was given. 8268if test "${enable_rpath+set}" = set; then 8269 enableval=$enable_rpath; doRpath=$enableval 8270else 8271 doRpath=yes 8272fi 8273 8274 { echo "$as_me:$LINENO: result: $doRpath" >&5 8275echo "${ECHO_T}$doRpath" >&6; } 8276 8277 # TEA specific: Cross-compiling options for Windows/CE builds? 8278 8279 if test "${TEA_PLATFORM}" = windows; then 8280 8281 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 8282echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 8283 # Check whether --enable-wince was given. 8284if test "${enable_wince+set}" = set; then 8285 enableval=$enable_wince; doWince=$enableval 8286else 8287 doWince=no 8288fi 8289 8290 { echo "$as_me:$LINENO: result: $doWince" >&5 8291echo "${ECHO_T}$doWince" >&6; } 8292 8293fi 8294 8295 8296 # Set the variable "system" to hold the name and version number 8297 # for the system. 8298 8299 8300 { echo "$as_me:$LINENO: checking system version" >&5 8301echo $ECHO_N "checking system version... $ECHO_C" >&6; } 8302if test "${tcl_cv_sys_version+set}" = set; then 8303 echo $ECHO_N "(cached) $ECHO_C" >&6 8304else 8305 8306 # TEA specific: 8307 if test "${TEA_PLATFORM}" = "windows" ; then 8308 tcl_cv_sys_version=windows 8309 else 8310 tcl_cv_sys_version=`uname -s`-`uname -r` 8311 if test "$?" -ne 0 ; then 8312 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 8313echo "$as_me: WARNING: can't find uname command" >&2;} 8314 tcl_cv_sys_version=unknown 8315 else 8316 if test "`uname -s`" = "AIX" ; then 8317 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 8318 fi 8319 fi 8320 fi 8321 8322fi 8323{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 8324echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 8325 system=$tcl_cv_sys_version 8326 8327 8328 # Require ranlib early so we can override it in special cases below. 8329 8330 8331 8332 # Set configuration options based on system name and version. 8333 # This is similar to Tcl's unix/tcl.m4 except that we've added a 8334 # "windows" case and removed some core-only vars. 8335 8336 do64bit_ok=no 8337 # default to '{$LIBS}' and set to "" on per-platform necessary basis 8338 SHLIB_LD_LIBS='${LIBS}' 8339 # When ld needs options to work in 64-bit mode, put them in 8340 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 8341 # is disabled by the user. [Bug 1016796] 8342 LDFLAGS_ARCH="" 8343 UNSHARED_LIB_SUFFIX="" 8344 # TEA specific: use PACKAGE_VERSION instead of VERSION 8345 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 8346 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 8347 TCL_LIB_VERSIONS_OK=ok 8348 CFLAGS_DEBUG=-g 8349 CFLAGS_OPTIMIZE=-O 8350 if test "$GCC" = yes; then 8351 8352 # TEA specific: 8353 CFLAGS_OPTIMIZE=-O2 8354 CFLAGS_WARNING="-Wall" 8355 8356else 8357 CFLAGS_WARNING="" 8358fi 8359 8360 # Extract the first word of "ar", so it can be a program name with args. 8361set dummy ar; ac_word=$2 8362{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8364if test "${ac_cv_prog_AR+set}" = set; then 8365 echo $ECHO_N "(cached) $ECHO_C" >&6 8366else 8367 if test -n "$AR"; then 8368 ac_cv_prog_AR="$AR" # Let the user override the test. 8369else 8370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8371for as_dir in $PATH 8372do 8373 IFS=$as_save_IFS 8374 test -z "$as_dir" && as_dir=. 8375 for ac_exec_ext in '' $ac_executable_extensions; do 8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8377 ac_cv_prog_AR="ar" 8378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8379 break 2 8380 fi 8381done 8382done 8383IFS=$as_save_IFS 8384 8385fi 8386fi 8387AR=$ac_cv_prog_AR 8388if test -n "$AR"; then 8389 { echo "$as_me:$LINENO: result: $AR" >&5 8390echo "${ECHO_T}$AR" >&6; } 8391else 8392 { echo "$as_me:$LINENO: result: no" >&5 8393echo "${ECHO_T}no" >&6; } 8394fi 8395 8396 8397 STLIB_LD='${AR} cr' 8398 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 8399 if test "x$SHLIB_VERSION" = x; then 8400 SHLIB_VERSION="1.0" 8401fi 8402 8403 case $system in 8404 # TEA specific: 8405 windows) 8406 # This is a 2-stage check to make sure we have the 64-bit SDK 8407 # We have to know where the SDK is installed. 8408 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 8409 # MACHINE is IX86 for LINK, but this is used by the manifest, 8410 # which requires x86|amd64|ia64. 8411 MACHINE="X86" 8412 if test "$do64bit" != "no" ; then 8413 if test "x${MSSDK}x" = "xx" ; then 8414 MSSDK="C:/Progra~1/Microsoft Platform SDK" 8415 fi 8416 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 8417 PATH64="" 8418 case "$do64bit" in 8419 amd64|x64|yes) 8420 MACHINE="AMD64" ; # default to AMD64 64-bit build 8421 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 8422 ;; 8423 ia64) 8424 MACHINE="IA64" 8425 PATH64="${MSSDK}/Bin/Win64" 8426 ;; 8427 esac 8428 if test ! -d "${PATH64}" ; then 8429 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 8430echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 8431 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 8432echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 8433 do64bit="no" 8434 else 8435 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 8436echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 8437 do64bit_ok="yes" 8438 fi 8439 fi 8440 8441 if test "$doWince" != "no" ; then 8442 if test "$do64bit" != "no" ; then 8443 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 8444echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 8445 { (exit 1); exit 1; }; } 8446 fi 8447 if test "$GCC" = "yes" ; then 8448 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 8449echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 8450 { (exit 1); exit 1; }; } 8451 fi 8452 8453 # First, look for one uninstalled. 8454 # the alternative search directory is invoked by --with-celib 8455 8456 if test x"${no_celib}" = x ; then 8457 # we reset no_celib in case something fails here 8458 no_celib=true 8459 8460# Check whether --with-celib was given. 8461if test "${with_celib+set}" = set; then 8462 withval=$with_celib; with_celibconfig=${withval} 8463fi 8464 8465 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 8466echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 8467 if test "${ac_cv_c_celibconfig+set}" = set; then 8468 echo $ECHO_N "(cached) $ECHO_C" >&6 8469else 8470 8471 # First check to see if --with-celibconfig was specified. 8472 if test x"${with_celibconfig}" != x ; then 8473 if test -d "${with_celibconfig}/inc" ; then 8474 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 8475 else 8476 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 8477echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 8478 { (exit 1); exit 1; }; } 8479 fi 8480 fi 8481 8482 # then check for a celib library 8483 if test x"${ac_cv_c_celibconfig}" = x ; then 8484 for i in \ 8485 ../celib-palm-3.0 \ 8486 ../celib \ 8487 ../../celib-palm-3.0 \ 8488 ../../celib \ 8489 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 8490 ${srcdir}/../celib-palm-3.0 \ 8491 ${srcdir}/../celib \ 8492 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 8493 ; do 8494 if test -d "$i/inc" ; then 8495 ac_cv_c_celibconfig=`(cd $i; pwd)` 8496 break 8497 fi 8498 done 8499 fi 8500 8501fi 8502 8503 if test x"${ac_cv_c_celibconfig}" = x ; then 8504 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 8505echo "$as_me: error: Cannot find celib support library directory" >&2;} 8506 { (exit 1); exit 1; }; } 8507 else 8508 no_celib= 8509 CELIB_DIR=${ac_cv_c_celibconfig} 8510 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 8511 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 8512echo "${ECHO_T}found $CELIB_DIR" >&6; } 8513 fi 8514 fi 8515 8516 # Set defaults for common evc4/PPC2003 setup 8517 # Currently Tcl requires 300+, possibly 420+ for sockets 8518 CEVERSION=420; # could be 211 300 301 400 420 ... 8519 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 8520 ARCH=ARM; # could be ARM MIPS X86EM ... 8521 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 8522 if test "$doWince" != "yes"; then 8523 # If !yes then the user specified something 8524 # Reset ARCH to allow user to skip specifying it 8525 ARCH= 8526 eval `echo $doWince | awk -F, '{ \ 8527 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 8528 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 8529 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 8530 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 8531 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 8532 }'` 8533 if test "x${ARCH}" = "x" ; then 8534 ARCH=$TARGETCPU; 8535 fi 8536 fi 8537 OSVERSION=WCE$CEVERSION; 8538 if test "x${WCEROOT}" = "x" ; then 8539 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 8540 if test ! -d "${WCEROOT}" ; then 8541 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 8542 fi 8543 fi 8544 if test "x${SDKROOT}" = "x" ; then 8545 SDKROOT="C:/Program Files/Windows CE Tools" 8546 if test ! -d "${SDKROOT}" ; then 8547 SDKROOT="C:/Windows CE Tools" 8548 fi 8549 fi 8550 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 8551 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 8552 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 8553 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 8554 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 8555echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 8556 { (exit 1); exit 1; }; } 8557 doWince="no" 8558 else 8559 # We could PATH_NOSPACE these, but that's not important, 8560 # as long as we quote them when used. 8561 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 8562 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 8563 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 8564 fi 8565 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 8566 fi 8567 fi 8568 8569 if test "$GCC" != "yes" ; then 8570 if test "${SHARED_BUILD}" = "0" ; then 8571 runtime=-MT 8572 else 8573 runtime=-MD 8574 fi 8575 8576 if test "$do64bit" != "no" ; then 8577 # All this magic is necessary for the Win64 SDK RC1 - hobbs 8578 CC="\"${PATH64}/cl.exe\"" 8579 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 8580 RC="\"${MSSDK}/bin/rc.exe\"" 8581 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 8582 LINKBIN="\"${PATH64}/link.exe\"" 8583 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 8584 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8585 # Avoid 'unresolved external symbol __security_cookie' 8586 # errors, c.f. http://support.microsoft.com/?id=894573 8587 8588 vars="bufferoverflowU.lib" 8589 for i in $vars; do 8590 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 8591 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 8592 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 8593 fi 8594 PKG_LIBS="$PKG_LIBS $i" 8595 done 8596 8597 8598 elif test "$doWince" != "no" ; then 8599 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 8600 if test "${TARGETCPU}" = "X86"; then 8601 CC="\"${CEBINROOT}/cl.exe\"" 8602 else 8603 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 8604 fi 8605 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 8606 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 8607 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 8608 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 8609 if test "${SHARED_BUILD}" = "1" ; then 8610 # Static CE builds require static celib as well 8611 defs="${defs} _DLL" 8612 fi 8613 for i in $defs ; do 8614 8615cat >>confdefs.h <<_ACEOF 8616#define $i 1 8617_ACEOF 8618 8619 done 8620 8621cat >>confdefs.h <<_ACEOF 8622#define _WIN32_WCE $CEVERSION 8623_ACEOF 8624 8625 8626cat >>confdefs.h <<_ACEOF 8627#define UNDER_CE $CEVERSION 8628_ACEOF 8629 8630 CFLAGS_DEBUG="-nologo -Zi -Od" 8631 CFLAGS_OPTIMIZE="-nologo -Ox" 8632 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 8633 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 8634 LINKBIN="\"${CEBINROOT}/link.exe\"" 8635 8636 else 8637 RC="rc" 8638 lflags="-nologo" 8639 LINKBIN="link" 8640 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 8641 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8642 fi 8643 fi 8644 8645 if test "$GCC" = "yes"; then 8646 # mingw gcc mode 8647 RC="windres" 8648 CFLAGS_DEBUG="-g" 8649 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8650 SHLIB_LD="$CC -shared" 8651 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8652 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 8653 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 8654 else 8655 SHLIB_LD="${LINKBIN} -dll ${lflags}" 8656 # link -lib only works when -lib is the first arg 8657 STLIB_LD="${LINKBIN} -lib ${lflags}" 8658 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 8659 PATHTYPE=-w 8660 # For information on what debugtype is most useful, see: 8661 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8662 # and also 8663 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 8664 # This essentially turns it all on. 8665 LDFLAGS_DEBUG="-debug -debugtype:cv" 8666 LDFLAGS_OPTIMIZE="-release" 8667 if test "$doWince" != "no" ; then 8668 LDFLAGS_CONSOLE="-link ${lflags}" 8669 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8670 else 8671 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8672 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8673 fi 8674 fi 8675 8676 SHLIB_SUFFIX=".dll" 8677 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8678 8679 TCL_LIB_VERSIONS_OK=nodots 8680 ;; 8681 AIX-*) 8682 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 8683 8684 # AIX requires the _r compiler when gcc isn't being used 8685 case "${CC}" in 8686 *_r|*_r\ *) 8687 # ok ... 8688 ;; 8689 *) 8690 # Make sure only first arg gets _r 8691 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 8692 ;; 8693 esac 8694 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8695echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 8696 8697fi 8698 8699 LIBS="$LIBS -lc" 8700 SHLIB_CFLAGS="" 8701 SHLIB_SUFFIX=".so" 8702 8703 LD_LIBRARY_PATH_VAR="LIBPATH" 8704 8705 # Check to enable 64-bit flags for compiler/linker 8706 if test "$do64bit" = yes; then 8707 8708 if test "$GCC" = yes; then 8709 8710 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8711echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8712 8713else 8714 8715 do64bit_ok=yes 8716 CFLAGS="$CFLAGS -q64" 8717 LDFLAGS_ARCH="-q64" 8718 RANLIB="${RANLIB} -X64" 8719 AR="${AR} -X64" 8720 SHLIB_LD_FLAGS="-b64" 8721 8722fi 8723 8724 8725fi 8726 8727 8728 if test "`uname -m`" = ia64; then 8729 8730 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8731 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8732 if test "$GCC" = yes; then 8733 8734 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8735 8736else 8737 8738 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8739 8740fi 8741 8742 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8743 8744else 8745 8746 if test "$GCC" = yes; then 8747 8748 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8749 8750else 8751 8752 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8753 LDFLAGS="$LDFLAGS -brtl" 8754 8755fi 8756 8757 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8758 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8759 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8760 8761fi 8762 8763 ;; 8764 BeOS*) 8765 SHLIB_CFLAGS="-fPIC" 8766 SHLIB_LD='${CC} -nostart' 8767 SHLIB_SUFFIX=".so" 8768 8769 #----------------------------------------------------------- 8770 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8771 # -lsocket, even if the network functions are in -lnet which 8772 # is always linked to, for compatibility. 8773 #----------------------------------------------------------- 8774 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8775echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8776if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8777 echo $ECHO_N "(cached) $ECHO_C" >&6 8778else 8779 ac_check_lib_save_LIBS=$LIBS 8780LIBS="-lbind $LIBS" 8781cat >conftest.$ac_ext <<_ACEOF 8782/* confdefs.h. */ 8783_ACEOF 8784cat confdefs.h >>conftest.$ac_ext 8785cat >>conftest.$ac_ext <<_ACEOF 8786/* end confdefs.h. */ 8787 8788/* Override any GCC internal prototype to avoid an error. 8789 Use char because int might match the return type of a GCC 8790 builtin and then its argument prototype would still apply. */ 8791#ifdef __cplusplus 8792extern "C" 8793#endif 8794char inet_ntoa (); 8795int 8796main () 8797{ 8798return inet_ntoa (); 8799 ; 8800 return 0; 8801} 8802_ACEOF 8803rm -f conftest.$ac_objext conftest$ac_exeext 8804if { (ac_try="$ac_link" 8805case "(($ac_try" in 8806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8807 *) ac_try_echo=$ac_try;; 8808esac 8809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8810 (eval "$ac_link") 2>conftest.er1 8811 ac_status=$? 8812 grep -v '^ *+' conftest.er1 >conftest.err 8813 rm -f conftest.er1 8814 cat conftest.err >&5 8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8816 (exit $ac_status); } && { 8817 test -z "$ac_c_werror_flag" || 8818 test ! -s conftest.err 8819 } && test -s conftest$ac_exeext && 8820 $as_test_x conftest$ac_exeext; then 8821 ac_cv_lib_bind_inet_ntoa=yes 8822else 8823 echo "$as_me: failed program was:" >&5 8824sed 's/^/| /' conftest.$ac_ext >&5 8825 8826 ac_cv_lib_bind_inet_ntoa=no 8827fi 8828 8829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8830 conftest$ac_exeext conftest.$ac_ext 8831LIBS=$ac_check_lib_save_LIBS 8832fi 8833{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8834echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8835if test $ac_cv_lib_bind_inet_ntoa = yes; then 8836 LIBS="$LIBS -lbind -lsocket" 8837fi 8838 8839 ;; 8840 BSD/OS-4.*) 8841 SHLIB_CFLAGS="-export-dynamic -fPIC" 8842 SHLIB_LD='${CC} -shared' 8843 SHLIB_SUFFIX=".so" 8844 LDFLAGS="$LDFLAGS -export-dynamic" 8845 CC_SEARCH_FLAGS="" 8846 LD_SEARCH_FLAGS="" 8847 ;; 8848 CYGWIN_*) 8849 SHLIB_CFLAGS="" 8850 SHLIB_LD='${CC} -shared' 8851 SHLIB_SUFFIX=".dll" 8852 EXE_SUFFIX=".exe" 8853 CC_SEARCH_FLAGS="" 8854 LD_SEARCH_FLAGS="" 8855 ;; 8856 Haiku*) 8857 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8858 SHLIB_CFLAGS="-fPIC" 8859 SHLIB_SUFFIX=".so" 8860 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8861 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8862echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8863if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8864 echo $ECHO_N "(cached) $ECHO_C" >&6 8865else 8866 ac_check_lib_save_LIBS=$LIBS 8867LIBS="-lnetwork $LIBS" 8868cat >conftest.$ac_ext <<_ACEOF 8869/* confdefs.h. */ 8870_ACEOF 8871cat confdefs.h >>conftest.$ac_ext 8872cat >>conftest.$ac_ext <<_ACEOF 8873/* end confdefs.h. */ 8874 8875/* Override any GCC internal prototype to avoid an error. 8876 Use char because int might match the return type of a GCC 8877 builtin and then its argument prototype would still apply. */ 8878#ifdef __cplusplus 8879extern "C" 8880#endif 8881char inet_ntoa (); 8882int 8883main () 8884{ 8885return inet_ntoa (); 8886 ; 8887 return 0; 8888} 8889_ACEOF 8890rm -f conftest.$ac_objext conftest$ac_exeext 8891if { (ac_try="$ac_link" 8892case "(($ac_try" in 8893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8894 *) ac_try_echo=$ac_try;; 8895esac 8896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8897 (eval "$ac_link") 2>conftest.er1 8898 ac_status=$? 8899 grep -v '^ *+' conftest.er1 >conftest.err 8900 rm -f conftest.er1 8901 cat conftest.err >&5 8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8903 (exit $ac_status); } && { 8904 test -z "$ac_c_werror_flag" || 8905 test ! -s conftest.err 8906 } && test -s conftest$ac_exeext && 8907 $as_test_x conftest$ac_exeext; then 8908 ac_cv_lib_network_inet_ntoa=yes 8909else 8910 echo "$as_me: failed program was:" >&5 8911sed 's/^/| /' conftest.$ac_ext >&5 8912 8913 ac_cv_lib_network_inet_ntoa=no 8914fi 8915 8916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8917 conftest$ac_exeext conftest.$ac_ext 8918LIBS=$ac_check_lib_save_LIBS 8919fi 8920{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8921echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8922if test $ac_cv_lib_network_inet_ntoa = yes; then 8923 LIBS="$LIBS -lnetwork" 8924fi 8925 8926 ;; 8927 HP-UX-*.11.*) 8928 # Use updated header definitions where possible 8929 8930cat >>confdefs.h <<\_ACEOF 8931#define _XOPEN_SOURCE_EXTENDED 1 8932_ACEOF 8933 8934 # TEA specific: Needed by Tcl, but not most extensions 8935 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8936 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8937 8938 if test "`uname -m`" = ia64; then 8939 8940 SHLIB_SUFFIX=".so" 8941 # Use newer C++ library for C++ extensions 8942 #if test "$GCC" != "yes" ; then 8943 # CPPFLAGS="-AA" 8944 #fi 8945 8946else 8947 8948 SHLIB_SUFFIX=".sl" 8949 8950fi 8951 8952 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8953echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8954if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8955 echo $ECHO_N "(cached) $ECHO_C" >&6 8956else 8957 ac_check_lib_save_LIBS=$LIBS 8958LIBS="-ldld $LIBS" 8959cat >conftest.$ac_ext <<_ACEOF 8960/* confdefs.h. */ 8961_ACEOF 8962cat confdefs.h >>conftest.$ac_ext 8963cat >>conftest.$ac_ext <<_ACEOF 8964/* end confdefs.h. */ 8965 8966/* Override any GCC internal prototype to avoid an error. 8967 Use char because int might match the return type of a GCC 8968 builtin and then its argument prototype would still apply. */ 8969#ifdef __cplusplus 8970extern "C" 8971#endif 8972char shl_load (); 8973int 8974main () 8975{ 8976return shl_load (); 8977 ; 8978 return 0; 8979} 8980_ACEOF 8981rm -f conftest.$ac_objext conftest$ac_exeext 8982if { (ac_try="$ac_link" 8983case "(($ac_try" in 8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8985 *) ac_try_echo=$ac_try;; 8986esac 8987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8988 (eval "$ac_link") 2>conftest.er1 8989 ac_status=$? 8990 grep -v '^ *+' conftest.er1 >conftest.err 8991 rm -f conftest.er1 8992 cat conftest.err >&5 8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8994 (exit $ac_status); } && { 8995 test -z "$ac_c_werror_flag" || 8996 test ! -s conftest.err 8997 } && test -s conftest$ac_exeext && 8998 $as_test_x conftest$ac_exeext; then 8999 ac_cv_lib_dld_shl_load=yes 9000else 9001 echo "$as_me: failed program was:" >&5 9002sed 's/^/| /' conftest.$ac_ext >&5 9003 9004 ac_cv_lib_dld_shl_load=no 9005fi 9006 9007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9008 conftest$ac_exeext conftest.$ac_ext 9009LIBS=$ac_check_lib_save_LIBS 9010fi 9011{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9012echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9013if test $ac_cv_lib_dld_shl_load = yes; then 9014 tcl_ok=yes 9015else 9016 tcl_ok=no 9017fi 9018 9019 if test "$tcl_ok" = yes; then 9020 9021 LDFLAGS="$LDFLAGS -E" 9022 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 9023 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 9024 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 9025 9026fi 9027 9028 if test "$GCC" = yes; then 9029 9030 SHLIB_LD='${CC} -shared' 9031 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9032 9033else 9034 9035 CFLAGS="$CFLAGS -z" 9036 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 9037 #CFLAGS="$CFLAGS +DAportable" 9038 SHLIB_CFLAGS="+z" 9039 SHLIB_LD="ld -b" 9040 9041fi 9042 9043 9044 # Check to enable 64-bit flags for compiler/linker 9045 if test "$do64bit" = "yes"; then 9046 9047 if test "$GCC" = yes; then 9048 9049 case `${CC} -dumpmachine` in 9050 hppa64*) 9051 # 64-bit gcc in use. Fix flags for GNU ld. 9052 do64bit_ok=yes 9053 SHLIB_LD='${CC} -shared' 9054 if test $doRpath = yes; then 9055 9056 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9057fi 9058 9059 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9060 ;; 9061 *) 9062 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9063echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 9064 ;; 9065 esac 9066 9067else 9068 9069 do64bit_ok=yes 9070 CFLAGS="$CFLAGS +DD64" 9071 LDFLAGS_ARCH="+DD64" 9072 9073fi 9074 9075 9076fi 9077 ;; 9078 IRIX-6.*) 9079 SHLIB_CFLAGS="" 9080 SHLIB_LD="ld -n32 -shared -rdata_shared" 9081 SHLIB_SUFFIX=".so" 9082 if test $doRpath = yes; then 9083 9084 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9085 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9086fi 9087 9088 if test "$GCC" = yes; then 9089 9090 CFLAGS="$CFLAGS -mabi=n32" 9091 LDFLAGS="$LDFLAGS -mabi=n32" 9092 9093else 9094 9095 case $system in 9096 IRIX-6.3) 9097 # Use to build 6.2 compatible binaries on 6.3. 9098 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 9099 ;; 9100 *) 9101 CFLAGS="$CFLAGS -n32" 9102 ;; 9103 esac 9104 LDFLAGS="$LDFLAGS -n32" 9105 9106fi 9107 9108 ;; 9109 IRIX64-6.*) 9110 SHLIB_CFLAGS="" 9111 SHLIB_LD="ld -n32 -shared -rdata_shared" 9112 SHLIB_SUFFIX=".so" 9113 if test $doRpath = yes; then 9114 9115 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9116 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9117fi 9118 9119 9120 # Check to enable 64-bit flags for compiler/linker 9121 9122 if test "$do64bit" = yes; then 9123 9124 if test "$GCC" = yes; then 9125 9126 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 9127echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 9128 9129else 9130 9131 do64bit_ok=yes 9132 SHLIB_LD="ld -64 -shared -rdata_shared" 9133 CFLAGS="$CFLAGS -64" 9134 LDFLAGS_ARCH="-64" 9135 9136fi 9137 9138 9139fi 9140 9141 ;; 9142 Linux*) 9143 SHLIB_CFLAGS="-fPIC" 9144 SHLIB_SUFFIX=".so" 9145 9146 # TEA specific: 9147 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 9148 9149 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9150 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 9151 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9152 if test $doRpath = yes; then 9153 9154 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9155fi 9156 9157 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9158 if test "`uname -m`" = "alpha"; then 9159 CFLAGS="$CFLAGS -mieee" 9160fi 9161 9162 if test $do64bit = yes; then 9163 9164 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 9165echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 9166if test "${tcl_cv_cc_m64+set}" = set; then 9167 echo $ECHO_N "(cached) $ECHO_C" >&6 9168else 9169 9170 hold_cflags=$CFLAGS 9171 CFLAGS="$CFLAGS -m64" 9172 cat >conftest.$ac_ext <<_ACEOF 9173/* confdefs.h. */ 9174_ACEOF 9175cat confdefs.h >>conftest.$ac_ext 9176cat >>conftest.$ac_ext <<_ACEOF 9177/* end confdefs.h. */ 9178 9179int 9180main () 9181{ 9182 9183 ; 9184 return 0; 9185} 9186_ACEOF 9187rm -f conftest.$ac_objext conftest$ac_exeext 9188if { (ac_try="$ac_link" 9189case "(($ac_try" in 9190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9191 *) ac_try_echo=$ac_try;; 9192esac 9193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9194 (eval "$ac_link") 2>conftest.er1 9195 ac_status=$? 9196 grep -v '^ *+' conftest.er1 >conftest.err 9197 rm -f conftest.er1 9198 cat conftest.err >&5 9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9200 (exit $ac_status); } && { 9201 test -z "$ac_c_werror_flag" || 9202 test ! -s conftest.err 9203 } && test -s conftest$ac_exeext && 9204 $as_test_x conftest$ac_exeext; then 9205 tcl_cv_cc_m64=yes 9206else 9207 echo "$as_me: failed program was:" >&5 9208sed 's/^/| /' conftest.$ac_ext >&5 9209 9210 tcl_cv_cc_m64=no 9211fi 9212 9213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9214 conftest$ac_exeext conftest.$ac_ext 9215 CFLAGS=$hold_cflags 9216fi 9217{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 9218echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 9219 if test $tcl_cv_cc_m64 = yes; then 9220 9221 CFLAGS="$CFLAGS -m64" 9222 do64bit_ok=yes 9223 9224fi 9225 9226 9227fi 9228 9229 9230 # The combo of gcc + glibc has a bug related to inlining of 9231 # functions like strtod(). The -fno-builtin flag should address 9232 # this problem but it does not work. The -fno-inline flag is kind 9233 # of overkill but it works. Disable inlining only when one of the 9234 # files in compat/*.c is being linked in. 9235 9236 if test x"${USE_COMPAT}" != x; then 9237 CFLAGS="$CFLAGS -fno-inline" 9238fi 9239 9240 9241 ;; 9242 GNU*) 9243 SHLIB_CFLAGS="-fPIC" 9244 SHLIB_SUFFIX=".so" 9245 9246 SHLIB_LD='${CC} -shared' 9247 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9248 CC_SEARCH_FLAGS="" 9249 LD_SEARCH_FLAGS="" 9250 if test "`uname -m`" = "alpha"; then 9251 CFLAGS="$CFLAGS -mieee" 9252fi 9253 9254 ;; 9255 Lynx*) 9256 SHLIB_CFLAGS="-fPIC" 9257 SHLIB_SUFFIX=".so" 9258 CFLAGS_OPTIMIZE=-02 9259 SHLIB_LD='${CC} -shared' 9260 LD_FLAGS="-Wl,--export-dynamic" 9261 if test $doRpath = yes; then 9262 9263 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9264 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9265fi 9266 9267 ;; 9268 OpenBSD-*) 9269 SHLIB_CFLAGS="-fPIC" 9270 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 9271 SHLIB_SUFFIX=".so" 9272 if test $doRpath = yes; then 9273 9274 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9275fi 9276 9277 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9278 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 9279 { echo "$as_me:$LINENO: checking for ELF" >&5 9280echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 9281if test "${tcl_cv_ld_elf+set}" = set; then 9282 echo $ECHO_N "(cached) $ECHO_C" >&6 9283else 9284 9285 cat >conftest.$ac_ext <<_ACEOF 9286/* confdefs.h. */ 9287_ACEOF 9288cat confdefs.h >>conftest.$ac_ext 9289cat >>conftest.$ac_ext <<_ACEOF 9290/* end confdefs.h. */ 9291 9292#ifdef __ELF__ 9293 yes 9294#endif 9295 9296_ACEOF 9297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9298 $EGREP "yes" >/dev/null 2>&1; then 9299 tcl_cv_ld_elf=yes 9300else 9301 tcl_cv_ld_elf=no 9302fi 9303rm -f -r conftest* 9304 9305fi 9306{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 9307echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 9308 if test $tcl_cv_ld_elf = yes; then 9309 9310 LDFLAGS=-Wl,-export-dynamic 9311 9312else 9313 LDFLAGS="" 9314fi 9315 9316 if test "${TCL_THREADS}" = "1"; then 9317 9318 # OpenBSD builds and links with -pthread, never -lpthread. 9319 LIBS=`echo $LIBS | sed s/-lpthread//` 9320 CFLAGS="$CFLAGS -pthread" 9321 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 9322 9323fi 9324 9325 # OpenBSD doesn't do version numbers with dots. 9326 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9327 TCL_LIB_VERSIONS_OK=nodots 9328 ;; 9329 NetBSD-*|FreeBSD-[3-4].*) 9330 # FreeBSD 3.* and greater have ELF. 9331 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 9332 SHLIB_CFLAGS="-fPIC" 9333 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 9334 SHLIB_SUFFIX=".so" 9335 LDFLAGS="$LDFLAGS -export-dynamic" 9336 if test $doRpath = yes; then 9337 9338 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9339fi 9340 9341 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9342 if test "${TCL_THREADS}" = "1"; then 9343 9344 # The -pthread needs to go in the CFLAGS, not LIBS 9345 LIBS=`echo $LIBS | sed s/-pthread//` 9346 CFLAGS="$CFLAGS -pthread" 9347 LDFLAGS="$LDFLAGS -pthread" 9348 9349fi 9350 9351 case $system in 9352 FreeBSD-3.*) 9353 # FreeBSD-3 doesn't handle version numbers with dots. 9354 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9355 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 9356 TCL_LIB_VERSIONS_OK=nodots 9357 ;; 9358 esac 9359 ;; 9360 FreeBSD-*) 9361 # This configuration from FreeBSD Ports. 9362 SHLIB_CFLAGS="-fPIC" 9363 SHLIB_LD="${CC} -shared" 9364 TCL_SHLIB_LD_EXTRAS="-soname \$@" 9365 SHLIB_SUFFIX=".so" 9366 LDFLAGS="" 9367 if test $doRpath = yes; then 9368 9369 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9370 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9371fi 9372 9373 if test "${TCL_THREADS}" = "1"; then 9374 9375 # The -pthread needs to go in the LDFLAGS, not LIBS 9376 LIBS=`echo $LIBS | sed s/-pthread//` 9377 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9378 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 9379fi 9380 9381 # Version numbers are dot-stripped by system policy. 9382 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 9383 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9384 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 9385 TCL_LIB_VERSIONS_OK=nodots 9386 ;; 9387 Darwin-*) 9388 CFLAGS_OPTIMIZE="-Os" 9389 SHLIB_CFLAGS="-fno-common" 9390 # To avoid discrepancies between what headers configure sees during 9391 # preprocessing tests and compiling tests, move any -isysroot and 9392 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 9393 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 9394 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9395 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 9396 CFLAGS="`echo " ${CFLAGS}" | \ 9397 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9398 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 9399 if test $do64bit = yes; then 9400 9401 case `arch` in 9402 ppc) 9403 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 9404echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 9405if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 9406 echo $ECHO_N "(cached) $ECHO_C" >&6 9407else 9408 9409 hold_cflags=$CFLAGS 9410 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9411 cat >conftest.$ac_ext <<_ACEOF 9412/* confdefs.h. */ 9413_ACEOF 9414cat confdefs.h >>conftest.$ac_ext 9415cat >>conftest.$ac_ext <<_ACEOF 9416/* end confdefs.h. */ 9417 9418int 9419main () 9420{ 9421 9422 ; 9423 return 0; 9424} 9425_ACEOF 9426rm -f conftest.$ac_objext conftest$ac_exeext 9427if { (ac_try="$ac_link" 9428case "(($ac_try" in 9429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9430 *) ac_try_echo=$ac_try;; 9431esac 9432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9433 (eval "$ac_link") 2>conftest.er1 9434 ac_status=$? 9435 grep -v '^ *+' conftest.er1 >conftest.err 9436 rm -f conftest.er1 9437 cat conftest.err >&5 9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9439 (exit $ac_status); } && { 9440 test -z "$ac_c_werror_flag" || 9441 test ! -s conftest.err 9442 } && test -s conftest$ac_exeext && 9443 $as_test_x conftest$ac_exeext; then 9444 tcl_cv_cc_arch_ppc64=yes 9445else 9446 echo "$as_me: failed program was:" >&5 9447sed 's/^/| /' conftest.$ac_ext >&5 9448 9449 tcl_cv_cc_arch_ppc64=no 9450fi 9451 9452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9453 conftest$ac_exeext conftest.$ac_ext 9454 CFLAGS=$hold_cflags 9455fi 9456{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 9457echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 9458 if test $tcl_cv_cc_arch_ppc64 = yes; then 9459 9460 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9461 do64bit_ok=yes 9462 9463fi 9464;; 9465 i386) 9466 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 9467echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 9468if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 9469 echo $ECHO_N "(cached) $ECHO_C" >&6 9470else 9471 9472 hold_cflags=$CFLAGS 9473 CFLAGS="$CFLAGS -arch x86_64" 9474 cat >conftest.$ac_ext <<_ACEOF 9475/* confdefs.h. */ 9476_ACEOF 9477cat confdefs.h >>conftest.$ac_ext 9478cat >>conftest.$ac_ext <<_ACEOF 9479/* end confdefs.h. */ 9480 9481int 9482main () 9483{ 9484 9485 ; 9486 return 0; 9487} 9488_ACEOF 9489rm -f conftest.$ac_objext conftest$ac_exeext 9490if { (ac_try="$ac_link" 9491case "(($ac_try" in 9492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9493 *) ac_try_echo=$ac_try;; 9494esac 9495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9496 (eval "$ac_link") 2>conftest.er1 9497 ac_status=$? 9498 grep -v '^ *+' conftest.er1 >conftest.err 9499 rm -f conftest.er1 9500 cat conftest.err >&5 9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9502 (exit $ac_status); } && { 9503 test -z "$ac_c_werror_flag" || 9504 test ! -s conftest.err 9505 } && test -s conftest$ac_exeext && 9506 $as_test_x conftest$ac_exeext; then 9507 tcl_cv_cc_arch_x86_64=yes 9508else 9509 echo "$as_me: failed program was:" >&5 9510sed 's/^/| /' conftest.$ac_ext >&5 9511 9512 tcl_cv_cc_arch_x86_64=no 9513fi 9514 9515rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9516 conftest$ac_exeext conftest.$ac_ext 9517 CFLAGS=$hold_cflags 9518fi 9519{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 9520echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 9521 if test $tcl_cv_cc_arch_x86_64 = yes; then 9522 9523 CFLAGS="$CFLAGS -arch x86_64" 9524 do64bit_ok=yes 9525 9526fi 9527;; 9528 *) 9529 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 9530echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 9531 esac 9532 9533else 9534 9535 # Check for combined 32-bit and 64-bit fat build 9536 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 9537 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 9538 9539 fat_32_64=yes 9540fi 9541 9542 9543fi 9544 9545 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9546 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 9547 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 9548echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 9549if test "${tcl_cv_ld_single_module+set}" = set; then 9550 echo $ECHO_N "(cached) $ECHO_C" >&6 9551else 9552 9553 hold_ldflags=$LDFLAGS 9554 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 9555 cat >conftest.$ac_ext <<_ACEOF 9556/* confdefs.h. */ 9557_ACEOF 9558cat confdefs.h >>conftest.$ac_ext 9559cat >>conftest.$ac_ext <<_ACEOF 9560/* end confdefs.h. */ 9561 9562int 9563main () 9564{ 9565int i; 9566 ; 9567 return 0; 9568} 9569_ACEOF 9570rm -f conftest.$ac_objext conftest$ac_exeext 9571if { (ac_try="$ac_link" 9572case "(($ac_try" in 9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9574 *) ac_try_echo=$ac_try;; 9575esac 9576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9577 (eval "$ac_link") 2>conftest.er1 9578 ac_status=$? 9579 grep -v '^ *+' conftest.er1 >conftest.err 9580 rm -f conftest.er1 9581 cat conftest.err >&5 9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9583 (exit $ac_status); } && { 9584 test -z "$ac_c_werror_flag" || 9585 test ! -s conftest.err 9586 } && test -s conftest$ac_exeext && 9587 $as_test_x conftest$ac_exeext; then 9588 tcl_cv_ld_single_module=yes 9589else 9590 echo "$as_me: failed program was:" >&5 9591sed 's/^/| /' conftest.$ac_ext >&5 9592 9593 tcl_cv_ld_single_module=no 9594fi 9595 9596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9597 conftest$ac_exeext conftest.$ac_ext 9598 LDFLAGS=$hold_ldflags 9599fi 9600{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 9601echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 9602 if test $tcl_cv_ld_single_module = yes; then 9603 9604 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 9605 9606fi 9607 9608 # TEA specific: link shlib with current and compatiblity version flags 9609 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 9610 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 9611 SHLIB_SUFFIX=".dylib" 9612 # Don't use -prebind when building for Mac OS X 10.4 or later only: 9613 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 9614 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 9615 9616 LDFLAGS="$LDFLAGS -prebind" 9617fi 9618 9619 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 9620 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 9621echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 9622if test "${tcl_cv_ld_search_paths_first+set}" = set; then 9623 echo $ECHO_N "(cached) $ECHO_C" >&6 9624else 9625 9626 hold_ldflags=$LDFLAGS 9627 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 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 9635int 9636main () 9637{ 9638int i; 9639 ; 9640 return 0; 9641} 9642_ACEOF 9643rm -f conftest.$ac_objext conftest$ac_exeext 9644if { (ac_try="$ac_link" 9645case "(($ac_try" in 9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9647 *) ac_try_echo=$ac_try;; 9648esac 9649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9650 (eval "$ac_link") 2>conftest.er1 9651 ac_status=$? 9652 grep -v '^ *+' conftest.er1 >conftest.err 9653 rm -f conftest.er1 9654 cat conftest.err >&5 9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9656 (exit $ac_status); } && { 9657 test -z "$ac_c_werror_flag" || 9658 test ! -s conftest.err 9659 } && test -s conftest$ac_exeext && 9660 $as_test_x conftest$ac_exeext; then 9661 tcl_cv_ld_search_paths_first=yes 9662else 9663 echo "$as_me: failed program was:" >&5 9664sed 's/^/| /' conftest.$ac_ext >&5 9665 9666 tcl_cv_ld_search_paths_first=no 9667fi 9668 9669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9670 conftest$ac_exeext conftest.$ac_ext 9671 LDFLAGS=$hold_ldflags 9672fi 9673{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9674echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 9675 if test $tcl_cv_ld_search_paths_first = yes; then 9676 9677 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9678 9679fi 9680 9681 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9682 9683 9684cat >>confdefs.h <<\_ACEOF 9685#define MODULE_SCOPE __private_extern__ 9686_ACEOF 9687 9688 tcl_cv_cc_visibility_hidden=yes 9689 9690fi 9691 9692 CC_SEARCH_FLAGS="" 9693 LD_SEARCH_FLAGS="" 9694 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9695 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9696 # extensions, verify that 64-bit build is possible. 9697 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9698 9699 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9700 9701 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9702echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 9703if test "${tcl_cv_lib_x11_64+set}" = set; then 9704 echo $ECHO_N "(cached) $ECHO_C" >&6 9705else 9706 9707 for v in CFLAGS CPPFLAGS LDFLAGS; do 9708 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9709 done 9710 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9711 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9712 cat >conftest.$ac_ext <<_ACEOF 9713/* confdefs.h. */ 9714_ACEOF 9715cat confdefs.h >>conftest.$ac_ext 9716cat >>conftest.$ac_ext <<_ACEOF 9717/* end confdefs.h. */ 9718#include <X11/Xlib.h> 9719int 9720main () 9721{ 9722XrmInitialize(); 9723 ; 9724 return 0; 9725} 9726_ACEOF 9727rm -f conftest.$ac_objext conftest$ac_exeext 9728if { (ac_try="$ac_link" 9729case "(($ac_try" in 9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9731 *) ac_try_echo=$ac_try;; 9732esac 9733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9734 (eval "$ac_link") 2>conftest.er1 9735 ac_status=$? 9736 grep -v '^ *+' conftest.er1 >conftest.err 9737 rm -f conftest.er1 9738 cat conftest.err >&5 9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9740 (exit $ac_status); } && { 9741 test -z "$ac_c_werror_flag" || 9742 test ! -s conftest.err 9743 } && test -s conftest$ac_exeext && 9744 $as_test_x conftest$ac_exeext; then 9745 tcl_cv_lib_x11_64=yes 9746else 9747 echo "$as_me: failed program was:" >&5 9748sed 's/^/| /' conftest.$ac_ext >&5 9749 9750 tcl_cv_lib_x11_64=no 9751fi 9752 9753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9754 conftest$ac_exeext conftest.$ac_ext 9755 for v in CFLAGS CPPFLAGS LDFLAGS; do 9756 eval $v'="$hold_'$v'"' 9757 done 9758fi 9759{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9760echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9761 9762fi 9763 9764 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9765 9766 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9767echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9768if test "${tcl_cv_lib_tk_64+set}" = set; then 9769 echo $ECHO_N "(cached) $ECHO_C" >&6 9770else 9771 9772 for v in CFLAGS CPPFLAGS LDFLAGS; do 9773 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9774 done 9775 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9776 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9777 cat >conftest.$ac_ext <<_ACEOF 9778/* confdefs.h. */ 9779_ACEOF 9780cat confdefs.h >>conftest.$ac_ext 9781cat >>conftest.$ac_ext <<_ACEOF 9782/* end confdefs.h. */ 9783#include <tk.h> 9784int 9785main () 9786{ 9787Tk_InitStubs(NULL, "", 0); 9788 ; 9789 return 0; 9790} 9791_ACEOF 9792rm -f conftest.$ac_objext conftest$ac_exeext 9793if { (ac_try="$ac_link" 9794case "(($ac_try" in 9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9796 *) ac_try_echo=$ac_try;; 9797esac 9798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9799 (eval "$ac_link") 2>conftest.er1 9800 ac_status=$? 9801 grep -v '^ *+' conftest.er1 >conftest.err 9802 rm -f conftest.er1 9803 cat conftest.err >&5 9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9805 (exit $ac_status); } && { 9806 test -z "$ac_c_werror_flag" || 9807 test ! -s conftest.err 9808 } && test -s conftest$ac_exeext && 9809 $as_test_x conftest$ac_exeext; then 9810 tcl_cv_lib_tk_64=yes 9811else 9812 echo "$as_me: failed program was:" >&5 9813sed 's/^/| /' conftest.$ac_ext >&5 9814 9815 tcl_cv_lib_tk_64=no 9816fi 9817 9818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9819 conftest$ac_exeext conftest.$ac_ext 9820 for v in CFLAGS CPPFLAGS LDFLAGS; do 9821 eval $v'="$hold_'$v'"' 9822 done 9823fi 9824{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9825echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9826 9827fi 9828 9829 # remove 64-bit arch flags from CFLAGS et al. if configuration 9830 # does not support 64-bit. 9831 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9832 9833 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9834echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9835 for v in CFLAGS CPPFLAGS LDFLAGS; do 9836 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9837 done 9838fi 9839 9840 9841fi 9842 9843 ;; 9844 OS/390-*) 9845 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9846 9847cat >>confdefs.h <<\_ACEOF 9848#define _OE_SOCKETS 1 9849_ACEOF 9850 9851 ;; 9852 OSF1-V*) 9853 # Digital OSF/1 9854 SHLIB_CFLAGS="" 9855 if test "$SHARED_BUILD" = 1; then 9856 9857 SHLIB_LD='ld -shared -expect_unresolved "*"' 9858 9859else 9860 9861 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9862 9863fi 9864 9865 SHLIB_SUFFIX=".so" 9866 if test $doRpath = yes; then 9867 9868 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9869 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9870fi 9871 9872 if test "$GCC" = yes; then 9873 CFLAGS="$CFLAGS -mieee" 9874else 9875 9876 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9877fi 9878 9879 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9880 if test "${TCL_THREADS}" = 1; then 9881 9882 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9883 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9884 LIBS=`echo $LIBS | sed s/-lpthreads//` 9885 if test "$GCC" = yes; then 9886 9887 LIBS="$LIBS -lpthread -lmach -lexc" 9888 9889else 9890 9891 CFLAGS="$CFLAGS -pthread" 9892 LDFLAGS="$LDFLAGS -pthread" 9893 9894fi 9895 9896 9897fi 9898 9899 ;; 9900 QNX-6*) 9901 # QNX RTP 9902 # This may work for all QNX, but it was only reported for v6. 9903 SHLIB_CFLAGS="-fPIC" 9904 SHLIB_LD="ld -Bshareable -x" 9905 SHLIB_LD_LIBS="" 9906 SHLIB_SUFFIX=".so" 9907 CC_SEARCH_FLAGS="" 9908 LD_SEARCH_FLAGS="" 9909 ;; 9910 SCO_SV-3.2*) 9911 if test "$GCC" = yes; then 9912 9913 SHLIB_CFLAGS="-fPIC -melf" 9914 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9915 9916else 9917 9918 SHLIB_CFLAGS="-Kpic -belf" 9919 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9920 9921fi 9922 9923 SHLIB_LD="ld -G" 9924 SHLIB_LD_LIBS="" 9925 SHLIB_SUFFIX=".so" 9926 CC_SEARCH_FLAGS="" 9927 LD_SEARCH_FLAGS="" 9928 ;; 9929 SunOS-5.[0-6]) 9930 # Careful to not let 5.10+ fall into this case 9931 9932 # Note: If _REENTRANT isn't defined, then Solaris 9933 # won't define thread-safe library routines. 9934 9935 9936cat >>confdefs.h <<\_ACEOF 9937#define _REENTRANT 1 9938_ACEOF 9939 9940 9941cat >>confdefs.h <<\_ACEOF 9942#define _POSIX_PTHREAD_SEMANTICS 1 9943_ACEOF 9944 9945 9946 SHLIB_CFLAGS="-KPIC" 9947 SHLIB_SUFFIX=".so" 9948 if test "$GCC" = yes; then 9949 9950 SHLIB_LD='${CC} -shared' 9951 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9952 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9953 9954else 9955 9956 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9957 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9958 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9959 9960fi 9961 9962 ;; 9963 SunOS-5*) 9964 # Note: If _REENTRANT isn't defined, then Solaris 9965 # won't define thread-safe library routines. 9966 9967 9968cat >>confdefs.h <<\_ACEOF 9969#define _REENTRANT 1 9970_ACEOF 9971 9972 9973cat >>confdefs.h <<\_ACEOF 9974#define _POSIX_PTHREAD_SEMANTICS 1 9975_ACEOF 9976 9977 9978 SHLIB_CFLAGS="-KPIC" 9979 9980 # Check to enable 64-bit flags for compiler/linker 9981 if test "$do64bit" = yes; then 9982 9983 arch=`isainfo` 9984 if test "$arch" = "sparcv9 sparc"; then 9985 9986 if test "$GCC" = yes; then 9987 9988 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9989 9990 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9991echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9992 9993else 9994 9995 do64bit_ok=yes 9996 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9997 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9998 SHLIB_CFLAGS="-fPIC" 9999 10000fi 10001 10002 10003else 10004 10005 do64bit_ok=yes 10006 if test "$do64bitVIS" = yes; then 10007 10008 CFLAGS="$CFLAGS -xarch=v9a" 10009 LDFLAGS_ARCH="-xarch=v9a" 10010 10011else 10012 10013 CFLAGS="$CFLAGS -xarch=v9" 10014 LDFLAGS_ARCH="-xarch=v9" 10015 10016fi 10017 10018 # Solaris 64 uses this as well 10019 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 10020 10021fi 10022 10023 10024else 10025 if test "$arch" = "amd64 i386"; then 10026 10027 if test "$GCC" = yes; then 10028 10029 case $system in 10030 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 10031 do64bit_ok=yes 10032 CFLAGS="$CFLAGS -m64" 10033 LDFLAGS="$LDFLAGS -m64";; 10034 *) 10035 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 10036echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 10037 esac 10038 10039else 10040 10041 do64bit_ok=yes 10042 case $system in 10043 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 10044 CFLAGS="$CFLAGS -m64" 10045 LDFLAGS="$LDFLAGS -m64";; 10046 *) 10047 CFLAGS="$CFLAGS -xarch=amd64" 10048 LDFLAGS="$LDFLAGS -xarch=amd64";; 10049 esac 10050 10051fi 10052 10053 10054else 10055 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 10056echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 10057fi 10058 10059fi 10060 10061 10062fi 10063 10064 10065 SHLIB_SUFFIX=".so" 10066 if test "$GCC" = yes; then 10067 10068 SHLIB_LD='${CC} -shared' 10069 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 10070 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10071 if test "$do64bit_ok" = yes; then 10072 10073 if test "$arch" = "sparcv9 sparc"; then 10074 10075 # We need to specify -static-libgcc or we need to 10076 # add the path to the sparv9 libgcc. 10077 # JH: static-libgcc is necessary for core Tcl, but may 10078 # not be necessary for extensions. 10079 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 10080 # for finding sparcv9 libgcc, get the regular libgcc 10081 # path, remove so name and append 'sparcv9' 10082 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 10083 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 10084 10085else 10086 if test "$arch" = "amd64 i386"; then 10087 10088 # JH: static-libgcc is necessary for core Tcl, but may 10089 # not be necessary for extensions. 10090 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 10091 10092fi 10093 10094fi 10095 10096 10097fi 10098 10099 10100else 10101 10102 case $system in 10103 SunOS-5.[1-9][0-9]*) 10104 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 10105 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 10106 *) 10107 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 10108 esac 10109 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 10110 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 10111 10112fi 10113 10114 ;; 10115 esac 10116 10117 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 10118 10119 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 10120echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 10121 10122fi 10123 10124 10125 10126 10127 # Add in the arch flags late to ensure it wasn't removed. 10128 # Not necessary in TEA, but this is aligned with core 10129 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 10130 10131 # If we're running gcc, then change the C flags for compiling shared 10132 # libraries to the right flags for gcc, instead of those for the 10133 # standard manufacturer compiler. 10134 10135 if test "$GCC" = yes; then 10136 10137 case $system in 10138 AIX-*) ;; 10139 BSD/OS*) ;; 10140 CYGWIN_*) ;; 10141 IRIX*) ;; 10142 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 10143 Darwin-*) ;; 10144 SCO_SV-3.2*) ;; 10145 windows) ;; 10146 *) SHLIB_CFLAGS="-fPIC" ;; 10147 esac 10148fi 10149 10150 10151 if test "$tcl_cv_cc_visibility_hidden" != yes; then 10152 10153 10154cat >>confdefs.h <<\_ACEOF 10155#define MODULE_SCOPE extern 10156_ACEOF 10157 10158 10159cat >>confdefs.h <<\_ACEOF 10160#define NO_VIZ 10161_ACEOF 10162 10163 10164fi 10165 10166 10167 if test "$SHARED_LIB_SUFFIX" = ""; then 10168 10169 # TEA specific: use PACKAGE_VERSION instead of VERSION 10170 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 10171fi 10172 10173 if test "$UNSHARED_LIB_SUFFIX" = ""; then 10174 10175 # TEA specific: use PACKAGE_VERSION instead of VERSION 10176 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 10177fi 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 # These must be called after we do the basic CFLAGS checks and 10193 # verify any possible 64-bit or similar switches are necessary 10194 10195 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 10196echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 10197 tcl_flags="" 10198 10199 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 10200 echo $ECHO_N "(cached) $ECHO_C" >&6 10201else 10202 cat >conftest.$ac_ext <<_ACEOF 10203/* confdefs.h. */ 10204_ACEOF 10205cat confdefs.h >>conftest.$ac_ext 10206cat >>conftest.$ac_ext <<_ACEOF 10207/* end confdefs.h. */ 10208#include <stdlib.h> 10209int 10210main () 10211{ 10212char *p = (char *)strtoll; char *q = (char *)strtoull; 10213 ; 10214 return 0; 10215} 10216_ACEOF 10217rm -f conftest.$ac_objext 10218if { (ac_try="$ac_compile" 10219case "(($ac_try" in 10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10221 *) ac_try_echo=$ac_try;; 10222esac 10223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10224 (eval "$ac_compile") 2>conftest.er1 10225 ac_status=$? 10226 grep -v '^ *+' conftest.er1 >conftest.err 10227 rm -f conftest.er1 10228 cat conftest.err >&5 10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10230 (exit $ac_status); } && { 10231 test -z "$ac_c_werror_flag" || 10232 test ! -s conftest.err 10233 } && test -s conftest.$ac_objext; then 10234 tcl_cv_flag__isoc99_source=no 10235else 10236 echo "$as_me: failed program was:" >&5 10237sed 's/^/| /' conftest.$ac_ext >&5 10238 10239 cat >conftest.$ac_ext <<_ACEOF 10240/* confdefs.h. */ 10241_ACEOF 10242cat confdefs.h >>conftest.$ac_ext 10243cat >>conftest.$ac_ext <<_ACEOF 10244/* end confdefs.h. */ 10245#define _ISOC99_SOURCE 1 10246#include <stdlib.h> 10247int 10248main () 10249{ 10250char *p = (char *)strtoll; char *q = (char *)strtoull; 10251 ; 10252 return 0; 10253} 10254_ACEOF 10255rm -f conftest.$ac_objext 10256if { (ac_try="$ac_compile" 10257case "(($ac_try" in 10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10259 *) ac_try_echo=$ac_try;; 10260esac 10261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10262 (eval "$ac_compile") 2>conftest.er1 10263 ac_status=$? 10264 grep -v '^ *+' conftest.er1 >conftest.err 10265 rm -f conftest.er1 10266 cat conftest.err >&5 10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10268 (exit $ac_status); } && { 10269 test -z "$ac_c_werror_flag" || 10270 test ! -s conftest.err 10271 } && test -s conftest.$ac_objext; then 10272 tcl_cv_flag__isoc99_source=yes 10273else 10274 echo "$as_me: failed program was:" >&5 10275sed 's/^/| /' conftest.$ac_ext >&5 10276 10277 tcl_cv_flag__isoc99_source=no 10278fi 10279 10280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10281fi 10282 10283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10284fi 10285 10286 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 10287 10288cat >>confdefs.h <<\_ACEOF 10289#define _ISOC99_SOURCE 1 10290_ACEOF 10291 10292 tcl_flags="$tcl_flags _ISOC99_SOURCE" 10293 fi 10294 10295 10296 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 10297 echo $ECHO_N "(cached) $ECHO_C" >&6 10298else 10299 cat >conftest.$ac_ext <<_ACEOF 10300/* confdefs.h. */ 10301_ACEOF 10302cat confdefs.h >>conftest.$ac_ext 10303cat >>conftest.$ac_ext <<_ACEOF 10304/* end confdefs.h. */ 10305#include <sys/stat.h> 10306int 10307main () 10308{ 10309struct stat64 buf; int i = stat64("/", &buf); 10310 ; 10311 return 0; 10312} 10313_ACEOF 10314rm -f conftest.$ac_objext 10315if { (ac_try="$ac_compile" 10316case "(($ac_try" in 10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10318 *) ac_try_echo=$ac_try;; 10319esac 10320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10321 (eval "$ac_compile") 2>conftest.er1 10322 ac_status=$? 10323 grep -v '^ *+' conftest.er1 >conftest.err 10324 rm -f conftest.er1 10325 cat conftest.err >&5 10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10327 (exit $ac_status); } && { 10328 test -z "$ac_c_werror_flag" || 10329 test ! -s conftest.err 10330 } && test -s conftest.$ac_objext; then 10331 tcl_cv_flag__largefile64_source=no 10332else 10333 echo "$as_me: failed program was:" >&5 10334sed 's/^/| /' conftest.$ac_ext >&5 10335 10336 cat >conftest.$ac_ext <<_ACEOF 10337/* confdefs.h. */ 10338_ACEOF 10339cat confdefs.h >>conftest.$ac_ext 10340cat >>conftest.$ac_ext <<_ACEOF 10341/* end confdefs.h. */ 10342#define _LARGEFILE64_SOURCE 1 10343#include <sys/stat.h> 10344int 10345main () 10346{ 10347struct stat64 buf; int i = stat64("/", &buf); 10348 ; 10349 return 0; 10350} 10351_ACEOF 10352rm -f conftest.$ac_objext 10353if { (ac_try="$ac_compile" 10354case "(($ac_try" in 10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10356 *) ac_try_echo=$ac_try;; 10357esac 10358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10359 (eval "$ac_compile") 2>conftest.er1 10360 ac_status=$? 10361 grep -v '^ *+' conftest.er1 >conftest.err 10362 rm -f conftest.er1 10363 cat conftest.err >&5 10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10365 (exit $ac_status); } && { 10366 test -z "$ac_c_werror_flag" || 10367 test ! -s conftest.err 10368 } && test -s conftest.$ac_objext; then 10369 tcl_cv_flag__largefile64_source=yes 10370else 10371 echo "$as_me: failed program was:" >&5 10372sed 's/^/| /' conftest.$ac_ext >&5 10373 10374 tcl_cv_flag__largefile64_source=no 10375fi 10376 10377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10378fi 10379 10380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10381fi 10382 10383 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 10384 10385cat >>confdefs.h <<\_ACEOF 10386#define _LARGEFILE64_SOURCE 1 10387_ACEOF 10388 10389 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 10390 fi 10391 10392 10393 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 10394 echo $ECHO_N "(cached) $ECHO_C" >&6 10395else 10396 cat >conftest.$ac_ext <<_ACEOF 10397/* confdefs.h. */ 10398_ACEOF 10399cat confdefs.h >>conftest.$ac_ext 10400cat >>conftest.$ac_ext <<_ACEOF 10401/* end confdefs.h. */ 10402#include <sys/stat.h> 10403int 10404main () 10405{ 10406char *p = (char *)open64; 10407 ; 10408 return 0; 10409} 10410_ACEOF 10411rm -f conftest.$ac_objext 10412if { (ac_try="$ac_compile" 10413case "(($ac_try" in 10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10415 *) ac_try_echo=$ac_try;; 10416esac 10417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10418 (eval "$ac_compile") 2>conftest.er1 10419 ac_status=$? 10420 grep -v '^ *+' conftest.er1 >conftest.err 10421 rm -f conftest.er1 10422 cat conftest.err >&5 10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10424 (exit $ac_status); } && { 10425 test -z "$ac_c_werror_flag" || 10426 test ! -s conftest.err 10427 } && test -s conftest.$ac_objext; then 10428 tcl_cv_flag__largefile_source64=no 10429else 10430 echo "$as_me: failed program was:" >&5 10431sed 's/^/| /' conftest.$ac_ext >&5 10432 10433 cat >conftest.$ac_ext <<_ACEOF 10434/* confdefs.h. */ 10435_ACEOF 10436cat confdefs.h >>conftest.$ac_ext 10437cat >>conftest.$ac_ext <<_ACEOF 10438/* end confdefs.h. */ 10439#define _LARGEFILE_SOURCE64 1 10440#include <sys/stat.h> 10441int 10442main () 10443{ 10444char *p = (char *)open64; 10445 ; 10446 return 0; 10447} 10448_ACEOF 10449rm -f conftest.$ac_objext 10450if { (ac_try="$ac_compile" 10451case "(($ac_try" in 10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10453 *) ac_try_echo=$ac_try;; 10454esac 10455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10456 (eval "$ac_compile") 2>conftest.er1 10457 ac_status=$? 10458 grep -v '^ *+' conftest.er1 >conftest.err 10459 rm -f conftest.er1 10460 cat conftest.err >&5 10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10462 (exit $ac_status); } && { 10463 test -z "$ac_c_werror_flag" || 10464 test ! -s conftest.err 10465 } && test -s conftest.$ac_objext; then 10466 tcl_cv_flag__largefile_source64=yes 10467else 10468 echo "$as_me: failed program was:" >&5 10469sed 's/^/| /' conftest.$ac_ext >&5 10470 10471 tcl_cv_flag__largefile_source64=no 10472fi 10473 10474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10475fi 10476 10477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10478fi 10479 10480 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 10481 10482cat >>confdefs.h <<\_ACEOF 10483#define _LARGEFILE_SOURCE64 1 10484_ACEOF 10485 10486 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 10487 fi 10488 10489 if test "x${tcl_flags}" = "x" ; then 10490 { echo "$as_me:$LINENO: result: none" >&5 10491echo "${ECHO_T}none" >&6; } 10492 else 10493 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 10494echo "${ECHO_T}${tcl_flags}" >&6; } 10495 fi 10496 10497 10498 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 10499echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 10500 if test "${tcl_cv_type_64bit+set}" = set; then 10501 echo $ECHO_N "(cached) $ECHO_C" >&6 10502else 10503 10504 tcl_cv_type_64bit=none 10505 # See if the compiler knows natively about __int64 10506 cat >conftest.$ac_ext <<_ACEOF 10507/* confdefs.h. */ 10508_ACEOF 10509cat confdefs.h >>conftest.$ac_ext 10510cat >>conftest.$ac_ext <<_ACEOF 10511/* end confdefs.h. */ 10512 10513int 10514main () 10515{ 10516__int64 value = (__int64) 0; 10517 ; 10518 return 0; 10519} 10520_ACEOF 10521rm -f conftest.$ac_objext 10522if { (ac_try="$ac_compile" 10523case "(($ac_try" in 10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10525 *) ac_try_echo=$ac_try;; 10526esac 10527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10528 (eval "$ac_compile") 2>conftest.er1 10529 ac_status=$? 10530 grep -v '^ *+' conftest.er1 >conftest.err 10531 rm -f conftest.er1 10532 cat conftest.err >&5 10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10534 (exit $ac_status); } && { 10535 test -z "$ac_c_werror_flag" || 10536 test ! -s conftest.err 10537 } && test -s conftest.$ac_objext; then 10538 tcl_type_64bit=__int64 10539else 10540 echo "$as_me: failed program was:" >&5 10541sed 's/^/| /' conftest.$ac_ext >&5 10542 10543 tcl_type_64bit="long long" 10544fi 10545 10546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10547 # See if we should use long anyway Note that we substitute in the 10548 # type that is our current guess for a 64-bit type inside this check 10549 # program, so it should be modified only carefully... 10550 cat >conftest.$ac_ext <<_ACEOF 10551/* confdefs.h. */ 10552_ACEOF 10553cat confdefs.h >>conftest.$ac_ext 10554cat >>conftest.$ac_ext <<_ACEOF 10555/* end confdefs.h. */ 10556 10557int 10558main () 10559{ 10560switch (0) { 10561 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 10562 } 10563 ; 10564 return 0; 10565} 10566_ACEOF 10567rm -f conftest.$ac_objext 10568if { (ac_try="$ac_compile" 10569case "(($ac_try" in 10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10571 *) ac_try_echo=$ac_try;; 10572esac 10573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10574 (eval "$ac_compile") 2>conftest.er1 10575 ac_status=$? 10576 grep -v '^ *+' conftest.er1 >conftest.err 10577 rm -f conftest.er1 10578 cat conftest.err >&5 10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10580 (exit $ac_status); } && { 10581 test -z "$ac_c_werror_flag" || 10582 test ! -s conftest.err 10583 } && test -s conftest.$ac_objext; then 10584 tcl_cv_type_64bit=${tcl_type_64bit} 10585else 10586 echo "$as_me: failed program was:" >&5 10587sed 's/^/| /' conftest.$ac_ext >&5 10588 10589 10590fi 10591 10592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10593fi 10594 10595 if test "${tcl_cv_type_64bit}" = none ; then 10596 10597cat >>confdefs.h <<\_ACEOF 10598#define TCL_WIDE_INT_IS_LONG 1 10599_ACEOF 10600 10601 { echo "$as_me:$LINENO: result: using long" >&5 10602echo "${ECHO_T}using long" >&6; } 10603 elif test "${tcl_cv_type_64bit}" = "__int64" \ 10604 -a "${TEA_PLATFORM}" = "windows" ; then 10605 # TEA specific: We actually want to use the default tcl.h checks in 10606 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 10607 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 10608echo "${ECHO_T}using Tcl header defaults" >&6; } 10609 else 10610 10611cat >>confdefs.h <<_ACEOF 10612#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 10613_ACEOF 10614 10615 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 10616echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 10617 10618 # Now check for auxiliary declarations 10619 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 10620echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 10621if test "${tcl_cv_struct_dirent64+set}" = set; then 10622 echo $ECHO_N "(cached) $ECHO_C" >&6 10623else 10624 10625 cat >conftest.$ac_ext <<_ACEOF 10626/* confdefs.h. */ 10627_ACEOF 10628cat confdefs.h >>conftest.$ac_ext 10629cat >>conftest.$ac_ext <<_ACEOF 10630/* end confdefs.h. */ 10631#include <sys/types.h> 10632#include <sys/dirent.h> 10633int 10634main () 10635{ 10636struct dirent64 p; 10637 ; 10638 return 0; 10639} 10640_ACEOF 10641rm -f conftest.$ac_objext 10642if { (ac_try="$ac_compile" 10643case "(($ac_try" in 10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10645 *) ac_try_echo=$ac_try;; 10646esac 10647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10648 (eval "$ac_compile") 2>conftest.er1 10649 ac_status=$? 10650 grep -v '^ *+' conftest.er1 >conftest.err 10651 rm -f conftest.er1 10652 cat conftest.err >&5 10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10654 (exit $ac_status); } && { 10655 test -z "$ac_c_werror_flag" || 10656 test ! -s conftest.err 10657 } && test -s conftest.$ac_objext; then 10658 tcl_cv_struct_dirent64=yes 10659else 10660 echo "$as_me: failed program was:" >&5 10661sed 's/^/| /' conftest.$ac_ext >&5 10662 10663 tcl_cv_struct_dirent64=no 10664fi 10665 10666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10667fi 10668{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10669echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 10670 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10671 10672cat >>confdefs.h <<\_ACEOF 10673#define HAVE_STRUCT_DIRENT64 1 10674_ACEOF 10675 10676 fi 10677 10678 { echo "$as_me:$LINENO: checking for struct stat64" >&5 10679echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 10680if test "${tcl_cv_struct_stat64+set}" = set; then 10681 echo $ECHO_N "(cached) $ECHO_C" >&6 10682else 10683 10684 cat >conftest.$ac_ext <<_ACEOF 10685/* confdefs.h. */ 10686_ACEOF 10687cat confdefs.h >>conftest.$ac_ext 10688cat >>conftest.$ac_ext <<_ACEOF 10689/* end confdefs.h. */ 10690#include <sys/stat.h> 10691int 10692main () 10693{ 10694struct stat64 p; 10695 10696 ; 10697 return 0; 10698} 10699_ACEOF 10700rm -f conftest.$ac_objext 10701if { (ac_try="$ac_compile" 10702case "(($ac_try" in 10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10704 *) ac_try_echo=$ac_try;; 10705esac 10706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10707 (eval "$ac_compile") 2>conftest.er1 10708 ac_status=$? 10709 grep -v '^ *+' conftest.er1 >conftest.err 10710 rm -f conftest.er1 10711 cat conftest.err >&5 10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10713 (exit $ac_status); } && { 10714 test -z "$ac_c_werror_flag" || 10715 test ! -s conftest.err 10716 } && test -s conftest.$ac_objext; then 10717 tcl_cv_struct_stat64=yes 10718else 10719 echo "$as_me: failed program was:" >&5 10720sed 's/^/| /' conftest.$ac_ext >&5 10721 10722 tcl_cv_struct_stat64=no 10723fi 10724 10725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10726fi 10727{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10728echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10729 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10730 10731cat >>confdefs.h <<\_ACEOF 10732#define HAVE_STRUCT_STAT64 1 10733_ACEOF 10734 10735 fi 10736 10737 10738 10739for ac_func in open64 lseek64 10740do 10741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10742{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10744if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10745 echo $ECHO_N "(cached) $ECHO_C" >&6 10746else 10747 cat >conftest.$ac_ext <<_ACEOF 10748/* confdefs.h. */ 10749_ACEOF 10750cat confdefs.h >>conftest.$ac_ext 10751cat >>conftest.$ac_ext <<_ACEOF 10752/* end confdefs.h. */ 10753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10754 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10755#define $ac_func innocuous_$ac_func 10756 10757/* System header to define __stub macros and hopefully few prototypes, 10758 which can conflict with char $ac_func (); below. 10759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10760 <limits.h> exists even on freestanding compilers. */ 10761 10762#ifdef __STDC__ 10763# include <limits.h> 10764#else 10765# include <assert.h> 10766#endif 10767 10768#undef $ac_func 10769 10770/* Override any GCC internal prototype to avoid an error. 10771 Use char because int might match the return type of a GCC 10772 builtin and then its argument prototype would still apply. */ 10773#ifdef __cplusplus 10774extern "C" 10775#endif 10776char $ac_func (); 10777/* The GNU C library defines this for functions which it implements 10778 to always fail with ENOSYS. Some functions are actually named 10779 something starting with __ and the normal name is an alias. */ 10780#if defined __stub_$ac_func || defined __stub___$ac_func 10781choke me 10782#endif 10783 10784int 10785main () 10786{ 10787return $ac_func (); 10788 ; 10789 return 0; 10790} 10791_ACEOF 10792rm -f conftest.$ac_objext conftest$ac_exeext 10793if { (ac_try="$ac_link" 10794case "(($ac_try" in 10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10796 *) ac_try_echo=$ac_try;; 10797esac 10798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10799 (eval "$ac_link") 2>conftest.er1 10800 ac_status=$? 10801 grep -v '^ *+' conftest.er1 >conftest.err 10802 rm -f conftest.er1 10803 cat conftest.err >&5 10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10805 (exit $ac_status); } && { 10806 test -z "$ac_c_werror_flag" || 10807 test ! -s conftest.err 10808 } && test -s conftest$ac_exeext && 10809 $as_test_x conftest$ac_exeext; then 10810 eval "$as_ac_var=yes" 10811else 10812 echo "$as_me: failed program was:" >&5 10813sed 's/^/| /' conftest.$ac_ext >&5 10814 10815 eval "$as_ac_var=no" 10816fi 10817 10818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10819 conftest$ac_exeext conftest.$ac_ext 10820fi 10821ac_res=`eval echo '${'$as_ac_var'}'` 10822 { echo "$as_me:$LINENO: result: $ac_res" >&5 10823echo "${ECHO_T}$ac_res" >&6; } 10824if test `eval echo '${'$as_ac_var'}'` = yes; then 10825 cat >>confdefs.h <<_ACEOF 10826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10827_ACEOF 10828 10829fi 10830done 10831 10832 { echo "$as_me:$LINENO: checking for off64_t" >&5 10833echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10834 if test "${tcl_cv_type_off64_t+set}" = set; then 10835 echo $ECHO_N "(cached) $ECHO_C" >&6 10836else 10837 10838 cat >conftest.$ac_ext <<_ACEOF 10839/* confdefs.h. */ 10840_ACEOF 10841cat confdefs.h >>conftest.$ac_ext 10842cat >>conftest.$ac_ext <<_ACEOF 10843/* end confdefs.h. */ 10844#include <sys/types.h> 10845int 10846main () 10847{ 10848off64_t offset; 10849 10850 ; 10851 return 0; 10852} 10853_ACEOF 10854rm -f conftest.$ac_objext 10855if { (ac_try="$ac_compile" 10856case "(($ac_try" in 10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10858 *) ac_try_echo=$ac_try;; 10859esac 10860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10861 (eval "$ac_compile") 2>conftest.er1 10862 ac_status=$? 10863 grep -v '^ *+' conftest.er1 >conftest.err 10864 rm -f conftest.er1 10865 cat conftest.err >&5 10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10867 (exit $ac_status); } && { 10868 test -z "$ac_c_werror_flag" || 10869 test ! -s conftest.err 10870 } && test -s conftest.$ac_objext; then 10871 tcl_cv_type_off64_t=yes 10872else 10873 echo "$as_me: failed program was:" >&5 10874sed 's/^/| /' conftest.$ac_ext >&5 10875 10876 tcl_cv_type_off64_t=no 10877fi 10878 10879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10880fi 10881 10882 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10883 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10884 test "x${ac_cv_func_open64}" = "xyes" ; then 10885 10886cat >>confdefs.h <<\_ACEOF 10887#define HAVE_TYPE_OFF64_T 1 10888_ACEOF 10889 10890 { echo "$as_me:$LINENO: result: yes" >&5 10891echo "${ECHO_T}yes" >&6; } 10892 else 10893 { echo "$as_me:$LINENO: result: no" >&5 10894echo "${ECHO_T}no" >&6; } 10895 fi 10896 fi 10897 10898 10899 10900#-------------------------------------------------------------------- 10901# Set the default compiler switches based on the --enable-symbols 10902# option. 10903#-------------------------------------------------------------------- 10904 10905 10906 10907 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10908echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10909 # Check whether --enable-symbols was given. 10910if test "${enable_symbols+set}" = set; then 10911 enableval=$enable_symbols; tcl_ok=$enableval 10912else 10913 tcl_ok=no 10914fi 10915 10916 DBGX="" 10917 if test "$tcl_ok" = "no"; then 10918 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10919 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10920 { echo "$as_me:$LINENO: result: no" >&5 10921echo "${ECHO_T}no" >&6; } 10922 else 10923 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10924 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10925 if test "$tcl_ok" = "yes"; then 10926 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10927echo "${ECHO_T}yes (standard debugging)" >&6; } 10928 fi 10929 fi 10930 # TEA specific: 10931 if test "${TEA_PLATFORM}" != "windows" ; then 10932 LDFLAGS_DEFAULT="${LDFLAGS}" 10933 fi 10934 10935 10936 10937 10938 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10939 10940cat >>confdefs.h <<\_ACEOF 10941#define TCL_MEM_DEBUG 1 10942_ACEOF 10943 10944 fi 10945 10946 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10947 if test "$tcl_ok" = "all"; then 10948 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10949echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10950 else 10951 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10952echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10953 fi 10954 fi 10955 10956 10957#-------------------------------------------------------------------- 10958# Everyone should be linking against the Tcl stub library. If you 10959# can't for some reason, remove this definition. If you aren't using 10960# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10961# link against the non-stubbed Tcl library. 10962#-------------------------------------------------------------------- 10963 10964if test "${SHARED_BUILD}" = "1" ; then 10965 cat >>confdefs.h <<\_ACEOF 10966#define USE_TCL_STUBS 1 10967_ACEOF 10968 10969 cat >>confdefs.h <<\_ACEOF 10970#define USE_TK_STUBS 1 10971_ACEOF 10972 10973 cat >>confdefs.h <<\_ACEOF 10974#define USE_ITCL_STUBS 1 10975_ACEOF 10976 10977fi 10978 10979#-------------------------------------------------------------------- 10980# This macro generates a line to use when building a library. It 10981# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10982# and TEA_LOAD_TCLCONFIG macros above. 10983#-------------------------------------------------------------------- 10984 10985 10986 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10987 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10988 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10989 cat >conftest.$ac_ext <<_ACEOF 10990/* confdefs.h. */ 10991_ACEOF 10992cat confdefs.h >>conftest.$ac_ext 10993cat >>conftest.$ac_ext <<_ACEOF 10994/* end confdefs.h. */ 10995 10996#if defined(_MSC_VER) && _MSC_VER >= 1400 10997print("manifest needed") 10998#endif 10999 11000_ACEOF 11001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11002 $EGREP "manifest needed" >/dev/null 2>&1; then 11003 11004 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 11005 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 11006 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 11007 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 11008 11009 CLEANFILES="$CLEANFILES *.manifest" 11010 11011 11012fi 11013rm -f -r conftest* 11014 11015 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 11016 else 11017 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 11018 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 11019 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 11020 fi 11021 11022 if test "${SHARED_BUILD}" = "1" ; then 11023 MAKE_LIB="${MAKE_SHARED_LIB} " 11024 else 11025 MAKE_LIB="${MAKE_STATIC_LIB} " 11026 fi 11027 11028 #-------------------------------------------------------------------- 11029 # Shared libraries and static libraries have different names. 11030 # Use the double eval to make sure any variables in the suffix is 11031 # substituted. (@@@ Might not be necessary anymore) 11032 #-------------------------------------------------------------------- 11033 11034 if test "${TEA_PLATFORM}" = "windows" ; then 11035 if test "${SHARED_BUILD}" = "1" ; then 11036 # We force the unresolved linking of symbols that are really in 11037 # the private libraries of Tcl and Tk. 11038 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 11039 if test x"${TK_BIN_DIR}" != x ; then 11040 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 11041 fi 11042 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 11043 else 11044 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 11045 fi 11046 # Some packages build their own stubs libraries 11047 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 11048 if test "$GCC" = "yes"; then 11049 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 11050 fi 11051 # These aren't needed on Windows (either MSVC or gcc) 11052 RANLIB=: 11053 RANLIB_STUB=: 11054 else 11055 RANLIB_STUB="${RANLIB}" 11056 if test "${SHARED_BUILD}" = "1" ; then 11057 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 11058 if test x"${TK_BIN_DIR}" != x ; then 11059 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 11060 fi 11061 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 11062 RANLIB=: 11063 else 11064 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 11065 fi 11066 # Some packages build their own stubs libraries 11067 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 11068 fi 11069 11070 # These are escaped so that only CFLAGS is picked up at configure time. 11071 # The other values will be substituted at make time. 11072 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 11073 if test "${SHARED_BUILD}" = "1" ; then 11074 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 11075 fi 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086#-------------------------------------------------------------------- 11087# __CHANGE__ 11088# Change the name from exampeA_LIB_FILE to match your package name. 11089# Use the stub_LIB_FILE substitution if your package creates a stub 11090# library. 11091#-------------------------------------------------------------------- 11092 11093 11094 11095 11096#-------------------------------------------------------------------- 11097# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 11098# file during the install process. Don't run the TCLSH_PROG through 11099# ${CYGPATH} because it's being used directly by make. 11100# Require that we use a tclsh shell version 8.2 or later since earlier 11101# versions have bugs in the pkg_mkIndex routine. 11102#-------------------------------------------------------------------- 11103 11104 11105 { echo "$as_me:$LINENO: checking for tclsh" >&5 11106echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 11107 if test -f "${TCL_BIN_DIR}/Makefile" ; then 11108 # tclConfig.sh is in Tcl build directory 11109 if test "${TEA_PLATFORM}" = "windows"; then 11110 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 11111 else 11112 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 11113 fi 11114 else 11115 # tclConfig.sh is in install location 11116 if test "${TEA_PLATFORM}" = "windows"; then 11117 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 11118 else 11119 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 11120 fi 11121 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 11122 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 11123 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 11124 for i in $list ; do 11125 if test -f "$i/${TCLSH_PROG}" ; then 11126 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 11127 break 11128 fi 11129 done 11130 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 11131 fi 11132 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 11133echo "${ECHO_T}${TCLSH_PROG}" >&6; } 11134 11135 11136 11137 { echo "$as_me:$LINENO: checking for wish" >&5 11138echo $ECHO_N "checking for wish... $ECHO_C" >&6; } 11139 if test -f "${TK_BIN_DIR}/Makefile" ; then 11140 # tkConfig.sh is in Tk build directory 11141 if test "${TEA_PLATFORM}" = "windows"; then 11142 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 11143 else 11144 WISH_PROG="${TK_BIN_DIR}/wish" 11145 fi 11146 else 11147 # tkConfig.sh is in install location 11148 if test "${TEA_PLATFORM}" = "windows"; then 11149 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 11150 else 11151 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}" 11152 fi 11153 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \ 11154 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \ 11155 `ls -d ${TK_PREFIX}/bin 2>/dev/null`" 11156 for i in $list ; do 11157 if test -f "$i/${WISH_PROG}" ; then 11158 REAL_TK_BIN_DIR="`cd "$i"; pwd`/" 11159 break 11160 fi 11161 done 11162 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}" 11163 fi 11164 { echo "$as_me:$LINENO: result: ${WISH_PROG}" >&5 11165echo "${ECHO_T}${WISH_PROG}" >&6; } 11166 11167 11168 11169#-------------------------------------------------------------------- 11170# Finally, substitute all of the various values into the Makefile. 11171#-------------------------------------------------------------------- 11172 11173ac_config_files="$ac_config_files Makefile pkgIndex.tcl itkConfig.sh" 11174 11175cat >confcache <<\_ACEOF 11176# This file is a shell script that caches the results of configure 11177# tests run on this system so they can be shared between configure 11178# scripts and configure runs, see configure's option --config-cache. 11179# It is not useful on other systems. If it contains results you don't 11180# want to keep, you may remove or edit it. 11181# 11182# config.status only pays attention to the cache file if you give it 11183# the --recheck option to rerun configure. 11184# 11185# `ac_cv_env_foo' variables (set or unset) will be overridden when 11186# loading this file, other *unset* `ac_cv_foo' will be assigned the 11187# following values. 11188 11189_ACEOF 11190 11191# The following way of writing the cache mishandles newlines in values, 11192# but we know of no workaround that is simple, portable, and efficient. 11193# So, we kill variables containing newlines. 11194# Ultrix sh set writes to stderr and can't be redirected directly, 11195# and sets the high bit in the cache file unless we assign to the vars. 11196( 11197 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11198 eval ac_val=\$$ac_var 11199 case $ac_val in #( 11200 *${as_nl}*) 11201 case $ac_var in #( 11202 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 11203echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 11204 esac 11205 case $ac_var in #( 11206 _ | IFS | as_nl) ;; #( 11207 *) $as_unset $ac_var ;; 11208 esac ;; 11209 esac 11210 done 11211 11212 (set) 2>&1 | 11213 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11214 *${as_nl}ac_space=\ *) 11215 # `set' does not quote correctly, so add quotes (double-quote 11216 # substitution turns \\\\ into \\, and sed turns \\ into \). 11217 sed -n \ 11218 "s/'/'\\\\''/g; 11219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11220 ;; #( 11221 *) 11222 # `set' quotes correctly as required by POSIX, so do not add quotes. 11223 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11224 ;; 11225 esac | 11226 sort 11227) | 11228 sed ' 11229 /^ac_cv_env_/b end 11230 t clear 11231 :clear 11232 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11233 t end 11234 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11235 :end' >>confcache 11236if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11237 if test -w "$cache_file"; then 11238 test "x$cache_file" != "x/dev/null" && 11239 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 11240echo "$as_me: updating cache $cache_file" >&6;} 11241 cat confcache >$cache_file 11242 else 11243 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 11244echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11245 fi 11246fi 11247rm -f confcache 11248 11249test "x$prefix" = xNONE && prefix=$ac_default_prefix 11250# Let make expand exec_prefix. 11251test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11252 11253# Transform confdefs.h into DEFS. 11254# Protect against shell expansion while executing Makefile rules. 11255# Protect against Makefile macro expansion. 11256# 11257# If the first sed substitution is executed (which looks for macros that 11258# take arguments), then branch to the quote section. Otherwise, 11259# look for a macro that doesn't take arguments. 11260ac_script=' 11261t clear 11262:clear 11263s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11264t quote 11265s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11266t quote 11267b any 11268:quote 11269s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11270s/\[/\\&/g 11271s/\]/\\&/g 11272s/\$/$$/g 11273H 11274:any 11275${ 11276 g 11277 s/^\n// 11278 s/\n/ /g 11279 p 11280} 11281' 11282DEFS=`sed -n "$ac_script" confdefs.h` 11283 11284 11285ac_libobjs= 11286ac_ltlibobjs= 11287for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11288 # 1. Remove the extension, and $U if already installed. 11289 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11290 ac_i=`echo "$ac_i" | sed "$ac_script"` 11291 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11292 # will be set to the directory where LIBOBJS objects are built. 11293 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11294 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 11295done 11296LIBOBJS=$ac_libobjs 11297 11298LTLIBOBJS=$ac_ltlibobjs 11299 11300 11301CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 11302 11303: ${CONFIG_STATUS=./config.status} 11304ac_clean_files_save=$ac_clean_files 11305ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11306{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11307echo "$as_me: creating $CONFIG_STATUS" >&6;} 11308cat >$CONFIG_STATUS <<_ACEOF 11309#! $SHELL 11310# Generated by $as_me. 11311# Run this file to recreate the current configuration. 11312# Compiler output produced by configure, useful for debugging 11313# configure, is in config.log if it exists. 11314 11315debug=false 11316ac_cs_recheck=false 11317ac_cs_silent=false 11318SHELL=\${CONFIG_SHELL-$SHELL} 11319_ACEOF 11320 11321cat >>$CONFIG_STATUS <<\_ACEOF 11322## --------------------- ## 11323## M4sh Initialization. ## 11324## --------------------- ## 11325 11326# Be more Bourne compatible 11327DUALCASE=1; export DUALCASE # for MKS sh 11328if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11329 emulate sh 11330 NULLCMD=: 11331 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11332 # is contrary to our usage. Disable this feature. 11333 alias -g '${1+"$@"}'='"$@"' 11334 setopt NO_GLOB_SUBST 11335else 11336 case `(set -o) 2>/dev/null` in 11337 *posix*) set -o posix ;; 11338esac 11339 11340fi 11341 11342 11343 11344 11345# PATH needs CR 11346# Avoid depending upon Character Ranges. 11347as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11348as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11349as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11350as_cr_digits='0123456789' 11351as_cr_alnum=$as_cr_Letters$as_cr_digits 11352 11353# The user is always right. 11354if test "${PATH_SEPARATOR+set}" != set; then 11355 echo "#! /bin/sh" >conf$$.sh 11356 echo "exit 0" >>conf$$.sh 11357 chmod +x conf$$.sh 11358 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11359 PATH_SEPARATOR=';' 11360 else 11361 PATH_SEPARATOR=: 11362 fi 11363 rm -f conf$$.sh 11364fi 11365 11366# Support unset when possible. 11367if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11368 as_unset=unset 11369else 11370 as_unset=false 11371fi 11372 11373 11374# IFS 11375# We need space, tab and new line, in precisely that order. Quoting is 11376# there to prevent editors from complaining about space-tab. 11377# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11378# splitting by setting IFS to empty value.) 11379as_nl=' 11380' 11381IFS=" "" $as_nl" 11382 11383# Find who we are. Look in the path if we contain no directory separator. 11384case $0 in 11385 *[\\/]* ) as_myself=$0 ;; 11386 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11387for as_dir in $PATH 11388do 11389 IFS=$as_save_IFS 11390 test -z "$as_dir" && as_dir=. 11391 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11392done 11393IFS=$as_save_IFS 11394 11395 ;; 11396esac 11397# We did not find ourselves, most probably we were run as `sh COMMAND' 11398# in which case we are not to be found in the path. 11399if test "x$as_myself" = x; then 11400 as_myself=$0 11401fi 11402if test ! -f "$as_myself"; then 11403 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11404 { (exit 1); exit 1; } 11405fi 11406 11407# Work around bugs in pre-3.0 UWIN ksh. 11408for as_var in ENV MAIL MAILPATH 11409do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11410done 11411PS1='$ ' 11412PS2='> ' 11413PS4='+ ' 11414 11415# NLS nuisances. 11416for as_var in \ 11417 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11418 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11419 LC_TELEPHONE LC_TIME 11420do 11421 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11422 eval $as_var=C; export $as_var 11423 else 11424 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11425 fi 11426done 11427 11428# Required to use basename. 11429if expr a : '\(a\)' >/dev/null 2>&1 && 11430 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11431 as_expr=expr 11432else 11433 as_expr=false 11434fi 11435 11436if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11437 as_basename=basename 11438else 11439 as_basename=false 11440fi 11441 11442 11443# Name of the executable. 11444as_me=`$as_basename -- "$0" || 11445$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11446 X"$0" : 'X\(//\)$' \| \ 11447 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11448echo X/"$0" | 11449 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11450 s//\1/ 11451 q 11452 } 11453 /^X\/\(\/\/\)$/{ 11454 s//\1/ 11455 q 11456 } 11457 /^X\/\(\/\).*/{ 11458 s//\1/ 11459 q 11460 } 11461 s/.*/./; q'` 11462 11463# CDPATH. 11464$as_unset CDPATH 11465 11466 11467 11468 as_lineno_1=$LINENO 11469 as_lineno_2=$LINENO 11470 test "x$as_lineno_1" != "x$as_lineno_2" && 11471 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 11472 11473 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11474 # uniformly replaced by the line number. The first 'sed' inserts a 11475 # line-number line after each line using $LINENO; the second 'sed' 11476 # does the real work. The second script uses 'N' to pair each 11477 # line-number line with the line containing $LINENO, and appends 11478 # trailing '-' during substitution so that $LINENO is not a special 11479 # case at line end. 11480 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11481 # scripts with optimization help from Paolo Bonzini. Blame Lee 11482 # E. McMahon (1931-1989) for sed's syntax. :-) 11483 sed -n ' 11484 p 11485 /[$]LINENO/= 11486 ' <$as_myself | 11487 sed ' 11488 s/[$]LINENO.*/&-/ 11489 t lineno 11490 b 11491 :lineno 11492 N 11493 :loop 11494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 11495 t loop 11496 s/-\n.*// 11497 ' >$as_me.lineno && 11498 chmod +x "$as_me.lineno" || 11499 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 11500 { (exit 1); exit 1; }; } 11501 11502 # Don't try to exec as it changes $[0], causing all sort of problems 11503 # (the dirname of $[0] is not the place where we might find the 11504 # original and so on. Autoconf is especially sensitive to this). 11505 . "./$as_me.lineno" 11506 # Exit status is that of the last command. 11507 exit 11508} 11509 11510 11511if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11512 as_dirname=dirname 11513else 11514 as_dirname=false 11515fi 11516 11517ECHO_C= ECHO_N= ECHO_T= 11518case `echo -n x` in 11519-n*) 11520 case `echo 'x\c'` in 11521 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11522 *) ECHO_C='\c';; 11523 esac;; 11524*) 11525 ECHO_N='-n';; 11526esac 11527 11528if expr a : '\(a\)' >/dev/null 2>&1 && 11529 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11530 as_expr=expr 11531else 11532 as_expr=false 11533fi 11534 11535rm -f conf$$ conf$$.exe conf$$.file 11536if test -d conf$$.dir; then 11537 rm -f conf$$.dir/conf$$.file 11538else 11539 rm -f conf$$.dir 11540 mkdir conf$$.dir 11541fi 11542echo >conf$$.file 11543if ln -s conf$$.file conf$$ 2>/dev/null; then 11544 as_ln_s='ln -s' 11545 # ... but there are two gotchas: 11546 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11547 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11548 # In both cases, we have to default to `cp -p'. 11549 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11550 as_ln_s='cp -p' 11551elif ln conf$$.file conf$$ 2>/dev/null; then 11552 as_ln_s=ln 11553else 11554 as_ln_s='cp -p' 11555fi 11556rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11557rmdir conf$$.dir 2>/dev/null 11558 11559if mkdir -p . 2>/dev/null; then 11560 as_mkdir_p=: 11561else 11562 test -d ./-p && rmdir ./-p 11563 as_mkdir_p=false 11564fi 11565 11566if test -x / >/dev/null 2>&1; then 11567 as_test_x='test -x' 11568else 11569 if ls -dL / >/dev/null 2>&1; then 11570 as_ls_L_option=L 11571 else 11572 as_ls_L_option= 11573 fi 11574 as_test_x=' 11575 eval sh -c '\'' 11576 if test -d "$1"; then 11577 test -d "$1/."; 11578 else 11579 case $1 in 11580 -*)set "./$1";; 11581 esac; 11582 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 11583 ???[sx]*):;;*)false;;esac;fi 11584 '\'' sh 11585 ' 11586fi 11587as_executable_p=$as_test_x 11588 11589# Sed expression to map a string onto a valid CPP name. 11590as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11591 11592# Sed expression to map a string onto a valid variable name. 11593as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11594 11595 11596exec 6>&1 11597 11598# Save the log message, to keep $[0] and so on meaningful, and to 11599# report actual input values of CONFIG_FILES etc. instead of their 11600# values after options handling. 11601ac_log=" 11602This file was extended by itk $as_me 3.4, which was 11603generated by GNU Autoconf 2.61. Invocation command line was 11604 11605 CONFIG_FILES = $CONFIG_FILES 11606 CONFIG_HEADERS = $CONFIG_HEADERS 11607 CONFIG_LINKS = $CONFIG_LINKS 11608 CONFIG_COMMANDS = $CONFIG_COMMANDS 11609 $ $0 $@ 11610 11611on `(hostname || uname -n) 2>/dev/null | sed 1q` 11612" 11613 11614_ACEOF 11615 11616cat >>$CONFIG_STATUS <<_ACEOF 11617# Files that config.status was made for. 11618config_files="$ac_config_files" 11619 11620_ACEOF 11621 11622cat >>$CONFIG_STATUS <<\_ACEOF 11623ac_cs_usage="\ 11624\`$as_me' instantiates files from templates according to the 11625current configuration. 11626 11627Usage: $0 [OPTIONS] [FILE]... 11628 11629 -h, --help print this help, then exit 11630 -V, --version print version number and configuration settings, then exit 11631 -q, --quiet do not print progress messages 11632 -d, --debug don't remove temporary files 11633 --recheck update $as_me by reconfiguring in the same conditions 11634 --file=FILE[:TEMPLATE] 11635 instantiate the configuration file FILE 11636 11637Configuration files: 11638$config_files 11639 11640Report bugs to <bug-autoconf@gnu.org>." 11641 11642_ACEOF 11643cat >>$CONFIG_STATUS <<_ACEOF 11644ac_cs_version="\\ 11645itk config.status 3.4 11646configured by $0, generated by GNU Autoconf 2.61, 11647 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11648 11649Copyright (C) 2006 Free Software Foundation, Inc. 11650This config.status script is free software; the Free Software Foundation 11651gives unlimited permission to copy, distribute and modify it." 11652 11653ac_pwd='$ac_pwd' 11654srcdir='$srcdir' 11655INSTALL='$INSTALL' 11656_ACEOF 11657 11658cat >>$CONFIG_STATUS <<\_ACEOF 11659# If no file are specified by the user, then we need to provide default 11660# value. By we need to know if files were specified by the user. 11661ac_need_defaults=: 11662while test $# != 0 11663do 11664 case $1 in 11665 --*=*) 11666 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11667 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11668 ac_shift=: 11669 ;; 11670 *) 11671 ac_option=$1 11672 ac_optarg=$2 11673 ac_shift=shift 11674 ;; 11675 esac 11676 11677 case $ac_option in 11678 # Handling of the options. 11679 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11680 ac_cs_recheck=: ;; 11681 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11682 echo "$ac_cs_version"; exit ;; 11683 --debug | --debu | --deb | --de | --d | -d ) 11684 debug=: ;; 11685 --file | --fil | --fi | --f ) 11686 $ac_shift 11687 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11688 ac_need_defaults=false;; 11689 --he | --h | --help | --hel | -h ) 11690 echo "$ac_cs_usage"; exit ;; 11691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11692 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11693 ac_cs_silent=: ;; 11694 11695 # This is an error. 11696 -*) { echo "$as_me: error: unrecognized option: $1 11697Try \`$0 --help' for more information." >&2 11698 { (exit 1); exit 1; }; } ;; 11699 11700 *) ac_config_targets="$ac_config_targets $1" 11701 ac_need_defaults=false ;; 11702 11703 esac 11704 shift 11705done 11706 11707ac_configure_extra_args= 11708 11709if $ac_cs_silent; then 11710 exec 6>/dev/null 11711 ac_configure_extra_args="$ac_configure_extra_args --silent" 11712fi 11713 11714_ACEOF 11715cat >>$CONFIG_STATUS <<_ACEOF 11716if \$ac_cs_recheck; then 11717 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11718 CONFIG_SHELL=$SHELL 11719 export CONFIG_SHELL 11720 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11721fi 11722 11723_ACEOF 11724cat >>$CONFIG_STATUS <<\_ACEOF 11725exec 5>>config.log 11726{ 11727 echo 11728 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11729## Running $as_me. ## 11730_ASBOX 11731 echo "$ac_log" 11732} >&5 11733 11734_ACEOF 11735cat >>$CONFIG_STATUS <<_ACEOF 11736_ACEOF 11737 11738cat >>$CONFIG_STATUS <<\_ACEOF 11739 11740# Handling of arguments. 11741for ac_config_target in $ac_config_targets 11742do 11743 case $ac_config_target in 11744 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11745 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 11746 "itkConfig.sh") CONFIG_FILES="$CONFIG_FILES itkConfig.sh" ;; 11747 11748 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11749echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11750 { (exit 1); exit 1; }; };; 11751 esac 11752done 11753 11754 11755# If the user did not use the arguments to specify the items to instantiate, 11756# then the envvar interface is used. Set only those that are not. 11757# We use the long form for the default assignment because of an extremely 11758# bizarre bug on SunOS 4.1.3. 11759if $ac_need_defaults; then 11760 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11761fi 11762 11763# Have a temporary directory for convenience. Make it in the build tree 11764# simply because there is no reason against having it here, and in addition, 11765# creating and moving files from /tmp can sometimes cause problems. 11766# Hook for its removal unless debugging. 11767# Note that there is a small window in which the directory will not be cleaned: 11768# after its creation but before its name has been assigned to `$tmp'. 11769$debug || 11770{ 11771 tmp= 11772 trap 'exit_status=$? 11773 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 11774' 0 11775 trap '{ (exit 1); exit 1; }' 1 2 13 15 11776} 11777# Create a (secure) tmp directory for tmp files. 11778 11779{ 11780 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11781 test -n "$tmp" && test -d "$tmp" 11782} || 11783{ 11784 tmp=./conf$$-$RANDOM 11785 (umask 077 && mkdir "$tmp") 11786} || 11787{ 11788 echo "$me: cannot create a temporary directory in ." >&2 11789 { (exit 1); exit 1; } 11790} 11791 11792# 11793# Set up the sed scripts for CONFIG_FILES section. 11794# 11795 11796# No need to generate the scripts if there are no CONFIG_FILES. 11797# This happens for instance when ./config.status config.h 11798if test -n "$CONFIG_FILES"; then 11799 11800_ACEOF 11801 11802 11803 11804ac_delim='%!_!# ' 11805for ac_last_try in false false false false false :; do 11806 cat >conf$$subs.sed <<_ACEOF 11807SHELL!$SHELL$ac_delim 11808PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 11809PACKAGE_NAME!$PACKAGE_NAME$ac_delim 11810PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 11811PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 11812PACKAGE_STRING!$PACKAGE_STRING$ac_delim 11813PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 11814exec_prefix!$exec_prefix$ac_delim 11815prefix!$prefix$ac_delim 11816program_transform_name!$program_transform_name$ac_delim 11817bindir!$bindir$ac_delim 11818sbindir!$sbindir$ac_delim 11819libexecdir!$libexecdir$ac_delim 11820datarootdir!$datarootdir$ac_delim 11821datadir!$datadir$ac_delim 11822sysconfdir!$sysconfdir$ac_delim 11823sharedstatedir!$sharedstatedir$ac_delim 11824localstatedir!$localstatedir$ac_delim 11825includedir!$includedir$ac_delim 11826oldincludedir!$oldincludedir$ac_delim 11827docdir!$docdir$ac_delim 11828infodir!$infodir$ac_delim 11829htmldir!$htmldir$ac_delim 11830dvidir!$dvidir$ac_delim 11831pdfdir!$pdfdir$ac_delim 11832psdir!$psdir$ac_delim 11833libdir!$libdir$ac_delim 11834localedir!$localedir$ac_delim 11835mandir!$mandir$ac_delim 11836DEFS!$DEFS$ac_delim 11837ECHO_C!$ECHO_C$ac_delim 11838ECHO_N!$ECHO_N$ac_delim 11839ECHO_T!$ECHO_T$ac_delim 11840LIBS!$LIBS$ac_delim 11841build_alias!$build_alias$ac_delim 11842host_alias!$host_alias$ac_delim 11843target_alias!$target_alias$ac_delim 11844CYGPATH!$CYGPATH$ac_delim 11845EXEEXT!$EXEEXT$ac_delim 11846PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 11847PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 11848PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 11849PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 11850PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 11851PKG_HEADERS!$PKG_HEADERS$ac_delim 11852PKG_INCLUDES!$PKG_INCLUDES$ac_delim 11853PKG_LIBS!$PKG_LIBS$ac_delim 11854PKG_CFLAGS!$PKG_CFLAGS$ac_delim 11855LN_S!$LN_S$ac_delim 11856CONFIG_CLEAN_FILES!$CONFIG_CLEAN_FILES$ac_delim 11857TCL_VERSION!$TCL_VERSION$ac_delim 11858TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 11859TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 11860TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 11861TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 11862TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 11863TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 11864TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 11865TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 11866TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 11867CLEANFILES!$CLEANFILES$ac_delim 11868TCL_LIBS!$TCL_LIBS$ac_delim 11869TCL_DEFS!$TCL_DEFS$ac_delim 11870TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 11871TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 11872TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 11873TK_VERSION!$TK_VERSION$ac_delim 11874TK_BIN_DIR!$TK_BIN_DIR$ac_delim 11875TK_SRC_DIR!$TK_SRC_DIR$ac_delim 11876TK_LIB_FILE!$TK_LIB_FILE$ac_delim 11877TK_LIB_FLAG!$TK_LIB_FLAG$ac_delim 11878TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim 11879TK_STUB_LIB_FILE!$TK_STUB_LIB_FILE$ac_delim 11880TK_STUB_LIB_FLAG!$TK_STUB_LIB_FLAG$ac_delim 11881TK_STUB_LIB_SPEC!$TK_STUB_LIB_SPEC$ac_delim 11882TK_LIBS!$TK_LIBS$ac_delim 11883TK_XINCLUDES!$TK_XINCLUDES$ac_delim 11884itcl_VERSION!$itcl_VERSION$ac_delim 11885itcl_BIN_DIR!$itcl_BIN_DIR$ac_delim 11886itcl_SRC_DIR!$itcl_SRC_DIR$ac_delim 11887itcl_LIB_FILE!$itcl_LIB_FILE$ac_delim 11888itcl_LIB_SPEC!$itcl_LIB_SPEC$ac_delim 11889itcl_STUB_LIB_FILE!$itcl_STUB_LIB_FILE$ac_delim 11890itcl_STUB_LIB_SPEC!$itcl_STUB_LIB_SPEC$ac_delim 11891itcl_STUB_LIB_PATH!$itcl_STUB_LIB_PATH$ac_delim 11892CC!$CC$ac_delim 11893CFLAGS!$CFLAGS$ac_delim 11894LDFLAGS!$LDFLAGS$ac_delim 11895CPPFLAGS!$CPPFLAGS$ac_delim 11896ac_ct_CC!$ac_ct_CC$ac_delim 11897OBJEXT!$OBJEXT$ac_delim 11898CPP!$CPP$ac_delim 11899INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 11900INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 11901INSTALL_DATA!$INSTALL_DATA$ac_delim 11902SET_MAKE!$SET_MAKE$ac_delim 11903RANLIB!$RANLIB$ac_delim 11904_ACEOF 11905 11906 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 11907 break 11908 elif $ac_last_try; then 11909 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11910echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11911 { (exit 1); exit 1; }; } 11912 else 11913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11914 fi 11915done 11916 11917ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11918if test -n "$ac_eof"; then 11919 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11920 ac_eof=`expr $ac_eof + 1` 11921fi 11922 11923cat >>$CONFIG_STATUS <<_ACEOF 11924cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11925/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11926_ACEOF 11927sed ' 11928s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11929s/^/s,@/; s/!/@,|#_!!_#|/ 11930:n 11931t n 11932s/'"$ac_delim"'$/,g/; t 11933s/$/\\/; p 11934N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11935' >>$CONFIG_STATUS <conf$$subs.sed 11936rm -f conf$$subs.sed 11937cat >>$CONFIG_STATUS <<_ACEOF 11938CEOF$ac_eof 11939_ACEOF 11940 11941 11942ac_delim='%!_!# ' 11943for ac_last_try in false false false false false :; do 11944 cat >conf$$subs.sed <<_ACEOF 11945GREP!$GREP$ac_delim 11946EGREP!$EGREP$ac_delim 11947MATH_LIBS!$MATH_LIBS$ac_delim 11948PKG_SOURCES!$PKG_SOURCES$ac_delim 11949PKG_OBJECTS!$PKG_OBJECTS$ac_delim 11950TCL_INCLUDES!$TCL_INCLUDES$ac_delim 11951TCL_TOP_DIR_NATIVE!$TCL_TOP_DIR_NATIVE$ac_delim 11952TK_INCLUDES!$TK_INCLUDES$ac_delim 11953TK_TOP_DIR_NATIVE!$TK_TOP_DIR_NATIVE$ac_delim 11954TK_XLIB_DIR_NATIVE!$TK_XLIB_DIR_NATIVE$ac_delim 11955XMKMF!$XMKMF$ac_delim 11956SHARED_BUILD!$SHARED_BUILD$ac_delim 11957AR!$AR$ac_delim 11958CELIB_DIR!$CELIB_DIR$ac_delim 11959CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 11960CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 11961CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 11962STLIB_LD!$STLIB_LD$ac_delim 11963SHLIB_LD!$SHLIB_LD$ac_delim 11964SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 11965SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 11966LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 11967CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 11968LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 11969TCL_DBGX!$TCL_DBGX$ac_delim 11970MAKE_LIB!$MAKE_LIB$ac_delim 11971MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 11972MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 11973MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 11974RANLIB_STUB!$RANLIB_STUB$ac_delim 11975VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 11976VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 11977itkstub_LIB_FILE!$itkstub_LIB_FILE$ac_delim 11978itk_LIB_FILE!$itk_LIB_FILE$ac_delim 11979TCLSH_PROG!$TCLSH_PROG$ac_delim 11980WISH_PROG!$WISH_PROG$ac_delim 11981LIBOBJS!$LIBOBJS$ac_delim 11982LTLIBOBJS!$LTLIBOBJS$ac_delim 11983_ACEOF 11984 11985 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then 11986 break 11987 elif $ac_last_try; then 11988 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11989echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11990 { (exit 1); exit 1; }; } 11991 else 11992 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11993 fi 11994done 11995 11996ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11997if test -n "$ac_eof"; then 11998 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11999 ac_eof=`expr $ac_eof + 1` 12000fi 12001 12002cat >>$CONFIG_STATUS <<_ACEOF 12003cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 12004/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12005_ACEOF 12006sed ' 12007s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12008s/^/s,@/; s/!/@,|#_!!_#|/ 12009:n 12010t n 12011s/'"$ac_delim"'$/,g/; t 12012s/$/\\/; p 12013N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 12014' >>$CONFIG_STATUS <conf$$subs.sed 12015rm -f conf$$subs.sed 12016cat >>$CONFIG_STATUS <<_ACEOF 12017:end 12018s/|#_!!_#|//g 12019CEOF$ac_eof 12020_ACEOF 12021 12022 12023# VPATH may cause trouble with some makes, so we remove $(srcdir), 12024# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12025# trailing colons and then remove the whole line if VPATH becomes empty 12026# (actually we leave an empty line to preserve line numbers). 12027if test "x$srcdir" = x.; then 12028 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12029s/:*\$(srcdir):*/:/ 12030s/:*\${srcdir}:*/:/ 12031s/:*@srcdir@:*/:/ 12032s/^\([^=]*=[ ]*\):*/\1/ 12033s/:*$// 12034s/^[^=]*=[ ]*$// 12035}' 12036fi 12037 12038cat >>$CONFIG_STATUS <<\_ACEOF 12039fi # test -n "$CONFIG_FILES" 12040 12041 12042for ac_tag in :F $CONFIG_FILES 12043do 12044 case $ac_tag in 12045 :[FHLC]) ac_mode=$ac_tag; continue;; 12046 esac 12047 case $ac_mode$ac_tag in 12048 :[FHL]*:*);; 12049 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 12050echo "$as_me: error: Invalid tag $ac_tag." >&2;} 12051 { (exit 1); exit 1; }; };; 12052 :[FH]-) ac_tag=-:-;; 12053 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12054 esac 12055 ac_save_IFS=$IFS 12056 IFS=: 12057 set x $ac_tag 12058 IFS=$ac_save_IFS 12059 shift 12060 ac_file=$1 12061 shift 12062 12063 case $ac_mode in 12064 :L) ac_source=$1;; 12065 :[FH]) 12066 ac_file_inputs= 12067 for ac_f 12068 do 12069 case $ac_f in 12070 -) ac_f="$tmp/stdin";; 12071 *) # Look for the file first in the build tree, then in the source tree 12072 # (if the path is not absolute). The absolute path cannot be DOS-style, 12073 # because $ac_f cannot contain `:'. 12074 test -f "$ac_f" || 12075 case $ac_f in 12076 [\\/$]*) false;; 12077 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12078 esac || 12079 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 12080echo "$as_me: error: cannot find input file: $ac_f" >&2;} 12081 { (exit 1); exit 1; }; };; 12082 esac 12083 ac_file_inputs="$ac_file_inputs $ac_f" 12084 done 12085 12086 # Let's still pretend it is `configure' which instantiates (i.e., don't 12087 # use $as_me), people would be surprised to read: 12088 # /* config.h. Generated by config.status. */ 12089 configure_input="Generated from "`IFS=: 12090 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 12091 if test x"$ac_file" != x-; then 12092 configure_input="$ac_file. $configure_input" 12093 { echo "$as_me:$LINENO: creating $ac_file" >&5 12094echo "$as_me: creating $ac_file" >&6;} 12095 fi 12096 12097 case $ac_tag in 12098 *:-:* | *:-) cat >"$tmp/stdin";; 12099 esac 12100 ;; 12101 esac 12102 12103 ac_dir=`$as_dirname -- "$ac_file" || 12104$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12105 X"$ac_file" : 'X\(//\)[^/]' \| \ 12106 X"$ac_file" : 'X\(//\)$' \| \ 12107 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12108echo X"$ac_file" | 12109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12110 s//\1/ 12111 q 12112 } 12113 /^X\(\/\/\)[^/].*/{ 12114 s//\1/ 12115 q 12116 } 12117 /^X\(\/\/\)$/{ 12118 s//\1/ 12119 q 12120 } 12121 /^X\(\/\).*/{ 12122 s//\1/ 12123 q 12124 } 12125 s/.*/./; q'` 12126 { as_dir="$ac_dir" 12127 case $as_dir in #( 12128 -*) as_dir=./$as_dir;; 12129 esac 12130 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 12131 as_dirs= 12132 while :; do 12133 case $as_dir in #( 12134 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 12135 *) as_qdir=$as_dir;; 12136 esac 12137 as_dirs="'$as_qdir' $as_dirs" 12138 as_dir=`$as_dirname -- "$as_dir" || 12139$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12140 X"$as_dir" : 'X\(//\)[^/]' \| \ 12141 X"$as_dir" : 'X\(//\)$' \| \ 12142 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12143echo X"$as_dir" | 12144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12145 s//\1/ 12146 q 12147 } 12148 /^X\(\/\/\)[^/].*/{ 12149 s//\1/ 12150 q 12151 } 12152 /^X\(\/\/\)$/{ 12153 s//\1/ 12154 q 12155 } 12156 /^X\(\/\).*/{ 12157 s//\1/ 12158 q 12159 } 12160 s/.*/./; q'` 12161 test -d "$as_dir" && break 12162 done 12163 test -z "$as_dirs" || eval "mkdir $as_dirs" 12164 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 12165echo "$as_me: error: cannot create directory $as_dir" >&2;} 12166 { (exit 1); exit 1; }; }; } 12167 ac_builddir=. 12168 12169case "$ac_dir" in 12170.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12171*) 12172 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12173 # A ".." for each directory in $ac_dir_suffix. 12174 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 12175 case $ac_top_builddir_sub in 12176 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12177 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12178 esac ;; 12179esac 12180ac_abs_top_builddir=$ac_pwd 12181ac_abs_builddir=$ac_pwd$ac_dir_suffix 12182# for backward compatibility: 12183ac_top_builddir=$ac_top_build_prefix 12184 12185case $srcdir in 12186 .) # We are building in place. 12187 ac_srcdir=. 12188 ac_top_srcdir=$ac_top_builddir_sub 12189 ac_abs_top_srcdir=$ac_pwd ;; 12190 [\\/]* | ?:[\\/]* ) # Absolute name. 12191 ac_srcdir=$srcdir$ac_dir_suffix; 12192 ac_top_srcdir=$srcdir 12193 ac_abs_top_srcdir=$srcdir ;; 12194 *) # Relative name. 12195 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12196 ac_top_srcdir=$ac_top_build_prefix$srcdir 12197 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12198esac 12199ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12200 12201 12202 case $ac_mode in 12203 :F) 12204 # 12205 # CONFIG_FILE 12206 # 12207 12208 case $INSTALL in 12209 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12210 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12211 esac 12212_ACEOF 12213 12214cat >>$CONFIG_STATUS <<\_ACEOF 12215# If the template does not know about datarootdir, expand it. 12216# FIXME: This hack should be removed a few years after 2.60. 12217ac_datarootdir_hack=; ac_datarootdir_seen= 12218 12219case `sed -n '/datarootdir/ { 12220 p 12221 q 12222} 12223/@datadir@/p 12224/@docdir@/p 12225/@infodir@/p 12226/@localedir@/p 12227/@mandir@/p 12228' $ac_file_inputs` in 12229*datarootdir*) ac_datarootdir_seen=yes;; 12230*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12231 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12232echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12233_ACEOF 12234cat >>$CONFIG_STATUS <<_ACEOF 12235 ac_datarootdir_hack=' 12236 s&@datadir@&$datadir&g 12237 s&@docdir@&$docdir&g 12238 s&@infodir@&$infodir&g 12239 s&@localedir@&$localedir&g 12240 s&@mandir@&$mandir&g 12241 s&\\\${datarootdir}&$datarootdir&g' ;; 12242esac 12243_ACEOF 12244 12245# Neutralize VPATH when `$srcdir' = `.'. 12246# Shell code in configure.ac might set extrasub. 12247# FIXME: do we really want to maintain this feature? 12248cat >>$CONFIG_STATUS <<_ACEOF 12249 sed "$ac_vpsub 12250$extrasub 12251_ACEOF 12252cat >>$CONFIG_STATUS <<\_ACEOF 12253:t 12254/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12255s&@configure_input@&$configure_input&;t t 12256s&@top_builddir@&$ac_top_builddir_sub&;t t 12257s&@srcdir@&$ac_srcdir&;t t 12258s&@abs_srcdir@&$ac_abs_srcdir&;t t 12259s&@top_srcdir@&$ac_top_srcdir&;t t 12260s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12261s&@builddir@&$ac_builddir&;t t 12262s&@abs_builddir@&$ac_abs_builddir&;t t 12263s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12264s&@INSTALL@&$ac_INSTALL&;t t 12265$ac_datarootdir_hack 12266" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12267 12268test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12269 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12270 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12271 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12272which seems to be undefined. Please make sure it is defined." >&5 12273echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12274which seems to be undefined. Please make sure it is defined." >&2;} 12275 12276 rm -f "$tmp/stdin" 12277 case $ac_file in 12278 -) cat "$tmp/out"; rm -f "$tmp/out";; 12279 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 12280 esac 12281 ;; 12282 12283 12284 12285 esac 12286 12287done # for ac_tag 12288 12289 12290{ (exit 0); exit 0; } 12291_ACEOF 12292chmod +x $CONFIG_STATUS 12293ac_clean_files=$ac_clean_files_save 12294 12295 12296# configure is writing to config.log, and then calls config.status. 12297# config.status does its own redirection, appending to config.log. 12298# Unfortunately, on DOS this fails, as config.log is still kept open 12299# by configure, so config.status won't be able to write to it; its 12300# output is simply discarded. So we exec the FD to /dev/null, 12301# effectively closing config.log, so it can be properly (re)opened and 12302# appended to by config.status. When coming back to configure, we 12303# need to make the FD available again. 12304if test "$no_create" != yes; then 12305 ac_cs_success=: 12306 ac_config_status_args= 12307 test "$silent" = yes && 12308 ac_config_status_args="$ac_config_status_args --quiet" 12309 exec 5>/dev/null 12310 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12311 exec 5>>config.log 12312 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12313 # would make configure fail if this is the last instruction. 12314 $ac_cs_success || { (exit 1); exit 1; } 12315fi 12316 12317