1#! /bin/sh 2# From configure.in Id: configure.in 282 2010-07-06 13:48:46Z nijtmans . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61 for jpegtcl 8.2. 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be more Bourne compatible 15DUALCASE=1; export DUALCASE # for MKS sh 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23else 24 case `(set -o) 2>/dev/null` in 25 *posix*) set -o posix ;; 26esac 27 28fi 29 30 31 32 33# PATH needs CR 34# Avoid depending upon Character Ranges. 35as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38as_cr_digits='0123456789' 39as_cr_alnum=$as_cr_Letters$as_cr_digits 40 41# The user is always right. 42if test "${PATH_SEPARATOR+set}" != set; then 43 echo "#! /bin/sh" >conf$$.sh 44 echo "exit 0" >>conf$$.sh 45 chmod +x conf$$.sh 46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 47 PATH_SEPARATOR=';' 48 else 49 PATH_SEPARATOR=: 50 fi 51 rm -f conf$$.sh 52fi 53 54# Support unset when possible. 55if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 56 as_unset=unset 57else 58 as_unset=false 59fi 60 61 62# IFS 63# We need space, tab and new line, in precisely that order. Quoting is 64# there to prevent editors from complaining about space-tab. 65# (If _AS_PATH_WALK were called with IFS unset, it would disable word 66# splitting by setting IFS to empty value.) 67as_nl=' 68' 69IFS=" "" $as_nl" 70 71# Find who we are. Look in the path if we contain no directory separator. 72case $0 in 73 *[\\/]* ) as_myself=$0 ;; 74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 75for as_dir in $PATH 76do 77 IFS=$as_save_IFS 78 test -z "$as_dir" && as_dir=. 79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 80done 81IFS=$as_save_IFS 82 83 ;; 84esac 85# We did not find ourselves, most probably we were run as `sh COMMAND' 86# in which case we are not to be found in the path. 87if test "x$as_myself" = x; then 88 as_myself=$0 89fi 90if test ! -f "$as_myself"; then 91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 92 { (exit 1); exit 1; } 93fi 94 95# Work around bugs in pre-3.0 UWIN ksh. 96for as_var in ENV MAIL MAILPATH 97do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 98done 99PS1='$ ' 100PS2='> ' 101PS4='+ ' 102 103# NLS nuisances. 104for as_var in \ 105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 107 LC_TELEPHONE LC_TIME 108do 109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 110 eval $as_var=C; export $as_var 111 else 112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 113 fi 114done 115 116# Required to use basename. 117if expr a : '\(a\)' >/dev/null 2>&1 && 118 test "X`expr 00001 : '.*\(...\)'`" = X001; then 119 as_expr=expr 120else 121 as_expr=false 122fi 123 124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 125 as_basename=basename 126else 127 as_basename=false 128fi 129 130 131# Name of the executable. 132as_me=`$as_basename -- "$0" || 133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 134 X"$0" : 'X\(//\)$' \| \ 135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 136echo X/"$0" | 137 sed '/^.*\/\([^/][^/]*\)\/*$/{ 138 s//\1/ 139 q 140 } 141 /^X\/\(\/\/\)$/{ 142 s//\1/ 143 q 144 } 145 /^X\/\(\/\).*/{ 146 s//\1/ 147 q 148 } 149 s/.*/./; q'` 150 151# CDPATH. 152$as_unset CDPATH 153 154 155if test "x$CONFIG_SHELL" = x; then 156 if (eval ":") 2>/dev/null; then 157 as_have_required=yes 158else 159 as_have_required=no 160fi 161 162 if test $as_have_required = yes && (eval ": 163(as_func_return () { 164 (exit \$1) 165} 166as_func_success () { 167 as_func_return 0 168} 169as_func_failure () { 170 as_func_return 1 171} 172as_func_ret_success () { 173 return 0 174} 175as_func_ret_failure () { 176 return 1 177} 178 179exitcode=0 180if as_func_success; then 181 : 182else 183 exitcode=1 184 echo as_func_success failed. 185fi 186 187if as_func_failure; then 188 exitcode=1 189 echo as_func_failure succeeded. 190fi 191 192if as_func_ret_success; then 193 : 194else 195 exitcode=1 196 echo as_func_ret_success failed. 197fi 198 199if as_func_ret_failure; then 200 exitcode=1 201 echo as_func_ret_failure succeeded. 202fi 203 204if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 205 : 206else 207 exitcode=1 208 echo positional parameters were not saved. 209fi 210 211test \$exitcode = 0) || { (exit 1); exit 1; } 212 213( 214 as_lineno_1=\$LINENO 215 as_lineno_2=\$LINENO 216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 218") 2> /dev/null; then 219 : 220else 221 as_candidate_shells= 222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 223for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 224do 225 IFS=$as_save_IFS 226 test -z "$as_dir" && as_dir=. 227 case $as_dir in 228 /*) 229 for as_base in sh bash ksh sh5; do 230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 231 done;; 232 esac 233done 234IFS=$as_save_IFS 235 236 237 for as_shell in $as_candidate_shells $SHELL; do 238 # Try only shells that exist, to save several forks. 239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 240 { ("$as_shell") 2> /dev/null <<\_ASEOF 241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248else 249 case `(set -o) 2>/dev/null` in 250 *posix*) set -o posix ;; 251esac 252 253fi 254 255 256: 257_ASEOF 258}; then 259 CONFIG_SHELL=$as_shell 260 as_have_required=yes 261 if { "$as_shell" 2> /dev/null <<\_ASEOF 262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 263 emulate sh 264 NULLCMD=: 265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 266 # is contrary to our usage. Disable this feature. 267 alias -g '${1+"$@"}'='"$@"' 268 setopt NO_GLOB_SUBST 269else 270 case `(set -o) 2>/dev/null` in 271 *posix*) set -o posix ;; 272esac 273 274fi 275 276 277: 278(as_func_return () { 279 (exit $1) 280} 281as_func_success () { 282 as_func_return 0 283} 284as_func_failure () { 285 as_func_return 1 286} 287as_func_ret_success () { 288 return 0 289} 290as_func_ret_failure () { 291 return 1 292} 293 294exitcode=0 295if as_func_success; then 296 : 297else 298 exitcode=1 299 echo as_func_success failed. 300fi 301 302if as_func_failure; then 303 exitcode=1 304 echo as_func_failure succeeded. 305fi 306 307if as_func_ret_success; then 308 : 309else 310 exitcode=1 311 echo as_func_ret_success failed. 312fi 313 314if as_func_ret_failure; then 315 exitcode=1 316 echo as_func_ret_failure succeeded. 317fi 318 319if ( set x; as_func_ret_success y && test x = "$1" ); then 320 : 321else 322 exitcode=1 323 echo positional parameters were not saved. 324fi 325 326test $exitcode = 0) || { (exit 1); exit 1; } 327 328( 329 as_lineno_1=$LINENO 330 as_lineno_2=$LINENO 331 test "x$as_lineno_1" != "x$as_lineno_2" && 332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 333 334_ASEOF 335}; then 336 break 337fi 338 339fi 340 341 done 342 343 if test "x$CONFIG_SHELL" != x; then 344 for as_var in BASH_ENV ENV 345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 346 done 347 export CONFIG_SHELL 348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 349fi 350 351 352 if test $as_have_required = no; then 353 echo This script requires a shell more modern than all the 354 echo shells that I found on your system. Please install a 355 echo modern shell, or manually run the script under such a 356 echo shell if you do have one. 357 { (exit 1); exit 1; } 358fi 359 360 361fi 362 363fi 364 365 366 367(eval "as_func_return () { 368 (exit \$1) 369} 370as_func_success () { 371 as_func_return 0 372} 373as_func_failure () { 374 as_func_return 1 375} 376as_func_ret_success () { 377 return 0 378} 379as_func_ret_failure () { 380 return 1 381} 382 383exitcode=0 384if as_func_success; then 385 : 386else 387 exitcode=1 388 echo as_func_success failed. 389fi 390 391if as_func_failure; then 392 exitcode=1 393 echo as_func_failure succeeded. 394fi 395 396if as_func_ret_success; then 397 : 398else 399 exitcode=1 400 echo as_func_ret_success failed. 401fi 402 403if as_func_ret_failure; then 404 exitcode=1 405 echo as_func_ret_failure succeeded. 406fi 407 408if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 409 : 410else 411 exitcode=1 412 echo positional parameters were not saved. 413fi 414 415test \$exitcode = 0") || { 416 echo No shell found that supports shell functions. 417 echo Please tell autoconf@gnu.org about your system, 418 echo including any error possibly output before this 419 echo message 420} 421 422 423 424 as_lineno_1=$LINENO 425 as_lineno_2=$LINENO 426 test "x$as_lineno_1" != "x$as_lineno_2" && 427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 428 429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 430 # uniformly replaced by the line number. The first 'sed' inserts a 431 # line-number line after each line using $LINENO; the second 'sed' 432 # does the real work. The second script uses 'N' to pair each 433 # line-number line with the line containing $LINENO, and appends 434 # trailing '-' during substitution so that $LINENO is not a special 435 # case at line end. 436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 437 # scripts with optimization help from Paolo Bonzini. Blame Lee 438 # E. McMahon (1931-1989) for sed's syntax. :-) 439 sed -n ' 440 p 441 /[$]LINENO/= 442 ' <$as_myself | 443 sed ' 444 s/[$]LINENO.*/&-/ 445 t lineno 446 b 447 :lineno 448 N 449 :loop 450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 451 t loop 452 s/-\n.*// 453 ' >$as_me.lineno && 454 chmod +x "$as_me.lineno" || 455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 456 { (exit 1); exit 1; }; } 457 458 # Don't try to exec as it changes $[0], causing all sort of problems 459 # (the dirname of $[0] is not the place where we might find the 460 # original and so on. Autoconf is especially sensitive to this). 461 . "./$as_me.lineno" 462 # Exit status is that of the last command. 463 exit 464} 465 466 467if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 468 as_dirname=dirname 469else 470 as_dirname=false 471fi 472 473ECHO_C= ECHO_N= ECHO_T= 474case `echo -n x` in 475-n*) 476 case `echo 'x\c'` in 477 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 478 *) ECHO_C='\c';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484if expr a : '\(a\)' >/dev/null 2>&1 && 485 test "X`expr 00001 : '.*\(...\)'`" = X001; then 486 as_expr=expr 487else 488 as_expr=false 489fi 490 491rm -f conf$$ conf$$.exe conf$$.file 492if test -d conf$$.dir; then 493 rm -f conf$$.dir/conf$$.file 494else 495 rm -f conf$$.dir 496 mkdir conf$$.dir 497fi 498echo >conf$$.file 499if ln -s conf$$.file conf$$ 2>/dev/null; then 500 as_ln_s='ln -s' 501 # ... but there are two gotchas: 502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 504 # In both cases, we have to default to `cp -p'. 505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 506 as_ln_s='cp -p' 507elif ln conf$$.file conf$$ 2>/dev/null; then 508 as_ln_s=ln 509else 510 as_ln_s='cp -p' 511fi 512rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 513rmdir conf$$.dir 2>/dev/null 514 515if mkdir -p . 2>/dev/null; then 516 as_mkdir_p=: 517else 518 test -d ./-p && rmdir ./-p 519 as_mkdir_p=false 520fi 521 522if test -x / >/dev/null 2>&1; then 523 as_test_x='test -x' 524else 525 if ls -dL / >/dev/null 2>&1; then 526 as_ls_L_option=L 527 else 528 as_ls_L_option= 529 fi 530 as_test_x=' 531 eval sh -c '\'' 532 if test -d "$1"; then 533 test -d "$1/."; 534 else 535 case $1 in 536 -*)set "./$1";; 537 esac; 538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 539 ???[sx]*):;;*)false;;esac;fi 540 '\'' sh 541 ' 542fi 543as_executable_p=$as_test_x 544 545# Sed expression to map a string onto a valid CPP name. 546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 547 548# Sed expression to map a string onto a valid variable name. 549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 550 551 552 553exec 7<&0 </dev/null 6>&1 554 555# Name of the host. 556# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 557# so uname gets run too. 558ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 559 560# 561# Initializations. 562# 563ac_default_prefix=/usr/local 564ac_clean_files= 565ac_config_libobj_dir=. 566LIBOBJS= 567cross_compiling=no 568subdirs= 569MFLAGS= 570MAKEFLAGS= 571SHELL=${CONFIG_SHELL-/bin/sh} 572 573# Identity of this package. 574PACKAGE_NAME='jpegtcl' 575PACKAGE_TARNAME='jpegtcl' 576PACKAGE_VERSION='8.2' 577PACKAGE_STRING='jpegtcl 8.2' 578PACKAGE_BUGREPORT='' 579 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='SHELL 617PATH_SEPARATOR 618PACKAGE_NAME 619PACKAGE_TARNAME 620PACKAGE_VERSION 621PACKAGE_STRING 622PACKAGE_BUGREPORT 623exec_prefix 624prefix 625program_transform_name 626bindir 627sbindir 628libexecdir 629datarootdir 630datadir 631sysconfdir 632sharedstatedir 633localstatedir 634includedir 635oldincludedir 636docdir 637infodir 638htmldir 639dvidir 640pdfdir 641psdir 642libdir 643localedir 644mandir 645DEFS 646ECHO_C 647ECHO_N 648ECHO_T 649LIBS 650build_alias 651host_alias 652target_alias 653CYGPATH 654EXEEXT 655PKG_LIB_FILE 656PKG_STUB_LIB_FILE 657PKG_STUB_SOURCES 658PKG_STUB_OBJECTS 659PKG_TCL_SOURCES 660PKG_HEADERS 661PKG_INCLUDES 662PKG_LIBS 663PKG_CFLAGS 664TCL_VERSION 665TCL_PATCH_LEVEL 666TCL_BIN_DIR 667TCL_SRC_DIR 668TCL_LIB_FILE 669TCL_LIB_FLAG 670TCL_LIB_SPEC 671TCL_STUB_LIB_FILE 672TCL_STUB_LIB_FLAG 673TCL_STUB_LIB_SPEC 674CLEANFILES 675TCL_LIBS 676TCL_DEFS 677TCL_EXTRA_CFLAGS 678TCL_LD_FLAGS 679TCL_SHLIB_LD_LIBS 680CC 681CFLAGS 682LDFLAGS 683CPPFLAGS 684ac_ct_CC 685OBJEXT 686CPP 687INSTALL_PROGRAM 688INSTALL_SCRIPT 689INSTALL_DATA 690SET_MAKE 691RANLIB 692GREP 693EGREP 694MATH_LIBS 695PKG_SOURCES 696PKG_OBJECTS 697TCL_INCLUDES 698TCL_THREADS 699SHARED_BUILD 700AR 701CELIB_DIR 702CFLAGS_DEBUG 703CFLAGS_OPTIMIZE 704CFLAGS_WARNING 705STLIB_LD 706SHLIB_LD 707SHLIB_LD_LIBS 708SHLIB_CFLAGS 709LD_LIBRARY_PATH_VAR 710CFLAGS_DEFAULT 711LDFLAGS_DEFAULT 712TCL_DBGX 713MAKE_LIB 714MAKE_SHARED_LIB 715MAKE_STATIC_LIB 716MAKE_STUB_LIB 717RANLIB_STUB 718VC_MANIFEST_EMBED_DLL 719VC_MANIFEST_EMBED_EXE 720TCLSH_PROG 721jpegtcl_BUILD_LIB_SPEC 722jpegtcl_LIB_SPEC 723jpegtcl_BUILD_STUB_LIB_SPEC 724jpegtcl_STUB_LIB_SPEC 725jpegtcl_BUILD_STUB_LIB_PATH 726jpegtcl_STUB_LIB_PATH 727MAJOR_VERSION 728MINOR_VERSION 729PATCHLEVEL 730LIBOBJS 731LTLIBOBJS' 732ac_subst_files='' 733 ac_precious_vars='build_alias 734host_alias 735target_alias 736CC 737CFLAGS 738LDFLAGS 739LIBS 740CPPFLAGS 741CPP' 742 743 744# Initialize some variables set by options. 745ac_init_help= 746ac_init_version=false 747# The variables have the same names as the options, with 748# dashes changed to underlines. 749cache_file=/dev/null 750exec_prefix=NONE 751no_create= 752no_recursion= 753prefix=NONE 754program_prefix=NONE 755program_suffix=NONE 756program_transform_name=s,x,x, 757silent= 758site= 759srcdir= 760verbose= 761x_includes=NONE 762x_libraries=NONE 763 764# Installation directory options. 765# These are left unexpanded so users can "make install exec_prefix=/foo" 766# and all the variables that are supposed to be based on exec_prefix 767# by default will actually change. 768# Use braces instead of parens because sh, perl, etc. also accept them. 769# (The list follows the same order as the GNU Coding Standards.) 770bindir='${exec_prefix}/bin' 771sbindir='${exec_prefix}/sbin' 772libexecdir='${exec_prefix}/libexec' 773datarootdir='${prefix}/share' 774datadir='${datarootdir}' 775sysconfdir='${prefix}/etc' 776sharedstatedir='${prefix}/com' 777localstatedir='${prefix}/var' 778includedir='${prefix}/include' 779oldincludedir='/usr/include' 780docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 781infodir='${datarootdir}/info' 782htmldir='${docdir}' 783dvidir='${docdir}' 784pdfdir='${docdir}' 785psdir='${docdir}' 786libdir='${exec_prefix}/lib' 787localedir='${datarootdir}/locale' 788mandir='${datarootdir}/man' 789 790ac_prev= 791ac_dashdash= 792for ac_option 793do 794 # If the previous option needs an argument, assign it. 795 if test -n "$ac_prev"; then 796 eval $ac_prev=\$ac_option 797 ac_prev= 798 continue 799 fi 800 801 case $ac_option in 802 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 803 *) ac_optarg=yes ;; 804 esac 805 806 # Accept the important Cygnus configure options, so we can diagnose typos. 807 808 case $ac_dashdash$ac_option in 809 --) 810 ac_dashdash=yes ;; 811 812 -bindir | --bindir | --bindi | --bind | --bin | --bi) 813 ac_prev=bindir ;; 814 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 815 bindir=$ac_optarg ;; 816 817 -build | --build | --buil | --bui | --bu) 818 ac_prev=build_alias ;; 819 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 820 build_alias=$ac_optarg ;; 821 822 -cache-file | --cache-file | --cache-fil | --cache-fi \ 823 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 824 ac_prev=cache_file ;; 825 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 826 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 827 cache_file=$ac_optarg ;; 828 829 --config-cache | -C) 830 cache_file=config.cache ;; 831 832 -datadir | --datadir | --datadi | --datad) 833 ac_prev=datadir ;; 834 -datadir=* | --datadir=* | --datadi=* | --datad=*) 835 datadir=$ac_optarg ;; 836 837 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 838 | --dataroo | --dataro | --datar) 839 ac_prev=datarootdir ;; 840 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 841 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 842 datarootdir=$ac_optarg ;; 843 844 -disable-* | --disable-*) 845 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 846 # Reject names that are not valid shell variable names. 847 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 848 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 849 { (exit 1); exit 1; }; } 850 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 851 eval enable_$ac_feature=no ;; 852 853 -docdir | --docdir | --docdi | --doc | --do) 854 ac_prev=docdir ;; 855 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 856 docdir=$ac_optarg ;; 857 858 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 859 ac_prev=dvidir ;; 860 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 861 dvidir=$ac_optarg ;; 862 863 -enable-* | --enable-*) 864 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 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=\$ac_optarg ;; 871 872 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 873 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 874 | --exec | --exe | --ex) 875 ac_prev=exec_prefix ;; 876 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 877 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 878 | --exec=* | --exe=* | --ex=*) 879 exec_prefix=$ac_optarg ;; 880 881 -gas | --gas | --ga | --g) 882 # Obsolete; use --with-gas. 883 with_gas=yes ;; 884 885 -help | --help | --hel | --he | -h) 886 ac_init_help=long ;; 887 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 888 ac_init_help=recursive ;; 889 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 890 ac_init_help=short ;; 891 892 -host | --host | --hos | --ho) 893 ac_prev=host_alias ;; 894 -host=* | --host=* | --hos=* | --ho=*) 895 host_alias=$ac_optarg ;; 896 897 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 898 ac_prev=htmldir ;; 899 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 900 | --ht=*) 901 htmldir=$ac_optarg ;; 902 903 -includedir | --includedir | --includedi | --included | --include \ 904 | --includ | --inclu | --incl | --inc) 905 ac_prev=includedir ;; 906 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 907 | --includ=* | --inclu=* | --incl=* | --inc=*) 908 includedir=$ac_optarg ;; 909 910 -infodir | --infodir | --infodi | --infod | --info | --inf) 911 ac_prev=infodir ;; 912 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 913 infodir=$ac_optarg ;; 914 915 -libdir | --libdir | --libdi | --libd) 916 ac_prev=libdir ;; 917 -libdir=* | --libdir=* | --libdi=* | --libd=*) 918 libdir=$ac_optarg ;; 919 920 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 921 | --libexe | --libex | --libe) 922 ac_prev=libexecdir ;; 923 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 924 | --libexe=* | --libex=* | --libe=*) 925 libexecdir=$ac_optarg ;; 926 927 -localedir | --localedir | --localedi | --localed | --locale) 928 ac_prev=localedir ;; 929 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 930 localedir=$ac_optarg ;; 931 932 -localstatedir | --localstatedir | --localstatedi | --localstated \ 933 | --localstate | --localstat | --localsta | --localst | --locals) 934 ac_prev=localstatedir ;; 935 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 936 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 937 localstatedir=$ac_optarg ;; 938 939 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 940 ac_prev=mandir ;; 941 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 942 mandir=$ac_optarg ;; 943 944 -nfp | --nfp | --nf) 945 # Obsolete; use --without-fp. 946 with_fp=no ;; 947 948 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 949 | --no-cr | --no-c | -n) 950 no_create=yes ;; 951 952 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 953 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 954 no_recursion=yes ;; 955 956 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 957 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 958 | --oldin | --oldi | --old | --ol | --o) 959 ac_prev=oldincludedir ;; 960 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 961 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 962 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 963 oldincludedir=$ac_optarg ;; 964 965 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 966 ac_prev=prefix ;; 967 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 968 prefix=$ac_optarg ;; 969 970 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 971 | --program-pre | --program-pr | --program-p) 972 ac_prev=program_prefix ;; 973 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 974 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 975 program_prefix=$ac_optarg ;; 976 977 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 978 | --program-suf | --program-su | --program-s) 979 ac_prev=program_suffix ;; 980 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 981 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 982 program_suffix=$ac_optarg ;; 983 984 -program-transform-name | --program-transform-name \ 985 | --program-transform-nam | --program-transform-na \ 986 | --program-transform-n | --program-transform- \ 987 | --program-transform | --program-transfor \ 988 | --program-transfo | --program-transf \ 989 | --program-trans | --program-tran \ 990 | --progr-tra | --program-tr | --program-t) 991 ac_prev=program_transform_name ;; 992 -program-transform-name=* | --program-transform-name=* \ 993 | --program-transform-nam=* | --program-transform-na=* \ 994 | --program-transform-n=* | --program-transform-=* \ 995 | --program-transform=* | --program-transfor=* \ 996 | --program-transfo=* | --program-transf=* \ 997 | --program-trans=* | --program-tran=* \ 998 | --progr-tra=* | --program-tr=* | --program-t=*) 999 program_transform_name=$ac_optarg ;; 1000 1001 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1002 ac_prev=pdfdir ;; 1003 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1004 pdfdir=$ac_optarg ;; 1005 1006 -psdir | --psdir | --psdi | --psd | --ps) 1007 ac_prev=psdir ;; 1008 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1009 psdir=$ac_optarg ;; 1010 1011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1012 | -silent | --silent | --silen | --sile | --sil) 1013 silent=yes ;; 1014 1015 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1016 ac_prev=sbindir ;; 1017 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1018 | --sbi=* | --sb=*) 1019 sbindir=$ac_optarg ;; 1020 1021 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1022 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1023 | --sharedst | --shareds | --shared | --share | --shar \ 1024 | --sha | --sh) 1025 ac_prev=sharedstatedir ;; 1026 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1027 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1028 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1029 | --sha=* | --sh=*) 1030 sharedstatedir=$ac_optarg ;; 1031 1032 -site | --site | --sit) 1033 ac_prev=site ;; 1034 -site=* | --site=* | --sit=*) 1035 site=$ac_optarg ;; 1036 1037 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1038 ac_prev=srcdir ;; 1039 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1040 srcdir=$ac_optarg ;; 1041 1042 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1043 | --syscon | --sysco | --sysc | --sys | --sy) 1044 ac_prev=sysconfdir ;; 1045 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1046 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1047 sysconfdir=$ac_optarg ;; 1048 1049 -target | --target | --targe | --targ | --tar | --ta | --t) 1050 ac_prev=target_alias ;; 1051 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1052 target_alias=$ac_optarg ;; 1053 1054 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1055 verbose=yes ;; 1056 1057 -version | --version | --versio | --versi | --vers | -V) 1058 ac_init_version=: ;; 1059 1060 -with-* | --with-*) 1061 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1062 # Reject names that are not valid shell variable names. 1063 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1064 { echo "$as_me: error: invalid package name: $ac_package" >&2 1065 { (exit 1); exit 1; }; } 1066 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1067 eval with_$ac_package=\$ac_optarg ;; 1068 1069 -without-* | --without-*) 1070 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1071 # Reject names that are not valid shell variable names. 1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1073 { echo "$as_me: error: invalid package name: $ac_package" >&2 1074 { (exit 1); exit 1; }; } 1075 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1076 eval with_$ac_package=no ;; 1077 1078 --x) 1079 # Obsolete; use --with-x. 1080 with_x=yes ;; 1081 1082 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1083 | --x-incl | --x-inc | --x-in | --x-i) 1084 ac_prev=x_includes ;; 1085 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1086 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1087 x_includes=$ac_optarg ;; 1088 1089 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1090 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1091 ac_prev=x_libraries ;; 1092 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1093 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1094 x_libraries=$ac_optarg ;; 1095 1096 -*) { echo "$as_me: error: unrecognized option: $ac_option 1097Try \`$0 --help' for more information." >&2 1098 { (exit 1); exit 1; }; } 1099 ;; 1100 1101 *=*) 1102 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1103 # Reject names that are not valid shell variable names. 1104 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1105 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1106 { (exit 1); exit 1; }; } 1107 eval $ac_envvar=\$ac_optarg 1108 export $ac_envvar ;; 1109 1110 *) 1111 # FIXME: should be removed in autoconf 3.0. 1112 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1113 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1114 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1115 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1116 ;; 1117 1118 esac 1119done 1120 1121if test -n "$ac_prev"; then 1122 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1123 { echo "$as_me: error: missing argument to $ac_option" >&2 1124 { (exit 1); exit 1; }; } 1125fi 1126 1127# Be sure to have absolute directory names. 1128for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1129 datadir sysconfdir sharedstatedir localstatedir includedir \ 1130 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1131 libdir localedir mandir 1132do 1133 eval ac_val=\$$ac_var 1134 case $ac_val in 1135 [\\/$]* | ?:[\\/]* ) continue;; 1136 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1137 esac 1138 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1139 { (exit 1); exit 1; }; } 1140done 1141 1142# There might be people who depend on the old broken behavior: `$host' 1143# used to hold the argument of --host etc. 1144# FIXME: To remove some day. 1145build=$build_alias 1146host=$host_alias 1147target=$target_alias 1148 1149# FIXME: To remove some day. 1150if test "x$host_alias" != x; then 1151 if test "x$build_alias" = x; then 1152 cross_compiling=maybe 1153 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1154 If a cross compiler is detected then cross compile mode will be used." >&2 1155 elif test "x$build_alias" != "x$host_alias"; then 1156 cross_compiling=yes 1157 fi 1158fi 1159 1160ac_tool_prefix= 1161test -n "$host_alias" && ac_tool_prefix=$host_alias- 1162 1163test "$silent" = yes && exec 6>/dev/null 1164 1165 1166ac_pwd=`pwd` && test -n "$ac_pwd" && 1167ac_ls_di=`ls -di .` && 1168ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1169 { echo "$as_me: error: Working directory cannot be determined" >&2 1170 { (exit 1); exit 1; }; } 1171test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1172 { echo "$as_me: error: pwd does not report name of working directory" >&2 1173 { (exit 1); exit 1; }; } 1174 1175 1176# Find the source files, if location was not specified. 1177if test -z "$srcdir"; then 1178 ac_srcdir_defaulted=yes 1179 # Try the directory containing this script, then the parent directory. 1180 ac_confdir=`$as_dirname -- "$0" || 1181$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1182 X"$0" : 'X\(//\)[^/]' \| \ 1183 X"$0" : 'X\(//\)$' \| \ 1184 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1185echo X"$0" | 1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1187 s//\1/ 1188 q 1189 } 1190 /^X\(\/\/\)[^/].*/{ 1191 s//\1/ 1192 q 1193 } 1194 /^X\(\/\/\)$/{ 1195 s//\1/ 1196 q 1197 } 1198 /^X\(\/\).*/{ 1199 s//\1/ 1200 q 1201 } 1202 s/.*/./; q'` 1203 srcdir=$ac_confdir 1204 if test ! -r "$srcdir/$ac_unique_file"; then 1205 srcdir=.. 1206 fi 1207else 1208 ac_srcdir_defaulted=no 1209fi 1210if test ! -r "$srcdir/$ac_unique_file"; then 1211 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1212 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1213 { (exit 1); exit 1; }; } 1214fi 1215ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1216ac_abs_confdir=`( 1217 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1218 { (exit 1); exit 1; }; } 1219 pwd)` 1220# When building in place, set srcdir=. 1221if test "$ac_abs_confdir" = "$ac_pwd"; then 1222 srcdir=. 1223fi 1224# Remove unnecessary trailing slashes from srcdir. 1225# Double slashes in file names in object file debugging info 1226# mess up M-x gdb in Emacs. 1227case $srcdir in 1228*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1229esac 1230for ac_var in $ac_precious_vars; do 1231 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1232 eval ac_env_${ac_var}_value=\$${ac_var} 1233 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1234 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1235done 1236 1237# 1238# Report the --help message. 1239# 1240if test "$ac_init_help" = "long"; then 1241 # Omit some internal or obsolete options to make the list less imposing. 1242 # This message is too long to be a string in the A/UX 3.1 sh. 1243 cat <<_ACEOF 1244\`configure' configures jpegtcl 8.2 to adapt to many kinds of systems. 1245 1246Usage: $0 [OPTION]... [VAR=VALUE]... 1247 1248To assign environment variables (e.g., CC, CFLAGS...), specify them as 1249VAR=VALUE. See below for descriptions of some of the useful variables. 1250 1251Defaults for the options are specified in brackets. 1252 1253Configuration: 1254 -h, --help display this help and exit 1255 --help=short display options specific to this package 1256 --help=recursive display the short help of all the included packages 1257 -V, --version display version information and exit 1258 -q, --quiet, --silent do not print \`checking...' messages 1259 --cache-file=FILE cache test results in FILE [disabled] 1260 -C, --config-cache alias for \`--cache-file=config.cache' 1261 -n, --no-create do not create output files 1262 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1263 1264Installation directories: 1265 --prefix=PREFIX install architecture-independent files in PREFIX 1266 [$ac_default_prefix] 1267 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1268 [PREFIX] 1269 1270By default, \`make install' will install all the files in 1271\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1272an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1273for instance \`--prefix=\$HOME'. 1274 1275For better control, use the options below. 1276 1277Fine tuning of the installation directories: 1278 --bindir=DIR user executables [EPREFIX/bin] 1279 --sbindir=DIR system admin executables [EPREFIX/sbin] 1280 --libexecdir=DIR program executables [EPREFIX/libexec] 1281 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1282 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1283 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1284 --libdir=DIR object code libraries [EPREFIX/lib] 1285 --includedir=DIR C header files [PREFIX/include] 1286 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1287 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1288 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1289 --infodir=DIR info documentation [DATAROOTDIR/info] 1290 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1291 --mandir=DIR man documentation [DATAROOTDIR/man] 1292 --docdir=DIR documentation root [DATAROOTDIR/doc/jpegtcl] 1293 --htmldir=DIR html documentation [DOCDIR] 1294 --dvidir=DIR dvi documentation [DOCDIR] 1295 --pdfdir=DIR pdf documentation [DOCDIR] 1296 --psdir=DIR ps documentation [DOCDIR] 1297_ACEOF 1298 1299 cat <<\_ACEOF 1300_ACEOF 1301fi 1302 1303if test -n "$ac_init_help"; then 1304 case $ac_init_help in 1305 short | recursive ) echo "Configuration of jpegtcl 8.2:";; 1306 esac 1307 cat <<\_ACEOF 1308 1309Optional Features: 1310 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1311 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1312 --enable-threads build with threads 1313 --enable-shared build and link with shared libraries (default: on) 1314 --enable-64bit enable 64bit support (default: off) 1315 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1316 --disable-rpath disable rpath support (default: on) 1317 --enable-wince enable Win/CE support (where applicable) 1318 --enable-symbols build with debugging symbols (default: off) 1319 1320Optional Packages: 1321 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1322 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1323 --with-tcl directory containing tcl configuration 1324 (tclConfig.sh) 1325 --with-tclinclude directory containing the public Tcl header files 1326 --with-celib=DIR use Windows/CE support library from DIR 1327 1328Some influential environment variables: 1329 CC C compiler command 1330 CFLAGS C compiler flags 1331 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1332 nonstandard directory <lib dir> 1333 LIBS libraries to pass to the linker, e.g. -l<library> 1334 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1335 you have headers in a nonstandard directory <include dir> 1336 CPP C preprocessor 1337 1338Use these variables to override the choices made by `configure' or to help 1339it to find libraries and programs with nonstandard names/locations. 1340 1341_ACEOF 1342ac_status=$? 1343fi 1344 1345if test "$ac_init_help" = "recursive"; then 1346 # If there are subdirs, report their specific --help. 1347 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1348 test -d "$ac_dir" || continue 1349 ac_builddir=. 1350 1351case "$ac_dir" in 1352.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1353*) 1354 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1355 # A ".." for each directory in $ac_dir_suffix. 1356 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1357 case $ac_top_builddir_sub in 1358 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1359 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1360 esac ;; 1361esac 1362ac_abs_top_builddir=$ac_pwd 1363ac_abs_builddir=$ac_pwd$ac_dir_suffix 1364# for backward compatibility: 1365ac_top_builddir=$ac_top_build_prefix 1366 1367case $srcdir in 1368 .) # We are building in place. 1369 ac_srcdir=. 1370 ac_top_srcdir=$ac_top_builddir_sub 1371 ac_abs_top_srcdir=$ac_pwd ;; 1372 [\\/]* | ?:[\\/]* ) # Absolute name. 1373 ac_srcdir=$srcdir$ac_dir_suffix; 1374 ac_top_srcdir=$srcdir 1375 ac_abs_top_srcdir=$srcdir ;; 1376 *) # Relative name. 1377 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1378 ac_top_srcdir=$ac_top_build_prefix$srcdir 1379 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1380esac 1381ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1382 1383 cd "$ac_dir" || { ac_status=$?; continue; } 1384 # Check for guested configure. 1385 if test -f "$ac_srcdir/configure.gnu"; then 1386 echo && 1387 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1388 elif test -f "$ac_srcdir/configure"; then 1389 echo && 1390 $SHELL "$ac_srcdir/configure" --help=recursive 1391 else 1392 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1393 fi || ac_status=$? 1394 cd "$ac_pwd" || { ac_status=$?; break; } 1395 done 1396fi 1397 1398test -n "$ac_init_help" && exit $ac_status 1399if $ac_init_version; then 1400 cat <<\_ACEOF 1401jpegtcl configure 8.2 1402generated by GNU Autoconf 2.61 1403 1404Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14052002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1406This configure script is free software; the Free Software Foundation 1407gives unlimited permission to copy, distribute and modify it. 1408_ACEOF 1409 exit 1410fi 1411cat >config.log <<_ACEOF 1412This file contains any messages produced by compilers while 1413running configure, to aid debugging if configure makes a mistake. 1414 1415It was created by jpegtcl $as_me 8.2, which was 1416generated by GNU Autoconf 2.61. Invocation command line was 1417 1418 $ $0 $@ 1419 1420_ACEOF 1421exec 5>>config.log 1422{ 1423cat <<_ASUNAME 1424## --------- ## 1425## Platform. ## 1426## --------- ## 1427 1428hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1429uname -m = `(uname -m) 2>/dev/null || echo unknown` 1430uname -r = `(uname -r) 2>/dev/null || echo unknown` 1431uname -s = `(uname -s) 2>/dev/null || echo unknown` 1432uname -v = `(uname -v) 2>/dev/null || echo unknown` 1433 1434/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1435/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1436 1437/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1438/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1439/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1440/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1441/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1442/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1443/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1444 1445_ASUNAME 1446 1447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1448for as_dir in $PATH 1449do 1450 IFS=$as_save_IFS 1451 test -z "$as_dir" && as_dir=. 1452 echo "PATH: $as_dir" 1453done 1454IFS=$as_save_IFS 1455 1456} >&5 1457 1458cat >&5 <<_ACEOF 1459 1460 1461## ----------- ## 1462## Core tests. ## 1463## ----------- ## 1464 1465_ACEOF 1466 1467 1468# Keep a trace of the command line. 1469# Strip out --no-create and --no-recursion so they do not pile up. 1470# Strip out --silent because we don't want to record it for future runs. 1471# Also quote any args containing shell meta-characters. 1472# Make two passes to allow for proper duplicate-argument suppression. 1473ac_configure_args= 1474ac_configure_args0= 1475ac_configure_args1= 1476ac_must_keep_next=false 1477for ac_pass in 1 2 1478do 1479 for ac_arg 1480 do 1481 case $ac_arg in 1482 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1484 | -silent | --silent | --silen | --sile | --sil) 1485 continue ;; 1486 *\'*) 1487 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1488 esac 1489 case $ac_pass in 1490 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1491 2) 1492 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1493 if test $ac_must_keep_next = true; then 1494 ac_must_keep_next=false # Got value, back to normal. 1495 else 1496 case $ac_arg in 1497 *=* | --config-cache | -C | -disable-* | --disable-* \ 1498 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1499 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1500 | -with-* | --with-* | -without-* | --without-* | --x) 1501 case "$ac_configure_args0 " in 1502 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1503 esac 1504 ;; 1505 -* ) ac_must_keep_next=true ;; 1506 esac 1507 fi 1508 ac_configure_args="$ac_configure_args '$ac_arg'" 1509 ;; 1510 esac 1511 done 1512done 1513$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1514$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1515 1516# When interrupted or exit'd, cleanup temporary files, and complete 1517# config.log. We remove comments because anyway the quotes in there 1518# would cause problems or look ugly. 1519# WARNING: Use '\'' to represent an apostrophe within the trap. 1520# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1521trap 'exit_status=$? 1522 # Save into config.log some information that might help in debugging. 1523 { 1524 echo 1525 1526 cat <<\_ASBOX 1527## ---------------- ## 1528## Cache variables. ## 1529## ---------------- ## 1530_ASBOX 1531 echo 1532 # The following way of writing the cache mishandles newlines in values, 1533( 1534 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1535 eval ac_val=\$$ac_var 1536 case $ac_val in #( 1537 *${as_nl}*) 1538 case $ac_var in #( 1539 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1540echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1541 esac 1542 case $ac_var in #( 1543 _ | IFS | as_nl) ;; #( 1544 *) $as_unset $ac_var ;; 1545 esac ;; 1546 esac 1547 done 1548 (set) 2>&1 | 1549 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1550 *${as_nl}ac_space=\ *) 1551 sed -n \ 1552 "s/'\''/'\''\\\\'\'''\''/g; 1553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1554 ;; #( 1555 *) 1556 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1557 ;; 1558 esac | 1559 sort 1560) 1561 echo 1562 1563 cat <<\_ASBOX 1564## ----------------- ## 1565## Output variables. ## 1566## ----------------- ## 1567_ASBOX 1568 echo 1569 for ac_var in $ac_subst_vars 1570 do 1571 eval ac_val=\$$ac_var 1572 case $ac_val in 1573 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1574 esac 1575 echo "$ac_var='\''$ac_val'\''" 1576 done | sort 1577 echo 1578 1579 if test -n "$ac_subst_files"; then 1580 cat <<\_ASBOX 1581## ------------------- ## 1582## File substitutions. ## 1583## ------------------- ## 1584_ASBOX 1585 echo 1586 for ac_var in $ac_subst_files 1587 do 1588 eval ac_val=\$$ac_var 1589 case $ac_val in 1590 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1591 esac 1592 echo "$ac_var='\''$ac_val'\''" 1593 done | sort 1594 echo 1595 fi 1596 1597 if test -s confdefs.h; then 1598 cat <<\_ASBOX 1599## ----------- ## 1600## confdefs.h. ## 1601## ----------- ## 1602_ASBOX 1603 echo 1604 cat confdefs.h 1605 echo 1606 fi 1607 test "$ac_signal" != 0 && 1608 echo "$as_me: caught signal $ac_signal" 1609 echo "$as_me: exit $exit_status" 1610 } >&5 1611 rm -f core *.core core.conftest.* && 1612 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1613 exit $exit_status 1614' 0 1615for ac_signal in 1 2 13 15; do 1616 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1617done 1618ac_signal=0 1619 1620# confdefs.h avoids OS command line length limits that DEFS can exceed. 1621rm -f -r conftest* confdefs.h 1622 1623# Predefined preprocessor variables. 1624 1625cat >>confdefs.h <<_ACEOF 1626#define PACKAGE_NAME "$PACKAGE_NAME" 1627_ACEOF 1628 1629 1630cat >>confdefs.h <<_ACEOF 1631#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1632_ACEOF 1633 1634 1635cat >>confdefs.h <<_ACEOF 1636#define PACKAGE_VERSION "$PACKAGE_VERSION" 1637_ACEOF 1638 1639 1640cat >>confdefs.h <<_ACEOF 1641#define PACKAGE_STRING "$PACKAGE_STRING" 1642_ACEOF 1643 1644 1645cat >>confdefs.h <<_ACEOF 1646#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1647_ACEOF 1648 1649 1650# Let the site file select an alternate cache file if it wants to. 1651# Prefer explicitly selected file to automatically selected ones. 1652if test -n "$CONFIG_SITE"; then 1653 set x "$CONFIG_SITE" 1654elif test "x$prefix" != xNONE; then 1655 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1656else 1657 set x "$ac_default_prefix/share/config.site" \ 1658 "$ac_default_prefix/etc/config.site" 1659fi 1660shift 1661for ac_site_file 1662do 1663 if test -r "$ac_site_file"; then 1664 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1665echo "$as_me: loading site script $ac_site_file" >&6;} 1666 sed 's/^/| /' "$ac_site_file" >&5 1667 . "$ac_site_file" 1668 fi 1669done 1670 1671if test -r "$cache_file"; then 1672 # Some versions of bash will fail to source /dev/null (special 1673 # files actually), so we avoid doing that. 1674 if test -f "$cache_file"; then 1675 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1676echo "$as_me: loading cache $cache_file" >&6;} 1677 case $cache_file in 1678 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1679 *) . "./$cache_file";; 1680 esac 1681 fi 1682else 1683 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1684echo "$as_me: creating cache $cache_file" >&6;} 1685 >$cache_file 1686fi 1687 1688# Check that the precious variables saved in the cache have kept the same 1689# value. 1690ac_cache_corrupted=false 1691for ac_var in $ac_precious_vars; do 1692 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1693 eval ac_new_set=\$ac_env_${ac_var}_set 1694 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1695 eval ac_new_val=\$ac_env_${ac_var}_value 1696 case $ac_old_set,$ac_new_set in 1697 set,) 1698 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1699echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1700 ac_cache_corrupted=: ;; 1701 ,set) 1702 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1703echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1704 ac_cache_corrupted=: ;; 1705 ,);; 1706 *) 1707 if test "x$ac_old_val" != "x$ac_new_val"; then 1708 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1709echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1710 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1711echo "$as_me: former value: $ac_old_val" >&2;} 1712 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1713echo "$as_me: current value: $ac_new_val" >&2;} 1714 ac_cache_corrupted=: 1715 fi;; 1716 esac 1717 # Pass precious variables to config.status. 1718 if test "$ac_new_set" = set; then 1719 case $ac_new_val in 1720 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1721 *) ac_arg=$ac_var=$ac_new_val ;; 1722 esac 1723 case " $ac_configure_args " in 1724 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1725 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1726 esac 1727 fi 1728done 1729if $ac_cache_corrupted; then 1730 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1731echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1732 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1733echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1734 { (exit 1); exit 1; }; } 1735fi 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761ac_ext=c 1762ac_cpp='$CPP $CPPFLAGS' 1763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1765ac_compiler_gnu=$ac_cv_c_compiler_gnu 1766 1767 1768 1769 1770 # TEA extensions pass this us the version of TEA they think they 1771 # are compatible with. 1772 TEA_VERSION="3.9" 1773 1774 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1775echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1776 if test x"${PACKAGE_NAME}" = x ; then 1777 { { echo "$as_me:$LINENO: error: 1778The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1779echo "$as_me: error: 1780The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1781 { (exit 1); exit 1; }; } 1782 fi 1783 if test x"3.9" = x ; then 1784 { { echo "$as_me:$LINENO: error: 1785TEA version not specified." >&5 1786echo "$as_me: error: 1787TEA version not specified." >&2;} 1788 { (exit 1); exit 1; }; } 1789 elif test "3.9" != "${TEA_VERSION}" ; then 1790 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1791echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1792 else 1793 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1794echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1795 fi 1796 case "`uname -s`" in 1797 *win32*|*WIN32*|*MINGW32_*) 1798 # Extract the first word of "cygpath", so it can be a program name with args. 1799set dummy cygpath; ac_word=$2 1800{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1802if test "${ac_cv_prog_CYGPATH+set}" = set; then 1803 echo $ECHO_N "(cached) $ECHO_C" >&6 1804else 1805 if test -n "$CYGPATH"; then 1806 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1807else 1808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1809for as_dir in $PATH 1810do 1811 IFS=$as_save_IFS 1812 test -z "$as_dir" && as_dir=. 1813 for ac_exec_ext in '' $ac_executable_extensions; do 1814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1815 ac_cv_prog_CYGPATH="cygpath -w" 1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1817 break 2 1818 fi 1819done 1820done 1821IFS=$as_save_IFS 1822 1823 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1824fi 1825fi 1826CYGPATH=$ac_cv_prog_CYGPATH 1827if test -n "$CYGPATH"; then 1828 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1829echo "${ECHO_T}$CYGPATH" >&6; } 1830else 1831 { echo "$as_me:$LINENO: result: no" >&5 1832echo "${ECHO_T}no" >&6; } 1833fi 1834 1835 1836 EXEEXT=".exe" 1837 TEA_PLATFORM="windows" 1838 ;; 1839 *CYGWIN_*) 1840 CYGPATH=echo 1841 EXEEXT=".exe" 1842 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1843 ;; 1844 *) 1845 CYGPATH=echo 1846 EXEEXT="" 1847 TEA_PLATFORM="unix" 1848 ;; 1849 esac 1850 1851 # Check if exec_prefix is set. If not use fall back to prefix. 1852 # Note when adjusted, so that TEA_PREFIX can correct for this. 1853 # This is needed for recursive configures, since autoconf propagates 1854 # $prefix, but not $exec_prefix (doh!). 1855 if test x$exec_prefix = xNONE ; then 1856 exec_prefix_default=yes 1857 exec_prefix=$prefix 1858 fi 1859 1860 1861 1862 1863 # This package name must be replaced statically for AC_SUBST to work 1864 1865 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1866 1867 1868 # We AC_SUBST these here to ensure they are subst'ed, 1869 # in case the user doesn't call TEA_ADD_... 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879ac_aux_dir= 1880for ac_dir in ../tclconfig "$srcdir"/../tclconfig; do 1881 if test -f "$ac_dir/install-sh"; then 1882 ac_aux_dir=$ac_dir 1883 ac_install_sh="$ac_aux_dir/install-sh -c" 1884 break 1885 elif test -f "$ac_dir/install.sh"; then 1886 ac_aux_dir=$ac_dir 1887 ac_install_sh="$ac_aux_dir/install.sh -c" 1888 break 1889 elif test -f "$ac_dir/shtool"; then 1890 ac_aux_dir=$ac_dir 1891 ac_install_sh="$ac_aux_dir/shtool install -c" 1892 break 1893 fi 1894done 1895if test -z "$ac_aux_dir"; then 1896 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&5 1897echo "$as_me: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&2;} 1898 { (exit 1); exit 1; }; } 1899fi 1900 1901# These three variables are undocumented and unsupported, 1902# and are intended to be withdrawn in a future Autoconf release. 1903# They can cause serious problems if a builder's source tree is in a directory 1904# whose full name contains unusual characters. 1905ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1906ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1907ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1908 1909 1910 1911#-------------------------------------------------------------------- 1912# Load the tclConfig.sh file 1913# Load the tkConfig.sh file 1914#-------------------------------------------------------------------- 1915 1916 1917 1918 # 1919 # Ok, lets find the tcl configuration 1920 # First, look for one uninstalled. 1921 # the alternative search directory is invoked by --with-tcl 1922 # 1923 1924 if test x"${no_tcl}" = x ; then 1925 # we reset no_tcl in case something fails here 1926 no_tcl=true 1927 1928# Check whether --with-tcl was given. 1929if test "${with_tcl+set}" = set; then 1930 withval=$with_tcl; with_tclconfig="${withval}" 1931fi 1932 1933 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1934echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1935 if test "${ac_cv_c_tclconfig+set}" = set; then 1936 echo $ECHO_N "(cached) $ECHO_C" >&6 1937else 1938 1939 1940 # First check to see if --with-tcl was specified. 1941 if test x"${with_tclconfig}" != x ; then 1942 case "${with_tclconfig}" in 1943 */tclConfig.sh ) 1944 if test -f "${with_tclconfig}"; then 1945 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1946echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1947 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1948 fi ;; 1949 esac 1950 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1951 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1952 else 1953 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1954echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1955 { (exit 1); exit 1; }; } 1956 fi 1957 fi 1958 1959 # then check for a private Tcl installation 1960 if test x"${ac_cv_c_tclconfig}" = x ; then 1961 for i in \ 1962 ../tcl \ 1963 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1964 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1965 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1966 ../../tcl \ 1967 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1968 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1969 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1970 ../../../tcl \ 1971 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1972 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1973 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1974 if test "${TEA_PLATFORM}" = "windows" \ 1975 -a -f "$i/win/tclConfig.sh" ; then 1976 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 1977 break 1978 fi 1979 if test -f "$i/unix/tclConfig.sh" ; then 1980 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1981 break 1982 fi 1983 done 1984 fi 1985 1986 # on Darwin, check in Framework installation locations 1987 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1988 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1989 `ls -d /Library/Frameworks 2>/dev/null` \ 1990 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1991 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1992 ; do 1993 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1994 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 1995 break 1996 fi 1997 done 1998 fi 1999 2000 # TEA specific: on Windows, check in common installation locations 2001 if test "${TEA_PLATFORM}" = "windows" \ 2002 -a x"${ac_cv_c_tclconfig}" = x ; then 2003 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2004 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2005 ; do 2006 if test -f "$i/tclConfig.sh" ; then 2007 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2008 break 2009 fi 2010 done 2011 fi 2012 2013 # check in a few common install locations 2014 if test x"${ac_cv_c_tclconfig}" = x ; then 2015 for i in `ls -d ${libdir} 2>/dev/null` \ 2016 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2017 `ls -d ${prefix}/lib 2>/dev/null` \ 2018 `ls -d /usr/local/lib 2>/dev/null` \ 2019 `ls -d /usr/contrib/lib 2>/dev/null` \ 2020 `ls -d /usr/lib 2>/dev/null` \ 2021 `ls -d /usr/lib64 2>/dev/null` \ 2022 ; do 2023 if test -f "$i/tclConfig.sh" ; then 2024 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2025 break 2026 fi 2027 done 2028 fi 2029 2030 # check in a few other private locations 2031 if test x"${ac_cv_c_tclconfig}" = x ; then 2032 for i in \ 2033 ${srcdir}/../tcl \ 2034 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2035 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2036 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2037 if test "${TEA_PLATFORM}" = "windows" \ 2038 -a -f "$i/win/tclConfig.sh" ; then 2039 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2040 break 2041 fi 2042 if test -f "$i/unix/tclConfig.sh" ; then 2043 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2044 break 2045 fi 2046 done 2047 fi 2048 2049fi 2050 2051 2052 if test x"${ac_cv_c_tclconfig}" = x ; then 2053 TCL_BIN_DIR="# no Tcl configs found" 2054 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2055echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2056 { (exit 1); exit 1; }; } 2057 else 2058 no_tcl= 2059 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2060 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2061echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2062 fi 2063 fi 2064 2065 2066 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2067echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2068 2069 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2070 { echo "$as_me:$LINENO: result: loading" >&5 2071echo "${ECHO_T}loading" >&6; } 2072 . "${TCL_BIN_DIR}/tclConfig.sh" 2073 else 2074 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2075echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2076 fi 2077 2078 # eval is required to do the TCL_DBGX substitution 2079 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2080 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2081 2082 # If the TCL_BIN_DIR is the build directory (not the install directory), 2083 # then set the common variable name to the value of the build variables. 2084 # For example, the variable TCL_LIB_SPEC will be set to the value 2085 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2086 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2087 # installed and uninstalled version of Tcl. 2088 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2089 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2090 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2091 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2092 elif test "`uname -s`" = "Darwin"; then 2093 # If Tcl was built as a framework, attempt to use the libraries 2094 # from the framework at the given location so that linking works 2095 # against Tcl.framework installed in an arbitrary location. 2096 case ${TCL_DEFS} in 2097 *TCL_FRAMEWORK*) 2098 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2099 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2100 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2101 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2102 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2103 break 2104 fi 2105 done 2106 fi 2107 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2108 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2109 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2110 fi 2111 ;; 2112 esac 2113 fi 2114 2115 # eval is required to do the TCL_DBGX substitution 2116 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2117 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2118 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2119 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 case "`uname -s`" in 2135 *CYGWIN_*) 2136 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2137echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2138 case ${TCL_EXTRA_CFLAGS} in 2139 *-mwin32*|*-mno-cygwin*) 2140 TEA_PLATFORM="windows" 2141 CFLAGS="$CFLAGS -mwin32" 2142 { echo "$as_me:$LINENO: result: win32" >&5 2143echo "${ECHO_T}win32" >&6; } 2144 ;; 2145 *) 2146 TEA_PLATFORM="unix" 2147 { echo "$as_me:$LINENO: result: unix" >&5 2148echo "${ECHO_T}unix" >&6; } 2149 ;; 2150 esac 2151 EXEEXT=".exe" 2152 ;; 2153 *) 2154 ;; 2155 esac 2156 2157 # Do this here as we have fully defined TEA_PLATFORM now 2158 if test "${TEA_PLATFORM}" = "windows" ; then 2159 # The BUILD_$pkg is to define the correct extern storage class 2160 # handling when making this package 2161 2162cat >>confdefs.h <<_ACEOF 2163#define BUILD_${PACKAGE_NAME} 2164_ACEOF 2165 2166 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2167 fi 2168 2169 # TEA specific: 2170 2171 2172 2173 2174 2175 2176 2177 2178#----------------------------------------------------------------------- 2179# Handle the --prefix=... option by defaulting to what Tcl gave. 2180# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2181#----------------------------------------------------------------------- 2182 2183 2184 if test "${prefix}" = "NONE"; then 2185 prefix_default=yes 2186 if test x"${TCL_PREFIX}" != x; then 2187 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2188echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2189 prefix=${TCL_PREFIX} 2190 else 2191 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2192echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2193 prefix=/usr/local 2194 fi 2195 fi 2196 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2197 -o x"${exec_prefix_default}" = x"yes" ; then 2198 if test x"${TCL_EXEC_PREFIX}" != x; then 2199 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2200echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2201 exec_prefix=${TCL_EXEC_PREFIX} 2202 else 2203 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2204echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2205 exec_prefix=$prefix 2206 fi 2207 fi 2208 2209 2210#----------------------------------------------------------------------- 2211# Standard compiler checks. 2212# This sets up CC by using the CC env var, or looks for gcc otherwise. 2213# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2214# the basic setup necessary to compile executables. 2215#----------------------------------------------------------------------- 2216 2217JPEG_CFLAGS="$CFLAGS" 2218 2219 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2220 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2221 2222 # If the user did not set CFLAGS, set it now to keep 2223 # the AC_PROG_CC macro from adding "-g -O2". 2224 if test "${CFLAGS+set}" != "set" ; then 2225 CFLAGS="" 2226 fi 2227 2228 ac_ext=c 2229ac_cpp='$CPP $CPPFLAGS' 2230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2232ac_compiler_gnu=$ac_cv_c_compiler_gnu 2233if test -n "$ac_tool_prefix"; then 2234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2235set dummy ${ac_tool_prefix}gcc; ac_word=$2 2236{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2238if test "${ac_cv_prog_CC+set}" = set; then 2239 echo $ECHO_N "(cached) $ECHO_C" >&6 2240else 2241 if test -n "$CC"; then 2242 ac_cv_prog_CC="$CC" # Let the user override the test. 2243else 2244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2245for as_dir in $PATH 2246do 2247 IFS=$as_save_IFS 2248 test -z "$as_dir" && as_dir=. 2249 for ac_exec_ext in '' $ac_executable_extensions; do 2250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2251 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2253 break 2 2254 fi 2255done 2256done 2257IFS=$as_save_IFS 2258 2259fi 2260fi 2261CC=$ac_cv_prog_CC 2262if test -n "$CC"; then 2263 { echo "$as_me:$LINENO: result: $CC" >&5 2264echo "${ECHO_T}$CC" >&6; } 2265else 2266 { echo "$as_me:$LINENO: result: no" >&5 2267echo "${ECHO_T}no" >&6; } 2268fi 2269 2270 2271fi 2272if test -z "$ac_cv_prog_CC"; then 2273 ac_ct_CC=$CC 2274 # Extract the first word of "gcc", so it can be a program name with args. 2275set dummy gcc; ac_word=$2 2276{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2278if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2279 echo $ECHO_N "(cached) $ECHO_C" >&6 2280else 2281 if test -n "$ac_ct_CC"; then 2282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2283else 2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2285for as_dir in $PATH 2286do 2287 IFS=$as_save_IFS 2288 test -z "$as_dir" && as_dir=. 2289 for ac_exec_ext in '' $ac_executable_extensions; do 2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2291 ac_cv_prog_ac_ct_CC="gcc" 2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2293 break 2 2294 fi 2295done 2296done 2297IFS=$as_save_IFS 2298 2299fi 2300fi 2301ac_ct_CC=$ac_cv_prog_ac_ct_CC 2302if test -n "$ac_ct_CC"; then 2303 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2304echo "${ECHO_T}$ac_ct_CC" >&6; } 2305else 2306 { echo "$as_me:$LINENO: result: no" >&5 2307echo "${ECHO_T}no" >&6; } 2308fi 2309 2310 if test "x$ac_ct_CC" = x; then 2311 CC="" 2312 else 2313 case $cross_compiling:$ac_tool_warned in 2314yes:) 2315{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2316whose name does not start with the host triplet. If you think this 2317configuration is useful to you, please write to autoconf@gnu.org." >&5 2318echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2319whose name does not start with the host triplet. If you think this 2320configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2321ac_tool_warned=yes ;; 2322esac 2323 CC=$ac_ct_CC 2324 fi 2325else 2326 CC="$ac_cv_prog_CC" 2327fi 2328 2329if test -z "$CC"; then 2330 if test -n "$ac_tool_prefix"; then 2331 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2332set dummy ${ac_tool_prefix}cc; ac_word=$2 2333{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2335if test "${ac_cv_prog_CC+set}" = set; then 2336 echo $ECHO_N "(cached) $ECHO_C" >&6 2337else 2338 if test -n "$CC"; then 2339 ac_cv_prog_CC="$CC" # Let the user override the test. 2340else 2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2342for as_dir in $PATH 2343do 2344 IFS=$as_save_IFS 2345 test -z "$as_dir" && as_dir=. 2346 for ac_exec_ext in '' $ac_executable_extensions; do 2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2348 ac_cv_prog_CC="${ac_tool_prefix}cc" 2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2350 break 2 2351 fi 2352done 2353done 2354IFS=$as_save_IFS 2355 2356fi 2357fi 2358CC=$ac_cv_prog_CC 2359if test -n "$CC"; then 2360 { echo "$as_me:$LINENO: result: $CC" >&5 2361echo "${ECHO_T}$CC" >&6; } 2362else 2363 { echo "$as_me:$LINENO: result: no" >&5 2364echo "${ECHO_T}no" >&6; } 2365fi 2366 2367 2368 fi 2369fi 2370if test -z "$CC"; then 2371 # Extract the first word of "cc", so it can be a program name with args. 2372set dummy cc; ac_word=$2 2373{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2375if test "${ac_cv_prog_CC+set}" = set; then 2376 echo $ECHO_N "(cached) $ECHO_C" >&6 2377else 2378 if test -n "$CC"; then 2379 ac_cv_prog_CC="$CC" # Let the user override the test. 2380else 2381 ac_prog_rejected=no 2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2383for as_dir in $PATH 2384do 2385 IFS=$as_save_IFS 2386 test -z "$as_dir" && as_dir=. 2387 for ac_exec_ext in '' $ac_executable_extensions; do 2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2389 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2390 ac_prog_rejected=yes 2391 continue 2392 fi 2393 ac_cv_prog_CC="cc" 2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2395 break 2 2396 fi 2397done 2398done 2399IFS=$as_save_IFS 2400 2401if test $ac_prog_rejected = yes; then 2402 # We found a bogon in the path, so make sure we never use it. 2403 set dummy $ac_cv_prog_CC 2404 shift 2405 if test $# != 0; then 2406 # We chose a different compiler from the bogus one. 2407 # However, it has the same basename, so the bogon will be chosen 2408 # first if we set CC to just the basename; use the full file name. 2409 shift 2410 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2411 fi 2412fi 2413fi 2414fi 2415CC=$ac_cv_prog_CC 2416if test -n "$CC"; then 2417 { echo "$as_me:$LINENO: result: $CC" >&5 2418echo "${ECHO_T}$CC" >&6; } 2419else 2420 { echo "$as_me:$LINENO: result: no" >&5 2421echo "${ECHO_T}no" >&6; } 2422fi 2423 2424 2425fi 2426if test -z "$CC"; then 2427 if test -n "$ac_tool_prefix"; then 2428 for ac_prog in cl.exe 2429 do 2430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2431set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2432{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2434if test "${ac_cv_prog_CC+set}" = set; then 2435 echo $ECHO_N "(cached) $ECHO_C" >&6 2436else 2437 if test -n "$CC"; then 2438 ac_cv_prog_CC="$CC" # Let the user override the test. 2439else 2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2441for as_dir in $PATH 2442do 2443 IFS=$as_save_IFS 2444 test -z "$as_dir" && as_dir=. 2445 for ac_exec_ext in '' $ac_executable_extensions; do 2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2447 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2449 break 2 2450 fi 2451done 2452done 2453IFS=$as_save_IFS 2454 2455fi 2456fi 2457CC=$ac_cv_prog_CC 2458if test -n "$CC"; then 2459 { echo "$as_me:$LINENO: result: $CC" >&5 2460echo "${ECHO_T}$CC" >&6; } 2461else 2462 { echo "$as_me:$LINENO: result: no" >&5 2463echo "${ECHO_T}no" >&6; } 2464fi 2465 2466 2467 test -n "$CC" && break 2468 done 2469fi 2470if test -z "$CC"; then 2471 ac_ct_CC=$CC 2472 for ac_prog in cl.exe 2473do 2474 # Extract the first word of "$ac_prog", so it can be a program name with args. 2475set dummy $ac_prog; ac_word=$2 2476{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2478if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2479 echo $ECHO_N "(cached) $ECHO_C" >&6 2480else 2481 if test -n "$ac_ct_CC"; then 2482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2483else 2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2485for as_dir in $PATH 2486do 2487 IFS=$as_save_IFS 2488 test -z "$as_dir" && as_dir=. 2489 for ac_exec_ext in '' $ac_executable_extensions; do 2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2491 ac_cv_prog_ac_ct_CC="$ac_prog" 2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2493 break 2 2494 fi 2495done 2496done 2497IFS=$as_save_IFS 2498 2499fi 2500fi 2501ac_ct_CC=$ac_cv_prog_ac_ct_CC 2502if test -n "$ac_ct_CC"; then 2503 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2504echo "${ECHO_T}$ac_ct_CC" >&6; } 2505else 2506 { echo "$as_me:$LINENO: result: no" >&5 2507echo "${ECHO_T}no" >&6; } 2508fi 2509 2510 2511 test -n "$ac_ct_CC" && break 2512done 2513 2514 if test "x$ac_ct_CC" = x; then 2515 CC="" 2516 else 2517 case $cross_compiling:$ac_tool_warned in 2518yes:) 2519{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2520whose name does not start with the host triplet. If you think this 2521configuration is useful to you, please write to autoconf@gnu.org." >&5 2522echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2523whose name does not start with the host triplet. If you think this 2524configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2525ac_tool_warned=yes ;; 2526esac 2527 CC=$ac_ct_CC 2528 fi 2529fi 2530 2531fi 2532 2533 2534test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2535See \`config.log' for more details." >&5 2536echo "$as_me: error: no acceptable C compiler found in \$PATH 2537See \`config.log' for more details." >&2;} 2538 { (exit 1); exit 1; }; } 2539 2540# Provide some information about the compiler. 2541echo "$as_me:$LINENO: checking for C compiler version" >&5 2542ac_compiler=`set X $ac_compile; echo $2` 2543{ (ac_try="$ac_compiler --version >&5" 2544case "(($ac_try" in 2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2546 *) ac_try_echo=$ac_try;; 2547esac 2548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2549 (eval "$ac_compiler --version >&5") 2>&5 2550 ac_status=$? 2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2552 (exit $ac_status); } 2553{ (ac_try="$ac_compiler -v >&5" 2554case "(($ac_try" in 2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2556 *) ac_try_echo=$ac_try;; 2557esac 2558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2559 (eval "$ac_compiler -v >&5") 2>&5 2560 ac_status=$? 2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2562 (exit $ac_status); } 2563{ (ac_try="$ac_compiler -V >&5" 2564case "(($ac_try" in 2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2566 *) ac_try_echo=$ac_try;; 2567esac 2568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2569 (eval "$ac_compiler -V >&5") 2>&5 2570 ac_status=$? 2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2572 (exit $ac_status); } 2573 2574cat >conftest.$ac_ext <<_ACEOF 2575/* confdefs.h. */ 2576_ACEOF 2577cat confdefs.h >>conftest.$ac_ext 2578cat >>conftest.$ac_ext <<_ACEOF 2579/* end confdefs.h. */ 2580 2581int 2582main () 2583{ 2584 2585 ; 2586 return 0; 2587} 2588_ACEOF 2589ac_clean_files_save=$ac_clean_files 2590ac_clean_files="$ac_clean_files a.out a.exe b.out" 2591# Try to create an executable without -o first, disregard a.out. 2592# It will help us diagnose broken compilers, and finding out an intuition 2593# of exeext. 2594{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2595echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2596ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2597# 2598# List of possible output files, starting from the most likely. 2599# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2600# only as a last resort. b.out is created by i960 compilers. 2601ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2602# 2603# The IRIX 6 linker writes into existing files which may not be 2604# executable, retaining their permissions. Remove them first so a 2605# subsequent execution test works. 2606ac_rmfiles= 2607for ac_file in $ac_files 2608do 2609 case $ac_file in 2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2611 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2612 esac 2613done 2614rm -f $ac_rmfiles 2615 2616if { (ac_try="$ac_link_default" 2617case "(($ac_try" in 2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2619 *) ac_try_echo=$ac_try;; 2620esac 2621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2622 (eval "$ac_link_default") 2>&5 2623 ac_status=$? 2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2625 (exit $ac_status); }; then 2626 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2627# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2628# in a Makefile. We should not override ac_cv_exeext if it was cached, 2629# so that the user can short-circuit this test for compilers unknown to 2630# Autoconf. 2631for ac_file in $ac_files '' 2632do 2633 test -f "$ac_file" || continue 2634 case $ac_file in 2635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2636 ;; 2637 [ab].out ) 2638 # We found the default executable, but exeext='' is most 2639 # certainly right. 2640 break;; 2641 *.* ) 2642 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2643 then :; else 2644 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2645 fi 2646 # We set ac_cv_exeext here because the later test for it is not 2647 # safe: cross compilers may not add the suffix if given an `-o' 2648 # argument, so we may need to know it at that point already. 2649 # Even if this section looks crufty: it has the advantage of 2650 # actually working. 2651 break;; 2652 * ) 2653 break;; 2654 esac 2655done 2656test "$ac_cv_exeext" = no && ac_cv_exeext= 2657 2658else 2659 ac_file='' 2660fi 2661 2662{ echo "$as_me:$LINENO: result: $ac_file" >&5 2663echo "${ECHO_T}$ac_file" >&6; } 2664if test -z "$ac_file"; then 2665 echo "$as_me: failed program was:" >&5 2666sed 's/^/| /' conftest.$ac_ext >&5 2667 2668{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2669See \`config.log' for more details." >&5 2670echo "$as_me: error: C compiler cannot create executables 2671See \`config.log' for more details." >&2;} 2672 { (exit 77); exit 77; }; } 2673fi 2674 2675ac_exeext=$ac_cv_exeext 2676 2677# Check that the compiler produces executables we can run. If not, either 2678# the compiler is broken, or we cross compile. 2679{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2680echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2681# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2682# If not cross compiling, check that we can run a simple program. 2683if test "$cross_compiling" != yes; then 2684 if { ac_try='./$ac_file' 2685 { (case "(($ac_try" in 2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2687 *) ac_try_echo=$ac_try;; 2688esac 2689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2690 (eval "$ac_try") 2>&5 2691 ac_status=$? 2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2693 (exit $ac_status); }; }; then 2694 cross_compiling=no 2695 else 2696 if test "$cross_compiling" = maybe; then 2697 cross_compiling=yes 2698 else 2699 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2700If you meant to cross compile, use \`--host'. 2701See \`config.log' for more details." >&5 2702echo "$as_me: error: cannot run C compiled programs. 2703If you meant to cross compile, use \`--host'. 2704See \`config.log' for more details." >&2;} 2705 { (exit 1); exit 1; }; } 2706 fi 2707 fi 2708fi 2709{ echo "$as_me:$LINENO: result: yes" >&5 2710echo "${ECHO_T}yes" >&6; } 2711 2712rm -f a.out a.exe conftest$ac_cv_exeext b.out 2713ac_clean_files=$ac_clean_files_save 2714# Check that the compiler produces executables we can run. If not, either 2715# the compiler is broken, or we cross compile. 2716{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2717echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2718{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2719echo "${ECHO_T}$cross_compiling" >&6; } 2720 2721{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2722echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2723if { (ac_try="$ac_link" 2724case "(($ac_try" in 2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2726 *) ac_try_echo=$ac_try;; 2727esac 2728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2729 (eval "$ac_link") 2>&5 2730 ac_status=$? 2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2732 (exit $ac_status); }; then 2733 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2734# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2735# work properly (i.e., refer to `conftest.exe'), while it won't with 2736# `rm'. 2737for ac_file in conftest.exe conftest conftest.*; do 2738 test -f "$ac_file" || continue 2739 case $ac_file in 2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2741 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2742 break;; 2743 * ) break;; 2744 esac 2745done 2746else 2747 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2748See \`config.log' for more details." >&5 2749echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2750See \`config.log' for more details." >&2;} 2751 { (exit 1); exit 1; }; } 2752fi 2753 2754rm -f conftest$ac_cv_exeext 2755{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2756echo "${ECHO_T}$ac_cv_exeext" >&6; } 2757 2758rm -f conftest.$ac_ext 2759EXEEXT=$ac_cv_exeext 2760ac_exeext=$EXEEXT 2761{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2762echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2763if test "${ac_cv_objext+set}" = set; then 2764 echo $ECHO_N "(cached) $ECHO_C" >&6 2765else 2766 cat >conftest.$ac_ext <<_ACEOF 2767/* confdefs.h. */ 2768_ACEOF 2769cat confdefs.h >>conftest.$ac_ext 2770cat >>conftest.$ac_ext <<_ACEOF 2771/* end confdefs.h. */ 2772 2773int 2774main () 2775{ 2776 2777 ; 2778 return 0; 2779} 2780_ACEOF 2781rm -f conftest.o conftest.obj 2782if { (ac_try="$ac_compile" 2783case "(($ac_try" in 2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2785 *) ac_try_echo=$ac_try;; 2786esac 2787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2788 (eval "$ac_compile") 2>&5 2789 ac_status=$? 2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2791 (exit $ac_status); }; then 2792 for ac_file in conftest.o conftest.obj conftest.*; do 2793 test -f "$ac_file" || continue; 2794 case $ac_file in 2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2796 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2797 break;; 2798 esac 2799done 2800else 2801 echo "$as_me: failed program was:" >&5 2802sed 's/^/| /' conftest.$ac_ext >&5 2803 2804{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2805See \`config.log' for more details." >&5 2806echo "$as_me: error: cannot compute suffix of object files: cannot compile 2807See \`config.log' for more details." >&2;} 2808 { (exit 1); exit 1; }; } 2809fi 2810 2811rm -f conftest.$ac_cv_objext conftest.$ac_ext 2812fi 2813{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2814echo "${ECHO_T}$ac_cv_objext" >&6; } 2815OBJEXT=$ac_cv_objext 2816ac_objext=$OBJEXT 2817{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2818echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2819if test "${ac_cv_c_compiler_gnu+set}" = set; then 2820 echo $ECHO_N "(cached) $ECHO_C" >&6 2821else 2822 cat >conftest.$ac_ext <<_ACEOF 2823/* confdefs.h. */ 2824_ACEOF 2825cat confdefs.h >>conftest.$ac_ext 2826cat >>conftest.$ac_ext <<_ACEOF 2827/* end confdefs.h. */ 2828 2829int 2830main () 2831{ 2832#ifndef __GNUC__ 2833 choke me 2834#endif 2835 2836 ; 2837 return 0; 2838} 2839_ACEOF 2840rm -f conftest.$ac_objext 2841if { (ac_try="$ac_compile" 2842case "(($ac_try" in 2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2844 *) ac_try_echo=$ac_try;; 2845esac 2846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2847 (eval "$ac_compile") 2>conftest.er1 2848 ac_status=$? 2849 grep -v '^ *+' conftest.er1 >conftest.err 2850 rm -f conftest.er1 2851 cat conftest.err >&5 2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2853 (exit $ac_status); } && { 2854 test -z "$ac_c_werror_flag" || 2855 test ! -s conftest.err 2856 } && test -s conftest.$ac_objext; then 2857 ac_compiler_gnu=yes 2858else 2859 echo "$as_me: failed program was:" >&5 2860sed 's/^/| /' conftest.$ac_ext >&5 2861 2862 ac_compiler_gnu=no 2863fi 2864 2865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2866ac_cv_c_compiler_gnu=$ac_compiler_gnu 2867 2868fi 2869{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2870echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2871GCC=`test $ac_compiler_gnu = yes && echo yes` 2872ac_test_CFLAGS=${CFLAGS+set} 2873ac_save_CFLAGS=$CFLAGS 2874{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2875echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2876if test "${ac_cv_prog_cc_g+set}" = set; then 2877 echo $ECHO_N "(cached) $ECHO_C" >&6 2878else 2879 ac_save_c_werror_flag=$ac_c_werror_flag 2880 ac_c_werror_flag=yes 2881 ac_cv_prog_cc_g=no 2882 CFLAGS="-g" 2883 cat >conftest.$ac_ext <<_ACEOF 2884/* confdefs.h. */ 2885_ACEOF 2886cat confdefs.h >>conftest.$ac_ext 2887cat >>conftest.$ac_ext <<_ACEOF 2888/* end confdefs.h. */ 2889 2890int 2891main () 2892{ 2893 2894 ; 2895 return 0; 2896} 2897_ACEOF 2898rm -f conftest.$ac_objext 2899if { (ac_try="$ac_compile" 2900case "(($ac_try" in 2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2902 *) ac_try_echo=$ac_try;; 2903esac 2904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2905 (eval "$ac_compile") 2>conftest.er1 2906 ac_status=$? 2907 grep -v '^ *+' conftest.er1 >conftest.err 2908 rm -f conftest.er1 2909 cat conftest.err >&5 2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2911 (exit $ac_status); } && { 2912 test -z "$ac_c_werror_flag" || 2913 test ! -s conftest.err 2914 } && test -s conftest.$ac_objext; then 2915 ac_cv_prog_cc_g=yes 2916else 2917 echo "$as_me: failed program was:" >&5 2918sed 's/^/| /' conftest.$ac_ext >&5 2919 2920 CFLAGS="" 2921 cat >conftest.$ac_ext <<_ACEOF 2922/* confdefs.h. */ 2923_ACEOF 2924cat confdefs.h >>conftest.$ac_ext 2925cat >>conftest.$ac_ext <<_ACEOF 2926/* end confdefs.h. */ 2927 2928int 2929main () 2930{ 2931 2932 ; 2933 return 0; 2934} 2935_ACEOF 2936rm -f conftest.$ac_objext 2937if { (ac_try="$ac_compile" 2938case "(($ac_try" in 2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2940 *) ac_try_echo=$ac_try;; 2941esac 2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2943 (eval "$ac_compile") 2>conftest.er1 2944 ac_status=$? 2945 grep -v '^ *+' conftest.er1 >conftest.err 2946 rm -f conftest.er1 2947 cat conftest.err >&5 2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2949 (exit $ac_status); } && { 2950 test -z "$ac_c_werror_flag" || 2951 test ! -s conftest.err 2952 } && test -s conftest.$ac_objext; then 2953 : 2954else 2955 echo "$as_me: failed program was:" >&5 2956sed 's/^/| /' conftest.$ac_ext >&5 2957 2958 ac_c_werror_flag=$ac_save_c_werror_flag 2959 CFLAGS="-g" 2960 cat >conftest.$ac_ext <<_ACEOF 2961/* confdefs.h. */ 2962_ACEOF 2963cat confdefs.h >>conftest.$ac_ext 2964cat >>conftest.$ac_ext <<_ACEOF 2965/* end confdefs.h. */ 2966 2967int 2968main () 2969{ 2970 2971 ; 2972 return 0; 2973} 2974_ACEOF 2975rm -f conftest.$ac_objext 2976if { (ac_try="$ac_compile" 2977case "(($ac_try" in 2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2979 *) ac_try_echo=$ac_try;; 2980esac 2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2982 (eval "$ac_compile") 2>conftest.er1 2983 ac_status=$? 2984 grep -v '^ *+' conftest.er1 >conftest.err 2985 rm -f conftest.er1 2986 cat conftest.err >&5 2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2988 (exit $ac_status); } && { 2989 test -z "$ac_c_werror_flag" || 2990 test ! -s conftest.err 2991 } && test -s conftest.$ac_objext; then 2992 ac_cv_prog_cc_g=yes 2993else 2994 echo "$as_me: failed program was:" >&5 2995sed 's/^/| /' conftest.$ac_ext >&5 2996 2997 2998fi 2999 3000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3001fi 3002 3003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3004fi 3005 3006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3007 ac_c_werror_flag=$ac_save_c_werror_flag 3008fi 3009{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3010echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3011if test "$ac_test_CFLAGS" = set; then 3012 CFLAGS=$ac_save_CFLAGS 3013elif test $ac_cv_prog_cc_g = yes; then 3014 if test "$GCC" = yes; then 3015 CFLAGS="-g -O2" 3016 else 3017 CFLAGS="-g" 3018 fi 3019else 3020 if test "$GCC" = yes; then 3021 CFLAGS="-O2" 3022 else 3023 CFLAGS= 3024 fi 3025fi 3026{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3027echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3028if test "${ac_cv_prog_cc_c89+set}" = set; then 3029 echo $ECHO_N "(cached) $ECHO_C" >&6 3030else 3031 ac_cv_prog_cc_c89=no 3032ac_save_CC=$CC 3033cat >conftest.$ac_ext <<_ACEOF 3034/* confdefs.h. */ 3035_ACEOF 3036cat confdefs.h >>conftest.$ac_ext 3037cat >>conftest.$ac_ext <<_ACEOF 3038/* end confdefs.h. */ 3039#include <stdarg.h> 3040#include <stdio.h> 3041#include <sys/types.h> 3042#include <sys/stat.h> 3043/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3044struct buf { int x; }; 3045FILE * (*rcsopen) (struct buf *, struct stat *, int); 3046static char *e (p, i) 3047 char **p; 3048 int i; 3049{ 3050 return p[i]; 3051} 3052static char *f (char * (*g) (char **, int), char **p, ...) 3053{ 3054 char *s; 3055 va_list v; 3056 va_start (v,p); 3057 s = g (p, va_arg (v,int)); 3058 va_end (v); 3059 return s; 3060} 3061 3062/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3063 function prototypes and stuff, but not '\xHH' hex character constants. 3064 These don't provoke an error unfortunately, instead are silently treated 3065 as 'x'. The following induces an error, until -std is added to get 3066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3067 array size at least. It's necessary to write '\x00'==0 to get something 3068 that's true only with -std. */ 3069int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3070 3071/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3072 inside strings and character constants. */ 3073#define FOO(x) 'x' 3074int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3075 3076int test (int i, double x); 3077struct s1 {int (*f) (int a);}; 3078struct s2 {int (*f) (double a);}; 3079int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3080int argc; 3081char **argv; 3082int 3083main () 3084{ 3085return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3086 ; 3087 return 0; 3088} 3089_ACEOF 3090for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3091 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3092do 3093 CC="$ac_save_CC $ac_arg" 3094 rm -f conftest.$ac_objext 3095if { (ac_try="$ac_compile" 3096case "(($ac_try" in 3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3098 *) ac_try_echo=$ac_try;; 3099esac 3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3101 (eval "$ac_compile") 2>conftest.er1 3102 ac_status=$? 3103 grep -v '^ *+' conftest.er1 >conftest.err 3104 rm -f conftest.er1 3105 cat conftest.err >&5 3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3107 (exit $ac_status); } && { 3108 test -z "$ac_c_werror_flag" || 3109 test ! -s conftest.err 3110 } && test -s conftest.$ac_objext; then 3111 ac_cv_prog_cc_c89=$ac_arg 3112else 3113 echo "$as_me: failed program was:" >&5 3114sed 's/^/| /' conftest.$ac_ext >&5 3115 3116 3117fi 3118 3119rm -f core conftest.err conftest.$ac_objext 3120 test "x$ac_cv_prog_cc_c89" != "xno" && break 3121done 3122rm -f conftest.$ac_ext 3123CC=$ac_save_CC 3124 3125fi 3126# AC_CACHE_VAL 3127case "x$ac_cv_prog_cc_c89" in 3128 x) 3129 { echo "$as_me:$LINENO: result: none needed" >&5 3130echo "${ECHO_T}none needed" >&6; } ;; 3131 xno) 3132 { echo "$as_me:$LINENO: result: unsupported" >&5 3133echo "${ECHO_T}unsupported" >&6; } ;; 3134 *) 3135 CC="$CC $ac_cv_prog_cc_c89" 3136 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3137echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3138esac 3139 3140 3141ac_ext=c 3142ac_cpp='$CPP $CPPFLAGS' 3143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3145ac_compiler_gnu=$ac_cv_c_compiler_gnu 3146 3147 ac_ext=c 3148ac_cpp='$CPP $CPPFLAGS' 3149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3151ac_compiler_gnu=$ac_cv_c_compiler_gnu 3152{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3153echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3154# On Suns, sometimes $CPP names a directory. 3155if test -n "$CPP" && test -d "$CPP"; then 3156 CPP= 3157fi 3158if test -z "$CPP"; then 3159 if test "${ac_cv_prog_CPP+set}" = set; then 3160 echo $ECHO_N "(cached) $ECHO_C" >&6 3161else 3162 # Double quotes because CPP needs to be expanded 3163 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3164 do 3165 ac_preproc_ok=false 3166for ac_c_preproc_warn_flag in '' yes 3167do 3168 # Use a header file that comes with gcc, so configuring glibc 3169 # with a fresh cross-compiler works. 3170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3171 # <limits.h> exists even on freestanding compilers. 3172 # On the NeXT, cc -E runs the code through the compiler's parser, 3173 # not just through cpp. "Syntax error" is here to catch this case. 3174 cat >conftest.$ac_ext <<_ACEOF 3175/* confdefs.h. */ 3176_ACEOF 3177cat confdefs.h >>conftest.$ac_ext 3178cat >>conftest.$ac_ext <<_ACEOF 3179/* end confdefs.h. */ 3180#ifdef __STDC__ 3181# include <limits.h> 3182#else 3183# include <assert.h> 3184#endif 3185 Syntax error 3186_ACEOF 3187if { (ac_try="$ac_cpp conftest.$ac_ext" 3188case "(($ac_try" in 3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3190 *) ac_try_echo=$ac_try;; 3191esac 3192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3194 ac_status=$? 3195 grep -v '^ *+' conftest.er1 >conftest.err 3196 rm -f conftest.er1 3197 cat conftest.err >&5 3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3199 (exit $ac_status); } >/dev/null && { 3200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3201 test ! -s conftest.err 3202 }; then 3203 : 3204else 3205 echo "$as_me: failed program was:" >&5 3206sed 's/^/| /' conftest.$ac_ext >&5 3207 3208 # Broken: fails on valid input. 3209continue 3210fi 3211 3212rm -f conftest.err conftest.$ac_ext 3213 3214 # OK, works on sane cases. Now check whether nonexistent headers 3215 # can be detected and how. 3216 cat >conftest.$ac_ext <<_ACEOF 3217/* confdefs.h. */ 3218_ACEOF 3219cat confdefs.h >>conftest.$ac_ext 3220cat >>conftest.$ac_ext <<_ACEOF 3221/* end confdefs.h. */ 3222#include <ac_nonexistent.h> 3223_ACEOF 3224if { (ac_try="$ac_cpp conftest.$ac_ext" 3225case "(($ac_try" in 3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3227 *) ac_try_echo=$ac_try;; 3228esac 3229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3231 ac_status=$? 3232 grep -v '^ *+' conftest.er1 >conftest.err 3233 rm -f conftest.er1 3234 cat conftest.err >&5 3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3236 (exit $ac_status); } >/dev/null && { 3237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3238 test ! -s conftest.err 3239 }; then 3240 # Broken: success on invalid input. 3241continue 3242else 3243 echo "$as_me: failed program was:" >&5 3244sed 's/^/| /' conftest.$ac_ext >&5 3245 3246 # Passes both tests. 3247ac_preproc_ok=: 3248break 3249fi 3250 3251rm -f conftest.err conftest.$ac_ext 3252 3253done 3254# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3255rm -f conftest.err conftest.$ac_ext 3256if $ac_preproc_ok; then 3257 break 3258fi 3259 3260 done 3261 ac_cv_prog_CPP=$CPP 3262 3263fi 3264 CPP=$ac_cv_prog_CPP 3265else 3266 ac_cv_prog_CPP=$CPP 3267fi 3268{ echo "$as_me:$LINENO: result: $CPP" >&5 3269echo "${ECHO_T}$CPP" >&6; } 3270ac_preproc_ok=false 3271for ac_c_preproc_warn_flag in '' yes 3272do 3273 # Use a header file that comes with gcc, so configuring glibc 3274 # with a fresh cross-compiler works. 3275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3276 # <limits.h> exists even on freestanding compilers. 3277 # On the NeXT, cc -E runs the code through the compiler's parser, 3278 # not just through cpp. "Syntax error" is here to catch this case. 3279 cat >conftest.$ac_ext <<_ACEOF 3280/* confdefs.h. */ 3281_ACEOF 3282cat confdefs.h >>conftest.$ac_ext 3283cat >>conftest.$ac_ext <<_ACEOF 3284/* end confdefs.h. */ 3285#ifdef __STDC__ 3286# include <limits.h> 3287#else 3288# include <assert.h> 3289#endif 3290 Syntax error 3291_ACEOF 3292if { (ac_try="$ac_cpp conftest.$ac_ext" 3293case "(($ac_try" in 3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3295 *) ac_try_echo=$ac_try;; 3296esac 3297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3299 ac_status=$? 3300 grep -v '^ *+' conftest.er1 >conftest.err 3301 rm -f conftest.er1 3302 cat conftest.err >&5 3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3304 (exit $ac_status); } >/dev/null && { 3305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3306 test ! -s conftest.err 3307 }; then 3308 : 3309else 3310 echo "$as_me: failed program was:" >&5 3311sed 's/^/| /' conftest.$ac_ext >&5 3312 3313 # Broken: fails on valid input. 3314continue 3315fi 3316 3317rm -f conftest.err conftest.$ac_ext 3318 3319 # OK, works on sane cases. Now check whether nonexistent headers 3320 # can be detected and how. 3321 cat >conftest.$ac_ext <<_ACEOF 3322/* confdefs.h. */ 3323_ACEOF 3324cat confdefs.h >>conftest.$ac_ext 3325cat >>conftest.$ac_ext <<_ACEOF 3326/* end confdefs.h. */ 3327#include <ac_nonexistent.h> 3328_ACEOF 3329if { (ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 2>conftest.er1 3336 ac_status=$? 3337 grep -v '^ *+' conftest.er1 >conftest.err 3338 rm -f conftest.er1 3339 cat conftest.err >&5 3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3341 (exit $ac_status); } >/dev/null && { 3342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3343 test ! -s conftest.err 3344 }; then 3345 # Broken: success on invalid input. 3346continue 3347else 3348 echo "$as_me: failed program was:" >&5 3349sed 's/^/| /' conftest.$ac_ext >&5 3350 3351 # Passes both tests. 3352ac_preproc_ok=: 3353break 3354fi 3355 3356rm -f conftest.err conftest.$ac_ext 3357 3358done 3359# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3360rm -f conftest.err conftest.$ac_ext 3361if $ac_preproc_ok; then 3362 : 3363else 3364 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3365See \`config.log' for more details." >&5 3366echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3367See \`config.log' for more details." >&2;} 3368 { (exit 1); exit 1; }; } 3369fi 3370 3371ac_ext=c 3372ac_cpp='$CPP $CPPFLAGS' 3373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3375ac_compiler_gnu=$ac_cv_c_compiler_gnu 3376 3377 3378 # Find a good install program. We prefer a C program (faster), 3379# so one script is as good as another. But avoid the broken or 3380# incompatible versions: 3381# SysV /etc/install, /usr/sbin/install 3382# SunOS /usr/etc/install 3383# IRIX /sbin/install 3384# AIX /bin/install 3385# AmigaOS /C/install, which installs bootblocks on floppy discs 3386# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3387# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3388# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3389# OS/2's system install, which has a completely different semantic 3390# ./install, which can be erroneously created by make from ./install.sh. 3391{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3392echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3393if test -z "$INSTALL"; then 3394if test "${ac_cv_path_install+set}" = set; then 3395 echo $ECHO_N "(cached) $ECHO_C" >&6 3396else 3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3398for as_dir in $PATH 3399do 3400 IFS=$as_save_IFS 3401 test -z "$as_dir" && as_dir=. 3402 # Account for people who put trailing slashes in PATH elements. 3403case $as_dir/ in 3404 ./ | .// | /cC/* | \ 3405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3406 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3407 /usr/ucb/* ) ;; 3408 *) 3409 # OSF1 and SCO ODT 3.0 have their own names for install. 3410 # Don't use installbsd from OSF since it installs stuff as root 3411 # by default. 3412 for ac_prog in ginstall scoinst install; do 3413 for ac_exec_ext in '' $ac_executable_extensions; do 3414 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3415 if test $ac_prog = install && 3416 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3417 # AIX install. It has an incompatible calling convention. 3418 : 3419 elif test $ac_prog = install && 3420 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3421 # program-specific install script used by HP pwplus--don't use. 3422 : 3423 else 3424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3425 break 3 3426 fi 3427 fi 3428 done 3429 done 3430 ;; 3431esac 3432done 3433IFS=$as_save_IFS 3434 3435 3436fi 3437 if test "${ac_cv_path_install+set}" = set; then 3438 INSTALL=$ac_cv_path_install 3439 else 3440 # As a last resort, use the slow shell script. Don't cache a 3441 # value for INSTALL within a source directory, because that will 3442 # break other packages using the cache if that directory is 3443 # removed, or if the value is a relative name. 3444 INSTALL=$ac_install_sh 3445 fi 3446fi 3447{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3448echo "${ECHO_T}$INSTALL" >&6; } 3449 3450# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3451# It thinks the first close brace ends the variable substitution. 3452test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3453 3454test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3455 3456test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3457 3458 3459 #-------------------------------------------------------------------- 3460 # Checks to see if the make program sets the $MAKE variable. 3461 #-------------------------------------------------------------------- 3462 3463 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3464echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3465set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3466if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3467 echo $ECHO_N "(cached) $ECHO_C" >&6 3468else 3469 cat >conftest.make <<\_ACEOF 3470SHELL = /bin/sh 3471all: 3472 @echo '@@@%%%=$(MAKE)=@@@%%%' 3473_ACEOF 3474# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3475case `${MAKE-make} -f conftest.make 2>/dev/null` in 3476 *@@@%%%=?*=@@@%%%*) 3477 eval ac_cv_prog_make_${ac_make}_set=yes;; 3478 *) 3479 eval ac_cv_prog_make_${ac_make}_set=no;; 3480esac 3481rm -f conftest.make 3482fi 3483if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3484 { echo "$as_me:$LINENO: result: yes" >&5 3485echo "${ECHO_T}yes" >&6; } 3486 SET_MAKE= 3487else 3488 { echo "$as_me:$LINENO: result: no" >&5 3489echo "${ECHO_T}no" >&6; } 3490 SET_MAKE="MAKE=${MAKE-make}" 3491fi 3492 3493 3494 #-------------------------------------------------------------------- 3495 # Find ranlib 3496 #-------------------------------------------------------------------- 3497 3498 if test -n "$ac_tool_prefix"; then 3499 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3500set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3501{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3503if test "${ac_cv_prog_RANLIB+set}" = set; then 3504 echo $ECHO_N "(cached) $ECHO_C" >&6 3505else 3506 if test -n "$RANLIB"; then 3507 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3508else 3509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3510for as_dir in $PATH 3511do 3512 IFS=$as_save_IFS 3513 test -z "$as_dir" && as_dir=. 3514 for ac_exec_ext in '' $ac_executable_extensions; do 3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3516 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3518 break 2 3519 fi 3520done 3521done 3522IFS=$as_save_IFS 3523 3524fi 3525fi 3526RANLIB=$ac_cv_prog_RANLIB 3527if test -n "$RANLIB"; then 3528 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3529echo "${ECHO_T}$RANLIB" >&6; } 3530else 3531 { echo "$as_me:$LINENO: result: no" >&5 3532echo "${ECHO_T}no" >&6; } 3533fi 3534 3535 3536fi 3537if test -z "$ac_cv_prog_RANLIB"; then 3538 ac_ct_RANLIB=$RANLIB 3539 # Extract the first word of "ranlib", so it can be a program name with args. 3540set dummy ranlib; ac_word=$2 3541{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3543if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3544 echo $ECHO_N "(cached) $ECHO_C" >&6 3545else 3546 if test -n "$ac_ct_RANLIB"; then 3547 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3548else 3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3550for as_dir in $PATH 3551do 3552 IFS=$as_save_IFS 3553 test -z "$as_dir" && as_dir=. 3554 for ac_exec_ext in '' $ac_executable_extensions; do 3555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3556 ac_cv_prog_ac_ct_RANLIB="ranlib" 3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3558 break 2 3559 fi 3560done 3561done 3562IFS=$as_save_IFS 3563 3564fi 3565fi 3566ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3567if test -n "$ac_ct_RANLIB"; then 3568 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3569echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3570else 3571 { echo "$as_me:$LINENO: result: no" >&5 3572echo "${ECHO_T}no" >&6; } 3573fi 3574 3575 if test "x$ac_ct_RANLIB" = x; then 3576 RANLIB=":" 3577 else 3578 case $cross_compiling:$ac_tool_warned in 3579yes:) 3580{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3581whose name does not start with the host triplet. If you think this 3582configuration is useful to you, please write to autoconf@gnu.org." >&5 3583echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3584whose name does not start with the host triplet. If you think this 3585configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3586ac_tool_warned=yes ;; 3587esac 3588 RANLIB=$ac_ct_RANLIB 3589 fi 3590else 3591 RANLIB="$ac_cv_prog_RANLIB" 3592fi 3593 3594 3595 #-------------------------------------------------------------------- 3596 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3597 #-------------------------------------------------------------------- 3598 3599 3600 3601 3602 3603 3604{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3605echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3606if test "${ac_cv_path_GREP+set}" = set; then 3607 echo $ECHO_N "(cached) $ECHO_C" >&6 3608else 3609 # Extract the first word of "grep ggrep" to use in msg output 3610if test -z "$GREP"; then 3611set dummy grep ggrep; ac_prog_name=$2 3612if test "${ac_cv_path_GREP+set}" = set; then 3613 echo $ECHO_N "(cached) $ECHO_C" >&6 3614else 3615 ac_path_GREP_found=false 3616# Loop through the user's path and test for each of PROGNAME-LIST 3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3618for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3619do 3620 IFS=$as_save_IFS 3621 test -z "$as_dir" && as_dir=. 3622 for ac_prog in grep ggrep; do 3623 for ac_exec_ext in '' $ac_executable_extensions; do 3624 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3625 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3626 # Check for GNU ac_path_GREP and select it if it is found. 3627 # Check for GNU $ac_path_GREP 3628case `"$ac_path_GREP" --version 2>&1` in 3629*GNU*) 3630 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3631*) 3632 ac_count=0 3633 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3634 while : 3635 do 3636 cat "conftest.in" "conftest.in" >"conftest.tmp" 3637 mv "conftest.tmp" "conftest.in" 3638 cp "conftest.in" "conftest.nl" 3639 echo 'GREP' >> "conftest.nl" 3640 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3642 ac_count=`expr $ac_count + 1` 3643 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3644 # Best one so far, save it but keep looking for a better one 3645 ac_cv_path_GREP="$ac_path_GREP" 3646 ac_path_GREP_max=$ac_count 3647 fi 3648 # 10*(2^10) chars as input seems more than enough 3649 test $ac_count -gt 10 && break 3650 done 3651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3652esac 3653 3654 3655 $ac_path_GREP_found && break 3 3656 done 3657done 3658 3659done 3660IFS=$as_save_IFS 3661 3662 3663fi 3664 3665GREP="$ac_cv_path_GREP" 3666if test -z "$GREP"; then 3667 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3668echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3669 { (exit 1); exit 1; }; } 3670fi 3671 3672else 3673 ac_cv_path_GREP=$GREP 3674fi 3675 3676 3677fi 3678{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3679echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3680 GREP="$ac_cv_path_GREP" 3681 3682 3683{ echo "$as_me:$LINENO: checking for egrep" >&5 3684echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3685if test "${ac_cv_path_EGREP+set}" = set; then 3686 echo $ECHO_N "(cached) $ECHO_C" >&6 3687else 3688 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3689 then ac_cv_path_EGREP="$GREP -E" 3690 else 3691 # Extract the first word of "egrep" to use in msg output 3692if test -z "$EGREP"; then 3693set dummy egrep; ac_prog_name=$2 3694if test "${ac_cv_path_EGREP+set}" = set; then 3695 echo $ECHO_N "(cached) $ECHO_C" >&6 3696else 3697 ac_path_EGREP_found=false 3698# Loop through the user's path and test for each of PROGNAME-LIST 3699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3700for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3701do 3702 IFS=$as_save_IFS 3703 test -z "$as_dir" && as_dir=. 3704 for ac_prog in egrep; do 3705 for ac_exec_ext in '' $ac_executable_extensions; do 3706 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3707 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3708 # Check for GNU ac_path_EGREP and select it if it is found. 3709 # Check for GNU $ac_path_EGREP 3710case `"$ac_path_EGREP" --version 2>&1` in 3711*GNU*) 3712 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3713*) 3714 ac_count=0 3715 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3716 while : 3717 do 3718 cat "conftest.in" "conftest.in" >"conftest.tmp" 3719 mv "conftest.tmp" "conftest.in" 3720 cp "conftest.in" "conftest.nl" 3721 echo 'EGREP' >> "conftest.nl" 3722 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3724 ac_count=`expr $ac_count + 1` 3725 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3726 # Best one so far, save it but keep looking for a better one 3727 ac_cv_path_EGREP="$ac_path_EGREP" 3728 ac_path_EGREP_max=$ac_count 3729 fi 3730 # 10*(2^10) chars as input seems more than enough 3731 test $ac_count -gt 10 && break 3732 done 3733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3734esac 3735 3736 3737 $ac_path_EGREP_found && break 3 3738 done 3739done 3740 3741done 3742IFS=$as_save_IFS 3743 3744 3745fi 3746 3747EGREP="$ac_cv_path_EGREP" 3748if test -z "$EGREP"; then 3749 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3750echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3751 { (exit 1); exit 1; }; } 3752fi 3753 3754else 3755 ac_cv_path_EGREP=$EGREP 3756fi 3757 3758 3759 fi 3760fi 3761{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3762echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3763 EGREP="$ac_cv_path_EGREP" 3764 3765 3766{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3767echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3768if test "${ac_cv_header_stdc+set}" = set; then 3769 echo $ECHO_N "(cached) $ECHO_C" >&6 3770else 3771 cat >conftest.$ac_ext <<_ACEOF 3772/* confdefs.h. */ 3773_ACEOF 3774cat confdefs.h >>conftest.$ac_ext 3775cat >>conftest.$ac_ext <<_ACEOF 3776/* end confdefs.h. */ 3777#include <stdlib.h> 3778#include <stdarg.h> 3779#include <string.h> 3780#include <float.h> 3781 3782int 3783main () 3784{ 3785 3786 ; 3787 return 0; 3788} 3789_ACEOF 3790rm -f conftest.$ac_objext 3791if { (ac_try="$ac_compile" 3792case "(($ac_try" in 3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3794 *) ac_try_echo=$ac_try;; 3795esac 3796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3797 (eval "$ac_compile") 2>conftest.er1 3798 ac_status=$? 3799 grep -v '^ *+' conftest.er1 >conftest.err 3800 rm -f conftest.er1 3801 cat conftest.err >&5 3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3803 (exit $ac_status); } && { 3804 test -z "$ac_c_werror_flag" || 3805 test ! -s conftest.err 3806 } && test -s conftest.$ac_objext; then 3807 ac_cv_header_stdc=yes 3808else 3809 echo "$as_me: failed program was:" >&5 3810sed 's/^/| /' conftest.$ac_ext >&5 3811 3812 ac_cv_header_stdc=no 3813fi 3814 3815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3816 3817if test $ac_cv_header_stdc = yes; then 3818 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3819 cat >conftest.$ac_ext <<_ACEOF 3820/* confdefs.h. */ 3821_ACEOF 3822cat confdefs.h >>conftest.$ac_ext 3823cat >>conftest.$ac_ext <<_ACEOF 3824/* end confdefs.h. */ 3825#include <string.h> 3826 3827_ACEOF 3828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3829 $EGREP "memchr" >/dev/null 2>&1; then 3830 : 3831else 3832 ac_cv_header_stdc=no 3833fi 3834rm -f -r conftest* 3835 3836fi 3837 3838if test $ac_cv_header_stdc = yes; then 3839 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3840 cat >conftest.$ac_ext <<_ACEOF 3841/* confdefs.h. */ 3842_ACEOF 3843cat confdefs.h >>conftest.$ac_ext 3844cat >>conftest.$ac_ext <<_ACEOF 3845/* end confdefs.h. */ 3846#include <stdlib.h> 3847 3848_ACEOF 3849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3850 $EGREP "free" >/dev/null 2>&1; then 3851 : 3852else 3853 ac_cv_header_stdc=no 3854fi 3855rm -f -r conftest* 3856 3857fi 3858 3859if test $ac_cv_header_stdc = yes; then 3860 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3861 if test "$cross_compiling" = yes; then 3862 : 3863else 3864 cat >conftest.$ac_ext <<_ACEOF 3865/* confdefs.h. */ 3866_ACEOF 3867cat confdefs.h >>conftest.$ac_ext 3868cat >>conftest.$ac_ext <<_ACEOF 3869/* end confdefs.h. */ 3870#include <ctype.h> 3871#include <stdlib.h> 3872#if ((' ' & 0x0FF) == 0x020) 3873# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3874# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3875#else 3876# define ISLOWER(c) \ 3877 (('a' <= (c) && (c) <= 'i') \ 3878 || ('j' <= (c) && (c) <= 'r') \ 3879 || ('s' <= (c) && (c) <= 'z')) 3880# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3881#endif 3882 3883#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3884int 3885main () 3886{ 3887 int i; 3888 for (i = 0; i < 256; i++) 3889 if (XOR (islower (i), ISLOWER (i)) 3890 || toupper (i) != TOUPPER (i)) 3891 return 2; 3892 return 0; 3893} 3894_ACEOF 3895rm -f conftest$ac_exeext 3896if { (ac_try="$ac_link" 3897case "(($ac_try" in 3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3899 *) ac_try_echo=$ac_try;; 3900esac 3901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3902 (eval "$ac_link") 2>&5 3903 ac_status=$? 3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3906 { (case "(($ac_try" in 3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3908 *) ac_try_echo=$ac_try;; 3909esac 3910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3911 (eval "$ac_try") 2>&5 3912 ac_status=$? 3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3914 (exit $ac_status); }; }; then 3915 : 3916else 3917 echo "$as_me: program exited with status $ac_status" >&5 3918echo "$as_me: failed program was:" >&5 3919sed 's/^/| /' conftest.$ac_ext >&5 3920 3921( exit $ac_status ) 3922ac_cv_header_stdc=no 3923fi 3924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3925fi 3926 3927 3928fi 3929fi 3930{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3931echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3932if test $ac_cv_header_stdc = yes; then 3933 3934cat >>confdefs.h <<\_ACEOF 3935#define STDC_HEADERS 1 3936_ACEOF 3937 3938fi 3939 3940# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3951 inttypes.h stdint.h unistd.h 3952do 3953as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3954{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3957 echo $ECHO_N "(cached) $ECHO_C" >&6 3958else 3959 cat >conftest.$ac_ext <<_ACEOF 3960/* confdefs.h. */ 3961_ACEOF 3962cat confdefs.h >>conftest.$ac_ext 3963cat >>conftest.$ac_ext <<_ACEOF 3964/* end confdefs.h. */ 3965$ac_includes_default 3966 3967#include <$ac_header> 3968_ACEOF 3969rm -f conftest.$ac_objext 3970if { (ac_try="$ac_compile" 3971case "(($ac_try" in 3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3973 *) ac_try_echo=$ac_try;; 3974esac 3975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3976 (eval "$ac_compile") 2>conftest.er1 3977 ac_status=$? 3978 grep -v '^ *+' conftest.er1 >conftest.err 3979 rm -f conftest.er1 3980 cat conftest.err >&5 3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3982 (exit $ac_status); } && { 3983 test -z "$ac_c_werror_flag" || 3984 test ! -s conftest.err 3985 } && test -s conftest.$ac_objext; then 3986 eval "$as_ac_Header=yes" 3987else 3988 echo "$as_me: failed program was:" >&5 3989sed 's/^/| /' conftest.$ac_ext >&5 3990 3991 eval "$as_ac_Header=no" 3992fi 3993 3994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3995fi 3996ac_res=`eval echo '${'$as_ac_Header'}'` 3997 { echo "$as_me:$LINENO: result: $ac_res" >&5 3998echo "${ECHO_T}$ac_res" >&6; } 3999if test `eval echo '${'$as_ac_Header'}'` = yes; then 4000 cat >>confdefs.h <<_ACEOF 4001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4002_ACEOF 4003 4004fi 4005 4006done 4007 4008 4009 4010 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4011 4012 4013 #------------------------------------------------------------------------ 4014 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4015 # It makes compiling go faster. (This is only a performance feature.) 4016 #------------------------------------------------------------------------ 4017 4018 if test -z "$no_pipe" -a -n "$GCC"; then 4019 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4020echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4021if test "${tcl_cv_cc_pipe+set}" = set; then 4022 echo $ECHO_N "(cached) $ECHO_C" >&6 4023else 4024 4025 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4026 cat >conftest.$ac_ext <<_ACEOF 4027/* confdefs.h. */ 4028_ACEOF 4029cat confdefs.h >>conftest.$ac_ext 4030cat >>conftest.$ac_ext <<_ACEOF 4031/* end confdefs.h. */ 4032 4033int 4034main () 4035{ 4036 4037 ; 4038 return 0; 4039} 4040_ACEOF 4041rm -f conftest.$ac_objext 4042if { (ac_try="$ac_compile" 4043case "(($ac_try" in 4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4045 *) ac_try_echo=$ac_try;; 4046esac 4047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4048 (eval "$ac_compile") 2>conftest.er1 4049 ac_status=$? 4050 grep -v '^ *+' conftest.er1 >conftest.err 4051 rm -f conftest.er1 4052 cat conftest.err >&5 4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4054 (exit $ac_status); } && { 4055 test -z "$ac_c_werror_flag" || 4056 test ! -s conftest.err 4057 } && test -s conftest.$ac_objext; then 4058 tcl_cv_cc_pipe=yes 4059else 4060 echo "$as_me: failed program was:" >&5 4061sed 's/^/| /' conftest.$ac_ext >&5 4062 4063 tcl_cv_cc_pipe=no 4064fi 4065 4066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4067 CFLAGS=$hold_cflags 4068fi 4069{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4070echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4071 if test $tcl_cv_cc_pipe = yes; then 4072 CFLAGS="$CFLAGS -pipe" 4073 fi 4074 fi 4075 4076 #-------------------------------------------------------------------- 4077 # Common compiler flag setup 4078 #-------------------------------------------------------------------- 4079 4080 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4081echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4082if test "${ac_cv_c_bigendian+set}" = set; then 4083 echo $ECHO_N "(cached) $ECHO_C" >&6 4084else 4085 # See if sys/param.h defines the BYTE_ORDER macro. 4086cat >conftest.$ac_ext <<_ACEOF 4087/* confdefs.h. */ 4088_ACEOF 4089cat confdefs.h >>conftest.$ac_ext 4090cat >>conftest.$ac_ext <<_ACEOF 4091/* end confdefs.h. */ 4092#include <sys/types.h> 4093#include <sys/param.h> 4094 4095int 4096main () 4097{ 4098#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4099 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4100 bogus endian macros 4101#endif 4102 4103 ; 4104 return 0; 4105} 4106_ACEOF 4107rm -f conftest.$ac_objext 4108if { (ac_try="$ac_compile" 4109case "(($ac_try" in 4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4111 *) ac_try_echo=$ac_try;; 4112esac 4113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4114 (eval "$ac_compile") 2>conftest.er1 4115 ac_status=$? 4116 grep -v '^ *+' conftest.er1 >conftest.err 4117 rm -f conftest.er1 4118 cat conftest.err >&5 4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4120 (exit $ac_status); } && { 4121 test -z "$ac_c_werror_flag" || 4122 test ! -s conftest.err 4123 } && test -s conftest.$ac_objext; then 4124 # It does; now see whether it defined to BIG_ENDIAN or not. 4125cat >conftest.$ac_ext <<_ACEOF 4126/* confdefs.h. */ 4127_ACEOF 4128cat confdefs.h >>conftest.$ac_ext 4129cat >>conftest.$ac_ext <<_ACEOF 4130/* end confdefs.h. */ 4131#include <sys/types.h> 4132#include <sys/param.h> 4133 4134int 4135main () 4136{ 4137#if BYTE_ORDER != BIG_ENDIAN 4138 not big endian 4139#endif 4140 4141 ; 4142 return 0; 4143} 4144_ACEOF 4145rm -f conftest.$ac_objext 4146if { (ac_try="$ac_compile" 4147case "(($ac_try" in 4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4149 *) ac_try_echo=$ac_try;; 4150esac 4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4152 (eval "$ac_compile") 2>conftest.er1 4153 ac_status=$? 4154 grep -v '^ *+' conftest.er1 >conftest.err 4155 rm -f conftest.er1 4156 cat conftest.err >&5 4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4158 (exit $ac_status); } && { 4159 test -z "$ac_c_werror_flag" || 4160 test ! -s conftest.err 4161 } && test -s conftest.$ac_objext; then 4162 ac_cv_c_bigendian=yes 4163else 4164 echo "$as_me: failed program was:" >&5 4165sed 's/^/| /' conftest.$ac_ext >&5 4166 4167 ac_cv_c_bigendian=no 4168fi 4169 4170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4171else 4172 echo "$as_me: failed program was:" >&5 4173sed 's/^/| /' conftest.$ac_ext >&5 4174 4175 # It does not; compile a test program. 4176if test "$cross_compiling" = yes; then 4177 # try to guess the endianness by grepping values into an object file 4178 ac_cv_c_bigendian=unknown 4179 cat >conftest.$ac_ext <<_ACEOF 4180/* confdefs.h. */ 4181_ACEOF 4182cat confdefs.h >>conftest.$ac_ext 4183cat >>conftest.$ac_ext <<_ACEOF 4184/* end confdefs.h. */ 4185short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4186short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4187void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4188short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4189short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4190void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4191int 4192main () 4193{ 4194 _ascii (); _ebcdic (); 4195 ; 4196 return 0; 4197} 4198_ACEOF 4199rm -f conftest.$ac_objext 4200if { (ac_try="$ac_compile" 4201case "(($ac_try" in 4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4203 *) ac_try_echo=$ac_try;; 4204esac 4205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4206 (eval "$ac_compile") 2>conftest.er1 4207 ac_status=$? 4208 grep -v '^ *+' conftest.er1 >conftest.err 4209 rm -f conftest.er1 4210 cat conftest.err >&5 4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4212 (exit $ac_status); } && { 4213 test -z "$ac_c_werror_flag" || 4214 test ! -s conftest.err 4215 } && test -s conftest.$ac_objext; then 4216 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4217 ac_cv_c_bigendian=yes 4218fi 4219if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4220 if test "$ac_cv_c_bigendian" = unknown; then 4221 ac_cv_c_bigendian=no 4222 else 4223 # finding both strings is unlikely to happen, but who knows? 4224 ac_cv_c_bigendian=unknown 4225 fi 4226fi 4227else 4228 echo "$as_me: failed program was:" >&5 4229sed 's/^/| /' conftest.$ac_ext >&5 4230 4231 4232fi 4233 4234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4235else 4236 cat >conftest.$ac_ext <<_ACEOF 4237/* confdefs.h. */ 4238_ACEOF 4239cat confdefs.h >>conftest.$ac_ext 4240cat >>conftest.$ac_ext <<_ACEOF 4241/* end confdefs.h. */ 4242$ac_includes_default 4243int 4244main () 4245{ 4246 4247 /* Are we little or big endian? From Harbison&Steele. */ 4248 union 4249 { 4250 long int l; 4251 char c[sizeof (long int)]; 4252 } u; 4253 u.l = 1; 4254 return u.c[sizeof (long int) - 1] == 1; 4255 4256 ; 4257 return 0; 4258} 4259_ACEOF 4260rm -f conftest$ac_exeext 4261if { (ac_try="$ac_link" 4262case "(($ac_try" in 4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4264 *) ac_try_echo=$ac_try;; 4265esac 4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4267 (eval "$ac_link") 2>&5 4268 ac_status=$? 4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4271 { (case "(($ac_try" in 4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4273 *) ac_try_echo=$ac_try;; 4274esac 4275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4276 (eval "$ac_try") 2>&5 4277 ac_status=$? 4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4279 (exit $ac_status); }; }; then 4280 ac_cv_c_bigendian=no 4281else 4282 echo "$as_me: program exited with status $ac_status" >&5 4283echo "$as_me: failed program was:" >&5 4284sed 's/^/| /' conftest.$ac_ext >&5 4285 4286( exit $ac_status ) 4287ac_cv_c_bigendian=yes 4288fi 4289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4290fi 4291 4292 4293fi 4294 4295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4296fi 4297{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4298echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4299case $ac_cv_c_bigendian in 4300 yes) 4301 4302cat >>confdefs.h <<\_ACEOF 4303#define WORDS_BIGENDIAN 1 4304_ACEOF 4305 ;; 4306 no) 4307 ;; 4308 *) 4309 { { echo "$as_me:$LINENO: error: unknown endianness 4310presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4311echo "$as_me: error: unknown endianness 4312presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4313 { (exit 1); exit 1; }; } ;; 4314esac 4315 4316 if test "${TEA_PLATFORM}" = "unix" ; then 4317 4318 #-------------------------------------------------------------------- 4319 # On a few very rare systems, all of the libm.a stuff is 4320 # already in libc.a. Set compiler flags accordingly. 4321 # Also, Linux requires the "ieee" library for math to work 4322 # right (and it must appear before "-lm"). 4323 #-------------------------------------------------------------------- 4324 4325 { echo "$as_me:$LINENO: checking for sin" >&5 4326echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4327if test "${ac_cv_func_sin+set}" = set; then 4328 echo $ECHO_N "(cached) $ECHO_C" >&6 4329else 4330 cat >conftest.$ac_ext <<_ACEOF 4331/* confdefs.h. */ 4332_ACEOF 4333cat confdefs.h >>conftest.$ac_ext 4334cat >>conftest.$ac_ext <<_ACEOF 4335/* end confdefs.h. */ 4336/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4337 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4338#define sin innocuous_sin 4339 4340/* System header to define __stub macros and hopefully few prototypes, 4341 which can conflict with char sin (); below. 4342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4343 <limits.h> exists even on freestanding compilers. */ 4344 4345#ifdef __STDC__ 4346# include <limits.h> 4347#else 4348# include <assert.h> 4349#endif 4350 4351#undef sin 4352 4353/* Override any GCC internal prototype to avoid an error. 4354 Use char because int might match the return type of a GCC 4355 builtin and then its argument prototype would still apply. */ 4356#ifdef __cplusplus 4357extern "C" 4358#endif 4359char sin (); 4360/* The GNU C library defines this for functions which it implements 4361 to always fail with ENOSYS. Some functions are actually named 4362 something starting with __ and the normal name is an alias. */ 4363#if defined __stub_sin || defined __stub___sin 4364choke me 4365#endif 4366 4367int 4368main () 4369{ 4370return sin (); 4371 ; 4372 return 0; 4373} 4374_ACEOF 4375rm -f conftest.$ac_objext conftest$ac_exeext 4376if { (ac_try="$ac_link" 4377case "(($ac_try" in 4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4379 *) ac_try_echo=$ac_try;; 4380esac 4381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4382 (eval "$ac_link") 2>conftest.er1 4383 ac_status=$? 4384 grep -v '^ *+' conftest.er1 >conftest.err 4385 rm -f conftest.er1 4386 cat conftest.err >&5 4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4388 (exit $ac_status); } && { 4389 test -z "$ac_c_werror_flag" || 4390 test ! -s conftest.err 4391 } && test -s conftest$ac_exeext && 4392 $as_test_x conftest$ac_exeext; then 4393 ac_cv_func_sin=yes 4394else 4395 echo "$as_me: failed program was:" >&5 4396sed 's/^/| /' conftest.$ac_ext >&5 4397 4398 ac_cv_func_sin=no 4399fi 4400 4401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4402 conftest$ac_exeext conftest.$ac_ext 4403fi 4404{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4405echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4406if test $ac_cv_func_sin = yes; then 4407 MATH_LIBS="" 4408else 4409 MATH_LIBS="-lm" 4410fi 4411 4412 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4413echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4414if test "${ac_cv_lib_ieee_main+set}" = set; then 4415 echo $ECHO_N "(cached) $ECHO_C" >&6 4416else 4417 ac_check_lib_save_LIBS=$LIBS 4418LIBS="-lieee $LIBS" 4419cat >conftest.$ac_ext <<_ACEOF 4420/* confdefs.h. */ 4421_ACEOF 4422cat confdefs.h >>conftest.$ac_ext 4423cat >>conftest.$ac_ext <<_ACEOF 4424/* end confdefs.h. */ 4425 4426 4427int 4428main () 4429{ 4430return main (); 4431 ; 4432 return 0; 4433} 4434_ACEOF 4435rm -f conftest.$ac_objext conftest$ac_exeext 4436if { (ac_try="$ac_link" 4437case "(($ac_try" in 4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4439 *) ac_try_echo=$ac_try;; 4440esac 4441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4442 (eval "$ac_link") 2>conftest.er1 4443 ac_status=$? 4444 grep -v '^ *+' conftest.er1 >conftest.err 4445 rm -f conftest.er1 4446 cat conftest.err >&5 4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4448 (exit $ac_status); } && { 4449 test -z "$ac_c_werror_flag" || 4450 test ! -s conftest.err 4451 } && test -s conftest$ac_exeext && 4452 $as_test_x conftest$ac_exeext; then 4453 ac_cv_lib_ieee_main=yes 4454else 4455 echo "$as_me: failed program was:" >&5 4456sed 's/^/| /' conftest.$ac_ext >&5 4457 4458 ac_cv_lib_ieee_main=no 4459fi 4460 4461rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4462 conftest$ac_exeext conftest.$ac_ext 4463LIBS=$ac_check_lib_save_LIBS 4464fi 4465{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4466echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4467if test $ac_cv_lib_ieee_main = yes; then 4468 MATH_LIBS="-lieee $MATH_LIBS" 4469fi 4470 4471 4472 #-------------------------------------------------------------------- 4473 # Interactive UNIX requires -linet instead of -lsocket, plus it 4474 # needs net/errno.h to define the socket-related error codes. 4475 #-------------------------------------------------------------------- 4476 4477 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4478echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4479if test "${ac_cv_lib_inet_main+set}" = set; then 4480 echo $ECHO_N "(cached) $ECHO_C" >&6 4481else 4482 ac_check_lib_save_LIBS=$LIBS 4483LIBS="-linet $LIBS" 4484cat >conftest.$ac_ext <<_ACEOF 4485/* confdefs.h. */ 4486_ACEOF 4487cat confdefs.h >>conftest.$ac_ext 4488cat >>conftest.$ac_ext <<_ACEOF 4489/* end confdefs.h. */ 4490 4491 4492int 4493main () 4494{ 4495return main (); 4496 ; 4497 return 0; 4498} 4499_ACEOF 4500rm -f conftest.$ac_objext conftest$ac_exeext 4501if { (ac_try="$ac_link" 4502case "(($ac_try" in 4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4504 *) ac_try_echo=$ac_try;; 4505esac 4506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4507 (eval "$ac_link") 2>conftest.er1 4508 ac_status=$? 4509 grep -v '^ *+' conftest.er1 >conftest.err 4510 rm -f conftest.er1 4511 cat conftest.err >&5 4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4513 (exit $ac_status); } && { 4514 test -z "$ac_c_werror_flag" || 4515 test ! -s conftest.err 4516 } && test -s conftest$ac_exeext && 4517 $as_test_x conftest$ac_exeext; then 4518 ac_cv_lib_inet_main=yes 4519else 4520 echo "$as_me: failed program was:" >&5 4521sed 's/^/| /' conftest.$ac_ext >&5 4522 4523 ac_cv_lib_inet_main=no 4524fi 4525 4526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4527 conftest$ac_exeext conftest.$ac_ext 4528LIBS=$ac_check_lib_save_LIBS 4529fi 4530{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4531echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4532if test $ac_cv_lib_inet_main = yes; then 4533 LIBS="$LIBS -linet" 4534fi 4535 4536 if test "${ac_cv_header_net_errno_h+set}" = set; then 4537 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4538echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4539if test "${ac_cv_header_net_errno_h+set}" = set; then 4540 echo $ECHO_N "(cached) $ECHO_C" >&6 4541fi 4542{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4543echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4544else 4545 # Is the header compilable? 4546{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4547echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4548cat >conftest.$ac_ext <<_ACEOF 4549/* confdefs.h. */ 4550_ACEOF 4551cat confdefs.h >>conftest.$ac_ext 4552cat >>conftest.$ac_ext <<_ACEOF 4553/* end confdefs.h. */ 4554$ac_includes_default 4555#include <net/errno.h> 4556_ACEOF 4557rm -f conftest.$ac_objext 4558if { (ac_try="$ac_compile" 4559case "(($ac_try" in 4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4561 *) ac_try_echo=$ac_try;; 4562esac 4563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4564 (eval "$ac_compile") 2>conftest.er1 4565 ac_status=$? 4566 grep -v '^ *+' conftest.er1 >conftest.err 4567 rm -f conftest.er1 4568 cat conftest.err >&5 4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4570 (exit $ac_status); } && { 4571 test -z "$ac_c_werror_flag" || 4572 test ! -s conftest.err 4573 } && test -s conftest.$ac_objext; then 4574 ac_header_compiler=yes 4575else 4576 echo "$as_me: failed program was:" >&5 4577sed 's/^/| /' conftest.$ac_ext >&5 4578 4579 ac_header_compiler=no 4580fi 4581 4582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4583{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4584echo "${ECHO_T}$ac_header_compiler" >&6; } 4585 4586# Is the header present? 4587{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4588echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4589cat >conftest.$ac_ext <<_ACEOF 4590/* confdefs.h. */ 4591_ACEOF 4592cat confdefs.h >>conftest.$ac_ext 4593cat >>conftest.$ac_ext <<_ACEOF 4594/* end confdefs.h. */ 4595#include <net/errno.h> 4596_ACEOF 4597if { (ac_try="$ac_cpp conftest.$ac_ext" 4598case "(($ac_try" in 4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4600 *) ac_try_echo=$ac_try;; 4601esac 4602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4604 ac_status=$? 4605 grep -v '^ *+' conftest.er1 >conftest.err 4606 rm -f conftest.er1 4607 cat conftest.err >&5 4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4609 (exit $ac_status); } >/dev/null && { 4610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4611 test ! -s conftest.err 4612 }; then 4613 ac_header_preproc=yes 4614else 4615 echo "$as_me: failed program was:" >&5 4616sed 's/^/| /' conftest.$ac_ext >&5 4617 4618 ac_header_preproc=no 4619fi 4620 4621rm -f conftest.err conftest.$ac_ext 4622{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4623echo "${ECHO_T}$ac_header_preproc" >&6; } 4624 4625# So? What about this header? 4626case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4627 yes:no: ) 4628 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4629echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4630 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4631echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4632 ac_header_preproc=yes 4633 ;; 4634 no:yes:* ) 4635 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4636echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4637 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4638echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4639 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4640echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4641 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4642echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4643 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4644echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4645 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4646echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4647 4648 ;; 4649esac 4650{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4651echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4652if test "${ac_cv_header_net_errno_h+set}" = set; then 4653 echo $ECHO_N "(cached) $ECHO_C" >&6 4654else 4655 ac_cv_header_net_errno_h=$ac_header_preproc 4656fi 4657{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4658echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4659 4660fi 4661if test $ac_cv_header_net_errno_h = yes; then 4662 4663 4664cat >>confdefs.h <<\_ACEOF 4665#define HAVE_NET_ERRNO_H 1 4666_ACEOF 4667 4668fi 4669 4670 4671 4672 #-------------------------------------------------------------------- 4673 # Check for the existence of the -lsocket and -lnsl libraries. 4674 # The order here is important, so that they end up in the right 4675 # order in the command line generated by make. Here are some 4676 # special considerations: 4677 # 1. Use "connect" and "accept" to check for -lsocket, and 4678 # "gethostbyname" to check for -lnsl. 4679 # 2. Use each function name only once: can't redo a check because 4680 # autoconf caches the results of the last check and won't redo it. 4681 # 3. Use -lnsl and -lsocket only if they supply procedures that 4682 # aren't already present in the normal libraries. This is because 4683 # IRIX 5.2 has libraries, but they aren't needed and they're 4684 # bogus: they goof up name resolution if used. 4685 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4686 # To get around this problem, check for both libraries together 4687 # if -lsocket doesn't work by itself. 4688 #-------------------------------------------------------------------- 4689 4690 tcl_checkBoth=0 4691 { echo "$as_me:$LINENO: checking for connect" >&5 4692echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4693if test "${ac_cv_func_connect+set}" = set; then 4694 echo $ECHO_N "(cached) $ECHO_C" >&6 4695else 4696 cat >conftest.$ac_ext <<_ACEOF 4697/* confdefs.h. */ 4698_ACEOF 4699cat confdefs.h >>conftest.$ac_ext 4700cat >>conftest.$ac_ext <<_ACEOF 4701/* end confdefs.h. */ 4702/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4703 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4704#define connect innocuous_connect 4705 4706/* System header to define __stub macros and hopefully few prototypes, 4707 which can conflict with char connect (); below. 4708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4709 <limits.h> exists even on freestanding compilers. */ 4710 4711#ifdef __STDC__ 4712# include <limits.h> 4713#else 4714# include <assert.h> 4715#endif 4716 4717#undef connect 4718 4719/* Override any GCC internal prototype to avoid an error. 4720 Use char because int might match the return type of a GCC 4721 builtin and then its argument prototype would still apply. */ 4722#ifdef __cplusplus 4723extern "C" 4724#endif 4725char connect (); 4726/* The GNU C library defines this for functions which it implements 4727 to always fail with ENOSYS. Some functions are actually named 4728 something starting with __ and the normal name is an alias. */ 4729#if defined __stub_connect || defined __stub___connect 4730choke me 4731#endif 4732 4733int 4734main () 4735{ 4736return connect (); 4737 ; 4738 return 0; 4739} 4740_ACEOF 4741rm -f conftest.$ac_objext conftest$ac_exeext 4742if { (ac_try="$ac_link" 4743case "(($ac_try" in 4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4745 *) ac_try_echo=$ac_try;; 4746esac 4747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4748 (eval "$ac_link") 2>conftest.er1 4749 ac_status=$? 4750 grep -v '^ *+' conftest.er1 >conftest.err 4751 rm -f conftest.er1 4752 cat conftest.err >&5 4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4754 (exit $ac_status); } && { 4755 test -z "$ac_c_werror_flag" || 4756 test ! -s conftest.err 4757 } && test -s conftest$ac_exeext && 4758 $as_test_x conftest$ac_exeext; then 4759 ac_cv_func_connect=yes 4760else 4761 echo "$as_me: failed program was:" >&5 4762sed 's/^/| /' conftest.$ac_ext >&5 4763 4764 ac_cv_func_connect=no 4765fi 4766 4767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4768 conftest$ac_exeext conftest.$ac_ext 4769fi 4770{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4771echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4772if test $ac_cv_func_connect = yes; then 4773 tcl_checkSocket=0 4774else 4775 tcl_checkSocket=1 4776fi 4777 4778 if test "$tcl_checkSocket" = 1; then 4779 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4780echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4781if test "${ac_cv_func_setsockopt+set}" = set; then 4782 echo $ECHO_N "(cached) $ECHO_C" >&6 4783else 4784 cat >conftest.$ac_ext <<_ACEOF 4785/* confdefs.h. */ 4786_ACEOF 4787cat confdefs.h >>conftest.$ac_ext 4788cat >>conftest.$ac_ext <<_ACEOF 4789/* end confdefs.h. */ 4790/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4791 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4792#define setsockopt innocuous_setsockopt 4793 4794/* System header to define __stub macros and hopefully few prototypes, 4795 which can conflict with char setsockopt (); below. 4796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4797 <limits.h> exists even on freestanding compilers. */ 4798 4799#ifdef __STDC__ 4800# include <limits.h> 4801#else 4802# include <assert.h> 4803#endif 4804 4805#undef setsockopt 4806 4807/* Override any GCC internal prototype to avoid an error. 4808 Use char because int might match the return type of a GCC 4809 builtin and then its argument prototype would still apply. */ 4810#ifdef __cplusplus 4811extern "C" 4812#endif 4813char setsockopt (); 4814/* The GNU C library defines this for functions which it implements 4815 to always fail with ENOSYS. Some functions are actually named 4816 something starting with __ and the normal name is an alias. */ 4817#if defined __stub_setsockopt || defined __stub___setsockopt 4818choke me 4819#endif 4820 4821int 4822main () 4823{ 4824return setsockopt (); 4825 ; 4826 return 0; 4827} 4828_ACEOF 4829rm -f conftest.$ac_objext conftest$ac_exeext 4830if { (ac_try="$ac_link" 4831case "(($ac_try" in 4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4833 *) ac_try_echo=$ac_try;; 4834esac 4835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4836 (eval "$ac_link") 2>conftest.er1 4837 ac_status=$? 4838 grep -v '^ *+' conftest.er1 >conftest.err 4839 rm -f conftest.er1 4840 cat conftest.err >&5 4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4842 (exit $ac_status); } && { 4843 test -z "$ac_c_werror_flag" || 4844 test ! -s conftest.err 4845 } && test -s conftest$ac_exeext && 4846 $as_test_x conftest$ac_exeext; then 4847 ac_cv_func_setsockopt=yes 4848else 4849 echo "$as_me: failed program was:" >&5 4850sed 's/^/| /' conftest.$ac_ext >&5 4851 4852 ac_cv_func_setsockopt=no 4853fi 4854 4855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4856 conftest$ac_exeext conftest.$ac_ext 4857fi 4858{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4859echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 4860if test $ac_cv_func_setsockopt = yes; then 4861 : 4862else 4863 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4864echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 4865if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4866 echo $ECHO_N "(cached) $ECHO_C" >&6 4867else 4868 ac_check_lib_save_LIBS=$LIBS 4869LIBS="-lsocket $LIBS" 4870cat >conftest.$ac_ext <<_ACEOF 4871/* confdefs.h. */ 4872_ACEOF 4873cat confdefs.h >>conftest.$ac_ext 4874cat >>conftest.$ac_ext <<_ACEOF 4875/* end confdefs.h. */ 4876 4877/* Override any GCC internal prototype to avoid an error. 4878 Use char because int might match the return type of a GCC 4879 builtin and then its argument prototype would still apply. */ 4880#ifdef __cplusplus 4881extern "C" 4882#endif 4883char setsockopt (); 4884int 4885main () 4886{ 4887return setsockopt (); 4888 ; 4889 return 0; 4890} 4891_ACEOF 4892rm -f conftest.$ac_objext conftest$ac_exeext 4893if { (ac_try="$ac_link" 4894case "(($ac_try" in 4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4896 *) ac_try_echo=$ac_try;; 4897esac 4898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4899 (eval "$ac_link") 2>conftest.er1 4900 ac_status=$? 4901 grep -v '^ *+' conftest.er1 >conftest.err 4902 rm -f conftest.er1 4903 cat conftest.err >&5 4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4905 (exit $ac_status); } && { 4906 test -z "$ac_c_werror_flag" || 4907 test ! -s conftest.err 4908 } && test -s conftest$ac_exeext && 4909 $as_test_x conftest$ac_exeext; then 4910 ac_cv_lib_socket_setsockopt=yes 4911else 4912 echo "$as_me: failed program was:" >&5 4913sed 's/^/| /' conftest.$ac_ext >&5 4914 4915 ac_cv_lib_socket_setsockopt=no 4916fi 4917 4918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4919 conftest$ac_exeext conftest.$ac_ext 4920LIBS=$ac_check_lib_save_LIBS 4921fi 4922{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4923echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 4924if test $ac_cv_lib_socket_setsockopt = yes; then 4925 LIBS="$LIBS -lsocket" 4926else 4927 tcl_checkBoth=1 4928fi 4929 4930fi 4931 4932 fi 4933 if test "$tcl_checkBoth" = 1; then 4934 tk_oldLibs=$LIBS 4935 LIBS="$LIBS -lsocket -lnsl" 4936 { echo "$as_me:$LINENO: checking for accept" >&5 4937echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 4938if test "${ac_cv_func_accept+set}" = set; then 4939 echo $ECHO_N "(cached) $ECHO_C" >&6 4940else 4941 cat >conftest.$ac_ext <<_ACEOF 4942/* confdefs.h. */ 4943_ACEOF 4944cat confdefs.h >>conftest.$ac_ext 4945cat >>conftest.$ac_ext <<_ACEOF 4946/* end confdefs.h. */ 4947/* Define accept to an innocuous variant, in case <limits.h> declares accept. 4948 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4949#define accept innocuous_accept 4950 4951/* System header to define __stub macros and hopefully few prototypes, 4952 which can conflict with char accept (); below. 4953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4954 <limits.h> exists even on freestanding compilers. */ 4955 4956#ifdef __STDC__ 4957# include <limits.h> 4958#else 4959# include <assert.h> 4960#endif 4961 4962#undef accept 4963 4964/* Override any GCC internal prototype to avoid an error. 4965 Use char because int might match the return type of a GCC 4966 builtin and then its argument prototype would still apply. */ 4967#ifdef __cplusplus 4968extern "C" 4969#endif 4970char accept (); 4971/* The GNU C library defines this for functions which it implements 4972 to always fail with ENOSYS. Some functions are actually named 4973 something starting with __ and the normal name is an alias. */ 4974#if defined __stub_accept || defined __stub___accept 4975choke me 4976#endif 4977 4978int 4979main () 4980{ 4981return accept (); 4982 ; 4983 return 0; 4984} 4985_ACEOF 4986rm -f conftest.$ac_objext conftest$ac_exeext 4987if { (ac_try="$ac_link" 4988case "(($ac_try" in 4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4990 *) ac_try_echo=$ac_try;; 4991esac 4992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4993 (eval "$ac_link") 2>conftest.er1 4994 ac_status=$? 4995 grep -v '^ *+' conftest.er1 >conftest.err 4996 rm -f conftest.er1 4997 cat conftest.err >&5 4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4999 (exit $ac_status); } && { 5000 test -z "$ac_c_werror_flag" || 5001 test ! -s conftest.err 5002 } && test -s conftest$ac_exeext && 5003 $as_test_x conftest$ac_exeext; then 5004 ac_cv_func_accept=yes 5005else 5006 echo "$as_me: failed program was:" >&5 5007sed 's/^/| /' conftest.$ac_ext >&5 5008 5009 ac_cv_func_accept=no 5010fi 5011 5012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5013 conftest$ac_exeext conftest.$ac_ext 5014fi 5015{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5016echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5017if test $ac_cv_func_accept = yes; then 5018 tcl_checkNsl=0 5019else 5020 LIBS=$tk_oldLibs 5021fi 5022 5023 fi 5024 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5025echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5026if test "${ac_cv_func_gethostbyname+set}" = set; then 5027 echo $ECHO_N "(cached) $ECHO_C" >&6 5028else 5029 cat >conftest.$ac_ext <<_ACEOF 5030/* confdefs.h. */ 5031_ACEOF 5032cat confdefs.h >>conftest.$ac_ext 5033cat >>conftest.$ac_ext <<_ACEOF 5034/* end confdefs.h. */ 5035/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5036 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5037#define gethostbyname innocuous_gethostbyname 5038 5039/* System header to define __stub macros and hopefully few prototypes, 5040 which can conflict with char gethostbyname (); below. 5041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5042 <limits.h> exists even on freestanding compilers. */ 5043 5044#ifdef __STDC__ 5045# include <limits.h> 5046#else 5047# include <assert.h> 5048#endif 5049 5050#undef gethostbyname 5051 5052/* Override any GCC internal prototype to avoid an error. 5053 Use char because int might match the return type of a GCC 5054 builtin and then its argument prototype would still apply. */ 5055#ifdef __cplusplus 5056extern "C" 5057#endif 5058char gethostbyname (); 5059/* The GNU C library defines this for functions which it implements 5060 to always fail with ENOSYS. Some functions are actually named 5061 something starting with __ and the normal name is an alias. */ 5062#if defined __stub_gethostbyname || defined __stub___gethostbyname 5063choke me 5064#endif 5065 5066int 5067main () 5068{ 5069return gethostbyname (); 5070 ; 5071 return 0; 5072} 5073_ACEOF 5074rm -f conftest.$ac_objext conftest$ac_exeext 5075if { (ac_try="$ac_link" 5076case "(($ac_try" in 5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5078 *) ac_try_echo=$ac_try;; 5079esac 5080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5081 (eval "$ac_link") 2>conftest.er1 5082 ac_status=$? 5083 grep -v '^ *+' conftest.er1 >conftest.err 5084 rm -f conftest.er1 5085 cat conftest.err >&5 5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5087 (exit $ac_status); } && { 5088 test -z "$ac_c_werror_flag" || 5089 test ! -s conftest.err 5090 } && test -s conftest$ac_exeext && 5091 $as_test_x conftest$ac_exeext; then 5092 ac_cv_func_gethostbyname=yes 5093else 5094 echo "$as_me: failed program was:" >&5 5095sed 's/^/| /' conftest.$ac_ext >&5 5096 5097 ac_cv_func_gethostbyname=no 5098fi 5099 5100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5101 conftest$ac_exeext conftest.$ac_ext 5102fi 5103{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5104echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5105if test $ac_cv_func_gethostbyname = yes; then 5106 : 5107else 5108 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5109echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5110if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5111 echo $ECHO_N "(cached) $ECHO_C" >&6 5112else 5113 ac_check_lib_save_LIBS=$LIBS 5114LIBS="-lnsl $LIBS" 5115cat >conftest.$ac_ext <<_ACEOF 5116/* confdefs.h. */ 5117_ACEOF 5118cat confdefs.h >>conftest.$ac_ext 5119cat >>conftest.$ac_ext <<_ACEOF 5120/* end confdefs.h. */ 5121 5122/* Override any GCC internal prototype to avoid an error. 5123 Use char because int might match the return type of a GCC 5124 builtin and then its argument prototype would still apply. */ 5125#ifdef __cplusplus 5126extern "C" 5127#endif 5128char gethostbyname (); 5129int 5130main () 5131{ 5132return gethostbyname (); 5133 ; 5134 return 0; 5135} 5136_ACEOF 5137rm -f conftest.$ac_objext conftest$ac_exeext 5138if { (ac_try="$ac_link" 5139case "(($ac_try" in 5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5141 *) ac_try_echo=$ac_try;; 5142esac 5143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5144 (eval "$ac_link") 2>conftest.er1 5145 ac_status=$? 5146 grep -v '^ *+' conftest.er1 >conftest.err 5147 rm -f conftest.er1 5148 cat conftest.err >&5 5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5150 (exit $ac_status); } && { 5151 test -z "$ac_c_werror_flag" || 5152 test ! -s conftest.err 5153 } && test -s conftest$ac_exeext && 5154 $as_test_x conftest$ac_exeext; then 5155 ac_cv_lib_nsl_gethostbyname=yes 5156else 5157 echo "$as_me: failed program was:" >&5 5158sed 's/^/| /' conftest.$ac_ext >&5 5159 5160 ac_cv_lib_nsl_gethostbyname=no 5161fi 5162 5163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5164 conftest$ac_exeext conftest.$ac_ext 5165LIBS=$ac_check_lib_save_LIBS 5166fi 5167{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5168echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5169if test $ac_cv_lib_nsl_gethostbyname = yes; then 5170 LIBS="$LIBS -lnsl" 5171fi 5172 5173fi 5174 5175 5176 # TEA specific: Don't perform the eval of the libraries here because 5177 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5178 5179 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5180 5181 5182 5183 5184 { echo "$as_me:$LINENO: checking dirent.h" >&5 5185echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5186if test "${tcl_cv_dirent_h+set}" = set; then 5187 echo $ECHO_N "(cached) $ECHO_C" >&6 5188else 5189 5190 cat >conftest.$ac_ext <<_ACEOF 5191/* confdefs.h. */ 5192_ACEOF 5193cat confdefs.h >>conftest.$ac_ext 5194cat >>conftest.$ac_ext <<_ACEOF 5195/* end confdefs.h. */ 5196#include <sys/types.h> 5197#include <dirent.h> 5198int 5199main () 5200{ 5201 5202#ifndef _POSIX_SOURCE 5203# ifdef __Lynx__ 5204 /* 5205 * Generate compilation error to make the test fail: Lynx headers 5206 * are only valid if really in the POSIX environment. 5207 */ 5208 5209 missing_procedure(); 5210# endif 5211#endif 5212DIR *d; 5213struct dirent *entryPtr; 5214char *p; 5215d = opendir("foobar"); 5216entryPtr = readdir(d); 5217p = entryPtr->d_name; 5218closedir(d); 5219 5220 ; 5221 return 0; 5222} 5223_ACEOF 5224rm -f conftest.$ac_objext conftest$ac_exeext 5225if { (ac_try="$ac_link" 5226case "(($ac_try" in 5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5228 *) ac_try_echo=$ac_try;; 5229esac 5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5231 (eval "$ac_link") 2>conftest.er1 5232 ac_status=$? 5233 grep -v '^ *+' conftest.er1 >conftest.err 5234 rm -f conftest.er1 5235 cat conftest.err >&5 5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5237 (exit $ac_status); } && { 5238 test -z "$ac_c_werror_flag" || 5239 test ! -s conftest.err 5240 } && test -s conftest$ac_exeext && 5241 $as_test_x conftest$ac_exeext; then 5242 tcl_cv_dirent_h=yes 5243else 5244 echo "$as_me: failed program was:" >&5 5245sed 's/^/| /' conftest.$ac_ext >&5 5246 5247 tcl_cv_dirent_h=no 5248fi 5249 5250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5251 conftest$ac_exeext conftest.$ac_ext 5252fi 5253{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5254echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5255 5256 if test $tcl_cv_dirent_h = no; then 5257 5258cat >>confdefs.h <<\_ACEOF 5259#define NO_DIRENT_H 1 5260_ACEOF 5261 5262 fi 5263 5264 # TEA specific: 5265 if test "${ac_cv_header_errno_h+set}" = set; then 5266 { echo "$as_me:$LINENO: checking for errno.h" >&5 5267echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5268if test "${ac_cv_header_errno_h+set}" = set; then 5269 echo $ECHO_N "(cached) $ECHO_C" >&6 5270fi 5271{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5272echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5273else 5274 # Is the header compilable? 5275{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5276echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5277cat >conftest.$ac_ext <<_ACEOF 5278/* confdefs.h. */ 5279_ACEOF 5280cat confdefs.h >>conftest.$ac_ext 5281cat >>conftest.$ac_ext <<_ACEOF 5282/* end confdefs.h. */ 5283$ac_includes_default 5284#include <errno.h> 5285_ACEOF 5286rm -f conftest.$ac_objext 5287if { (ac_try="$ac_compile" 5288case "(($ac_try" in 5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5290 *) ac_try_echo=$ac_try;; 5291esac 5292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5293 (eval "$ac_compile") 2>conftest.er1 5294 ac_status=$? 5295 grep -v '^ *+' conftest.er1 >conftest.err 5296 rm -f conftest.er1 5297 cat conftest.err >&5 5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5299 (exit $ac_status); } && { 5300 test -z "$ac_c_werror_flag" || 5301 test ! -s conftest.err 5302 } && test -s conftest.$ac_objext; then 5303 ac_header_compiler=yes 5304else 5305 echo "$as_me: failed program was:" >&5 5306sed 's/^/| /' conftest.$ac_ext >&5 5307 5308 ac_header_compiler=no 5309fi 5310 5311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5312{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5313echo "${ECHO_T}$ac_header_compiler" >&6; } 5314 5315# Is the header present? 5316{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5317echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5318cat >conftest.$ac_ext <<_ACEOF 5319/* confdefs.h. */ 5320_ACEOF 5321cat confdefs.h >>conftest.$ac_ext 5322cat >>conftest.$ac_ext <<_ACEOF 5323/* end confdefs.h. */ 5324#include <errno.h> 5325_ACEOF 5326if { (ac_try="$ac_cpp conftest.$ac_ext" 5327case "(($ac_try" in 5328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5329 *) ac_try_echo=$ac_try;; 5330esac 5331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5333 ac_status=$? 5334 grep -v '^ *+' conftest.er1 >conftest.err 5335 rm -f conftest.er1 5336 cat conftest.err >&5 5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5338 (exit $ac_status); } >/dev/null && { 5339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5340 test ! -s conftest.err 5341 }; then 5342 ac_header_preproc=yes 5343else 5344 echo "$as_me: failed program was:" >&5 5345sed 's/^/| /' conftest.$ac_ext >&5 5346 5347 ac_header_preproc=no 5348fi 5349 5350rm -f conftest.err conftest.$ac_ext 5351{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5352echo "${ECHO_T}$ac_header_preproc" >&6; } 5353 5354# So? What about this header? 5355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5356 yes:no: ) 5357 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5358echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5359 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5360echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5361 ac_header_preproc=yes 5362 ;; 5363 no:yes:* ) 5364 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5365echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5366 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5367echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5368 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5369echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5370 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5371echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5372 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5373echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5374 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5375echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5376 5377 ;; 5378esac 5379{ echo "$as_me:$LINENO: checking for errno.h" >&5 5380echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5381if test "${ac_cv_header_errno_h+set}" = set; then 5382 echo $ECHO_N "(cached) $ECHO_C" >&6 5383else 5384 ac_cv_header_errno_h=$ac_header_preproc 5385fi 5386{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5387echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5388 5389fi 5390if test $ac_cv_header_errno_h = yes; then 5391 : 5392else 5393 5394cat >>confdefs.h <<\_ACEOF 5395#define NO_ERRNO_H 1 5396_ACEOF 5397 5398fi 5399 5400 5401 if test "${ac_cv_header_float_h+set}" = set; then 5402 { echo "$as_me:$LINENO: checking for float.h" >&5 5403echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5404if test "${ac_cv_header_float_h+set}" = set; then 5405 echo $ECHO_N "(cached) $ECHO_C" >&6 5406fi 5407{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5408echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5409else 5410 # Is the header compilable? 5411{ echo "$as_me:$LINENO: checking float.h usability" >&5 5412echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5413cat >conftest.$ac_ext <<_ACEOF 5414/* confdefs.h. */ 5415_ACEOF 5416cat confdefs.h >>conftest.$ac_ext 5417cat >>conftest.$ac_ext <<_ACEOF 5418/* end confdefs.h. */ 5419$ac_includes_default 5420#include <float.h> 5421_ACEOF 5422rm -f conftest.$ac_objext 5423if { (ac_try="$ac_compile" 5424case "(($ac_try" in 5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5426 *) ac_try_echo=$ac_try;; 5427esac 5428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5429 (eval "$ac_compile") 2>conftest.er1 5430 ac_status=$? 5431 grep -v '^ *+' conftest.er1 >conftest.err 5432 rm -f conftest.er1 5433 cat conftest.err >&5 5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5435 (exit $ac_status); } && { 5436 test -z "$ac_c_werror_flag" || 5437 test ! -s conftest.err 5438 } && test -s conftest.$ac_objext; then 5439 ac_header_compiler=yes 5440else 5441 echo "$as_me: failed program was:" >&5 5442sed 's/^/| /' conftest.$ac_ext >&5 5443 5444 ac_header_compiler=no 5445fi 5446 5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5448{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5449echo "${ECHO_T}$ac_header_compiler" >&6; } 5450 5451# Is the header present? 5452{ echo "$as_me:$LINENO: checking float.h presence" >&5 5453echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5454cat >conftest.$ac_ext <<_ACEOF 5455/* confdefs.h. */ 5456_ACEOF 5457cat confdefs.h >>conftest.$ac_ext 5458cat >>conftest.$ac_ext <<_ACEOF 5459/* end confdefs.h. */ 5460#include <float.h> 5461_ACEOF 5462if { (ac_try="$ac_cpp conftest.$ac_ext" 5463case "(($ac_try" in 5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5465 *) ac_try_echo=$ac_try;; 5466esac 5467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5469 ac_status=$? 5470 grep -v '^ *+' conftest.er1 >conftest.err 5471 rm -f conftest.er1 5472 cat conftest.err >&5 5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5474 (exit $ac_status); } >/dev/null && { 5475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5476 test ! -s conftest.err 5477 }; then 5478 ac_header_preproc=yes 5479else 5480 echo "$as_me: failed program was:" >&5 5481sed 's/^/| /' conftest.$ac_ext >&5 5482 5483 ac_header_preproc=no 5484fi 5485 5486rm -f conftest.err conftest.$ac_ext 5487{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5488echo "${ECHO_T}$ac_header_preproc" >&6; } 5489 5490# So? What about this header? 5491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5492 yes:no: ) 5493 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5494echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5495 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5496echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5497 ac_header_preproc=yes 5498 ;; 5499 no:yes:* ) 5500 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5501echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5502 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5503echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5504 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5505echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5506 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5507echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5508 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5509echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5510 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5511echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5512 5513 ;; 5514esac 5515{ echo "$as_me:$LINENO: checking for float.h" >&5 5516echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5517if test "${ac_cv_header_float_h+set}" = set; then 5518 echo $ECHO_N "(cached) $ECHO_C" >&6 5519else 5520 ac_cv_header_float_h=$ac_header_preproc 5521fi 5522{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5523echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5524 5525fi 5526if test $ac_cv_header_float_h = yes; then 5527 : 5528else 5529 5530cat >>confdefs.h <<\_ACEOF 5531#define NO_FLOAT_H 1 5532_ACEOF 5533 5534fi 5535 5536 5537 if test "${ac_cv_header_values_h+set}" = set; then 5538 { echo "$as_me:$LINENO: checking for values.h" >&5 5539echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5540if test "${ac_cv_header_values_h+set}" = set; then 5541 echo $ECHO_N "(cached) $ECHO_C" >&6 5542fi 5543{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5544echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5545else 5546 # Is the header compilable? 5547{ echo "$as_me:$LINENO: checking values.h usability" >&5 5548echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5549cat >conftest.$ac_ext <<_ACEOF 5550/* confdefs.h. */ 5551_ACEOF 5552cat confdefs.h >>conftest.$ac_ext 5553cat >>conftest.$ac_ext <<_ACEOF 5554/* end confdefs.h. */ 5555$ac_includes_default 5556#include <values.h> 5557_ACEOF 5558rm -f conftest.$ac_objext 5559if { (ac_try="$ac_compile" 5560case "(($ac_try" in 5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5562 *) ac_try_echo=$ac_try;; 5563esac 5564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5565 (eval "$ac_compile") 2>conftest.er1 5566 ac_status=$? 5567 grep -v '^ *+' conftest.er1 >conftest.err 5568 rm -f conftest.er1 5569 cat conftest.err >&5 5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5571 (exit $ac_status); } && { 5572 test -z "$ac_c_werror_flag" || 5573 test ! -s conftest.err 5574 } && test -s conftest.$ac_objext; then 5575 ac_header_compiler=yes 5576else 5577 echo "$as_me: failed program was:" >&5 5578sed 's/^/| /' conftest.$ac_ext >&5 5579 5580 ac_header_compiler=no 5581fi 5582 5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5584{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5585echo "${ECHO_T}$ac_header_compiler" >&6; } 5586 5587# Is the header present? 5588{ echo "$as_me:$LINENO: checking values.h presence" >&5 5589echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5590cat >conftest.$ac_ext <<_ACEOF 5591/* confdefs.h. */ 5592_ACEOF 5593cat confdefs.h >>conftest.$ac_ext 5594cat >>conftest.$ac_ext <<_ACEOF 5595/* end confdefs.h. */ 5596#include <values.h> 5597_ACEOF 5598if { (ac_try="$ac_cpp conftest.$ac_ext" 5599case "(($ac_try" in 5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5601 *) ac_try_echo=$ac_try;; 5602esac 5603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5605 ac_status=$? 5606 grep -v '^ *+' conftest.er1 >conftest.err 5607 rm -f conftest.er1 5608 cat conftest.err >&5 5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5610 (exit $ac_status); } >/dev/null && { 5611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5612 test ! -s conftest.err 5613 }; then 5614 ac_header_preproc=yes 5615else 5616 echo "$as_me: failed program was:" >&5 5617sed 's/^/| /' conftest.$ac_ext >&5 5618 5619 ac_header_preproc=no 5620fi 5621 5622rm -f conftest.err conftest.$ac_ext 5623{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5624echo "${ECHO_T}$ac_header_preproc" >&6; } 5625 5626# So? What about this header? 5627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5628 yes:no: ) 5629 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5630echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5631 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5632echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5633 ac_header_preproc=yes 5634 ;; 5635 no:yes:* ) 5636 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5637echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5638 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5639echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5640 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5641echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5642 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5643echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5644 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5645echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5646 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5647echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5648 5649 ;; 5650esac 5651{ echo "$as_me:$LINENO: checking for values.h" >&5 5652echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5653if test "${ac_cv_header_values_h+set}" = set; then 5654 echo $ECHO_N "(cached) $ECHO_C" >&6 5655else 5656 ac_cv_header_values_h=$ac_header_preproc 5657fi 5658{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5659echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5660 5661fi 5662if test $ac_cv_header_values_h = yes; then 5663 : 5664else 5665 5666cat >>confdefs.h <<\_ACEOF 5667#define NO_VALUES_H 1 5668_ACEOF 5669 5670fi 5671 5672 5673 if test "${ac_cv_header_limits_h+set}" = set; then 5674 { echo "$as_me:$LINENO: checking for limits.h" >&5 5675echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5676if test "${ac_cv_header_limits_h+set}" = set; then 5677 echo $ECHO_N "(cached) $ECHO_C" >&6 5678fi 5679{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5680echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5681else 5682 # Is the header compilable? 5683{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5684echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5685cat >conftest.$ac_ext <<_ACEOF 5686/* confdefs.h. */ 5687_ACEOF 5688cat confdefs.h >>conftest.$ac_ext 5689cat >>conftest.$ac_ext <<_ACEOF 5690/* end confdefs.h. */ 5691$ac_includes_default 5692#include <limits.h> 5693_ACEOF 5694rm -f conftest.$ac_objext 5695if { (ac_try="$ac_compile" 5696case "(($ac_try" in 5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5698 *) ac_try_echo=$ac_try;; 5699esac 5700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5701 (eval "$ac_compile") 2>conftest.er1 5702 ac_status=$? 5703 grep -v '^ *+' conftest.er1 >conftest.err 5704 rm -f conftest.er1 5705 cat conftest.err >&5 5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5707 (exit $ac_status); } && { 5708 test -z "$ac_c_werror_flag" || 5709 test ! -s conftest.err 5710 } && test -s conftest.$ac_objext; then 5711 ac_header_compiler=yes 5712else 5713 echo "$as_me: failed program was:" >&5 5714sed 's/^/| /' conftest.$ac_ext >&5 5715 5716 ac_header_compiler=no 5717fi 5718 5719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5720{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5721echo "${ECHO_T}$ac_header_compiler" >&6; } 5722 5723# Is the header present? 5724{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5725echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5726cat >conftest.$ac_ext <<_ACEOF 5727/* confdefs.h. */ 5728_ACEOF 5729cat confdefs.h >>conftest.$ac_ext 5730cat >>conftest.$ac_ext <<_ACEOF 5731/* end confdefs.h. */ 5732#include <limits.h> 5733_ACEOF 5734if { (ac_try="$ac_cpp conftest.$ac_ext" 5735case "(($ac_try" in 5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5737 *) ac_try_echo=$ac_try;; 5738esac 5739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5741 ac_status=$? 5742 grep -v '^ *+' conftest.er1 >conftest.err 5743 rm -f conftest.er1 5744 cat conftest.err >&5 5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5746 (exit $ac_status); } >/dev/null && { 5747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5748 test ! -s conftest.err 5749 }; then 5750 ac_header_preproc=yes 5751else 5752 echo "$as_me: failed program was:" >&5 5753sed 's/^/| /' conftest.$ac_ext >&5 5754 5755 ac_header_preproc=no 5756fi 5757 5758rm -f conftest.err conftest.$ac_ext 5759{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5760echo "${ECHO_T}$ac_header_preproc" >&6; } 5761 5762# So? What about this header? 5763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5764 yes:no: ) 5765 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5766echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5767 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5768echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5769 ac_header_preproc=yes 5770 ;; 5771 no:yes:* ) 5772 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5773echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5774 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5775echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5776 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5777echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5778 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5779echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5780 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5781echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5782 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5783echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5784 5785 ;; 5786esac 5787{ echo "$as_me:$LINENO: checking for limits.h" >&5 5788echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5789if test "${ac_cv_header_limits_h+set}" = set; then 5790 echo $ECHO_N "(cached) $ECHO_C" >&6 5791else 5792 ac_cv_header_limits_h=$ac_header_preproc 5793fi 5794{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5795echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5796 5797fi 5798if test $ac_cv_header_limits_h = yes; then 5799 5800cat >>confdefs.h <<\_ACEOF 5801#define HAVE_LIMITS_H 1 5802_ACEOF 5803 5804else 5805 5806cat >>confdefs.h <<\_ACEOF 5807#define NO_LIMITS_H 1 5808_ACEOF 5809 5810fi 5811 5812 5813 if test "${ac_cv_header_stdlib_h+set}" = set; then 5814 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5815echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5816if test "${ac_cv_header_stdlib_h+set}" = set; then 5817 echo $ECHO_N "(cached) $ECHO_C" >&6 5818fi 5819{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5820echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5821else 5822 # Is the header compilable? 5823{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5824echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5825cat >conftest.$ac_ext <<_ACEOF 5826/* confdefs.h. */ 5827_ACEOF 5828cat confdefs.h >>conftest.$ac_ext 5829cat >>conftest.$ac_ext <<_ACEOF 5830/* end confdefs.h. */ 5831$ac_includes_default 5832#include <stdlib.h> 5833_ACEOF 5834rm -f conftest.$ac_objext 5835if { (ac_try="$ac_compile" 5836case "(($ac_try" in 5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5838 *) ac_try_echo=$ac_try;; 5839esac 5840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5841 (eval "$ac_compile") 2>conftest.er1 5842 ac_status=$? 5843 grep -v '^ *+' conftest.er1 >conftest.err 5844 rm -f conftest.er1 5845 cat conftest.err >&5 5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5847 (exit $ac_status); } && { 5848 test -z "$ac_c_werror_flag" || 5849 test ! -s conftest.err 5850 } && test -s conftest.$ac_objext; then 5851 ac_header_compiler=yes 5852else 5853 echo "$as_me: failed program was:" >&5 5854sed 's/^/| /' conftest.$ac_ext >&5 5855 5856 ac_header_compiler=no 5857fi 5858 5859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5860{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5861echo "${ECHO_T}$ac_header_compiler" >&6; } 5862 5863# Is the header present? 5864{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5865echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 5866cat >conftest.$ac_ext <<_ACEOF 5867/* confdefs.h. */ 5868_ACEOF 5869cat confdefs.h >>conftest.$ac_ext 5870cat >>conftest.$ac_ext <<_ACEOF 5871/* end confdefs.h. */ 5872#include <stdlib.h> 5873_ACEOF 5874if { (ac_try="$ac_cpp conftest.$ac_ext" 5875case "(($ac_try" in 5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5877 *) ac_try_echo=$ac_try;; 5878esac 5879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5881 ac_status=$? 5882 grep -v '^ *+' conftest.er1 >conftest.err 5883 rm -f conftest.er1 5884 cat conftest.err >&5 5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5886 (exit $ac_status); } >/dev/null && { 5887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5888 test ! -s conftest.err 5889 }; then 5890 ac_header_preproc=yes 5891else 5892 echo "$as_me: failed program was:" >&5 5893sed 's/^/| /' conftest.$ac_ext >&5 5894 5895 ac_header_preproc=no 5896fi 5897 5898rm -f conftest.err conftest.$ac_ext 5899{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5900echo "${ECHO_T}$ac_header_preproc" >&6; } 5901 5902# So? What about this header? 5903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5904 yes:no: ) 5905 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5906echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5907 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5908echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5909 ac_header_preproc=yes 5910 ;; 5911 no:yes:* ) 5912 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5913echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5914 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5915echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5916 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5917echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5918 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5919echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5920 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5921echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5922 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5923echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5924 5925 ;; 5926esac 5927{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 5928echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5929if test "${ac_cv_header_stdlib_h+set}" = set; then 5930 echo $ECHO_N "(cached) $ECHO_C" >&6 5931else 5932 ac_cv_header_stdlib_h=$ac_header_preproc 5933fi 5934{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5935echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5936 5937fi 5938if test $ac_cv_header_stdlib_h = yes; then 5939 tcl_ok=1 5940else 5941 tcl_ok=0 5942fi 5943 5944 5945 cat >conftest.$ac_ext <<_ACEOF 5946/* confdefs.h. */ 5947_ACEOF 5948cat confdefs.h >>conftest.$ac_ext 5949cat >>conftest.$ac_ext <<_ACEOF 5950/* end confdefs.h. */ 5951#include <stdlib.h> 5952 5953_ACEOF 5954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5955 $EGREP "strtol" >/dev/null 2>&1; then 5956 : 5957else 5958 tcl_ok=0 5959fi 5960rm -f -r conftest* 5961 5962 cat >conftest.$ac_ext <<_ACEOF 5963/* confdefs.h. */ 5964_ACEOF 5965cat confdefs.h >>conftest.$ac_ext 5966cat >>conftest.$ac_ext <<_ACEOF 5967/* end confdefs.h. */ 5968#include <stdlib.h> 5969 5970_ACEOF 5971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5972 $EGREP "strtoul" >/dev/null 2>&1; then 5973 : 5974else 5975 tcl_ok=0 5976fi 5977rm -f -r conftest* 5978 5979 cat >conftest.$ac_ext <<_ACEOF 5980/* confdefs.h. */ 5981_ACEOF 5982cat confdefs.h >>conftest.$ac_ext 5983cat >>conftest.$ac_ext <<_ACEOF 5984/* end confdefs.h. */ 5985#include <stdlib.h> 5986 5987_ACEOF 5988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5989 $EGREP "strtod" >/dev/null 2>&1; then 5990 : 5991else 5992 tcl_ok=0 5993fi 5994rm -f -r conftest* 5995 5996 if test $tcl_ok = 0; then 5997 5998cat >>confdefs.h <<\_ACEOF 5999#define NO_STDLIB_H 1 6000_ACEOF 6001 6002 fi 6003 if test "${ac_cv_header_string_h+set}" = set; then 6004 { echo "$as_me:$LINENO: checking for string.h" >&5 6005echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6006if test "${ac_cv_header_string_h+set}" = set; then 6007 echo $ECHO_N "(cached) $ECHO_C" >&6 6008fi 6009{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6010echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6011else 6012 # Is the header compilable? 6013{ echo "$as_me:$LINENO: checking string.h usability" >&5 6014echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6015cat >conftest.$ac_ext <<_ACEOF 6016/* confdefs.h. */ 6017_ACEOF 6018cat confdefs.h >>conftest.$ac_ext 6019cat >>conftest.$ac_ext <<_ACEOF 6020/* end confdefs.h. */ 6021$ac_includes_default 6022#include <string.h> 6023_ACEOF 6024rm -f conftest.$ac_objext 6025if { (ac_try="$ac_compile" 6026case "(($ac_try" in 6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6028 *) ac_try_echo=$ac_try;; 6029esac 6030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6031 (eval "$ac_compile") 2>conftest.er1 6032 ac_status=$? 6033 grep -v '^ *+' conftest.er1 >conftest.err 6034 rm -f conftest.er1 6035 cat conftest.err >&5 6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6037 (exit $ac_status); } && { 6038 test -z "$ac_c_werror_flag" || 6039 test ! -s conftest.err 6040 } && test -s conftest.$ac_objext; then 6041 ac_header_compiler=yes 6042else 6043 echo "$as_me: failed program was:" >&5 6044sed 's/^/| /' conftest.$ac_ext >&5 6045 6046 ac_header_compiler=no 6047fi 6048 6049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6050{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6051echo "${ECHO_T}$ac_header_compiler" >&6; } 6052 6053# Is the header present? 6054{ echo "$as_me:$LINENO: checking string.h presence" >&5 6055echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6056cat >conftest.$ac_ext <<_ACEOF 6057/* confdefs.h. */ 6058_ACEOF 6059cat confdefs.h >>conftest.$ac_ext 6060cat >>conftest.$ac_ext <<_ACEOF 6061/* end confdefs.h. */ 6062#include <string.h> 6063_ACEOF 6064if { (ac_try="$ac_cpp conftest.$ac_ext" 6065case "(($ac_try" in 6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6067 *) ac_try_echo=$ac_try;; 6068esac 6069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6071 ac_status=$? 6072 grep -v '^ *+' conftest.er1 >conftest.err 6073 rm -f conftest.er1 6074 cat conftest.err >&5 6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6076 (exit $ac_status); } >/dev/null && { 6077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6078 test ! -s conftest.err 6079 }; then 6080 ac_header_preproc=yes 6081else 6082 echo "$as_me: failed program was:" >&5 6083sed 's/^/| /' conftest.$ac_ext >&5 6084 6085 ac_header_preproc=no 6086fi 6087 6088rm -f conftest.err conftest.$ac_ext 6089{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6090echo "${ECHO_T}$ac_header_preproc" >&6; } 6091 6092# So? What about this header? 6093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6094 yes:no: ) 6095 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6096echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6097 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6098echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6099 ac_header_preproc=yes 6100 ;; 6101 no:yes:* ) 6102 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6103echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6104 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6105echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6106 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6107echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6108 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6109echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6110 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6111echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6112 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6113echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6114 6115 ;; 6116esac 6117{ echo "$as_me:$LINENO: checking for string.h" >&5 6118echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6119if test "${ac_cv_header_string_h+set}" = set; then 6120 echo $ECHO_N "(cached) $ECHO_C" >&6 6121else 6122 ac_cv_header_string_h=$ac_header_preproc 6123fi 6124{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6125echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6126 6127fi 6128if test $ac_cv_header_string_h = yes; then 6129 tcl_ok=1 6130else 6131 tcl_ok=0 6132fi 6133 6134 6135 cat >conftest.$ac_ext <<_ACEOF 6136/* confdefs.h. */ 6137_ACEOF 6138cat confdefs.h >>conftest.$ac_ext 6139cat >>conftest.$ac_ext <<_ACEOF 6140/* end confdefs.h. */ 6141#include <string.h> 6142 6143_ACEOF 6144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6145 $EGREP "strstr" >/dev/null 2>&1; then 6146 : 6147else 6148 tcl_ok=0 6149fi 6150rm -f -r conftest* 6151 6152 cat >conftest.$ac_ext <<_ACEOF 6153/* confdefs.h. */ 6154_ACEOF 6155cat confdefs.h >>conftest.$ac_ext 6156cat >>conftest.$ac_ext <<_ACEOF 6157/* end confdefs.h. */ 6158#include <string.h> 6159 6160_ACEOF 6161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6162 $EGREP "strerror" >/dev/null 2>&1; then 6163 : 6164else 6165 tcl_ok=0 6166fi 6167rm -f -r conftest* 6168 6169 6170 # See also memmove check below for a place where NO_STRING_H can be 6171 # set and why. 6172 6173 if test $tcl_ok = 0; then 6174 6175cat >>confdefs.h <<\_ACEOF 6176#define NO_STRING_H 1 6177_ACEOF 6178 6179 fi 6180 6181 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6182 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6183echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6184if test "${ac_cv_header_sys_wait_h+set}" = set; then 6185 echo $ECHO_N "(cached) $ECHO_C" >&6 6186fi 6187{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6188echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6189else 6190 # Is the header compilable? 6191{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6192echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6193cat >conftest.$ac_ext <<_ACEOF 6194/* confdefs.h. */ 6195_ACEOF 6196cat confdefs.h >>conftest.$ac_ext 6197cat >>conftest.$ac_ext <<_ACEOF 6198/* end confdefs.h. */ 6199$ac_includes_default 6200#include <sys/wait.h> 6201_ACEOF 6202rm -f conftest.$ac_objext 6203if { (ac_try="$ac_compile" 6204case "(($ac_try" in 6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6206 *) ac_try_echo=$ac_try;; 6207esac 6208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6209 (eval "$ac_compile") 2>conftest.er1 6210 ac_status=$? 6211 grep -v '^ *+' conftest.er1 >conftest.err 6212 rm -f conftest.er1 6213 cat conftest.err >&5 6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6215 (exit $ac_status); } && { 6216 test -z "$ac_c_werror_flag" || 6217 test ! -s conftest.err 6218 } && test -s conftest.$ac_objext; then 6219 ac_header_compiler=yes 6220else 6221 echo "$as_me: failed program was:" >&5 6222sed 's/^/| /' conftest.$ac_ext >&5 6223 6224 ac_header_compiler=no 6225fi 6226 6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6228{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6229echo "${ECHO_T}$ac_header_compiler" >&6; } 6230 6231# Is the header present? 6232{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6233echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6234cat >conftest.$ac_ext <<_ACEOF 6235/* confdefs.h. */ 6236_ACEOF 6237cat confdefs.h >>conftest.$ac_ext 6238cat >>conftest.$ac_ext <<_ACEOF 6239/* end confdefs.h. */ 6240#include <sys/wait.h> 6241_ACEOF 6242if { (ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 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); } >/dev/null && { 6255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6256 test ! -s conftest.err 6257 }; then 6258 ac_header_preproc=yes 6259else 6260 echo "$as_me: failed program was:" >&5 6261sed 's/^/| /' conftest.$ac_ext >&5 6262 6263 ac_header_preproc=no 6264fi 6265 6266rm -f conftest.err conftest.$ac_ext 6267{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6268echo "${ECHO_T}$ac_header_preproc" >&6; } 6269 6270# So? What about this header? 6271case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6272 yes:no: ) 6273 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6274echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6275 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6276echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6277 ac_header_preproc=yes 6278 ;; 6279 no:yes:* ) 6280 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6281echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6282 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6283echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6284 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6285echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6286 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6287echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6288 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6289echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6290 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6291echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6292 6293 ;; 6294esac 6295{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6296echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6297if test "${ac_cv_header_sys_wait_h+set}" = set; then 6298 echo $ECHO_N "(cached) $ECHO_C" >&6 6299else 6300 ac_cv_header_sys_wait_h=$ac_header_preproc 6301fi 6302{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6303echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6304 6305fi 6306if test $ac_cv_header_sys_wait_h = yes; then 6307 : 6308else 6309 6310cat >>confdefs.h <<\_ACEOF 6311#define NO_SYS_WAIT_H 1 6312_ACEOF 6313 6314fi 6315 6316 6317 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6318 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6319echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6320if test "${ac_cv_header_dlfcn_h+set}" = set; then 6321 echo $ECHO_N "(cached) $ECHO_C" >&6 6322fi 6323{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6324echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6325else 6326 # Is the header compilable? 6327{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6328echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6329cat >conftest.$ac_ext <<_ACEOF 6330/* confdefs.h. */ 6331_ACEOF 6332cat confdefs.h >>conftest.$ac_ext 6333cat >>conftest.$ac_ext <<_ACEOF 6334/* end confdefs.h. */ 6335$ac_includes_default 6336#include <dlfcn.h> 6337_ACEOF 6338rm -f conftest.$ac_objext 6339if { (ac_try="$ac_compile" 6340case "(($ac_try" in 6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6342 *) ac_try_echo=$ac_try;; 6343esac 6344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6345 (eval "$ac_compile") 2>conftest.er1 6346 ac_status=$? 6347 grep -v '^ *+' conftest.er1 >conftest.err 6348 rm -f conftest.er1 6349 cat conftest.err >&5 6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6351 (exit $ac_status); } && { 6352 test -z "$ac_c_werror_flag" || 6353 test ! -s conftest.err 6354 } && test -s conftest.$ac_objext; then 6355 ac_header_compiler=yes 6356else 6357 echo "$as_me: failed program was:" >&5 6358sed 's/^/| /' conftest.$ac_ext >&5 6359 6360 ac_header_compiler=no 6361fi 6362 6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6364{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6365echo "${ECHO_T}$ac_header_compiler" >&6; } 6366 6367# Is the header present? 6368{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6369echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6370cat >conftest.$ac_ext <<_ACEOF 6371/* confdefs.h. */ 6372_ACEOF 6373cat confdefs.h >>conftest.$ac_ext 6374cat >>conftest.$ac_ext <<_ACEOF 6375/* end confdefs.h. */ 6376#include <dlfcn.h> 6377_ACEOF 6378if { (ac_try="$ac_cpp conftest.$ac_ext" 6379case "(($ac_try" in 6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6381 *) ac_try_echo=$ac_try;; 6382esac 6383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6385 ac_status=$? 6386 grep -v '^ *+' conftest.er1 >conftest.err 6387 rm -f conftest.er1 6388 cat conftest.err >&5 6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6390 (exit $ac_status); } >/dev/null && { 6391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6392 test ! -s conftest.err 6393 }; then 6394 ac_header_preproc=yes 6395else 6396 echo "$as_me: failed program was:" >&5 6397sed 's/^/| /' conftest.$ac_ext >&5 6398 6399 ac_header_preproc=no 6400fi 6401 6402rm -f conftest.err conftest.$ac_ext 6403{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6404echo "${ECHO_T}$ac_header_preproc" >&6; } 6405 6406# So? What about this header? 6407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6408 yes:no: ) 6409 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6410echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6411 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6412echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6413 ac_header_preproc=yes 6414 ;; 6415 no:yes:* ) 6416 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6417echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6418 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6419echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6420 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6421echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6422 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6423echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6424 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6425echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6426 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6427echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6428 6429 ;; 6430esac 6431{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6432echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6433if test "${ac_cv_header_dlfcn_h+set}" = set; then 6434 echo $ECHO_N "(cached) $ECHO_C" >&6 6435else 6436 ac_cv_header_dlfcn_h=$ac_header_preproc 6437fi 6438{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6439echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6440 6441fi 6442if test $ac_cv_header_dlfcn_h = yes; then 6443 : 6444else 6445 6446cat >>confdefs.h <<\_ACEOF 6447#define NO_DLFCN_H 1 6448_ACEOF 6449 6450fi 6451 6452 6453 6454 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6455 6456for ac_header in sys/param.h 6457do 6458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6460 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6463 echo $ECHO_N "(cached) $ECHO_C" >&6 6464fi 6465ac_res=`eval echo '${'$as_ac_Header'}'` 6466 { echo "$as_me:$LINENO: result: $ac_res" >&5 6467echo "${ECHO_T}$ac_res" >&6; } 6468else 6469 # Is the header compilable? 6470{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6471echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6472cat >conftest.$ac_ext <<_ACEOF 6473/* confdefs.h. */ 6474_ACEOF 6475cat confdefs.h >>conftest.$ac_ext 6476cat >>conftest.$ac_ext <<_ACEOF 6477/* end confdefs.h. */ 6478$ac_includes_default 6479#include <$ac_header> 6480_ACEOF 6481rm -f conftest.$ac_objext 6482if { (ac_try="$ac_compile" 6483case "(($ac_try" in 6484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6485 *) ac_try_echo=$ac_try;; 6486esac 6487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6488 (eval "$ac_compile") 2>conftest.er1 6489 ac_status=$? 6490 grep -v '^ *+' conftest.er1 >conftest.err 6491 rm -f conftest.er1 6492 cat conftest.err >&5 6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6494 (exit $ac_status); } && { 6495 test -z "$ac_c_werror_flag" || 6496 test ! -s conftest.err 6497 } && test -s conftest.$ac_objext; then 6498 ac_header_compiler=yes 6499else 6500 echo "$as_me: failed program was:" >&5 6501sed 's/^/| /' conftest.$ac_ext >&5 6502 6503 ac_header_compiler=no 6504fi 6505 6506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6507{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6508echo "${ECHO_T}$ac_header_compiler" >&6; } 6509 6510# Is the header present? 6511{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6512echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6513cat >conftest.$ac_ext <<_ACEOF 6514/* confdefs.h. */ 6515_ACEOF 6516cat confdefs.h >>conftest.$ac_ext 6517cat >>conftest.$ac_ext <<_ACEOF 6518/* end confdefs.h. */ 6519#include <$ac_header> 6520_ACEOF 6521if { (ac_try="$ac_cpp conftest.$ac_ext" 6522case "(($ac_try" in 6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6524 *) ac_try_echo=$ac_try;; 6525esac 6526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6528 ac_status=$? 6529 grep -v '^ *+' conftest.er1 >conftest.err 6530 rm -f conftest.er1 6531 cat conftest.err >&5 6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6533 (exit $ac_status); } >/dev/null && { 6534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6535 test ! -s conftest.err 6536 }; then 6537 ac_header_preproc=yes 6538else 6539 echo "$as_me: failed program was:" >&5 6540sed 's/^/| /' conftest.$ac_ext >&5 6541 6542 ac_header_preproc=no 6543fi 6544 6545rm -f conftest.err conftest.$ac_ext 6546{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6547echo "${ECHO_T}$ac_header_preproc" >&6; } 6548 6549# So? What about this header? 6550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6551 yes:no: ) 6552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6553echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6555echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6556 ac_header_preproc=yes 6557 ;; 6558 no:yes:* ) 6559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6560echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6562echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6564echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6566echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6568echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6570echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6571 6572 ;; 6573esac 6574{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6577 echo $ECHO_N "(cached) $ECHO_C" >&6 6578else 6579 eval "$as_ac_Header=\$ac_header_preproc" 6580fi 6581ac_res=`eval echo '${'$as_ac_Header'}'` 6582 { echo "$as_me:$LINENO: result: $ac_res" >&5 6583echo "${ECHO_T}$ac_res" >&6; } 6584 6585fi 6586if test `eval echo '${'$as_ac_Header'}'` = yes; then 6587 cat >>confdefs.h <<_ACEOF 6588#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6589_ACEOF 6590 6591fi 6592 6593done 6594 6595 6596 # Let the user call this, because if it triggers, they will 6597 # need a compat/strtod.c that is correct. Users can also 6598 # use Tcl_GetDouble(FromObj) instead. 6599 #TEA_BUGGY_STRTOD 6600 fi 6601 6602JPEG_CC=$CC 6603 6604#----------------------------------------------------------------------- 6605# Specify the C source files to compile in TEA_ADD_SOURCES, 6606# public headers that need to be installed in TEA_ADD_HEADERS, 6607# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6608# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6609# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6610# and PKG_TCL_SOURCES. 6611#----------------------------------------------------------------------- 6612 6613 6614 vars="jpegtcl.c jpegtclStubInit.c" 6615 for i in $vars; do 6616 case $i in 6617 \$*) 6618 # allow $-var names 6619 PKG_SOURCES="$PKG_SOURCES $i" 6620 PKG_OBJECTS="$PKG_OBJECTS $i" 6621 ;; 6622 *) 6623 # check for existence - allows for generic/win/unix VPATH 6624 # To add more dirs here (like 'src'), you have to update VPATH 6625 # in Makefile.in as well 6626 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6627 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6628 -a ! -f "${srcdir}/macosx/$i" \ 6629 ; then 6630 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6631echo "$as_me: error: could not find source file '$i'" >&2;} 6632 { (exit 1); exit 1; }; } 6633 fi 6634 PKG_SOURCES="$PKG_SOURCES $i" 6635 # this assumes it is in a VPATH dir 6636 i=`basename $i` 6637 # handle user calling this before or after TEA_SETUP_COMPILER 6638 if test x"${OBJEXT}" != x ; then 6639 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6640 else 6641 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6642 fi 6643 PKG_OBJECTS="$PKG_OBJECTS $j" 6644 ;; 6645 esac 6646 done 6647 6648 6649 6650 6651 6652 vars=" 6653 ../compat/libjpeg/jcapimin.c ../compat/libjpeg/jcapistd.c ../compat/libjpeg/jccoefct.c 6654 ../compat/libjpeg/jccolor.c ../compat/libjpeg/jcdctmgr.c ../compat/libjpeg/jchuff.c 6655 ../compat/libjpeg/jcinit.c ../compat/libjpeg/jcmainct.c ../compat/libjpeg/jcmarker.c 6656 ../compat/libjpeg/jcmaster.c ../compat/libjpeg/jcomapi.c ../compat/libjpeg/jcparam.c 6657 ../compat/libjpeg/jcarith.c ../compat/libjpeg/jcprepct.c ../compat/libjpeg/jcsample.c 6658 ../compat/libjpeg/jctrans.c ../compat/libjpeg/jdapimin.c ../compat/libjpeg/jdapistd.c 6659 ../compat/libjpeg/jdatadst.c ../compat/libjpeg/jdatasrc.c ../compat/libjpeg/jdcoefct.c 6660 ../compat/libjpeg/jdcolor.c ../compat/libjpeg/jddctmgr.c ../compat/libjpeg/jdhuff.c 6661 ../compat/libjpeg/jdinput.c ../compat/libjpeg/jdmainct.c ../compat/libjpeg/jdmarker.c 6662 ../compat/libjpeg/jdmaster.c ../compat/libjpeg/jdmerge.c ../compat/libjpeg/jdarith.c 6663 ../compat/libjpeg/jdpostct.c ../compat/libjpeg/jdsample.c ../compat/libjpeg/jdtrans.c 6664 ../compat/libjpeg/jerror.c ../compat/libjpeg/jfdctflt.c ../compat/libjpeg/jfdctfst.c 6665 ../compat/libjpeg/jfdctint.c ../compat/libjpeg/jidctflt.c ../compat/libjpeg/jidctfst.c 6666 ../compat/libjpeg/jidctint.c ../compat/libjpeg/jaricom.c ../compat/libjpeg/jquant1.c 6667 ../compat/libjpeg/jquant2.c ../compat/libjpeg/jutils.c ../compat/libjpeg/jmemmgr.c 6668 ../compat/libjpeg/jmemansi.c 6669" 6670 for i in $vars; do 6671 case $i in 6672 \$*) 6673 # allow $-var names 6674 PKG_SOURCES="$PKG_SOURCES $i" 6675 PKG_OBJECTS="$PKG_OBJECTS $i" 6676 ;; 6677 *) 6678 # check for existence - allows for generic/win/unix VPATH 6679 # To add more dirs here (like 'src'), you have to update VPATH 6680 # in Makefile.in as well 6681 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6682 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6683 -a ! -f "${srcdir}/macosx/$i" \ 6684 ; then 6685 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6686echo "$as_me: error: could not find source file '$i'" >&2;} 6687 { (exit 1); exit 1; }; } 6688 fi 6689 PKG_SOURCES="$PKG_SOURCES $i" 6690 # this assumes it is in a VPATH dir 6691 i=`basename $i` 6692 # handle user calling this before or after TEA_SETUP_COMPILER 6693 if test x"${OBJEXT}" != x ; then 6694 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6695 else 6696 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6697 fi 6698 PKG_OBJECTS="$PKG_OBJECTS $j" 6699 ;; 6700 esac 6701 done 6702 6703 6704 6705 6706 6707 vars="jpegtcl.h jpegtclDecls.h" 6708 for i in $vars; do 6709 # check for existence, be strict because it is installed 6710 if test ! -f "${srcdir}/$i" ; then 6711 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6712echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6713 { (exit 1); exit 1; }; } 6714 fi 6715 PKG_HEADERS="$PKG_HEADERS $i" 6716 done 6717 6718 6719 6720 6721 vars="-I\"`\${CYGPATH} \${srcdir}`\"" 6722 for i in $vars; do 6723 PKG_INCLUDES="$PKG_INCLUDES $i" 6724 done 6725 6726 6727 6728 vars="-I\"./libjpeg\"" 6729 for i in $vars; do 6730 PKG_INCLUDES="$PKG_INCLUDES $i" 6731 done 6732 6733 6734 6735 vars="" 6736 for i in $vars; do 6737 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6738 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6739 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6740 fi 6741 PKG_LIBS="$PKG_LIBS $i" 6742 done 6743 6744 6745 6746 PKG_CFLAGS="$PKG_CFLAGS " 6747 6748 6749 6750 vars="jpegtclStubLib.c" 6751 for i in $vars; do 6752 # check for existence - allows for generic/win/unix VPATH 6753 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6754 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6755 -a ! -f "${srcdir}/macosx/$i" \ 6756 ; then 6757 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6758echo "$as_me: error: could not find stub source file '$i'" >&2;} 6759 { (exit 1); exit 1; }; } 6760 fi 6761 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6762 # this assumes it is in a VPATH dir 6763 i=`basename $i` 6764 # handle user calling this before or after TEA_SETUP_COMPILER 6765 if test x"${OBJEXT}" != x ; then 6766 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6767 else 6768 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6769 fi 6770 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6771 done 6772 6773 6774 6775 6776 vars="jpegtclStubLib.c" 6777 for i in $vars; do 6778 case $i in 6779 \$*) 6780 # allow $-var names 6781 PKG_SOURCES="$PKG_SOURCES $i" 6782 PKG_OBJECTS="$PKG_OBJECTS $i" 6783 ;; 6784 *) 6785 # check for existence - allows for generic/win/unix VPATH 6786 # To add more dirs here (like 'src'), you have to update VPATH 6787 # in Makefile.in as well 6788 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6789 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6790 -a ! -f "${srcdir}/macosx/$i" \ 6791 ; then 6792 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6793echo "$as_me: error: could not find source file '$i'" >&2;} 6794 { (exit 1); exit 1; }; } 6795 fi 6796 PKG_SOURCES="$PKG_SOURCES $i" 6797 # this assumes it is in a VPATH dir 6798 i=`basename $i` 6799 # handle user calling this before or after TEA_SETUP_COMPILER 6800 if test x"${OBJEXT}" != x ; then 6801 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6802 else 6803 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6804 fi 6805 PKG_OBJECTS="$PKG_OBJECTS $j" 6806 ;; 6807 esac 6808 done 6809 6810 6811 6812 6813 vars="" 6814 for i in $vars; do 6815 # check for existence, be strict because it is installed 6816 if test ! -f "${srcdir}/$i" ; then 6817 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6818echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6819 { (exit 1); exit 1; }; } 6820 fi 6821 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6822 done 6823 6824 6825 6826#-------------------------------------------------------------------- 6827# __CHANGE__ 6828# Choose which headers you need. Extension authors should try very 6829# hard to only rely on the Tcl public header files. Internal headers 6830# contain private data structures and are subject to change without 6831# notice. 6832# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 6833#-------------------------------------------------------------------- 6834 6835 6836 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6837echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6838 6839 6840# Check whether --with-tclinclude was given. 6841if test "${with_tclinclude+set}" = set; then 6842 withval=$with_tclinclude; with_tclinclude=${withval} 6843fi 6844 6845 6846 if test "${ac_cv_c_tclh+set}" = set; then 6847 echo $ECHO_N "(cached) $ECHO_C" >&6 6848else 6849 6850 # Use the value from --with-tclinclude, if it was given 6851 6852 if test x"${with_tclinclude}" != x ; then 6853 if test -f "${with_tclinclude}/tcl.h" ; then 6854 ac_cv_c_tclh=${with_tclinclude} 6855 else 6856 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6857echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6858 { (exit 1); exit 1; }; } 6859 fi 6860 else 6861 list="" 6862 if test "`uname -s`" = "Darwin"; then 6863 # If Tcl was built as a framework, attempt to use 6864 # the framework's Headers directory 6865 case ${TCL_DEFS} in 6866 *TCL_FRAMEWORK*) 6867 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6868 ;; 6869 esac 6870 fi 6871 6872 # Look in the source dir only if Tcl is not installed, 6873 # and in that situation, look there before installed locations. 6874 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6875 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6876 fi 6877 6878 # Check order: pkg --prefix location, Tcl's --prefix location, 6879 # relative to directory of tclConfig.sh. 6880 6881 eval "temp_includedir=${includedir}" 6882 list="$list \ 6883 `ls -d ${temp_includedir} 2>/dev/null` \ 6884 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6885 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6886 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6887 list="$list /usr/local/include /usr/include" 6888 if test x"${TCL_INCLUDE_SPEC}" != x ; then 6889 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 6890 list="$list `ls -d ${d} 2>/dev/null`" 6891 fi 6892 fi 6893 for i in $list ; do 6894 if test -f "$i/tcl.h" ; then 6895 ac_cv_c_tclh=$i 6896 break 6897 fi 6898 done 6899 fi 6900 6901fi 6902 6903 6904 # Print a message based on how we determined the include path 6905 6906 if test x"${ac_cv_c_tclh}" = x ; then 6907 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 6908echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 6909 { (exit 1); exit 1; }; } 6910 else 6911 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 6912echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 6913 fi 6914 6915 # Convert to a native path and substitute into the output files. 6916 6917 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 6918 6919 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 6920 6921 6922 6923 6924#-------------------------------------------------------------------- 6925# A few miscellaneous platform-specific items: 6926# 6927# Windows creates a few extra files that need to be cleaned up. 6928# We can add more files to clean if our extension creates any extra 6929# files in the future. 6930# 6931# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 6932# These will be appended to the current set of compiler flags for 6933# your system. 6934#-------------------------------------------------------------------- 6935 6936if test "${TEA_PLATFORM}" = "windows" ; then 6937 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch" 6938else 6939 CLEANFILES="" 6940fi 6941 6942 6943#-------------------------------------------------------------------- 6944# Check whether --enable-threads or --disable-threads was given. 6945# So far only Tcl responds to this one. 6946#-------------------------------------------------------------------- 6947 6948 6949 # Check whether --enable-threads was given. 6950if test "${enable_threads+set}" = set; then 6951 enableval=$enable_threads; tcl_ok=$enableval 6952else 6953 tcl_ok=yes 6954fi 6955 6956 6957 if test "${enable_threads+set}" = set; then 6958 enableval="$enable_threads" 6959 tcl_ok=$enableval 6960 else 6961 tcl_ok=yes 6962 fi 6963 6964 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 6965 TCL_THREADS=1 6966 6967 if test "${TEA_PLATFORM}" != "windows" ; then 6968 # We are always OK on Windows, so check what this platform wants: 6969 6970 # USE_THREAD_ALLOC tells us to try the special thread-based 6971 # allocator that significantly reduces lock contention 6972 6973cat >>confdefs.h <<\_ACEOF 6974#define USE_THREAD_ALLOC 1 6975_ACEOF 6976 6977 6978cat >>confdefs.h <<\_ACEOF 6979#define _REENTRANT 1 6980_ACEOF 6981 6982 if test "`uname -s`" = "SunOS" ; then 6983 6984cat >>confdefs.h <<\_ACEOF 6985#define _POSIX_PTHREAD_SEMANTICS 1 6986_ACEOF 6987 6988 fi 6989 6990cat >>confdefs.h <<\_ACEOF 6991#define _THREAD_SAFE 1 6992_ACEOF 6993 6994 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 6995echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 6996if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 6997 echo $ECHO_N "(cached) $ECHO_C" >&6 6998else 6999 ac_check_lib_save_LIBS=$LIBS 7000LIBS="-lpthread $LIBS" 7001cat >conftest.$ac_ext <<_ACEOF 7002/* confdefs.h. */ 7003_ACEOF 7004cat confdefs.h >>conftest.$ac_ext 7005cat >>conftest.$ac_ext <<_ACEOF 7006/* end confdefs.h. */ 7007 7008/* Override any GCC internal prototype to avoid an error. 7009 Use char because int might match the return type of a GCC 7010 builtin and then its argument prototype would still apply. */ 7011#ifdef __cplusplus 7012extern "C" 7013#endif 7014char pthread_mutex_init (); 7015int 7016main () 7017{ 7018return pthread_mutex_init (); 7019 ; 7020 return 0; 7021} 7022_ACEOF 7023rm -f conftest.$ac_objext conftest$ac_exeext 7024if { (ac_try="$ac_link" 7025case "(($ac_try" in 7026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7027 *) ac_try_echo=$ac_try;; 7028esac 7029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7030 (eval "$ac_link") 2>conftest.er1 7031 ac_status=$? 7032 grep -v '^ *+' conftest.er1 >conftest.err 7033 rm -f conftest.er1 7034 cat conftest.err >&5 7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7036 (exit $ac_status); } && { 7037 test -z "$ac_c_werror_flag" || 7038 test ! -s conftest.err 7039 } && test -s conftest$ac_exeext && 7040 $as_test_x conftest$ac_exeext; then 7041 ac_cv_lib_pthread_pthread_mutex_init=yes 7042else 7043 echo "$as_me: failed program was:" >&5 7044sed 's/^/| /' conftest.$ac_ext >&5 7045 7046 ac_cv_lib_pthread_pthread_mutex_init=no 7047fi 7048 7049rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7050 conftest$ac_exeext conftest.$ac_ext 7051LIBS=$ac_check_lib_save_LIBS 7052fi 7053{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7054echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7055if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7056 tcl_ok=yes 7057else 7058 tcl_ok=no 7059fi 7060 7061 if test "$tcl_ok" = "no"; then 7062 # Check a little harder for __pthread_mutex_init in the same 7063 # library, as some systems hide it there until pthread.h is 7064 # defined. We could alternatively do an AC_TRY_COMPILE with 7065 # pthread.h, but that will work with libpthread really doesn't 7066 # exist, like AIX 4.2. [Bug: 4359] 7067 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7068echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7069if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7070 echo $ECHO_N "(cached) $ECHO_C" >&6 7071else 7072 ac_check_lib_save_LIBS=$LIBS 7073LIBS="-lpthread $LIBS" 7074cat >conftest.$ac_ext <<_ACEOF 7075/* confdefs.h. */ 7076_ACEOF 7077cat confdefs.h >>conftest.$ac_ext 7078cat >>conftest.$ac_ext <<_ACEOF 7079/* end confdefs.h. */ 7080 7081/* Override any GCC internal prototype to avoid an error. 7082 Use char because int might match the return type of a GCC 7083 builtin and then its argument prototype would still apply. */ 7084#ifdef __cplusplus 7085extern "C" 7086#endif 7087char __pthread_mutex_init (); 7088int 7089main () 7090{ 7091return __pthread_mutex_init (); 7092 ; 7093 return 0; 7094} 7095_ACEOF 7096rm -f conftest.$ac_objext conftest$ac_exeext 7097if { (ac_try="$ac_link" 7098case "(($ac_try" in 7099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7100 *) ac_try_echo=$ac_try;; 7101esac 7102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7103 (eval "$ac_link") 2>conftest.er1 7104 ac_status=$? 7105 grep -v '^ *+' conftest.er1 >conftest.err 7106 rm -f conftest.er1 7107 cat conftest.err >&5 7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7109 (exit $ac_status); } && { 7110 test -z "$ac_c_werror_flag" || 7111 test ! -s conftest.err 7112 } && test -s conftest$ac_exeext && 7113 $as_test_x conftest$ac_exeext; then 7114 ac_cv_lib_pthread___pthread_mutex_init=yes 7115else 7116 echo "$as_me: failed program was:" >&5 7117sed 's/^/| /' conftest.$ac_ext >&5 7118 7119 ac_cv_lib_pthread___pthread_mutex_init=no 7120fi 7121 7122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7123 conftest$ac_exeext conftest.$ac_ext 7124LIBS=$ac_check_lib_save_LIBS 7125fi 7126{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7127echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7128if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7129 tcl_ok=yes 7130else 7131 tcl_ok=no 7132fi 7133 7134 fi 7135 7136 if test "$tcl_ok" = "yes"; then 7137 # The space is needed 7138 THREADS_LIBS=" -lpthread" 7139 else 7140 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7141echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7142if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7143 echo $ECHO_N "(cached) $ECHO_C" >&6 7144else 7145 ac_check_lib_save_LIBS=$LIBS 7146LIBS="-lpthreads $LIBS" 7147cat >conftest.$ac_ext <<_ACEOF 7148/* confdefs.h. */ 7149_ACEOF 7150cat confdefs.h >>conftest.$ac_ext 7151cat >>conftest.$ac_ext <<_ACEOF 7152/* end confdefs.h. */ 7153 7154/* Override any GCC internal prototype to avoid an error. 7155 Use char because int might match the return type of a GCC 7156 builtin and then its argument prototype would still apply. */ 7157#ifdef __cplusplus 7158extern "C" 7159#endif 7160char pthread_mutex_init (); 7161int 7162main () 7163{ 7164return pthread_mutex_init (); 7165 ; 7166 return 0; 7167} 7168_ACEOF 7169rm -f conftest.$ac_objext conftest$ac_exeext 7170if { (ac_try="$ac_link" 7171case "(($ac_try" in 7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7173 *) ac_try_echo=$ac_try;; 7174esac 7175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7176 (eval "$ac_link") 2>conftest.er1 7177 ac_status=$? 7178 grep -v '^ *+' conftest.er1 >conftest.err 7179 rm -f conftest.er1 7180 cat conftest.err >&5 7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7182 (exit $ac_status); } && { 7183 test -z "$ac_c_werror_flag" || 7184 test ! -s conftest.err 7185 } && test -s conftest$ac_exeext && 7186 $as_test_x conftest$ac_exeext; then 7187 ac_cv_lib_pthreads_pthread_mutex_init=yes 7188else 7189 echo "$as_me: failed program was:" >&5 7190sed 's/^/| /' conftest.$ac_ext >&5 7191 7192 ac_cv_lib_pthreads_pthread_mutex_init=no 7193fi 7194 7195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7196 conftest$ac_exeext conftest.$ac_ext 7197LIBS=$ac_check_lib_save_LIBS 7198fi 7199{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7200echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7201if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7202 tcl_ok=yes 7203else 7204 tcl_ok=no 7205fi 7206 7207 if test "$tcl_ok" = "yes"; then 7208 # The space is needed 7209 THREADS_LIBS=" -lpthreads" 7210 else 7211 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7212echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7213if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7214 echo $ECHO_N "(cached) $ECHO_C" >&6 7215else 7216 ac_check_lib_save_LIBS=$LIBS 7217LIBS="-lc $LIBS" 7218cat >conftest.$ac_ext <<_ACEOF 7219/* confdefs.h. */ 7220_ACEOF 7221cat confdefs.h >>conftest.$ac_ext 7222cat >>conftest.$ac_ext <<_ACEOF 7223/* end confdefs.h. */ 7224 7225/* Override any GCC internal prototype to avoid an error. 7226 Use char because int might match the return type of a GCC 7227 builtin and then its argument prototype would still apply. */ 7228#ifdef __cplusplus 7229extern "C" 7230#endif 7231char pthread_mutex_init (); 7232int 7233main () 7234{ 7235return pthread_mutex_init (); 7236 ; 7237 return 0; 7238} 7239_ACEOF 7240rm -f conftest.$ac_objext conftest$ac_exeext 7241if { (ac_try="$ac_link" 7242case "(($ac_try" in 7243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7244 *) ac_try_echo=$ac_try;; 7245esac 7246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7247 (eval "$ac_link") 2>conftest.er1 7248 ac_status=$? 7249 grep -v '^ *+' conftest.er1 >conftest.err 7250 rm -f conftest.er1 7251 cat conftest.err >&5 7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7253 (exit $ac_status); } && { 7254 test -z "$ac_c_werror_flag" || 7255 test ! -s conftest.err 7256 } && test -s conftest$ac_exeext && 7257 $as_test_x conftest$ac_exeext; then 7258 ac_cv_lib_c_pthread_mutex_init=yes 7259else 7260 echo "$as_me: failed program was:" >&5 7261sed 's/^/| /' conftest.$ac_ext >&5 7262 7263 ac_cv_lib_c_pthread_mutex_init=no 7264fi 7265 7266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7267 conftest$ac_exeext conftest.$ac_ext 7268LIBS=$ac_check_lib_save_LIBS 7269fi 7270{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7271echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7272if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7273 tcl_ok=yes 7274else 7275 tcl_ok=no 7276fi 7277 7278 if test "$tcl_ok" = "no"; then 7279 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7280echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7281if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7282 echo $ECHO_N "(cached) $ECHO_C" >&6 7283else 7284 ac_check_lib_save_LIBS=$LIBS 7285LIBS="-lc_r $LIBS" 7286cat >conftest.$ac_ext <<_ACEOF 7287/* confdefs.h. */ 7288_ACEOF 7289cat confdefs.h >>conftest.$ac_ext 7290cat >>conftest.$ac_ext <<_ACEOF 7291/* end confdefs.h. */ 7292 7293/* Override any GCC internal prototype to avoid an error. 7294 Use char because int might match the return type of a GCC 7295 builtin and then its argument prototype would still apply. */ 7296#ifdef __cplusplus 7297extern "C" 7298#endif 7299char pthread_mutex_init (); 7300int 7301main () 7302{ 7303return pthread_mutex_init (); 7304 ; 7305 return 0; 7306} 7307_ACEOF 7308rm -f conftest.$ac_objext conftest$ac_exeext 7309if { (ac_try="$ac_link" 7310case "(($ac_try" in 7311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7312 *) ac_try_echo=$ac_try;; 7313esac 7314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7315 (eval "$ac_link") 2>conftest.er1 7316 ac_status=$? 7317 grep -v '^ *+' conftest.er1 >conftest.err 7318 rm -f conftest.er1 7319 cat conftest.err >&5 7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7321 (exit $ac_status); } && { 7322 test -z "$ac_c_werror_flag" || 7323 test ! -s conftest.err 7324 } && test -s conftest$ac_exeext && 7325 $as_test_x conftest$ac_exeext; then 7326 ac_cv_lib_c_r_pthread_mutex_init=yes 7327else 7328 echo "$as_me: failed program was:" >&5 7329sed 's/^/| /' conftest.$ac_ext >&5 7330 7331 ac_cv_lib_c_r_pthread_mutex_init=no 7332fi 7333 7334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7335 conftest$ac_exeext conftest.$ac_ext 7336LIBS=$ac_check_lib_save_LIBS 7337fi 7338{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7339echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7340if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7341 tcl_ok=yes 7342else 7343 tcl_ok=no 7344fi 7345 7346 if test "$tcl_ok" = "yes"; then 7347 # The space is needed 7348 THREADS_LIBS=" -pthread" 7349 else 7350 TCL_THREADS=0 7351 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7352echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7353 fi 7354 fi 7355 fi 7356 fi 7357 fi 7358 else 7359 TCL_THREADS=0 7360 fi 7361 # Do checking message here to not mess up interleaved configure output 7362 { echo "$as_me:$LINENO: checking for building with threads" >&5 7363echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7364 if test "${TCL_THREADS}" = 1; then 7365 7366cat >>confdefs.h <<\_ACEOF 7367#define TCL_THREADS 1 7368_ACEOF 7369 7370 { echo "$as_me:$LINENO: result: yes (default)" >&5 7371echo "${ECHO_T}yes (default)" >&6; } 7372 else 7373 { echo "$as_me:$LINENO: result: no" >&5 7374echo "${ECHO_T}no" >&6; } 7375 fi 7376 # TCL_THREADS sanity checking. See if our request for building with 7377 # threads is the same as the way Tcl was built. If not, warn the user. 7378 case ${TCL_DEFS} in 7379 *THREADS=1*) 7380 if test "${TCL_THREADS}" = "0"; then 7381 { echo "$as_me:$LINENO: WARNING: 7382 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7383 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7384echo "$as_me: WARNING: 7385 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7386 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7387 fi 7388 ;; 7389 *) 7390 if test "${TCL_THREADS}" = "1"; then 7391 { echo "$as_me:$LINENO: WARNING: 7392 --enable-threads requested, but building against a Tcl that is NOT 7393 thread-enabled. This is an OK configuration that will also run in 7394 a thread-enabled core." >&5 7395echo "$as_me: WARNING: 7396 --enable-threads requested, but building against a Tcl that is NOT 7397 thread-enabled. This is an OK configuration that will also run in 7398 a thread-enabled core." >&2;} 7399 fi 7400 ;; 7401 esac 7402 7403 7404 7405#-------------------------------------------------------------------- 7406# The statement below defines a collection of symbols related to 7407# building as a shared library instead of a static library. 7408#-------------------------------------------------------------------- 7409 7410 7411 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7412echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7413 # Check whether --enable-shared was given. 7414if test "${enable_shared+set}" = set; then 7415 enableval=$enable_shared; tcl_ok=$enableval 7416else 7417 tcl_ok=yes 7418fi 7419 7420 7421 if test "${enable_shared+set}" = set; then 7422 enableval="$enable_shared" 7423 tcl_ok=$enableval 7424 else 7425 tcl_ok=yes 7426 fi 7427 7428 if test "$tcl_ok" = "yes" ; then 7429 { echo "$as_me:$LINENO: result: shared" >&5 7430echo "${ECHO_T}shared" >&6; } 7431 SHARED_BUILD=1 7432 else 7433 { echo "$as_me:$LINENO: result: static" >&5 7434echo "${ECHO_T}static" >&6; } 7435 SHARED_BUILD=0 7436 7437cat >>confdefs.h <<\_ACEOF 7438#define STATIC_BUILD 1 7439_ACEOF 7440 7441 fi 7442 7443 7444 7445#-------------------------------------------------------------------- 7446# This macro figures out what flags to use with the compiler/linker 7447# when building shared/static debug/optimized objects. This information 7448# can be taken from the tclConfig.sh file, but this figures it all out. 7449#-------------------------------------------------------------------- 7450 7451 7452 7453 7454 # Step 0.a: Enable 64 bit support? 7455 7456 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7457echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7458 # Check whether --enable-64bit was given. 7459if test "${enable_64bit+set}" = set; then 7460 enableval=$enable_64bit; do64bit=$enableval 7461else 7462 do64bit=no 7463fi 7464 7465 { echo "$as_me:$LINENO: result: $do64bit" >&5 7466echo "${ECHO_T}$do64bit" >&6; } 7467 7468 # Step 0.b: Enable Solaris 64 bit VIS support? 7469 7470 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7471echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7472 # Check whether --enable-64bit-vis was given. 7473if test "${enable_64bit_vis+set}" = set; then 7474 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7475else 7476 do64bitVIS=no 7477fi 7478 7479 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7480echo "${ECHO_T}$do64bitVIS" >&6; } 7481 # Force 64bit on with VIS 7482 if test "$do64bitVIS" = "yes"; then 7483 do64bit=yes 7484fi 7485 7486 7487 # Step 0.c: Check if visibility support is available. Do this here so 7488 # that platform specific alternatives can be used below if this fails. 7489 7490 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7491echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7492if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7493 echo $ECHO_N "(cached) $ECHO_C" >&6 7494else 7495 7496 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7497 cat >conftest.$ac_ext <<_ACEOF 7498/* confdefs.h. */ 7499_ACEOF 7500cat confdefs.h >>conftest.$ac_ext 7501cat >>conftest.$ac_ext <<_ACEOF 7502/* end confdefs.h. */ 7503 7504 extern __attribute__((__visibility__("hidden"))) void f(void); 7505 void f(void) {} 7506int 7507main () 7508{ 7509f(); 7510 ; 7511 return 0; 7512} 7513_ACEOF 7514rm -f conftest.$ac_objext conftest$ac_exeext 7515if { (ac_try="$ac_link" 7516case "(($ac_try" in 7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7518 *) ac_try_echo=$ac_try;; 7519esac 7520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7521 (eval "$ac_link") 2>conftest.er1 7522 ac_status=$? 7523 grep -v '^ *+' conftest.er1 >conftest.err 7524 rm -f conftest.er1 7525 cat conftest.err >&5 7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7527 (exit $ac_status); } && { 7528 test -z "$ac_c_werror_flag" || 7529 test ! -s conftest.err 7530 } && test -s conftest$ac_exeext && 7531 $as_test_x conftest$ac_exeext; then 7532 tcl_cv_cc_visibility_hidden=yes 7533else 7534 echo "$as_me: failed program was:" >&5 7535sed 's/^/| /' conftest.$ac_ext >&5 7536 7537 tcl_cv_cc_visibility_hidden=no 7538fi 7539 7540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7541 conftest$ac_exeext conftest.$ac_ext 7542 CFLAGS=$hold_cflags 7543fi 7544{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7545echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7546 if test $tcl_cv_cc_visibility_hidden = yes; then 7547 7548 7549cat >>confdefs.h <<\_ACEOF 7550#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7551_ACEOF 7552 7553 7554fi 7555 7556 7557 # Step 0.d: Disable -rpath support? 7558 7559 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7560echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7561 # Check whether --enable-rpath was given. 7562if test "${enable_rpath+set}" = set; then 7563 enableval=$enable_rpath; doRpath=$enableval 7564else 7565 doRpath=yes 7566fi 7567 7568 { echo "$as_me:$LINENO: result: $doRpath" >&5 7569echo "${ECHO_T}$doRpath" >&6; } 7570 7571 # TEA specific: Cross-compiling options for Windows/CE builds? 7572 7573 if test "${TEA_PLATFORM}" = windows; then 7574 7575 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7576echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7577 # Check whether --enable-wince was given. 7578if test "${enable_wince+set}" = set; then 7579 enableval=$enable_wince; doWince=$enableval 7580else 7581 doWince=no 7582fi 7583 7584 { echo "$as_me:$LINENO: result: $doWince" >&5 7585echo "${ECHO_T}$doWince" >&6; } 7586 7587fi 7588 7589 7590 # Set the variable "system" to hold the name and version number 7591 # for the system. 7592 7593 7594 { echo "$as_me:$LINENO: checking system version" >&5 7595echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7596if test "${tcl_cv_sys_version+set}" = set; then 7597 echo $ECHO_N "(cached) $ECHO_C" >&6 7598else 7599 7600 # TEA specific: 7601 if test "${TEA_PLATFORM}" = "windows" ; then 7602 tcl_cv_sys_version=windows 7603 else 7604 tcl_cv_sys_version=`uname -s`-`uname -r` 7605 if test "$?" -ne 0 ; then 7606 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7607echo "$as_me: WARNING: can't find uname command" >&2;} 7608 tcl_cv_sys_version=unknown 7609 else 7610 if test "`uname -s`" = "AIX" ; then 7611 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7612 fi 7613 fi 7614 fi 7615 7616fi 7617{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7618echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7619 system=$tcl_cv_sys_version 7620 7621 7622 # Require ranlib early so we can override it in special cases below. 7623 7624 7625 7626 # Set configuration options based on system name and version. 7627 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7628 # "windows" case and removed some core-only vars. 7629 7630 do64bit_ok=no 7631 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7632 SHLIB_LD_LIBS='${LIBS}' 7633 # When ld needs options to work in 64-bit mode, put them in 7634 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7635 # is disabled by the user. [Bug 1016796] 7636 LDFLAGS_ARCH="" 7637 UNSHARED_LIB_SUFFIX="" 7638 # TEA specific: use PACKAGE_VERSION instead of VERSION 7639 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7640 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7641 TCL_LIB_VERSIONS_OK=ok 7642 CFLAGS_DEBUG=-g 7643 CFLAGS_OPTIMIZE=-O 7644 if test "$GCC" = yes; then 7645 7646 # TEA specific: 7647 CFLAGS_OPTIMIZE=-O2 7648 CFLAGS_WARNING="-Wall" 7649 7650else 7651 CFLAGS_WARNING="" 7652fi 7653 7654 # Extract the first word of "ar", so it can be a program name with args. 7655set dummy ar; ac_word=$2 7656{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7658if test "${ac_cv_prog_AR+set}" = set; then 7659 echo $ECHO_N "(cached) $ECHO_C" >&6 7660else 7661 if test -n "$AR"; then 7662 ac_cv_prog_AR="$AR" # Let the user override the test. 7663else 7664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7665for as_dir in $PATH 7666do 7667 IFS=$as_save_IFS 7668 test -z "$as_dir" && as_dir=. 7669 for ac_exec_ext in '' $ac_executable_extensions; do 7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7671 ac_cv_prog_AR="ar" 7672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7673 break 2 7674 fi 7675done 7676done 7677IFS=$as_save_IFS 7678 7679fi 7680fi 7681AR=$ac_cv_prog_AR 7682if test -n "$AR"; then 7683 { echo "$as_me:$LINENO: result: $AR" >&5 7684echo "${ECHO_T}$AR" >&6; } 7685else 7686 { echo "$as_me:$LINENO: result: no" >&5 7687echo "${ECHO_T}no" >&6; } 7688fi 7689 7690 7691 STLIB_LD='${AR} cr' 7692 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7693 if test "x$SHLIB_VERSION" = x; then 7694 SHLIB_VERSION="1.0" 7695fi 7696 7697 case $system in 7698 # TEA specific: 7699 windows) 7700 # This is a 2-stage check to make sure we have the 64-bit SDK 7701 # We have to know where the SDK is installed. 7702 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7703 # MACHINE is IX86 for LINK, but this is used by the manifest, 7704 # which requires x86|amd64|ia64. 7705 MACHINE="X86" 7706 if test "$do64bit" != "no" ; then 7707 if test "x${MSSDK}x" = "xx" ; then 7708 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7709 fi 7710 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7711 PATH64="" 7712 case "$do64bit" in 7713 amd64|x64|yes) 7714 MACHINE="AMD64" ; # default to AMD64 64-bit build 7715 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7716 ;; 7717 ia64) 7718 MACHINE="IA64" 7719 PATH64="${MSSDK}/Bin/Win64" 7720 ;; 7721 esac 7722 if test ! -d "${PATH64}" ; then 7723 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7724echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7725 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7726echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7727 do64bit="no" 7728 else 7729 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7730echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 7731 do64bit_ok="yes" 7732 fi 7733 fi 7734 7735 if test "$doWince" != "no" ; then 7736 if test "$do64bit" != "no" ; then 7737 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7738echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7739 { (exit 1); exit 1; }; } 7740 fi 7741 if test "$GCC" = "yes" ; then 7742 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7743echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7744 { (exit 1); exit 1; }; } 7745 fi 7746 7747 # First, look for one uninstalled. 7748 # the alternative search directory is invoked by --with-celib 7749 7750 if test x"${no_celib}" = x ; then 7751 # we reset no_celib in case something fails here 7752 no_celib=true 7753 7754# Check whether --with-celib was given. 7755if test "${with_celib+set}" = set; then 7756 withval=$with_celib; with_celibconfig=${withval} 7757fi 7758 7759 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7760echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 7761 if test "${ac_cv_c_celibconfig+set}" = set; then 7762 echo $ECHO_N "(cached) $ECHO_C" >&6 7763else 7764 7765 # First check to see if --with-celibconfig was specified. 7766 if test x"${with_celibconfig}" != x ; then 7767 if test -d "${with_celibconfig}/inc" ; then 7768 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7769 else 7770 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7771echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7772 { (exit 1); exit 1; }; } 7773 fi 7774 fi 7775 7776 # then check for a celib library 7777 if test x"${ac_cv_c_celibconfig}" = x ; then 7778 for i in \ 7779 ../celib-palm-3.0 \ 7780 ../celib \ 7781 ../../celib-palm-3.0 \ 7782 ../../celib \ 7783 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7784 ${srcdir}/../celib-palm-3.0 \ 7785 ${srcdir}/../celib \ 7786 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7787 ; do 7788 if test -d "$i/inc" ; then 7789 ac_cv_c_celibconfig=`(cd $i; pwd)` 7790 break 7791 fi 7792 done 7793 fi 7794 7795fi 7796 7797 if test x"${ac_cv_c_celibconfig}" = x ; then 7798 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7799echo "$as_me: error: Cannot find celib support library directory" >&2;} 7800 { (exit 1); exit 1; }; } 7801 else 7802 no_celib= 7803 CELIB_DIR=${ac_cv_c_celibconfig} 7804 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7805 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7806echo "${ECHO_T}found $CELIB_DIR" >&6; } 7807 fi 7808 fi 7809 7810 # Set defaults for common evc4/PPC2003 setup 7811 # Currently Tcl requires 300+, possibly 420+ for sockets 7812 CEVERSION=420; # could be 211 300 301 400 420 ... 7813 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7814 ARCH=ARM; # could be ARM MIPS X86EM ... 7815 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7816 if test "$doWince" != "yes"; then 7817 # If !yes then the user specified something 7818 # Reset ARCH to allow user to skip specifying it 7819 ARCH= 7820 eval `echo $doWince | awk -F, '{ \ 7821 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7822 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7823 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7824 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7825 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7826 }'` 7827 if test "x${ARCH}" = "x" ; then 7828 ARCH=$TARGETCPU; 7829 fi 7830 fi 7831 OSVERSION=WCE$CEVERSION; 7832 if test "x${WCEROOT}" = "x" ; then 7833 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7834 if test ! -d "${WCEROOT}" ; then 7835 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7836 fi 7837 fi 7838 if test "x${SDKROOT}" = "x" ; then 7839 SDKROOT="C:/Program Files/Windows CE Tools" 7840 if test ! -d "${SDKROOT}" ; then 7841 SDKROOT="C:/Windows CE Tools" 7842 fi 7843 fi 7844 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7845 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7846 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7847 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7848 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7849echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7850 { (exit 1); exit 1; }; } 7851 doWince="no" 7852 else 7853 # We could PATH_NOSPACE these, but that's not important, 7854 # as long as we quote them when used. 7855 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7856 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7857 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7858 fi 7859 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7860 fi 7861 fi 7862 7863 if test "$GCC" != "yes" ; then 7864 if test "${SHARED_BUILD}" = "0" ; then 7865 runtime=-MT 7866 else 7867 runtime=-MD 7868 fi 7869 7870 if test "$do64bit" != "no" ; then 7871 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7872 CC="\"${PATH64}/cl.exe\"" 7873 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7874 RC="\"${MSSDK}/bin/rc.exe\"" 7875 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7876 LINKBIN="\"${PATH64}/link.exe\"" 7877 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7878 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7879 # Avoid 'unresolved external symbol __security_cookie' 7880 # errors, c.f. http://support.microsoft.com/?id=894573 7881 7882 vars="bufferoverflowU.lib" 7883 for i in $vars; do 7884 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7885 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7886 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7887 fi 7888 PKG_LIBS="$PKG_LIBS $i" 7889 done 7890 7891 7892 elif test "$doWince" != "no" ; then 7893 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7894 if test "${TARGETCPU}" = "X86"; then 7895 CC="\"${CEBINROOT}/cl.exe\"" 7896 else 7897 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7898 fi 7899 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7900 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 7901 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7902 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7903 if test "${SHARED_BUILD}" = "1" ; then 7904 # Static CE builds require static celib as well 7905 defs="${defs} _DLL" 7906 fi 7907 for i in $defs ; do 7908 7909cat >>confdefs.h <<_ACEOF 7910#define $i 1 7911_ACEOF 7912 7913 done 7914 7915cat >>confdefs.h <<_ACEOF 7916#define _WIN32_WCE $CEVERSION 7917_ACEOF 7918 7919 7920cat >>confdefs.h <<_ACEOF 7921#define UNDER_CE $CEVERSION 7922_ACEOF 7923 7924 CFLAGS_DEBUG="-nologo -Zi -Od" 7925 CFLAGS_OPTIMIZE="-nologo -Ox" 7926 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 7927 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 7928 LINKBIN="\"${CEBINROOT}/link.exe\"" 7929 7930 else 7931 RC="rc" 7932 lflags="-nologo" 7933 LINKBIN="link" 7934 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 7935 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7936 fi 7937 fi 7938 7939 if test "$GCC" = "yes"; then 7940 # mingw gcc mode 7941 RC="windres" 7942 CFLAGS_DEBUG="-g" 7943 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7944 SHLIB_LD="$CC -shared" 7945 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7946 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 7947 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 7948 else 7949 SHLIB_LD="${LINKBIN} -dll ${lflags}" 7950 # link -lib only works when -lib is the first arg 7951 STLIB_LD="${LINKBIN} -lib ${lflags}" 7952 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 7953 PATHTYPE=-w 7954 # For information on what debugtype is most useful, see: 7955 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 7956 # and also 7957 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 7958 # This essentially turns it all on. 7959 LDFLAGS_DEBUG="-debug -debugtype:cv" 7960 LDFLAGS_OPTIMIZE="-release" 7961 if test "$doWince" != "no" ; then 7962 LDFLAGS_CONSOLE="-link ${lflags}" 7963 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 7964 else 7965 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 7966 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 7967 fi 7968 fi 7969 7970 SHLIB_SUFFIX=".dll" 7971 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 7972 7973 TCL_LIB_VERSIONS_OK=nodots 7974 ;; 7975 AIX-*) 7976 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 7977 7978 # AIX requires the _r compiler when gcc isn't being used 7979 case "${CC}" in 7980 *_r|*_r\ *) 7981 # ok ... 7982 ;; 7983 *) 7984 # Make sure only first arg gets _r 7985 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 7986 ;; 7987 esac 7988 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 7989echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 7990 7991fi 7992 7993 LIBS="$LIBS -lc" 7994 SHLIB_CFLAGS="" 7995 SHLIB_SUFFIX=".so" 7996 7997 LD_LIBRARY_PATH_VAR="LIBPATH" 7998 7999 # Check to enable 64-bit flags for compiler/linker 8000 if test "$do64bit" = yes; then 8001 8002 if test "$GCC" = yes; then 8003 8004 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8005echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8006 8007else 8008 8009 do64bit_ok=yes 8010 CFLAGS="$CFLAGS -q64" 8011 LDFLAGS_ARCH="-q64" 8012 RANLIB="${RANLIB} -X64" 8013 AR="${AR} -X64" 8014 SHLIB_LD_FLAGS="-b64" 8015 8016fi 8017 8018 8019fi 8020 8021 8022 if test "`uname -m`" = ia64; then 8023 8024 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8025 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8026 if test "$GCC" = yes; then 8027 8028 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8029 8030else 8031 8032 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8033 8034fi 8035 8036 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8037 8038else 8039 8040 if test "$GCC" = yes; then 8041 8042 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8043 8044else 8045 8046 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8047 LDFLAGS="$LDFLAGS -brtl" 8048 8049fi 8050 8051 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8052 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8053 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8054 8055fi 8056 8057 ;; 8058 BeOS*) 8059 SHLIB_CFLAGS="-fPIC" 8060 SHLIB_LD='${CC} -nostart' 8061 SHLIB_SUFFIX=".so" 8062 8063 #----------------------------------------------------------- 8064 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8065 # -lsocket, even if the network functions are in -lnet which 8066 # is always linked to, for compatibility. 8067 #----------------------------------------------------------- 8068 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8069echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8070if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8071 echo $ECHO_N "(cached) $ECHO_C" >&6 8072else 8073 ac_check_lib_save_LIBS=$LIBS 8074LIBS="-lbind $LIBS" 8075cat >conftest.$ac_ext <<_ACEOF 8076/* confdefs.h. */ 8077_ACEOF 8078cat confdefs.h >>conftest.$ac_ext 8079cat >>conftest.$ac_ext <<_ACEOF 8080/* end confdefs.h. */ 8081 8082/* Override any GCC internal prototype to avoid an error. 8083 Use char because int might match the return type of a GCC 8084 builtin and then its argument prototype would still apply. */ 8085#ifdef __cplusplus 8086extern "C" 8087#endif 8088char inet_ntoa (); 8089int 8090main () 8091{ 8092return inet_ntoa (); 8093 ; 8094 return 0; 8095} 8096_ACEOF 8097rm -f conftest.$ac_objext conftest$ac_exeext 8098if { (ac_try="$ac_link" 8099case "(($ac_try" in 8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8101 *) ac_try_echo=$ac_try;; 8102esac 8103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8104 (eval "$ac_link") 2>conftest.er1 8105 ac_status=$? 8106 grep -v '^ *+' conftest.er1 >conftest.err 8107 rm -f conftest.er1 8108 cat conftest.err >&5 8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8110 (exit $ac_status); } && { 8111 test -z "$ac_c_werror_flag" || 8112 test ! -s conftest.err 8113 } && test -s conftest$ac_exeext && 8114 $as_test_x conftest$ac_exeext; then 8115 ac_cv_lib_bind_inet_ntoa=yes 8116else 8117 echo "$as_me: failed program was:" >&5 8118sed 's/^/| /' conftest.$ac_ext >&5 8119 8120 ac_cv_lib_bind_inet_ntoa=no 8121fi 8122 8123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8124 conftest$ac_exeext conftest.$ac_ext 8125LIBS=$ac_check_lib_save_LIBS 8126fi 8127{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8128echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8129if test $ac_cv_lib_bind_inet_ntoa = yes; then 8130 LIBS="$LIBS -lbind -lsocket" 8131fi 8132 8133 ;; 8134 BSD/OS-4.*) 8135 SHLIB_CFLAGS="-export-dynamic -fPIC" 8136 SHLIB_LD='${CC} -shared' 8137 SHLIB_SUFFIX=".so" 8138 LDFLAGS="$LDFLAGS -export-dynamic" 8139 CC_SEARCH_FLAGS="" 8140 LD_SEARCH_FLAGS="" 8141 ;; 8142 CYGWIN_*) 8143 SHLIB_CFLAGS="" 8144 SHLIB_LD='${CC} -shared' 8145 SHLIB_SUFFIX=".dll" 8146 EXE_SUFFIX=".exe" 8147 CC_SEARCH_FLAGS="" 8148 LD_SEARCH_FLAGS="" 8149 ;; 8150 Haiku*) 8151 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8152 SHLIB_CFLAGS="-fPIC" 8153 SHLIB_SUFFIX=".so" 8154 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8155 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8156echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8157if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8158 echo $ECHO_N "(cached) $ECHO_C" >&6 8159else 8160 ac_check_lib_save_LIBS=$LIBS 8161LIBS="-lnetwork $LIBS" 8162cat >conftest.$ac_ext <<_ACEOF 8163/* confdefs.h. */ 8164_ACEOF 8165cat confdefs.h >>conftest.$ac_ext 8166cat >>conftest.$ac_ext <<_ACEOF 8167/* end confdefs.h. */ 8168 8169/* Override any GCC internal prototype to avoid an error. 8170 Use char because int might match the return type of a GCC 8171 builtin and then its argument prototype would still apply. */ 8172#ifdef __cplusplus 8173extern "C" 8174#endif 8175char inet_ntoa (); 8176int 8177main () 8178{ 8179return inet_ntoa (); 8180 ; 8181 return 0; 8182} 8183_ACEOF 8184rm -f conftest.$ac_objext conftest$ac_exeext 8185if { (ac_try="$ac_link" 8186case "(($ac_try" in 8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8188 *) ac_try_echo=$ac_try;; 8189esac 8190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8191 (eval "$ac_link") 2>conftest.er1 8192 ac_status=$? 8193 grep -v '^ *+' conftest.er1 >conftest.err 8194 rm -f conftest.er1 8195 cat conftest.err >&5 8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8197 (exit $ac_status); } && { 8198 test -z "$ac_c_werror_flag" || 8199 test ! -s conftest.err 8200 } && test -s conftest$ac_exeext && 8201 $as_test_x conftest$ac_exeext; then 8202 ac_cv_lib_network_inet_ntoa=yes 8203else 8204 echo "$as_me: failed program was:" >&5 8205sed 's/^/| /' conftest.$ac_ext >&5 8206 8207 ac_cv_lib_network_inet_ntoa=no 8208fi 8209 8210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8211 conftest$ac_exeext conftest.$ac_ext 8212LIBS=$ac_check_lib_save_LIBS 8213fi 8214{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8215echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8216if test $ac_cv_lib_network_inet_ntoa = yes; then 8217 LIBS="$LIBS -lnetwork" 8218fi 8219 8220 ;; 8221 HP-UX-*.11.*) 8222 # Use updated header definitions where possible 8223 8224cat >>confdefs.h <<\_ACEOF 8225#define _XOPEN_SOURCE_EXTENDED 1 8226_ACEOF 8227 8228 # TEA specific: Needed by Tcl, but not most extensions 8229 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8230 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8231 8232 if test "`uname -m`" = ia64; then 8233 8234 SHLIB_SUFFIX=".so" 8235 # Use newer C++ library for C++ extensions 8236 #if test "$GCC" != "yes" ; then 8237 # CPPFLAGS="-AA" 8238 #fi 8239 8240else 8241 8242 SHLIB_SUFFIX=".sl" 8243 8244fi 8245 8246 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8247echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8248if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8249 echo $ECHO_N "(cached) $ECHO_C" >&6 8250else 8251 ac_check_lib_save_LIBS=$LIBS 8252LIBS="-ldld $LIBS" 8253cat >conftest.$ac_ext <<_ACEOF 8254/* confdefs.h. */ 8255_ACEOF 8256cat confdefs.h >>conftest.$ac_ext 8257cat >>conftest.$ac_ext <<_ACEOF 8258/* end confdefs.h. */ 8259 8260/* Override any GCC internal prototype to avoid an error. 8261 Use char because int might match the return type of a GCC 8262 builtin and then its argument prototype would still apply. */ 8263#ifdef __cplusplus 8264extern "C" 8265#endif 8266char shl_load (); 8267int 8268main () 8269{ 8270return shl_load (); 8271 ; 8272 return 0; 8273} 8274_ACEOF 8275rm -f conftest.$ac_objext conftest$ac_exeext 8276if { (ac_try="$ac_link" 8277case "(($ac_try" in 8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8279 *) ac_try_echo=$ac_try;; 8280esac 8281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8282 (eval "$ac_link") 2>conftest.er1 8283 ac_status=$? 8284 grep -v '^ *+' conftest.er1 >conftest.err 8285 rm -f conftest.er1 8286 cat conftest.err >&5 8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8288 (exit $ac_status); } && { 8289 test -z "$ac_c_werror_flag" || 8290 test ! -s conftest.err 8291 } && test -s conftest$ac_exeext && 8292 $as_test_x conftest$ac_exeext; then 8293 ac_cv_lib_dld_shl_load=yes 8294else 8295 echo "$as_me: failed program was:" >&5 8296sed 's/^/| /' conftest.$ac_ext >&5 8297 8298 ac_cv_lib_dld_shl_load=no 8299fi 8300 8301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8302 conftest$ac_exeext conftest.$ac_ext 8303LIBS=$ac_check_lib_save_LIBS 8304fi 8305{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8306echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8307if test $ac_cv_lib_dld_shl_load = yes; then 8308 tcl_ok=yes 8309else 8310 tcl_ok=no 8311fi 8312 8313 if test "$tcl_ok" = yes; then 8314 8315 LDFLAGS="$LDFLAGS -E" 8316 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8317 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8318 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8319 8320fi 8321 8322 if test "$GCC" = yes; then 8323 8324 SHLIB_LD='${CC} -shared' 8325 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8326 8327else 8328 8329 CFLAGS="$CFLAGS -z" 8330 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8331 #CFLAGS="$CFLAGS +DAportable" 8332 SHLIB_CFLAGS="+z" 8333 SHLIB_LD="ld -b" 8334 8335fi 8336 8337 8338 # Check to enable 64-bit flags for compiler/linker 8339 if test "$do64bit" = "yes"; then 8340 8341 if test "$GCC" = yes; then 8342 8343 case `${CC} -dumpmachine` in 8344 hppa64*) 8345 # 64-bit gcc in use. Fix flags for GNU ld. 8346 do64bit_ok=yes 8347 SHLIB_LD='${CC} -shared' 8348 if test $doRpath = yes; then 8349 8350 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8351fi 8352 8353 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8354 ;; 8355 *) 8356 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8357echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8358 ;; 8359 esac 8360 8361else 8362 8363 do64bit_ok=yes 8364 CFLAGS="$CFLAGS +DD64" 8365 LDFLAGS_ARCH="+DD64" 8366 8367fi 8368 8369 8370fi 8371 ;; 8372 IRIX-6.*) 8373 SHLIB_CFLAGS="" 8374 SHLIB_LD="ld -n32 -shared -rdata_shared" 8375 SHLIB_SUFFIX=".so" 8376 if test $doRpath = yes; then 8377 8378 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8379 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8380fi 8381 8382 if test "$GCC" = yes; then 8383 8384 CFLAGS="$CFLAGS -mabi=n32" 8385 LDFLAGS="$LDFLAGS -mabi=n32" 8386 8387else 8388 8389 case $system in 8390 IRIX-6.3) 8391 # Use to build 6.2 compatible binaries on 6.3. 8392 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8393 ;; 8394 *) 8395 CFLAGS="$CFLAGS -n32" 8396 ;; 8397 esac 8398 LDFLAGS="$LDFLAGS -n32" 8399 8400fi 8401 8402 ;; 8403 IRIX64-6.*) 8404 SHLIB_CFLAGS="" 8405 SHLIB_LD="ld -n32 -shared -rdata_shared" 8406 SHLIB_SUFFIX=".so" 8407 if test $doRpath = yes; then 8408 8409 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8410 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8411fi 8412 8413 8414 # Check to enable 64-bit flags for compiler/linker 8415 8416 if test "$do64bit" = yes; then 8417 8418 if test "$GCC" = yes; then 8419 8420 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8421echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8422 8423else 8424 8425 do64bit_ok=yes 8426 SHLIB_LD="ld -64 -shared -rdata_shared" 8427 CFLAGS="$CFLAGS -64" 8428 LDFLAGS_ARCH="-64" 8429 8430fi 8431 8432 8433fi 8434 8435 ;; 8436 Linux*) 8437 SHLIB_CFLAGS="-fPIC" 8438 SHLIB_SUFFIX=".so" 8439 8440 # TEA specific: 8441 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8442 8443 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8444 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8445 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8446 if test $doRpath = yes; then 8447 8448 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8449fi 8450 8451 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8452 if test "`uname -m`" = "alpha"; then 8453 CFLAGS="$CFLAGS -mieee" 8454fi 8455 8456 if test $do64bit = yes; then 8457 8458 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8459echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8460if test "${tcl_cv_cc_m64+set}" = set; then 8461 echo $ECHO_N "(cached) $ECHO_C" >&6 8462else 8463 8464 hold_cflags=$CFLAGS 8465 CFLAGS="$CFLAGS -m64" 8466 cat >conftest.$ac_ext <<_ACEOF 8467/* confdefs.h. */ 8468_ACEOF 8469cat confdefs.h >>conftest.$ac_ext 8470cat >>conftest.$ac_ext <<_ACEOF 8471/* end confdefs.h. */ 8472 8473int 8474main () 8475{ 8476 8477 ; 8478 return 0; 8479} 8480_ACEOF 8481rm -f conftest.$ac_objext conftest$ac_exeext 8482if { (ac_try="$ac_link" 8483case "(($ac_try" in 8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8485 *) ac_try_echo=$ac_try;; 8486esac 8487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8488 (eval "$ac_link") 2>conftest.er1 8489 ac_status=$? 8490 grep -v '^ *+' conftest.er1 >conftest.err 8491 rm -f conftest.er1 8492 cat conftest.err >&5 8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8494 (exit $ac_status); } && { 8495 test -z "$ac_c_werror_flag" || 8496 test ! -s conftest.err 8497 } && test -s conftest$ac_exeext && 8498 $as_test_x conftest$ac_exeext; then 8499 tcl_cv_cc_m64=yes 8500else 8501 echo "$as_me: failed program was:" >&5 8502sed 's/^/| /' conftest.$ac_ext >&5 8503 8504 tcl_cv_cc_m64=no 8505fi 8506 8507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8508 conftest$ac_exeext conftest.$ac_ext 8509 CFLAGS=$hold_cflags 8510fi 8511{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8512echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8513 if test $tcl_cv_cc_m64 = yes; then 8514 8515 CFLAGS="$CFLAGS -m64" 8516 do64bit_ok=yes 8517 8518fi 8519 8520 8521fi 8522 8523 8524 # The combo of gcc + glibc has a bug related to inlining of 8525 # functions like strtod(). The -fno-builtin flag should address 8526 # this problem but it does not work. The -fno-inline flag is kind 8527 # of overkill but it works. Disable inlining only when one of the 8528 # files in compat/*.c is being linked in. 8529 8530 if test x"${USE_COMPAT}" != x; then 8531 CFLAGS="$CFLAGS -fno-inline" 8532fi 8533 8534 8535 ;; 8536 GNU*) 8537 SHLIB_CFLAGS="-fPIC" 8538 SHLIB_SUFFIX=".so" 8539 8540 SHLIB_LD='${CC} -shared' 8541 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8542 CC_SEARCH_FLAGS="" 8543 LD_SEARCH_FLAGS="" 8544 if test "`uname -m`" = "alpha"; then 8545 CFLAGS="$CFLAGS -mieee" 8546fi 8547 8548 ;; 8549 Lynx*) 8550 SHLIB_CFLAGS="-fPIC" 8551 SHLIB_SUFFIX=".so" 8552 CFLAGS_OPTIMIZE=-02 8553 SHLIB_LD='${CC} -shared' 8554 LD_FLAGS="-Wl,--export-dynamic" 8555 if test $doRpath = yes; then 8556 8557 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8558 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8559fi 8560 8561 ;; 8562 OpenBSD-*) 8563 SHLIB_CFLAGS="-fPIC" 8564 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8565 SHLIB_SUFFIX=".so" 8566 if test $doRpath = yes; then 8567 8568 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8569fi 8570 8571 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8572 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8573 { echo "$as_me:$LINENO: checking for ELF" >&5 8574echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8575if test "${tcl_cv_ld_elf+set}" = set; then 8576 echo $ECHO_N "(cached) $ECHO_C" >&6 8577else 8578 8579 cat >conftest.$ac_ext <<_ACEOF 8580/* confdefs.h. */ 8581_ACEOF 8582cat confdefs.h >>conftest.$ac_ext 8583cat >>conftest.$ac_ext <<_ACEOF 8584/* end confdefs.h. */ 8585 8586#ifdef __ELF__ 8587 yes 8588#endif 8589 8590_ACEOF 8591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8592 $EGREP "yes" >/dev/null 2>&1; then 8593 tcl_cv_ld_elf=yes 8594else 8595 tcl_cv_ld_elf=no 8596fi 8597rm -f -r conftest* 8598 8599fi 8600{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8601echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8602 if test $tcl_cv_ld_elf = yes; then 8603 8604 LDFLAGS=-Wl,-export-dynamic 8605 8606else 8607 LDFLAGS="" 8608fi 8609 8610 if test "${TCL_THREADS}" = "1"; then 8611 8612 # OpenBSD builds and links with -pthread, never -lpthread. 8613 LIBS=`echo $LIBS | sed s/-lpthread//` 8614 CFLAGS="$CFLAGS -pthread" 8615 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8616 8617fi 8618 8619 # OpenBSD doesn't do version numbers with dots. 8620 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8621 TCL_LIB_VERSIONS_OK=nodots 8622 ;; 8623 NetBSD-*|FreeBSD-[3-4].*) 8624 # FreeBSD 3.* and greater have ELF. 8625 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8626 SHLIB_CFLAGS="-fPIC" 8627 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8628 SHLIB_SUFFIX=".so" 8629 LDFLAGS="$LDFLAGS -export-dynamic" 8630 if test $doRpath = yes; then 8631 8632 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8633fi 8634 8635 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8636 if test "${TCL_THREADS}" = "1"; then 8637 8638 # The -pthread needs to go in the CFLAGS, not LIBS 8639 LIBS=`echo $LIBS | sed s/-pthread//` 8640 CFLAGS="$CFLAGS -pthread" 8641 LDFLAGS="$LDFLAGS -pthread" 8642 8643fi 8644 8645 case $system in 8646 FreeBSD-3.*) 8647 # FreeBSD-3 doesn't handle version numbers with dots. 8648 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8649 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8650 TCL_LIB_VERSIONS_OK=nodots 8651 ;; 8652 esac 8653 ;; 8654 FreeBSD-*) 8655 # This configuration from FreeBSD Ports. 8656 SHLIB_CFLAGS="-fPIC" 8657 SHLIB_LD="${CC} -shared" 8658 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8659 SHLIB_SUFFIX=".so" 8660 LDFLAGS="" 8661 if test $doRpath = yes; then 8662 8663 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8664 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8665fi 8666 8667 if test "${TCL_THREADS}" = "1"; then 8668 8669 # The -pthread needs to go in the LDFLAGS, not LIBS 8670 LIBS=`echo $LIBS | sed s/-pthread//` 8671 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8672 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8673fi 8674 8675 # Version numbers are dot-stripped by system policy. 8676 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8677 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8678 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8679 TCL_LIB_VERSIONS_OK=nodots 8680 ;; 8681 Darwin-*) 8682 CFLAGS_OPTIMIZE="-Os" 8683 SHLIB_CFLAGS="-fno-common" 8684 # To avoid discrepancies between what headers configure sees during 8685 # preprocessing tests and compiling tests, move any -isysroot and 8686 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8687 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8688 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8689 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8690 CFLAGS="`echo " ${CFLAGS}" | \ 8691 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8692 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8693 if test $do64bit = yes; then 8694 8695 case `arch` in 8696 ppc) 8697 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8698echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8699if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8700 echo $ECHO_N "(cached) $ECHO_C" >&6 8701else 8702 8703 hold_cflags=$CFLAGS 8704 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8705 cat >conftest.$ac_ext <<_ACEOF 8706/* confdefs.h. */ 8707_ACEOF 8708cat confdefs.h >>conftest.$ac_ext 8709cat >>conftest.$ac_ext <<_ACEOF 8710/* end confdefs.h. */ 8711 8712int 8713main () 8714{ 8715 8716 ; 8717 return 0; 8718} 8719_ACEOF 8720rm -f conftest.$ac_objext conftest$ac_exeext 8721if { (ac_try="$ac_link" 8722case "(($ac_try" in 8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8724 *) ac_try_echo=$ac_try;; 8725esac 8726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8727 (eval "$ac_link") 2>conftest.er1 8728 ac_status=$? 8729 grep -v '^ *+' conftest.er1 >conftest.err 8730 rm -f conftest.er1 8731 cat conftest.err >&5 8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8733 (exit $ac_status); } && { 8734 test -z "$ac_c_werror_flag" || 8735 test ! -s conftest.err 8736 } && test -s conftest$ac_exeext && 8737 $as_test_x conftest$ac_exeext; then 8738 tcl_cv_cc_arch_ppc64=yes 8739else 8740 echo "$as_me: failed program was:" >&5 8741sed 's/^/| /' conftest.$ac_ext >&5 8742 8743 tcl_cv_cc_arch_ppc64=no 8744fi 8745 8746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8747 conftest$ac_exeext conftest.$ac_ext 8748 CFLAGS=$hold_cflags 8749fi 8750{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8751echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 8752 if test $tcl_cv_cc_arch_ppc64 = yes; then 8753 8754 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8755 do64bit_ok=yes 8756 8757fi 8758;; 8759 i386) 8760 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8761echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 8762if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8763 echo $ECHO_N "(cached) $ECHO_C" >&6 8764else 8765 8766 hold_cflags=$CFLAGS 8767 CFLAGS="$CFLAGS -arch x86_64" 8768 cat >conftest.$ac_ext <<_ACEOF 8769/* confdefs.h. */ 8770_ACEOF 8771cat confdefs.h >>conftest.$ac_ext 8772cat >>conftest.$ac_ext <<_ACEOF 8773/* end confdefs.h. */ 8774 8775int 8776main () 8777{ 8778 8779 ; 8780 return 0; 8781} 8782_ACEOF 8783rm -f conftest.$ac_objext conftest$ac_exeext 8784if { (ac_try="$ac_link" 8785case "(($ac_try" in 8786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8787 *) ac_try_echo=$ac_try;; 8788esac 8789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8790 (eval "$ac_link") 2>conftest.er1 8791 ac_status=$? 8792 grep -v '^ *+' conftest.er1 >conftest.err 8793 rm -f conftest.er1 8794 cat conftest.err >&5 8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8796 (exit $ac_status); } && { 8797 test -z "$ac_c_werror_flag" || 8798 test ! -s conftest.err 8799 } && test -s conftest$ac_exeext && 8800 $as_test_x conftest$ac_exeext; then 8801 tcl_cv_cc_arch_x86_64=yes 8802else 8803 echo "$as_me: failed program was:" >&5 8804sed 's/^/| /' conftest.$ac_ext >&5 8805 8806 tcl_cv_cc_arch_x86_64=no 8807fi 8808 8809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8810 conftest$ac_exeext conftest.$ac_ext 8811 CFLAGS=$hold_cflags 8812fi 8813{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8814echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 8815 if test $tcl_cv_cc_arch_x86_64 = yes; then 8816 8817 CFLAGS="$CFLAGS -arch x86_64" 8818 do64bit_ok=yes 8819 8820fi 8821;; 8822 *) 8823 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8824echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8825 esac 8826 8827else 8828 8829 # Check for combined 32-bit and 64-bit fat build 8830 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8831 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8832 8833 fat_32_64=yes 8834fi 8835 8836 8837fi 8838 8839 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8840 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8841 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8842echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 8843if test "${tcl_cv_ld_single_module+set}" = set; then 8844 echo $ECHO_N "(cached) $ECHO_C" >&6 8845else 8846 8847 hold_ldflags=$LDFLAGS 8848 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8849 cat >conftest.$ac_ext <<_ACEOF 8850/* confdefs.h. */ 8851_ACEOF 8852cat confdefs.h >>conftest.$ac_ext 8853cat >>conftest.$ac_ext <<_ACEOF 8854/* end confdefs.h. */ 8855 8856int 8857main () 8858{ 8859int i; 8860 ; 8861 return 0; 8862} 8863_ACEOF 8864rm -f conftest.$ac_objext conftest$ac_exeext 8865if { (ac_try="$ac_link" 8866case "(($ac_try" in 8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8868 *) ac_try_echo=$ac_try;; 8869esac 8870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8871 (eval "$ac_link") 2>conftest.er1 8872 ac_status=$? 8873 grep -v '^ *+' conftest.er1 >conftest.err 8874 rm -f conftest.er1 8875 cat conftest.err >&5 8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8877 (exit $ac_status); } && { 8878 test -z "$ac_c_werror_flag" || 8879 test ! -s conftest.err 8880 } && test -s conftest$ac_exeext && 8881 $as_test_x conftest$ac_exeext; then 8882 tcl_cv_ld_single_module=yes 8883else 8884 echo "$as_me: failed program was:" >&5 8885sed 's/^/| /' conftest.$ac_ext >&5 8886 8887 tcl_cv_ld_single_module=no 8888fi 8889 8890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8891 conftest$ac_exeext conftest.$ac_ext 8892 LDFLAGS=$hold_ldflags 8893fi 8894{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 8895echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 8896 if test $tcl_cv_ld_single_module = yes; then 8897 8898 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8899 8900fi 8901 8902 # TEA specific: link shlib with current and compatiblity version flags 8903 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 8904 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 8905 SHLIB_SUFFIX=".dylib" 8906 # Don't use -prebind when building for Mac OS X 10.4 or later only: 8907 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 8908 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 8909 8910 LDFLAGS="$LDFLAGS -prebind" 8911fi 8912 8913 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 8914 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 8915echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 8916if test "${tcl_cv_ld_search_paths_first+set}" = set; then 8917 echo $ECHO_N "(cached) $ECHO_C" >&6 8918else 8919 8920 hold_ldflags=$LDFLAGS 8921 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8922 cat >conftest.$ac_ext <<_ACEOF 8923/* confdefs.h. */ 8924_ACEOF 8925cat confdefs.h >>conftest.$ac_ext 8926cat >>conftest.$ac_ext <<_ACEOF 8927/* end confdefs.h. */ 8928 8929int 8930main () 8931{ 8932int i; 8933 ; 8934 return 0; 8935} 8936_ACEOF 8937rm -f conftest.$ac_objext conftest$ac_exeext 8938if { (ac_try="$ac_link" 8939case "(($ac_try" in 8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8941 *) ac_try_echo=$ac_try;; 8942esac 8943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8944 (eval "$ac_link") 2>conftest.er1 8945 ac_status=$? 8946 grep -v '^ *+' conftest.er1 >conftest.err 8947 rm -f conftest.er1 8948 cat conftest.err >&5 8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8950 (exit $ac_status); } && { 8951 test -z "$ac_c_werror_flag" || 8952 test ! -s conftest.err 8953 } && test -s conftest$ac_exeext && 8954 $as_test_x conftest$ac_exeext; then 8955 tcl_cv_ld_search_paths_first=yes 8956else 8957 echo "$as_me: failed program was:" >&5 8958sed 's/^/| /' conftest.$ac_ext >&5 8959 8960 tcl_cv_ld_search_paths_first=no 8961fi 8962 8963rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8964 conftest$ac_exeext conftest.$ac_ext 8965 LDFLAGS=$hold_ldflags 8966fi 8967{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 8968echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 8969 if test $tcl_cv_ld_search_paths_first = yes; then 8970 8971 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8972 8973fi 8974 8975 if test "$tcl_cv_cc_visibility_hidden" != yes; then 8976 8977 8978cat >>confdefs.h <<\_ACEOF 8979#define MODULE_SCOPE __private_extern__ 8980_ACEOF 8981 8982 tcl_cv_cc_visibility_hidden=yes 8983 8984fi 8985 8986 CC_SEARCH_FLAGS="" 8987 LD_SEARCH_FLAGS="" 8988 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 8989 # TEA specific: for combined 32 & 64 bit fat builds of Tk 8990 # extensions, verify that 64-bit build is possible. 8991 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 8992 8993 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 8994 8995 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 8996echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 8997if test "${tcl_cv_lib_x11_64+set}" = set; then 8998 echo $ECHO_N "(cached) $ECHO_C" >&6 8999else 9000 9001 for v in CFLAGS CPPFLAGS LDFLAGS; do 9002 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9003 done 9004 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9005 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9006 cat >conftest.$ac_ext <<_ACEOF 9007/* confdefs.h. */ 9008_ACEOF 9009cat confdefs.h >>conftest.$ac_ext 9010cat >>conftest.$ac_ext <<_ACEOF 9011/* end confdefs.h. */ 9012#include <X11/Xlib.h> 9013int 9014main () 9015{ 9016XrmInitialize(); 9017 ; 9018 return 0; 9019} 9020_ACEOF 9021rm -f conftest.$ac_objext conftest$ac_exeext 9022if { (ac_try="$ac_link" 9023case "(($ac_try" in 9024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9025 *) ac_try_echo=$ac_try;; 9026esac 9027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9028 (eval "$ac_link") 2>conftest.er1 9029 ac_status=$? 9030 grep -v '^ *+' conftest.er1 >conftest.err 9031 rm -f conftest.er1 9032 cat conftest.err >&5 9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9034 (exit $ac_status); } && { 9035 test -z "$ac_c_werror_flag" || 9036 test ! -s conftest.err 9037 } && test -s conftest$ac_exeext && 9038 $as_test_x conftest$ac_exeext; then 9039 tcl_cv_lib_x11_64=yes 9040else 9041 echo "$as_me: failed program was:" >&5 9042sed 's/^/| /' conftest.$ac_ext >&5 9043 9044 tcl_cv_lib_x11_64=no 9045fi 9046 9047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9048 conftest$ac_exeext conftest.$ac_ext 9049 for v in CFLAGS CPPFLAGS LDFLAGS; do 9050 eval $v'="$hold_'$v'"' 9051 done 9052fi 9053{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9054echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9055 9056fi 9057 9058 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9059 9060 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9061echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9062if test "${tcl_cv_lib_tk_64+set}" = set; then 9063 echo $ECHO_N "(cached) $ECHO_C" >&6 9064else 9065 9066 for v in CFLAGS CPPFLAGS LDFLAGS; do 9067 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9068 done 9069 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9070 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9071 cat >conftest.$ac_ext <<_ACEOF 9072/* confdefs.h. */ 9073_ACEOF 9074cat confdefs.h >>conftest.$ac_ext 9075cat >>conftest.$ac_ext <<_ACEOF 9076/* end confdefs.h. */ 9077#include <tk.h> 9078int 9079main () 9080{ 9081Tk_InitStubs(NULL, "", 0); 9082 ; 9083 return 0; 9084} 9085_ACEOF 9086rm -f conftest.$ac_objext conftest$ac_exeext 9087if { (ac_try="$ac_link" 9088case "(($ac_try" in 9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9090 *) ac_try_echo=$ac_try;; 9091esac 9092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9093 (eval "$ac_link") 2>conftest.er1 9094 ac_status=$? 9095 grep -v '^ *+' conftest.er1 >conftest.err 9096 rm -f conftest.er1 9097 cat conftest.err >&5 9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9099 (exit $ac_status); } && { 9100 test -z "$ac_c_werror_flag" || 9101 test ! -s conftest.err 9102 } && test -s conftest$ac_exeext && 9103 $as_test_x conftest$ac_exeext; then 9104 tcl_cv_lib_tk_64=yes 9105else 9106 echo "$as_me: failed program was:" >&5 9107sed 's/^/| /' conftest.$ac_ext >&5 9108 9109 tcl_cv_lib_tk_64=no 9110fi 9111 9112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9113 conftest$ac_exeext conftest.$ac_ext 9114 for v in CFLAGS CPPFLAGS LDFLAGS; do 9115 eval $v'="$hold_'$v'"' 9116 done 9117fi 9118{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9119echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9120 9121fi 9122 9123 # remove 64-bit arch flags from CFLAGS et al. if configuration 9124 # does not support 64-bit. 9125 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9126 9127 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9128echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9129 for v in CFLAGS CPPFLAGS LDFLAGS; do 9130 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9131 done 9132fi 9133 9134 9135fi 9136 9137 ;; 9138 OS/390-*) 9139 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9140 9141cat >>confdefs.h <<\_ACEOF 9142#define _OE_SOCKETS 1 9143_ACEOF 9144 9145 ;; 9146 OSF1-V*) 9147 # Digital OSF/1 9148 SHLIB_CFLAGS="" 9149 if test "$SHARED_BUILD" = 1; then 9150 9151 SHLIB_LD='ld -shared -expect_unresolved "*"' 9152 9153else 9154 9155 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9156 9157fi 9158 9159 SHLIB_SUFFIX=".so" 9160 if test $doRpath = yes; then 9161 9162 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9163 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9164fi 9165 9166 if test "$GCC" = yes; then 9167 CFLAGS="$CFLAGS -mieee" 9168else 9169 9170 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9171fi 9172 9173 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9174 if test "${TCL_THREADS}" = 1; then 9175 9176 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9177 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9178 LIBS=`echo $LIBS | sed s/-lpthreads//` 9179 if test "$GCC" = yes; then 9180 9181 LIBS="$LIBS -lpthread -lmach -lexc" 9182 9183else 9184 9185 CFLAGS="$CFLAGS -pthread" 9186 LDFLAGS="$LDFLAGS -pthread" 9187 9188fi 9189 9190 9191fi 9192 9193 ;; 9194 QNX-6*) 9195 # QNX RTP 9196 # This may work for all QNX, but it was only reported for v6. 9197 SHLIB_CFLAGS="-fPIC" 9198 SHLIB_LD="ld -Bshareable -x" 9199 SHLIB_LD_LIBS="" 9200 SHLIB_SUFFIX=".so" 9201 CC_SEARCH_FLAGS="" 9202 LD_SEARCH_FLAGS="" 9203 ;; 9204 SCO_SV-3.2*) 9205 if test "$GCC" = yes; then 9206 9207 SHLIB_CFLAGS="-fPIC -melf" 9208 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9209 9210else 9211 9212 SHLIB_CFLAGS="-Kpic -belf" 9213 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9214 9215fi 9216 9217 SHLIB_LD="ld -G" 9218 SHLIB_LD_LIBS="" 9219 SHLIB_SUFFIX=".so" 9220 CC_SEARCH_FLAGS="" 9221 LD_SEARCH_FLAGS="" 9222 ;; 9223 SunOS-5.[0-6]) 9224 # Careful to not let 5.10+ fall into this case 9225 9226 # Note: If _REENTRANT isn't defined, then Solaris 9227 # won't define thread-safe library routines. 9228 9229 9230cat >>confdefs.h <<\_ACEOF 9231#define _REENTRANT 1 9232_ACEOF 9233 9234 9235cat >>confdefs.h <<\_ACEOF 9236#define _POSIX_PTHREAD_SEMANTICS 1 9237_ACEOF 9238 9239 9240 SHLIB_CFLAGS="-KPIC" 9241 SHLIB_SUFFIX=".so" 9242 if test "$GCC" = yes; then 9243 9244 SHLIB_LD='${CC} -shared' 9245 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9246 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9247 9248else 9249 9250 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9251 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9252 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9253 9254fi 9255 9256 ;; 9257 SunOS-5*) 9258 # Note: If _REENTRANT isn't defined, then Solaris 9259 # won't define thread-safe library routines. 9260 9261 9262cat >>confdefs.h <<\_ACEOF 9263#define _REENTRANT 1 9264_ACEOF 9265 9266 9267cat >>confdefs.h <<\_ACEOF 9268#define _POSIX_PTHREAD_SEMANTICS 1 9269_ACEOF 9270 9271 9272 SHLIB_CFLAGS="-KPIC" 9273 9274 # Check to enable 64-bit flags for compiler/linker 9275 if test "$do64bit" = yes; then 9276 9277 arch=`isainfo` 9278 if test "$arch" = "sparcv9 sparc"; then 9279 9280 if test "$GCC" = yes; then 9281 9282 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9283 9284 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9285echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9286 9287else 9288 9289 do64bit_ok=yes 9290 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9291 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9292 SHLIB_CFLAGS="-fPIC" 9293 9294fi 9295 9296 9297else 9298 9299 do64bit_ok=yes 9300 if test "$do64bitVIS" = yes; then 9301 9302 CFLAGS="$CFLAGS -xarch=v9a" 9303 LDFLAGS_ARCH="-xarch=v9a" 9304 9305else 9306 9307 CFLAGS="$CFLAGS -xarch=v9" 9308 LDFLAGS_ARCH="-xarch=v9" 9309 9310fi 9311 9312 # Solaris 64 uses this as well 9313 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9314 9315fi 9316 9317 9318else 9319 if test "$arch" = "amd64 i386"; then 9320 9321 if test "$GCC" = yes; then 9322 9323 case $system in 9324 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9325 do64bit_ok=yes 9326 CFLAGS="$CFLAGS -m64" 9327 LDFLAGS="$LDFLAGS -m64";; 9328 *) 9329 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9330echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9331 esac 9332 9333else 9334 9335 do64bit_ok=yes 9336 case $system in 9337 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9338 CFLAGS="$CFLAGS -m64" 9339 LDFLAGS="$LDFLAGS -m64";; 9340 *) 9341 CFLAGS="$CFLAGS -xarch=amd64" 9342 LDFLAGS="$LDFLAGS -xarch=amd64";; 9343 esac 9344 9345fi 9346 9347 9348else 9349 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9350echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9351fi 9352 9353fi 9354 9355 9356fi 9357 9358 9359 SHLIB_SUFFIX=".so" 9360 if test "$GCC" = yes; then 9361 9362 SHLIB_LD='${CC} -shared' 9363 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9364 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9365 if test "$do64bit_ok" = yes; then 9366 9367 if test "$arch" = "sparcv9 sparc"; then 9368 9369 # We need to specify -static-libgcc or we need to 9370 # add the path to the sparv9 libgcc. 9371 # JH: static-libgcc is necessary for core Tcl, but may 9372 # not be necessary for extensions. 9373 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9374 # for finding sparcv9 libgcc, get the regular libgcc 9375 # path, remove so name and append 'sparcv9' 9376 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9377 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9378 9379else 9380 if test "$arch" = "amd64 i386"; then 9381 9382 # JH: static-libgcc is necessary for core Tcl, but may 9383 # not be necessary for extensions. 9384 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9385 9386fi 9387 9388fi 9389 9390 9391fi 9392 9393 9394else 9395 9396 case $system in 9397 SunOS-5.[1-9][0-9]*) 9398 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9399 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9400 *) 9401 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9402 esac 9403 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9404 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9405 9406fi 9407 9408 ;; 9409 esac 9410 9411 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9412 9413 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9414echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9415 9416fi 9417 9418 9419 9420 9421 # Add in the arch flags late to ensure it wasn't removed. 9422 # Not necessary in TEA, but this is aligned with core 9423 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9424 9425 # If we're running gcc, then change the C flags for compiling shared 9426 # libraries to the right flags for gcc, instead of those for the 9427 # standard manufacturer compiler. 9428 9429 if test "$GCC" = yes; then 9430 9431 case $system in 9432 AIX-*) ;; 9433 BSD/OS*) ;; 9434 CYGWIN_*) ;; 9435 IRIX*) ;; 9436 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9437 Darwin-*) ;; 9438 SCO_SV-3.2*) ;; 9439 windows) ;; 9440 *) SHLIB_CFLAGS="-fPIC" ;; 9441 esac 9442fi 9443 9444 9445 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9446 9447 9448cat >>confdefs.h <<\_ACEOF 9449#define MODULE_SCOPE extern 9450_ACEOF 9451 9452 9453cat >>confdefs.h <<\_ACEOF 9454#define NO_VIZ 9455_ACEOF 9456 9457 9458fi 9459 9460 9461 if test "$SHARED_LIB_SUFFIX" = ""; then 9462 9463 # TEA specific: use PACKAGE_VERSION instead of VERSION 9464 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9465fi 9466 9467 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9468 9469 # TEA specific: use PACKAGE_VERSION instead of VERSION 9470 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9471fi 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 # These must be called after we do the basic CFLAGS checks and 9487 # verify any possible 64-bit or similar switches are necessary 9488 9489 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9490echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9491 tcl_flags="" 9492 9493 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9494 echo $ECHO_N "(cached) $ECHO_C" >&6 9495else 9496 cat >conftest.$ac_ext <<_ACEOF 9497/* confdefs.h. */ 9498_ACEOF 9499cat confdefs.h >>conftest.$ac_ext 9500cat >>conftest.$ac_ext <<_ACEOF 9501/* end confdefs.h. */ 9502#include <stdlib.h> 9503int 9504main () 9505{ 9506char *p = (char *)strtoll; char *q = (char *)strtoull; 9507 ; 9508 return 0; 9509} 9510_ACEOF 9511rm -f conftest.$ac_objext 9512if { (ac_try="$ac_compile" 9513case "(($ac_try" in 9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9515 *) ac_try_echo=$ac_try;; 9516esac 9517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9518 (eval "$ac_compile") 2>conftest.er1 9519 ac_status=$? 9520 grep -v '^ *+' conftest.er1 >conftest.err 9521 rm -f conftest.er1 9522 cat conftest.err >&5 9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9524 (exit $ac_status); } && { 9525 test -z "$ac_c_werror_flag" || 9526 test ! -s conftest.err 9527 } && test -s conftest.$ac_objext; then 9528 tcl_cv_flag__isoc99_source=no 9529else 9530 echo "$as_me: failed program was:" >&5 9531sed 's/^/| /' conftest.$ac_ext >&5 9532 9533 cat >conftest.$ac_ext <<_ACEOF 9534/* confdefs.h. */ 9535_ACEOF 9536cat confdefs.h >>conftest.$ac_ext 9537cat >>conftest.$ac_ext <<_ACEOF 9538/* end confdefs.h. */ 9539#define _ISOC99_SOURCE 1 9540#include <stdlib.h> 9541int 9542main () 9543{ 9544char *p = (char *)strtoll; char *q = (char *)strtoull; 9545 ; 9546 return 0; 9547} 9548_ACEOF 9549rm -f conftest.$ac_objext 9550if { (ac_try="$ac_compile" 9551case "(($ac_try" in 9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9553 *) ac_try_echo=$ac_try;; 9554esac 9555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9556 (eval "$ac_compile") 2>conftest.er1 9557 ac_status=$? 9558 grep -v '^ *+' conftest.er1 >conftest.err 9559 rm -f conftest.er1 9560 cat conftest.err >&5 9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9562 (exit $ac_status); } && { 9563 test -z "$ac_c_werror_flag" || 9564 test ! -s conftest.err 9565 } && test -s conftest.$ac_objext; then 9566 tcl_cv_flag__isoc99_source=yes 9567else 9568 echo "$as_me: failed program was:" >&5 9569sed 's/^/| /' conftest.$ac_ext >&5 9570 9571 tcl_cv_flag__isoc99_source=no 9572fi 9573 9574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9575fi 9576 9577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9578fi 9579 9580 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9581 9582cat >>confdefs.h <<\_ACEOF 9583#define _ISOC99_SOURCE 1 9584_ACEOF 9585 9586 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9587 fi 9588 9589 9590 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9591 echo $ECHO_N "(cached) $ECHO_C" >&6 9592else 9593 cat >conftest.$ac_ext <<_ACEOF 9594/* confdefs.h. */ 9595_ACEOF 9596cat confdefs.h >>conftest.$ac_ext 9597cat >>conftest.$ac_ext <<_ACEOF 9598/* end confdefs.h. */ 9599#include <sys/stat.h> 9600int 9601main () 9602{ 9603struct stat64 buf; int i = stat64("/", &buf); 9604 ; 9605 return 0; 9606} 9607_ACEOF 9608rm -f conftest.$ac_objext 9609if { (ac_try="$ac_compile" 9610case "(($ac_try" in 9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9612 *) ac_try_echo=$ac_try;; 9613esac 9614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9615 (eval "$ac_compile") 2>conftest.er1 9616 ac_status=$? 9617 grep -v '^ *+' conftest.er1 >conftest.err 9618 rm -f conftest.er1 9619 cat conftest.err >&5 9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9621 (exit $ac_status); } && { 9622 test -z "$ac_c_werror_flag" || 9623 test ! -s conftest.err 9624 } && test -s conftest.$ac_objext; then 9625 tcl_cv_flag__largefile64_source=no 9626else 9627 echo "$as_me: failed program was:" >&5 9628sed 's/^/| /' conftest.$ac_ext >&5 9629 9630 cat >conftest.$ac_ext <<_ACEOF 9631/* confdefs.h. */ 9632_ACEOF 9633cat confdefs.h >>conftest.$ac_ext 9634cat >>conftest.$ac_ext <<_ACEOF 9635/* end confdefs.h. */ 9636#define _LARGEFILE64_SOURCE 1 9637#include <sys/stat.h> 9638int 9639main () 9640{ 9641struct stat64 buf; int i = stat64("/", &buf); 9642 ; 9643 return 0; 9644} 9645_ACEOF 9646rm -f conftest.$ac_objext 9647if { (ac_try="$ac_compile" 9648case "(($ac_try" in 9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9650 *) ac_try_echo=$ac_try;; 9651esac 9652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9653 (eval "$ac_compile") 2>conftest.er1 9654 ac_status=$? 9655 grep -v '^ *+' conftest.er1 >conftest.err 9656 rm -f conftest.er1 9657 cat conftest.err >&5 9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9659 (exit $ac_status); } && { 9660 test -z "$ac_c_werror_flag" || 9661 test ! -s conftest.err 9662 } && test -s conftest.$ac_objext; then 9663 tcl_cv_flag__largefile64_source=yes 9664else 9665 echo "$as_me: failed program was:" >&5 9666sed 's/^/| /' conftest.$ac_ext >&5 9667 9668 tcl_cv_flag__largefile64_source=no 9669fi 9670 9671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9672fi 9673 9674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9675fi 9676 9677 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9678 9679cat >>confdefs.h <<\_ACEOF 9680#define _LARGEFILE64_SOURCE 1 9681_ACEOF 9682 9683 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9684 fi 9685 9686 9687 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9688 echo $ECHO_N "(cached) $ECHO_C" >&6 9689else 9690 cat >conftest.$ac_ext <<_ACEOF 9691/* confdefs.h. */ 9692_ACEOF 9693cat confdefs.h >>conftest.$ac_ext 9694cat >>conftest.$ac_ext <<_ACEOF 9695/* end confdefs.h. */ 9696#include <sys/stat.h> 9697int 9698main () 9699{ 9700char *p = (char *)open64; 9701 ; 9702 return 0; 9703} 9704_ACEOF 9705rm -f conftest.$ac_objext 9706if { (ac_try="$ac_compile" 9707case "(($ac_try" in 9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9709 *) ac_try_echo=$ac_try;; 9710esac 9711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9712 (eval "$ac_compile") 2>conftest.er1 9713 ac_status=$? 9714 grep -v '^ *+' conftest.er1 >conftest.err 9715 rm -f conftest.er1 9716 cat conftest.err >&5 9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9718 (exit $ac_status); } && { 9719 test -z "$ac_c_werror_flag" || 9720 test ! -s conftest.err 9721 } && test -s conftest.$ac_objext; then 9722 tcl_cv_flag__largefile_source64=no 9723else 9724 echo "$as_me: failed program was:" >&5 9725sed 's/^/| /' conftest.$ac_ext >&5 9726 9727 cat >conftest.$ac_ext <<_ACEOF 9728/* confdefs.h. */ 9729_ACEOF 9730cat confdefs.h >>conftest.$ac_ext 9731cat >>conftest.$ac_ext <<_ACEOF 9732/* end confdefs.h. */ 9733#define _LARGEFILE_SOURCE64 1 9734#include <sys/stat.h> 9735int 9736main () 9737{ 9738char *p = (char *)open64; 9739 ; 9740 return 0; 9741} 9742_ACEOF 9743rm -f conftest.$ac_objext 9744if { (ac_try="$ac_compile" 9745case "(($ac_try" in 9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9747 *) ac_try_echo=$ac_try;; 9748esac 9749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9750 (eval "$ac_compile") 2>conftest.er1 9751 ac_status=$? 9752 grep -v '^ *+' conftest.er1 >conftest.err 9753 rm -f conftest.er1 9754 cat conftest.err >&5 9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9756 (exit $ac_status); } && { 9757 test -z "$ac_c_werror_flag" || 9758 test ! -s conftest.err 9759 } && test -s conftest.$ac_objext; then 9760 tcl_cv_flag__largefile_source64=yes 9761else 9762 echo "$as_me: failed program was:" >&5 9763sed 's/^/| /' conftest.$ac_ext >&5 9764 9765 tcl_cv_flag__largefile_source64=no 9766fi 9767 9768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9769fi 9770 9771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9772fi 9773 9774 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9775 9776cat >>confdefs.h <<\_ACEOF 9777#define _LARGEFILE_SOURCE64 1 9778_ACEOF 9779 9780 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9781 fi 9782 9783 if test "x${tcl_flags}" = "x" ; then 9784 { echo "$as_me:$LINENO: result: none" >&5 9785echo "${ECHO_T}none" >&6; } 9786 else 9787 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9788echo "${ECHO_T}${tcl_flags}" >&6; } 9789 fi 9790 9791 9792 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9793echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 9794 if test "${tcl_cv_type_64bit+set}" = set; then 9795 echo $ECHO_N "(cached) $ECHO_C" >&6 9796else 9797 9798 tcl_cv_type_64bit=none 9799 # See if the compiler knows natively about __int64 9800 cat >conftest.$ac_ext <<_ACEOF 9801/* confdefs.h. */ 9802_ACEOF 9803cat confdefs.h >>conftest.$ac_ext 9804cat >>conftest.$ac_ext <<_ACEOF 9805/* end confdefs.h. */ 9806 9807int 9808main () 9809{ 9810__int64 value = (__int64) 0; 9811 ; 9812 return 0; 9813} 9814_ACEOF 9815rm -f conftest.$ac_objext 9816if { (ac_try="$ac_compile" 9817case "(($ac_try" in 9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9819 *) ac_try_echo=$ac_try;; 9820esac 9821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9822 (eval "$ac_compile") 2>conftest.er1 9823 ac_status=$? 9824 grep -v '^ *+' conftest.er1 >conftest.err 9825 rm -f conftest.er1 9826 cat conftest.err >&5 9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9828 (exit $ac_status); } && { 9829 test -z "$ac_c_werror_flag" || 9830 test ! -s conftest.err 9831 } && test -s conftest.$ac_objext; then 9832 tcl_type_64bit=__int64 9833else 9834 echo "$as_me: failed program was:" >&5 9835sed 's/^/| /' conftest.$ac_ext >&5 9836 9837 tcl_type_64bit="long long" 9838fi 9839 9840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9841 # See if we should use long anyway Note that we substitute in the 9842 # type that is our current guess for a 64-bit type inside this check 9843 # program, so it should be modified only carefully... 9844 cat >conftest.$ac_ext <<_ACEOF 9845/* confdefs.h. */ 9846_ACEOF 9847cat confdefs.h >>conftest.$ac_ext 9848cat >>conftest.$ac_ext <<_ACEOF 9849/* end confdefs.h. */ 9850 9851int 9852main () 9853{ 9854switch (0) { 9855 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9856 } 9857 ; 9858 return 0; 9859} 9860_ACEOF 9861rm -f conftest.$ac_objext 9862if { (ac_try="$ac_compile" 9863case "(($ac_try" in 9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9865 *) ac_try_echo=$ac_try;; 9866esac 9867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9868 (eval "$ac_compile") 2>conftest.er1 9869 ac_status=$? 9870 grep -v '^ *+' conftest.er1 >conftest.err 9871 rm -f conftest.er1 9872 cat conftest.err >&5 9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9874 (exit $ac_status); } && { 9875 test -z "$ac_c_werror_flag" || 9876 test ! -s conftest.err 9877 } && test -s conftest.$ac_objext; then 9878 tcl_cv_type_64bit=${tcl_type_64bit} 9879else 9880 echo "$as_me: failed program was:" >&5 9881sed 's/^/| /' conftest.$ac_ext >&5 9882 9883 9884fi 9885 9886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9887fi 9888 9889 if test "${tcl_cv_type_64bit}" = none ; then 9890 9891cat >>confdefs.h <<\_ACEOF 9892#define TCL_WIDE_INT_IS_LONG 1 9893_ACEOF 9894 9895 { echo "$as_me:$LINENO: result: using long" >&5 9896echo "${ECHO_T}using long" >&6; } 9897 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9898 -a "${TEA_PLATFORM}" = "windows" ; then 9899 # TEA specific: We actually want to use the default tcl.h checks in 9900 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 9901 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 9902echo "${ECHO_T}using Tcl header defaults" >&6; } 9903 else 9904 9905cat >>confdefs.h <<_ACEOF 9906#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 9907_ACEOF 9908 9909 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 9910echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 9911 9912 # Now check for auxiliary declarations 9913 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 9914echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 9915if test "${tcl_cv_struct_dirent64+set}" = set; then 9916 echo $ECHO_N "(cached) $ECHO_C" >&6 9917else 9918 9919 cat >conftest.$ac_ext <<_ACEOF 9920/* confdefs.h. */ 9921_ACEOF 9922cat confdefs.h >>conftest.$ac_ext 9923cat >>conftest.$ac_ext <<_ACEOF 9924/* end confdefs.h. */ 9925#include <sys/types.h> 9926#include <sys/dirent.h> 9927int 9928main () 9929{ 9930struct dirent64 p; 9931 ; 9932 return 0; 9933} 9934_ACEOF 9935rm -f conftest.$ac_objext 9936if { (ac_try="$ac_compile" 9937case "(($ac_try" in 9938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9939 *) ac_try_echo=$ac_try;; 9940esac 9941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9942 (eval "$ac_compile") 2>conftest.er1 9943 ac_status=$? 9944 grep -v '^ *+' conftest.er1 >conftest.err 9945 rm -f conftest.er1 9946 cat conftest.err >&5 9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9948 (exit $ac_status); } && { 9949 test -z "$ac_c_werror_flag" || 9950 test ! -s conftest.err 9951 } && test -s conftest.$ac_objext; then 9952 tcl_cv_struct_dirent64=yes 9953else 9954 echo "$as_me: failed program was:" >&5 9955sed 's/^/| /' conftest.$ac_ext >&5 9956 9957 tcl_cv_struct_dirent64=no 9958fi 9959 9960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9961fi 9962{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 9963echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 9964 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 9965 9966cat >>confdefs.h <<\_ACEOF 9967#define HAVE_STRUCT_DIRENT64 1 9968_ACEOF 9969 9970 fi 9971 9972 { echo "$as_me:$LINENO: checking for struct stat64" >&5 9973echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 9974if test "${tcl_cv_struct_stat64+set}" = set; then 9975 echo $ECHO_N "(cached) $ECHO_C" >&6 9976else 9977 9978 cat >conftest.$ac_ext <<_ACEOF 9979/* confdefs.h. */ 9980_ACEOF 9981cat confdefs.h >>conftest.$ac_ext 9982cat >>conftest.$ac_ext <<_ACEOF 9983/* end confdefs.h. */ 9984#include <sys/stat.h> 9985int 9986main () 9987{ 9988struct stat64 p; 9989 9990 ; 9991 return 0; 9992} 9993_ACEOF 9994rm -f conftest.$ac_objext 9995if { (ac_try="$ac_compile" 9996case "(($ac_try" in 9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9998 *) ac_try_echo=$ac_try;; 9999esac 10000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10001 (eval "$ac_compile") 2>conftest.er1 10002 ac_status=$? 10003 grep -v '^ *+' conftest.er1 >conftest.err 10004 rm -f conftest.er1 10005 cat conftest.err >&5 10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10007 (exit $ac_status); } && { 10008 test -z "$ac_c_werror_flag" || 10009 test ! -s conftest.err 10010 } && test -s conftest.$ac_objext; then 10011 tcl_cv_struct_stat64=yes 10012else 10013 echo "$as_me: failed program was:" >&5 10014sed 's/^/| /' conftest.$ac_ext >&5 10015 10016 tcl_cv_struct_stat64=no 10017fi 10018 10019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10020fi 10021{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10022echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10023 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10024 10025cat >>confdefs.h <<\_ACEOF 10026#define HAVE_STRUCT_STAT64 1 10027_ACEOF 10028 10029 fi 10030 10031 10032 10033for ac_func in open64 lseek64 10034do 10035as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10036{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10037echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10038if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10039 echo $ECHO_N "(cached) $ECHO_C" >&6 10040else 10041 cat >conftest.$ac_ext <<_ACEOF 10042/* confdefs.h. */ 10043_ACEOF 10044cat confdefs.h >>conftest.$ac_ext 10045cat >>conftest.$ac_ext <<_ACEOF 10046/* end confdefs.h. */ 10047/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10048 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10049#define $ac_func innocuous_$ac_func 10050 10051/* System header to define __stub macros and hopefully few prototypes, 10052 which can conflict with char $ac_func (); below. 10053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10054 <limits.h> exists even on freestanding compilers. */ 10055 10056#ifdef __STDC__ 10057# include <limits.h> 10058#else 10059# include <assert.h> 10060#endif 10061 10062#undef $ac_func 10063 10064/* Override any GCC internal prototype to avoid an error. 10065 Use char because int might match the return type of a GCC 10066 builtin and then its argument prototype would still apply. */ 10067#ifdef __cplusplus 10068extern "C" 10069#endif 10070char $ac_func (); 10071/* The GNU C library defines this for functions which it implements 10072 to always fail with ENOSYS. Some functions are actually named 10073 something starting with __ and the normal name is an alias. */ 10074#if defined __stub_$ac_func || defined __stub___$ac_func 10075choke me 10076#endif 10077 10078int 10079main () 10080{ 10081return $ac_func (); 10082 ; 10083 return 0; 10084} 10085_ACEOF 10086rm -f conftest.$ac_objext conftest$ac_exeext 10087if { (ac_try="$ac_link" 10088case "(($ac_try" in 10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10090 *) ac_try_echo=$ac_try;; 10091esac 10092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10093 (eval "$ac_link") 2>conftest.er1 10094 ac_status=$? 10095 grep -v '^ *+' conftest.er1 >conftest.err 10096 rm -f conftest.er1 10097 cat conftest.err >&5 10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10099 (exit $ac_status); } && { 10100 test -z "$ac_c_werror_flag" || 10101 test ! -s conftest.err 10102 } && test -s conftest$ac_exeext && 10103 $as_test_x conftest$ac_exeext; then 10104 eval "$as_ac_var=yes" 10105else 10106 echo "$as_me: failed program was:" >&5 10107sed 's/^/| /' conftest.$ac_ext >&5 10108 10109 eval "$as_ac_var=no" 10110fi 10111 10112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10113 conftest$ac_exeext conftest.$ac_ext 10114fi 10115ac_res=`eval echo '${'$as_ac_var'}'` 10116 { echo "$as_me:$LINENO: result: $ac_res" >&5 10117echo "${ECHO_T}$ac_res" >&6; } 10118if test `eval echo '${'$as_ac_var'}'` = yes; then 10119 cat >>confdefs.h <<_ACEOF 10120#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10121_ACEOF 10122 10123fi 10124done 10125 10126 { echo "$as_me:$LINENO: checking for off64_t" >&5 10127echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10128 if test "${tcl_cv_type_off64_t+set}" = set; then 10129 echo $ECHO_N "(cached) $ECHO_C" >&6 10130else 10131 10132 cat >conftest.$ac_ext <<_ACEOF 10133/* confdefs.h. */ 10134_ACEOF 10135cat confdefs.h >>conftest.$ac_ext 10136cat >>conftest.$ac_ext <<_ACEOF 10137/* end confdefs.h. */ 10138#include <sys/types.h> 10139int 10140main () 10141{ 10142off64_t offset; 10143 10144 ; 10145 return 0; 10146} 10147_ACEOF 10148rm -f conftest.$ac_objext 10149if { (ac_try="$ac_compile" 10150case "(($ac_try" in 10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10152 *) ac_try_echo=$ac_try;; 10153esac 10154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10155 (eval "$ac_compile") 2>conftest.er1 10156 ac_status=$? 10157 grep -v '^ *+' conftest.er1 >conftest.err 10158 rm -f conftest.er1 10159 cat conftest.err >&5 10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10161 (exit $ac_status); } && { 10162 test -z "$ac_c_werror_flag" || 10163 test ! -s conftest.err 10164 } && test -s conftest.$ac_objext; then 10165 tcl_cv_type_off64_t=yes 10166else 10167 echo "$as_me: failed program was:" >&5 10168sed 's/^/| /' conftest.$ac_ext >&5 10169 10170 tcl_cv_type_off64_t=no 10171fi 10172 10173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10174fi 10175 10176 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10177 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10178 test "x${ac_cv_func_open64}" = "xyes" ; then 10179 10180cat >>confdefs.h <<\_ACEOF 10181#define HAVE_TYPE_OFF64_T 1 10182_ACEOF 10183 10184 { echo "$as_me:$LINENO: result: yes" >&5 10185echo "${ECHO_T}yes" >&6; } 10186 else 10187 { echo "$as_me:$LINENO: result: no" >&5 10188echo "${ECHO_T}no" >&6; } 10189 fi 10190 fi 10191 10192 10193 10194#-------------------------------------------------------------------- 10195# Set the default compiler switches based on the --enable-symbols option. 10196#-------------------------------------------------------------------- 10197 10198 10199 10200 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10201echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10202 # Check whether --enable-symbols was given. 10203if test "${enable_symbols+set}" = set; then 10204 enableval=$enable_symbols; tcl_ok=$enableval 10205else 10206 tcl_ok=no 10207fi 10208 10209 DBGX="" 10210 if test "$tcl_ok" = "no"; then 10211 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10212 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10213 { echo "$as_me:$LINENO: result: no" >&5 10214echo "${ECHO_T}no" >&6; } 10215 else 10216 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10217 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10218 if test "$tcl_ok" = "yes"; then 10219 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10220echo "${ECHO_T}yes (standard debugging)" >&6; } 10221 fi 10222 fi 10223 # TEA specific: 10224 if test "${TEA_PLATFORM}" != "windows" ; then 10225 LDFLAGS_DEFAULT="${LDFLAGS}" 10226 fi 10227 10228 10229 10230 10231 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10232 10233cat >>confdefs.h <<\_ACEOF 10234#define TCL_MEM_DEBUG 1 10235_ACEOF 10236 10237 fi 10238 10239 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10240 if test "$tcl_ok" = "all"; then 10241 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10242echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10243 else 10244 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10245echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10246 fi 10247 fi 10248 10249 10250#-------------------------------------------------------------------- 10251# For Unix/Tk builds, make sure that the X libraries/headers are found. 10252# This must be called after TEA_CONFIG_CFLAGS as it adjusts LIBS. 10253#-------------------------------------------------------------------- 10254 10255# See [Bug #82910] 10256#TEA_PATH_X 10257 10258#-------------------------------------------------------------------- 10259# Everyone should be linking against the Tcl stub library. If you 10260# can't for some reason, remove this definition. If you aren't using 10261# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10262# link against the non-stubbed Tcl library. 10263#-------------------------------------------------------------------- 10264 10265cat >>confdefs.h <<\_ACEOF 10266#define USE_TCL_STUBS 1 10267_ACEOF 10268 10269 10270#-------------------------------------------------------------------- 10271# This macro generates a line to use when building a library. It 10272# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10273# and TEA_LOAD_TCLCONFIG macros above. 10274#-------------------------------------------------------------------- 10275 10276 10277 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10278 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10279 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10280 cat >conftest.$ac_ext <<_ACEOF 10281/* confdefs.h. */ 10282_ACEOF 10283cat confdefs.h >>conftest.$ac_ext 10284cat >>conftest.$ac_ext <<_ACEOF 10285/* end confdefs.h. */ 10286 10287#if defined(_MSC_VER) && _MSC_VER >= 1400 10288print("manifest needed") 10289#endif 10290 10291_ACEOF 10292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10293 $EGREP "manifest needed" >/dev/null 2>&1; then 10294 10295 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 10296 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 10297 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 10298 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 10299 10300 CLEANFILES="$CLEANFILES *.manifest" 10301 10302 10303fi 10304rm -f -r conftest* 10305 10306 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10307 else 10308 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10309 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 10310 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10311 fi 10312 10313 if test "${SHARED_BUILD}" = "1" ; then 10314 MAKE_LIB="${MAKE_SHARED_LIB} " 10315 else 10316 MAKE_LIB="${MAKE_STATIC_LIB} " 10317 fi 10318 10319 #-------------------------------------------------------------------- 10320 # Shared libraries and static libraries have different names. 10321 # Use the double eval to make sure any variables in the suffix is 10322 # substituted. (@@@ Might not be necessary anymore) 10323 #-------------------------------------------------------------------- 10324 10325 if test "${TEA_PLATFORM}" = "windows" ; then 10326 if test "${SHARED_BUILD}" = "1" ; then 10327 # We force the unresolved linking of symbols that are really in 10328 # the private libraries of Tcl and Tk. 10329 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10330 if test x"${TK_BIN_DIR}" != x ; then 10331 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10332 fi 10333 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10334 else 10335 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10336 fi 10337 # Some packages build their own stubs libraries 10338 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10339 if test "$GCC" = "yes"; then 10340 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 10341 fi 10342 # These aren't needed on Windows (either MSVC or gcc) 10343 RANLIB=: 10344 RANLIB_STUB=: 10345 else 10346 RANLIB_STUB="${RANLIB}" 10347 if test "${SHARED_BUILD}" = "1" ; then 10348 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10349 if test x"${TK_BIN_DIR}" != x ; then 10350 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10351 fi 10352 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10353 RANLIB=: 10354 else 10355 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10356 fi 10357 # Some packages build their own stubs libraries 10358 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10359 fi 10360 10361 # These are escaped so that only CFLAGS is picked up at configure time. 10362 # The other values will be substituted at make time. 10363 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10364 if test "${SHARED_BUILD}" = "1" ; then 10365 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10366 fi 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377#-------------------------------------------------------------------- 10378# __CHANGE__ 10379# Add platform libs to LIBS or SHLIB_LD_LIBS as necessary. 10380#-------------------------------------------------------------------- 10381 10382SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \${TCL_LIBS}" 10383 10384#-------------------------------------------------------------------- 10385# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 10386# file during the install process. Don't run the TCLSH_PROG through 10387# ${CYGPATH} because it's being used directly by make. 10388# Require that we use a tclsh shell version 8.2 or later since earlier 10389# versions have bugs in the pkg_mkIndex routine. 10390# Add WISH as well if this is a Tk extension. 10391#-------------------------------------------------------------------- 10392 10393 10394 { echo "$as_me:$LINENO: checking for tclsh" >&5 10395echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 10396 if test -f "${TCL_BIN_DIR}/Makefile" ; then 10397 # tclConfig.sh is in Tcl build directory 10398 if test "${TEA_PLATFORM}" = "windows"; then 10399 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10400 else 10401 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 10402 fi 10403 else 10404 # tclConfig.sh is in install location 10405 if test "${TEA_PLATFORM}" = "windows"; then 10406 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10407 else 10408 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10409 fi 10410 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10411 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10412 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10413 for i in $list ; do 10414 if test -f "$i/${TCLSH_PROG}" ; then 10415 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 10416 break 10417 fi 10418 done 10419 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 10420 fi 10421 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10422echo "${ECHO_T}${TCLSH_PROG}" >&6; } 10423 10424 10425 10426 #-------------------------------------------------------------------- 10427 # These are for jpegtclConfig.sh 10428 #-------------------------------------------------------------------- 10429 10430 # pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib) 10431 eval pkglibdir="${libdir}/jpegtcl${PACKAGE_VERSION}" 10432 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then 10433 eval jpegtcl_LIB_FLAG="-ljpegtcl${PACKAGE_VERSION}${DBGX}" 10434 eval jpegtcl_STUB_LIB_FLAG="-ljpegtclstub${PACKAGE_VERSION}${DBGX}" 10435 else 10436 eval jpegtcl_LIB_FLAG="-ljpegtcl`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}" 10437 eval jpegtcl_STUB_LIB_FLAG="-ljpegtclstub`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}" 10438 fi 10439 jpegtcl_BUILD_LIB_SPEC="-L`pwd` ${jpegtcl_LIB_FLAG}" 10440 jpegtcl_LIB_SPEC="-L${pkglibdir} ${jpegtcl_LIB_FLAG}" 10441 jpegtcl_BUILD_STUB_LIB_SPEC="-L`pwd` ${jpegtcl_STUB_LIB_FLAG}" 10442 jpegtcl_STUB_LIB_SPEC="-L${pkglibdir} ${jpegtcl_STUB_LIB_FLAG}" 10443 jpegtcl_BUILD_STUB_LIB_PATH="`pwd`/${PKG_STUB_LIB_FILE}" 10444 jpegtcl_STUB_LIB_PATH="${pkglibdir}/${PKG_STUB_LIB_FILE}" 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458#-------------------------------------------------------------------- 10459# We call the configure for the jpeg code on our own, without using 10460# AC_CONFIG_SUBDIR ... Using that requires a symlink, thus making setup 10461# difficult, and the transfer information ot it is busted, due to how 10462# TEA handles CFLAGS. 10463#-------------------------------------------------------------------- 10464 10465case "$srcdir" in 10466.) # No --srcdir option. We are building in place. 10467 jpegdir=../$srcdir/../compat/libjpeg ;; 10468/*) # Absolute path. 10469 jpegdir=$srcdir/../compat/libjpeg ;; 10470*) # Relative path. 10471 jpegdir=../$ac_dots$srcdir/../compat/libjpeg ;; 10472esac 10473 10474mkdir -p libjpeg 10475sleep 2 ; # Wait two seconds for the directory to actually appear (Windows). 10476cd libjpeg 10477env CC="$JPEG_CC" CFLAGS="$JPEG_CFLAGS" $jpegdir/configure 10478cd .. 10479 10480#-------------------------------------------------------------------- 10481# Finally, substitute all of the various values into the Makefile. 10482# You may alternatively have a special pkgIndex.tcl.in or other files 10483# which require substituting th AC variables in. Include these here. 10484#-------------------------------------------------------------------- 10485 10486ac_config_files="$ac_config_files Makefile jpegtclConfig.sh" 10487 10488cat >confcache <<\_ACEOF 10489# This file is a shell script that caches the results of configure 10490# tests run on this system so they can be shared between configure 10491# scripts and configure runs, see configure's option --config-cache. 10492# It is not useful on other systems. If it contains results you don't 10493# want to keep, you may remove or edit it. 10494# 10495# config.status only pays attention to the cache file if you give it 10496# the --recheck option to rerun configure. 10497# 10498# `ac_cv_env_foo' variables (set or unset) will be overridden when 10499# loading this file, other *unset* `ac_cv_foo' will be assigned the 10500# following values. 10501 10502_ACEOF 10503 10504# The following way of writing the cache mishandles newlines in values, 10505# but we know of no workaround that is simple, portable, and efficient. 10506# So, we kill variables containing newlines. 10507# Ultrix sh set writes to stderr and can't be redirected directly, 10508# and sets the high bit in the cache file unless we assign to the vars. 10509( 10510 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10511 eval ac_val=\$$ac_var 10512 case $ac_val in #( 10513 *${as_nl}*) 10514 case $ac_var in #( 10515 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 10516echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 10517 esac 10518 case $ac_var in #( 10519 _ | IFS | as_nl) ;; #( 10520 *) $as_unset $ac_var ;; 10521 esac ;; 10522 esac 10523 done 10524 10525 (set) 2>&1 | 10526 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10527 *${as_nl}ac_space=\ *) 10528 # `set' does not quote correctly, so add quotes (double-quote 10529 # substitution turns \\\\ into \\, and sed turns \\ into \). 10530 sed -n \ 10531 "s/'/'\\\\''/g; 10532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10533 ;; #( 10534 *) 10535 # `set' quotes correctly as required by POSIX, so do not add quotes. 10536 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10537 ;; 10538 esac | 10539 sort 10540) | 10541 sed ' 10542 /^ac_cv_env_/b end 10543 t clear 10544 :clear 10545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10546 t end 10547 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10548 :end' >>confcache 10549if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10550 if test -w "$cache_file"; then 10551 test "x$cache_file" != "x/dev/null" && 10552 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 10553echo "$as_me: updating cache $cache_file" >&6;} 10554 cat confcache >$cache_file 10555 else 10556 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10557echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10558 fi 10559fi 10560rm -f confcache 10561 10562test "x$prefix" = xNONE && prefix=$ac_default_prefix 10563# Let make expand exec_prefix. 10564test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10565 10566# Transform confdefs.h into DEFS. 10567# Protect against shell expansion while executing Makefile rules. 10568# Protect against Makefile macro expansion. 10569# 10570# If the first sed substitution is executed (which looks for macros that 10571# take arguments), then branch to the quote section. Otherwise, 10572# look for a macro that doesn't take arguments. 10573ac_script=' 10574t clear 10575:clear 10576s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10577t quote 10578s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10579t quote 10580b any 10581:quote 10582s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10583s/\[/\\&/g 10584s/\]/\\&/g 10585s/\$/$$/g 10586H 10587:any 10588${ 10589 g 10590 s/^\n// 10591 s/\n/ /g 10592 p 10593} 10594' 10595DEFS=`sed -n "$ac_script" confdefs.h` 10596 10597 10598ac_libobjs= 10599ac_ltlibobjs= 10600for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10601 # 1. Remove the extension, and $U if already installed. 10602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10603 ac_i=`echo "$ac_i" | sed "$ac_script"` 10604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10605 # will be set to the directory where LIBOBJS objects are built. 10606 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10607 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 10608done 10609LIBOBJS=$ac_libobjs 10610 10611LTLIBOBJS=$ac_ltlibobjs 10612 10613 10614CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 10615 10616: ${CONFIG_STATUS=./config.status} 10617ac_clean_files_save=$ac_clean_files 10618ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10619{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10620echo "$as_me: creating $CONFIG_STATUS" >&6;} 10621cat >$CONFIG_STATUS <<_ACEOF 10622#! $SHELL 10623# Generated by $as_me. 10624# Run this file to recreate the current configuration. 10625# Compiler output produced by configure, useful for debugging 10626# configure, is in config.log if it exists. 10627 10628debug=false 10629ac_cs_recheck=false 10630ac_cs_silent=false 10631SHELL=\${CONFIG_SHELL-$SHELL} 10632_ACEOF 10633 10634cat >>$CONFIG_STATUS <<\_ACEOF 10635## --------------------- ## 10636## M4sh Initialization. ## 10637## --------------------- ## 10638 10639# Be more Bourne compatible 10640DUALCASE=1; export DUALCASE # for MKS sh 10641if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10642 emulate sh 10643 NULLCMD=: 10644 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10645 # is contrary to our usage. Disable this feature. 10646 alias -g '${1+"$@"}'='"$@"' 10647 setopt NO_GLOB_SUBST 10648else 10649 case `(set -o) 2>/dev/null` in 10650 *posix*) set -o posix ;; 10651esac 10652 10653fi 10654 10655 10656 10657 10658# PATH needs CR 10659# Avoid depending upon Character Ranges. 10660as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10661as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10662as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10663as_cr_digits='0123456789' 10664as_cr_alnum=$as_cr_Letters$as_cr_digits 10665 10666# The user is always right. 10667if test "${PATH_SEPARATOR+set}" != set; then 10668 echo "#! /bin/sh" >conf$$.sh 10669 echo "exit 0" >>conf$$.sh 10670 chmod +x conf$$.sh 10671 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10672 PATH_SEPARATOR=';' 10673 else 10674 PATH_SEPARATOR=: 10675 fi 10676 rm -f conf$$.sh 10677fi 10678 10679# Support unset when possible. 10680if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10681 as_unset=unset 10682else 10683 as_unset=false 10684fi 10685 10686 10687# IFS 10688# We need space, tab and new line, in precisely that order. Quoting is 10689# there to prevent editors from complaining about space-tab. 10690# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10691# splitting by setting IFS to empty value.) 10692as_nl=' 10693' 10694IFS=" "" $as_nl" 10695 10696# Find who we are. Look in the path if we contain no directory separator. 10697case $0 in 10698 *[\\/]* ) as_myself=$0 ;; 10699 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10700for as_dir in $PATH 10701do 10702 IFS=$as_save_IFS 10703 test -z "$as_dir" && as_dir=. 10704 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10705done 10706IFS=$as_save_IFS 10707 10708 ;; 10709esac 10710# We did not find ourselves, most probably we were run as `sh COMMAND' 10711# in which case we are not to be found in the path. 10712if test "x$as_myself" = x; then 10713 as_myself=$0 10714fi 10715if test ! -f "$as_myself"; then 10716 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10717 { (exit 1); exit 1; } 10718fi 10719 10720# Work around bugs in pre-3.0 UWIN ksh. 10721for as_var in ENV MAIL MAILPATH 10722do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10723done 10724PS1='$ ' 10725PS2='> ' 10726PS4='+ ' 10727 10728# NLS nuisances. 10729for as_var in \ 10730 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10731 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10732 LC_TELEPHONE LC_TIME 10733do 10734 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 10735 eval $as_var=C; export $as_var 10736 else 10737 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10738 fi 10739done 10740 10741# Required to use basename. 10742if expr a : '\(a\)' >/dev/null 2>&1 && 10743 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10744 as_expr=expr 10745else 10746 as_expr=false 10747fi 10748 10749if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10750 as_basename=basename 10751else 10752 as_basename=false 10753fi 10754 10755 10756# Name of the executable. 10757as_me=`$as_basename -- "$0" || 10758$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10759 X"$0" : 'X\(//\)$' \| \ 10760 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10761echo X/"$0" | 10762 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10763 s//\1/ 10764 q 10765 } 10766 /^X\/\(\/\/\)$/{ 10767 s//\1/ 10768 q 10769 } 10770 /^X\/\(\/\).*/{ 10771 s//\1/ 10772 q 10773 } 10774 s/.*/./; q'` 10775 10776# CDPATH. 10777$as_unset CDPATH 10778 10779 10780 10781 as_lineno_1=$LINENO 10782 as_lineno_2=$LINENO 10783 test "x$as_lineno_1" != "x$as_lineno_2" && 10784 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 10785 10786 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10787 # uniformly replaced by the line number. The first 'sed' inserts a 10788 # line-number line after each line using $LINENO; the second 'sed' 10789 # does the real work. The second script uses 'N' to pair each 10790 # line-number line with the line containing $LINENO, and appends 10791 # trailing '-' during substitution so that $LINENO is not a special 10792 # case at line end. 10793 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10794 # scripts with optimization help from Paolo Bonzini. Blame Lee 10795 # E. McMahon (1931-1989) for sed's syntax. :-) 10796 sed -n ' 10797 p 10798 /[$]LINENO/= 10799 ' <$as_myself | 10800 sed ' 10801 s/[$]LINENO.*/&-/ 10802 t lineno 10803 b 10804 :lineno 10805 N 10806 :loop 10807 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 10808 t loop 10809 s/-\n.*// 10810 ' >$as_me.lineno && 10811 chmod +x "$as_me.lineno" || 10812 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 10813 { (exit 1); exit 1; }; } 10814 10815 # Don't try to exec as it changes $[0], causing all sort of problems 10816 # (the dirname of $[0] is not the place where we might find the 10817 # original and so on. Autoconf is especially sensitive to this). 10818 . "./$as_me.lineno" 10819 # Exit status is that of the last command. 10820 exit 10821} 10822 10823 10824if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10825 as_dirname=dirname 10826else 10827 as_dirname=false 10828fi 10829 10830ECHO_C= ECHO_N= ECHO_T= 10831case `echo -n x` in 10832-n*) 10833 case `echo 'x\c'` in 10834 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10835 *) ECHO_C='\c';; 10836 esac;; 10837*) 10838 ECHO_N='-n';; 10839esac 10840 10841if expr a : '\(a\)' >/dev/null 2>&1 && 10842 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10843 as_expr=expr 10844else 10845 as_expr=false 10846fi 10847 10848rm -f conf$$ conf$$.exe conf$$.file 10849if test -d conf$$.dir; then 10850 rm -f conf$$.dir/conf$$.file 10851else 10852 rm -f conf$$.dir 10853 mkdir conf$$.dir 10854fi 10855echo >conf$$.file 10856if ln -s conf$$.file conf$$ 2>/dev/null; then 10857 as_ln_s='ln -s' 10858 # ... but there are two gotchas: 10859 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10860 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10861 # In both cases, we have to default to `cp -p'. 10862 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10863 as_ln_s='cp -p' 10864elif ln conf$$.file conf$$ 2>/dev/null; then 10865 as_ln_s=ln 10866else 10867 as_ln_s='cp -p' 10868fi 10869rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10870rmdir conf$$.dir 2>/dev/null 10871 10872if mkdir -p . 2>/dev/null; then 10873 as_mkdir_p=: 10874else 10875 test -d ./-p && rmdir ./-p 10876 as_mkdir_p=false 10877fi 10878 10879if test -x / >/dev/null 2>&1; then 10880 as_test_x='test -x' 10881else 10882 if ls -dL / >/dev/null 2>&1; then 10883 as_ls_L_option=L 10884 else 10885 as_ls_L_option= 10886 fi 10887 as_test_x=' 10888 eval sh -c '\'' 10889 if test -d "$1"; then 10890 test -d "$1/."; 10891 else 10892 case $1 in 10893 -*)set "./$1";; 10894 esac; 10895 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 10896 ???[sx]*):;;*)false;;esac;fi 10897 '\'' sh 10898 ' 10899fi 10900as_executable_p=$as_test_x 10901 10902# Sed expression to map a string onto a valid CPP name. 10903as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10904 10905# Sed expression to map a string onto a valid variable name. 10906as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10907 10908 10909exec 6>&1 10910 10911# Save the log message, to keep $[0] and so on meaningful, and to 10912# report actual input values of CONFIG_FILES etc. instead of their 10913# values after options handling. 10914ac_log=" 10915This file was extended by jpegtcl $as_me 8.2, which was 10916generated by GNU Autoconf 2.61. Invocation command line was 10917 10918 CONFIG_FILES = $CONFIG_FILES 10919 CONFIG_HEADERS = $CONFIG_HEADERS 10920 CONFIG_LINKS = $CONFIG_LINKS 10921 CONFIG_COMMANDS = $CONFIG_COMMANDS 10922 $ $0 $@ 10923 10924on `(hostname || uname -n) 2>/dev/null | sed 1q` 10925" 10926 10927_ACEOF 10928 10929cat >>$CONFIG_STATUS <<_ACEOF 10930# Files that config.status was made for. 10931config_files="$ac_config_files" 10932 10933_ACEOF 10934 10935cat >>$CONFIG_STATUS <<\_ACEOF 10936ac_cs_usage="\ 10937\`$as_me' instantiates files from templates according to the 10938current configuration. 10939 10940Usage: $0 [OPTIONS] [FILE]... 10941 10942 -h, --help print this help, then exit 10943 -V, --version print version number and configuration settings, then exit 10944 -q, --quiet do not print progress messages 10945 -d, --debug don't remove temporary files 10946 --recheck update $as_me by reconfiguring in the same conditions 10947 --file=FILE[:TEMPLATE] 10948 instantiate the configuration file FILE 10949 10950Configuration files: 10951$config_files 10952 10953Report bugs to <bug-autoconf@gnu.org>." 10954 10955_ACEOF 10956cat >>$CONFIG_STATUS <<_ACEOF 10957ac_cs_version="\\ 10958jpegtcl config.status 8.2 10959configured by $0, generated by GNU Autoconf 2.61, 10960 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 10961 10962Copyright (C) 2006 Free Software Foundation, Inc. 10963This config.status script is free software; the Free Software Foundation 10964gives unlimited permission to copy, distribute and modify it." 10965 10966ac_pwd='$ac_pwd' 10967srcdir='$srcdir' 10968INSTALL='$INSTALL' 10969_ACEOF 10970 10971cat >>$CONFIG_STATUS <<\_ACEOF 10972# If no file are specified by the user, then we need to provide default 10973# value. By we need to know if files were specified by the user. 10974ac_need_defaults=: 10975while test $# != 0 10976do 10977 case $1 in 10978 --*=*) 10979 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10980 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10981 ac_shift=: 10982 ;; 10983 *) 10984 ac_option=$1 10985 ac_optarg=$2 10986 ac_shift=shift 10987 ;; 10988 esac 10989 10990 case $ac_option in 10991 # Handling of the options. 10992 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10993 ac_cs_recheck=: ;; 10994 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10995 echo "$ac_cs_version"; exit ;; 10996 --debug | --debu | --deb | --de | --d | -d ) 10997 debug=: ;; 10998 --file | --fil | --fi | --f ) 10999 $ac_shift 11000 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11001 ac_need_defaults=false;; 11002 --he | --h | --help | --hel | -h ) 11003 echo "$ac_cs_usage"; exit ;; 11004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11005 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11006 ac_cs_silent=: ;; 11007 11008 # This is an error. 11009 -*) { echo "$as_me: error: unrecognized option: $1 11010Try \`$0 --help' for more information." >&2 11011 { (exit 1); exit 1; }; } ;; 11012 11013 *) ac_config_targets="$ac_config_targets $1" 11014 ac_need_defaults=false ;; 11015 11016 esac 11017 shift 11018done 11019 11020ac_configure_extra_args= 11021 11022if $ac_cs_silent; then 11023 exec 6>/dev/null 11024 ac_configure_extra_args="$ac_configure_extra_args --silent" 11025fi 11026 11027_ACEOF 11028cat >>$CONFIG_STATUS <<_ACEOF 11029if \$ac_cs_recheck; then 11030 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11031 CONFIG_SHELL=$SHELL 11032 export CONFIG_SHELL 11033 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11034fi 11035 11036_ACEOF 11037cat >>$CONFIG_STATUS <<\_ACEOF 11038exec 5>>config.log 11039{ 11040 echo 11041 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11042## Running $as_me. ## 11043_ASBOX 11044 echo "$ac_log" 11045} >&5 11046 11047_ACEOF 11048cat >>$CONFIG_STATUS <<_ACEOF 11049_ACEOF 11050 11051cat >>$CONFIG_STATUS <<\_ACEOF 11052 11053# Handling of arguments. 11054for ac_config_target in $ac_config_targets 11055do 11056 case $ac_config_target in 11057 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11058 "jpegtclConfig.sh") CONFIG_FILES="$CONFIG_FILES jpegtclConfig.sh" ;; 11059 11060 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11061echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11062 { (exit 1); exit 1; }; };; 11063 esac 11064done 11065 11066 11067# If the user did not use the arguments to specify the items to instantiate, 11068# then the envvar interface is used. Set only those that are not. 11069# We use the long form for the default assignment because of an extremely 11070# bizarre bug on SunOS 4.1.3. 11071if $ac_need_defaults; then 11072 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11073fi 11074 11075# Have a temporary directory for convenience. Make it in the build tree 11076# simply because there is no reason against having it here, and in addition, 11077# creating and moving files from /tmp can sometimes cause problems. 11078# Hook for its removal unless debugging. 11079# Note that there is a small window in which the directory will not be cleaned: 11080# after its creation but before its name has been assigned to `$tmp'. 11081$debug || 11082{ 11083 tmp= 11084 trap 'exit_status=$? 11085 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 11086' 0 11087 trap '{ (exit 1); exit 1; }' 1 2 13 15 11088} 11089# Create a (secure) tmp directory for tmp files. 11090 11091{ 11092 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11093 test -n "$tmp" && test -d "$tmp" 11094} || 11095{ 11096 tmp=./conf$$-$RANDOM 11097 (umask 077 && mkdir "$tmp") 11098} || 11099{ 11100 echo "$me: cannot create a temporary directory in ." >&2 11101 { (exit 1); exit 1; } 11102} 11103 11104# 11105# Set up the sed scripts for CONFIG_FILES section. 11106# 11107 11108# No need to generate the scripts if there are no CONFIG_FILES. 11109# This happens for instance when ./config.status config.h 11110if test -n "$CONFIG_FILES"; then 11111 11112_ACEOF 11113 11114 11115 11116ac_delim='%!_!# ' 11117for ac_last_try in false false false false false :; do 11118 cat >conf$$subs.sed <<_ACEOF 11119SHELL!$SHELL$ac_delim 11120PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 11121PACKAGE_NAME!$PACKAGE_NAME$ac_delim 11122PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 11123PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 11124PACKAGE_STRING!$PACKAGE_STRING$ac_delim 11125PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 11126exec_prefix!$exec_prefix$ac_delim 11127prefix!$prefix$ac_delim 11128program_transform_name!$program_transform_name$ac_delim 11129bindir!$bindir$ac_delim 11130sbindir!$sbindir$ac_delim 11131libexecdir!$libexecdir$ac_delim 11132datarootdir!$datarootdir$ac_delim 11133datadir!$datadir$ac_delim 11134sysconfdir!$sysconfdir$ac_delim 11135sharedstatedir!$sharedstatedir$ac_delim 11136localstatedir!$localstatedir$ac_delim 11137includedir!$includedir$ac_delim 11138oldincludedir!$oldincludedir$ac_delim 11139docdir!$docdir$ac_delim 11140infodir!$infodir$ac_delim 11141htmldir!$htmldir$ac_delim 11142dvidir!$dvidir$ac_delim 11143pdfdir!$pdfdir$ac_delim 11144psdir!$psdir$ac_delim 11145libdir!$libdir$ac_delim 11146localedir!$localedir$ac_delim 11147mandir!$mandir$ac_delim 11148DEFS!$DEFS$ac_delim 11149ECHO_C!$ECHO_C$ac_delim 11150ECHO_N!$ECHO_N$ac_delim 11151ECHO_T!$ECHO_T$ac_delim 11152LIBS!$LIBS$ac_delim 11153build_alias!$build_alias$ac_delim 11154host_alias!$host_alias$ac_delim 11155target_alias!$target_alias$ac_delim 11156CYGPATH!$CYGPATH$ac_delim 11157EXEEXT!$EXEEXT$ac_delim 11158PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 11159PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 11160PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 11161PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 11162PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 11163PKG_HEADERS!$PKG_HEADERS$ac_delim 11164PKG_INCLUDES!$PKG_INCLUDES$ac_delim 11165PKG_LIBS!$PKG_LIBS$ac_delim 11166PKG_CFLAGS!$PKG_CFLAGS$ac_delim 11167TCL_VERSION!$TCL_VERSION$ac_delim 11168TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 11169TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 11170TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 11171TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 11172TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 11173TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 11174TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 11175TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 11176TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 11177CLEANFILES!$CLEANFILES$ac_delim 11178TCL_LIBS!$TCL_LIBS$ac_delim 11179TCL_DEFS!$TCL_DEFS$ac_delim 11180TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 11181TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 11182TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 11183CC!$CC$ac_delim 11184CFLAGS!$CFLAGS$ac_delim 11185LDFLAGS!$LDFLAGS$ac_delim 11186CPPFLAGS!$CPPFLAGS$ac_delim 11187ac_ct_CC!$ac_ct_CC$ac_delim 11188OBJEXT!$OBJEXT$ac_delim 11189CPP!$CPP$ac_delim 11190INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 11191INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 11192INSTALL_DATA!$INSTALL_DATA$ac_delim 11193SET_MAKE!$SET_MAKE$ac_delim 11194RANLIB!$RANLIB$ac_delim 11195GREP!$GREP$ac_delim 11196EGREP!$EGREP$ac_delim 11197MATH_LIBS!$MATH_LIBS$ac_delim 11198PKG_SOURCES!$PKG_SOURCES$ac_delim 11199PKG_OBJECTS!$PKG_OBJECTS$ac_delim 11200TCL_INCLUDES!$TCL_INCLUDES$ac_delim 11201TCL_THREADS!$TCL_THREADS$ac_delim 11202SHARED_BUILD!$SHARED_BUILD$ac_delim 11203AR!$AR$ac_delim 11204CELIB_DIR!$CELIB_DIR$ac_delim 11205CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 11206CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 11207CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 11208STLIB_LD!$STLIB_LD$ac_delim 11209SHLIB_LD!$SHLIB_LD$ac_delim 11210SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 11211SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 11212LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 11213CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 11214LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 11215TCL_DBGX!$TCL_DBGX$ac_delim 11216_ACEOF 11217 11218 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 11219 break 11220 elif $ac_last_try; then 11221 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11222echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11223 { (exit 1); exit 1; }; } 11224 else 11225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11226 fi 11227done 11228 11229ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11230if test -n "$ac_eof"; then 11231 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11232 ac_eof=`expr $ac_eof + 1` 11233fi 11234 11235cat >>$CONFIG_STATUS <<_ACEOF 11236cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11237/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11238_ACEOF 11239sed ' 11240s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11241s/^/s,@/; s/!/@,|#_!!_#|/ 11242:n 11243t n 11244s/'"$ac_delim"'$/,g/; t 11245s/$/\\/; p 11246N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11247' >>$CONFIG_STATUS <conf$$subs.sed 11248rm -f conf$$subs.sed 11249cat >>$CONFIG_STATUS <<_ACEOF 11250CEOF$ac_eof 11251_ACEOF 11252 11253 11254ac_delim='%!_!# ' 11255for ac_last_try in false false false false false :; do 11256 cat >conf$$subs.sed <<_ACEOF 11257MAKE_LIB!$MAKE_LIB$ac_delim 11258MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 11259MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 11260MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 11261RANLIB_STUB!$RANLIB_STUB$ac_delim 11262VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 11263VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 11264TCLSH_PROG!$TCLSH_PROG$ac_delim 11265jpegtcl_BUILD_LIB_SPEC!$jpegtcl_BUILD_LIB_SPEC$ac_delim 11266jpegtcl_LIB_SPEC!$jpegtcl_LIB_SPEC$ac_delim 11267jpegtcl_BUILD_STUB_LIB_SPEC!$jpegtcl_BUILD_STUB_LIB_SPEC$ac_delim 11268jpegtcl_STUB_LIB_SPEC!$jpegtcl_STUB_LIB_SPEC$ac_delim 11269jpegtcl_BUILD_STUB_LIB_PATH!$jpegtcl_BUILD_STUB_LIB_PATH$ac_delim 11270jpegtcl_STUB_LIB_PATH!$jpegtcl_STUB_LIB_PATH$ac_delim 11271MAJOR_VERSION!$MAJOR_VERSION$ac_delim 11272MINOR_VERSION!$MINOR_VERSION$ac_delim 11273PATCHLEVEL!$PATCHLEVEL$ac_delim 11274LIBOBJS!$LIBOBJS$ac_delim 11275LTLIBOBJS!$LTLIBOBJS$ac_delim 11276_ACEOF 11277 11278 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then 11279 break 11280 elif $ac_last_try; then 11281 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11282echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11283 { (exit 1); exit 1; }; } 11284 else 11285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11286 fi 11287done 11288 11289ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11290if test -n "$ac_eof"; then 11291 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11292 ac_eof=`expr $ac_eof + 1` 11293fi 11294 11295cat >>$CONFIG_STATUS <<_ACEOF 11296cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 11297/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 11298_ACEOF 11299sed ' 11300s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11301s/^/s,@/; s/!/@,|#_!!_#|/ 11302:n 11303t n 11304s/'"$ac_delim"'$/,g/; t 11305s/$/\\/; p 11306N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11307' >>$CONFIG_STATUS <conf$$subs.sed 11308rm -f conf$$subs.sed 11309cat >>$CONFIG_STATUS <<_ACEOF 11310:end 11311s/|#_!!_#|//g 11312CEOF$ac_eof 11313_ACEOF 11314 11315 11316# VPATH may cause trouble with some makes, so we remove $(srcdir), 11317# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11318# trailing colons and then remove the whole line if VPATH becomes empty 11319# (actually we leave an empty line to preserve line numbers). 11320if test "x$srcdir" = x.; then 11321 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11322s/:*\$(srcdir):*/:/ 11323s/:*\${srcdir}:*/:/ 11324s/:*@srcdir@:*/:/ 11325s/^\([^=]*=[ ]*\):*/\1/ 11326s/:*$// 11327s/^[^=]*=[ ]*$// 11328}' 11329fi 11330 11331cat >>$CONFIG_STATUS <<\_ACEOF 11332fi # test -n "$CONFIG_FILES" 11333 11334 11335for ac_tag in :F $CONFIG_FILES 11336do 11337 case $ac_tag in 11338 :[FHLC]) ac_mode=$ac_tag; continue;; 11339 esac 11340 case $ac_mode$ac_tag in 11341 :[FHL]*:*);; 11342 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 11343echo "$as_me: error: Invalid tag $ac_tag." >&2;} 11344 { (exit 1); exit 1; }; };; 11345 :[FH]-) ac_tag=-:-;; 11346 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11347 esac 11348 ac_save_IFS=$IFS 11349 IFS=: 11350 set x $ac_tag 11351 IFS=$ac_save_IFS 11352 shift 11353 ac_file=$1 11354 shift 11355 11356 case $ac_mode in 11357 :L) ac_source=$1;; 11358 :[FH]) 11359 ac_file_inputs= 11360 for ac_f 11361 do 11362 case $ac_f in 11363 -) ac_f="$tmp/stdin";; 11364 *) # Look for the file first in the build tree, then in the source tree 11365 # (if the path is not absolute). The absolute path cannot be DOS-style, 11366 # because $ac_f cannot contain `:'. 11367 test -f "$ac_f" || 11368 case $ac_f in 11369 [\\/$]*) false;; 11370 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11371 esac || 11372 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11373echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11374 { (exit 1); exit 1; }; };; 11375 esac 11376 ac_file_inputs="$ac_file_inputs $ac_f" 11377 done 11378 11379 # Let's still pretend it is `configure' which instantiates (i.e., don't 11380 # use $as_me), people would be surprised to read: 11381 # /* config.h. Generated by config.status. */ 11382 configure_input="Generated from "`IFS=: 11383 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 11384 if test x"$ac_file" != x-; then 11385 configure_input="$ac_file. $configure_input" 11386 { echo "$as_me:$LINENO: creating $ac_file" >&5 11387echo "$as_me: creating $ac_file" >&6;} 11388 fi 11389 11390 case $ac_tag in 11391 *:-:* | *:-) cat >"$tmp/stdin";; 11392 esac 11393 ;; 11394 esac 11395 11396 ac_dir=`$as_dirname -- "$ac_file" || 11397$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11398 X"$ac_file" : 'X\(//\)[^/]' \| \ 11399 X"$ac_file" : 'X\(//\)$' \| \ 11400 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11401echo X"$ac_file" | 11402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11403 s//\1/ 11404 q 11405 } 11406 /^X\(\/\/\)[^/].*/{ 11407 s//\1/ 11408 q 11409 } 11410 /^X\(\/\/\)$/{ 11411 s//\1/ 11412 q 11413 } 11414 /^X\(\/\).*/{ 11415 s//\1/ 11416 q 11417 } 11418 s/.*/./; q'` 11419 { as_dir="$ac_dir" 11420 case $as_dir in #( 11421 -*) as_dir=./$as_dir;; 11422 esac 11423 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11424 as_dirs= 11425 while :; do 11426 case $as_dir in #( 11427 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 11428 *) as_qdir=$as_dir;; 11429 esac 11430 as_dirs="'$as_qdir' $as_dirs" 11431 as_dir=`$as_dirname -- "$as_dir" || 11432$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11433 X"$as_dir" : 'X\(//\)[^/]' \| \ 11434 X"$as_dir" : 'X\(//\)$' \| \ 11435 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11436echo X"$as_dir" | 11437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11438 s//\1/ 11439 q 11440 } 11441 /^X\(\/\/\)[^/].*/{ 11442 s//\1/ 11443 q 11444 } 11445 /^X\(\/\/\)$/{ 11446 s//\1/ 11447 q 11448 } 11449 /^X\(\/\).*/{ 11450 s//\1/ 11451 q 11452 } 11453 s/.*/./; q'` 11454 test -d "$as_dir" && break 11455 done 11456 test -z "$as_dirs" || eval "mkdir $as_dirs" 11457 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11458echo "$as_me: error: cannot create directory $as_dir" >&2;} 11459 { (exit 1); exit 1; }; }; } 11460 ac_builddir=. 11461 11462case "$ac_dir" in 11463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11464*) 11465 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11466 # A ".." for each directory in $ac_dir_suffix. 11467 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 11468 case $ac_top_builddir_sub in 11469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11471 esac ;; 11472esac 11473ac_abs_top_builddir=$ac_pwd 11474ac_abs_builddir=$ac_pwd$ac_dir_suffix 11475# for backward compatibility: 11476ac_top_builddir=$ac_top_build_prefix 11477 11478case $srcdir in 11479 .) # We are building in place. 11480 ac_srcdir=. 11481 ac_top_srcdir=$ac_top_builddir_sub 11482 ac_abs_top_srcdir=$ac_pwd ;; 11483 [\\/]* | ?:[\\/]* ) # Absolute name. 11484 ac_srcdir=$srcdir$ac_dir_suffix; 11485 ac_top_srcdir=$srcdir 11486 ac_abs_top_srcdir=$srcdir ;; 11487 *) # Relative name. 11488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11489 ac_top_srcdir=$ac_top_build_prefix$srcdir 11490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11491esac 11492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11493 11494 11495 case $ac_mode in 11496 :F) 11497 # 11498 # CONFIG_FILE 11499 # 11500 11501 case $INSTALL in 11502 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11503 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11504 esac 11505_ACEOF 11506 11507cat >>$CONFIG_STATUS <<\_ACEOF 11508# If the template does not know about datarootdir, expand it. 11509# FIXME: This hack should be removed a few years after 2.60. 11510ac_datarootdir_hack=; ac_datarootdir_seen= 11511 11512case `sed -n '/datarootdir/ { 11513 p 11514 q 11515} 11516/@datadir@/p 11517/@docdir@/p 11518/@infodir@/p 11519/@localedir@/p 11520/@mandir@/p 11521' $ac_file_inputs` in 11522*datarootdir*) ac_datarootdir_seen=yes;; 11523*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11524 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11525echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11526_ACEOF 11527cat >>$CONFIG_STATUS <<_ACEOF 11528 ac_datarootdir_hack=' 11529 s&@datadir@&$datadir&g 11530 s&@docdir@&$docdir&g 11531 s&@infodir@&$infodir&g 11532 s&@localedir@&$localedir&g 11533 s&@mandir@&$mandir&g 11534 s&\\\${datarootdir}&$datarootdir&g' ;; 11535esac 11536_ACEOF 11537 11538# Neutralize VPATH when `$srcdir' = `.'. 11539# Shell code in configure.ac might set extrasub. 11540# FIXME: do we really want to maintain this feature? 11541cat >>$CONFIG_STATUS <<_ACEOF 11542 sed "$ac_vpsub 11543$extrasub 11544_ACEOF 11545cat >>$CONFIG_STATUS <<\_ACEOF 11546:t 11547/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11548s&@configure_input@&$configure_input&;t t 11549s&@top_builddir@&$ac_top_builddir_sub&;t t 11550s&@srcdir@&$ac_srcdir&;t t 11551s&@abs_srcdir@&$ac_abs_srcdir&;t t 11552s&@top_srcdir@&$ac_top_srcdir&;t t 11553s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11554s&@builddir@&$ac_builddir&;t t 11555s&@abs_builddir@&$ac_abs_builddir&;t t 11556s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11557s&@INSTALL@&$ac_INSTALL&;t t 11558$ac_datarootdir_hack 11559" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 11560 11561test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11562 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 11563 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11564 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11565which seems to be undefined. Please make sure it is defined." >&5 11566echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11567which seems to be undefined. Please make sure it is defined." >&2;} 11568 11569 rm -f "$tmp/stdin" 11570 case $ac_file in 11571 -) cat "$tmp/out"; rm -f "$tmp/out";; 11572 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 11573 esac 11574 ;; 11575 11576 11577 11578 esac 11579 11580done # for ac_tag 11581 11582 11583{ (exit 0); exit 0; } 11584_ACEOF 11585chmod +x $CONFIG_STATUS 11586ac_clean_files=$ac_clean_files_save 11587 11588 11589# configure is writing to config.log, and then calls config.status. 11590# config.status does its own redirection, appending to config.log. 11591# Unfortunately, on DOS this fails, as config.log is still kept open 11592# by configure, so config.status won't be able to write to it; its 11593# output is simply discarded. So we exec the FD to /dev/null, 11594# effectively closing config.log, so it can be properly (re)opened and 11595# appended to by config.status. When coming back to configure, we 11596# need to make the FD available again. 11597if test "$no_create" != yes; then 11598 ac_cs_success=: 11599 ac_config_status_args= 11600 test "$silent" = yes && 11601 ac_config_status_args="$ac_config_status_args --quiet" 11602 exec 5>/dev/null 11603 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11604 exec 5>>config.log 11605 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11606 # would make configure fail if this is the last instruction. 11607 $ac_cs_success || { (exit 1); exit 1; } 11608fi 11609 11610 11611#-------------------------------------------------------------------- 11612