1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for tclgeomap 2.11.6. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40as_nl=' 41' 42export as_nl 43# Printing a long string crashes Solaris 7 /usr/bin/printf. 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81# Support unset when possible. 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 83 as_unset=unset 84else 85 as_unset=false 86fi 87 88 89# IFS 90# We need space, tab and new line, in precisely that order. Quoting is 91# there to prevent editors from complaining about space-tab. 92# (If _AS_PATH_WALK were called with IFS unset, it would disable word 93# splitting by setting IFS to empty value.) 94IFS=" "" $as_nl" 95 96# Find who we are. Look in the path if we contain no directory separator. 97case $0 in 98 *[\\/]* ) as_myself=$0 ;; 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 100for as_dir in $PATH 101do 102 IFS=$as_save_IFS 103 test -z "$as_dir" && as_dir=. 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 105done 106IFS=$as_save_IFS 107 108 ;; 109esac 110# We did not find ourselves, most probably we were run as `sh COMMAND' 111# in which case we are not to be found in the path. 112if test "x$as_myself" = x; then 113 as_myself=$0 114fi 115if test ! -f "$as_myself"; then 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 117 { (exit 1); exit 1; } 118fi 119 120# Work around bugs in pre-3.0 UWIN ksh. 121for as_var in ENV MAIL MAILPATH 122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# Required to use basename. 135if expr a : '\(a\)' >/dev/null 2>&1 && 136 test "X`expr 00001 : '.*\(...\)'`" = X001; then 137 as_expr=expr 138else 139 as_expr=false 140fi 141 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 143 as_basename=basename 144else 145 as_basename=false 146fi 147 148 149# Name of the executable. 150as_me=`$as_basename -- "$0" || 151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 152 X"$0" : 'X\(//\)$' \| \ 153 X"$0" : 'X\(/\)' \| . 2>/dev/null || 154$as_echo X/"$0" | 155 sed '/^.*\/\([^/][^/]*\)\/*$/{ 156 s//\1/ 157 q 158 } 159 /^X\/\(\/\/\)$/{ 160 s//\1/ 161 q 162 } 163 /^X\/\(\/\).*/{ 164 s//\1/ 165 q 166 } 167 s/.*/./; q'` 168 169# CDPATH. 170$as_unset CDPATH 171 172 173if test "x$CONFIG_SHELL" = x; then 174 if (eval ":") 2>/dev/null; then 175 as_have_required=yes 176else 177 as_have_required=no 178fi 179 180 if test $as_have_required = yes && (eval ": 181(as_func_return () { 182 (exit \$1) 183} 184as_func_success () { 185 as_func_return 0 186} 187as_func_failure () { 188 as_func_return 1 189} 190as_func_ret_success () { 191 return 0 192} 193as_func_ret_failure () { 194 return 1 195} 196 197exitcode=0 198if as_func_success; then 199 : 200else 201 exitcode=1 202 echo as_func_success failed. 203fi 204 205if as_func_failure; then 206 exitcode=1 207 echo as_func_failure succeeded. 208fi 209 210if as_func_ret_success; then 211 : 212else 213 exitcode=1 214 echo as_func_ret_success failed. 215fi 216 217if as_func_ret_failure; then 218 exitcode=1 219 echo as_func_ret_failure succeeded. 220fi 221 222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 223 : 224else 225 exitcode=1 226 echo positional parameters were not saved. 227fi 228 229test \$exitcode = 0) || { (exit 1); exit 1; } 230 231( 232 as_lineno_1=\$LINENO 233 as_lineno_2=\$LINENO 234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 236") 2> /dev/null; then 237 : 238else 239 as_candidate_shells= 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 242do 243 IFS=$as_save_IFS 244 test -z "$as_dir" && as_dir=. 245 case $as_dir in 246 /*) 247 for as_base in sh bash ksh sh5; do 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 249 done;; 250 esac 251done 252IFS=$as_save_IFS 253 254 255 for as_shell in $as_candidate_shells $SHELL; do 256 # Try only shells that exist, to save several forks. 257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 258 { ("$as_shell") 2> /dev/null <<\_ASEOF 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in 268 *posix*) set -o posix ;; 269esac 270 271fi 272 273 274: 275_ASEOF 276}; then 277 CONFIG_SHELL=$as_shell 278 as_have_required=yes 279 if { "$as_shell" 2> /dev/null <<\_ASEOF 280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 281 emulate sh 282 NULLCMD=: 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 284 # is contrary to our usage. Disable this feature. 285 alias -g '${1+"$@"}'='"$@"' 286 setopt NO_GLOB_SUBST 287else 288 case `(set -o) 2>/dev/null` in 289 *posix*) set -o posix ;; 290esac 291 292fi 293 294 295: 296(as_func_return () { 297 (exit $1) 298} 299as_func_success () { 300 as_func_return 0 301} 302as_func_failure () { 303 as_func_return 1 304} 305as_func_ret_success () { 306 return 0 307} 308as_func_ret_failure () { 309 return 1 310} 311 312exitcode=0 313if as_func_success; then 314 : 315else 316 exitcode=1 317 echo as_func_success failed. 318fi 319 320if as_func_failure; then 321 exitcode=1 322 echo as_func_failure succeeded. 323fi 324 325if as_func_ret_success; then 326 : 327else 328 exitcode=1 329 echo as_func_ret_success failed. 330fi 331 332if as_func_ret_failure; then 333 exitcode=1 334 echo as_func_ret_failure succeeded. 335fi 336 337if ( set x; as_func_ret_success y && test x = "$1" ); then 338 : 339else 340 exitcode=1 341 echo positional parameters were not saved. 342fi 343 344test $exitcode = 0) || { (exit 1); exit 1; } 345 346( 347 as_lineno_1=$LINENO 348 as_lineno_2=$LINENO 349 test "x$as_lineno_1" != "x$as_lineno_2" && 350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 351 352_ASEOF 353}; then 354 break 355fi 356 357fi 358 359 done 360 361 if test "x$CONFIG_SHELL" != x; then 362 for as_var in BASH_ENV ENV 363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 364 done 365 export CONFIG_SHELL 366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 367fi 368 369 370 if test $as_have_required = no; then 371 echo This script requires a shell more modern than all the 372 echo shells that I found on your system. Please install a 373 echo modern shell, or manually run the script under such a 374 echo shell if you do have one. 375 { (exit 1); exit 1; } 376fi 377 378 379fi 380 381fi 382 383 384 385(eval "as_func_return () { 386 (exit \$1) 387} 388as_func_success () { 389 as_func_return 0 390} 391as_func_failure () { 392 as_func_return 1 393} 394as_func_ret_success () { 395 return 0 396} 397as_func_ret_failure () { 398 return 1 399} 400 401exitcode=0 402if as_func_success; then 403 : 404else 405 exitcode=1 406 echo as_func_success failed. 407fi 408 409if as_func_failure; then 410 exitcode=1 411 echo as_func_failure succeeded. 412fi 413 414if as_func_ret_success; then 415 : 416else 417 exitcode=1 418 echo as_func_ret_success failed. 419fi 420 421if as_func_ret_failure; then 422 exitcode=1 423 echo as_func_ret_failure succeeded. 424fi 425 426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 427 : 428else 429 exitcode=1 430 echo positional parameters were not saved. 431fi 432 433test \$exitcode = 0") || { 434 echo No shell found that supports shell functions. 435 echo Please tell bug-autoconf@gnu.org about your system, 436 echo including any error possibly output before this message. 437 echo This can help us improve future autoconf versions. 438 echo Configuration will now proceed without shell functions. 439} 440 441 442 443 as_lineno_1=$LINENO 444 as_lineno_2=$LINENO 445 test "x$as_lineno_1" != "x$as_lineno_2" && 446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 447 448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 449 # uniformly replaced by the line number. The first 'sed' inserts a 450 # line-number line after each line using $LINENO; the second 'sed' 451 # does the real work. The second script uses 'N' to pair each 452 # line-number line with the line containing $LINENO, and appends 453 # trailing '-' during substitution so that $LINENO is not a special 454 # case at line end. 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 456 # scripts with optimization help from Paolo Bonzini. Blame Lee 457 # E. McMahon (1931-1989) for sed's syntax. :-) 458 sed -n ' 459 p 460 /[$]LINENO/= 461 ' <$as_myself | 462 sed ' 463 s/[$]LINENO.*/&-/ 464 t lineno 465 b 466 :lineno 467 N 468 :loop 469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 470 t loop 471 s/-\n.*// 472 ' >$as_me.lineno && 473 chmod +x "$as_me.lineno" || 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 475 { (exit 1); exit 1; }; } 476 477 # Don't try to exec as it changes $[0], causing all sort of problems 478 # (the dirname of $[0] is not the place where we might find the 479 # original and so on. Autoconf is especially sensitive to this). 480 . "./$as_me.lineno" 481 # Exit status is that of the last command. 482 exit 483} 484 485 486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 487 as_dirname=dirname 488else 489 as_dirname=false 490fi 491 492ECHO_C= ECHO_N= ECHO_T= 493case `echo -n x` in 494-n*) 495 case `echo 'x\c'` in 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 497 *) ECHO_C='\c';; 498 esac;; 499*) 500 ECHO_N='-n';; 501esac 502if expr a : '\(a\)' >/dev/null 2>&1 && 503 test "X`expr 00001 : '.*\(...\)'`" = X001; then 504 as_expr=expr 505else 506 as_expr=false 507fi 508 509rm -f conf$$ conf$$.exe conf$$.file 510if test -d conf$$.dir; then 511 rm -f conf$$.dir/conf$$.file 512else 513 rm -f conf$$.dir 514 mkdir conf$$.dir 2>/dev/null 515fi 516if (echo >conf$$.file) 2>/dev/null; then 517 if ln -s conf$$.file conf$$ 2>/dev/null; then 518 as_ln_s='ln -s' 519 # ... but there are two gotchas: 520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 522 # In both cases, we have to default to `cp -p'. 523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 524 as_ln_s='cp -p' 525 elif ln conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s=ln 527 else 528 as_ln_s='cp -p' 529 fi 530else 531 as_ln_s='cp -p' 532fi 533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 534rmdir conf$$.dir 2>/dev/null 535 536if mkdir -p . 2>/dev/null; then 537 as_mkdir_p=: 538else 539 test -d ./-p && rmdir ./-p 540 as_mkdir_p=false 541fi 542 543if test -x / >/dev/null 2>&1; then 544 as_test_x='test -x' 545else 546 if ls -dL / >/dev/null 2>&1; then 547 as_ls_L_option=L 548 else 549 as_ls_L_option= 550 fi 551 as_test_x=' 552 eval sh -c '\'' 553 if test -d "$1"; then 554 test -d "$1/."; 555 else 556 case $1 in 557 -*)set "./$1";; 558 esac; 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 560 ???[sx]*):;;*)false;;esac;fi 561 '\'' sh 562 ' 563fi 564as_executable_p=$as_test_x 565 566# Sed expression to map a string onto a valid CPP name. 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 568 569# Sed expression to map a string onto a valid variable name. 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 571 572 573 574exec 7<&0 </dev/null 6>&1 575 576# Name of the host. 577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 578# so uname gets run too. 579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 580 581# 582# Initializations. 583# 584ac_default_prefix=/usr/local 585ac_clean_files= 586ac_config_libobj_dir=. 587LIBOBJS= 588cross_compiling=no 589subdirs= 590MFLAGS= 591MAKEFLAGS= 592SHELL=${CONFIG_SHELL-/bin/sh} 593 594# Identity of this package. 595PACKAGE_NAME='tclgeomap' 596PACKAGE_TARNAME='tclgeomap' 597PACKAGE_VERSION='2.11.6' 598PACKAGE_STRING='tclgeomap 2.11.6' 599PACKAGE_BUGREPORT='' 600 601# Factoring default headers for most tests. 602ac_includes_default="\ 603#include <stdio.h> 604#ifdef HAVE_SYS_TYPES_H 605# include <sys/types.h> 606#endif 607#ifdef HAVE_SYS_STAT_H 608# include <sys/stat.h> 609#endif 610#ifdef STDC_HEADERS 611# include <stdlib.h> 612# include <stddef.h> 613#else 614# ifdef HAVE_STDLIB_H 615# include <stdlib.h> 616# endif 617#endif 618#ifdef HAVE_STRING_H 619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 620# include <memory.h> 621# endif 622# include <string.h> 623#endif 624#ifdef HAVE_STRINGS_H 625# include <strings.h> 626#endif 627#ifdef HAVE_INTTYPES_H 628# include <inttypes.h> 629#endif 630#ifdef HAVE_STDINT_H 631# include <stdint.h> 632#endif 633#ifdef HAVE_UNISTD_H 634# include <unistd.h> 635#endif" 636 637ac_subst_vars='LTLIBOBJS 638tclgeomap_SRC_DIR 639tclgeomap_LIB_SPEC 640tclgeomap_BUILD_LIB_SPEC 641pkglibdir 642tclgeomap_LIB_FILE 643RANLIB_STUB 644MAKE_STUB_LIB 645MAKE_STATIC_LIB 646MAKE_SHARED_LIB 647MAKE_LIB 648TCL_SHLIB_LD_EXTRAS 649LDFLAGS_DEFAULT 650CFLAGS_DEFAULT 651TCL_DBGX 652LD_LIBRARY_PATH_VAR 653LDFLAGS_OPTIMIZE 654LDFLAGS_DEBUG 655SHLIB_LD_LIBS 656SHLIB_CFLAGS 657SHLIB_LD 658STLIB_LD 659CFLAGS_WARNING 660CFLAGS_OPTIMIZE 661CFLAGS_DEBUG 662DL_LIBS 663LIBOBJS 664CELIB_DIR 665TCLSH_PROG 666AR 667SHARED_BUILD 668TCL_INCLUDES 669CLEANFILES 670PACKAGE_CFLAGS 671PKG_OBJECTS 672PKG_SOURCES 673MATH_LIBS 674EGREP 675GREP 676RANLIB 677SET_MAKE 678INSTALL_DATA 679INSTALL_SCRIPT 680INSTALL_PROGRAM 681CPP 682OBJEXT 683ac_ct_CC 684CPPFLAGS 685LDFLAGS 686CFLAGS 687CC 688TCL_SHLIB_LD_LIBS 689TCL_LD_FLAGS 690TCL_EXTRA_CFLAGS 691TCL_DEFS 692TCL_LIBS 693TCL_STUB_LIB_SPEC 694TCL_STUB_LIB_FLAG 695TCL_STUB_LIB_FILE 696TCL_LIB_SPEC 697TCL_LIB_FLAG 698TCL_LIB_FILE 699TCL_SRC_DIR 700TCL_BIN_DIR 701TCL_VERSION 702LN_S 703PKG_CFLAGS 704PKG_LIBS 705PKG_INCLUDES 706PKG_HEADERS 707PKG_TCL_SOURCES 708PKG_STUB_OBJECTS 709PKG_STUB_SOURCES 710PKG_STUB_LIB_FILE 711PKG_LIB_FILE 712EXEEXT 713CYGPATH 714target_alias 715host_alias 716build_alias 717LIBS 718ECHO_T 719ECHO_N 720ECHO_C 721DEFS 722mandir 723localedir 724libdir 725psdir 726pdfdir 727dvidir 728htmldir 729infodir 730docdir 731oldincludedir 732includedir 733localstatedir 734sharedstatedir 735sysconfdir 736datadir 737datarootdir 738libexecdir 739sbindir 740bindir 741program_transform_name 742prefix 743exec_prefix 744PACKAGE_BUGREPORT 745PACKAGE_STRING 746PACKAGE_VERSION 747PACKAGE_TARNAME 748PACKAGE_NAME 749PATH_SEPARATOR 750SHELL' 751ac_subst_files='' 752ac_user_opts=' 753enable_option_checking 754with_tcl 755with_tclinclude 756enable_shared 757enable_64bit 758enable_64bit_vis 759enable_wince 760with_celib 761enable_load 762enable_symbols 763' 764 ac_precious_vars='build_alias 765host_alias 766target_alias 767CC 768CFLAGS 769LDFLAGS 770LIBS 771CPPFLAGS 772CPP' 773 774 775# Initialize some variables set by options. 776ac_init_help= 777ac_init_version=false 778ac_unrecognized_opts= 779ac_unrecognized_sep= 780# The variables have the same names as the options, with 781# dashes changed to underlines. 782cache_file=/dev/null 783exec_prefix=NONE 784no_create= 785no_recursion= 786prefix=NONE 787program_prefix=NONE 788program_suffix=NONE 789program_transform_name=s,x,x, 790silent= 791site= 792srcdir= 793verbose= 794x_includes=NONE 795x_libraries=NONE 796 797# Installation directory options. 798# These are left unexpanded so users can "make install exec_prefix=/foo" 799# and all the variables that are supposed to be based on exec_prefix 800# by default will actually change. 801# Use braces instead of parens because sh, perl, etc. also accept them. 802# (The list follows the same order as the GNU Coding Standards.) 803bindir='${exec_prefix}/bin' 804sbindir='${exec_prefix}/sbin' 805libexecdir='${exec_prefix}/libexec' 806datarootdir='${prefix}/share' 807datadir='${datarootdir}' 808sysconfdir='${prefix}/etc' 809sharedstatedir='${prefix}/com' 810localstatedir='${prefix}/var' 811includedir='${prefix}/include' 812oldincludedir='/usr/include' 813docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 814infodir='${datarootdir}/info' 815htmldir='${docdir}' 816dvidir='${docdir}' 817pdfdir='${docdir}' 818psdir='${docdir}' 819libdir='${exec_prefix}/lib' 820localedir='${datarootdir}/locale' 821mandir='${datarootdir}/man' 822 823ac_prev= 824ac_dashdash= 825for ac_option 826do 827 # If the previous option needs an argument, assign it. 828 if test -n "$ac_prev"; then 829 eval $ac_prev=\$ac_option 830 ac_prev= 831 continue 832 fi 833 834 case $ac_option in 835 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 836 *) ac_optarg=yes ;; 837 esac 838 839 # Accept the important Cygnus configure options, so we can diagnose typos. 840 841 case $ac_dashdash$ac_option in 842 --) 843 ac_dashdash=yes ;; 844 845 -bindir | --bindir | --bindi | --bind | --bin | --bi) 846 ac_prev=bindir ;; 847 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 848 bindir=$ac_optarg ;; 849 850 -build | --build | --buil | --bui | --bu) 851 ac_prev=build_alias ;; 852 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 853 build_alias=$ac_optarg ;; 854 855 -cache-file | --cache-file | --cache-fil | --cache-fi \ 856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 857 ac_prev=cache_file ;; 858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 860 cache_file=$ac_optarg ;; 861 862 --config-cache | -C) 863 cache_file=config.cache ;; 864 865 -datadir | --datadir | --datadi | --datad) 866 ac_prev=datadir ;; 867 -datadir=* | --datadir=* | --datadi=* | --datad=*) 868 datadir=$ac_optarg ;; 869 870 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 871 | --dataroo | --dataro | --datar) 872 ac_prev=datarootdir ;; 873 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 874 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 875 datarootdir=$ac_optarg ;; 876 877 -disable-* | --disable-*) 878 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 879 # Reject names that are not valid shell variable names. 880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 881 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 882 { (exit 1); exit 1; }; } 883 ac_useropt_orig=$ac_useropt 884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 885 case $ac_user_opts in 886 *" 887"enable_$ac_useropt" 888"*) ;; 889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 890 ac_unrecognized_sep=', ';; 891 esac 892 eval enable_$ac_useropt=no ;; 893 894 -docdir | --docdir | --docdi | --doc | --do) 895 ac_prev=docdir ;; 896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 897 docdir=$ac_optarg ;; 898 899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 900 ac_prev=dvidir ;; 901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 902 dvidir=$ac_optarg ;; 903 904 -enable-* | --enable-*) 905 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 906 # Reject names that are not valid shell variable names. 907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 908 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 909 { (exit 1); exit 1; }; } 910 ac_useropt_orig=$ac_useropt 911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 912 case $ac_user_opts in 913 *" 914"enable_$ac_useropt" 915"*) ;; 916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 917 ac_unrecognized_sep=', ';; 918 esac 919 eval enable_$ac_useropt=\$ac_optarg ;; 920 921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 923 | --exec | --exe | --ex) 924 ac_prev=exec_prefix ;; 925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 927 | --exec=* | --exe=* | --ex=*) 928 exec_prefix=$ac_optarg ;; 929 930 -gas | --gas | --ga | --g) 931 # Obsolete; use --with-gas. 932 with_gas=yes ;; 933 934 -help | --help | --hel | --he | -h) 935 ac_init_help=long ;; 936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 937 ac_init_help=recursive ;; 938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 939 ac_init_help=short ;; 940 941 -host | --host | --hos | --ho) 942 ac_prev=host_alias ;; 943 -host=* | --host=* | --hos=* | --ho=*) 944 host_alias=$ac_optarg ;; 945 946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 947 ac_prev=htmldir ;; 948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 949 | --ht=*) 950 htmldir=$ac_optarg ;; 951 952 -includedir | --includedir | --includedi | --included | --include \ 953 | --includ | --inclu | --incl | --inc) 954 ac_prev=includedir ;; 955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 956 | --includ=* | --inclu=* | --incl=* | --inc=*) 957 includedir=$ac_optarg ;; 958 959 -infodir | --infodir | --infodi | --infod | --info | --inf) 960 ac_prev=infodir ;; 961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 962 infodir=$ac_optarg ;; 963 964 -libdir | --libdir | --libdi | --libd) 965 ac_prev=libdir ;; 966 -libdir=* | --libdir=* | --libdi=* | --libd=*) 967 libdir=$ac_optarg ;; 968 969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 970 | --libexe | --libex | --libe) 971 ac_prev=libexecdir ;; 972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 973 | --libexe=* | --libex=* | --libe=*) 974 libexecdir=$ac_optarg ;; 975 976 -localedir | --localedir | --localedi | --localed | --locale) 977 ac_prev=localedir ;; 978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 979 localedir=$ac_optarg ;; 980 981 -localstatedir | --localstatedir | --localstatedi | --localstated \ 982 | --localstate | --localstat | --localsta | --localst | --locals) 983 ac_prev=localstatedir ;; 984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 986 localstatedir=$ac_optarg ;; 987 988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 989 ac_prev=mandir ;; 990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 991 mandir=$ac_optarg ;; 992 993 -nfp | --nfp | --nf) 994 # Obsolete; use --without-fp. 995 with_fp=no ;; 996 997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 998 | --no-cr | --no-c | -n) 999 no_create=yes ;; 1000 1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1003 no_recursion=yes ;; 1004 1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1007 | --oldin | --oldi | --old | --ol | --o) 1008 ac_prev=oldincludedir ;; 1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1012 oldincludedir=$ac_optarg ;; 1013 1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1015 ac_prev=prefix ;; 1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1017 prefix=$ac_optarg ;; 1018 1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1020 | --program-pre | --program-pr | --program-p) 1021 ac_prev=program_prefix ;; 1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1024 program_prefix=$ac_optarg ;; 1025 1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1027 | --program-suf | --program-su | --program-s) 1028 ac_prev=program_suffix ;; 1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1031 program_suffix=$ac_optarg ;; 1032 1033 -program-transform-name | --program-transform-name \ 1034 | --program-transform-nam | --program-transform-na \ 1035 | --program-transform-n | --program-transform- \ 1036 | --program-transform | --program-transfor \ 1037 | --program-transfo | --program-transf \ 1038 | --program-trans | --program-tran \ 1039 | --progr-tra | --program-tr | --program-t) 1040 ac_prev=program_transform_name ;; 1041 -program-transform-name=* | --program-transform-name=* \ 1042 | --program-transform-nam=* | --program-transform-na=* \ 1043 | --program-transform-n=* | --program-transform-=* \ 1044 | --program-transform=* | --program-transfor=* \ 1045 | --program-transfo=* | --program-transf=* \ 1046 | --program-trans=* | --program-tran=* \ 1047 | --progr-tra=* | --program-tr=* | --program-t=*) 1048 program_transform_name=$ac_optarg ;; 1049 1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1051 ac_prev=pdfdir ;; 1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1053 pdfdir=$ac_optarg ;; 1054 1055 -psdir | --psdir | --psdi | --psd | --ps) 1056 ac_prev=psdir ;; 1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1058 psdir=$ac_optarg ;; 1059 1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1061 | -silent | --silent | --silen | --sile | --sil) 1062 silent=yes ;; 1063 1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1065 ac_prev=sbindir ;; 1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1067 | --sbi=* | --sb=*) 1068 sbindir=$ac_optarg ;; 1069 1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1072 | --sharedst | --shareds | --shared | --share | --shar \ 1073 | --sha | --sh) 1074 ac_prev=sharedstatedir ;; 1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1078 | --sha=* | --sh=*) 1079 sharedstatedir=$ac_optarg ;; 1080 1081 -site | --site | --sit) 1082 ac_prev=site ;; 1083 -site=* | --site=* | --sit=*) 1084 site=$ac_optarg ;; 1085 1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1087 ac_prev=srcdir ;; 1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1089 srcdir=$ac_optarg ;; 1090 1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1092 | --syscon | --sysco | --sysc | --sys | --sy) 1093 ac_prev=sysconfdir ;; 1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1096 sysconfdir=$ac_optarg ;; 1097 1098 -target | --target | --targe | --targ | --tar | --ta | --t) 1099 ac_prev=target_alias ;; 1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1101 target_alias=$ac_optarg ;; 1102 1103 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1104 verbose=yes ;; 1105 1106 -version | --version | --versio | --versi | --vers | -V) 1107 ac_init_version=: ;; 1108 1109 -with-* | --with-*) 1110 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1111 # Reject names that are not valid shell variable names. 1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1113 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1114 { (exit 1); exit 1; }; } 1115 ac_useropt_orig=$ac_useropt 1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1117 case $ac_user_opts in 1118 *" 1119"with_$ac_useropt" 1120"*) ;; 1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1122 ac_unrecognized_sep=', ';; 1123 esac 1124 eval with_$ac_useropt=\$ac_optarg ;; 1125 1126 -without-* | --without-*) 1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1128 # Reject names that are not valid shell variable names. 1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1130 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1131 { (exit 1); exit 1; }; } 1132 ac_useropt_orig=$ac_useropt 1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1134 case $ac_user_opts in 1135 *" 1136"with_$ac_useropt" 1137"*) ;; 1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1139 ac_unrecognized_sep=', ';; 1140 esac 1141 eval with_$ac_useropt=no ;; 1142 1143 --x) 1144 # Obsolete; use --with-x. 1145 with_x=yes ;; 1146 1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1148 | --x-incl | --x-inc | --x-in | --x-i) 1149 ac_prev=x_includes ;; 1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1152 x_includes=$ac_optarg ;; 1153 1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1156 ac_prev=x_libraries ;; 1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1159 x_libraries=$ac_optarg ;; 1160 1161 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1162Try \`$0 --help' for more information." >&2 1163 { (exit 1); exit 1; }; } 1164 ;; 1165 1166 *=*) 1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1168 # Reject names that are not valid shell variable names. 1169 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1170 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1171 { (exit 1); exit 1; }; } 1172 eval $ac_envvar=\$ac_optarg 1173 export $ac_envvar ;; 1174 1175 *) 1176 # FIXME: should be removed in autoconf 3.0. 1177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1180 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1181 ;; 1182 1183 esac 1184done 1185 1186if test -n "$ac_prev"; then 1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1188 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1189 { (exit 1); exit 1; }; } 1190fi 1191 1192if test -n "$ac_unrecognized_opts"; then 1193 case $enable_option_checking in 1194 no) ;; 1195 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1196 { (exit 1); exit 1; }; } ;; 1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1198 esac 1199fi 1200 1201# Check all directory arguments for consistency. 1202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1203 datadir sysconfdir sharedstatedir localstatedir includedir \ 1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1205 libdir localedir mandir 1206do 1207 eval ac_val=\$$ac_var 1208 # Remove trailing slashes. 1209 case $ac_val in 1210 */ ) 1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1212 eval $ac_var=\$ac_val;; 1213 esac 1214 # Be sure to have absolute directory names. 1215 case $ac_val in 1216 [\\/$]* | ?:[\\/]* ) continue;; 1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1218 esac 1219 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1220 { (exit 1); exit 1; }; } 1221done 1222 1223# There might be people who depend on the old broken behavior: `$host' 1224# used to hold the argument of --host etc. 1225# FIXME: To remove some day. 1226build=$build_alias 1227host=$host_alias 1228target=$target_alias 1229 1230# FIXME: To remove some day. 1231if test "x$host_alias" != x; then 1232 if test "x$build_alias" = x; then 1233 cross_compiling=maybe 1234 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1235 If a cross compiler is detected then cross compile mode will be used." >&2 1236 elif test "x$build_alias" != "x$host_alias"; then 1237 cross_compiling=yes 1238 fi 1239fi 1240 1241ac_tool_prefix= 1242test -n "$host_alias" && ac_tool_prefix=$host_alias- 1243 1244test "$silent" = yes && exec 6>/dev/null 1245 1246 1247ac_pwd=`pwd` && test -n "$ac_pwd" && 1248ac_ls_di=`ls -di .` && 1249ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1250 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1251 { (exit 1); exit 1; }; } 1252test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1253 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1254 { (exit 1); exit 1; }; } 1255 1256 1257# Find the source files, if location was not specified. 1258if test -z "$srcdir"; then 1259 ac_srcdir_defaulted=yes 1260 # Try the directory containing this script, then the parent directory. 1261 ac_confdir=`$as_dirname -- "$as_myself" || 1262$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1263 X"$as_myself" : 'X\(//\)[^/]' \| \ 1264 X"$as_myself" : 'X\(//\)$' \| \ 1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1266$as_echo X"$as_myself" | 1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1268 s//\1/ 1269 q 1270 } 1271 /^X\(\/\/\)[^/].*/{ 1272 s//\1/ 1273 q 1274 } 1275 /^X\(\/\/\)$/{ 1276 s//\1/ 1277 q 1278 } 1279 /^X\(\/\).*/{ 1280 s//\1/ 1281 q 1282 } 1283 s/.*/./; q'` 1284 srcdir=$ac_confdir 1285 if test ! -r "$srcdir/$ac_unique_file"; then 1286 srcdir=.. 1287 fi 1288else 1289 ac_srcdir_defaulted=no 1290fi 1291if test ! -r "$srcdir/$ac_unique_file"; then 1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1293 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1294 { (exit 1); exit 1; }; } 1295fi 1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1297ac_abs_confdir=`( 1298 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1299 { (exit 1); exit 1; }; } 1300 pwd)` 1301# When building in place, set srcdir=. 1302if test "$ac_abs_confdir" = "$ac_pwd"; then 1303 srcdir=. 1304fi 1305# Remove unnecessary trailing slashes from srcdir. 1306# Double slashes in file names in object file debugging info 1307# mess up M-x gdb in Emacs. 1308case $srcdir in 1309*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1310esac 1311for ac_var in $ac_precious_vars; do 1312 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1313 eval ac_env_${ac_var}_value=\$${ac_var} 1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1315 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1316done 1317 1318# 1319# Report the --help message. 1320# 1321if test "$ac_init_help" = "long"; then 1322 # Omit some internal or obsolete options to make the list less imposing. 1323 # This message is too long to be a string in the A/UX 3.1 sh. 1324 cat <<_ACEOF 1325\`configure' configures tclgeomap 2.11.6 to adapt to many kinds of systems. 1326 1327Usage: $0 [OPTION]... [VAR=VALUE]... 1328 1329To assign environment variables (e.g., CC, CFLAGS...), specify them as 1330VAR=VALUE. See below for descriptions of some of the useful variables. 1331 1332Defaults for the options are specified in brackets. 1333 1334Configuration: 1335 -h, --help display this help and exit 1336 --help=short display options specific to this package 1337 --help=recursive display the short help of all the included packages 1338 -V, --version display version information and exit 1339 -q, --quiet, --silent do not print \`checking...' messages 1340 --cache-file=FILE cache test results in FILE [disabled] 1341 -C, --config-cache alias for \`--cache-file=config.cache' 1342 -n, --no-create do not create output files 1343 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1344 1345Installation directories: 1346 --prefix=PREFIX install architecture-independent files in PREFIX 1347 [$ac_default_prefix] 1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1349 [PREFIX] 1350 1351By default, \`make install' will install all the files in 1352\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1353an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1354for instance \`--prefix=\$HOME'. 1355 1356For better control, use the options below. 1357 1358Fine tuning of the installation directories: 1359 --bindir=DIR user executables [EPREFIX/bin] 1360 --sbindir=DIR system admin executables [EPREFIX/sbin] 1361 --libexecdir=DIR program executables [EPREFIX/libexec] 1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1365 --libdir=DIR object code libraries [EPREFIX/lib] 1366 --includedir=DIR C header files [PREFIX/include] 1367 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1370 --infodir=DIR info documentation [DATAROOTDIR/info] 1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1372 --mandir=DIR man documentation [DATAROOTDIR/man] 1373 --docdir=DIR documentation root [DATAROOTDIR/doc/tclgeomap] 1374 --htmldir=DIR html documentation [DOCDIR] 1375 --dvidir=DIR dvi documentation [DOCDIR] 1376 --pdfdir=DIR pdf documentation [DOCDIR] 1377 --psdir=DIR ps documentation [DOCDIR] 1378_ACEOF 1379 1380 cat <<\_ACEOF 1381_ACEOF 1382fi 1383 1384if test -n "$ac_init_help"; then 1385 case $ac_init_help in 1386 short | recursive ) echo "Configuration of tclgeomap 2.11.6:";; 1387 esac 1388 cat <<\_ACEOF 1389 1390Optional Features: 1391 --disable-option-checking ignore unrecognized --enable/--with options 1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1394 --enable-shared build and link with shared libraries --enable-shared 1395 --enable-64bit enable 64bit support (where applicable) 1396 --enable-64bit-vis enable 64bit Sparc VIS support 1397 --enable-wince enable Win/CE support (where applicable) 1398 --disable-load disallow dynamic loading and "load" command 1399 --enable-symbols build with debugging symbols --disable-symbols 1400 1401Optional Packages: 1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1404 --with-tcl directory containing tcl configuration (tclConfig.sh) 1405 --with-tclinclude directory containing the public Tcl header files 1406 --with-celib=DIR use Windows/CE support library from DIR 1407 1408Some influential environment variables: 1409 CC C compiler command 1410 CFLAGS C compiler flags 1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1412 nonstandard directory <lib dir> 1413 LIBS libraries to pass to the linker, e.g. -l<library> 1414 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1415 you have headers in a nonstandard directory <include dir> 1416 CPP C preprocessor 1417 1418Use these variables to override the choices made by `configure' or to help 1419it to find libraries and programs with nonstandard names/locations. 1420 1421_ACEOF 1422ac_status=$? 1423fi 1424 1425if test "$ac_init_help" = "recursive"; then 1426 # If there are subdirs, report their specific --help. 1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1428 test -d "$ac_dir" || 1429 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1430 continue 1431 ac_builddir=. 1432 1433case "$ac_dir" in 1434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1435*) 1436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1437 # A ".." for each directory in $ac_dir_suffix. 1438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1439 case $ac_top_builddir_sub in 1440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1442 esac ;; 1443esac 1444ac_abs_top_builddir=$ac_pwd 1445ac_abs_builddir=$ac_pwd$ac_dir_suffix 1446# for backward compatibility: 1447ac_top_builddir=$ac_top_build_prefix 1448 1449case $srcdir in 1450 .) # We are building in place. 1451 ac_srcdir=. 1452 ac_top_srcdir=$ac_top_builddir_sub 1453 ac_abs_top_srcdir=$ac_pwd ;; 1454 [\\/]* | ?:[\\/]* ) # Absolute name. 1455 ac_srcdir=$srcdir$ac_dir_suffix; 1456 ac_top_srcdir=$srcdir 1457 ac_abs_top_srcdir=$srcdir ;; 1458 *) # Relative name. 1459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1460 ac_top_srcdir=$ac_top_build_prefix$srcdir 1461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1462esac 1463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1464 1465 cd "$ac_dir" || { ac_status=$?; continue; } 1466 # Check for guested configure. 1467 if test -f "$ac_srcdir/configure.gnu"; then 1468 echo && 1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1470 elif test -f "$ac_srcdir/configure"; then 1471 echo && 1472 $SHELL "$ac_srcdir/configure" --help=recursive 1473 else 1474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1475 fi || ac_status=$? 1476 cd "$ac_pwd" || { ac_status=$?; break; } 1477 done 1478fi 1479 1480test -n "$ac_init_help" && exit $ac_status 1481if $ac_init_version; then 1482 cat <<\_ACEOF 1483tclgeomap configure 2.11.6 1484generated by GNU Autoconf 2.63 1485 1486Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14872002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1488This configure script is free software; the Free Software Foundation 1489gives unlimited permission to copy, distribute and modify it. 1490_ACEOF 1491 exit 1492fi 1493cat >config.log <<_ACEOF 1494This file contains any messages produced by compilers while 1495running configure, to aid debugging if configure makes a mistake. 1496 1497It was created by tclgeomap $as_me 2.11.6, which was 1498generated by GNU Autoconf 2.63. Invocation command line was 1499 1500 $ $0 $@ 1501 1502_ACEOF 1503exec 5>>config.log 1504{ 1505cat <<_ASUNAME 1506## --------- ## 1507## Platform. ## 1508## --------- ## 1509 1510hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1511uname -m = `(uname -m) 2>/dev/null || echo unknown` 1512uname -r = `(uname -r) 2>/dev/null || echo unknown` 1513uname -s = `(uname -s) 2>/dev/null || echo unknown` 1514uname -v = `(uname -v) 2>/dev/null || echo unknown` 1515 1516/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1517/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1518 1519/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1520/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1521/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1522/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1523/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1524/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1525/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1526 1527_ASUNAME 1528 1529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1530for as_dir in $PATH 1531do 1532 IFS=$as_save_IFS 1533 test -z "$as_dir" && as_dir=. 1534 $as_echo "PATH: $as_dir" 1535done 1536IFS=$as_save_IFS 1537 1538} >&5 1539 1540cat >&5 <<_ACEOF 1541 1542 1543## ----------- ## 1544## Core tests. ## 1545## ----------- ## 1546 1547_ACEOF 1548 1549 1550# Keep a trace of the command line. 1551# Strip out --no-create and --no-recursion so they do not pile up. 1552# Strip out --silent because we don't want to record it for future runs. 1553# Also quote any args containing shell meta-characters. 1554# Make two passes to allow for proper duplicate-argument suppression. 1555ac_configure_args= 1556ac_configure_args0= 1557ac_configure_args1= 1558ac_must_keep_next=false 1559for ac_pass in 1 2 1560do 1561 for ac_arg 1562 do 1563 case $ac_arg in 1564 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1566 | -silent | --silent | --silen | --sile | --sil) 1567 continue ;; 1568 *\'*) 1569 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1570 esac 1571 case $ac_pass in 1572 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1573 2) 1574 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1575 if test $ac_must_keep_next = true; then 1576 ac_must_keep_next=false # Got value, back to normal. 1577 else 1578 case $ac_arg in 1579 *=* | --config-cache | -C | -disable-* | --disable-* \ 1580 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1581 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1582 | -with-* | --with-* | -without-* | --without-* | --x) 1583 case "$ac_configure_args0 " in 1584 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1585 esac 1586 ;; 1587 -* ) ac_must_keep_next=true ;; 1588 esac 1589 fi 1590 ac_configure_args="$ac_configure_args '$ac_arg'" 1591 ;; 1592 esac 1593 done 1594done 1595$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1596$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1597 1598# When interrupted or exit'd, cleanup temporary files, and complete 1599# config.log. We remove comments because anyway the quotes in there 1600# would cause problems or look ugly. 1601# WARNING: Use '\'' to represent an apostrophe within the trap. 1602# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1603trap 'exit_status=$? 1604 # Save into config.log some information that might help in debugging. 1605 { 1606 echo 1607 1608 cat <<\_ASBOX 1609## ---------------- ## 1610## Cache variables. ## 1611## ---------------- ## 1612_ASBOX 1613 echo 1614 # The following way of writing the cache mishandles newlines in values, 1615( 1616 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1617 eval ac_val=\$$ac_var 1618 case $ac_val in #( 1619 *${as_nl}*) 1620 case $ac_var in #( 1621 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1622$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1623 esac 1624 case $ac_var in #( 1625 _ | IFS | as_nl) ;; #( 1626 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1627 *) $as_unset $ac_var ;; 1628 esac ;; 1629 esac 1630 done 1631 (set) 2>&1 | 1632 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1633 *${as_nl}ac_space=\ *) 1634 sed -n \ 1635 "s/'\''/'\''\\\\'\'''\''/g; 1636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1637 ;; #( 1638 *) 1639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1640 ;; 1641 esac | 1642 sort 1643) 1644 echo 1645 1646 cat <<\_ASBOX 1647## ----------------- ## 1648## Output variables. ## 1649## ----------------- ## 1650_ASBOX 1651 echo 1652 for ac_var in $ac_subst_vars 1653 do 1654 eval ac_val=\$$ac_var 1655 case $ac_val in 1656 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1657 esac 1658 $as_echo "$ac_var='\''$ac_val'\''" 1659 done | sort 1660 echo 1661 1662 if test -n "$ac_subst_files"; then 1663 cat <<\_ASBOX 1664## ------------------- ## 1665## File substitutions. ## 1666## ------------------- ## 1667_ASBOX 1668 echo 1669 for ac_var in $ac_subst_files 1670 do 1671 eval ac_val=\$$ac_var 1672 case $ac_val in 1673 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1674 esac 1675 $as_echo "$ac_var='\''$ac_val'\''" 1676 done | sort 1677 echo 1678 fi 1679 1680 if test -s confdefs.h; then 1681 cat <<\_ASBOX 1682## ----------- ## 1683## confdefs.h. ## 1684## ----------- ## 1685_ASBOX 1686 echo 1687 cat confdefs.h 1688 echo 1689 fi 1690 test "$ac_signal" != 0 && 1691 $as_echo "$as_me: caught signal $ac_signal" 1692 $as_echo "$as_me: exit $exit_status" 1693 } >&5 1694 rm -f core *.core core.conftest.* && 1695 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1696 exit $exit_status 1697' 0 1698for ac_signal in 1 2 13 15; do 1699 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1700done 1701ac_signal=0 1702 1703# confdefs.h avoids OS command line length limits that DEFS can exceed. 1704rm -f -r conftest* confdefs.h 1705 1706# Predefined preprocessor variables. 1707 1708cat >>confdefs.h <<_ACEOF 1709#define PACKAGE_NAME "$PACKAGE_NAME" 1710_ACEOF 1711 1712 1713cat >>confdefs.h <<_ACEOF 1714#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1715_ACEOF 1716 1717 1718cat >>confdefs.h <<_ACEOF 1719#define PACKAGE_VERSION "$PACKAGE_VERSION" 1720_ACEOF 1721 1722 1723cat >>confdefs.h <<_ACEOF 1724#define PACKAGE_STRING "$PACKAGE_STRING" 1725_ACEOF 1726 1727 1728cat >>confdefs.h <<_ACEOF 1729#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1730_ACEOF 1731 1732 1733# Let the site file select an alternate cache file if it wants to. 1734# Prefer an explicitly selected file to automatically selected ones. 1735ac_site_file1=NONE 1736ac_site_file2=NONE 1737if test -n "$CONFIG_SITE"; then 1738 ac_site_file1=$CONFIG_SITE 1739elif test "x$prefix" != xNONE; then 1740 ac_site_file1=$prefix/share/config.site 1741 ac_site_file2=$prefix/etc/config.site 1742else 1743 ac_site_file1=$ac_default_prefix/share/config.site 1744 ac_site_file2=$ac_default_prefix/etc/config.site 1745fi 1746for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1747do 1748 test "x$ac_site_file" = xNONE && continue 1749 if test -r "$ac_site_file"; then 1750 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1751$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1752 sed 's/^/| /' "$ac_site_file" >&5 1753 . "$ac_site_file" 1754 fi 1755done 1756 1757if test -r "$cache_file"; then 1758 # Some versions of bash will fail to source /dev/null (special 1759 # files actually), so we avoid doing that. 1760 if test -f "$cache_file"; then 1761 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1762$as_echo "$as_me: loading cache $cache_file" >&6;} 1763 case $cache_file in 1764 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1765 *) . "./$cache_file";; 1766 esac 1767 fi 1768else 1769 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1770$as_echo "$as_me: creating cache $cache_file" >&6;} 1771 >$cache_file 1772fi 1773 1774# Check that the precious variables saved in the cache have kept the same 1775# value. 1776ac_cache_corrupted=false 1777for ac_var in $ac_precious_vars; do 1778 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1779 eval ac_new_set=\$ac_env_${ac_var}_set 1780 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1781 eval ac_new_val=\$ac_env_${ac_var}_value 1782 case $ac_old_set,$ac_new_set in 1783 set,) 1784 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1785$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1786 ac_cache_corrupted=: ;; 1787 ,set) 1788 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1789$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1790 ac_cache_corrupted=: ;; 1791 ,);; 1792 *) 1793 if test "x$ac_old_val" != "x$ac_new_val"; then 1794 # differences in whitespace do not lead to failure. 1795 ac_old_val_w=`echo x $ac_old_val` 1796 ac_new_val_w=`echo x $ac_new_val` 1797 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1798 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1799$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1800 ac_cache_corrupted=: 1801 else 1802 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1803$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1804 eval $ac_var=\$ac_old_val 1805 fi 1806 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1807$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1808 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1809$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1810 fi;; 1811 esac 1812 # Pass precious variables to config.status. 1813 if test "$ac_new_set" = set; then 1814 case $ac_new_val in 1815 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1816 *) ac_arg=$ac_var=$ac_new_val ;; 1817 esac 1818 case " $ac_configure_args " in 1819 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1820 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1821 esac 1822 fi 1823done 1824if $ac_cache_corrupted; then 1825 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 1826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1827 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1828$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1829 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1830$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1831 { (exit 1); exit 1; }; } 1832fi 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858ac_ext=c 1859ac_cpp='$CPP $CPPFLAGS' 1860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1862ac_compiler_gnu=$ac_cv_c_compiler_gnu 1863 1864 1865 1866#-------------------------------------------------------------------- 1867# Call TEA_INIT as the first TEA_ macro to set up initial vars. 1868# This will define a ${TEA_PLATFORM} variable == "unix" or "windows" 1869# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. 1870#-------------------------------------------------------------------- 1871 1872 1873 # TEA extensions pass this us the version of TEA they think they 1874 # are compatible with. 1875 TEA_VERSION="3.2" 1876 1877 { $as_echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1878$as_echo_n "checking for correct TEA configuration... " >&6; } 1879 if test x"${PACKAGE_NAME}" = x ; then 1880 { { $as_echo "$as_me:$LINENO: error: 1881The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1882$as_echo "$as_me: error: 1883The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1884 { (exit 1); exit 1; }; } 1885 fi 1886 if test x"3.2" = x ; then 1887 { { $as_echo "$as_me:$LINENO: error: 1888TEA version not specified." >&5 1889$as_echo "$as_me: error: 1890TEA version not specified." >&2;} 1891 { (exit 1); exit 1; }; } 1892 elif test "3.2" != "${TEA_VERSION}" ; then 1893 { $as_echo "$as_me:$LINENO: result: warning: requested TEA version \"3.2\", have \"${TEA_VERSION}\"" >&5 1894$as_echo "warning: requested TEA version \"3.2\", have \"${TEA_VERSION}\"" >&6; } 1895 else 1896 { $as_echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1897$as_echo "ok (TEA ${TEA_VERSION})" >&6; } 1898 fi 1899 case "`uname -s`" in 1900 *win32*|*WIN32*|*CYGWIN_NT*|*CYGWIN_9*|*CYGWIN_ME*|*MINGW32_*) 1901 # Extract the first word of "cygpath", so it can be a program name with args. 1902set dummy cygpath; ac_word=$2 1903{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 1904$as_echo_n "checking for $ac_word... " >&6; } 1905if test "${ac_cv_prog_CYGPATH+set}" = set; then 1906 $as_echo_n "(cached) " >&6 1907else 1908 if test -n "$CYGPATH"; then 1909 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1910else 1911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1912for as_dir in $PATH 1913do 1914 IFS=$as_save_IFS 1915 test -z "$as_dir" && as_dir=. 1916 for ac_exec_ext in '' $ac_executable_extensions; do 1917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1918 ac_cv_prog_CYGPATH="cygpath -w" 1919 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1920 break 2 1921 fi 1922done 1923done 1924IFS=$as_save_IFS 1925 1926 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1927fi 1928fi 1929CYGPATH=$ac_cv_prog_CYGPATH 1930if test -n "$CYGPATH"; then 1931 { $as_echo "$as_me:$LINENO: result: $CYGPATH" >&5 1932$as_echo "$CYGPATH" >&6; } 1933else 1934 { $as_echo "$as_me:$LINENO: result: no" >&5 1935$as_echo "no" >&6; } 1936fi 1937 1938 1939 EXEEXT=".exe" 1940 TEA_PLATFORM="windows" 1941 ;; 1942 *) 1943 CYGPATH=echo 1944 EXEEXT="" 1945 TEA_PLATFORM="unix" 1946 ;; 1947 esac 1948 1949 # Check if exec_prefix is set. If not use fall back to prefix. 1950 # Note when adjusted, so that TEA_PREFIX can correct for this. 1951 # This is needed for recursive configures, since autoconf propagates 1952 # $prefix, but not $exec_prefix (doh!). 1953 if test x$exec_prefix = xNONE ; then 1954 exec_prefix=$prefix 1955 fi 1956 1957 1958 1959 1960 # This package name must be replaced statically for AC_SUBST to work 1961 1962 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1963 1964 1965 # We AC_SUBST these here to ensure they are subst'ed, 1966 # in case the user doesn't call TEA_ADD_... 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 1977$as_echo_n "checking whether ln -s works... " >&6; } 1978LN_S=$as_ln_s 1979if test "$LN_S" = "ln -s"; then 1980 { $as_echo "$as_me:$LINENO: result: yes" >&5 1981$as_echo "yes" >&6; } 1982else 1983 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 1984$as_echo "no, using $LN_S" >&6; } 1985fi 1986 1987 1988#-------------------------------------------------------------------- 1989# Load the tclConfig.sh file 1990#-------------------------------------------------------------------- 1991 1992 1993 1994 # 1995 # Ok, lets find the tcl configuration 1996 # First, look for one uninstalled. 1997 # the alternative search directory is invoked by --with-tcl 1998 # 1999 2000 if test x"${no_tcl}" = x ; then 2001 # we reset no_tcl in case something fails here 2002 no_tcl=true 2003 2004# Check whether --with-tcl was given. 2005if test "${with_tcl+set}" = set; then 2006 withval=$with_tcl; with_tclconfig=${withval} 2007fi 2008 2009 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5 2010$as_echo_n "checking for Tcl configuration... " >&6; } 2011 if test "${ac_cv_c_tclconfig+set}" = set; then 2012 $as_echo_n "(cached) " >&6 2013else 2014 2015 2016 # First check to see if --with-tcl was specified. 2017 if test x"${with_tclconfig}" != x ; then 2018 case ${with_tclconfig} in 2019 */tclConfig.sh ) 2020 if test -f ${with_tclconfig}; then 2021 { $as_echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 2022$as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 2023 with_tclconfig=`echo ${with_tclconfig} | sed 's!/tclConfig\.sh$!!'` 2024 fi ;; 2025 esac 2026 if test -f "${with_tclconfig}/tclConfig.sh" ; then 2027 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 2028 else 2029 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 2030$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 2031 { (exit 1); exit 1; }; } 2032 fi 2033 fi 2034 2035 # then check for a private Tcl installation 2036 if test x"${ac_cv_c_tclconfig}" = x ; then 2037 for i in \ 2038 ../tcl \ 2039 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2040 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 2041 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 2042 ../../tcl \ 2043 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2044 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 2045 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2046 ../../../tcl \ 2047 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2048 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2049 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2050 if test -f "$i/unix/tclConfig.sh" ; then 2051 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 2052 break 2053 fi 2054 done 2055 fi 2056 2057 # check in a few common install locations 2058 if test x"${ac_cv_c_tclconfig}" = x ; then 2059 for i in `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2060 `ls -d ${prefix}/lib 2>/dev/null` \ 2061 `ls -d /usr/local/lib 2>/dev/null` \ 2062 `ls -d /usr/contrib/lib 2>/dev/null` \ 2063 `ls -d /usr/lib 2>/dev/null` \ 2064 ; do 2065 if test -f "$i/tclConfig.sh" ; then 2066 ac_cv_c_tclconfig=`(cd $i; pwd)` 2067 break 2068 fi 2069 done 2070 fi 2071 2072 # check in a few other private locations 2073 if test x"${ac_cv_c_tclconfig}" = x ; then 2074 for i in \ 2075 ${srcdir}/../tcl \ 2076 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2077 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2078 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2079 if test -f "$i/unix/tclConfig.sh" ; then 2080 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 2081 break 2082 fi 2083 done 2084 fi 2085 2086fi 2087 2088 2089 if test x"${ac_cv_c_tclconfig}" = x ; then 2090 TCL_BIN_DIR="# no Tcl configs found" 2091 { $as_echo "$as_me:$LINENO: WARNING: \"Cannot find Tcl configuration definitions\"" >&5 2092$as_echo "$as_me: WARNING: \"Cannot find Tcl configuration definitions\"" >&2;} 2093 exit 0 2094 else 2095 no_tcl= 2096 TCL_BIN_DIR=${ac_cv_c_tclconfig} 2097 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 2098$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; } 2099 fi 2100 fi 2101 2102 2103 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 2104$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; } 2105 2106 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then 2107 { $as_echo "$as_me:$LINENO: result: loading" >&5 2108$as_echo "loading" >&6; } 2109 . $TCL_BIN_DIR/tclConfig.sh 2110 else 2111 { $as_echo "$as_me:$LINENO: result: file not found" >&5 2112$as_echo "file not found" >&6; } 2113 fi 2114 2115 # 2116 # If the TCL_BIN_DIR is the build directory (not the install directory), 2117 # then set the common variable name to the value of the build variables. 2118 # For example, the variable TCL_LIB_SPEC will be set to the value 2119 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2120 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2121 # installed and uninstalled version of Tcl. 2122 # 2123 2124 if test -f $TCL_BIN_DIR/Makefile ; then 2125 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 2126 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 2127 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 2128 fi 2129 2130 # 2131 # eval is required to do the TCL_DBGX substitution 2132 # 2133 2134 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2135 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2136 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2137 2138 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2139 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2140 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 #AC_SUBST(TCL_BUILD_LIB_SPEC) 2160 #AC_SUBST(TCL_BUILD_STUB_LIB_SPEC) 2161 2162 2163#----------------------------------------------------------------------- 2164# Handle the --prefix=... option by defaulting to what Tcl gave. 2165# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2166#----------------------------------------------------------------------- 2167 2168 2169 if test "${prefix}" = "NONE"; then 2170 prefix_default=yes 2171 if test x"${TCL_PREFIX}" != x; then 2172 { $as_echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2173$as_echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2174 prefix=${TCL_PREFIX} 2175 else 2176 { $as_echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2177$as_echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2178 prefix=/usr/local 2179 fi 2180 fi 2181 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" ; then 2182 if test x"${TCL_EXEC_PREFIX}" != x; then 2183 { $as_echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2184$as_echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2185 exec_prefix=${TCL_EXEC_PREFIX} 2186 else 2187 { $as_echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2188$as_echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2189 exec_prefix=$prefix 2190 fi 2191 fi 2192 2193 2194#----------------------------------------------------------------------- 2195# Standard compiler checks. 2196# This sets up CC by using the CC env var, or looks for gcc otherwise. 2197# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2198# the basic setup necessary to compile executables. 2199#----------------------------------------------------------------------- 2200 2201ac_aux_dir= 2202for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2203 if test -f "$ac_dir/install-sh"; then 2204 ac_aux_dir=$ac_dir 2205 ac_install_sh="$ac_aux_dir/install-sh -c" 2206 break 2207 elif test -f "$ac_dir/install.sh"; then 2208 ac_aux_dir=$ac_dir 2209 ac_install_sh="$ac_aux_dir/install.sh -c" 2210 break 2211 elif test -f "$ac_dir/shtool"; then 2212 ac_aux_dir=$ac_dir 2213 ac_install_sh="$ac_aux_dir/shtool install -c" 2214 break 2215 fi 2216done 2217if test -z "$ac_aux_dir"; then 2218 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2219$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2220 { (exit 1); exit 1; }; } 2221fi 2222 2223# These three variables are undocumented and unsupported, 2224# and are intended to be withdrawn in a future Autoconf release. 2225# They can cause serious problems if a builder's source tree is in a directory 2226# whose full name contains unusual characters. 2227ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2228ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2229ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2230 2231 2232 2233 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2234 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2235 2236 # If the user did not set CFLAGS, set it now to keep 2237 # the AC_PROG_CC macro from adding "-g -O2". 2238 if test "${CFLAGS+set}" != "set" ; then 2239 CFLAGS="" 2240 fi 2241 2242 ac_ext=c 2243ac_cpp='$CPP $CPPFLAGS' 2244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2246ac_compiler_gnu=$ac_cv_c_compiler_gnu 2247if test -n "$ac_tool_prefix"; then 2248 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2249set dummy ${ac_tool_prefix}gcc; ac_word=$2 2250{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2251$as_echo_n "checking for $ac_word... " >&6; } 2252if test "${ac_cv_prog_CC+set}" = set; then 2253 $as_echo_n "(cached) " >&6 2254else 2255 if test -n "$CC"; then 2256 ac_cv_prog_CC="$CC" # Let the user override the test. 2257else 2258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2259for as_dir in $PATH 2260do 2261 IFS=$as_save_IFS 2262 test -z "$as_dir" && as_dir=. 2263 for ac_exec_ext in '' $ac_executable_extensions; do 2264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2265 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2267 break 2 2268 fi 2269done 2270done 2271IFS=$as_save_IFS 2272 2273fi 2274fi 2275CC=$ac_cv_prog_CC 2276if test -n "$CC"; then 2277 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2278$as_echo "$CC" >&6; } 2279else 2280 { $as_echo "$as_me:$LINENO: result: no" >&5 2281$as_echo "no" >&6; } 2282fi 2283 2284 2285fi 2286if test -z "$ac_cv_prog_CC"; then 2287 ac_ct_CC=$CC 2288 # Extract the first word of "gcc", so it can be a program name with args. 2289set dummy gcc; ac_word=$2 2290{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2291$as_echo_n "checking for $ac_word... " >&6; } 2292if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2293 $as_echo_n "(cached) " >&6 2294else 2295 if test -n "$ac_ct_CC"; then 2296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2297else 2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2299for as_dir in $PATH 2300do 2301 IFS=$as_save_IFS 2302 test -z "$as_dir" && as_dir=. 2303 for ac_exec_ext in '' $ac_executable_extensions; do 2304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2305 ac_cv_prog_ac_ct_CC="gcc" 2306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2307 break 2 2308 fi 2309done 2310done 2311IFS=$as_save_IFS 2312 2313fi 2314fi 2315ac_ct_CC=$ac_cv_prog_ac_ct_CC 2316if test -n "$ac_ct_CC"; then 2317 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2318$as_echo "$ac_ct_CC" >&6; } 2319else 2320 { $as_echo "$as_me:$LINENO: result: no" >&5 2321$as_echo "no" >&6; } 2322fi 2323 2324 if test "x$ac_ct_CC" = x; then 2325 CC="" 2326 else 2327 case $cross_compiling:$ac_tool_warned in 2328yes:) 2329{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2331ac_tool_warned=yes ;; 2332esac 2333 CC=$ac_ct_CC 2334 fi 2335else 2336 CC="$ac_cv_prog_CC" 2337fi 2338 2339if test -z "$CC"; then 2340 if test -n "$ac_tool_prefix"; then 2341 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2342set dummy ${ac_tool_prefix}cc; ac_word=$2 2343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2344$as_echo_n "checking for $ac_word... " >&6; } 2345if test "${ac_cv_prog_CC+set}" = set; then 2346 $as_echo_n "(cached) " >&6 2347else 2348 if test -n "$CC"; then 2349 ac_cv_prog_CC="$CC" # Let the user override the test. 2350else 2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2352for as_dir in $PATH 2353do 2354 IFS=$as_save_IFS 2355 test -z "$as_dir" && as_dir=. 2356 for ac_exec_ext in '' $ac_executable_extensions; do 2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2358 ac_cv_prog_CC="${ac_tool_prefix}cc" 2359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2360 break 2 2361 fi 2362done 2363done 2364IFS=$as_save_IFS 2365 2366fi 2367fi 2368CC=$ac_cv_prog_CC 2369if test -n "$CC"; then 2370 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2371$as_echo "$CC" >&6; } 2372else 2373 { $as_echo "$as_me:$LINENO: result: no" >&5 2374$as_echo "no" >&6; } 2375fi 2376 2377 2378 fi 2379fi 2380if test -z "$CC"; then 2381 # Extract the first word of "cc", so it can be a program name with args. 2382set dummy cc; ac_word=$2 2383{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2384$as_echo_n "checking for $ac_word... " >&6; } 2385if test "${ac_cv_prog_CC+set}" = set; then 2386 $as_echo_n "(cached) " >&6 2387else 2388 if test -n "$CC"; then 2389 ac_cv_prog_CC="$CC" # Let the user override the test. 2390else 2391 ac_prog_rejected=no 2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2393for as_dir in $PATH 2394do 2395 IFS=$as_save_IFS 2396 test -z "$as_dir" && as_dir=. 2397 for ac_exec_ext in '' $ac_executable_extensions; do 2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2399 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2400 ac_prog_rejected=yes 2401 continue 2402 fi 2403 ac_cv_prog_CC="cc" 2404 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2405 break 2 2406 fi 2407done 2408done 2409IFS=$as_save_IFS 2410 2411if test $ac_prog_rejected = yes; then 2412 # We found a bogon in the path, so make sure we never use it. 2413 set dummy $ac_cv_prog_CC 2414 shift 2415 if test $# != 0; then 2416 # We chose a different compiler from the bogus one. 2417 # However, it has the same basename, so the bogon will be chosen 2418 # first if we set CC to just the basename; use the full file name. 2419 shift 2420 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2421 fi 2422fi 2423fi 2424fi 2425CC=$ac_cv_prog_CC 2426if test -n "$CC"; then 2427 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2428$as_echo "$CC" >&6; } 2429else 2430 { $as_echo "$as_me:$LINENO: result: no" >&5 2431$as_echo "no" >&6; } 2432fi 2433 2434 2435fi 2436if test -z "$CC"; then 2437 if test -n "$ac_tool_prefix"; then 2438 for ac_prog in cl.exe 2439 do 2440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2441set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2442{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2443$as_echo_n "checking for $ac_word... " >&6; } 2444if test "${ac_cv_prog_CC+set}" = set; then 2445 $as_echo_n "(cached) " >&6 2446else 2447 if test -n "$CC"; then 2448 ac_cv_prog_CC="$CC" # Let the user override the test. 2449else 2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2451for as_dir in $PATH 2452do 2453 IFS=$as_save_IFS 2454 test -z "$as_dir" && as_dir=. 2455 for ac_exec_ext in '' $ac_executable_extensions; do 2456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2457 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2458 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2459 break 2 2460 fi 2461done 2462done 2463IFS=$as_save_IFS 2464 2465fi 2466fi 2467CC=$ac_cv_prog_CC 2468if test -n "$CC"; then 2469 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2470$as_echo "$CC" >&6; } 2471else 2472 { $as_echo "$as_me:$LINENO: result: no" >&5 2473$as_echo "no" >&6; } 2474fi 2475 2476 2477 test -n "$CC" && break 2478 done 2479fi 2480if test -z "$CC"; then 2481 ac_ct_CC=$CC 2482 for ac_prog in cl.exe 2483do 2484 # Extract the first word of "$ac_prog", so it can be a program name with args. 2485set dummy $ac_prog; ac_word=$2 2486{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2487$as_echo_n "checking for $ac_word... " >&6; } 2488if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2489 $as_echo_n "(cached) " >&6 2490else 2491 if test -n "$ac_ct_CC"; then 2492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2493else 2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2495for as_dir in $PATH 2496do 2497 IFS=$as_save_IFS 2498 test -z "$as_dir" && as_dir=. 2499 for ac_exec_ext in '' $ac_executable_extensions; do 2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2501 ac_cv_prog_ac_ct_CC="$ac_prog" 2502 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2503 break 2 2504 fi 2505done 2506done 2507IFS=$as_save_IFS 2508 2509fi 2510fi 2511ac_ct_CC=$ac_cv_prog_ac_ct_CC 2512if test -n "$ac_ct_CC"; then 2513 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2514$as_echo "$ac_ct_CC" >&6; } 2515else 2516 { $as_echo "$as_me:$LINENO: result: no" >&5 2517$as_echo "no" >&6; } 2518fi 2519 2520 2521 test -n "$ac_ct_CC" && break 2522done 2523 2524 if test "x$ac_ct_CC" = x; then 2525 CC="" 2526 else 2527 case $cross_compiling:$ac_tool_warned in 2528yes:) 2529{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2531ac_tool_warned=yes ;; 2532esac 2533 CC=$ac_ct_CC 2534 fi 2535fi 2536 2537fi 2538 2539 2540test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2542{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2543See \`config.log' for more details." >&5 2544$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2545See \`config.log' for more details." >&2;} 2546 { (exit 1); exit 1; }; }; } 2547 2548# Provide some information about the compiler. 2549$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2550set X $ac_compile 2551ac_compiler=$2 2552{ (ac_try="$ac_compiler --version >&5" 2553case "(($ac_try" in 2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2555 *) ac_try_echo=$ac_try;; 2556esac 2557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2558$as_echo "$ac_try_echo") >&5 2559 (eval "$ac_compiler --version >&5") 2>&5 2560 ac_status=$? 2561 $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2569$as_echo "$ac_try_echo") >&5 2570 (eval "$ac_compiler -v >&5") 2>&5 2571 ac_status=$? 2572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2573 (exit $ac_status); } 2574{ (ac_try="$ac_compiler -V >&5" 2575case "(($ac_try" in 2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2577 *) ac_try_echo=$ac_try;; 2578esac 2579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2580$as_echo "$ac_try_echo") >&5 2581 (eval "$ac_compiler -V >&5") 2>&5 2582 ac_status=$? 2583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2584 (exit $ac_status); } 2585 2586cat >conftest.$ac_ext <<_ACEOF 2587/* confdefs.h. */ 2588_ACEOF 2589cat confdefs.h >>conftest.$ac_ext 2590cat >>conftest.$ac_ext <<_ACEOF 2591/* end confdefs.h. */ 2592 2593int 2594main () 2595{ 2596 2597 ; 2598 return 0; 2599} 2600_ACEOF 2601ac_clean_files_save=$ac_clean_files 2602ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2603# Try to create an executable without -o first, disregard a.out. 2604# It will help us diagnose broken compilers, and finding out an intuition 2605# of exeext. 2606{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2607$as_echo_n "checking for C compiler default output file name... " >&6; } 2608ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2609 2610# The possible output files: 2611ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2612 2613ac_rmfiles= 2614for ac_file in $ac_files 2615do 2616 case $ac_file in 2617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2618 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2619 esac 2620done 2621rm -f $ac_rmfiles 2622 2623if { (ac_try="$ac_link_default" 2624case "(($ac_try" in 2625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2626 *) ac_try_echo=$ac_try;; 2627esac 2628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2629$as_echo "$ac_try_echo") >&5 2630 (eval "$ac_link_default") 2>&5 2631 ac_status=$? 2632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2633 (exit $ac_status); }; then 2634 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2635# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2636# in a Makefile. We should not override ac_cv_exeext if it was cached, 2637# so that the user can short-circuit this test for compilers unknown to 2638# Autoconf. 2639for ac_file in $ac_files '' 2640do 2641 test -f "$ac_file" || continue 2642 case $ac_file in 2643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2644 ;; 2645 [ab].out ) 2646 # We found the default executable, but exeext='' is most 2647 # certainly right. 2648 break;; 2649 *.* ) 2650 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2651 then :; else 2652 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2653 fi 2654 # We set ac_cv_exeext here because the later test for it is not 2655 # safe: cross compilers may not add the suffix if given an `-o' 2656 # argument, so we may need to know it at that point already. 2657 # Even if this section looks crufty: it has the advantage of 2658 # actually working. 2659 break;; 2660 * ) 2661 break;; 2662 esac 2663done 2664test "$ac_cv_exeext" = no && ac_cv_exeext= 2665 2666else 2667 ac_file='' 2668fi 2669 2670{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2671$as_echo "$ac_file" >&6; } 2672if test -z "$ac_file"; then 2673 $as_echo "$as_me: failed program was:" >&5 2674sed 's/^/| /' conftest.$ac_ext >&5 2675 2676{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2678{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2679See \`config.log' for more details." >&5 2680$as_echo "$as_me: error: C compiler cannot create executables 2681See \`config.log' for more details." >&2;} 2682 { (exit 77); exit 77; }; }; } 2683fi 2684 2685ac_exeext=$ac_cv_exeext 2686 2687# Check that the compiler produces executables we can run. If not, either 2688# the compiler is broken, or we cross compile. 2689{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2690$as_echo_n "checking whether the C compiler works... " >&6; } 2691# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2692# If not cross compiling, check that we can run a simple program. 2693if test "$cross_compiling" != yes; then 2694 if { ac_try='./$ac_file' 2695 { (case "(($ac_try" in 2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2697 *) ac_try_echo=$ac_try;; 2698esac 2699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2700$as_echo "$ac_try_echo") >&5 2701 (eval "$ac_try") 2>&5 2702 ac_status=$? 2703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2704 (exit $ac_status); }; }; then 2705 cross_compiling=no 2706 else 2707 if test "$cross_compiling" = maybe; then 2708 cross_compiling=yes 2709 else 2710 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2712{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2713If you meant to cross compile, use \`--host'. 2714See \`config.log' for more details." >&5 2715$as_echo "$as_me: error: cannot run C compiled programs. 2716If you meant to cross compile, use \`--host'. 2717See \`config.log' for more details." >&2;} 2718 { (exit 1); exit 1; }; }; } 2719 fi 2720 fi 2721fi 2722{ $as_echo "$as_me:$LINENO: result: yes" >&5 2723$as_echo "yes" >&6; } 2724 2725rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2726ac_clean_files=$ac_clean_files_save 2727# Check that the compiler produces executables we can run. If not, either 2728# the compiler is broken, or we cross compile. 2729{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2730$as_echo_n "checking whether we are cross compiling... " >&6; } 2731{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2732$as_echo "$cross_compiling" >&6; } 2733 2734{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2735$as_echo_n "checking for suffix of executables... " >&6; } 2736if { (ac_try="$ac_link" 2737case "(($ac_try" in 2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2739 *) ac_try_echo=$ac_try;; 2740esac 2741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2742$as_echo "$ac_try_echo") >&5 2743 (eval "$ac_link") 2>&5 2744 ac_status=$? 2745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2746 (exit $ac_status); }; then 2747 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2748# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2749# work properly (i.e., refer to `conftest.exe'), while it won't with 2750# `rm'. 2751for ac_file in conftest.exe conftest conftest.*; do 2752 test -f "$ac_file" || continue 2753 case $ac_file in 2754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2755 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2756 break;; 2757 * ) break;; 2758 esac 2759done 2760else 2761 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2763{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2764See \`config.log' for more details." >&5 2765$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2766See \`config.log' for more details." >&2;} 2767 { (exit 1); exit 1; }; }; } 2768fi 2769 2770rm -f conftest$ac_cv_exeext 2771{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2772$as_echo "$ac_cv_exeext" >&6; } 2773 2774rm -f conftest.$ac_ext 2775EXEEXT=$ac_cv_exeext 2776ac_exeext=$EXEEXT 2777{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2778$as_echo_n "checking for suffix of object files... " >&6; } 2779if test "${ac_cv_objext+set}" = set; then 2780 $as_echo_n "(cached) " >&6 2781else 2782 cat >conftest.$ac_ext <<_ACEOF 2783/* confdefs.h. */ 2784_ACEOF 2785cat confdefs.h >>conftest.$ac_ext 2786cat >>conftest.$ac_ext <<_ACEOF 2787/* end confdefs.h. */ 2788 2789int 2790main () 2791{ 2792 2793 ; 2794 return 0; 2795} 2796_ACEOF 2797rm -f conftest.o conftest.obj 2798if { (ac_try="$ac_compile" 2799case "(($ac_try" in 2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2801 *) ac_try_echo=$ac_try;; 2802esac 2803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2804$as_echo "$ac_try_echo") >&5 2805 (eval "$ac_compile") 2>&5 2806 ac_status=$? 2807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2808 (exit $ac_status); }; then 2809 for ac_file in conftest.o conftest.obj conftest.*; do 2810 test -f "$ac_file" || continue; 2811 case $ac_file in 2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2813 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2814 break;; 2815 esac 2816done 2817else 2818 $as_echo "$as_me: failed program was:" >&5 2819sed 's/^/| /' conftest.$ac_ext >&5 2820 2821{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2823{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2824See \`config.log' for more details." >&5 2825$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2826See \`config.log' for more details." >&2;} 2827 { (exit 1); exit 1; }; }; } 2828fi 2829 2830rm -f conftest.$ac_cv_objext conftest.$ac_ext 2831fi 2832{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2833$as_echo "$ac_cv_objext" >&6; } 2834OBJEXT=$ac_cv_objext 2835ac_objext=$OBJEXT 2836{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2837$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2838if test "${ac_cv_c_compiler_gnu+set}" = set; then 2839 $as_echo_n "(cached) " >&6 2840else 2841 cat >conftest.$ac_ext <<_ACEOF 2842/* confdefs.h. */ 2843_ACEOF 2844cat confdefs.h >>conftest.$ac_ext 2845cat >>conftest.$ac_ext <<_ACEOF 2846/* end confdefs.h. */ 2847 2848int 2849main () 2850{ 2851#ifndef __GNUC__ 2852 choke me 2853#endif 2854 2855 ; 2856 return 0; 2857} 2858_ACEOF 2859rm -f conftest.$ac_objext 2860if { (ac_try="$ac_compile" 2861case "(($ac_try" in 2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2863 *) ac_try_echo=$ac_try;; 2864esac 2865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2866$as_echo "$ac_try_echo") >&5 2867 (eval "$ac_compile") 2>conftest.er1 2868 ac_status=$? 2869 grep -v '^ *+' conftest.er1 >conftest.err 2870 rm -f conftest.er1 2871 cat conftest.err >&5 2872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2873 (exit $ac_status); } && { 2874 test -z "$ac_c_werror_flag" || 2875 test ! -s conftest.err 2876 } && test -s conftest.$ac_objext; then 2877 ac_compiler_gnu=yes 2878else 2879 $as_echo "$as_me: failed program was:" >&5 2880sed 's/^/| /' conftest.$ac_ext >&5 2881 2882 ac_compiler_gnu=no 2883fi 2884 2885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2886ac_cv_c_compiler_gnu=$ac_compiler_gnu 2887 2888fi 2889{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2890$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2891if test $ac_compiler_gnu = yes; then 2892 GCC=yes 2893else 2894 GCC= 2895fi 2896ac_test_CFLAGS=${CFLAGS+set} 2897ac_save_CFLAGS=$CFLAGS 2898{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2899$as_echo_n "checking whether $CC accepts -g... " >&6; } 2900if test "${ac_cv_prog_cc_g+set}" = set; then 2901 $as_echo_n "(cached) " >&6 2902else 2903 ac_save_c_werror_flag=$ac_c_werror_flag 2904 ac_c_werror_flag=yes 2905 ac_cv_prog_cc_g=no 2906 CFLAGS="-g" 2907 cat >conftest.$ac_ext <<_ACEOF 2908/* confdefs.h. */ 2909_ACEOF 2910cat confdefs.h >>conftest.$ac_ext 2911cat >>conftest.$ac_ext <<_ACEOF 2912/* end confdefs.h. */ 2913 2914int 2915main () 2916{ 2917 2918 ; 2919 return 0; 2920} 2921_ACEOF 2922rm -f conftest.$ac_objext 2923if { (ac_try="$ac_compile" 2924case "(($ac_try" in 2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2926 *) ac_try_echo=$ac_try;; 2927esac 2928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2929$as_echo "$ac_try_echo") >&5 2930 (eval "$ac_compile") 2>conftest.er1 2931 ac_status=$? 2932 grep -v '^ *+' conftest.er1 >conftest.err 2933 rm -f conftest.er1 2934 cat conftest.err >&5 2935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2936 (exit $ac_status); } && { 2937 test -z "$ac_c_werror_flag" || 2938 test ! -s conftest.err 2939 } && test -s conftest.$ac_objext; then 2940 ac_cv_prog_cc_g=yes 2941else 2942 $as_echo "$as_me: failed program was:" >&5 2943sed 's/^/| /' conftest.$ac_ext >&5 2944 2945 CFLAGS="" 2946 cat >conftest.$ac_ext <<_ACEOF 2947/* confdefs.h. */ 2948_ACEOF 2949cat confdefs.h >>conftest.$ac_ext 2950cat >>conftest.$ac_ext <<_ACEOF 2951/* end confdefs.h. */ 2952 2953int 2954main () 2955{ 2956 2957 ; 2958 return 0; 2959} 2960_ACEOF 2961rm -f conftest.$ac_objext 2962if { (ac_try="$ac_compile" 2963case "(($ac_try" in 2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2965 *) ac_try_echo=$ac_try;; 2966esac 2967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2968$as_echo "$ac_try_echo") >&5 2969 (eval "$ac_compile") 2>conftest.er1 2970 ac_status=$? 2971 grep -v '^ *+' conftest.er1 >conftest.err 2972 rm -f conftest.er1 2973 cat conftest.err >&5 2974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2975 (exit $ac_status); } && { 2976 test -z "$ac_c_werror_flag" || 2977 test ! -s conftest.err 2978 } && test -s conftest.$ac_objext; then 2979 : 2980else 2981 $as_echo "$as_me: failed program was:" >&5 2982sed 's/^/| /' conftest.$ac_ext >&5 2983 2984 ac_c_werror_flag=$ac_save_c_werror_flag 2985 CFLAGS="-g" 2986 cat >conftest.$ac_ext <<_ACEOF 2987/* confdefs.h. */ 2988_ACEOF 2989cat confdefs.h >>conftest.$ac_ext 2990cat >>conftest.$ac_ext <<_ACEOF 2991/* end confdefs.h. */ 2992 2993int 2994main () 2995{ 2996 2997 ; 2998 return 0; 2999} 3000_ACEOF 3001rm -f conftest.$ac_objext 3002if { (ac_try="$ac_compile" 3003case "(($ac_try" in 3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3005 *) ac_try_echo=$ac_try;; 3006esac 3007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3008$as_echo "$ac_try_echo") >&5 3009 (eval "$ac_compile") 2>conftest.er1 3010 ac_status=$? 3011 grep -v '^ *+' conftest.er1 >conftest.err 3012 rm -f conftest.er1 3013 cat conftest.err >&5 3014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3015 (exit $ac_status); } && { 3016 test -z "$ac_c_werror_flag" || 3017 test ! -s conftest.err 3018 } && test -s conftest.$ac_objext; then 3019 ac_cv_prog_cc_g=yes 3020else 3021 $as_echo "$as_me: failed program was:" >&5 3022sed 's/^/| /' conftest.$ac_ext >&5 3023 3024 3025fi 3026 3027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3028fi 3029 3030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3031fi 3032 3033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3034 ac_c_werror_flag=$ac_save_c_werror_flag 3035fi 3036{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3037$as_echo "$ac_cv_prog_cc_g" >&6; } 3038if test "$ac_test_CFLAGS" = set; then 3039 CFLAGS=$ac_save_CFLAGS 3040elif test $ac_cv_prog_cc_g = yes; then 3041 if test "$GCC" = yes; then 3042 CFLAGS="-g -O2" 3043 else 3044 CFLAGS="-g" 3045 fi 3046else 3047 if test "$GCC" = yes; then 3048 CFLAGS="-O2" 3049 else 3050 CFLAGS= 3051 fi 3052fi 3053{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3054$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3055if test "${ac_cv_prog_cc_c89+set}" = set; then 3056 $as_echo_n "(cached) " >&6 3057else 3058 ac_cv_prog_cc_c89=no 3059ac_save_CC=$CC 3060cat >conftest.$ac_ext <<_ACEOF 3061/* confdefs.h. */ 3062_ACEOF 3063cat confdefs.h >>conftest.$ac_ext 3064cat >>conftest.$ac_ext <<_ACEOF 3065/* end confdefs.h. */ 3066#include <stdarg.h> 3067#include <stdio.h> 3068#include <sys/types.h> 3069#include <sys/stat.h> 3070/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3071struct buf { int x; }; 3072FILE * (*rcsopen) (struct buf *, struct stat *, int); 3073static char *e (p, i) 3074 char **p; 3075 int i; 3076{ 3077 return p[i]; 3078} 3079static char *f (char * (*g) (char **, int), char **p, ...) 3080{ 3081 char *s; 3082 va_list v; 3083 va_start (v,p); 3084 s = g (p, va_arg (v,int)); 3085 va_end (v); 3086 return s; 3087} 3088 3089/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3090 function prototypes and stuff, but not '\xHH' hex character constants. 3091 These don't provoke an error unfortunately, instead are silently treated 3092 as 'x'. The following induces an error, until -std is added to get 3093 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3094 array size at least. It's necessary to write '\x00'==0 to get something 3095 that's true only with -std. */ 3096int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3097 3098/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3099 inside strings and character constants. */ 3100#define FOO(x) 'x' 3101int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3102 3103int test (int i, double x); 3104struct s1 {int (*f) (int a);}; 3105struct s2 {int (*f) (double a);}; 3106int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3107int argc; 3108char **argv; 3109int 3110main () 3111{ 3112return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3113 ; 3114 return 0; 3115} 3116_ACEOF 3117for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3118 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3119do 3120 CC="$ac_save_CC $ac_arg" 3121 rm -f conftest.$ac_objext 3122if { (ac_try="$ac_compile" 3123case "(($ac_try" in 3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3125 *) ac_try_echo=$ac_try;; 3126esac 3127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3128$as_echo "$ac_try_echo") >&5 3129 (eval "$ac_compile") 2>conftest.er1 3130 ac_status=$? 3131 grep -v '^ *+' conftest.er1 >conftest.err 3132 rm -f conftest.er1 3133 cat conftest.err >&5 3134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3135 (exit $ac_status); } && { 3136 test -z "$ac_c_werror_flag" || 3137 test ! -s conftest.err 3138 } && test -s conftest.$ac_objext; then 3139 ac_cv_prog_cc_c89=$ac_arg 3140else 3141 $as_echo "$as_me: failed program was:" >&5 3142sed 's/^/| /' conftest.$ac_ext >&5 3143 3144 3145fi 3146 3147rm -f core conftest.err conftest.$ac_objext 3148 test "x$ac_cv_prog_cc_c89" != "xno" && break 3149done 3150rm -f conftest.$ac_ext 3151CC=$ac_save_CC 3152 3153fi 3154# AC_CACHE_VAL 3155case "x$ac_cv_prog_cc_c89" in 3156 x) 3157 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3158$as_echo "none needed" >&6; } ;; 3159 xno) 3160 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3161$as_echo "unsupported" >&6; } ;; 3162 *) 3163 CC="$CC $ac_cv_prog_cc_c89" 3164 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3165$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3166esac 3167 3168 3169ac_ext=c 3170ac_cpp='$CPP $CPPFLAGS' 3171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3173ac_compiler_gnu=$ac_cv_c_compiler_gnu 3174 3175 ac_ext=c 3176ac_cpp='$CPP $CPPFLAGS' 3177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3179ac_compiler_gnu=$ac_cv_c_compiler_gnu 3180{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3181$as_echo_n "checking how to run the C preprocessor... " >&6; } 3182# On Suns, sometimes $CPP names a directory. 3183if test -n "$CPP" && test -d "$CPP"; then 3184 CPP= 3185fi 3186if test -z "$CPP"; then 3187 if test "${ac_cv_prog_CPP+set}" = set; then 3188 $as_echo_n "(cached) " >&6 3189else 3190 # Double quotes because CPP needs to be expanded 3191 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3192 do 3193 ac_preproc_ok=false 3194for ac_c_preproc_warn_flag in '' yes 3195do 3196 # Use a header file that comes with gcc, so configuring glibc 3197 # with a fresh cross-compiler works. 3198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3199 # <limits.h> exists even on freestanding compilers. 3200 # On the NeXT, cc -E runs the code through the compiler's parser, 3201 # not just through cpp. "Syntax error" is here to catch this case. 3202 cat >conftest.$ac_ext <<_ACEOF 3203/* confdefs.h. */ 3204_ACEOF 3205cat confdefs.h >>conftest.$ac_ext 3206cat >>conftest.$ac_ext <<_ACEOF 3207/* end confdefs.h. */ 3208#ifdef __STDC__ 3209# include <limits.h> 3210#else 3211# include <assert.h> 3212#endif 3213 Syntax error 3214_ACEOF 3215if { (ac_try="$ac_cpp conftest.$ac_ext" 3216case "(($ac_try" in 3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3218 *) ac_try_echo=$ac_try;; 3219esac 3220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3221$as_echo "$ac_try_echo") >&5 3222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3223 ac_status=$? 3224 grep -v '^ *+' conftest.er1 >conftest.err 3225 rm -f conftest.er1 3226 cat conftest.err >&5 3227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3228 (exit $ac_status); } >/dev/null && { 3229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3230 test ! -s conftest.err 3231 }; then 3232 : 3233else 3234 $as_echo "$as_me: failed program was:" >&5 3235sed 's/^/| /' conftest.$ac_ext >&5 3236 3237 # Broken: fails on valid input. 3238continue 3239fi 3240 3241rm -f conftest.err conftest.$ac_ext 3242 3243 # OK, works on sane cases. Now check whether nonexistent headers 3244 # can be detected and how. 3245 cat >conftest.$ac_ext <<_ACEOF 3246/* confdefs.h. */ 3247_ACEOF 3248cat confdefs.h >>conftest.$ac_ext 3249cat >>conftest.$ac_ext <<_ACEOF 3250/* end confdefs.h. */ 3251#include <ac_nonexistent.h> 3252_ACEOF 3253if { (ac_try="$ac_cpp conftest.$ac_ext" 3254case "(($ac_try" in 3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3256 *) ac_try_echo=$ac_try;; 3257esac 3258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3259$as_echo "$ac_try_echo") >&5 3260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3261 ac_status=$? 3262 grep -v '^ *+' conftest.er1 >conftest.err 3263 rm -f conftest.er1 3264 cat conftest.err >&5 3265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3266 (exit $ac_status); } >/dev/null && { 3267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3268 test ! -s conftest.err 3269 }; then 3270 # Broken: success on invalid input. 3271continue 3272else 3273 $as_echo "$as_me: failed program was:" >&5 3274sed 's/^/| /' conftest.$ac_ext >&5 3275 3276 # Passes both tests. 3277ac_preproc_ok=: 3278break 3279fi 3280 3281rm -f conftest.err conftest.$ac_ext 3282 3283done 3284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3285rm -f conftest.err conftest.$ac_ext 3286if $ac_preproc_ok; then 3287 break 3288fi 3289 3290 done 3291 ac_cv_prog_CPP=$CPP 3292 3293fi 3294 CPP=$ac_cv_prog_CPP 3295else 3296 ac_cv_prog_CPP=$CPP 3297fi 3298{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3299$as_echo "$CPP" >&6; } 3300ac_preproc_ok=false 3301for ac_c_preproc_warn_flag in '' yes 3302do 3303 # Use a header file that comes with gcc, so configuring glibc 3304 # with a fresh cross-compiler works. 3305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3306 # <limits.h> exists even on freestanding compilers. 3307 # On the NeXT, cc -E runs the code through the compiler's parser, 3308 # not just through cpp. "Syntax error" is here to catch this case. 3309 cat >conftest.$ac_ext <<_ACEOF 3310/* confdefs.h. */ 3311_ACEOF 3312cat confdefs.h >>conftest.$ac_ext 3313cat >>conftest.$ac_ext <<_ACEOF 3314/* end confdefs.h. */ 3315#ifdef __STDC__ 3316# include <limits.h> 3317#else 3318# include <assert.h> 3319#endif 3320 Syntax error 3321_ACEOF 3322if { (ac_try="$ac_cpp conftest.$ac_ext" 3323case "(($ac_try" in 3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3325 *) ac_try_echo=$ac_try;; 3326esac 3327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3328$as_echo "$ac_try_echo") >&5 3329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3330 ac_status=$? 3331 grep -v '^ *+' conftest.er1 >conftest.err 3332 rm -f conftest.er1 3333 cat conftest.err >&5 3334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3335 (exit $ac_status); } >/dev/null && { 3336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3337 test ! -s conftest.err 3338 }; then 3339 : 3340else 3341 $as_echo "$as_me: failed program was:" >&5 3342sed 's/^/| /' conftest.$ac_ext >&5 3343 3344 # Broken: fails on valid input. 3345continue 3346fi 3347 3348rm -f conftest.err conftest.$ac_ext 3349 3350 # OK, works on sane cases. Now check whether nonexistent headers 3351 # can be detected and how. 3352 cat >conftest.$ac_ext <<_ACEOF 3353/* confdefs.h. */ 3354_ACEOF 3355cat confdefs.h >>conftest.$ac_ext 3356cat >>conftest.$ac_ext <<_ACEOF 3357/* end confdefs.h. */ 3358#include <ac_nonexistent.h> 3359_ACEOF 3360if { (ac_try="$ac_cpp conftest.$ac_ext" 3361case "(($ac_try" in 3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3363 *) ac_try_echo=$ac_try;; 3364esac 3365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3366$as_echo "$ac_try_echo") >&5 3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3368 ac_status=$? 3369 grep -v '^ *+' conftest.er1 >conftest.err 3370 rm -f conftest.er1 3371 cat conftest.err >&5 3372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3373 (exit $ac_status); } >/dev/null && { 3374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3375 test ! -s conftest.err 3376 }; then 3377 # Broken: success on invalid input. 3378continue 3379else 3380 $as_echo "$as_me: failed program was:" >&5 3381sed 's/^/| /' conftest.$ac_ext >&5 3382 3383 # Passes both tests. 3384ac_preproc_ok=: 3385break 3386fi 3387 3388rm -f conftest.err conftest.$ac_ext 3389 3390done 3391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3392rm -f conftest.err conftest.$ac_ext 3393if $ac_preproc_ok; then 3394 : 3395else 3396 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3398{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3399See \`config.log' for more details." >&5 3400$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3401See \`config.log' for more details." >&2;} 3402 { (exit 1); exit 1; }; }; } 3403fi 3404 3405ac_ext=c 3406ac_cpp='$CPP $CPPFLAGS' 3407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3409ac_compiler_gnu=$ac_cv_c_compiler_gnu 3410 3411 3412 # Find a good install program. We prefer a C program (faster), 3413# so one script is as good as another. But avoid the broken or 3414# incompatible versions: 3415# SysV /etc/install, /usr/sbin/install 3416# SunOS /usr/etc/install 3417# IRIX /sbin/install 3418# AIX /bin/install 3419# AmigaOS /C/install, which installs bootblocks on floppy discs 3420# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3421# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3422# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3423# OS/2's system install, which has a completely different semantic 3424# ./install, which can be erroneously created by make from ./install.sh. 3425# Reject install programs that cannot install multiple files. 3426{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3427$as_echo_n "checking for a BSD-compatible install... " >&6; } 3428if test -z "$INSTALL"; then 3429if test "${ac_cv_path_install+set}" = set; then 3430 $as_echo_n "(cached) " >&6 3431else 3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3433for as_dir in $PATH 3434do 3435 IFS=$as_save_IFS 3436 test -z "$as_dir" && as_dir=. 3437 # Account for people who put trailing slashes in PATH elements. 3438case $as_dir/ in 3439 ./ | .// | /cC/* | \ 3440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3441 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3442 /usr/ucb/* ) ;; 3443 *) 3444 # OSF1 and SCO ODT 3.0 have their own names for install. 3445 # Don't use installbsd from OSF since it installs stuff as root 3446 # by default. 3447 for ac_prog in ginstall scoinst install; do 3448 for ac_exec_ext in '' $ac_executable_extensions; do 3449 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3450 if test $ac_prog = install && 3451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3452 # AIX install. It has an incompatible calling convention. 3453 : 3454 elif test $ac_prog = install && 3455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3456 # program-specific install script used by HP pwplus--don't use. 3457 : 3458 else 3459 rm -rf conftest.one conftest.two conftest.dir 3460 echo one > conftest.one 3461 echo two > conftest.two 3462 mkdir conftest.dir 3463 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3464 test -s conftest.one && test -s conftest.two && 3465 test -s conftest.dir/conftest.one && 3466 test -s conftest.dir/conftest.two 3467 then 3468 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3469 break 3 3470 fi 3471 fi 3472 fi 3473 done 3474 done 3475 ;; 3476esac 3477 3478done 3479IFS=$as_save_IFS 3480 3481rm -rf conftest.one conftest.two conftest.dir 3482 3483fi 3484 if test "${ac_cv_path_install+set}" = set; then 3485 INSTALL=$ac_cv_path_install 3486 else 3487 # As a last resort, use the slow shell script. Don't cache a 3488 # value for INSTALL within a source directory, because that will 3489 # break other packages using the cache if that directory is 3490 # removed, or if the value is a relative name. 3491 INSTALL=$ac_install_sh 3492 fi 3493fi 3494{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 3495$as_echo "$INSTALL" >&6; } 3496 3497# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3498# It thinks the first close brace ends the variable substitution. 3499test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3500 3501test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3502 3503test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3504 3505 3506 #-------------------------------------------------------------------- 3507 # Checks to see if the make program sets the $MAKE variable. 3508 #-------------------------------------------------------------------- 3509 3510 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3511$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3512set x ${MAKE-make} 3513ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3514if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3515 $as_echo_n "(cached) " >&6 3516else 3517 cat >conftest.make <<\_ACEOF 3518SHELL = /bin/sh 3519all: 3520 @echo '@@@%%%=$(MAKE)=@@@%%%' 3521_ACEOF 3522# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3523case `${MAKE-make} -f conftest.make 2>/dev/null` in 3524 *@@@%%%=?*=@@@%%%*) 3525 eval ac_cv_prog_make_${ac_make}_set=yes;; 3526 *) 3527 eval ac_cv_prog_make_${ac_make}_set=no;; 3528esac 3529rm -f conftest.make 3530fi 3531if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3532 { $as_echo "$as_me:$LINENO: result: yes" >&5 3533$as_echo "yes" >&6; } 3534 SET_MAKE= 3535else 3536 { $as_echo "$as_me:$LINENO: result: no" >&5 3537$as_echo "no" >&6; } 3538 SET_MAKE="MAKE=${MAKE-make}" 3539fi 3540 3541 3542 #-------------------------------------------------------------------- 3543 # Find ranlib 3544 #-------------------------------------------------------------------- 3545 3546 if test -n "$ac_tool_prefix"; then 3547 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3548set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3549{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3550$as_echo_n "checking for $ac_word... " >&6; } 3551if test "${ac_cv_prog_RANLIB+set}" = set; then 3552 $as_echo_n "(cached) " >&6 3553else 3554 if test -n "$RANLIB"; then 3555 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3556else 3557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3558for as_dir in $PATH 3559do 3560 IFS=$as_save_IFS 3561 test -z "$as_dir" && as_dir=. 3562 for ac_exec_ext in '' $ac_executable_extensions; do 3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3564 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3566 break 2 3567 fi 3568done 3569done 3570IFS=$as_save_IFS 3571 3572fi 3573fi 3574RANLIB=$ac_cv_prog_RANLIB 3575if test -n "$RANLIB"; then 3576 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 3577$as_echo "$RANLIB" >&6; } 3578else 3579 { $as_echo "$as_me:$LINENO: result: no" >&5 3580$as_echo "no" >&6; } 3581fi 3582 3583 3584fi 3585if test -z "$ac_cv_prog_RANLIB"; then 3586 ac_ct_RANLIB=$RANLIB 3587 # Extract the first word of "ranlib", so it can be a program name with args. 3588set dummy ranlib; ac_word=$2 3589{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3590$as_echo_n "checking for $ac_word... " >&6; } 3591if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3592 $as_echo_n "(cached) " >&6 3593else 3594 if test -n "$ac_ct_RANLIB"; then 3595 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3596else 3597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3598for as_dir in $PATH 3599do 3600 IFS=$as_save_IFS 3601 test -z "$as_dir" && as_dir=. 3602 for ac_exec_ext in '' $ac_executable_extensions; do 3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3604 ac_cv_prog_ac_ct_RANLIB="ranlib" 3605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3606 break 2 3607 fi 3608done 3609done 3610IFS=$as_save_IFS 3611 3612fi 3613fi 3614ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3615if test -n "$ac_ct_RANLIB"; then 3616 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3617$as_echo "$ac_ct_RANLIB" >&6; } 3618else 3619 { $as_echo "$as_me:$LINENO: result: no" >&5 3620$as_echo "no" >&6; } 3621fi 3622 3623 if test "x$ac_ct_RANLIB" = x; then 3624 RANLIB=":" 3625 else 3626 case $cross_compiling:$ac_tool_warned in 3627yes:) 3628{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3630ac_tool_warned=yes ;; 3631esac 3632 RANLIB=$ac_ct_RANLIB 3633 fi 3634else 3635 RANLIB="$ac_cv_prog_RANLIB" 3636fi 3637 3638 3639 #-------------------------------------------------------------------- 3640 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3641 #-------------------------------------------------------------------- 3642 3643 3644 3645 3646 3647 3648{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3649$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3650if test "${ac_cv_path_GREP+set}" = set; then 3651 $as_echo_n "(cached) " >&6 3652else 3653 if test -z "$GREP"; then 3654 ac_path_GREP_found=false 3655 # Loop through the user's path and test for each of PROGNAME-LIST 3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3657for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3658do 3659 IFS=$as_save_IFS 3660 test -z "$as_dir" && as_dir=. 3661 for ac_prog in grep ggrep; do 3662 for ac_exec_ext in '' $ac_executable_extensions; do 3663 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3664 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3665# Check for GNU ac_path_GREP and select it if it is found. 3666 # Check for GNU $ac_path_GREP 3667case `"$ac_path_GREP" --version 2>&1` in 3668*GNU*) 3669 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3670*) 3671 ac_count=0 3672 $as_echo_n 0123456789 >"conftest.in" 3673 while : 3674 do 3675 cat "conftest.in" "conftest.in" >"conftest.tmp" 3676 mv "conftest.tmp" "conftest.in" 3677 cp "conftest.in" "conftest.nl" 3678 $as_echo 'GREP' >> "conftest.nl" 3679 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3681 ac_count=`expr $ac_count + 1` 3682 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3683 # Best one so far, save it but keep looking for a better one 3684 ac_cv_path_GREP="$ac_path_GREP" 3685 ac_path_GREP_max=$ac_count 3686 fi 3687 # 10*(2^10) chars as input seems more than enough 3688 test $ac_count -gt 10 && break 3689 done 3690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3691esac 3692 3693 $ac_path_GREP_found && break 3 3694 done 3695 done 3696done 3697IFS=$as_save_IFS 3698 if test -z "$ac_cv_path_GREP"; then 3699 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3700$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3701 { (exit 1); exit 1; }; } 3702 fi 3703else 3704 ac_cv_path_GREP=$GREP 3705fi 3706 3707fi 3708{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3709$as_echo "$ac_cv_path_GREP" >&6; } 3710 GREP="$ac_cv_path_GREP" 3711 3712 3713{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3714$as_echo_n "checking for egrep... " >&6; } 3715if test "${ac_cv_path_EGREP+set}" = set; then 3716 $as_echo_n "(cached) " >&6 3717else 3718 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3719 then ac_cv_path_EGREP="$GREP -E" 3720 else 3721 if test -z "$EGREP"; then 3722 ac_path_EGREP_found=false 3723 # Loop through the user's path and test for each of PROGNAME-LIST 3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3725for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3726do 3727 IFS=$as_save_IFS 3728 test -z "$as_dir" && as_dir=. 3729 for ac_prog in egrep; do 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3732 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3733# Check for GNU ac_path_EGREP and select it if it is found. 3734 # Check for GNU $ac_path_EGREP 3735case `"$ac_path_EGREP" --version 2>&1` in 3736*GNU*) 3737 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3738*) 3739 ac_count=0 3740 $as_echo_n 0123456789 >"conftest.in" 3741 while : 3742 do 3743 cat "conftest.in" "conftest.in" >"conftest.tmp" 3744 mv "conftest.tmp" "conftest.in" 3745 cp "conftest.in" "conftest.nl" 3746 $as_echo 'EGREP' >> "conftest.nl" 3747 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3749 ac_count=`expr $ac_count + 1` 3750 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3751 # Best one so far, save it but keep looking for a better one 3752 ac_cv_path_EGREP="$ac_path_EGREP" 3753 ac_path_EGREP_max=$ac_count 3754 fi 3755 # 10*(2^10) chars as input seems more than enough 3756 test $ac_count -gt 10 && break 3757 done 3758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3759esac 3760 3761 $ac_path_EGREP_found && break 3 3762 done 3763 done 3764done 3765IFS=$as_save_IFS 3766 if test -z "$ac_cv_path_EGREP"; then 3767 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3768$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3769 { (exit 1); exit 1; }; } 3770 fi 3771else 3772 ac_cv_path_EGREP=$EGREP 3773fi 3774 3775 fi 3776fi 3777{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3778$as_echo "$ac_cv_path_EGREP" >&6; } 3779 EGREP="$ac_cv_path_EGREP" 3780 3781 3782{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3783$as_echo_n "checking for ANSI C header files... " >&6; } 3784if test "${ac_cv_header_stdc+set}" = set; then 3785 $as_echo_n "(cached) " >&6 3786else 3787 cat >conftest.$ac_ext <<_ACEOF 3788/* confdefs.h. */ 3789_ACEOF 3790cat confdefs.h >>conftest.$ac_ext 3791cat >>conftest.$ac_ext <<_ACEOF 3792/* end confdefs.h. */ 3793#include <stdlib.h> 3794#include <stdarg.h> 3795#include <string.h> 3796#include <float.h> 3797 3798int 3799main () 3800{ 3801 3802 ; 3803 return 0; 3804} 3805_ACEOF 3806rm -f conftest.$ac_objext 3807if { (ac_try="$ac_compile" 3808case "(($ac_try" in 3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3810 *) ac_try_echo=$ac_try;; 3811esac 3812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3813$as_echo "$ac_try_echo") >&5 3814 (eval "$ac_compile") 2>conftest.er1 3815 ac_status=$? 3816 grep -v '^ *+' conftest.er1 >conftest.err 3817 rm -f conftest.er1 3818 cat conftest.err >&5 3819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3820 (exit $ac_status); } && { 3821 test -z "$ac_c_werror_flag" || 3822 test ! -s conftest.err 3823 } && test -s conftest.$ac_objext; then 3824 ac_cv_header_stdc=yes 3825else 3826 $as_echo "$as_me: failed program was:" >&5 3827sed 's/^/| /' conftest.$ac_ext >&5 3828 3829 ac_cv_header_stdc=no 3830fi 3831 3832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3833 3834if test $ac_cv_header_stdc = yes; then 3835 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3836 cat >conftest.$ac_ext <<_ACEOF 3837/* confdefs.h. */ 3838_ACEOF 3839cat confdefs.h >>conftest.$ac_ext 3840cat >>conftest.$ac_ext <<_ACEOF 3841/* end confdefs.h. */ 3842#include <string.h> 3843 3844_ACEOF 3845if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3846 $EGREP "memchr" >/dev/null 2>&1; then 3847 : 3848else 3849 ac_cv_header_stdc=no 3850fi 3851rm -f conftest* 3852 3853fi 3854 3855if test $ac_cv_header_stdc = yes; then 3856 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3857 cat >conftest.$ac_ext <<_ACEOF 3858/* confdefs.h. */ 3859_ACEOF 3860cat confdefs.h >>conftest.$ac_ext 3861cat >>conftest.$ac_ext <<_ACEOF 3862/* end confdefs.h. */ 3863#include <stdlib.h> 3864 3865_ACEOF 3866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3867 $EGREP "free" >/dev/null 2>&1; then 3868 : 3869else 3870 ac_cv_header_stdc=no 3871fi 3872rm -f conftest* 3873 3874fi 3875 3876if test $ac_cv_header_stdc = yes; then 3877 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3878 if test "$cross_compiling" = yes; then 3879 : 3880else 3881 cat >conftest.$ac_ext <<_ACEOF 3882/* confdefs.h. */ 3883_ACEOF 3884cat confdefs.h >>conftest.$ac_ext 3885cat >>conftest.$ac_ext <<_ACEOF 3886/* end confdefs.h. */ 3887#include <ctype.h> 3888#include <stdlib.h> 3889#if ((' ' & 0x0FF) == 0x020) 3890# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3891# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3892#else 3893# define ISLOWER(c) \ 3894 (('a' <= (c) && (c) <= 'i') \ 3895 || ('j' <= (c) && (c) <= 'r') \ 3896 || ('s' <= (c) && (c) <= 'z')) 3897# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3898#endif 3899 3900#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3901int 3902main () 3903{ 3904 int i; 3905 for (i = 0; i < 256; i++) 3906 if (XOR (islower (i), ISLOWER (i)) 3907 || toupper (i) != TOUPPER (i)) 3908 return 2; 3909 return 0; 3910} 3911_ACEOF 3912rm -f conftest$ac_exeext 3913if { (ac_try="$ac_link" 3914case "(($ac_try" in 3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3916 *) ac_try_echo=$ac_try;; 3917esac 3918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3919$as_echo "$ac_try_echo") >&5 3920 (eval "$ac_link") 2>&5 3921 ac_status=$? 3922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3924 { (case "(($ac_try" in 3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3926 *) ac_try_echo=$ac_try;; 3927esac 3928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3929$as_echo "$ac_try_echo") >&5 3930 (eval "$ac_try") 2>&5 3931 ac_status=$? 3932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3933 (exit $ac_status); }; }; then 3934 : 3935else 3936 $as_echo "$as_me: program exited with status $ac_status" >&5 3937$as_echo "$as_me: failed program was:" >&5 3938sed 's/^/| /' conftest.$ac_ext >&5 3939 3940( exit $ac_status ) 3941ac_cv_header_stdc=no 3942fi 3943rm -rf conftest.dSYM 3944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3945fi 3946 3947 3948fi 3949fi 3950{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3951$as_echo "$ac_cv_header_stdc" >&6; } 3952if test $ac_cv_header_stdc = yes; then 3953 3954cat >>confdefs.h <<\_ACEOF 3955#define STDC_HEADERS 1 3956_ACEOF 3957 3958fi 3959 3960# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3971 inttypes.h stdint.h unistd.h 3972do 3973as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3974{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3975$as_echo_n "checking for $ac_header... " >&6; } 3976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3977 $as_echo_n "(cached) " >&6 3978else 3979 cat >conftest.$ac_ext <<_ACEOF 3980/* confdefs.h. */ 3981_ACEOF 3982cat confdefs.h >>conftest.$ac_ext 3983cat >>conftest.$ac_ext <<_ACEOF 3984/* end confdefs.h. */ 3985$ac_includes_default 3986 3987#include <$ac_header> 3988_ACEOF 3989rm -f conftest.$ac_objext 3990if { (ac_try="$ac_compile" 3991case "(($ac_try" in 3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3993 *) ac_try_echo=$ac_try;; 3994esac 3995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3996$as_echo "$ac_try_echo") >&5 3997 (eval "$ac_compile") 2>conftest.er1 3998 ac_status=$? 3999 grep -v '^ *+' conftest.er1 >conftest.err 4000 rm -f conftest.er1 4001 cat conftest.err >&5 4002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4003 (exit $ac_status); } && { 4004 test -z "$ac_c_werror_flag" || 4005 test ! -s conftest.err 4006 } && test -s conftest.$ac_objext; then 4007 eval "$as_ac_Header=yes" 4008else 4009 $as_echo "$as_me: failed program was:" >&5 4010sed 's/^/| /' conftest.$ac_ext >&5 4011 4012 eval "$as_ac_Header=no" 4013fi 4014 4015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4016fi 4017ac_res=`eval 'as_val=${'$as_ac_Header'} 4018 $as_echo "$as_val"'` 4019 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4020$as_echo "$ac_res" >&6; } 4021as_val=`eval 'as_val=${'$as_ac_Header'} 4022 $as_echo "$as_val"'` 4023 if test "x$as_val" = x""yes; then 4024 cat >>confdefs.h <<_ACEOF 4025#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4026_ACEOF 4027 4028fi 4029 4030done 4031 4032 4033 4034 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4035 4036 4037 #------------------------------------------------------------------------ 4038 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4039 # It makes compiling go faster. (This is only a performance feature.) 4040 #------------------------------------------------------------------------ 4041 4042 if test -z "$no_pipe" -a -n "$GCC"; then 4043 { $as_echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4044$as_echo_n "checking if the compiler understands -pipe... " >&6; } 4045 OLDCC="$CC" 4046 CC="$CC -pipe" 4047 cat >conftest.$ac_ext <<_ACEOF 4048/* confdefs.h. */ 4049_ACEOF 4050cat confdefs.h >>conftest.$ac_ext 4051cat >>conftest.$ac_ext <<_ACEOF 4052/* end confdefs.h. */ 4053 4054int 4055main () 4056{ 4057 4058 ; 4059 return 0; 4060} 4061_ACEOF 4062rm -f conftest.$ac_objext 4063if { (ac_try="$ac_compile" 4064case "(($ac_try" in 4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4066 *) ac_try_echo=$ac_try;; 4067esac 4068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4069$as_echo "$ac_try_echo") >&5 4070 (eval "$ac_compile") 2>conftest.er1 4071 ac_status=$? 4072 grep -v '^ *+' conftest.er1 >conftest.err 4073 rm -f conftest.er1 4074 cat conftest.err >&5 4075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4076 (exit $ac_status); } && { 4077 test -z "$ac_c_werror_flag" || 4078 test ! -s conftest.err 4079 } && test -s conftest.$ac_objext; then 4080 { $as_echo "$as_me:$LINENO: result: yes" >&5 4081$as_echo "yes" >&6; } 4082else 4083 $as_echo "$as_me: failed program was:" >&5 4084sed 's/^/| /' conftest.$ac_ext >&5 4085 4086 CC="$OLDCC" 4087 { $as_echo "$as_me:$LINENO: result: no" >&5 4088$as_echo "no" >&6; } 4089fi 4090 4091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4092 fi 4093 4094 #-------------------------------------------------------------------- 4095 # Common compiler flag setup 4096 #-------------------------------------------------------------------- 4097 4098 4099 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4100$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4101if test "${ac_cv_c_bigendian+set}" = set; then 4102 $as_echo_n "(cached) " >&6 4103else 4104 ac_cv_c_bigendian=unknown 4105 # See if we're dealing with a universal compiler. 4106 cat >conftest.$ac_ext <<_ACEOF 4107/* confdefs.h. */ 4108_ACEOF 4109cat confdefs.h >>conftest.$ac_ext 4110cat >>conftest.$ac_ext <<_ACEOF 4111/* end confdefs.h. */ 4112#ifndef __APPLE_CC__ 4113 not a universal capable compiler 4114 #endif 4115 typedef int dummy; 4116 4117_ACEOF 4118rm -f conftest.$ac_objext 4119if { (ac_try="$ac_compile" 4120case "(($ac_try" in 4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4122 *) ac_try_echo=$ac_try;; 4123esac 4124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4125$as_echo "$ac_try_echo") >&5 4126 (eval "$ac_compile") 2>conftest.er1 4127 ac_status=$? 4128 grep -v '^ *+' conftest.er1 >conftest.err 4129 rm -f conftest.er1 4130 cat conftest.err >&5 4131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4132 (exit $ac_status); } && { 4133 test -z "$ac_c_werror_flag" || 4134 test ! -s conftest.err 4135 } && test -s conftest.$ac_objext; then 4136 4137 # Check for potential -arch flags. It is not universal unless 4138 # there are some -arch flags. Note that *ppc* also matches 4139 # ppc64. This check is also rather less than ideal. 4140 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( 4141 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; 4142 esac 4143else 4144 $as_echo "$as_me: failed program was:" >&5 4145sed 's/^/| /' conftest.$ac_ext >&5 4146 4147 4148fi 4149 4150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4151 if test $ac_cv_c_bigendian = unknown; then 4152 # See if sys/param.h defines the BYTE_ORDER macro. 4153 cat >conftest.$ac_ext <<_ACEOF 4154/* confdefs.h. */ 4155_ACEOF 4156cat confdefs.h >>conftest.$ac_ext 4157cat >>conftest.$ac_ext <<_ACEOF 4158/* end confdefs.h. */ 4159#include <sys/types.h> 4160 #include <sys/param.h> 4161 4162int 4163main () 4164{ 4165#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4166 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4167 && LITTLE_ENDIAN) 4168 bogus endian macros 4169 #endif 4170 4171 ; 4172 return 0; 4173} 4174_ACEOF 4175rm -f conftest.$ac_objext 4176if { (ac_try="$ac_compile" 4177case "(($ac_try" in 4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4179 *) ac_try_echo=$ac_try;; 4180esac 4181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4182$as_echo "$ac_try_echo") >&5 4183 (eval "$ac_compile") 2>conftest.er1 4184 ac_status=$? 4185 grep -v '^ *+' conftest.er1 >conftest.err 4186 rm -f conftest.er1 4187 cat conftest.err >&5 4188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4189 (exit $ac_status); } && { 4190 test -z "$ac_c_werror_flag" || 4191 test ! -s conftest.err 4192 } && test -s conftest.$ac_objext; then 4193 # It does; now see whether it defined to BIG_ENDIAN or not. 4194 cat >conftest.$ac_ext <<_ACEOF 4195/* confdefs.h. */ 4196_ACEOF 4197cat confdefs.h >>conftest.$ac_ext 4198cat >>conftest.$ac_ext <<_ACEOF 4199/* end confdefs.h. */ 4200#include <sys/types.h> 4201 #include <sys/param.h> 4202 4203int 4204main () 4205{ 4206#if BYTE_ORDER != BIG_ENDIAN 4207 not big endian 4208 #endif 4209 4210 ; 4211 return 0; 4212} 4213_ACEOF 4214rm -f conftest.$ac_objext 4215if { (ac_try="$ac_compile" 4216case "(($ac_try" in 4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4218 *) ac_try_echo=$ac_try;; 4219esac 4220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4221$as_echo "$ac_try_echo") >&5 4222 (eval "$ac_compile") 2>conftest.er1 4223 ac_status=$? 4224 grep -v '^ *+' conftest.er1 >conftest.err 4225 rm -f conftest.er1 4226 cat conftest.err >&5 4227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4228 (exit $ac_status); } && { 4229 test -z "$ac_c_werror_flag" || 4230 test ! -s conftest.err 4231 } && test -s conftest.$ac_objext; then 4232 ac_cv_c_bigendian=yes 4233else 4234 $as_echo "$as_me: failed program was:" >&5 4235sed 's/^/| /' conftest.$ac_ext >&5 4236 4237 ac_cv_c_bigendian=no 4238fi 4239 4240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4241else 4242 $as_echo "$as_me: failed program was:" >&5 4243sed 's/^/| /' conftest.$ac_ext >&5 4244 4245 4246fi 4247 4248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4249 fi 4250 if test $ac_cv_c_bigendian = unknown; then 4251 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4252 cat >conftest.$ac_ext <<_ACEOF 4253/* confdefs.h. */ 4254_ACEOF 4255cat confdefs.h >>conftest.$ac_ext 4256cat >>conftest.$ac_ext <<_ACEOF 4257/* end confdefs.h. */ 4258#include <limits.h> 4259 4260int 4261main () 4262{ 4263#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4264 bogus endian macros 4265 #endif 4266 4267 ; 4268 return 0; 4269} 4270_ACEOF 4271rm -f conftest.$ac_objext 4272if { (ac_try="$ac_compile" 4273case "(($ac_try" in 4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4275 *) ac_try_echo=$ac_try;; 4276esac 4277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4278$as_echo "$ac_try_echo") >&5 4279 (eval "$ac_compile") 2>conftest.er1 4280 ac_status=$? 4281 grep -v '^ *+' conftest.er1 >conftest.err 4282 rm -f conftest.er1 4283 cat conftest.err >&5 4284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4285 (exit $ac_status); } && { 4286 test -z "$ac_c_werror_flag" || 4287 test ! -s conftest.err 4288 } && test -s conftest.$ac_objext; then 4289 # It does; now see whether it defined to _BIG_ENDIAN or not. 4290 cat >conftest.$ac_ext <<_ACEOF 4291/* confdefs.h. */ 4292_ACEOF 4293cat confdefs.h >>conftest.$ac_ext 4294cat >>conftest.$ac_ext <<_ACEOF 4295/* end confdefs.h. */ 4296#include <limits.h> 4297 4298int 4299main () 4300{ 4301#ifndef _BIG_ENDIAN 4302 not big endian 4303 #endif 4304 4305 ; 4306 return 0; 4307} 4308_ACEOF 4309rm -f conftest.$ac_objext 4310if { (ac_try="$ac_compile" 4311case "(($ac_try" in 4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4313 *) ac_try_echo=$ac_try;; 4314esac 4315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4316$as_echo "$ac_try_echo") >&5 4317 (eval "$ac_compile") 2>conftest.er1 4318 ac_status=$? 4319 grep -v '^ *+' conftest.er1 >conftest.err 4320 rm -f conftest.er1 4321 cat conftest.err >&5 4322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4323 (exit $ac_status); } && { 4324 test -z "$ac_c_werror_flag" || 4325 test ! -s conftest.err 4326 } && test -s conftest.$ac_objext; then 4327 ac_cv_c_bigendian=yes 4328else 4329 $as_echo "$as_me: failed program was:" >&5 4330sed 's/^/| /' conftest.$ac_ext >&5 4331 4332 ac_cv_c_bigendian=no 4333fi 4334 4335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4336else 4337 $as_echo "$as_me: failed program was:" >&5 4338sed 's/^/| /' conftest.$ac_ext >&5 4339 4340 4341fi 4342 4343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4344 fi 4345 if test $ac_cv_c_bigendian = unknown; then 4346 # Compile a test program. 4347 if test "$cross_compiling" = yes; then 4348 # Try to guess by grepping values from an object file. 4349 cat >conftest.$ac_ext <<_ACEOF 4350/* confdefs.h. */ 4351_ACEOF 4352cat confdefs.h >>conftest.$ac_ext 4353cat >>conftest.$ac_ext <<_ACEOF 4354/* end confdefs.h. */ 4355short int ascii_mm[] = 4356 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4357 short int ascii_ii[] = 4358 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4359 int use_ascii (int i) { 4360 return ascii_mm[i] + ascii_ii[i]; 4361 } 4362 short int ebcdic_ii[] = 4363 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4364 short int ebcdic_mm[] = 4365 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4366 int use_ebcdic (int i) { 4367 return ebcdic_mm[i] + ebcdic_ii[i]; 4368 } 4369 extern int foo; 4370 4371int 4372main () 4373{ 4374return use_ascii (foo) == use_ebcdic (foo); 4375 ; 4376 return 0; 4377} 4378_ACEOF 4379rm -f conftest.$ac_objext 4380if { (ac_try="$ac_compile" 4381case "(($ac_try" in 4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4383 *) ac_try_echo=$ac_try;; 4384esac 4385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4386$as_echo "$ac_try_echo") >&5 4387 (eval "$ac_compile") 2>conftest.er1 4388 ac_status=$? 4389 grep -v '^ *+' conftest.er1 >conftest.err 4390 rm -f conftest.er1 4391 cat conftest.err >&5 4392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4393 (exit $ac_status); } && { 4394 test -z "$ac_c_werror_flag" || 4395 test ! -s conftest.err 4396 } && test -s conftest.$ac_objext; then 4397 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4398 ac_cv_c_bigendian=yes 4399 fi 4400 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4401 if test "$ac_cv_c_bigendian" = unknown; then 4402 ac_cv_c_bigendian=no 4403 else 4404 # finding both strings is unlikely to happen, but who knows? 4405 ac_cv_c_bigendian=unknown 4406 fi 4407 fi 4408else 4409 $as_echo "$as_me: failed program was:" >&5 4410sed 's/^/| /' conftest.$ac_ext >&5 4411 4412 4413fi 4414 4415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4416else 4417 cat >conftest.$ac_ext <<_ACEOF 4418/* confdefs.h. */ 4419_ACEOF 4420cat confdefs.h >>conftest.$ac_ext 4421cat >>conftest.$ac_ext <<_ACEOF 4422/* end confdefs.h. */ 4423$ac_includes_default 4424int 4425main () 4426{ 4427 4428 /* Are we little or big endian? From Harbison&Steele. */ 4429 union 4430 { 4431 long int l; 4432 char c[sizeof (long int)]; 4433 } u; 4434 u.l = 1; 4435 return u.c[sizeof (long int) - 1] == 1; 4436 4437 ; 4438 return 0; 4439} 4440_ACEOF 4441rm -f conftest$ac_exeext 4442if { (ac_try="$ac_link" 4443case "(($ac_try" in 4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4445 *) ac_try_echo=$ac_try;; 4446esac 4447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4448$as_echo "$ac_try_echo") >&5 4449 (eval "$ac_link") 2>&5 4450 ac_status=$? 4451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4453 { (case "(($ac_try" in 4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4455 *) ac_try_echo=$ac_try;; 4456esac 4457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4458$as_echo "$ac_try_echo") >&5 4459 (eval "$ac_try") 2>&5 4460 ac_status=$? 4461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4462 (exit $ac_status); }; }; then 4463 ac_cv_c_bigendian=no 4464else 4465 $as_echo "$as_me: program exited with status $ac_status" >&5 4466$as_echo "$as_me: failed program was:" >&5 4467sed 's/^/| /' conftest.$ac_ext >&5 4468 4469( exit $ac_status ) 4470ac_cv_c_bigendian=yes 4471fi 4472rm -rf conftest.dSYM 4473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4474fi 4475 4476 4477 fi 4478fi 4479{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4480$as_echo "$ac_cv_c_bigendian" >&6; } 4481 case $ac_cv_c_bigendian in #( 4482 yes) 4483 cat >>confdefs.h <<\_ACEOF 4484#define WORDS_BIGENDIAN 1 4485_ACEOF 4486;; #( 4487 no) 4488 ;; #( 4489 universal) 4490 4491cat >>confdefs.h <<\_ACEOF 4492#define AC_APPLE_UNIVERSAL_BUILD 1 4493_ACEOF 4494 4495 ;; #( 4496 *) 4497 { { $as_echo "$as_me:$LINENO: error: unknown endianness 4498 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4499$as_echo "$as_me: error: unknown endianness 4500 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4501 { (exit 1); exit 1; }; } ;; 4502 esac 4503 4504 if test "${TEA_PLATFORM}" = "unix" ; then 4505 4506 #-------------------------------------------------------------------- 4507 # On a few very rare systems, all of the libm.a stuff is 4508 # already in libc.a. Set compiler flags accordingly. 4509 # Also, Linux requires the "ieee" library for math to work 4510 # right (and it must appear before "-lm"). 4511 #-------------------------------------------------------------------- 4512 4513 { $as_echo "$as_me:$LINENO: checking for sin" >&5 4514$as_echo_n "checking for sin... " >&6; } 4515if test "${ac_cv_func_sin+set}" = set; then 4516 $as_echo_n "(cached) " >&6 4517else 4518 cat >conftest.$ac_ext <<_ACEOF 4519/* confdefs.h. */ 4520_ACEOF 4521cat confdefs.h >>conftest.$ac_ext 4522cat >>conftest.$ac_ext <<_ACEOF 4523/* end confdefs.h. */ 4524/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4525 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4526#define sin innocuous_sin 4527 4528/* System header to define __stub macros and hopefully few prototypes, 4529 which can conflict with char sin (); below. 4530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4531 <limits.h> exists even on freestanding compilers. */ 4532 4533#ifdef __STDC__ 4534# include <limits.h> 4535#else 4536# include <assert.h> 4537#endif 4538 4539#undef sin 4540 4541/* Override any GCC internal prototype to avoid an error. 4542 Use char because int might match the return type of a GCC 4543 builtin and then its argument prototype would still apply. */ 4544#ifdef __cplusplus 4545extern "C" 4546#endif 4547char sin (); 4548/* The GNU C library defines this for functions which it implements 4549 to always fail with ENOSYS. Some functions are actually named 4550 something starting with __ and the normal name is an alias. */ 4551#if defined __stub_sin || defined __stub___sin 4552choke me 4553#endif 4554 4555int 4556main () 4557{ 4558return sin (); 4559 ; 4560 return 0; 4561} 4562_ACEOF 4563rm -f conftest.$ac_objext conftest$ac_exeext 4564if { (ac_try="$ac_link" 4565case "(($ac_try" in 4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4567 *) ac_try_echo=$ac_try;; 4568esac 4569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4570$as_echo "$ac_try_echo") >&5 4571 (eval "$ac_link") 2>conftest.er1 4572 ac_status=$? 4573 grep -v '^ *+' conftest.er1 >conftest.err 4574 rm -f conftest.er1 4575 cat conftest.err >&5 4576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4577 (exit $ac_status); } && { 4578 test -z "$ac_c_werror_flag" || 4579 test ! -s conftest.err 4580 } && test -s conftest$ac_exeext && { 4581 test "$cross_compiling" = yes || 4582 $as_test_x conftest$ac_exeext 4583 }; then 4584 ac_cv_func_sin=yes 4585else 4586 $as_echo "$as_me: failed program was:" >&5 4587sed 's/^/| /' conftest.$ac_ext >&5 4588 4589 ac_cv_func_sin=no 4590fi 4591 4592rm -rf conftest.dSYM 4593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4594 conftest$ac_exeext conftest.$ac_ext 4595fi 4596{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4597$as_echo "$ac_cv_func_sin" >&6; } 4598if test "x$ac_cv_func_sin" = x""yes; then 4599 MATH_LIBS="" 4600else 4601 MATH_LIBS="-lm" 4602fi 4603 4604 { $as_echo "$as_me:$LINENO: checking for main in -lieee" >&5 4605$as_echo_n "checking for main in -lieee... " >&6; } 4606if test "${ac_cv_lib_ieee_main+set}" = set; then 4607 $as_echo_n "(cached) " >&6 4608else 4609 ac_check_lib_save_LIBS=$LIBS 4610LIBS="-lieee $LIBS" 4611cat >conftest.$ac_ext <<_ACEOF 4612/* confdefs.h. */ 4613_ACEOF 4614cat confdefs.h >>conftest.$ac_ext 4615cat >>conftest.$ac_ext <<_ACEOF 4616/* end confdefs.h. */ 4617 4618 4619int 4620main () 4621{ 4622return main (); 4623 ; 4624 return 0; 4625} 4626_ACEOF 4627rm -f conftest.$ac_objext conftest$ac_exeext 4628if { (ac_try="$ac_link" 4629case "(($ac_try" in 4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4631 *) ac_try_echo=$ac_try;; 4632esac 4633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4634$as_echo "$ac_try_echo") >&5 4635 (eval "$ac_link") 2>conftest.er1 4636 ac_status=$? 4637 grep -v '^ *+' conftest.er1 >conftest.err 4638 rm -f conftest.er1 4639 cat conftest.err >&5 4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4641 (exit $ac_status); } && { 4642 test -z "$ac_c_werror_flag" || 4643 test ! -s conftest.err 4644 } && test -s conftest$ac_exeext && { 4645 test "$cross_compiling" = yes || 4646 $as_test_x conftest$ac_exeext 4647 }; then 4648 ac_cv_lib_ieee_main=yes 4649else 4650 $as_echo "$as_me: failed program was:" >&5 4651sed 's/^/| /' conftest.$ac_ext >&5 4652 4653 ac_cv_lib_ieee_main=no 4654fi 4655 4656rm -rf conftest.dSYM 4657rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4658 conftest$ac_exeext conftest.$ac_ext 4659LIBS=$ac_check_lib_save_LIBS 4660fi 4661{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4662$as_echo "$ac_cv_lib_ieee_main" >&6; } 4663if test "x$ac_cv_lib_ieee_main" = x""yes; then 4664 MATH_LIBS="-lieee $MATH_LIBS" 4665fi 4666 4667 4668 #-------------------------------------------------------------------- 4669 # Interactive UNIX requires -linet instead of -lsocket, plus it 4670 # needs net/errno.h to define the socket-related error codes. 4671 #-------------------------------------------------------------------- 4672 4673 { $as_echo "$as_me:$LINENO: checking for main in -linet" >&5 4674$as_echo_n "checking for main in -linet... " >&6; } 4675if test "${ac_cv_lib_inet_main+set}" = set; then 4676 $as_echo_n "(cached) " >&6 4677else 4678 ac_check_lib_save_LIBS=$LIBS 4679LIBS="-linet $LIBS" 4680cat >conftest.$ac_ext <<_ACEOF 4681/* confdefs.h. */ 4682_ACEOF 4683cat confdefs.h >>conftest.$ac_ext 4684cat >>conftest.$ac_ext <<_ACEOF 4685/* end confdefs.h. */ 4686 4687 4688int 4689main () 4690{ 4691return main (); 4692 ; 4693 return 0; 4694} 4695_ACEOF 4696rm -f conftest.$ac_objext conftest$ac_exeext 4697if { (ac_try="$ac_link" 4698case "(($ac_try" in 4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4700 *) ac_try_echo=$ac_try;; 4701esac 4702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4703$as_echo "$ac_try_echo") >&5 4704 (eval "$ac_link") 2>conftest.er1 4705 ac_status=$? 4706 grep -v '^ *+' conftest.er1 >conftest.err 4707 rm -f conftest.er1 4708 cat conftest.err >&5 4709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4710 (exit $ac_status); } && { 4711 test -z "$ac_c_werror_flag" || 4712 test ! -s conftest.err 4713 } && test -s conftest$ac_exeext && { 4714 test "$cross_compiling" = yes || 4715 $as_test_x conftest$ac_exeext 4716 }; then 4717 ac_cv_lib_inet_main=yes 4718else 4719 $as_echo "$as_me: failed program was:" >&5 4720sed 's/^/| /' conftest.$ac_ext >&5 4721 4722 ac_cv_lib_inet_main=no 4723fi 4724 4725rm -rf conftest.dSYM 4726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4727 conftest$ac_exeext conftest.$ac_ext 4728LIBS=$ac_check_lib_save_LIBS 4729fi 4730{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4731$as_echo "$ac_cv_lib_inet_main" >&6; } 4732if test "x$ac_cv_lib_inet_main" = x""yes; then 4733 LIBS="$LIBS -linet" 4734fi 4735 4736 if test "${ac_cv_header_net_errno_h+set}" = set; then 4737 { $as_echo "$as_me:$LINENO: checking for net/errno.h" >&5 4738$as_echo_n "checking for net/errno.h... " >&6; } 4739if test "${ac_cv_header_net_errno_h+set}" = set; then 4740 $as_echo_n "(cached) " >&6 4741fi 4742{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4743$as_echo "$ac_cv_header_net_errno_h" >&6; } 4744else 4745 # Is the header compilable? 4746{ $as_echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4747$as_echo_n "checking net/errno.h usability... " >&6; } 4748cat >conftest.$ac_ext <<_ACEOF 4749/* confdefs.h. */ 4750_ACEOF 4751cat confdefs.h >>conftest.$ac_ext 4752cat >>conftest.$ac_ext <<_ACEOF 4753/* end confdefs.h. */ 4754$ac_includes_default 4755#include <net/errno.h> 4756_ACEOF 4757rm -f conftest.$ac_objext 4758if { (ac_try="$ac_compile" 4759case "(($ac_try" in 4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4761 *) ac_try_echo=$ac_try;; 4762esac 4763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4764$as_echo "$ac_try_echo") >&5 4765 (eval "$ac_compile") 2>conftest.er1 4766 ac_status=$? 4767 grep -v '^ *+' conftest.er1 >conftest.err 4768 rm -f conftest.er1 4769 cat conftest.err >&5 4770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4771 (exit $ac_status); } && { 4772 test -z "$ac_c_werror_flag" || 4773 test ! -s conftest.err 4774 } && test -s conftest.$ac_objext; then 4775 ac_header_compiler=yes 4776else 4777 $as_echo "$as_me: failed program was:" >&5 4778sed 's/^/| /' conftest.$ac_ext >&5 4779 4780 ac_header_compiler=no 4781fi 4782 4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4784{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4785$as_echo "$ac_header_compiler" >&6; } 4786 4787# Is the header present? 4788{ $as_echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4789$as_echo_n "checking net/errno.h presence... " >&6; } 4790cat >conftest.$ac_ext <<_ACEOF 4791/* confdefs.h. */ 4792_ACEOF 4793cat confdefs.h >>conftest.$ac_ext 4794cat >>conftest.$ac_ext <<_ACEOF 4795/* end confdefs.h. */ 4796#include <net/errno.h> 4797_ACEOF 4798if { (ac_try="$ac_cpp conftest.$ac_ext" 4799case "(($ac_try" in 4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4801 *) ac_try_echo=$ac_try;; 4802esac 4803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4804$as_echo "$ac_try_echo") >&5 4805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4806 ac_status=$? 4807 grep -v '^ *+' conftest.er1 >conftest.err 4808 rm -f conftest.er1 4809 cat conftest.err >&5 4810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4811 (exit $ac_status); } >/dev/null && { 4812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4813 test ! -s conftest.err 4814 }; then 4815 ac_header_preproc=yes 4816else 4817 $as_echo "$as_me: failed program was:" >&5 4818sed 's/^/| /' conftest.$ac_ext >&5 4819 4820 ac_header_preproc=no 4821fi 4822 4823rm -f conftest.err conftest.$ac_ext 4824{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4825$as_echo "$ac_header_preproc" >&6; } 4826 4827# So? What about this header? 4828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4829 yes:no: ) 4830 { $as_echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4831$as_echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4832 { $as_echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4833$as_echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4834 ac_header_preproc=yes 4835 ;; 4836 no:yes:* ) 4837 { $as_echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4838$as_echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4839 { $as_echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4840$as_echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4841 { $as_echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4842$as_echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4843 { $as_echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4844$as_echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4845 { $as_echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4846$as_echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4847 { $as_echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4848$as_echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4849 4850 ;; 4851esac 4852{ $as_echo "$as_me:$LINENO: checking for net/errno.h" >&5 4853$as_echo_n "checking for net/errno.h... " >&6; } 4854if test "${ac_cv_header_net_errno_h+set}" = set; then 4855 $as_echo_n "(cached) " >&6 4856else 4857 ac_cv_header_net_errno_h=$ac_header_preproc 4858fi 4859{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4860$as_echo "$ac_cv_header_net_errno_h" >&6; } 4861 4862fi 4863if test "x$ac_cv_header_net_errno_h" = x""yes; then 4864 cat >>confdefs.h <<\_ACEOF 4865#define HAVE_NET_ERRNO_H 1 4866_ACEOF 4867 4868fi 4869 4870 4871 4872 #-------------------------------------------------------------------- 4873 # Check for the existence of the -lsocket and -lnsl libraries. 4874 # The order here is important, so that they end up in the right 4875 # order in the command line generated by make. Here are some 4876 # special considerations: 4877 # 1. Use "connect" and "accept" to check for -lsocket, and 4878 # "gethostbyname" to check for -lnsl. 4879 # 2. Use each function name only once: can't redo a check because 4880 # autoconf caches the results of the last check and won't redo it. 4881 # 3. Use -lnsl and -lsocket only if they supply procedures that 4882 # aren't already present in the normal libraries. This is because 4883 # IRIX 5.2 has libraries, but they aren't needed and they're 4884 # bogus: they goof up name resolution if used. 4885 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4886 # To get around this problem, check for both libraries together 4887 # if -lsocket doesn't work by itself. 4888 #-------------------------------------------------------------------- 4889 4890 tcl_checkBoth=0 4891 { $as_echo "$as_me:$LINENO: checking for connect" >&5 4892$as_echo_n "checking for connect... " >&6; } 4893if test "${ac_cv_func_connect+set}" = set; then 4894 $as_echo_n "(cached) " >&6 4895else 4896 cat >conftest.$ac_ext <<_ACEOF 4897/* confdefs.h. */ 4898_ACEOF 4899cat confdefs.h >>conftest.$ac_ext 4900cat >>conftest.$ac_ext <<_ACEOF 4901/* end confdefs.h. */ 4902/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4903 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4904#define connect innocuous_connect 4905 4906/* System header to define __stub macros and hopefully few prototypes, 4907 which can conflict with char connect (); below. 4908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4909 <limits.h> exists even on freestanding compilers. */ 4910 4911#ifdef __STDC__ 4912# include <limits.h> 4913#else 4914# include <assert.h> 4915#endif 4916 4917#undef connect 4918 4919/* Override any GCC internal prototype to avoid an error. 4920 Use char because int might match the return type of a GCC 4921 builtin and then its argument prototype would still apply. */ 4922#ifdef __cplusplus 4923extern "C" 4924#endif 4925char connect (); 4926/* The GNU C library defines this for functions which it implements 4927 to always fail with ENOSYS. Some functions are actually named 4928 something starting with __ and the normal name is an alias. */ 4929#if defined __stub_connect || defined __stub___connect 4930choke me 4931#endif 4932 4933int 4934main () 4935{ 4936return connect (); 4937 ; 4938 return 0; 4939} 4940_ACEOF 4941rm -f conftest.$ac_objext conftest$ac_exeext 4942if { (ac_try="$ac_link" 4943case "(($ac_try" in 4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4945 *) ac_try_echo=$ac_try;; 4946esac 4947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4948$as_echo "$ac_try_echo") >&5 4949 (eval "$ac_link") 2>conftest.er1 4950 ac_status=$? 4951 grep -v '^ *+' conftest.er1 >conftest.err 4952 rm -f conftest.er1 4953 cat conftest.err >&5 4954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4955 (exit $ac_status); } && { 4956 test -z "$ac_c_werror_flag" || 4957 test ! -s conftest.err 4958 } && test -s conftest$ac_exeext && { 4959 test "$cross_compiling" = yes || 4960 $as_test_x conftest$ac_exeext 4961 }; then 4962 ac_cv_func_connect=yes 4963else 4964 $as_echo "$as_me: failed program was:" >&5 4965sed 's/^/| /' conftest.$ac_ext >&5 4966 4967 ac_cv_func_connect=no 4968fi 4969 4970rm -rf conftest.dSYM 4971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4972 conftest$ac_exeext conftest.$ac_ext 4973fi 4974{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4975$as_echo "$ac_cv_func_connect" >&6; } 4976if test "x$ac_cv_func_connect" = x""yes; then 4977 tcl_checkSocket=0 4978else 4979 tcl_checkSocket=1 4980fi 4981 4982 if test "$tcl_checkSocket" = 1; then 4983 { $as_echo "$as_me:$LINENO: checking for setsockopt" >&5 4984$as_echo_n "checking for setsockopt... " >&6; } 4985if test "${ac_cv_func_setsockopt+set}" = set; then 4986 $as_echo_n "(cached) " >&6 4987else 4988 cat >conftest.$ac_ext <<_ACEOF 4989/* confdefs.h. */ 4990_ACEOF 4991cat confdefs.h >>conftest.$ac_ext 4992cat >>conftest.$ac_ext <<_ACEOF 4993/* end confdefs.h. */ 4994/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4995 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4996#define setsockopt innocuous_setsockopt 4997 4998/* System header to define __stub macros and hopefully few prototypes, 4999 which can conflict with char setsockopt (); below. 5000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5001 <limits.h> exists even on freestanding compilers. */ 5002 5003#ifdef __STDC__ 5004# include <limits.h> 5005#else 5006# include <assert.h> 5007#endif 5008 5009#undef setsockopt 5010 5011/* Override any GCC internal prototype to avoid an error. 5012 Use char because int might match the return type of a GCC 5013 builtin and then its argument prototype would still apply. */ 5014#ifdef __cplusplus 5015extern "C" 5016#endif 5017char setsockopt (); 5018/* The GNU C library defines this for functions which it implements 5019 to always fail with ENOSYS. Some functions are actually named 5020 something starting with __ and the normal name is an alias. */ 5021#if defined __stub_setsockopt || defined __stub___setsockopt 5022choke me 5023#endif 5024 5025int 5026main () 5027{ 5028return setsockopt (); 5029 ; 5030 return 0; 5031} 5032_ACEOF 5033rm -f conftest.$ac_objext conftest$ac_exeext 5034if { (ac_try="$ac_link" 5035case "(($ac_try" in 5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5037 *) ac_try_echo=$ac_try;; 5038esac 5039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5040$as_echo "$ac_try_echo") >&5 5041 (eval "$ac_link") 2>conftest.er1 5042 ac_status=$? 5043 grep -v '^ *+' conftest.er1 >conftest.err 5044 rm -f conftest.er1 5045 cat conftest.err >&5 5046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5047 (exit $ac_status); } && { 5048 test -z "$ac_c_werror_flag" || 5049 test ! -s conftest.err 5050 } && test -s conftest$ac_exeext && { 5051 test "$cross_compiling" = yes || 5052 $as_test_x conftest$ac_exeext 5053 }; then 5054 ac_cv_func_setsockopt=yes 5055else 5056 $as_echo "$as_me: failed program was:" >&5 5057sed 's/^/| /' conftest.$ac_ext >&5 5058 5059 ac_cv_func_setsockopt=no 5060fi 5061 5062rm -rf conftest.dSYM 5063rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5064 conftest$ac_exeext conftest.$ac_ext 5065fi 5066{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 5067$as_echo "$ac_cv_func_setsockopt" >&6; } 5068if test "x$ac_cv_func_setsockopt" = x""yes; then 5069 : 5070else 5071 { $as_echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 5072$as_echo_n "checking for setsockopt in -lsocket... " >&6; } 5073if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 5074 $as_echo_n "(cached) " >&6 5075else 5076 ac_check_lib_save_LIBS=$LIBS 5077LIBS="-lsocket $LIBS" 5078cat >conftest.$ac_ext <<_ACEOF 5079/* confdefs.h. */ 5080_ACEOF 5081cat confdefs.h >>conftest.$ac_ext 5082cat >>conftest.$ac_ext <<_ACEOF 5083/* end confdefs.h. */ 5084 5085/* Override any GCC internal prototype to avoid an error. 5086 Use char because int might match the return type of a GCC 5087 builtin and then its argument prototype would still apply. */ 5088#ifdef __cplusplus 5089extern "C" 5090#endif 5091char setsockopt (); 5092int 5093main () 5094{ 5095return setsockopt (); 5096 ; 5097 return 0; 5098} 5099_ACEOF 5100rm -f conftest.$ac_objext conftest$ac_exeext 5101if { (ac_try="$ac_link" 5102case "(($ac_try" in 5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5104 *) ac_try_echo=$ac_try;; 5105esac 5106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5107$as_echo "$ac_try_echo") >&5 5108 (eval "$ac_link") 2>conftest.er1 5109 ac_status=$? 5110 grep -v '^ *+' conftest.er1 >conftest.err 5111 rm -f conftest.er1 5112 cat conftest.err >&5 5113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5114 (exit $ac_status); } && { 5115 test -z "$ac_c_werror_flag" || 5116 test ! -s conftest.err 5117 } && test -s conftest$ac_exeext && { 5118 test "$cross_compiling" = yes || 5119 $as_test_x conftest$ac_exeext 5120 }; then 5121 ac_cv_lib_socket_setsockopt=yes 5122else 5123 $as_echo "$as_me: failed program was:" >&5 5124sed 's/^/| /' conftest.$ac_ext >&5 5125 5126 ac_cv_lib_socket_setsockopt=no 5127fi 5128 5129rm -rf conftest.dSYM 5130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5131 conftest$ac_exeext conftest.$ac_ext 5132LIBS=$ac_check_lib_save_LIBS 5133fi 5134{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 5135$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } 5136if test "x$ac_cv_lib_socket_setsockopt" = x""yes; then 5137 LIBS="$LIBS -lsocket" 5138else 5139 tcl_checkBoth=1 5140fi 5141 5142fi 5143 5144 fi 5145 if test "$tcl_checkBoth" = 1; then 5146 tk_oldLibs=$LIBS 5147 LIBS="$LIBS -lsocket -lnsl" 5148 { $as_echo "$as_me:$LINENO: checking for accept" >&5 5149$as_echo_n "checking for accept... " >&6; } 5150if test "${ac_cv_func_accept+set}" = set; then 5151 $as_echo_n "(cached) " >&6 5152else 5153 cat >conftest.$ac_ext <<_ACEOF 5154/* confdefs.h. */ 5155_ACEOF 5156cat confdefs.h >>conftest.$ac_ext 5157cat >>conftest.$ac_ext <<_ACEOF 5158/* end confdefs.h. */ 5159/* Define accept to an innocuous variant, in case <limits.h> declares accept. 5160 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5161#define accept innocuous_accept 5162 5163/* System header to define __stub macros and hopefully few prototypes, 5164 which can conflict with char accept (); below. 5165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5166 <limits.h> exists even on freestanding compilers. */ 5167 5168#ifdef __STDC__ 5169# include <limits.h> 5170#else 5171# include <assert.h> 5172#endif 5173 5174#undef accept 5175 5176/* Override any GCC internal prototype to avoid an error. 5177 Use char because int might match the return type of a GCC 5178 builtin and then its argument prototype would still apply. */ 5179#ifdef __cplusplus 5180extern "C" 5181#endif 5182char accept (); 5183/* The GNU C library defines this for functions which it implements 5184 to always fail with ENOSYS. Some functions are actually named 5185 something starting with __ and the normal name is an alias. */ 5186#if defined __stub_accept || defined __stub___accept 5187choke me 5188#endif 5189 5190int 5191main () 5192{ 5193return accept (); 5194 ; 5195 return 0; 5196} 5197_ACEOF 5198rm -f conftest.$ac_objext conftest$ac_exeext 5199if { (ac_try="$ac_link" 5200case "(($ac_try" in 5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5202 *) ac_try_echo=$ac_try;; 5203esac 5204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5205$as_echo "$ac_try_echo") >&5 5206 (eval "$ac_link") 2>conftest.er1 5207 ac_status=$? 5208 grep -v '^ *+' conftest.er1 >conftest.err 5209 rm -f conftest.er1 5210 cat conftest.err >&5 5211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5212 (exit $ac_status); } && { 5213 test -z "$ac_c_werror_flag" || 5214 test ! -s conftest.err 5215 } && test -s conftest$ac_exeext && { 5216 test "$cross_compiling" = yes || 5217 $as_test_x conftest$ac_exeext 5218 }; then 5219 ac_cv_func_accept=yes 5220else 5221 $as_echo "$as_me: failed program was:" >&5 5222sed 's/^/| /' conftest.$ac_ext >&5 5223 5224 ac_cv_func_accept=no 5225fi 5226 5227rm -rf conftest.dSYM 5228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5229 conftest$ac_exeext conftest.$ac_ext 5230fi 5231{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5232$as_echo "$ac_cv_func_accept" >&6; } 5233if test "x$ac_cv_func_accept" = x""yes; then 5234 tcl_checkNsl=0 5235else 5236 LIBS=$tk_oldLibs 5237fi 5238 5239 fi 5240 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5 5241$as_echo_n "checking for gethostbyname... " >&6; } 5242if test "${ac_cv_func_gethostbyname+set}" = set; then 5243 $as_echo_n "(cached) " >&6 5244else 5245 cat >conftest.$ac_ext <<_ACEOF 5246/* confdefs.h. */ 5247_ACEOF 5248cat confdefs.h >>conftest.$ac_ext 5249cat >>conftest.$ac_ext <<_ACEOF 5250/* end confdefs.h. */ 5251/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5252 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5253#define gethostbyname innocuous_gethostbyname 5254 5255/* System header to define __stub macros and hopefully few prototypes, 5256 which can conflict with char gethostbyname (); below. 5257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5258 <limits.h> exists even on freestanding compilers. */ 5259 5260#ifdef __STDC__ 5261# include <limits.h> 5262#else 5263# include <assert.h> 5264#endif 5265 5266#undef gethostbyname 5267 5268/* Override any GCC internal prototype to avoid an error. 5269 Use char because int might match the return type of a GCC 5270 builtin and then its argument prototype would still apply. */ 5271#ifdef __cplusplus 5272extern "C" 5273#endif 5274char gethostbyname (); 5275/* The GNU C library defines this for functions which it implements 5276 to always fail with ENOSYS. Some functions are actually named 5277 something starting with __ and the normal name is an alias. */ 5278#if defined __stub_gethostbyname || defined __stub___gethostbyname 5279choke me 5280#endif 5281 5282int 5283main () 5284{ 5285return gethostbyname (); 5286 ; 5287 return 0; 5288} 5289_ACEOF 5290rm -f conftest.$ac_objext conftest$ac_exeext 5291if { (ac_try="$ac_link" 5292case "(($ac_try" in 5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5294 *) ac_try_echo=$ac_try;; 5295esac 5296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5297$as_echo "$ac_try_echo") >&5 5298 (eval "$ac_link") 2>conftest.er1 5299 ac_status=$? 5300 grep -v '^ *+' conftest.er1 >conftest.err 5301 rm -f conftest.er1 5302 cat conftest.err >&5 5303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5304 (exit $ac_status); } && { 5305 test -z "$ac_c_werror_flag" || 5306 test ! -s conftest.err 5307 } && test -s conftest$ac_exeext && { 5308 test "$cross_compiling" = yes || 5309 $as_test_x conftest$ac_exeext 5310 }; then 5311 ac_cv_func_gethostbyname=yes 5312else 5313 $as_echo "$as_me: failed program was:" >&5 5314sed 's/^/| /' conftest.$ac_ext >&5 5315 5316 ac_cv_func_gethostbyname=no 5317fi 5318 5319rm -rf conftest.dSYM 5320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5321 conftest$ac_exeext conftest.$ac_ext 5322fi 5323{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5324$as_echo "$ac_cv_func_gethostbyname" >&6; } 5325if test "x$ac_cv_func_gethostbyname" = x""yes; then 5326 : 5327else 5328 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5329$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 5330if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5331 $as_echo_n "(cached) " >&6 5332else 5333 ac_check_lib_save_LIBS=$LIBS 5334LIBS="-lnsl $LIBS" 5335cat >conftest.$ac_ext <<_ACEOF 5336/* confdefs.h. */ 5337_ACEOF 5338cat confdefs.h >>conftest.$ac_ext 5339cat >>conftest.$ac_ext <<_ACEOF 5340/* end confdefs.h. */ 5341 5342/* Override any GCC internal prototype to avoid an error. 5343 Use char because int might match the return type of a GCC 5344 builtin and then its argument prototype would still apply. */ 5345#ifdef __cplusplus 5346extern "C" 5347#endif 5348char gethostbyname (); 5349int 5350main () 5351{ 5352return gethostbyname (); 5353 ; 5354 return 0; 5355} 5356_ACEOF 5357rm -f conftest.$ac_objext conftest$ac_exeext 5358if { (ac_try="$ac_link" 5359case "(($ac_try" in 5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5361 *) ac_try_echo=$ac_try;; 5362esac 5363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5364$as_echo "$ac_try_echo") >&5 5365 (eval "$ac_link") 2>conftest.er1 5366 ac_status=$? 5367 grep -v '^ *+' conftest.er1 >conftest.err 5368 rm -f conftest.er1 5369 cat conftest.err >&5 5370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5371 (exit $ac_status); } && { 5372 test -z "$ac_c_werror_flag" || 5373 test ! -s conftest.err 5374 } && test -s conftest$ac_exeext && { 5375 test "$cross_compiling" = yes || 5376 $as_test_x conftest$ac_exeext 5377 }; then 5378 ac_cv_lib_nsl_gethostbyname=yes 5379else 5380 $as_echo "$as_me: failed program was:" >&5 5381sed 's/^/| /' conftest.$ac_ext >&5 5382 5383 ac_cv_lib_nsl_gethostbyname=no 5384fi 5385 5386rm -rf conftest.dSYM 5387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5388 conftest$ac_exeext conftest.$ac_ext 5389LIBS=$ac_check_lib_save_LIBS 5390fi 5391{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5392$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 5393if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then 5394 LIBS="$LIBS -lnsl" 5395fi 5396 5397fi 5398 5399 5400 # Don't perform the eval of the libraries here because DL_LIBS 5401 # won't be set until we call TEA_CONFIG_CFLAGS 5402 5403 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5404 5405 5406 5407 5408 { $as_echo "$as_me:$LINENO: checking dirent.h" >&5 5409$as_echo_n "checking dirent.h... " >&6; } 5410 cat >conftest.$ac_ext <<_ACEOF 5411/* confdefs.h. */ 5412_ACEOF 5413cat confdefs.h >>conftest.$ac_ext 5414cat >>conftest.$ac_ext <<_ACEOF 5415/* end confdefs.h. */ 5416#include <sys/types.h> 5417#include <dirent.h> 5418int 5419main () 5420{ 5421 5422#ifndef _POSIX_SOURCE 5423# ifdef __Lynx__ 5424 /* 5425 * Generate compilation error to make the test fail: Lynx headers 5426 * are only valid if really in the POSIX environment. 5427 */ 5428 5429 missing_procedure(); 5430# endif 5431#endif 5432DIR *d; 5433struct dirent *entryPtr; 5434char *p; 5435d = opendir("foobar"); 5436entryPtr = readdir(d); 5437p = entryPtr->d_name; 5438closedir(d); 5439 5440 ; 5441 return 0; 5442} 5443_ACEOF 5444rm -f conftest.$ac_objext conftest$ac_exeext 5445if { (ac_try="$ac_link" 5446case "(($ac_try" in 5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5448 *) ac_try_echo=$ac_try;; 5449esac 5450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5451$as_echo "$ac_try_echo") >&5 5452 (eval "$ac_link") 2>conftest.er1 5453 ac_status=$? 5454 grep -v '^ *+' conftest.er1 >conftest.err 5455 rm -f conftest.er1 5456 cat conftest.err >&5 5457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5458 (exit $ac_status); } && { 5459 test -z "$ac_c_werror_flag" || 5460 test ! -s conftest.err 5461 } && test -s conftest$ac_exeext && { 5462 test "$cross_compiling" = yes || 5463 $as_test_x conftest$ac_exeext 5464 }; then 5465 tcl_ok=yes 5466else 5467 $as_echo "$as_me: failed program was:" >&5 5468sed 's/^/| /' conftest.$ac_ext >&5 5469 5470 tcl_ok=no 5471fi 5472 5473rm -rf conftest.dSYM 5474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5475 conftest$ac_exeext conftest.$ac_ext 5476 5477 if test $tcl_ok = no; then 5478 cat >>confdefs.h <<\_ACEOF 5479#define NO_DIRENT_H 1 5480_ACEOF 5481 5482 fi 5483 5484 { $as_echo "$as_me:$LINENO: result: $tcl_ok" >&5 5485$as_echo "$tcl_ok" >&6; } 5486 if test "${ac_cv_header_errno_h+set}" = set; then 5487 { $as_echo "$as_me:$LINENO: checking for errno.h" >&5 5488$as_echo_n "checking for errno.h... " >&6; } 5489if test "${ac_cv_header_errno_h+set}" = set; then 5490 $as_echo_n "(cached) " >&6 5491fi 5492{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5493$as_echo "$ac_cv_header_errno_h" >&6; } 5494else 5495 # Is the header compilable? 5496{ $as_echo "$as_me:$LINENO: checking errno.h usability" >&5 5497$as_echo_n "checking errno.h usability... " >&6; } 5498cat >conftest.$ac_ext <<_ACEOF 5499/* confdefs.h. */ 5500_ACEOF 5501cat confdefs.h >>conftest.$ac_ext 5502cat >>conftest.$ac_ext <<_ACEOF 5503/* end confdefs.h. */ 5504$ac_includes_default 5505#include <errno.h> 5506_ACEOF 5507rm -f conftest.$ac_objext 5508if { (ac_try="$ac_compile" 5509case "(($ac_try" in 5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5511 *) ac_try_echo=$ac_try;; 5512esac 5513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5514$as_echo "$ac_try_echo") >&5 5515 (eval "$ac_compile") 2>conftest.er1 5516 ac_status=$? 5517 grep -v '^ *+' conftest.er1 >conftest.err 5518 rm -f conftest.er1 5519 cat conftest.err >&5 5520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5521 (exit $ac_status); } && { 5522 test -z "$ac_c_werror_flag" || 5523 test ! -s conftest.err 5524 } && test -s conftest.$ac_objext; then 5525 ac_header_compiler=yes 5526else 5527 $as_echo "$as_me: failed program was:" >&5 5528sed 's/^/| /' conftest.$ac_ext >&5 5529 5530 ac_header_compiler=no 5531fi 5532 5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5534{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5535$as_echo "$ac_header_compiler" >&6; } 5536 5537# Is the header present? 5538{ $as_echo "$as_me:$LINENO: checking errno.h presence" >&5 5539$as_echo_n "checking errno.h presence... " >&6; } 5540cat >conftest.$ac_ext <<_ACEOF 5541/* confdefs.h. */ 5542_ACEOF 5543cat confdefs.h >>conftest.$ac_ext 5544cat >>conftest.$ac_ext <<_ACEOF 5545/* end confdefs.h. */ 5546#include <errno.h> 5547_ACEOF 5548if { (ac_try="$ac_cpp conftest.$ac_ext" 5549case "(($ac_try" in 5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5551 *) ac_try_echo=$ac_try;; 5552esac 5553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5554$as_echo "$ac_try_echo") >&5 5555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5556 ac_status=$? 5557 grep -v '^ *+' conftest.er1 >conftest.err 5558 rm -f conftest.er1 5559 cat conftest.err >&5 5560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5561 (exit $ac_status); } >/dev/null && { 5562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5563 test ! -s conftest.err 5564 }; then 5565 ac_header_preproc=yes 5566else 5567 $as_echo "$as_me: failed program was:" >&5 5568sed 's/^/| /' conftest.$ac_ext >&5 5569 5570 ac_header_preproc=no 5571fi 5572 5573rm -f conftest.err conftest.$ac_ext 5574{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5575$as_echo "$ac_header_preproc" >&6; } 5576 5577# So? What about this header? 5578case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5579 yes:no: ) 5580 { $as_echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5581$as_echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5582 { $as_echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5583$as_echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5584 ac_header_preproc=yes 5585 ;; 5586 no:yes:* ) 5587 { $as_echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5588$as_echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5589 { $as_echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5590$as_echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5591 { $as_echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5592$as_echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5593 { $as_echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5594$as_echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5595 { $as_echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5596$as_echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5597 { $as_echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5598$as_echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5599 5600 ;; 5601esac 5602{ $as_echo "$as_me:$LINENO: checking for errno.h" >&5 5603$as_echo_n "checking for errno.h... " >&6; } 5604if test "${ac_cv_header_errno_h+set}" = set; then 5605 $as_echo_n "(cached) " >&6 5606else 5607 ac_cv_header_errno_h=$ac_header_preproc 5608fi 5609{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5610$as_echo "$ac_cv_header_errno_h" >&6; } 5611 5612fi 5613if test "x$ac_cv_header_errno_h" = x""yes; then 5614 : 5615else 5616 cat >>confdefs.h <<\_ACEOF 5617#define NO_ERRNO_H 1 5618_ACEOF 5619 5620fi 5621 5622 5623 if test "${ac_cv_header_float_h+set}" = set; then 5624 { $as_echo "$as_me:$LINENO: checking for float.h" >&5 5625$as_echo_n "checking for float.h... " >&6; } 5626if test "${ac_cv_header_float_h+set}" = set; then 5627 $as_echo_n "(cached) " >&6 5628fi 5629{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5630$as_echo "$ac_cv_header_float_h" >&6; } 5631else 5632 # Is the header compilable? 5633{ $as_echo "$as_me:$LINENO: checking float.h usability" >&5 5634$as_echo_n "checking float.h usability... " >&6; } 5635cat >conftest.$ac_ext <<_ACEOF 5636/* confdefs.h. */ 5637_ACEOF 5638cat confdefs.h >>conftest.$ac_ext 5639cat >>conftest.$ac_ext <<_ACEOF 5640/* end confdefs.h. */ 5641$ac_includes_default 5642#include <float.h> 5643_ACEOF 5644rm -f conftest.$ac_objext 5645if { (ac_try="$ac_compile" 5646case "(($ac_try" in 5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5648 *) ac_try_echo=$ac_try;; 5649esac 5650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5651$as_echo "$ac_try_echo") >&5 5652 (eval "$ac_compile") 2>conftest.er1 5653 ac_status=$? 5654 grep -v '^ *+' conftest.er1 >conftest.err 5655 rm -f conftest.er1 5656 cat conftest.err >&5 5657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5658 (exit $ac_status); } && { 5659 test -z "$ac_c_werror_flag" || 5660 test ! -s conftest.err 5661 } && test -s conftest.$ac_objext; then 5662 ac_header_compiler=yes 5663else 5664 $as_echo "$as_me: failed program was:" >&5 5665sed 's/^/| /' conftest.$ac_ext >&5 5666 5667 ac_header_compiler=no 5668fi 5669 5670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5671{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5672$as_echo "$ac_header_compiler" >&6; } 5673 5674# Is the header present? 5675{ $as_echo "$as_me:$LINENO: checking float.h presence" >&5 5676$as_echo_n "checking float.h presence... " >&6; } 5677cat >conftest.$ac_ext <<_ACEOF 5678/* confdefs.h. */ 5679_ACEOF 5680cat confdefs.h >>conftest.$ac_ext 5681cat >>conftest.$ac_ext <<_ACEOF 5682/* end confdefs.h. */ 5683#include <float.h> 5684_ACEOF 5685if { (ac_try="$ac_cpp conftest.$ac_ext" 5686case "(($ac_try" in 5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5688 *) ac_try_echo=$ac_try;; 5689esac 5690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5691$as_echo "$ac_try_echo") >&5 5692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5693 ac_status=$? 5694 grep -v '^ *+' conftest.er1 >conftest.err 5695 rm -f conftest.er1 5696 cat conftest.err >&5 5697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5698 (exit $ac_status); } >/dev/null && { 5699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5700 test ! -s conftest.err 5701 }; then 5702 ac_header_preproc=yes 5703else 5704 $as_echo "$as_me: failed program was:" >&5 5705sed 's/^/| /' conftest.$ac_ext >&5 5706 5707 ac_header_preproc=no 5708fi 5709 5710rm -f conftest.err conftest.$ac_ext 5711{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5712$as_echo "$ac_header_preproc" >&6; } 5713 5714# So? What about this header? 5715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5716 yes:no: ) 5717 { $as_echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5718$as_echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5719 { $as_echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5720$as_echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5721 ac_header_preproc=yes 5722 ;; 5723 no:yes:* ) 5724 { $as_echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5725$as_echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5726 { $as_echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5727$as_echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5728 { $as_echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5729$as_echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5730 { $as_echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5731$as_echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5732 { $as_echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5733$as_echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5734 { $as_echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5735$as_echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5736 5737 ;; 5738esac 5739{ $as_echo "$as_me:$LINENO: checking for float.h" >&5 5740$as_echo_n "checking for float.h... " >&6; } 5741if test "${ac_cv_header_float_h+set}" = set; then 5742 $as_echo_n "(cached) " >&6 5743else 5744 ac_cv_header_float_h=$ac_header_preproc 5745fi 5746{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5747$as_echo "$ac_cv_header_float_h" >&6; } 5748 5749fi 5750if test "x$ac_cv_header_float_h" = x""yes; then 5751 : 5752else 5753 cat >>confdefs.h <<\_ACEOF 5754#define NO_FLOAT_H 1 5755_ACEOF 5756 5757fi 5758 5759 5760 if test "${ac_cv_header_values_h+set}" = set; then 5761 { $as_echo "$as_me:$LINENO: checking for values.h" >&5 5762$as_echo_n "checking for values.h... " >&6; } 5763if test "${ac_cv_header_values_h+set}" = set; then 5764 $as_echo_n "(cached) " >&6 5765fi 5766{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5767$as_echo "$ac_cv_header_values_h" >&6; } 5768else 5769 # Is the header compilable? 5770{ $as_echo "$as_me:$LINENO: checking values.h usability" >&5 5771$as_echo_n "checking values.h usability... " >&6; } 5772cat >conftest.$ac_ext <<_ACEOF 5773/* confdefs.h. */ 5774_ACEOF 5775cat confdefs.h >>conftest.$ac_ext 5776cat >>conftest.$ac_ext <<_ACEOF 5777/* end confdefs.h. */ 5778$ac_includes_default 5779#include <values.h> 5780_ACEOF 5781rm -f conftest.$ac_objext 5782if { (ac_try="$ac_compile" 5783case "(($ac_try" in 5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5785 *) ac_try_echo=$ac_try;; 5786esac 5787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5788$as_echo "$ac_try_echo") >&5 5789 (eval "$ac_compile") 2>conftest.er1 5790 ac_status=$? 5791 grep -v '^ *+' conftest.er1 >conftest.err 5792 rm -f conftest.er1 5793 cat conftest.err >&5 5794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5795 (exit $ac_status); } && { 5796 test -z "$ac_c_werror_flag" || 5797 test ! -s conftest.err 5798 } && test -s conftest.$ac_objext; then 5799 ac_header_compiler=yes 5800else 5801 $as_echo "$as_me: failed program was:" >&5 5802sed 's/^/| /' conftest.$ac_ext >&5 5803 5804 ac_header_compiler=no 5805fi 5806 5807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5808{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5809$as_echo "$ac_header_compiler" >&6; } 5810 5811# Is the header present? 5812{ $as_echo "$as_me:$LINENO: checking values.h presence" >&5 5813$as_echo_n "checking values.h presence... " >&6; } 5814cat >conftest.$ac_ext <<_ACEOF 5815/* confdefs.h. */ 5816_ACEOF 5817cat confdefs.h >>conftest.$ac_ext 5818cat >>conftest.$ac_ext <<_ACEOF 5819/* end confdefs.h. */ 5820#include <values.h> 5821_ACEOF 5822if { (ac_try="$ac_cpp conftest.$ac_ext" 5823case "(($ac_try" in 5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5825 *) ac_try_echo=$ac_try;; 5826esac 5827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5828$as_echo "$ac_try_echo") >&5 5829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5830 ac_status=$? 5831 grep -v '^ *+' conftest.er1 >conftest.err 5832 rm -f conftest.er1 5833 cat conftest.err >&5 5834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5835 (exit $ac_status); } >/dev/null && { 5836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5837 test ! -s conftest.err 5838 }; then 5839 ac_header_preproc=yes 5840else 5841 $as_echo "$as_me: failed program was:" >&5 5842sed 's/^/| /' conftest.$ac_ext >&5 5843 5844 ac_header_preproc=no 5845fi 5846 5847rm -f conftest.err conftest.$ac_ext 5848{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5849$as_echo "$ac_header_preproc" >&6; } 5850 5851# So? What about this header? 5852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5853 yes:no: ) 5854 { $as_echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5855$as_echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5856 { $as_echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5857$as_echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5858 ac_header_preproc=yes 5859 ;; 5860 no:yes:* ) 5861 { $as_echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5862$as_echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5863 { $as_echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5864$as_echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5865 { $as_echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5866$as_echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5867 { $as_echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5868$as_echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5869 { $as_echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5870$as_echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5871 { $as_echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5872$as_echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5873 5874 ;; 5875esac 5876{ $as_echo "$as_me:$LINENO: checking for values.h" >&5 5877$as_echo_n "checking for values.h... " >&6; } 5878if test "${ac_cv_header_values_h+set}" = set; then 5879 $as_echo_n "(cached) " >&6 5880else 5881 ac_cv_header_values_h=$ac_header_preproc 5882fi 5883{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5884$as_echo "$ac_cv_header_values_h" >&6; } 5885 5886fi 5887if test "x$ac_cv_header_values_h" = x""yes; then 5888 : 5889else 5890 cat >>confdefs.h <<\_ACEOF 5891#define NO_VALUES_H 1 5892_ACEOF 5893 5894fi 5895 5896 5897 if test "${ac_cv_header_limits_h+set}" = set; then 5898 { $as_echo "$as_me:$LINENO: checking for limits.h" >&5 5899$as_echo_n "checking for limits.h... " >&6; } 5900if test "${ac_cv_header_limits_h+set}" = set; then 5901 $as_echo_n "(cached) " >&6 5902fi 5903{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5904$as_echo "$ac_cv_header_limits_h" >&6; } 5905else 5906 # Is the header compilable? 5907{ $as_echo "$as_me:$LINENO: checking limits.h usability" >&5 5908$as_echo_n "checking limits.h usability... " >&6; } 5909cat >conftest.$ac_ext <<_ACEOF 5910/* confdefs.h. */ 5911_ACEOF 5912cat confdefs.h >>conftest.$ac_ext 5913cat >>conftest.$ac_ext <<_ACEOF 5914/* end confdefs.h. */ 5915$ac_includes_default 5916#include <limits.h> 5917_ACEOF 5918rm -f conftest.$ac_objext 5919if { (ac_try="$ac_compile" 5920case "(($ac_try" in 5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5922 *) ac_try_echo=$ac_try;; 5923esac 5924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5925$as_echo "$ac_try_echo") >&5 5926 (eval "$ac_compile") 2>conftest.er1 5927 ac_status=$? 5928 grep -v '^ *+' conftest.er1 >conftest.err 5929 rm -f conftest.er1 5930 cat conftest.err >&5 5931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5932 (exit $ac_status); } && { 5933 test -z "$ac_c_werror_flag" || 5934 test ! -s conftest.err 5935 } && test -s conftest.$ac_objext; then 5936 ac_header_compiler=yes 5937else 5938 $as_echo "$as_me: failed program was:" >&5 5939sed 's/^/| /' conftest.$ac_ext >&5 5940 5941 ac_header_compiler=no 5942fi 5943 5944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5945{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5946$as_echo "$ac_header_compiler" >&6; } 5947 5948# Is the header present? 5949{ $as_echo "$as_me:$LINENO: checking limits.h presence" >&5 5950$as_echo_n "checking limits.h presence... " >&6; } 5951cat >conftest.$ac_ext <<_ACEOF 5952/* confdefs.h. */ 5953_ACEOF 5954cat confdefs.h >>conftest.$ac_ext 5955cat >>conftest.$ac_ext <<_ACEOF 5956/* end confdefs.h. */ 5957#include <limits.h> 5958_ACEOF 5959if { (ac_try="$ac_cpp conftest.$ac_ext" 5960case "(($ac_try" in 5961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5962 *) ac_try_echo=$ac_try;; 5963esac 5964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5965$as_echo "$ac_try_echo") >&5 5966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5967 ac_status=$? 5968 grep -v '^ *+' conftest.er1 >conftest.err 5969 rm -f conftest.er1 5970 cat conftest.err >&5 5971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5972 (exit $ac_status); } >/dev/null && { 5973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5974 test ! -s conftest.err 5975 }; then 5976 ac_header_preproc=yes 5977else 5978 $as_echo "$as_me: failed program was:" >&5 5979sed 's/^/| /' conftest.$ac_ext >&5 5980 5981 ac_header_preproc=no 5982fi 5983 5984rm -f conftest.err conftest.$ac_ext 5985{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5986$as_echo "$ac_header_preproc" >&6; } 5987 5988# So? What about this header? 5989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5990 yes:no: ) 5991 { $as_echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5992$as_echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5993 { $as_echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5994$as_echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5995 ac_header_preproc=yes 5996 ;; 5997 no:yes:* ) 5998 { $as_echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5999$as_echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 6000 { $as_echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 6001$as_echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 6002 { $as_echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 6003$as_echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 6004 { $as_echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 6005$as_echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 6006 { $as_echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 6007$as_echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 6008 { $as_echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 6009$as_echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 6010 6011 ;; 6012esac 6013{ $as_echo "$as_me:$LINENO: checking for limits.h" >&5 6014$as_echo_n "checking for limits.h... " >&6; } 6015if test "${ac_cv_header_limits_h+set}" = set; then 6016 $as_echo_n "(cached) " >&6 6017else 6018 ac_cv_header_limits_h=$ac_header_preproc 6019fi 6020{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 6021$as_echo "$ac_cv_header_limits_h" >&6; } 6022 6023fi 6024if test "x$ac_cv_header_limits_h" = x""yes; then 6025 cat >>confdefs.h <<\_ACEOF 6026#define HAVE_LIMITS_H 1 6027_ACEOF 6028 6029else 6030 cat >>confdefs.h <<\_ACEOF 6031#define NO_LIMITS_H 1 6032_ACEOF 6033 6034fi 6035 6036 6037 if test "${ac_cv_header_stdlib_h+set}" = set; then 6038 { $as_echo "$as_me:$LINENO: checking for stdlib.h" >&5 6039$as_echo_n "checking for stdlib.h... " >&6; } 6040if test "${ac_cv_header_stdlib_h+set}" = set; then 6041 $as_echo_n "(cached) " >&6 6042fi 6043{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6044$as_echo "$ac_cv_header_stdlib_h" >&6; } 6045else 6046 # Is the header compilable? 6047{ $as_echo "$as_me:$LINENO: checking stdlib.h usability" >&5 6048$as_echo_n "checking stdlib.h usability... " >&6; } 6049cat >conftest.$ac_ext <<_ACEOF 6050/* confdefs.h. */ 6051_ACEOF 6052cat confdefs.h >>conftest.$ac_ext 6053cat >>conftest.$ac_ext <<_ACEOF 6054/* end confdefs.h. */ 6055$ac_includes_default 6056#include <stdlib.h> 6057_ACEOF 6058rm -f conftest.$ac_objext 6059if { (ac_try="$ac_compile" 6060case "(($ac_try" in 6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6062 *) ac_try_echo=$ac_try;; 6063esac 6064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6065$as_echo "$ac_try_echo") >&5 6066 (eval "$ac_compile") 2>conftest.er1 6067 ac_status=$? 6068 grep -v '^ *+' conftest.er1 >conftest.err 6069 rm -f conftest.er1 6070 cat conftest.err >&5 6071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6072 (exit $ac_status); } && { 6073 test -z "$ac_c_werror_flag" || 6074 test ! -s conftest.err 6075 } && test -s conftest.$ac_objext; then 6076 ac_header_compiler=yes 6077else 6078 $as_echo "$as_me: failed program was:" >&5 6079sed 's/^/| /' conftest.$ac_ext >&5 6080 6081 ac_header_compiler=no 6082fi 6083 6084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6085{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6086$as_echo "$ac_header_compiler" >&6; } 6087 6088# Is the header present? 6089{ $as_echo "$as_me:$LINENO: checking stdlib.h presence" >&5 6090$as_echo_n "checking stdlib.h presence... " >&6; } 6091cat >conftest.$ac_ext <<_ACEOF 6092/* confdefs.h. */ 6093_ACEOF 6094cat confdefs.h >>conftest.$ac_ext 6095cat >>conftest.$ac_ext <<_ACEOF 6096/* end confdefs.h. */ 6097#include <stdlib.h> 6098_ACEOF 6099if { (ac_try="$ac_cpp conftest.$ac_ext" 6100case "(($ac_try" in 6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6102 *) ac_try_echo=$ac_try;; 6103esac 6104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6105$as_echo "$ac_try_echo") >&5 6106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6107 ac_status=$? 6108 grep -v '^ *+' conftest.er1 >conftest.err 6109 rm -f conftest.er1 6110 cat conftest.err >&5 6111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6112 (exit $ac_status); } >/dev/null && { 6113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6114 test ! -s conftest.err 6115 }; then 6116 ac_header_preproc=yes 6117else 6118 $as_echo "$as_me: failed program was:" >&5 6119sed 's/^/| /' conftest.$ac_ext >&5 6120 6121 ac_header_preproc=no 6122fi 6123 6124rm -f conftest.err conftest.$ac_ext 6125{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6126$as_echo "$ac_header_preproc" >&6; } 6127 6128# So? What about this header? 6129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6130 yes:no: ) 6131 { $as_echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 6132$as_echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6133 { $as_echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 6134$as_echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 6135 ac_header_preproc=yes 6136 ;; 6137 no:yes:* ) 6138 { $as_echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 6139$as_echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 6140 { $as_echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 6141$as_echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 6142 { $as_echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 6143$as_echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 6144 { $as_echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 6145$as_echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 6146 { $as_echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 6147$as_echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 6148 { $as_echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 6149$as_echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 6150 6151 ;; 6152esac 6153{ $as_echo "$as_me:$LINENO: checking for stdlib.h" >&5 6154$as_echo_n "checking for stdlib.h... " >&6; } 6155if test "${ac_cv_header_stdlib_h+set}" = set; then 6156 $as_echo_n "(cached) " >&6 6157else 6158 ac_cv_header_stdlib_h=$ac_header_preproc 6159fi 6160{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6161$as_echo "$ac_cv_header_stdlib_h" >&6; } 6162 6163fi 6164if test "x$ac_cv_header_stdlib_h" = x""yes; then 6165 tcl_ok=1 6166else 6167 tcl_ok=0 6168fi 6169 6170 6171 cat >conftest.$ac_ext <<_ACEOF 6172/* confdefs.h. */ 6173_ACEOF 6174cat confdefs.h >>conftest.$ac_ext 6175cat >>conftest.$ac_ext <<_ACEOF 6176/* end confdefs.h. */ 6177#include <stdlib.h> 6178 6179_ACEOF 6180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6181 $EGREP "strtol" >/dev/null 2>&1; then 6182 : 6183else 6184 tcl_ok=0 6185fi 6186rm -f conftest* 6187 6188 cat >conftest.$ac_ext <<_ACEOF 6189/* confdefs.h. */ 6190_ACEOF 6191cat confdefs.h >>conftest.$ac_ext 6192cat >>conftest.$ac_ext <<_ACEOF 6193/* end confdefs.h. */ 6194#include <stdlib.h> 6195 6196_ACEOF 6197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6198 $EGREP "strtoul" >/dev/null 2>&1; then 6199 : 6200else 6201 tcl_ok=0 6202fi 6203rm -f conftest* 6204 6205 cat >conftest.$ac_ext <<_ACEOF 6206/* confdefs.h. */ 6207_ACEOF 6208cat confdefs.h >>conftest.$ac_ext 6209cat >>conftest.$ac_ext <<_ACEOF 6210/* end confdefs.h. */ 6211#include <stdlib.h> 6212 6213_ACEOF 6214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6215 $EGREP "strtod" >/dev/null 2>&1; then 6216 : 6217else 6218 tcl_ok=0 6219fi 6220rm -f conftest* 6221 6222 if test $tcl_ok = 0; then 6223 cat >>confdefs.h <<\_ACEOF 6224#define NO_STDLIB_H 1 6225_ACEOF 6226 6227 fi 6228 if test "${ac_cv_header_string_h+set}" = set; then 6229 { $as_echo "$as_me:$LINENO: checking for string.h" >&5 6230$as_echo_n "checking for string.h... " >&6; } 6231if test "${ac_cv_header_string_h+set}" = set; then 6232 $as_echo_n "(cached) " >&6 6233fi 6234{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6235$as_echo "$ac_cv_header_string_h" >&6; } 6236else 6237 # Is the header compilable? 6238{ $as_echo "$as_me:$LINENO: checking string.h usability" >&5 6239$as_echo_n "checking string.h usability... " >&6; } 6240cat >conftest.$ac_ext <<_ACEOF 6241/* confdefs.h. */ 6242_ACEOF 6243cat confdefs.h >>conftest.$ac_ext 6244cat >>conftest.$ac_ext <<_ACEOF 6245/* end confdefs.h. */ 6246$ac_includes_default 6247#include <string.h> 6248_ACEOF 6249rm -f conftest.$ac_objext 6250if { (ac_try="$ac_compile" 6251case "(($ac_try" in 6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6253 *) ac_try_echo=$ac_try;; 6254esac 6255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6256$as_echo "$ac_try_echo") >&5 6257 (eval "$ac_compile") 2>conftest.er1 6258 ac_status=$? 6259 grep -v '^ *+' conftest.er1 >conftest.err 6260 rm -f conftest.er1 6261 cat conftest.err >&5 6262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6263 (exit $ac_status); } && { 6264 test -z "$ac_c_werror_flag" || 6265 test ! -s conftest.err 6266 } && test -s conftest.$ac_objext; then 6267 ac_header_compiler=yes 6268else 6269 $as_echo "$as_me: failed program was:" >&5 6270sed 's/^/| /' conftest.$ac_ext >&5 6271 6272 ac_header_compiler=no 6273fi 6274 6275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6276{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6277$as_echo "$ac_header_compiler" >&6; } 6278 6279# Is the header present? 6280{ $as_echo "$as_me:$LINENO: checking string.h presence" >&5 6281$as_echo_n "checking string.h presence... " >&6; } 6282cat >conftest.$ac_ext <<_ACEOF 6283/* confdefs.h. */ 6284_ACEOF 6285cat confdefs.h >>conftest.$ac_ext 6286cat >>conftest.$ac_ext <<_ACEOF 6287/* end confdefs.h. */ 6288#include <string.h> 6289_ACEOF 6290if { (ac_try="$ac_cpp conftest.$ac_ext" 6291case "(($ac_try" in 6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6293 *) ac_try_echo=$ac_try;; 6294esac 6295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6296$as_echo "$ac_try_echo") >&5 6297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6298 ac_status=$? 6299 grep -v '^ *+' conftest.er1 >conftest.err 6300 rm -f conftest.er1 6301 cat conftest.err >&5 6302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6303 (exit $ac_status); } >/dev/null && { 6304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6305 test ! -s conftest.err 6306 }; then 6307 ac_header_preproc=yes 6308else 6309 $as_echo "$as_me: failed program was:" >&5 6310sed 's/^/| /' conftest.$ac_ext >&5 6311 6312 ac_header_preproc=no 6313fi 6314 6315rm -f conftest.err conftest.$ac_ext 6316{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6317$as_echo "$ac_header_preproc" >&6; } 6318 6319# So? What about this header? 6320case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6321 yes:no: ) 6322 { $as_echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6323$as_echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6324 { $as_echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6325$as_echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6326 ac_header_preproc=yes 6327 ;; 6328 no:yes:* ) 6329 { $as_echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6330$as_echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6331 { $as_echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6332$as_echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6333 { $as_echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6334$as_echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6335 { $as_echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6336$as_echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6337 { $as_echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6338$as_echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6339 { $as_echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6340$as_echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6341 6342 ;; 6343esac 6344{ $as_echo "$as_me:$LINENO: checking for string.h" >&5 6345$as_echo_n "checking for string.h... " >&6; } 6346if test "${ac_cv_header_string_h+set}" = set; then 6347 $as_echo_n "(cached) " >&6 6348else 6349 ac_cv_header_string_h=$ac_header_preproc 6350fi 6351{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6352$as_echo "$ac_cv_header_string_h" >&6; } 6353 6354fi 6355if test "x$ac_cv_header_string_h" = x""yes; then 6356 tcl_ok=1 6357else 6358 tcl_ok=0 6359fi 6360 6361 6362 cat >conftest.$ac_ext <<_ACEOF 6363/* confdefs.h. */ 6364_ACEOF 6365cat confdefs.h >>conftest.$ac_ext 6366cat >>conftest.$ac_ext <<_ACEOF 6367/* end confdefs.h. */ 6368#include <string.h> 6369 6370_ACEOF 6371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6372 $EGREP "strstr" >/dev/null 2>&1; then 6373 : 6374else 6375 tcl_ok=0 6376fi 6377rm -f conftest* 6378 6379 cat >conftest.$ac_ext <<_ACEOF 6380/* confdefs.h. */ 6381_ACEOF 6382cat confdefs.h >>conftest.$ac_ext 6383cat >>conftest.$ac_ext <<_ACEOF 6384/* end confdefs.h. */ 6385#include <string.h> 6386 6387_ACEOF 6388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6389 $EGREP "strerror" >/dev/null 2>&1; then 6390 : 6391else 6392 tcl_ok=0 6393fi 6394rm -f conftest* 6395 6396 6397 # See also memmove check below for a place where NO_STRING_H can be 6398 # set and why. 6399 6400 if test $tcl_ok = 0; then 6401 cat >>confdefs.h <<\_ACEOF 6402#define NO_STRING_H 1 6403_ACEOF 6404 6405 fi 6406 6407 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6408 { $as_echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6409$as_echo_n "checking for sys/wait.h... " >&6; } 6410if test "${ac_cv_header_sys_wait_h+set}" = set; then 6411 $as_echo_n "(cached) " >&6 6412fi 6413{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6414$as_echo "$ac_cv_header_sys_wait_h" >&6; } 6415else 6416 # Is the header compilable? 6417{ $as_echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6418$as_echo_n "checking sys/wait.h usability... " >&6; } 6419cat >conftest.$ac_ext <<_ACEOF 6420/* confdefs.h. */ 6421_ACEOF 6422cat confdefs.h >>conftest.$ac_ext 6423cat >>conftest.$ac_ext <<_ACEOF 6424/* end confdefs.h. */ 6425$ac_includes_default 6426#include <sys/wait.h> 6427_ACEOF 6428rm -f conftest.$ac_objext 6429if { (ac_try="$ac_compile" 6430case "(($ac_try" in 6431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6432 *) ac_try_echo=$ac_try;; 6433esac 6434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6435$as_echo "$ac_try_echo") >&5 6436 (eval "$ac_compile") 2>conftest.er1 6437 ac_status=$? 6438 grep -v '^ *+' conftest.er1 >conftest.err 6439 rm -f conftest.er1 6440 cat conftest.err >&5 6441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6442 (exit $ac_status); } && { 6443 test -z "$ac_c_werror_flag" || 6444 test ! -s conftest.err 6445 } && test -s conftest.$ac_objext; then 6446 ac_header_compiler=yes 6447else 6448 $as_echo "$as_me: failed program was:" >&5 6449sed 's/^/| /' conftest.$ac_ext >&5 6450 6451 ac_header_compiler=no 6452fi 6453 6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6455{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6456$as_echo "$ac_header_compiler" >&6; } 6457 6458# Is the header present? 6459{ $as_echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6460$as_echo_n "checking sys/wait.h presence... " >&6; } 6461cat >conftest.$ac_ext <<_ACEOF 6462/* confdefs.h. */ 6463_ACEOF 6464cat confdefs.h >>conftest.$ac_ext 6465cat >>conftest.$ac_ext <<_ACEOF 6466/* end confdefs.h. */ 6467#include <sys/wait.h> 6468_ACEOF 6469if { (ac_try="$ac_cpp conftest.$ac_ext" 6470case "(($ac_try" in 6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6472 *) ac_try_echo=$ac_try;; 6473esac 6474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6475$as_echo "$ac_try_echo") >&5 6476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6477 ac_status=$? 6478 grep -v '^ *+' conftest.er1 >conftest.err 6479 rm -f conftest.er1 6480 cat conftest.err >&5 6481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6482 (exit $ac_status); } >/dev/null && { 6483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6484 test ! -s conftest.err 6485 }; then 6486 ac_header_preproc=yes 6487else 6488 $as_echo "$as_me: failed program was:" >&5 6489sed 's/^/| /' conftest.$ac_ext >&5 6490 6491 ac_header_preproc=no 6492fi 6493 6494rm -f conftest.err conftest.$ac_ext 6495{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6496$as_echo "$ac_header_preproc" >&6; } 6497 6498# So? What about this header? 6499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6500 yes:no: ) 6501 { $as_echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6502$as_echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6503 { $as_echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6504$as_echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6505 ac_header_preproc=yes 6506 ;; 6507 no:yes:* ) 6508 { $as_echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6509$as_echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6510 { $as_echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6511$as_echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6512 { $as_echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6513$as_echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6514 { $as_echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6515$as_echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6516 { $as_echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6517$as_echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6518 { $as_echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6519$as_echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6520 6521 ;; 6522esac 6523{ $as_echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6524$as_echo_n "checking for sys/wait.h... " >&6; } 6525if test "${ac_cv_header_sys_wait_h+set}" = set; then 6526 $as_echo_n "(cached) " >&6 6527else 6528 ac_cv_header_sys_wait_h=$ac_header_preproc 6529fi 6530{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6531$as_echo "$ac_cv_header_sys_wait_h" >&6; } 6532 6533fi 6534if test "x$ac_cv_header_sys_wait_h" = x""yes; then 6535 : 6536else 6537 cat >>confdefs.h <<\_ACEOF 6538#define NO_SYS_WAIT_H 1 6539_ACEOF 6540 6541fi 6542 6543 6544 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6545 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6546$as_echo_n "checking for dlfcn.h... " >&6; } 6547if test "${ac_cv_header_dlfcn_h+set}" = set; then 6548 $as_echo_n "(cached) " >&6 6549fi 6550{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6551$as_echo "$ac_cv_header_dlfcn_h" >&6; } 6552else 6553 # Is the header compilable? 6554{ $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6555$as_echo_n "checking dlfcn.h usability... " >&6; } 6556cat >conftest.$ac_ext <<_ACEOF 6557/* confdefs.h. */ 6558_ACEOF 6559cat confdefs.h >>conftest.$ac_ext 6560cat >>conftest.$ac_ext <<_ACEOF 6561/* end confdefs.h. */ 6562$ac_includes_default 6563#include <dlfcn.h> 6564_ACEOF 6565rm -f conftest.$ac_objext 6566if { (ac_try="$ac_compile" 6567case "(($ac_try" in 6568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6569 *) ac_try_echo=$ac_try;; 6570esac 6571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6572$as_echo "$ac_try_echo") >&5 6573 (eval "$ac_compile") 2>conftest.er1 6574 ac_status=$? 6575 grep -v '^ *+' conftest.er1 >conftest.err 6576 rm -f conftest.er1 6577 cat conftest.err >&5 6578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6579 (exit $ac_status); } && { 6580 test -z "$ac_c_werror_flag" || 6581 test ! -s conftest.err 6582 } && test -s conftest.$ac_objext; then 6583 ac_header_compiler=yes 6584else 6585 $as_echo "$as_me: failed program was:" >&5 6586sed 's/^/| /' conftest.$ac_ext >&5 6587 6588 ac_header_compiler=no 6589fi 6590 6591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6592{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6593$as_echo "$ac_header_compiler" >&6; } 6594 6595# Is the header present? 6596{ $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6597$as_echo_n "checking dlfcn.h presence... " >&6; } 6598cat >conftest.$ac_ext <<_ACEOF 6599/* confdefs.h. */ 6600_ACEOF 6601cat confdefs.h >>conftest.$ac_ext 6602cat >>conftest.$ac_ext <<_ACEOF 6603/* end confdefs.h. */ 6604#include <dlfcn.h> 6605_ACEOF 6606if { (ac_try="$ac_cpp conftest.$ac_ext" 6607case "(($ac_try" in 6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6609 *) ac_try_echo=$ac_try;; 6610esac 6611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6612$as_echo "$ac_try_echo") >&5 6613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6614 ac_status=$? 6615 grep -v '^ *+' conftest.er1 >conftest.err 6616 rm -f conftest.er1 6617 cat conftest.err >&5 6618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6619 (exit $ac_status); } >/dev/null && { 6620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6621 test ! -s conftest.err 6622 }; then 6623 ac_header_preproc=yes 6624else 6625 $as_echo "$as_me: failed program was:" >&5 6626sed 's/^/| /' conftest.$ac_ext >&5 6627 6628 ac_header_preproc=no 6629fi 6630 6631rm -f conftest.err conftest.$ac_ext 6632{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6633$as_echo "$ac_header_preproc" >&6; } 6634 6635# So? What about this header? 6636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6637 yes:no: ) 6638 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6639$as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6640 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6641$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6642 ac_header_preproc=yes 6643 ;; 6644 no:yes:* ) 6645 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6646$as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6647 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6648$as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6649 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6650$as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6651 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6652$as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6653 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6654$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6655 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6656$as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6657 6658 ;; 6659esac 6660{ $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6661$as_echo_n "checking for dlfcn.h... " >&6; } 6662if test "${ac_cv_header_dlfcn_h+set}" = set; then 6663 $as_echo_n "(cached) " >&6 6664else 6665 ac_cv_header_dlfcn_h=$ac_header_preproc 6666fi 6667{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6668$as_echo "$ac_cv_header_dlfcn_h" >&6; } 6669 6670fi 6671if test "x$ac_cv_header_dlfcn_h" = x""yes; then 6672 : 6673else 6674 cat >>confdefs.h <<\_ACEOF 6675#define NO_DLFCN_H 1 6676_ACEOF 6677 6678fi 6679 6680 6681 6682 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6683 6684for ac_header in sys/param.h 6685do 6686as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6688 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6689$as_echo_n "checking for $ac_header... " >&6; } 6690if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6691 $as_echo_n "(cached) " >&6 6692fi 6693ac_res=`eval 'as_val=${'$as_ac_Header'} 6694 $as_echo "$as_val"'` 6695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6696$as_echo "$ac_res" >&6; } 6697else 6698 # Is the header compilable? 6699{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 6700$as_echo_n "checking $ac_header usability... " >&6; } 6701cat >conftest.$ac_ext <<_ACEOF 6702/* confdefs.h. */ 6703_ACEOF 6704cat confdefs.h >>conftest.$ac_ext 6705cat >>conftest.$ac_ext <<_ACEOF 6706/* end confdefs.h. */ 6707$ac_includes_default 6708#include <$ac_header> 6709_ACEOF 6710rm -f conftest.$ac_objext 6711if { (ac_try="$ac_compile" 6712case "(($ac_try" in 6713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6714 *) ac_try_echo=$ac_try;; 6715esac 6716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6717$as_echo "$ac_try_echo") >&5 6718 (eval "$ac_compile") 2>conftest.er1 6719 ac_status=$? 6720 grep -v '^ *+' conftest.er1 >conftest.err 6721 rm -f conftest.er1 6722 cat conftest.err >&5 6723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6724 (exit $ac_status); } && { 6725 test -z "$ac_c_werror_flag" || 6726 test ! -s conftest.err 6727 } && test -s conftest.$ac_objext; then 6728 ac_header_compiler=yes 6729else 6730 $as_echo "$as_me: failed program was:" >&5 6731sed 's/^/| /' conftest.$ac_ext >&5 6732 6733 ac_header_compiler=no 6734fi 6735 6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6737{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6738$as_echo "$ac_header_compiler" >&6; } 6739 6740# Is the header present? 6741{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 6742$as_echo_n "checking $ac_header presence... " >&6; } 6743cat >conftest.$ac_ext <<_ACEOF 6744/* confdefs.h. */ 6745_ACEOF 6746cat confdefs.h >>conftest.$ac_ext 6747cat >>conftest.$ac_ext <<_ACEOF 6748/* end confdefs.h. */ 6749#include <$ac_header> 6750_ACEOF 6751if { (ac_try="$ac_cpp conftest.$ac_ext" 6752case "(($ac_try" in 6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6754 *) ac_try_echo=$ac_try;; 6755esac 6756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6757$as_echo "$ac_try_echo") >&5 6758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6759 ac_status=$? 6760 grep -v '^ *+' conftest.er1 >conftest.err 6761 rm -f conftest.er1 6762 cat conftest.err >&5 6763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6764 (exit $ac_status); } >/dev/null && { 6765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6766 test ! -s conftest.err 6767 }; then 6768 ac_header_preproc=yes 6769else 6770 $as_echo "$as_me: failed program was:" >&5 6771sed 's/^/| /' conftest.$ac_ext >&5 6772 6773 ac_header_preproc=no 6774fi 6775 6776rm -f conftest.err conftest.$ac_ext 6777{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6778$as_echo "$ac_header_preproc" >&6; } 6779 6780# So? What about this header? 6781case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6782 yes:no: ) 6783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6784$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6786$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6787 ac_header_preproc=yes 6788 ;; 6789 no:yes:* ) 6790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6791$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6793$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6795$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6797$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6799$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6801$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6802 6803 ;; 6804esac 6805{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6806$as_echo_n "checking for $ac_header... " >&6; } 6807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6808 $as_echo_n "(cached) " >&6 6809else 6810 eval "$as_ac_Header=\$ac_header_preproc" 6811fi 6812ac_res=`eval 'as_val=${'$as_ac_Header'} 6813 $as_echo "$as_val"'` 6814 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6815$as_echo "$ac_res" >&6; } 6816 6817fi 6818as_val=`eval 'as_val=${'$as_ac_Header'} 6819 $as_echo "$as_val"'` 6820 if test "x$as_val" = x""yes; then 6821 cat >>confdefs.h <<_ACEOF 6822#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6823_ACEOF 6824 6825fi 6826 6827done 6828 6829 6830 6831 # Let the user call this, because if it triggers, they will 6832 # need a compat/strtod.c that is correct. Users can also 6833 # use Tcl_GetDouble(FromObj) instead. 6834 #TEA_BUGGY_STRTOD 6835 fi 6836 6837 6838#----------------------------------------------------------------------- 6839# __CHANGE__ 6840# Specify the C source files to compile in TEA_ADD_SOURCES, 6841# public headers that need to be installed in TEA_ADD_HEADERS, 6842# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6843# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6844# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6845# and PKG_TCL_SOURCES. 6846#----------------------------------------------------------------------- 6847 6848 6849 vars="../tcl/tclgeomapTime.c 6850 ../tcl/tclAppInit.c 6851 ../tcl/tclgeomap.c 6852 ../tcl/tclgeomapLnArr.c 6853 ../tcl/tclgeomapPlace.c 6854 ../tcl/tclgeomapProj.c 6855 ../generic/geoLines.c 6856 ../generic/geoLnArrToMap.c 6857 ../generic/geoProj.c 6858 ../generic/geography.c 6859 ../generic/mapLines.c 6860 ../generic/geoTime.c" 6861 for i in $vars; do 6862 case $i in 6863 \$*) 6864 # allow $-var names 6865 PKG_SOURCES="$PKG_SOURCES $i" 6866 PKG_OBJECTS="$PKG_OBJECTS $i" 6867 ;; 6868 *) 6869 # check for existence - allows for generic/win/unix VPATH 6870 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6871 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6872 ; then 6873 { { $as_echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6874$as_echo "$as_me: error: could not find source file '$i'" >&2;} 6875 { (exit 1); exit 1; }; } 6876 fi 6877 PKG_SOURCES="$PKG_SOURCES $i" 6878 # this assumes it is in a VPATH dir 6879 i=`basename $i` 6880 # handle user calling this before or after TEA_SETUP_COMPILER 6881 if test x"${OBJEXT}" != x ; then 6882 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6883 else 6884 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6885 fi 6886 PKG_OBJECTS="$PKG_OBJECTS $j" 6887 ;; 6888 esac 6889 done 6890 6891 6892 6893 6894 vars="../tcl/tclgeomap.h 6895 ../tcl/tclgeomapInt.h 6896 ../generic/geoLines.h 6897 ../generic/geoLnArrToMap.h 6898 ../generic/geoProj.h 6899 ../generic/geography.h 6900 ../generic/mapLines.h" 6901 for i in $vars; do 6902 # check for existence, be strict because it is installed 6903 if test ! -f "${srcdir}/$i" ; then 6904 { { $as_echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6905$as_echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6906 { (exit 1); exit 1; }; } 6907 fi 6908 PKG_HEADERS="$PKG_HEADERS $i" 6909 done 6910 6911 6912 6913 vars="-I\"`${CYGPATH} ${srcdir}/generic`\"" 6914 for i in $vars; do 6915 PKG_INCLUDES="$PKG_INCLUDES $i" 6916 done 6917 6918 6919 6920 vars="" 6921 for i in $vars; do 6922 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6923 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6924 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6925 fi 6926 PKG_LIBS="$PKG_LIBS $i" 6927 done 6928 6929 6930 6931 PKG_CFLAGS="$PKG_CFLAGS " 6932 6933 6934 6935 vars="../library/tclgeomap_procs.tcl" 6936 for i in $vars; do 6937 # check for existence, be strict because it is installed 6938 if test ! -f "${srcdir}/$i" ; then 6939 { { $as_echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6940$as_echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6941 { (exit 1); exit 1; }; } 6942 fi 6943 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6944 done 6945 6946 6947 6948#-------------------------------------------------------------------- 6949# __CHANGE__ 6950# A few miscellaneous platform-specific items: 6951# 6952# Define a special symbol for Windows (BUILD_tclgeomap in this case) so 6953# that we create the export library with the dll. See sha1.h on how 6954# to use this. 6955# 6956# Windows creates a few extra files that need to be cleaned up. 6957# You can add more files to clean if your extension creates any extra 6958# files. 6959# 6960# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 6961# These will be appended to the current set of compiler flags for 6962# your system. 6963#-------------------------------------------------------------------- 6964 6965PACKAGE_CFLAGS= 6966 6967 6968if test "${TEA_PLATFORM}" = "windows" ; then 6969 cat >>confdefs.h <<\_ACEOF 6970#define BUILD_tclgeomap 1 6971_ACEOF 6972 6973 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch" 6974 6975 vars="dllEntryPoint.c" 6976 for i in $vars; do 6977 case $i in 6978 \$*) 6979 # allow $-var names 6980 PKG_SOURCES="$PKG_SOURCES $i" 6981 PKG_OBJECTS="$PKG_OBJECTS $i" 6982 ;; 6983 *) 6984 # check for existence - allows for generic/win/unix VPATH 6985 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6986 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6987 ; then 6988 { { $as_echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6989$as_echo "$as_me: error: could not find source file '$i'" >&2;} 6990 { (exit 1); exit 1; }; } 6991 fi 6992 PKG_SOURCES="$PKG_SOURCES $i" 6993 # this assumes it is in a VPATH dir 6994 i=`basename $i` 6995 # handle user calling this before or after TEA_SETUP_COMPILER 6996 if test x"${OBJEXT}" != x ; then 6997 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6998 else 6999 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7000 fi 7001 PKG_OBJECTS="$PKG_OBJECTS $j" 7002 ;; 7003 esac 7004 done 7005 7006 7007 7008else 7009 CLEANFILES= 7010fi 7011 7012 7013 7014#-------------------------------------------------------------------- 7015# __CHANGE__ 7016# Choose which headers you need. Extension authors should try very 7017# hard to only rely on the Tcl public header files. Internal headers 7018# contain private data structures and are subject to change without 7019# notice. 7020# This must be done AFTER calling TEA_PATH_TCLCONFIG/TEA_LOAD_TCLCONFIG 7021# so that we can extract TCL_SRC_DIR from the config file (in the case 7022# of private headers 7023#-------------------------------------------------------------------- 7024 7025 7026 { $as_echo "$as_me:$LINENO: checking for Tcl public headers" >&5 7027$as_echo_n "checking for Tcl public headers... " >&6; } 7028 7029 7030# Check whether --with-tclinclude was given. 7031if test "${with_tclinclude+set}" = set; then 7032 withval=$with_tclinclude; with_tclinclude=${withval} 7033fi 7034 7035 7036 if test "${ac_cv_c_tclh+set}" = set; then 7037 $as_echo_n "(cached) " >&6 7038else 7039 7040 # Use the value from --with-tclinclude, if it was given 7041 7042 if test x"${with_tclinclude}" != x ; then 7043 if test -f "${with_tclinclude}/tcl.h" ; then 7044 ac_cv_c_tclh=${with_tclinclude} 7045 else 7046 { { $as_echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 7047$as_echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 7048 { (exit 1); exit 1; }; } 7049 fi 7050 else 7051 # Check order: pkg --prefix location, Tcl's --prefix location, 7052 # directory of tclConfig.sh, and Tcl source directory. 7053 # Looking in the source dir is not ideal, but OK. 7054 7055 eval "temp_includedir=${includedir}" 7056 list="`ls -d ${temp_includedir} 2>/dev/null` \ 7057 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7058 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null` \ 7059 `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 7060 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7061 list="$list /usr/local/include /usr/include" 7062 fi 7063 for i in $list ; do 7064 if test -f "$i/tcl.h" ; then 7065 ac_cv_c_tclh=$i 7066 break 7067 fi 7068 done 7069 fi 7070 7071fi 7072 7073 7074 # Print a message based on how we determined the include path 7075 7076 if test x"${ac_cv_c_tclh}" = x ; then 7077 { { $as_echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 7078$as_echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 7079 { (exit 1); exit 1; }; } 7080 else 7081 { $as_echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 7082$as_echo "${ac_cv_c_tclh}" >&6; } 7083 fi 7084 7085 # Convert to a native path and substitute into the output files. 7086 7087 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 7088 7089 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7090 7091 7092 7093#TEA_PRIVATE_TCL_HEADERS 7094 7095#-------------------------------------------------------------------- 7096# We need to enable the threading macros found in tcl.h and tclInt.h. 7097# The use of the threading features is determined by the core the 7098# extension is loaded into, but we need to compile with these macros 7099# turned on. 7100#-------------------------------------------------------------------- 7101 7102cat >>confdefs.h <<\_ACEOF 7103#define TCL_THREADS 1 7104_ACEOF 7105 7106 7107#-------------------------------------------------------------------- 7108# Check whether --enable-threads or --disable-threads was given. 7109# This auto-enables if Tcl was compiled threaded. 7110#-------------------------------------------------------------------- 7111 7112#TEA_ENABLE_THREADS 7113 7114#-------------------------------------------------------------------- 7115# The statement below defines a collection of symbols related to 7116# building as a shared library instead of a static library. 7117#-------------------------------------------------------------------- 7118 7119 7120 { $as_echo "$as_me:$LINENO: checking how to build libraries" >&5 7121$as_echo_n "checking how to build libraries... " >&6; } 7122 # Check whether --enable-shared was given. 7123if test "${enable_shared+set}" = set; then 7124 enableval=$enable_shared; tcl_ok=$enableval 7125else 7126 tcl_ok=yes 7127fi 7128 7129 7130 if test "${enable_shared+set}" = set; then 7131 enableval="$enable_shared" 7132 tcl_ok=$enableval 7133 else 7134 tcl_ok=yes 7135 fi 7136 7137 if test "$tcl_ok" = "yes" ; then 7138 { $as_echo "$as_me:$LINENO: result: shared" >&5 7139$as_echo "shared" >&6; } 7140 SHARED_BUILD=1 7141 else 7142 { $as_echo "$as_me:$LINENO: result: static" >&5 7143$as_echo "static" >&6; } 7144 SHARED_BUILD=0 7145 cat >>confdefs.h <<\_ACEOF 7146#define STATIC_BUILD 1 7147_ACEOF 7148 7149 fi 7150 7151 7152 7153if test "`uname -s`" = "Darwin" ; then 7154 TCL_SHLIB_LD_EXTRAS="-compatibility_version -current_version " 7155 TCL_SHLIB_LD_EXTRAS="${TCL_SHLIB_LD_EXTRAS}"' -install_name ${DYLIB_INSTALL_DIR}/${tclgeomap_LIB_FILE} -seg1addr 0xa000000' 7156fi 7157 7158#-------------------------------------------------------------------- 7159# This macro figures out what flags to use with the compiler/linker 7160# when building shared/static debug/optimized objects. This information 7161# can be taken from the tclConfig.sh file, but this figures it all out. 7162#-------------------------------------------------------------------- 7163 7164 7165 # Allow the user to provide this setting in the env 7166 if test "x${TCLSH_PROG}" = "x" ; then 7167 { $as_echo "$as_me:$LINENO: checking for tclsh" >&5 7168$as_echo_n "checking for tclsh... " >&6; } 7169 7170 if test "${ac_cv_path_tclsh+set}" = set; then 7171 $as_echo_n "(cached) " >&6 7172else 7173 7174 search_path=`echo ${PATH} | sed -e 's/:/ /g'` 7175 if test "${TEA_PLATFORM}" != "windows" -o \ 7176 \( "$do64bit_ok" = "no" -a "$doWince" = "no" \) ; then 7177 # Do not allow target tclsh in known cross-compile builds, 7178 # as we need one we can run on this system 7179 search_path="${TCL_BIN_DIR} ${TCL_BIN_DIR}/../bin ${exec_prefix}/bin ${prefix}/bin ${search_path}" 7180 fi 7181 for dir in $search_path ; do 7182 for j in `ls -r $dir/tclsh[8-9]*${EXEEXT} 2> /dev/null` \ 7183 `ls -r $dir/tclsh*${EXEEXT} 2> /dev/null` ; do 7184 if test x"$ac_cv_path_tclsh" = x ; then 7185 if test -f "$j" ; then 7186 ac_cv_path_tclsh=$j 7187 break 7188 fi 7189 fi 7190 done 7191 done 7192 7193fi 7194 7195 7196 if test -f "$ac_cv_path_tclsh" ; then 7197 TCLSH_PROG=$ac_cv_path_tclsh 7198 { $as_echo "$as_me:$LINENO: result: $TCLSH_PROG" >&5 7199$as_echo "$TCLSH_PROG" >&6; } 7200 else 7201 { { $as_echo "$as_me:$LINENO: error: No tclsh found in PATH: $search_path" >&5 7202$as_echo "$as_me: error: No tclsh found in PATH: $search_path" >&2;} 7203 { (exit 1); exit 1; }; } 7204 fi 7205 fi 7206 7207 7208 7209 7210 7211 # Step 0: Enable 64 bit support? 7212 7213 { $as_echo "$as_me:$LINENO: checking if 64bit support is enabled" >&5 7214$as_echo_n "checking if 64bit support is enabled... " >&6; } 7215 # Check whether --enable-64bit was given. 7216if test "${enable_64bit+set}" = set; then 7217 enableval=$enable_64bit; do64bit=$enableval 7218else 7219 do64bit=no 7220fi 7221 7222 { $as_echo "$as_me:$LINENO: result: $do64bit" >&5 7223$as_echo "$do64bit" >&6; } 7224 7225 # Step 0.b: Enable Solaris 64 bit VIS support? 7226 7227 { $as_echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7228$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } 7229 # Check whether --enable-64bit-vis was given. 7230if test "${enable_64bit_vis+set}" = set; then 7231 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7232else 7233 do64bitVIS=no 7234fi 7235 7236 { $as_echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7237$as_echo "$do64bitVIS" >&6; } 7238 7239 if test "$do64bitVIS" = "yes"; then 7240 # Force 64bit on with VIS 7241 do64bit=yes 7242 fi 7243 7244 # Step 0.c: Cross-compiling options for Windows/CE builds? 7245 7246 if test "${TEA_PLATFORM}" = "windows" ; then 7247 { $as_echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7248$as_echo_n "checking if Windows/CE build is requested... " >&6; } 7249 # Check whether --enable-wince was given. 7250if test "${enable_wince+set}" = set; then 7251 enableval=$enable_wince; doWince=$enableval 7252else 7253 doWince=no 7254fi 7255 7256 { $as_echo "$as_me:$LINENO: result: $doWince" >&5 7257$as_echo "$doWince" >&6; } 7258 fi 7259 7260 # Step 1: set the variable "system" to hold the name and version number 7261 # for the system. This can usually be done via the "uname" command, but 7262 # there are a few systems, like Next, where this doesn't work. 7263 7264 { $as_echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5 7265$as_echo_n "checking system version (for dynamic loading)... " >&6; } 7266 system=`uname -s`-`uname -r` 7267 if test "$?" -ne 0 ; then 7268 { $as_echo "$as_me:$LINENO: result: unknown (can't find uname command)" >&5 7269$as_echo "unknown (can't find uname command)" >&6; } 7270 system=unknown 7271 fi 7272 7273 # Step 2: check for existence of -ldl library. This is needed because 7274 # Linux can use either -ldl or -ldld for dynamic loading. 7275 7276 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7277$as_echo_n "checking for dlopen in -ldl... " >&6; } 7278if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7279 $as_echo_n "(cached) " >&6 7280else 7281 ac_check_lib_save_LIBS=$LIBS 7282LIBS="-ldl $LIBS" 7283cat >conftest.$ac_ext <<_ACEOF 7284/* confdefs.h. */ 7285_ACEOF 7286cat confdefs.h >>conftest.$ac_ext 7287cat >>conftest.$ac_ext <<_ACEOF 7288/* end confdefs.h. */ 7289 7290/* Override any GCC internal prototype to avoid an error. 7291 Use char because int might match the return type of a GCC 7292 builtin and then its argument prototype would still apply. */ 7293#ifdef __cplusplus 7294extern "C" 7295#endif 7296char dlopen (); 7297int 7298main () 7299{ 7300return dlopen (); 7301 ; 7302 return 0; 7303} 7304_ACEOF 7305rm -f conftest.$ac_objext conftest$ac_exeext 7306if { (ac_try="$ac_link" 7307case "(($ac_try" in 7308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7309 *) ac_try_echo=$ac_try;; 7310esac 7311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7312$as_echo "$ac_try_echo") >&5 7313 (eval "$ac_link") 2>conftest.er1 7314 ac_status=$? 7315 grep -v '^ *+' conftest.er1 >conftest.err 7316 rm -f conftest.er1 7317 cat conftest.err >&5 7318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7319 (exit $ac_status); } && { 7320 test -z "$ac_c_werror_flag" || 7321 test ! -s conftest.err 7322 } && test -s conftest$ac_exeext && { 7323 test "$cross_compiling" = yes || 7324 $as_test_x conftest$ac_exeext 7325 }; then 7326 ac_cv_lib_dl_dlopen=yes 7327else 7328 $as_echo "$as_me: failed program was:" >&5 7329sed 's/^/| /' conftest.$ac_ext >&5 7330 7331 ac_cv_lib_dl_dlopen=no 7332fi 7333 7334rm -rf conftest.dSYM 7335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7336 conftest$ac_exeext conftest.$ac_ext 7337LIBS=$ac_check_lib_save_LIBS 7338fi 7339{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 7340$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 7341if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 7342 have_dl=yes 7343else 7344 have_dl=no 7345fi 7346 7347 7348 # Step 3: set configuration options based on system name and version. 7349 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7350 # "windows" case and CC_SEARCH_FLAGS becomes LD_SEARCH_FLAGS for us 7351 # (and we have no CC_SEARCH_FLAGS). 7352 7353 do64bit_ok=no 7354 LDFLAGS_ORIG="$LDFLAGS" 7355 TCL_EXPORT_FILE_SUFFIX="" 7356 UNSHARED_LIB_SUFFIX="" 7357 TCL_TRIM_DOTS='`echo | tr -d .`' 7358 ECHO_VERSION='`echo `' 7359 TCL_LIB_VERSIONS_OK=ok 7360 CFLAGS_DEBUG=-g 7361 if test "$GCC" = "yes" ; then 7362 CFLAGS_OPTIMIZE=-O2 7363 CFLAGS_WARNING="-Wall -Wno-implicit-int" 7364 else 7365 CFLAGS_OPTIMIZE=-O 7366 CFLAGS_WARNING="" 7367 fi 7368 TCL_NEEDS_EXP_FILE=0 7369 TCL_BUILD_EXP_FILE="" 7370 TCL_EXP_FILE="" 7371 # Extract the first word of "ar", so it can be a program name with args. 7372set dummy ar; ac_word=$2 7373{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7374$as_echo_n "checking for $ac_word... " >&6; } 7375if test "${ac_cv_prog_AR+set}" = set; then 7376 $as_echo_n "(cached) " >&6 7377else 7378 if test -n "$AR"; then 7379 ac_cv_prog_AR="$AR" # Let the user override the test. 7380else 7381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7382for as_dir in $PATH 7383do 7384 IFS=$as_save_IFS 7385 test -z "$as_dir" && as_dir=. 7386 for ac_exec_ext in '' $ac_executable_extensions; do 7387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7388 ac_cv_prog_AR="ar" 7389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7390 break 2 7391 fi 7392done 7393done 7394IFS=$as_save_IFS 7395 7396fi 7397fi 7398AR=$ac_cv_prog_AR 7399if test -n "$AR"; then 7400 { $as_echo "$as_me:$LINENO: result: $AR" >&5 7401$as_echo "$AR" >&6; } 7402else 7403 { $as_echo "$as_me:$LINENO: result: no" >&5 7404$as_echo "no" >&6; } 7405fi 7406 7407 7408 STLIB_LD='${AR} cr' 7409 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7410 case $system in 7411 windows) 7412 # This is a 2-stage check to make sure we have the 64-bit SDK 7413 # We have to know where the SDK is installed. 7414 if test "$do64bit" = "yes" ; then 7415 if test "x${MSSDK}x" = "xx" ; then 7416 MSSDK="C:/Progra~1/Microsoft SDK" 7417 fi 7418 # Ensure that this path has no spaces to work in autoconf 7419 7420 if test "${TEA_PLATFORM}" = "windows" ; then 7421 # we need TCLSH_PROG defined to get Windows short pathnames 7422 7423 7424 { $as_echo "$as_me:$LINENO: checking short pathname for MSSDK (${MSSDK})" >&5 7425$as_echo_n "checking short pathname for MSSDK (${MSSDK})... " >&6; } 7426 7427 shortpath= 7428 case "${MSSDK}" in 7429 *\ *) 7430 # Only do this if we need to. 7431 shortpath=`echo "puts [file attributes {${MSSDK}} -shortname] ; exit" | ${TCLSH_PROG} 2>/dev/null` 7432 ;; 7433 esac 7434 if test "x${shortpath}" = "x" ; then 7435 { $as_echo "$as_me:$LINENO: result: not changed" >&5 7436$as_echo "not changed" >&6; } 7437 else 7438 MSSDK=$shortpath 7439 { $as_echo "$as_me:$LINENO: result: ${MSSDK}" >&5 7440$as_echo "${MSSDK}" >&6; } 7441 fi 7442 fi 7443 7444 if test ! -d "${MSSDK}/bin/win64" ; then 7445 { $as_echo "$as_me:$LINENO: WARNING: could not find 64-bit SDK to enable 64bit mode" >&5 7446$as_echo "$as_me: WARNING: could not find 64-bit SDK to enable 64bit mode" >&2;} 7447 do64bit="no" 7448 else 7449 do64bit_ok="yes" 7450 fi 7451 fi 7452 7453 if test "$doWince" != "no" ; then 7454 if test "$do64bit" = "yes" ; then 7455 { { $as_echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7456$as_echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7457 { (exit 1); exit 1; }; } 7458 fi 7459 if test "$GCC" = "yes" ; then 7460 { { $as_echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7461$as_echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7462 { (exit 1); exit 1; }; } 7463 fi 7464 7465 # First, look for one uninstalled. 7466 # the alternative search directory is invoked by --with-celib 7467 7468 if test x"${no_celib}" = x ; then 7469 # we reset no_celib in case something fails here 7470 no_celib=true 7471 7472# Check whether --with-celib was given. 7473if test "${with_celib+set}" = set; then 7474 withval=$with_celib; with_celibconfig=${withval} 7475fi 7476 7477 { $as_echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7478$as_echo_n "checking for Windows/CE celib directory... " >&6; } 7479 if test "${ac_cv_c_celibconfig+set}" = set; then 7480 $as_echo_n "(cached) " >&6 7481else 7482 7483 # First check to see if --with-celibconfig was specified. 7484 if test x"${with_celibconfig}" != x ; then 7485 if test -d "${with_celibconfig}/inc" ; then 7486 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7487 else 7488 { { $as_echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7489$as_echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7490 { (exit 1); exit 1; }; } 7491 fi 7492 fi 7493 7494 # then check for a celib library 7495 if test x"${ac_cv_c_celibconfig}" = x ; then 7496 for i in \ 7497 ../celib-palm-3.0 \ 7498 ../celib \ 7499 ../../celib-palm-3.0 \ 7500 ../../celib \ 7501 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7502 ${srcdir}/../celib-palm-3.0 \ 7503 ${srcdir}/../celib \ 7504 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7505 ; do 7506 if test -d "$i/inc" ; then 7507 ac_cv_c_celibconfig=`(cd $i; pwd)` 7508 break 7509 fi 7510 done 7511 fi 7512 7513fi 7514 7515 if test x"${ac_cv_c_celibconfig}" = x ; then 7516 { { $as_echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7517$as_echo "$as_me: error: Cannot find celib support library directory" >&2;} 7518 { (exit 1); exit 1; }; } 7519 else 7520 no_celib= 7521 CELIB_DIR=${ac_cv_c_celibconfig} 7522 { $as_echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7523$as_echo "found $CELIB_DIR" >&6; } 7524 7525 if test "${TEA_PLATFORM}" = "windows" ; then 7526 # we need TCLSH_PROG defined to get Windows short pathnames 7527 7528 7529 { $as_echo "$as_me:$LINENO: checking short pathname for CELIB_DIR (${ac_cv_c_celibconfig})" >&5 7530$as_echo_n "checking short pathname for CELIB_DIR (${ac_cv_c_celibconfig})... " >&6; } 7531 7532 shortpath= 7533 case "${ac_cv_c_celibconfig}" in 7534 *\ *) 7535 # Only do this if we need to. 7536 shortpath=`echo "puts [file attributes {${ac_cv_c_celibconfig}} -shortname] ; exit" | ${TCLSH_PROG} 2>/dev/null` 7537 ;; 7538 esac 7539 if test "x${shortpath}" = "x" ; then 7540 { $as_echo "$as_me:$LINENO: result: not changed" >&5 7541$as_echo "not changed" >&6; } 7542 else 7543 CELIB_DIR=$shortpath 7544 { $as_echo "$as_me:$LINENO: result: ${CELIB_DIR}" >&5 7545$as_echo "${CELIB_DIR}" >&6; } 7546 fi 7547 fi 7548 7549 fi 7550 fi 7551 7552 # Set defaults for common evc4/PPC2003 setup 7553 # Currently Tcl requires 300+, possibly 420+ for sockets 7554 CEVERSION=420; # could be 211 300 301 400 420 ... 7555 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7556 ARCH=ARM; # could be ARM MIPS X86EM ... 7557 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7558 if test "$doWince" != "yes"; then 7559 # If !yes then the user specified something 7560 # Reset ARCH to allow user to skip specifying it 7561 ARCH= 7562 eval `echo $doWince | awk -F, '{ \ 7563 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7564 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7565 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7566 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7567 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7568 }'` 7569 if test "x${ARCH}" = "x" ; then 7570 ARCH=$TARGETCPU; 7571 fi 7572 fi 7573 OSVERSION=WCE$CEVERSION; 7574 if test "x${WCEROOT}" = "x" ; then 7575 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7576 if test ! -d "${WCEROOT}" ; then 7577 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7578 fi 7579 fi 7580 if test "x${SDKROOT}" = "x" ; then 7581 SDKROOT="C:/Program Files/Windows CE Tools" 7582 if test ! -d "${SDKROOT}" ; then 7583 SDKROOT="C:/Windows CE Tools" 7584 fi 7585 fi 7586 # Ensure that this path has no spaces to work in autoconf 7587 7588 if test "${TEA_PLATFORM}" = "windows" ; then 7589 # we need TCLSH_PROG defined to get Windows short pathnames 7590 7591 7592 { $as_echo "$as_me:$LINENO: checking short pathname for WCEROOT (${WCEROOT})" >&5 7593$as_echo_n "checking short pathname for WCEROOT (${WCEROOT})... " >&6; } 7594 7595 shortpath= 7596 case "${WCEROOT}" in 7597 *\ *) 7598 # Only do this if we need to. 7599 shortpath=`echo "puts [file attributes {${WCEROOT}} -shortname] ; exit" | ${TCLSH_PROG} 2>/dev/null` 7600 ;; 7601 esac 7602 if test "x${shortpath}" = "x" ; then 7603 { $as_echo "$as_me:$LINENO: result: not changed" >&5 7604$as_echo "not changed" >&6; } 7605 else 7606 WCEROOT=$shortpath 7607 { $as_echo "$as_me:$LINENO: result: ${WCEROOT}" >&5 7608$as_echo "${WCEROOT}" >&6; } 7609 fi 7610 fi 7611 7612 7613 if test "${TEA_PLATFORM}" = "windows" ; then 7614 # we need TCLSH_PROG defined to get Windows short pathnames 7615 7616 7617 { $as_echo "$as_me:$LINENO: checking short pathname for SDKROOT (${SDKROOT})" >&5 7618$as_echo_n "checking short pathname for SDKROOT (${SDKROOT})... " >&6; } 7619 7620 shortpath= 7621 case "${SDKROOT}" in 7622 *\ *) 7623 # Only do this if we need to. 7624 shortpath=`echo "puts [file attributes {${SDKROOT}} -shortname] ; exit" | ${TCLSH_PROG} 2>/dev/null` 7625 ;; 7626 esac 7627 if test "x${shortpath}" = "x" ; then 7628 { $as_echo "$as_me:$LINENO: result: not changed" >&5 7629$as_echo "not changed" >&6; } 7630 else 7631 SDKROOT=$shortpath 7632 { $as_echo "$as_me:$LINENO: result: ${SDKROOT}" >&5 7633$as_echo "${SDKROOT}" >&6; } 7634 fi 7635 fi 7636 7637 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7638 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7639 { { $as_echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7640$as_echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7641 { (exit 1); exit 1; }; } 7642 doWince="no" 7643 else 7644 # We could PATH_NOSPACE these, but that's not important, 7645 # as long as we quote them when used. 7646 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7647 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7648 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7649 fi 7650 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7651 fi 7652 fi 7653 7654 if test "$GCC" != "yes" ; then 7655 if test "${SHARED_BUILD}" = "0" ; then 7656 runtime=-MT 7657 else 7658 runtime=-MD 7659 fi 7660 7661 if test "$do64bit" = "yes" ; then 7662 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7663 CC="${MSSDK}/Bin/Win64/cl.exe" 7664 CFLAGS="${CFLAGS} -I${MSSDK}/Include/prerelease \ 7665 -I${MSSDK}/Include/Win64/crt \ 7666 -I${MSSDK}/Include" 7667 RC="${MSSDK}/bin/rc.exe" 7668 lflags="-MACHINE:IA64 -LIBPATH:${MSSDK}/Lib/IA64 \ 7669 -LIBPATH:${MSSDK}/Lib/Prerelease/IA64 -nologo" 7670 LINKBIN="${MSSDK}/bin/win64/link.exe" 7671 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7672 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7673 elif test "$doWince" != "no" ; then 7674 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7675 if test "${TARGETCPU}" = "X86"; then 7676 CC="${CEBINROOT}/cl.exe" 7677 else 7678 CC="${CEBINROOT}/cl${ARCH}.exe" 7679 fi 7680 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7681 RC="${WCEROOT}/Common/EVC/bin/rc.exe" 7682 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7683 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7684 if test "${SHARED_BUILD}" = "1" ; then 7685 # Static CE builds require static celib as well 7686 defs="${defs} _DLL" 7687 fi 7688 for i in $defs ; do 7689 cat >>confdefs.h <<_ACEOF 7690#define $i 1 7691_ACEOF 7692 7693 done 7694 cat >>confdefs.h <<_ACEOF 7695#define _WIN32_WCE $CEVERSION 7696_ACEOF 7697 7698 cat >>confdefs.h <<_ACEOF 7699#define UNDER_CE $CEVERSION 7700_ACEOF 7701 7702 CFLAGS_DEBUG="-nologo -Zi -Od" 7703 CFLAGS_OPTIMIZE="-nologo -Ox" 7704 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 7705 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 7706 LINKBIN="${CEBINROOT}/link.exe" 7707 7708 else 7709 RC="rc" 7710 lflags="-nologo" 7711 LINKBIN="link" 7712 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 7713 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7714 fi 7715 fi 7716 7717 if test "$GCC" = "yes"; then 7718 # mingw gcc mode 7719 RC="windres" 7720 CFLAGS_DEBUG="-g" 7721 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7722 SHLIB_LD="$CC -shared" 7723 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7724 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 7725 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 7726 else 7727 SHLIB_LD="${LINKBIN} -dll ${lflags}" 7728 # link -lib only works when -lib is the first arg 7729 STLIB_LD="${LINKBIN} -lib ${lflags}" 7730 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 7731 PATHTYPE=-w 7732 # For information on what debugtype is most useful, see: 7733 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 7734 # This essentially turns it all on. 7735 LDFLAGS_DEBUG="-debug:full -debugtype:both -warn:2" 7736 LDFLAGS_OPTIMIZE="-release" 7737 if test "$doWince" != "no" ; then 7738 LDFLAGS_CONSOLE="-link ${lflags}" 7739 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 7740 else 7741 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 7742 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 7743 fi 7744 fi 7745 7746 SHLIB_LD_LIBS='${LIBS}' 7747 SHLIB_SUFFIX=".dll" 7748 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 7749 7750 TCL_LIB_VERSIONS_OK=nodots 7751 # Bogus to avoid getting this turned off 7752 DL_OBJS="tclLoadNone.obj" 7753 ;; 7754 AIX-*) 7755 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then 7756 # AIX requires the _r compiler when gcc isn't being used 7757 if test "${CC}" != "cc_r" ; then 7758 CC=${CC}_r 7759 fi 7760 { $as_echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 7761$as_echo "Using $CC for compiling with threads" >&6; } 7762 fi 7763 LIBS="$LIBS -lc" 7764 SHLIB_CFLAGS="" 7765 SHLIB_SUFFIX=".so" 7766 SHLIB_LD_LIBS='${LIBS}' 7767 7768 DL_OBJS="tclLoadDl.o" 7769 LD_LIBRARY_PATH_VAR="LIBPATH" 7770 7771 # AIX v<=4.1 has some different flags than 4.2+ 7772 if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then 7773 #LIBOBJS="$LIBOBJS tclLoadAix.o" 7774 case " $LIBOBJS " in 7775 *" tclLoadAix.$ac_objext "* ) ;; 7776 *) LIBOBJS="$LIBOBJS tclLoadAix.$ac_objext" 7777 ;; 7778esac 7779 7780 DL_LIBS="-lld" 7781 fi 7782 7783 # Check to enable 64-bit flags for compiler/linker on AIX 4+ 7784 if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then 7785 if test "$GCC" = "yes" ; then 7786 { $as_echo "$as_me:$LINENO: WARNING: \"64bit mode not supported with GCC on $system\"" >&5 7787$as_echo "$as_me: WARNING: \"64bit mode not supported with GCC on $system\"" >&2;} 7788 else 7789 do64bit_ok=yes 7790 CFLAGS="$CFLAGS -q64" 7791 LDFLAGS="$LDFLAGS -q64" 7792 RANLIB="${RANLIB} -X64" 7793 AR="${AR} -X64" 7794 SHLIB_LD_FLAGS="-b64" 7795 fi 7796 fi 7797 7798 if test "`uname -m`" = "ia64" ; then 7799 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 7800 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 7801 # AIX-5 has dl* in libc.so 7802 DL_LIBS="" 7803 if test "$GCC" = "yes" ; then 7804 LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7805 else 7806 LD_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 7807 fi 7808 else 7809 if test "$GCC" = "yes" ; then 7810 SHLIB_LD="gcc -shared" 7811 else 7812 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" 7813 fi 7814 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" 7815 DL_LIBS="-ldl" 7816 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 7817 TCL_NEEDS_EXP_FILE=1 7818 TCL_EXPORT_FILE_SUFFIX='.exp' 7819 fi 7820 7821 # On AIX <=v4 systems, libbsd.a has to be linked in to support 7822 # non-blocking file IO. This library has to be linked in after 7823 # the MATH_LIBS or it breaks the pow() function. The way to 7824 # insure proper sequencing, is to add it to the tail of MATH_LIBS. 7825 # This library also supplies gettimeofday. 7826 # 7827 # AIX does not have a timezone field in struct tm. When the AIX 7828 # bsd library is used, the timezone global and the gettimeofday 7829 # methods are to be avoided for timezone deduction instead, we 7830 # deduce the timezone by comparing the localtime result on a 7831 # known GMT value. 7832 7833 { $as_echo "$as_me:$LINENO: checking for gettimeofday in -lbsd" >&5 7834$as_echo_n "checking for gettimeofday in -lbsd... " >&6; } 7835if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then 7836 $as_echo_n "(cached) " >&6 7837else 7838 ac_check_lib_save_LIBS=$LIBS 7839LIBS="-lbsd $LIBS" 7840cat >conftest.$ac_ext <<_ACEOF 7841/* confdefs.h. */ 7842_ACEOF 7843cat confdefs.h >>conftest.$ac_ext 7844cat >>conftest.$ac_ext <<_ACEOF 7845/* end confdefs.h. */ 7846 7847/* Override any GCC internal prototype to avoid an error. 7848 Use char because int might match the return type of a GCC 7849 builtin and then its argument prototype would still apply. */ 7850#ifdef __cplusplus 7851extern "C" 7852#endif 7853char gettimeofday (); 7854int 7855main () 7856{ 7857return gettimeofday (); 7858 ; 7859 return 0; 7860} 7861_ACEOF 7862rm -f conftest.$ac_objext conftest$ac_exeext 7863if { (ac_try="$ac_link" 7864case "(($ac_try" in 7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7866 *) ac_try_echo=$ac_try;; 7867esac 7868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7869$as_echo "$ac_try_echo") >&5 7870 (eval "$ac_link") 2>conftest.er1 7871 ac_status=$? 7872 grep -v '^ *+' conftest.er1 >conftest.err 7873 rm -f conftest.er1 7874 cat conftest.err >&5 7875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7876 (exit $ac_status); } && { 7877 test -z "$ac_c_werror_flag" || 7878 test ! -s conftest.err 7879 } && test -s conftest$ac_exeext && { 7880 test "$cross_compiling" = yes || 7881 $as_test_x conftest$ac_exeext 7882 }; then 7883 ac_cv_lib_bsd_gettimeofday=yes 7884else 7885 $as_echo "$as_me: failed program was:" >&5 7886sed 's/^/| /' conftest.$ac_ext >&5 7887 7888 ac_cv_lib_bsd_gettimeofday=no 7889fi 7890 7891rm -rf conftest.dSYM 7892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7893 conftest$ac_exeext conftest.$ac_ext 7894LIBS=$ac_check_lib_save_LIBS 7895fi 7896{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gettimeofday" >&5 7897$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; } 7898if test "x$ac_cv_lib_bsd_gettimeofday" = x""yes; then 7899 libbsd=yes 7900else 7901 libbsd=no 7902fi 7903 7904 if test $libbsd = yes; then 7905 MATH_LIBS="$MATH_LIBS -lbsd" 7906 cat >>confdefs.h <<\_ACEOF 7907#define USE_DELTA_FOR_TZ 1 7908_ACEOF 7909 7910 fi 7911 ;; 7912 BeOS*) 7913 SHLIB_CFLAGS="-fPIC" 7914 SHLIB_LD="${CC} -nostart" 7915 SHLIB_LD_LIBS='${LIBS}' 7916 SHLIB_SUFFIX=".so" 7917 DL_OBJS="tclLoadDl.o" 7918 DL_LIBS="-ldl" 7919 ;; 7920 BSD/OS-2.1*|BSD/OS-3*) 7921 SHLIB_CFLAGS="" 7922 SHLIB_LD="shlicc -r" 7923 SHLIB_LD_LIBS='${LIBS}' 7924 SHLIB_SUFFIX=".so" 7925 DL_OBJS="tclLoadDl.o" 7926 DL_LIBS="-ldl" 7927 LD_SEARCH_FLAGS="" 7928 ;; 7929 BSD/OS-4.*) 7930 SHLIB_CFLAGS="-export-dynamic -fPIC" 7931 SHLIB_LD="cc -shared" 7932 SHLIB_LD_LIBS='${LIBS}' 7933 SHLIB_SUFFIX=".so" 7934 DL_OBJS="tclLoadDl.o" 7935 DL_LIBS="-ldl" 7936 LDFLAGS="$LDFLAGS -export-dynamic" 7937 LD_SEARCH_FLAGS="" 7938 ;; 7939 dgux*) 7940 SHLIB_CFLAGS="-K PIC" 7941 SHLIB_LD="cc -G" 7942 SHLIB_LD_LIBS="" 7943 SHLIB_SUFFIX=".so" 7944 DL_OBJS="tclLoadDl.o" 7945 DL_LIBS="-ldl" 7946 LD_SEARCH_FLAGS="" 7947 ;; 7948 HP-UX-*.11.*) 7949 # Use updated header definitions where possible 7950 cat >>confdefs.h <<\_ACEOF 7951#define _XOPEN_SOURCE_EXTENDED 1 7952_ACEOF 7953 7954 7955 SHLIB_SUFFIX=".sl" 7956 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 7957$as_echo_n "checking for shl_load in -ldld... " >&6; } 7958if test "${ac_cv_lib_dld_shl_load+set}" = set; then 7959 $as_echo_n "(cached) " >&6 7960else 7961 ac_check_lib_save_LIBS=$LIBS 7962LIBS="-ldld $LIBS" 7963cat >conftest.$ac_ext <<_ACEOF 7964/* confdefs.h. */ 7965_ACEOF 7966cat confdefs.h >>conftest.$ac_ext 7967cat >>conftest.$ac_ext <<_ACEOF 7968/* end confdefs.h. */ 7969 7970/* Override any GCC internal prototype to avoid an error. 7971 Use char because int might match the return type of a GCC 7972 builtin and then its argument prototype would still apply. */ 7973#ifdef __cplusplus 7974extern "C" 7975#endif 7976char shl_load (); 7977int 7978main () 7979{ 7980return shl_load (); 7981 ; 7982 return 0; 7983} 7984_ACEOF 7985rm -f conftest.$ac_objext conftest$ac_exeext 7986if { (ac_try="$ac_link" 7987case "(($ac_try" in 7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7989 *) ac_try_echo=$ac_try;; 7990esac 7991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7992$as_echo "$ac_try_echo") >&5 7993 (eval "$ac_link") 2>conftest.er1 7994 ac_status=$? 7995 grep -v '^ *+' conftest.er1 >conftest.err 7996 rm -f conftest.er1 7997 cat conftest.err >&5 7998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7999 (exit $ac_status); } && { 8000 test -z "$ac_c_werror_flag" || 8001 test ! -s conftest.err 8002 } && test -s conftest$ac_exeext && { 8003 test "$cross_compiling" = yes || 8004 $as_test_x conftest$ac_exeext 8005 }; then 8006 ac_cv_lib_dld_shl_load=yes 8007else 8008 $as_echo "$as_me: failed program was:" >&5 8009sed 's/^/| /' conftest.$ac_ext >&5 8010 8011 ac_cv_lib_dld_shl_load=no 8012fi 8013 8014rm -rf conftest.dSYM 8015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8016 conftest$ac_exeext conftest.$ac_ext 8017LIBS=$ac_check_lib_save_LIBS 8018fi 8019{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8020$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 8021if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 8022 tcl_ok=yes 8023else 8024 tcl_ok=no 8025fi 8026 8027 if test "$tcl_ok" = yes; then 8028 SHLIB_CFLAGS="+z" 8029 SHLIB_LD="ld -b" 8030 SHLIB_LD_LIBS='${LIBS}' 8031 DL_OBJS="tclLoadShl.o" 8032 DL_LIBS="-ldld" 8033 LDFLAGS="$LDFLAGS -Wl,-E" 8034 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8035 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8036 fi 8037 if test "$GCC" = "yes" ; then 8038 SHLIB_LD="gcc -shared" 8039 SHLIB_LD_LIBS='${LIBS}' 8040 LD_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8041 fi 8042 8043 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8044 #CFLAGS="$CFLAGS +DAportable" 8045 8046 # Check to enable 64-bit flags for compiler/linker 8047 if test "$do64bit" = "yes" ; then 8048 if test "$GCC" = "yes" ; then 8049 hpux_arch=`${CC} -dumpmachine` 8050 case $hpux_arch in 8051 hppa64*) 8052 # 64-bit gcc in use. Fix flags for GNU ld. 8053 do64bit_ok=yes 8054 SHLIB_LD="${CC} -shared" 8055 SHLIB_LD_LIBS='${LIBS}' 8056 ;; 8057 *) 8058 { $as_echo "$as_me:$LINENO: WARNING: \"64bit mode not supported with GCC on $system\"" >&5 8059$as_echo "$as_me: WARNING: \"64bit mode not supported with GCC on $system\"" >&2;} 8060 ;; 8061 esac 8062 else 8063 do64bit_ok=yes 8064 CFLAGS="$CFLAGS +DD64" 8065 LDFLAGS="$LDFLAGS +DD64" 8066 fi 8067 fi 8068 ;; 8069 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 8070 SHLIB_SUFFIX=".sl" 8071 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8072$as_echo_n "checking for shl_load in -ldld... " >&6; } 8073if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8074 $as_echo_n "(cached) " >&6 8075else 8076 ac_check_lib_save_LIBS=$LIBS 8077LIBS="-ldld $LIBS" 8078cat >conftest.$ac_ext <<_ACEOF 8079/* confdefs.h. */ 8080_ACEOF 8081cat confdefs.h >>conftest.$ac_ext 8082cat >>conftest.$ac_ext <<_ACEOF 8083/* end confdefs.h. */ 8084 8085/* Override any GCC internal prototype to avoid an error. 8086 Use char because int might match the return type of a GCC 8087 builtin and then its argument prototype would still apply. */ 8088#ifdef __cplusplus 8089extern "C" 8090#endif 8091char shl_load (); 8092int 8093main () 8094{ 8095return shl_load (); 8096 ; 8097 return 0; 8098} 8099_ACEOF 8100rm -f conftest.$ac_objext conftest$ac_exeext 8101if { (ac_try="$ac_link" 8102case "(($ac_try" in 8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8104 *) ac_try_echo=$ac_try;; 8105esac 8106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8107$as_echo "$ac_try_echo") >&5 8108 (eval "$ac_link") 2>conftest.er1 8109 ac_status=$? 8110 grep -v '^ *+' conftest.er1 >conftest.err 8111 rm -f conftest.er1 8112 cat conftest.err >&5 8113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8114 (exit $ac_status); } && { 8115 test -z "$ac_c_werror_flag" || 8116 test ! -s conftest.err 8117 } && test -s conftest$ac_exeext && { 8118 test "$cross_compiling" = yes || 8119 $as_test_x conftest$ac_exeext 8120 }; then 8121 ac_cv_lib_dld_shl_load=yes 8122else 8123 $as_echo "$as_me: failed program was:" >&5 8124sed 's/^/| /' conftest.$ac_ext >&5 8125 8126 ac_cv_lib_dld_shl_load=no 8127fi 8128 8129rm -rf conftest.dSYM 8130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8131 conftest$ac_exeext conftest.$ac_ext 8132LIBS=$ac_check_lib_save_LIBS 8133fi 8134{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8135$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 8136if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 8137 tcl_ok=yes 8138else 8139 tcl_ok=no 8140fi 8141 8142 if test "$tcl_ok" = yes; then 8143 SHLIB_CFLAGS="+z" 8144 SHLIB_LD="ld -b" 8145 SHLIB_LD_LIBS="" 8146 DL_OBJS="tclLoadShl.o" 8147 DL_LIBS="-ldld" 8148 LDFLAGS="$LDFLAGS -Wl,-E" 8149 LD_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8150 fi 8151 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8152 ;; 8153 IRIX-4.*) 8154 SHLIB_CFLAGS="-G 0" 8155 SHLIB_SUFFIX=".a" 8156 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" 8157 SHLIB_LD_LIBS='${LIBS}' 8158 DL_OBJS="tclLoadAout.o" 8159 DL_LIBS="" 8160 LDFLAGS="$LDFLAGS -Wl,-D,08000000" 8161 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8162 SHARED_LIB_SUFFIX='.a' 8163 ;; 8164 IRIX-5.*) 8165 SHLIB_CFLAGS="" 8166 SHLIB_LD="ld -shared -rdata_shared" 8167 SHLIB_LD_LIBS='${LIBS}' 8168 SHLIB_SUFFIX=".so" 8169 DL_OBJS="tclLoadDl.o" 8170 DL_LIBS="" 8171 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8172 ;; 8173 IRIX-6.*|IRIX64-6.5*) 8174 SHLIB_CFLAGS="" 8175 SHLIB_LD="ld -n32 -shared -rdata_shared" 8176 SHLIB_LD_LIBS='${LIBS}' 8177 SHLIB_SUFFIX=".so" 8178 DL_OBJS="tclLoadDl.o" 8179 DL_LIBS="" 8180 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8181 if test "$GCC" = "yes" ; then 8182 CFLAGS="$CFLAGS -mabi=n32" 8183 LDFLAGS="$LDFLAGS -mabi=n32" 8184 else 8185 case $system in 8186 IRIX-6.3) 8187 # Use to build 6.2 compatible binaries on 6.3. 8188 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8189 ;; 8190 *) 8191 CFLAGS="$CFLAGS -n32" 8192 ;; 8193 esac 8194 LDFLAGS="$LDFLAGS -n32" 8195 fi 8196 ;; 8197 IRIX64-6.*) 8198 SHLIB_CFLAGS="" 8199 SHLIB_LD="ld -n32 -shared -rdata_shared" 8200 SHLIB_LD_LIBS='${LIBS}' 8201 SHLIB_SUFFIX=".so" 8202 DL_OBJS="tclLoadDl.o" 8203 DL_LIBS="" 8204 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8205 8206 # Check to enable 64-bit flags for compiler/linker 8207 8208 if test "$do64bit" = "yes" ; then 8209 if test "$GCC" = "yes" ; then 8210 { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8211$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8212 else 8213 do64bit_ok=yes 8214 SHLIB_LD="ld -64 -shared -rdata_shared" 8215 CFLAGS="$CFLAGS -64" 8216 LDFLAGS="$LDFLAGS -64" 8217 fi 8218 fi 8219 ;; 8220 Linux*) 8221 SHLIB_CFLAGS="-fPIC" 8222 SHLIB_LD_LIBS='${LIBS}' 8223 SHLIB_SUFFIX=".so" 8224 8225 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8226 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings 8227 # when you inline the string and math operations. Turn this off to 8228 # get rid of the warnings. 8229 8230 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 8231 8232 if test "$have_dl" = yes; then 8233 SHLIB_LD="${CC} -shared" 8234 DL_OBJS="tclLoadDl.o" 8235 DL_LIBS="-ldl" 8236 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8237 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8238 else 8239 if test "${ac_cv_header_dld_h+set}" = set; then 8240 { $as_echo "$as_me:$LINENO: checking for dld.h" >&5 8241$as_echo_n "checking for dld.h... " >&6; } 8242if test "${ac_cv_header_dld_h+set}" = set; then 8243 $as_echo_n "(cached) " >&6 8244fi 8245{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5 8246$as_echo "$ac_cv_header_dld_h" >&6; } 8247else 8248 # Is the header compilable? 8249{ $as_echo "$as_me:$LINENO: checking dld.h usability" >&5 8250$as_echo_n "checking dld.h usability... " >&6; } 8251cat >conftest.$ac_ext <<_ACEOF 8252/* confdefs.h. */ 8253_ACEOF 8254cat confdefs.h >>conftest.$ac_ext 8255cat >>conftest.$ac_ext <<_ACEOF 8256/* end confdefs.h. */ 8257$ac_includes_default 8258#include <dld.h> 8259_ACEOF 8260rm -f conftest.$ac_objext 8261if { (ac_try="$ac_compile" 8262case "(($ac_try" in 8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8264 *) ac_try_echo=$ac_try;; 8265esac 8266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8267$as_echo "$ac_try_echo") >&5 8268 (eval "$ac_compile") 2>conftest.er1 8269 ac_status=$? 8270 grep -v '^ *+' conftest.er1 >conftest.err 8271 rm -f conftest.er1 8272 cat conftest.err >&5 8273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8274 (exit $ac_status); } && { 8275 test -z "$ac_c_werror_flag" || 8276 test ! -s conftest.err 8277 } && test -s conftest.$ac_objext; then 8278 ac_header_compiler=yes 8279else 8280 $as_echo "$as_me: failed program was:" >&5 8281sed 's/^/| /' conftest.$ac_ext >&5 8282 8283 ac_header_compiler=no 8284fi 8285 8286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8287{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8288$as_echo "$ac_header_compiler" >&6; } 8289 8290# Is the header present? 8291{ $as_echo "$as_me:$LINENO: checking dld.h presence" >&5 8292$as_echo_n "checking dld.h presence... " >&6; } 8293cat >conftest.$ac_ext <<_ACEOF 8294/* confdefs.h. */ 8295_ACEOF 8296cat confdefs.h >>conftest.$ac_ext 8297cat >>conftest.$ac_ext <<_ACEOF 8298/* end confdefs.h. */ 8299#include <dld.h> 8300_ACEOF 8301if { (ac_try="$ac_cpp conftest.$ac_ext" 8302case "(($ac_try" in 8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8304 *) ac_try_echo=$ac_try;; 8305esac 8306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8307$as_echo "$ac_try_echo") >&5 8308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8309 ac_status=$? 8310 grep -v '^ *+' conftest.er1 >conftest.err 8311 rm -f conftest.er1 8312 cat conftest.err >&5 8313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8314 (exit $ac_status); } >/dev/null && { 8315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8316 test ! -s conftest.err 8317 }; then 8318 ac_header_preproc=yes 8319else 8320 $as_echo "$as_me: failed program was:" >&5 8321sed 's/^/| /' conftest.$ac_ext >&5 8322 8323 ac_header_preproc=no 8324fi 8325 8326rm -f conftest.err conftest.$ac_ext 8327{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8328$as_echo "$ac_header_preproc" >&6; } 8329 8330# So? What about this header? 8331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8332 yes:no: ) 8333 { $as_echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5 8334$as_echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8335 { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5 8336$as_echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;} 8337 ac_header_preproc=yes 8338 ;; 8339 no:yes:* ) 8340 { $as_echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5 8341$as_echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;} 8342 { $as_echo "$as_me:$LINENO: WARNING: dld.h: check for missing prerequisite headers?" >&5 8343$as_echo "$as_me: WARNING: dld.h: check for missing prerequisite headers?" >&2;} 8344 { $as_echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5 8345$as_echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;} 8346 { $as_echo "$as_me:$LINENO: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&5 8347$as_echo "$as_me: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&2;} 8348 { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5 8349$as_echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;} 8350 { $as_echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5 8351$as_echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;} 8352 8353 ;; 8354esac 8355{ $as_echo "$as_me:$LINENO: checking for dld.h" >&5 8356$as_echo_n "checking for dld.h... " >&6; } 8357if test "${ac_cv_header_dld_h+set}" = set; then 8358 $as_echo_n "(cached) " >&6 8359else 8360 ac_cv_header_dld_h=$ac_header_preproc 8361fi 8362{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5 8363$as_echo "$ac_cv_header_dld_h" >&6; } 8364 8365fi 8366if test "x$ac_cv_header_dld_h" = x""yes; then 8367 8368 SHLIB_LD="ld -shared" 8369 DL_OBJS="tclLoadDld.o" 8370 DL_LIBS="-ldld" 8371 LD_SEARCH_FLAGS="" 8372fi 8373 8374 8375 fi 8376 if test "`uname -m`" = "alpha" ; then 8377 CFLAGS="$CFLAGS -mieee" 8378 fi 8379 8380 # The combo of gcc + glibc has a bug related 8381 # to inlining of functions like strtod(). The 8382 # -fno-builtin flag should address this problem 8383 # but it does not work. The -fno-inline flag 8384 # is kind of overkill but it works. 8385 # Disable inlining only when one of the 8386 # files in compat/*.c is being linked in. 8387 if test x"${USE_COMPAT}" != x ; then 8388 CFLAGS="$CFLAGS -fno-inline" 8389 fi 8390 8391 ;; 8392 GNU*) 8393 SHLIB_CFLAGS="-fPIC" 8394 SHLIB_LD_LIBS='${LIBS}' 8395 SHLIB_SUFFIX=".so" 8396 8397 if test "$have_dl" = yes; then 8398 SHLIB_LD="${CC} -shared" 8399 DL_OBJS="" 8400 DL_LIBS="-ldl" 8401 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8402 LD_SEARCH_FLAGS="" 8403 else 8404 if test "${ac_cv_header_dld_h+set}" = set; then 8405 { $as_echo "$as_me:$LINENO: checking for dld.h" >&5 8406$as_echo_n "checking for dld.h... " >&6; } 8407if test "${ac_cv_header_dld_h+set}" = set; then 8408 $as_echo_n "(cached) " >&6 8409fi 8410{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5 8411$as_echo "$ac_cv_header_dld_h" >&6; } 8412else 8413 # Is the header compilable? 8414{ $as_echo "$as_me:$LINENO: checking dld.h usability" >&5 8415$as_echo_n "checking dld.h usability... " >&6; } 8416cat >conftest.$ac_ext <<_ACEOF 8417/* confdefs.h. */ 8418_ACEOF 8419cat confdefs.h >>conftest.$ac_ext 8420cat >>conftest.$ac_ext <<_ACEOF 8421/* end confdefs.h. */ 8422$ac_includes_default 8423#include <dld.h> 8424_ACEOF 8425rm -f conftest.$ac_objext 8426if { (ac_try="$ac_compile" 8427case "(($ac_try" in 8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8429 *) ac_try_echo=$ac_try;; 8430esac 8431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8432$as_echo "$ac_try_echo") >&5 8433 (eval "$ac_compile") 2>conftest.er1 8434 ac_status=$? 8435 grep -v '^ *+' conftest.er1 >conftest.err 8436 rm -f conftest.er1 8437 cat conftest.err >&5 8438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8439 (exit $ac_status); } && { 8440 test -z "$ac_c_werror_flag" || 8441 test ! -s conftest.err 8442 } && test -s conftest.$ac_objext; then 8443 ac_header_compiler=yes 8444else 8445 $as_echo "$as_me: failed program was:" >&5 8446sed 's/^/| /' conftest.$ac_ext >&5 8447 8448 ac_header_compiler=no 8449fi 8450 8451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8452{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8453$as_echo "$ac_header_compiler" >&6; } 8454 8455# Is the header present? 8456{ $as_echo "$as_me:$LINENO: checking dld.h presence" >&5 8457$as_echo_n "checking dld.h presence... " >&6; } 8458cat >conftest.$ac_ext <<_ACEOF 8459/* confdefs.h. */ 8460_ACEOF 8461cat confdefs.h >>conftest.$ac_ext 8462cat >>conftest.$ac_ext <<_ACEOF 8463/* end confdefs.h. */ 8464#include <dld.h> 8465_ACEOF 8466if { (ac_try="$ac_cpp conftest.$ac_ext" 8467case "(($ac_try" in 8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8469 *) ac_try_echo=$ac_try;; 8470esac 8471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8472$as_echo "$ac_try_echo") >&5 8473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8474 ac_status=$? 8475 grep -v '^ *+' conftest.er1 >conftest.err 8476 rm -f conftest.er1 8477 cat conftest.err >&5 8478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8479 (exit $ac_status); } >/dev/null && { 8480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8481 test ! -s conftest.err 8482 }; then 8483 ac_header_preproc=yes 8484else 8485 $as_echo "$as_me: failed program was:" >&5 8486sed 's/^/| /' conftest.$ac_ext >&5 8487 8488 ac_header_preproc=no 8489fi 8490 8491rm -f conftest.err conftest.$ac_ext 8492{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8493$as_echo "$ac_header_preproc" >&6; } 8494 8495# So? What about this header? 8496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8497 yes:no: ) 8498 { $as_echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5 8499$as_echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8500 { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5 8501$as_echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;} 8502 ac_header_preproc=yes 8503 ;; 8504 no:yes:* ) 8505 { $as_echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5 8506$as_echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;} 8507 { $as_echo "$as_me:$LINENO: WARNING: dld.h: check for missing prerequisite headers?" >&5 8508$as_echo "$as_me: WARNING: dld.h: check for missing prerequisite headers?" >&2;} 8509 { $as_echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5 8510$as_echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;} 8511 { $as_echo "$as_me:$LINENO: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&5 8512$as_echo "$as_me: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&2;} 8513 { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5 8514$as_echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;} 8515 { $as_echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5 8516$as_echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;} 8517 8518 ;; 8519esac 8520{ $as_echo "$as_me:$LINENO: checking for dld.h" >&5 8521$as_echo_n "checking for dld.h... " >&6; } 8522if test "${ac_cv_header_dld_h+set}" = set; then 8523 $as_echo_n "(cached) " >&6 8524else 8525 ac_cv_header_dld_h=$ac_header_preproc 8526fi 8527{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5 8528$as_echo "$ac_cv_header_dld_h" >&6; } 8529 8530fi 8531if test "x$ac_cv_header_dld_h" = x""yes; then 8532 8533 SHLIB_LD="ld -shared" 8534 DL_OBJS="" 8535 DL_LIBS="-ldld" 8536 LD_SEARCH_FLAGS="" 8537fi 8538 8539 8540 fi 8541 if test "`uname -m`" = "alpha" ; then 8542 CFLAGS="$CFLAGS -mieee" 8543 fi 8544 ;; 8545 MP-RAS-02*) 8546 SHLIB_CFLAGS="-K PIC" 8547 SHLIB_LD="cc -G" 8548 SHLIB_LD_LIBS="" 8549 SHLIB_SUFFIX=".so" 8550 DL_OBJS="tclLoadDl.o" 8551 DL_LIBS="-ldl" 8552 LD_SEARCH_FLAGS="" 8553 ;; 8554 MP-RAS-*) 8555 SHLIB_CFLAGS="-K PIC" 8556 SHLIB_LD="cc -G" 8557 SHLIB_LD_LIBS="" 8558 SHLIB_SUFFIX=".so" 8559 DL_OBJS="tclLoadDl.o" 8560 DL_LIBS="-ldl" 8561 LDFLAGS="$LDFLAGS -Wl,-Bexport" 8562 LD_SEARCH_FLAGS="" 8563 ;; 8564 NetBSD-*|FreeBSD-[1-2].*) 8565 # Not available on all versions: check for include file. 8566 if test "${ac_cv_header_dlfcn_h+set}" = set; then 8567 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 8568$as_echo_n "checking for dlfcn.h... " >&6; } 8569if test "${ac_cv_header_dlfcn_h+set}" = set; then 8570 $as_echo_n "(cached) " >&6 8571fi 8572{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 8573$as_echo "$ac_cv_header_dlfcn_h" >&6; } 8574else 8575 # Is the header compilable? 8576{ $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 8577$as_echo_n "checking dlfcn.h usability... " >&6; } 8578cat >conftest.$ac_ext <<_ACEOF 8579/* confdefs.h. */ 8580_ACEOF 8581cat confdefs.h >>conftest.$ac_ext 8582cat >>conftest.$ac_ext <<_ACEOF 8583/* end confdefs.h. */ 8584$ac_includes_default 8585#include <dlfcn.h> 8586_ACEOF 8587rm -f conftest.$ac_objext 8588if { (ac_try="$ac_compile" 8589case "(($ac_try" in 8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8591 *) ac_try_echo=$ac_try;; 8592esac 8593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8594$as_echo "$ac_try_echo") >&5 8595 (eval "$ac_compile") 2>conftest.er1 8596 ac_status=$? 8597 grep -v '^ *+' conftest.er1 >conftest.err 8598 rm -f conftest.er1 8599 cat conftest.err >&5 8600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8601 (exit $ac_status); } && { 8602 test -z "$ac_c_werror_flag" || 8603 test ! -s conftest.err 8604 } && test -s conftest.$ac_objext; then 8605 ac_header_compiler=yes 8606else 8607 $as_echo "$as_me: failed program was:" >&5 8608sed 's/^/| /' conftest.$ac_ext >&5 8609 8610 ac_header_compiler=no 8611fi 8612 8613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8614{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8615$as_echo "$ac_header_compiler" >&6; } 8616 8617# Is the header present? 8618{ $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 8619$as_echo_n "checking dlfcn.h presence... " >&6; } 8620cat >conftest.$ac_ext <<_ACEOF 8621/* confdefs.h. */ 8622_ACEOF 8623cat confdefs.h >>conftest.$ac_ext 8624cat >>conftest.$ac_ext <<_ACEOF 8625/* end confdefs.h. */ 8626#include <dlfcn.h> 8627_ACEOF 8628if { (ac_try="$ac_cpp conftest.$ac_ext" 8629case "(($ac_try" in 8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8631 *) ac_try_echo=$ac_try;; 8632esac 8633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8634$as_echo "$ac_try_echo") >&5 8635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8636 ac_status=$? 8637 grep -v '^ *+' conftest.er1 >conftest.err 8638 rm -f conftest.er1 8639 cat conftest.err >&5 8640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8641 (exit $ac_status); } >/dev/null && { 8642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8643 test ! -s conftest.err 8644 }; then 8645 ac_header_preproc=yes 8646else 8647 $as_echo "$as_me: failed program was:" >&5 8648sed 's/^/| /' conftest.$ac_ext >&5 8649 8650 ac_header_preproc=no 8651fi 8652 8653rm -f conftest.err conftest.$ac_ext 8654{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8655$as_echo "$ac_header_preproc" >&6; } 8656 8657# So? What about this header? 8658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8659 yes:no: ) 8660 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 8661$as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8662 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 8663$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 8664 ac_header_preproc=yes 8665 ;; 8666 no:yes:* ) 8667 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 8668$as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 8669 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 8670$as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 8671 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 8672$as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 8673 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 8674$as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 8675 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 8676$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 8677 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 8678$as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 8679 8680 ;; 8681esac 8682{ $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 8683$as_echo_n "checking for dlfcn.h... " >&6; } 8684if test "${ac_cv_header_dlfcn_h+set}" = set; then 8685 $as_echo_n "(cached) " >&6 8686else 8687 ac_cv_header_dlfcn_h=$ac_header_preproc 8688fi 8689{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 8690$as_echo "$ac_cv_header_dlfcn_h" >&6; } 8691 8692fi 8693if test "x$ac_cv_header_dlfcn_h" = x""yes; then 8694 8695 # NetBSD/SPARC needs -fPIC, -fpic will not do. 8696 SHLIB_CFLAGS="-fPIC" 8697 SHLIB_LD="ld -Bshareable -x" 8698 SHLIB_LD_LIBS="" 8699 SHLIB_SUFFIX=".so" 8700 DL_OBJS="tclLoadDl.o" 8701 DL_LIBS="" 8702 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8703 { $as_echo "$as_me:$LINENO: checking for ELF" >&5 8704$as_echo_n "checking for ELF... " >&6; } 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 8712#ifdef __ELF__ 8713 yes 8714#endif 8715 8716_ACEOF 8717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8718 $EGREP "yes" >/dev/null 2>&1; then 8719 { $as_echo "$as_me:$LINENO: result: yes" >&5 8720$as_echo "yes" >&6; } 8721 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8722else 8723 { $as_echo "$as_me:$LINENO: result: no" >&5 8724$as_echo "no" >&6; } 8725 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 8726 8727fi 8728rm -f conftest* 8729 8730 8731else 8732 8733 SHLIB_CFLAGS="" 8734 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" 8735 SHLIB_LD_LIBS='${LIBS}' 8736 SHLIB_SUFFIX=".a" 8737 DL_OBJS="tclLoadAout.o" 8738 DL_LIBS="" 8739 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8740 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8741 8742fi 8743 8744 8745 8746 # FreeBSD doesn't handle version numbers with dots. 8747 8748 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8749 TCL_LIB_VERSIONS_OK=nodots 8750 ;; 8751 OpenBSD-*) 8752 SHLIB_LD="${CC} -shared" 8753 SHLIB_LD_LIBS='${LIBS}' 8754 SHLIB_SUFFIX=".so" 8755 DL_OBJS="tclLoadDl.o" 8756 DL_LIBS="" 8757 LD_SEARCH_FLAGS="" 8758 { $as_echo "$as_me:$LINENO: checking for ELF" >&5 8759$as_echo_n "checking for ELF... " >&6; } 8760 cat >conftest.$ac_ext <<_ACEOF 8761/* confdefs.h. */ 8762_ACEOF 8763cat confdefs.h >>conftest.$ac_ext 8764cat >>conftest.$ac_ext <<_ACEOF 8765/* end confdefs.h. */ 8766 8767#ifdef __ELF__ 8768 yes 8769#endif 8770 8771_ACEOF 8772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8773 $EGREP "yes" >/dev/null 2>&1; then 8774 { $as_echo "$as_me:$LINENO: result: yes" >&5 8775$as_echo "yes" >&6; } 8776 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 8777else 8778 { $as_echo "$as_me:$LINENO: result: no" >&5 8779$as_echo "no" >&6; } 8780 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 8781 8782fi 8783rm -f conftest* 8784 8785 8786 # OpenBSD doesn't do version numbers with dots. 8787 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8788 TCL_LIB_VERSIONS_OK=nodots 8789 ;; 8790 FreeBSD-*|DragonFly-*) 8791 # FreeBSD 3.* and greater have ELF. 8792 SHLIB_CFLAGS="-fPIC" 8793 SHLIB_LD="ld -Bshareable -x" 8794 SHLIB_LD_LIBS='${LIBS}' 8795 SHLIB_SUFFIX=".so" 8796 DL_OBJS="tclLoadDl.o" 8797 DL_LIBS="" 8798 LDFLAGS="$LDFLAGS -export-dynamic" 8799 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8800 if test "${TCL_THREADS}" = "1" ; then 8801 # The -pthread needs to go in the CFLAGS, not LIBS 8802 LIBS=`echo $LIBS | sed s/-pthread//` 8803 CFLAGS="$CFLAGS -pthread" 8804 LDFLAGS="$LDFLAGS -pthread" 8805 fi 8806 case $system in 8807 FreeBSD-3.*) 8808 # FreeBSD-3 doesn't handle version numbers with dots. 8809 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8810 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8811 TCL_LIB_VERSIONS_OK=nodots 8812 ;; 8813 esac 8814 ;; 8815 Darwin-*) 8816 SHLIB_CFLAGS="-fno-common" 8817 SHLIB_LD="cc -dynamiclib \${LDFLAGS}" 8818 SHLIB_LD_LIBS='${LIBS}' 8819 SHLIB_SUFFIX=".dylib" 8820 DL_OBJS="tclLoadDyld.o" 8821 DL_LIBS="" 8822 LDFLAGS="$LDFLAGS -prebind -Wl,-search_paths_first" 8823 LD_SEARCH_FLAGS="" 8824 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 8825 CFLAGS_OPTIMIZE="-Os" 8826 ;; 8827 NEXTSTEP-*) 8828 SHLIB_CFLAGS="" 8829 SHLIB_LD="cc -nostdlib -r" 8830 SHLIB_LD_LIBS="" 8831 SHLIB_SUFFIX=".so" 8832 DL_OBJS="tclLoadNext.o" 8833 DL_LIBS="" 8834 LD_SEARCH_FLAGS="" 8835 ;; 8836 OS/390-*) 8837 CFLAGS_OPTIMIZE="" # Optimizer is buggy 8838 cat >>confdefs.h <<\_ACEOF 8839#define _OE_SOCKETS 1 8840_ACEOF 8841 # needed in sys/socket.h 8842 ;; 8843 OSF1-1.0|OSF1-1.1|OSF1-1.2) 8844 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 8845 SHLIB_CFLAGS="" 8846 # Hack: make package name same as library name 8847 SHLIB_LD='ld -R -export :' 8848 SHLIB_LD_LIBS="" 8849 SHLIB_SUFFIX=".so" 8850 DL_OBJS="tclLoadOSF.o" 8851 DL_LIBS="" 8852 LD_SEARCH_FLAGS="" 8853 ;; 8854 OSF1-1.*) 8855 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 8856 SHLIB_CFLAGS="-fPIC" 8857 if test "$SHARED_BUILD" = "1" ; then 8858 SHLIB_LD="ld -shared" 8859 else 8860 SHLIB_LD="ld -non_shared" 8861 fi 8862 SHLIB_LD_LIBS="" 8863 SHLIB_SUFFIX=".so" 8864 DL_OBJS="tclLoadDl.o" 8865 DL_LIBS="" 8866 LD_SEARCH_FLAGS="" 8867 ;; 8868 OSF1-V*) 8869 # Digital OSF/1 8870 SHLIB_CFLAGS="" 8871 if test "$SHARED_BUILD" = "1" ; then 8872 SHLIB_LD='ld -shared -expect_unresolved "*"' 8873 else 8874 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 8875 fi 8876 SHLIB_LD_LIBS="" 8877 SHLIB_SUFFIX=".so" 8878 DL_OBJS="tclLoadDl.o" 8879 DL_LIBS="" 8880 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8881 if test "$GCC" = "yes" ; then 8882 CFLAGS="$CFLAGS -mieee" 8883 else 8884 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 8885 fi 8886 # see pthread_intro(3) for pthread support on osf1, k.furukawa 8887 if test "${TCL_THREADS}" = "1" ; then 8888 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 8889 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 8890 LIBS=`echo $LIBS | sed s/-lpthreads//` 8891 if test "$GCC" = "yes" ; then 8892 LIBS="$LIBS -lpthread -lmach -lexc" 8893 else 8894 CFLAGS="$CFLAGS -pthread" 8895 LDFLAGS="$LDFLAGS -pthread" 8896 fi 8897 fi 8898 8899 ;; 8900 QNX-6*) 8901 # QNX RTP 8902 # This may work for all QNX, but it was only reported for v6. 8903 SHLIB_CFLAGS="-fPIC" 8904 SHLIB_LD="ld -Bshareable -x" 8905 SHLIB_LD_LIBS="" 8906 SHLIB_SUFFIX=".so" 8907 DL_OBJS="tclLoadDl.o" 8908 # dlopen is in -lc on QNX 8909 DL_LIBS="" 8910 LD_SEARCH_FLAGS="" 8911 ;; 8912 RISCos-*) 8913 SHLIB_CFLAGS="-G 0" 8914 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" 8915 SHLIB_LD_LIBS='${LIBS}' 8916 SHLIB_SUFFIX=".a" 8917 DL_OBJS="tclLoadAout.o" 8918 DL_LIBS="" 8919 LDFLAGS="$LDFLAGS -Wl,-D,08000000" 8920 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8921 ;; 8922 SCO_SV-3.2*) 8923 # Note, dlopen is available only on SCO 3.2.5 and greater. However, 8924 # this test works, since "uname -s" was non-standard in 3.2.4 and 8925 # below. 8926 if test "$GCC" = "yes" ; then 8927 SHLIB_CFLAGS="-fPIC -melf" 8928 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 8929 else 8930 SHLIB_CFLAGS="-Kpic -belf" 8931 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 8932 fi 8933 SHLIB_LD="ld -G" 8934 SHLIB_LD_LIBS="" 8935 SHLIB_SUFFIX=".so" 8936 DL_OBJS="tclLoadDl.o" 8937 DL_LIBS="" 8938 LD_SEARCH_FLAGS="" 8939 ;; 8940 SINIX*5.4*) 8941 SHLIB_CFLAGS="-K PIC" 8942 SHLIB_LD="cc -G" 8943 SHLIB_LD_LIBS="" 8944 SHLIB_SUFFIX=".so" 8945 DL_OBJS="tclLoadDl.o" 8946 DL_LIBS="-ldl" 8947 LD_SEARCH_FLAGS="" 8948 ;; 8949 SunOS-4*) 8950 SHLIB_CFLAGS="-PIC" 8951 SHLIB_LD="ld" 8952 SHLIB_LD_LIBS="" 8953 SHLIB_SUFFIX=".so" 8954 DL_OBJS="tclLoadDl.o" 8955 DL_LIBS="-ldl" 8956 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8957 8958 # SunOS can't handle version numbers with dots in them in library 8959 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it 8960 # requires an extra version number at the end of .so file names. 8961 # So, the library has to have a name like libtcl75.so.1.0 8962 8963 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 8964 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8965 TCL_LIB_VERSIONS_OK=nodots 8966 ;; 8967 SunOS-5.[0-6]*) 8968 8969 # Note: If _REENTRANT isn't defined, then Solaris 8970 # won't define thread-safe library routines. 8971 8972 cat >>confdefs.h <<\_ACEOF 8973#define _REENTRANT 1 8974_ACEOF 8975 8976 cat >>confdefs.h <<\_ACEOF 8977#define _POSIX_PTHREAD_SEMANTICS 1 8978_ACEOF 8979 8980 8981 SHLIB_CFLAGS="-KPIC" 8982 8983 # Note: need the LIBS below, otherwise Tk won't find Tcl's 8984 # symbols when dynamically loaded into tclsh. 8985 8986 SHLIB_LD_LIBS='${LIBS}' 8987 SHLIB_SUFFIX=".so" 8988 DL_OBJS="tclLoadDl.o" 8989 DL_LIBS="-ldl" 8990 if test "$GCC" = "yes" ; then 8991 SHLIB_LD="$CC -shared" 8992 LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8993 else 8994 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8995 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8996 fi 8997 ;; 8998 SunOS-5*) 8999 9000 # Note: If _REENTRANT isn't defined, then Solaris 9001 # won't define thread-safe library routines. 9002 9003 cat >>confdefs.h <<\_ACEOF 9004#define _REENTRANT 1 9005_ACEOF 9006 9007 cat >>confdefs.h <<\_ACEOF 9008#define _POSIX_PTHREAD_SEMANTICS 1 9009_ACEOF 9010 9011 9012 SHLIB_CFLAGS="-KPIC" 9013 9014 # Check to enable 64-bit flags for compiler/linker 9015 if test "$do64bit" = "yes" ; then 9016 arch=`isainfo` 9017 if test "$arch" = "sparcv9 sparc" ; then 9018 if test "$GCC" = "yes" ; then 9019 if test "`gcc -dumpversion` | awk -F. '{print }'" -lt "3" ; then 9020 { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9021$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9022 else 9023 do64bit_ok=yes 9024 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9025 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9026 SHLIB_CFLAGS="-fPIC" 9027 fi 9028 else 9029 do64bit_ok=yes 9030 if test "$do64bitVIS" = "yes" ; then 9031 CFLAGS="$CFLAGS -xarch=v9a" 9032 LDFLAGS="$LDFLAGS -xarch=v9a" 9033 else 9034 CFLAGS="$CFLAGS -xarch=v9" 9035 LDFLAGS="$LDFLAGS -xarch=v9" 9036 fi 9037 fi 9038 else 9039 { $as_echo "$as_me:$LINENO: WARNING: \"64bit mode only supported sparcv9 system\"" >&5 9040$as_echo "$as_me: WARNING: \"64bit mode only supported sparcv9 system\"" >&2;} 9041 fi 9042 fi 9043 9044 # Note: need the LIBS below, otherwise Tk won't find Tcl's 9045 # symbols when dynamically loaded into tclsh. 9046 9047 SHLIB_LD_LIBS='${LIBS}' 9048 SHLIB_SUFFIX=".so" 9049 DL_OBJS="tclLoadDl.o" 9050 DL_LIBS="-ldl" 9051 if test "$GCC" = "yes" ; then 9052 SHLIB_LD="$CC -shared" 9053 LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9054 if test "$do64bit" = "yes" ; then 9055 # We need to specify -static-libgcc or we need to 9056 # add the path to the sparv9 libgcc. 9057 # JH: static-libgcc is necessary for core Tcl, but may 9058 # not be necessary for extensions. 9059 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9060 # for finding sparcv9 libgcc, get the regular libgcc 9061 # path, remove so name and append 'sparcv9' 9062 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9063 #LD_SEARCH_FLAGS="${LD_SEARCH_FLAGS},-R,$v9gcclibdir" 9064 fi 9065 else 9066 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9067 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9068 fi 9069 ;; 9070 ULTRIX-4.*) 9071 SHLIB_CFLAGS="-G 0" 9072 SHLIB_SUFFIX=".a" 9073 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" 9074 SHLIB_LD_LIBS='${LIBS}' 9075 DL_OBJS="tclLoadAout.o" 9076 DL_LIBS="" 9077 LDFLAGS="$LDFLAGS -Wl,-D,08000000" 9078 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 9079 if test "$GCC" != "yes" ; then 9080 CFLAGS="$CFLAGS -DHAVE_TZSET -std1" 9081 fi 9082 ;; 9083 UNIX_SV* | UnixWare-5*) 9084 SHLIB_CFLAGS="-KPIC" 9085 SHLIB_LD="cc -G" 9086 SHLIB_LD_LIBS="" 9087 SHLIB_SUFFIX=".so" 9088 DL_OBJS="tclLoadDl.o" 9089 DL_LIBS="-ldl" 9090 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 9091 # that don't grok the -Bexport option. Test that it does. 9092 hold_ldflags=$LDFLAGS 9093 { $as_echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5 9094$as_echo_n "checking for ld accepts -Bexport flag... " >&6; } 9095 LDFLAGS="$LDFLAGS -Wl,-Bexport" 9096 cat >conftest.$ac_ext <<_ACEOF 9097/* confdefs.h. */ 9098_ACEOF 9099cat confdefs.h >>conftest.$ac_ext 9100cat >>conftest.$ac_ext <<_ACEOF 9101/* end confdefs.h. */ 9102 9103int 9104main () 9105{ 9106int i; 9107 ; 9108 return 0; 9109} 9110_ACEOF 9111rm -f conftest.$ac_objext conftest$ac_exeext 9112if { (ac_try="$ac_link" 9113case "(($ac_try" in 9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9115 *) ac_try_echo=$ac_try;; 9116esac 9117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9118$as_echo "$ac_try_echo") >&5 9119 (eval "$ac_link") 2>conftest.er1 9120 ac_status=$? 9121 grep -v '^ *+' conftest.er1 >conftest.err 9122 rm -f conftest.er1 9123 cat conftest.err >&5 9124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9125 (exit $ac_status); } && { 9126 test -z "$ac_c_werror_flag" || 9127 test ! -s conftest.err 9128 } && test -s conftest$ac_exeext && { 9129 test "$cross_compiling" = yes || 9130 $as_test_x conftest$ac_exeext 9131 }; then 9132 found=yes 9133else 9134 $as_echo "$as_me: failed program was:" >&5 9135sed 's/^/| /' conftest.$ac_ext >&5 9136 9137 LDFLAGS=$hold_ldflags found=no 9138fi 9139 9140rm -rf conftest.dSYM 9141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9142 conftest$ac_exeext conftest.$ac_ext 9143 { $as_echo "$as_me:$LINENO: result: $found" >&5 9144$as_echo "$found" >&6; } 9145 LD_SEARCH_FLAGS="" 9146 ;; 9147 esac 9148 9149 if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then 9150 { $as_echo "$as_me:$LINENO: WARNING: \"64bit support being disabled -- don\'t know magic for this platform\"" >&5 9151$as_echo "$as_me: WARNING: \"64bit support being disabled -- don\'t know magic for this platform\"" >&2;} 9152 fi 9153 9154 # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic 9155 # Loading for Tcl -- What Became of It?". Proc. 2nd Tcl/Tk Workshop, 9156 # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need 9157 # to determine which of several header files defines the a.out file 9158 # format (a.out.h, sys/exec.h, or sys/exec_aout.h). At present, we 9159 # support only a file format that is more or less version-7-compatible. 9160 # In particular, 9161 # - a.out files must begin with `struct exec'. 9162 # - the N_TXTOFF on the `struct exec' must compute the seek address 9163 # of the text segment 9164 # - The `struct exec' must contain a_magic, a_text, a_data, a_bss 9165 # and a_entry fields. 9166 # The following compilation should succeed if and only if either sys/exec.h 9167 # or a.out.h is usable for the purpose. 9168 # 9169 # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the 9170 # `struct exec' includes a second header that contains information that 9171 # duplicates the v7 fields that are needed. 9172 9173 if test "x$DL_OBJS" = "xtclLoadAout.o" ; then 9174 { $as_echo "$as_me:$LINENO: checking sys/exec.h" >&5 9175$as_echo_n "checking sys/exec.h... " >&6; } 9176 cat >conftest.$ac_ext <<_ACEOF 9177/* confdefs.h. */ 9178_ACEOF 9179cat confdefs.h >>conftest.$ac_ext 9180cat >>conftest.$ac_ext <<_ACEOF 9181/* end confdefs.h. */ 9182#include <sys/exec.h> 9183int 9184main () 9185{ 9186 9187 struct exec foo; 9188 unsigned long seek; 9189 int flag; 9190#if defined(__mips) || defined(mips) 9191 seek = N_TXTOFF (foo.ex_f, foo.ex_o); 9192#else 9193 seek = N_TXTOFF (foo); 9194#endif 9195 flag = (foo.a_magic == OMAGIC); 9196 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; 9197 9198 ; 9199 return 0; 9200} 9201_ACEOF 9202rm -f conftest.$ac_objext 9203if { (ac_try="$ac_compile" 9204case "(($ac_try" in 9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9206 *) ac_try_echo=$ac_try;; 9207esac 9208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9209$as_echo "$ac_try_echo") >&5 9210 (eval "$ac_compile") 2>conftest.er1 9211 ac_status=$? 9212 grep -v '^ *+' conftest.er1 >conftest.err 9213 rm -f conftest.er1 9214 cat conftest.err >&5 9215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9216 (exit $ac_status); } && { 9217 test -z "$ac_c_werror_flag" || 9218 test ! -s conftest.err 9219 } && test -s conftest.$ac_objext; then 9220 tcl_ok=usable 9221else 9222 $as_echo "$as_me: failed program was:" >&5 9223sed 's/^/| /' conftest.$ac_ext >&5 9224 9225 tcl_ok=unusable 9226fi 9227 9228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9229 { $as_echo "$as_me:$LINENO: result: $tcl_ok" >&5 9230$as_echo "$tcl_ok" >&6; } 9231 if test $tcl_ok = usable; then 9232 cat >>confdefs.h <<\_ACEOF 9233#define USE_SYS_EXEC_H 1 9234_ACEOF 9235 9236 else 9237 { $as_echo "$as_me:$LINENO: checking a.out.h" >&5 9238$as_echo_n "checking a.out.h... " >&6; } 9239 cat >conftest.$ac_ext <<_ACEOF 9240/* confdefs.h. */ 9241_ACEOF 9242cat confdefs.h >>conftest.$ac_ext 9243cat >>conftest.$ac_ext <<_ACEOF 9244/* end confdefs.h. */ 9245#include <a.out.h> 9246int 9247main () 9248{ 9249 9250 struct exec foo; 9251 unsigned long seek; 9252 int flag; 9253#if defined(__mips) || defined(mips) 9254 seek = N_TXTOFF (foo.ex_f, foo.ex_o); 9255#else 9256 seek = N_TXTOFF (foo); 9257#endif 9258 flag = (foo.a_magic == OMAGIC); 9259 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; 9260 9261 ; 9262 return 0; 9263} 9264_ACEOF 9265rm -f conftest.$ac_objext 9266if { (ac_try="$ac_compile" 9267case "(($ac_try" in 9268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9269 *) ac_try_echo=$ac_try;; 9270esac 9271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9272$as_echo "$ac_try_echo") >&5 9273 (eval "$ac_compile") 2>conftest.er1 9274 ac_status=$? 9275 grep -v '^ *+' conftest.er1 >conftest.err 9276 rm -f conftest.er1 9277 cat conftest.err >&5 9278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9279 (exit $ac_status); } && { 9280 test -z "$ac_c_werror_flag" || 9281 test ! -s conftest.err 9282 } && test -s conftest.$ac_objext; then 9283 tcl_ok=usable 9284else 9285 $as_echo "$as_me: failed program was:" >&5 9286sed 's/^/| /' conftest.$ac_ext >&5 9287 9288 tcl_ok=unusable 9289fi 9290 9291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9292 { $as_echo "$as_me:$LINENO: result: $tcl_ok" >&5 9293$as_echo "$tcl_ok" >&6; } 9294 if test $tcl_ok = usable; then 9295 cat >>confdefs.h <<\_ACEOF 9296#define USE_A_OUT_H 1 9297_ACEOF 9298 9299 else 9300 { $as_echo "$as_me:$LINENO: checking sys/exec_aout.h" >&5 9301$as_echo_n "checking sys/exec_aout.h... " >&6; } 9302 cat >conftest.$ac_ext <<_ACEOF 9303/* confdefs.h. */ 9304_ACEOF 9305cat confdefs.h >>conftest.$ac_ext 9306cat >>conftest.$ac_ext <<_ACEOF 9307/* end confdefs.h. */ 9308#include <sys/exec_aout.h> 9309int 9310main () 9311{ 9312 9313 struct exec foo; 9314 unsigned long seek; 9315 int flag; 9316#if defined(__mips) || defined(mips) 9317 seek = N_TXTOFF (foo.ex_f, foo.ex_o); 9318#else 9319 seek = N_TXTOFF (foo); 9320#endif 9321 flag = (foo.a_midmag == OMAGIC); 9322 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; 9323 9324 ; 9325 return 0; 9326} 9327_ACEOF 9328rm -f conftest.$ac_objext 9329if { (ac_try="$ac_compile" 9330case "(($ac_try" in 9331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9332 *) ac_try_echo=$ac_try;; 9333esac 9334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9335$as_echo "$ac_try_echo") >&5 9336 (eval "$ac_compile") 2>conftest.er1 9337 ac_status=$? 9338 grep -v '^ *+' conftest.er1 >conftest.err 9339 rm -f conftest.er1 9340 cat conftest.err >&5 9341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9342 (exit $ac_status); } && { 9343 test -z "$ac_c_werror_flag" || 9344 test ! -s conftest.err 9345 } && test -s conftest.$ac_objext; then 9346 tcl_ok=usable 9347else 9348 $as_echo "$as_me: failed program was:" >&5 9349sed 's/^/| /' conftest.$ac_ext >&5 9350 9351 tcl_ok=unusable 9352fi 9353 9354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9355 { $as_echo "$as_me:$LINENO: result: $tcl_ok" >&5 9356$as_echo "$tcl_ok" >&6; } 9357 if test $tcl_ok = usable; then 9358 cat >>confdefs.h <<\_ACEOF 9359#define USE_SYS_EXEC_AOUT_H 1 9360_ACEOF 9361 9362 else 9363 DL_OBJS="" 9364 fi 9365 fi 9366 fi 9367 fi 9368 9369 # Step 5: disable dynamic loading if requested via a command-line switch. 9370 9371 # Check whether --enable-load was given. 9372if test "${enable_load+set}" = set; then 9373 enableval=$enable_load; tcl_ok=$enableval 9374else 9375 tcl_ok=yes 9376fi 9377 9378 if test "$tcl_ok" = "no"; then 9379 DL_OBJS="" 9380 fi 9381 9382 if test "x$DL_OBJS" != "x" ; then 9383 BUILD_DLTEST="\$(DLTEST_TARGETS)" 9384 else 9385 echo "Can't figure out how to do dynamic loading or shared libraries" 9386 echo "on this system." 9387 SHLIB_CFLAGS="" 9388 SHLIB_LD="" 9389 SHLIB_SUFFIX="" 9390 DL_OBJS="tclLoadNone.o" 9391 DL_LIBS="" 9392 LDFLAGS="$LDFLAGS_ORIG" 9393 LD_SEARCH_FLAGS="" 9394 BUILD_DLTEST="" 9395 fi 9396 9397 # If we're running gcc, then change the C flags for compiling shared 9398 # libraries to the right flags for gcc, instead of those for the 9399 # standard manufacturer compiler. 9400 9401 if test "$DL_OBJS" != "tclLoadNone.o" ; then 9402 if test "$GCC" = "yes" ; then 9403 case $system in 9404 AIX-*) 9405 ;; 9406 BSD/OS*) 9407 ;; 9408 IRIX*) 9409 ;; 9410 NetBSD-*|FreeBSD-*|DragonFly-*) 9411 ;; 9412 Darwin-*) 9413 ;; 9414 RISCos-*) 9415 ;; 9416 SCO_SV-3.2*) 9417 ;; 9418 ULTRIX-4.*) 9419 ;; 9420 windows) 9421 ;; 9422 *) 9423 SHLIB_CFLAGS="-fPIC" 9424 ;; 9425 esac 9426 fi 9427 fi 9428 9429 if test "$SHARED_LIB_SUFFIX" = "" ; then 9430 SHARED_LIB_SUFFIX='${SHLIB_SUFFIX}' 9431 fi 9432 if test "$UNSHARED_LIB_SUFFIX" = "" ; then 9433 UNSHARED_LIB_SUFFIX='.a' 9434 fi 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 # These must be called after we do the basic CFLAGS checks and 9450 # verify any possible 64-bit or similar switches are necessary 9451 9452 { $as_echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9453$as_echo_n "checking for required early compiler flags... " >&6; } 9454 tcl_flags="" 9455 9456 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9457 $as_echo_n "(cached) " >&6 9458else 9459 cat >conftest.$ac_ext <<_ACEOF 9460/* confdefs.h. */ 9461_ACEOF 9462cat confdefs.h >>conftest.$ac_ext 9463cat >>conftest.$ac_ext <<_ACEOF 9464/* end confdefs.h. */ 9465#include <stdlib.h> 9466int 9467main () 9468{ 9469char *p = (char *)strtoll; char *q = (char *)strtoull; 9470 ; 9471 return 0; 9472} 9473_ACEOF 9474rm -f conftest.$ac_objext 9475if { (ac_try="$ac_compile" 9476case "(($ac_try" in 9477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9478 *) ac_try_echo=$ac_try;; 9479esac 9480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9481$as_echo "$ac_try_echo") >&5 9482 (eval "$ac_compile") 2>conftest.er1 9483 ac_status=$? 9484 grep -v '^ *+' conftest.er1 >conftest.err 9485 rm -f conftest.er1 9486 cat conftest.err >&5 9487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9488 (exit $ac_status); } && { 9489 test -z "$ac_c_werror_flag" || 9490 test ! -s conftest.err 9491 } && test -s conftest.$ac_objext; then 9492 tcl_cv_flag__isoc99_source=no 9493else 9494 $as_echo "$as_me: failed program was:" >&5 9495sed 's/^/| /' conftest.$ac_ext >&5 9496 9497 cat >conftest.$ac_ext <<_ACEOF 9498/* confdefs.h. */ 9499_ACEOF 9500cat confdefs.h >>conftest.$ac_ext 9501cat >>conftest.$ac_ext <<_ACEOF 9502/* end confdefs.h. */ 9503#define _ISOC99_SOURCE 1 9504#include <stdlib.h> 9505int 9506main () 9507{ 9508char *p = (char *)strtoll; char *q = (char *)strtoull; 9509 ; 9510 return 0; 9511} 9512_ACEOF 9513rm -f conftest.$ac_objext 9514if { (ac_try="$ac_compile" 9515case "(($ac_try" in 9516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9517 *) ac_try_echo=$ac_try;; 9518esac 9519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9520$as_echo "$ac_try_echo") >&5 9521 (eval "$ac_compile") 2>conftest.er1 9522 ac_status=$? 9523 grep -v '^ *+' conftest.er1 >conftest.err 9524 rm -f conftest.er1 9525 cat conftest.err >&5 9526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9527 (exit $ac_status); } && { 9528 test -z "$ac_c_werror_flag" || 9529 test ! -s conftest.err 9530 } && test -s conftest.$ac_objext; then 9531 tcl_cv_flag__isoc99_source=yes 9532else 9533 $as_echo "$as_me: failed program was:" >&5 9534sed 's/^/| /' conftest.$ac_ext >&5 9535 9536 tcl_cv_flag__isoc99_source=no 9537fi 9538 9539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9540fi 9541 9542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9543fi 9544 9545 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9546 cat >>confdefs.h <<\_ACEOF 9547#define _ISOC99_SOURCE 1 9548_ACEOF 9549 9550 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9551 fi 9552 9553 9554 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9555 $as_echo_n "(cached) " >&6 9556else 9557 cat >conftest.$ac_ext <<_ACEOF 9558/* confdefs.h. */ 9559_ACEOF 9560cat confdefs.h >>conftest.$ac_ext 9561cat >>conftest.$ac_ext <<_ACEOF 9562/* end confdefs.h. */ 9563#include <sys/stat.h> 9564int 9565main () 9566{ 9567struct stat64 buf; int i = stat64("/", &buf); 9568 ; 9569 return 0; 9570} 9571_ACEOF 9572rm -f conftest.$ac_objext 9573if { (ac_try="$ac_compile" 9574case "(($ac_try" in 9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9576 *) ac_try_echo=$ac_try;; 9577esac 9578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9579$as_echo "$ac_try_echo") >&5 9580 (eval "$ac_compile") 2>conftest.er1 9581 ac_status=$? 9582 grep -v '^ *+' conftest.er1 >conftest.err 9583 rm -f conftest.er1 9584 cat conftest.err >&5 9585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9586 (exit $ac_status); } && { 9587 test -z "$ac_c_werror_flag" || 9588 test ! -s conftest.err 9589 } && test -s conftest.$ac_objext; then 9590 tcl_cv_flag__largefile64_source=no 9591else 9592 $as_echo "$as_me: failed program was:" >&5 9593sed 's/^/| /' conftest.$ac_ext >&5 9594 9595 cat >conftest.$ac_ext <<_ACEOF 9596/* confdefs.h. */ 9597_ACEOF 9598cat confdefs.h >>conftest.$ac_ext 9599cat >>conftest.$ac_ext <<_ACEOF 9600/* end confdefs.h. */ 9601#define _LARGEFILE64_SOURCE 1 9602#include <sys/stat.h> 9603int 9604main () 9605{ 9606struct stat64 buf; int i = stat64("/", &buf); 9607 ; 9608 return 0; 9609} 9610_ACEOF 9611rm -f conftest.$ac_objext 9612if { (ac_try="$ac_compile" 9613case "(($ac_try" in 9614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9615 *) ac_try_echo=$ac_try;; 9616esac 9617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9618$as_echo "$ac_try_echo") >&5 9619 (eval "$ac_compile") 2>conftest.er1 9620 ac_status=$? 9621 grep -v '^ *+' conftest.er1 >conftest.err 9622 rm -f conftest.er1 9623 cat conftest.err >&5 9624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9625 (exit $ac_status); } && { 9626 test -z "$ac_c_werror_flag" || 9627 test ! -s conftest.err 9628 } && test -s conftest.$ac_objext; then 9629 tcl_cv_flag__largefile64_source=yes 9630else 9631 $as_echo "$as_me: failed program was:" >&5 9632sed 's/^/| /' conftest.$ac_ext >&5 9633 9634 tcl_cv_flag__largefile64_source=no 9635fi 9636 9637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9638fi 9639 9640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9641fi 9642 9643 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9644 cat >>confdefs.h <<\_ACEOF 9645#define _LARGEFILE64_SOURCE 1 9646_ACEOF 9647 9648 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9649 fi 9650 9651 if test "x${tcl_flags}" = "x" ; then 9652 { $as_echo "$as_me:$LINENO: result: none" >&5 9653$as_echo "none" >&6; } 9654 else 9655 { $as_echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9656$as_echo "${tcl_flags}" >&6; } 9657 fi 9658 9659 9660 { $as_echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9661$as_echo_n "checking for 64-bit integer type... " >&6; } 9662 if test "${tcl_cv_type_64bit+set}" = set; then 9663 $as_echo_n "(cached) " >&6 9664else 9665 9666 tcl_cv_type_64bit=none 9667 # See if the compiler knows natively about __int64 9668 cat >conftest.$ac_ext <<_ACEOF 9669/* confdefs.h. */ 9670_ACEOF 9671cat confdefs.h >>conftest.$ac_ext 9672cat >>conftest.$ac_ext <<_ACEOF 9673/* end confdefs.h. */ 9674 9675int 9676main () 9677{ 9678__int64 value = (__int64) 0; 9679 ; 9680 return 0; 9681} 9682_ACEOF 9683rm -f conftest.$ac_objext 9684if { (ac_try="$ac_compile" 9685case "(($ac_try" in 9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9687 *) ac_try_echo=$ac_try;; 9688esac 9689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9690$as_echo "$ac_try_echo") >&5 9691 (eval "$ac_compile") 2>conftest.er1 9692 ac_status=$? 9693 grep -v '^ *+' conftest.er1 >conftest.err 9694 rm -f conftest.er1 9695 cat conftest.err >&5 9696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9697 (exit $ac_status); } && { 9698 test -z "$ac_c_werror_flag" || 9699 test ! -s conftest.err 9700 } && test -s conftest.$ac_objext; then 9701 tcl_type_64bit=__int64 9702else 9703 $as_echo "$as_me: failed program was:" >&5 9704sed 's/^/| /' conftest.$ac_ext >&5 9705 9706 tcl_type_64bit="long long" 9707fi 9708 9709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9710 # See if we should use long anyway Note that we substitute in the 9711 # type that is our current guess for a 64-bit type inside this check 9712 # program, so it should be modified only carefully... 9713 cat >conftest.$ac_ext <<_ACEOF 9714/* confdefs.h. */ 9715_ACEOF 9716cat confdefs.h >>conftest.$ac_ext 9717cat >>conftest.$ac_ext <<_ACEOF 9718/* end confdefs.h. */ 9719 9720int 9721main () 9722{ 9723switch (0) { 9724 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9725 } 9726 ; 9727 return 0; 9728} 9729_ACEOF 9730rm -f conftest.$ac_objext 9731if { (ac_try="$ac_compile" 9732case "(($ac_try" in 9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9734 *) ac_try_echo=$ac_try;; 9735esac 9736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9737$as_echo "$ac_try_echo") >&5 9738 (eval "$ac_compile") 2>conftest.er1 9739 ac_status=$? 9740 grep -v '^ *+' conftest.er1 >conftest.err 9741 rm -f conftest.er1 9742 cat conftest.err >&5 9743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9744 (exit $ac_status); } && { 9745 test -z "$ac_c_werror_flag" || 9746 test ! -s conftest.err 9747 } && test -s conftest.$ac_objext; then 9748 tcl_cv_type_64bit=${tcl_type_64bit} 9749else 9750 $as_echo "$as_me: failed program was:" >&5 9751sed 's/^/| /' conftest.$ac_ext >&5 9752 9753 9754fi 9755 9756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9757fi 9758 9759 if test "${tcl_cv_type_64bit}" = none ; then 9760 cat >>confdefs.h <<\_ACEOF 9761#define TCL_WIDE_INT_IS_LONG 1 9762_ACEOF 9763 9764 { $as_echo "$as_me:$LINENO: result: using long" >&5 9765$as_echo "using long" >&6; } 9766 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9767 -a "${TEA_PLATFORM}" = "windows" ; then 9768 # We actually want to use the default tcl.h checks in this 9769 # case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 9770 { $as_echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 9771$as_echo "using Tcl header defaults" >&6; } 9772 else 9773 cat >>confdefs.h <<_ACEOF 9774#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 9775_ACEOF 9776 9777 { $as_echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 9778$as_echo "${tcl_cv_type_64bit}" >&6; } 9779 9780 # Now check for auxiliary declarations 9781 { $as_echo "$as_me:$LINENO: checking for struct dirent64" >&5 9782$as_echo_n "checking for struct dirent64... " >&6; } 9783 if test "${tcl_cv_struct_dirent64+set}" = set; then 9784 $as_echo_n "(cached) " >&6 9785else 9786 9787 cat >conftest.$ac_ext <<_ACEOF 9788/* confdefs.h. */ 9789_ACEOF 9790cat confdefs.h >>conftest.$ac_ext 9791cat >>conftest.$ac_ext <<_ACEOF 9792/* end confdefs.h. */ 9793#include <sys/types.h> 9794#include <sys/dirent.h> 9795int 9796main () 9797{ 9798struct dirent64 p; 9799 ; 9800 return 0; 9801} 9802_ACEOF 9803rm -f conftest.$ac_objext 9804if { (ac_try="$ac_compile" 9805case "(($ac_try" in 9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9807 *) ac_try_echo=$ac_try;; 9808esac 9809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9810$as_echo "$ac_try_echo") >&5 9811 (eval "$ac_compile") 2>conftest.er1 9812 ac_status=$? 9813 grep -v '^ *+' conftest.er1 >conftest.err 9814 rm -f conftest.er1 9815 cat conftest.err >&5 9816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9817 (exit $ac_status); } && { 9818 test -z "$ac_c_werror_flag" || 9819 test ! -s conftest.err 9820 } && test -s conftest.$ac_objext; then 9821 tcl_cv_struct_dirent64=yes 9822else 9823 $as_echo "$as_me: failed program was:" >&5 9824sed 's/^/| /' conftest.$ac_ext >&5 9825 9826 tcl_cv_struct_dirent64=no 9827fi 9828 9829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9830fi 9831 9832 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 9833 cat >>confdefs.h <<\_ACEOF 9834#define HAVE_STRUCT_DIRENT64 1 9835_ACEOF 9836 9837 fi 9838 { $as_echo "$as_me:$LINENO: result: ${tcl_cv_struct_dirent64}" >&5 9839$as_echo "${tcl_cv_struct_dirent64}" >&6; } 9840 9841 { $as_echo "$as_me:$LINENO: checking for struct stat64" >&5 9842$as_echo_n "checking for struct stat64... " >&6; } 9843 if test "${tcl_cv_struct_stat64+set}" = set; then 9844 $as_echo_n "(cached) " >&6 9845else 9846 9847 cat >conftest.$ac_ext <<_ACEOF 9848/* confdefs.h. */ 9849_ACEOF 9850cat confdefs.h >>conftest.$ac_ext 9851cat >>conftest.$ac_ext <<_ACEOF 9852/* end confdefs.h. */ 9853#include <sys/stat.h> 9854int 9855main () 9856{ 9857struct stat64 p; 9858 9859 ; 9860 return 0; 9861} 9862_ACEOF 9863rm -f conftest.$ac_objext 9864if { (ac_try="$ac_compile" 9865case "(($ac_try" in 9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9867 *) ac_try_echo=$ac_try;; 9868esac 9869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9870$as_echo "$ac_try_echo") >&5 9871 (eval "$ac_compile") 2>conftest.er1 9872 ac_status=$? 9873 grep -v '^ *+' conftest.er1 >conftest.err 9874 rm -f conftest.er1 9875 cat conftest.err >&5 9876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9877 (exit $ac_status); } && { 9878 test -z "$ac_c_werror_flag" || 9879 test ! -s conftest.err 9880 } && test -s conftest.$ac_objext; then 9881 tcl_cv_struct_stat64=yes 9882else 9883 $as_echo "$as_me: failed program was:" >&5 9884sed 's/^/| /' conftest.$ac_ext >&5 9885 9886 tcl_cv_struct_stat64=no 9887fi 9888 9889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9890fi 9891 9892 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 9893 cat >>confdefs.h <<\_ACEOF 9894#define HAVE_STRUCT_STAT64 1 9895_ACEOF 9896 9897 fi 9898 { $as_echo "$as_me:$LINENO: result: ${tcl_cv_struct_stat64}" >&5 9899$as_echo "${tcl_cv_struct_stat64}" >&6; } 9900 9901 { $as_echo "$as_me:$LINENO: checking for off64_t" >&5 9902$as_echo_n "checking for off64_t... " >&6; } 9903 if test "${tcl_cv_type_off64_t+set}" = set; then 9904 $as_echo_n "(cached) " >&6 9905else 9906 9907 cat >conftest.$ac_ext <<_ACEOF 9908/* confdefs.h. */ 9909_ACEOF 9910cat confdefs.h >>conftest.$ac_ext 9911cat >>conftest.$ac_ext <<_ACEOF 9912/* end confdefs.h. */ 9913#include <sys/types.h> 9914int 9915main () 9916{ 9917off64_t offset; 9918 9919 ; 9920 return 0; 9921} 9922_ACEOF 9923rm -f conftest.$ac_objext 9924if { (ac_try="$ac_compile" 9925case "(($ac_try" in 9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9927 *) ac_try_echo=$ac_try;; 9928esac 9929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9930$as_echo "$ac_try_echo") >&5 9931 (eval "$ac_compile") 2>conftest.er1 9932 ac_status=$? 9933 grep -v '^ *+' conftest.er1 >conftest.err 9934 rm -f conftest.er1 9935 cat conftest.err >&5 9936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9937 (exit $ac_status); } && { 9938 test -z "$ac_c_werror_flag" || 9939 test ! -s conftest.err 9940 } && test -s conftest.$ac_objext; then 9941 tcl_cv_type_off64_t=yes 9942else 9943 $as_echo "$as_me: failed program was:" >&5 9944sed 's/^/| /' conftest.$ac_ext >&5 9945 9946 tcl_cv_type_off64_t=no 9947fi 9948 9949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9950fi 9951 9952 if test "x${tcl_cv_type_off64_t}" = "xyes" ; then 9953 cat >>confdefs.h <<\_ACEOF 9954#define HAVE_TYPE_OFF64_T 1 9955_ACEOF 9956 9957 fi 9958 { $as_echo "$as_me:$LINENO: result: ${tcl_cv_type_off64_t}" >&5 9959$as_echo "${tcl_cv_type_off64_t}" >&6; } 9960 fi 9961 9962 9963 9964#-------------------------------------------------------------------- 9965# Set the default compiler switches based on the --enable-symbols 9966# option. 9967#-------------------------------------------------------------------- 9968 9969 9970 9971 9972 DBGX="" 9973 9974 { $as_echo "$as_me:$LINENO: checking for build with symbols" >&5 9975$as_echo_n "checking for build with symbols... " >&6; } 9976 # Check whether --enable-symbols was given. 9977if test "${enable_symbols+set}" = set; then 9978 enableval=$enable_symbols; tcl_ok=$enableval 9979else 9980 tcl_ok=no 9981fi 9982 9983 if test "$tcl_ok" = "no"; then 9984 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 9985 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 9986 { $as_echo "$as_me:$LINENO: result: no" >&5 9987$as_echo "no" >&6; } 9988 else 9989 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 9990 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 9991 if test "$tcl_ok" = "yes"; then 9992 { $as_echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 9993$as_echo "yes (standard debugging)" >&6; } 9994 fi 9995 fi 9996 if test "${TEA_PLATFORM}" != "windows" ; then 9997 LDFLAGS_DEFAULT="${LDFLAGS}" 9998 fi 9999 10000 10001 10002 10003 10004 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10005 cat >>confdefs.h <<\_ACEOF 10006#define TCL_MEM_DEBUG 1 10007_ACEOF 10008 10009 fi 10010 10011 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10012 if test "$tcl_ok" = "all"; then 10013 { $as_echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10014$as_echo "enabled symbols mem debugging" >&6; } 10015 else 10016 { $as_echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10017$as_echo "enabled $tcl_ok debugging" >&6; } 10018 fi 10019 fi 10020 10021 10022#-------------------------------------------------------------------- 10023# Everyone should be linking against the Tcl stub library. If you 10024# can't for some reason, remove this definition. If you aren't using 10025# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10026# link against the non-stubbed Tcl library. 10027#-------------------------------------------------------------------- 10028 10029if test "${SHARED_BUILD}" = "1" ; then 10030 cat >>confdefs.h <<\_ACEOF 10031#define USE_TCL_STUBS 1 10032_ACEOF 10033 10034fi 10035 10036#-------------------------------------------------------------------- 10037# This macro generates a line to use when building a library. It 10038# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10039# and TEA_LOAD_TCLCONFIG macros above. 10040#-------------------------------------------------------------------- 10041 10042 10043 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10044 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10045 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10046 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10047 else 10048 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10049 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS} \${TCL_SHLIB_LD_EXTRAS}" 10050 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10051 fi 10052 10053 if test "${SHARED_BUILD}" = "1" ; then 10054 MAKE_LIB="${MAKE_SHARED_LIB} " 10055 else 10056 MAKE_LIB="${MAKE_STATIC_LIB} " 10057 fi 10058 10059 #-------------------------------------------------------------------- 10060 # Shared libraries and static libraries have different names. 10061 # Use the double eval to make sure any variables in the suffix is 10062 # substituted. (@@@ Might not be necessary anymore) 10063 #-------------------------------------------------------------------- 10064 10065 if test "${TEA_PLATFORM}" = "windows" ; then 10066 if test "${SHARED_BUILD}" = "1" ; then 10067 # We force the unresolved linking of symbols that are really in 10068 # the private libraries of Tcl and Tk. 10069 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10070 if test x"${TK_BIN_DIR}" != x ; then 10071 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10072 fi 10073 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10074 else 10075 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10076 fi 10077 # Some packages build there own stubs libraries 10078 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10079 # These aren't needed on Windows (either MSVC or gcc) 10080 RANLIB=: 10081 RANLIB_STUB=: 10082 else 10083 RANLIB_STUB="${RANLIB}" 10084 if test "${SHARED_BUILD}" = "1" ; then 10085 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10086 if test x"${TK_BIN_DIR}" != x ; then 10087 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10088 fi 10089 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10090 RANLIB=: 10091 else 10092 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10093 fi 10094 # Some packages build there own stubs libraries 10095 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10096 fi 10097 10098 # These are escaped so that only CFLAGS is picked up at configure time. 10099 # The other values will be substituted at make time. 10100 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10101 if test "${SHARED_BUILD}" = "1" ; then 10102 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10103 fi 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113#-------------------------------------------------------------------- 10114# __CHANGE__ 10115# Change the name from exampeA_LIB_FILE to match your package name. 10116# Use the stub_LIB_FILE substitution if your package creates a stub 10117# library. 10118#-------------------------------------------------------------------- 10119 10120tclgeomap_LIB_FILE=${PKG_LIB_FILE} 10121 10122 10123#-------------------------------------------------------------------- 10124# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 10125# file during the install process. Don't run the TCLSH_PROG through 10126# ${CYGPATH} because it's being used directly by make. 10127# Require that we use a tclsh shell version 8.2 or later since earlier 10128# versions have bugs in the pkg_mkIndex routine. 10129#-------------------------------------------------------------------- 10130 10131 10132 # Allow the user to provide this setting in the env 10133 if test "x${TCLSH_PROG}" = "x" ; then 10134 { $as_echo "$as_me:$LINENO: checking for tclsh" >&5 10135$as_echo_n "checking for tclsh... " >&6; } 10136 10137 if test "${ac_cv_path_tclsh+set}" = set; then 10138 $as_echo_n "(cached) " >&6 10139else 10140 10141 search_path=`echo ${PATH} | sed -e 's/:/ /g'` 10142 if test "${TEA_PLATFORM}" != "windows" -o \ 10143 \( "$do64bit_ok" = "no" -a "$doWince" = "no" \) ; then 10144 # Do not allow target tclsh in known cross-compile builds, 10145 # as we need one we can run on this system 10146 search_path="${TCL_BIN_DIR} ${TCL_BIN_DIR}/../bin ${exec_prefix}/bin ${prefix}/bin ${search_path}" 10147 fi 10148 for dir in $search_path ; do 10149 for j in `ls -r $dir/tclsh[8-9]*${EXEEXT} 2> /dev/null` \ 10150 `ls -r $dir/tclsh*${EXEEXT} 2> /dev/null` ; do 10151 if test x"$ac_cv_path_tclsh" = x ; then 10152 if test -f "$j" ; then 10153 ac_cv_path_tclsh=$j 10154 break 10155 fi 10156 fi 10157 done 10158 done 10159 10160fi 10161 10162 10163 if test -f "$ac_cv_path_tclsh" ; then 10164 TCLSH_PROG=$ac_cv_path_tclsh 10165 { $as_echo "$as_me:$LINENO: result: $TCLSH_PROG" >&5 10166$as_echo "$TCLSH_PROG" >&6; } 10167 else 10168 { { $as_echo "$as_me:$LINENO: error: No tclsh found in PATH: $search_path" >&5 10169$as_echo "$as_me: error: No tclsh found in PATH: $search_path" >&2;} 10170 { (exit 1); exit 1; }; } 10171 fi 10172 fi 10173 10174 10175 10176# pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib) 10177eval pkglibdir="${libdir}/${PACKAGE_NAME}" 10178if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then 10179 eval tclgeomap_LIB_FLAG="-ltclgeomap${DBGX}" 10180else 10181 eval tclgeomap_LIB_FLAG="-ltclgeomap`echo | tr -d .`${DBGX}" 10182fi 10183tclgeomap_BUILD_LIB_SPEC="-L`pwd` ${tclgeomap_LIB_FLAG}" 10184tclgeomap_LIB_SPEC="-L${pkglibdir} ${tclgeomap_LIB_FLAG}" 10185 10186 10187 10188 10189 10190 10191# tclgeomap_SRC_DIR must be a fully qualified path 10192eval tclgeomap_SRC_DIR="$srcdir" 10193tclgeomap_SRC_DIR=`cd "${tclgeomap_SRC_DIR}"; pwd` 10194 10195 10196#-------------------------------------------------------------------- 10197# Finally, substitute all of the various values into the Makefile. 10198#-------------------------------------------------------------------- 10199 10200ac_config_files="$ac_config_files Makefile pkgIndex.tcl" 10201 10202cat >confcache <<\_ACEOF 10203# This file is a shell script that caches the results of configure 10204# tests run on this system so they can be shared between configure 10205# scripts and configure runs, see configure's option --config-cache. 10206# It is not useful on other systems. If it contains results you don't 10207# want to keep, you may remove or edit it. 10208# 10209# config.status only pays attention to the cache file if you give it 10210# the --recheck option to rerun configure. 10211# 10212# `ac_cv_env_foo' variables (set or unset) will be overridden when 10213# loading this file, other *unset* `ac_cv_foo' will be assigned the 10214# following values. 10215 10216_ACEOF 10217 10218# The following way of writing the cache mishandles newlines in values, 10219# but we know of no workaround that is simple, portable, and efficient. 10220# So, we kill variables containing newlines. 10221# Ultrix sh set writes to stderr and can't be redirected directly, 10222# and sets the high bit in the cache file unless we assign to the vars. 10223( 10224 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10225 eval ac_val=\$$ac_var 10226 case $ac_val in #( 10227 *${as_nl}*) 10228 case $ac_var in #( 10229 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 10230$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10231 esac 10232 case $ac_var in #( 10233 _ | IFS | as_nl) ;; #( 10234 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10235 *) $as_unset $ac_var ;; 10236 esac ;; 10237 esac 10238 done 10239 10240 (set) 2>&1 | 10241 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10242 *${as_nl}ac_space=\ *) 10243 # `set' does not quote correctly, so add quotes (double-quote 10244 # substitution turns \\\\ into \\, and sed turns \\ into \). 10245 sed -n \ 10246 "s/'/'\\\\''/g; 10247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10248 ;; #( 10249 *) 10250 # `set' quotes correctly as required by POSIX, so do not add quotes. 10251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10252 ;; 10253 esac | 10254 sort 10255) | 10256 sed ' 10257 /^ac_cv_env_/b end 10258 t clear 10259 :clear 10260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10261 t end 10262 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10263 :end' >>confcache 10264if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10265 if test -w "$cache_file"; then 10266 test "x$cache_file" != "x/dev/null" && 10267 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 10268$as_echo "$as_me: updating cache $cache_file" >&6;} 10269 cat confcache >$cache_file 10270 else 10271 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10272$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10273 fi 10274fi 10275rm -f confcache 10276 10277test "x$prefix" = xNONE && prefix=$ac_default_prefix 10278# Let make expand exec_prefix. 10279test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10280 10281# Transform confdefs.h into DEFS. 10282# Protect against shell expansion while executing Makefile rules. 10283# Protect against Makefile macro expansion. 10284# 10285# If the first sed substitution is executed (which looks for macros that 10286# take arguments), then branch to the quote section. Otherwise, 10287# look for a macro that doesn't take arguments. 10288ac_script=' 10289:mline 10290/\\$/{ 10291 N 10292 s,\\\n,, 10293 b mline 10294} 10295t clear 10296:clear 10297s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10298t quote 10299s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10300t quote 10301b any 10302:quote 10303s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10304s/\[/\\&/g 10305s/\]/\\&/g 10306s/\$/$$/g 10307H 10308:any 10309${ 10310 g 10311 s/^\n// 10312 s/\n/ /g 10313 p 10314} 10315' 10316DEFS=`sed -n "$ac_script" confdefs.h` 10317 10318 10319ac_libobjs= 10320ac_ltlibobjs= 10321for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10322 # 1. Remove the extension, and $U if already installed. 10323 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10324 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10325 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10326 # will be set to the directory where LIBOBJS objects are built. 10327 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10328 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 10329done 10330LIBOBJS=$ac_libobjs 10331 10332LTLIBOBJS=$ac_ltlibobjs 10333 10334 10335 10336 10337: ${CONFIG_STATUS=./config.status} 10338ac_write_fail=0 10339ac_clean_files_save=$ac_clean_files 10340ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10341{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10342$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10343cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10344#! $SHELL 10345# Generated by $as_me. 10346# Run this file to recreate the current configuration. 10347# Compiler output produced by configure, useful for debugging 10348# configure, is in config.log if it exists. 10349 10350debug=false 10351ac_cs_recheck=false 10352ac_cs_silent=false 10353SHELL=\${CONFIG_SHELL-$SHELL} 10354_ACEOF 10355 10356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10357## --------------------- ## 10358## M4sh Initialization. ## 10359## --------------------- ## 10360 10361# Be more Bourne compatible 10362DUALCASE=1; export DUALCASE # for MKS sh 10363if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10364 emulate sh 10365 NULLCMD=: 10366 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10367 # is contrary to our usage. Disable this feature. 10368 alias -g '${1+"$@"}'='"$@"' 10369 setopt NO_GLOB_SUBST 10370else 10371 case `(set -o) 2>/dev/null` in 10372 *posix*) set -o posix ;; 10373esac 10374 10375fi 10376 10377 10378 10379 10380# PATH needs CR 10381# Avoid depending upon Character Ranges. 10382as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10383as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10384as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10385as_cr_digits='0123456789' 10386as_cr_alnum=$as_cr_Letters$as_cr_digits 10387 10388as_nl=' 10389' 10390export as_nl 10391# Printing a long string crashes Solaris 7 /usr/bin/printf. 10392as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10393as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10394as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10395if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10396 as_echo='printf %s\n' 10397 as_echo_n='printf %s' 10398else 10399 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10400 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10401 as_echo_n='/usr/ucb/echo -n' 10402 else 10403 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10404 as_echo_n_body='eval 10405 arg=$1; 10406 case $arg in 10407 *"$as_nl"*) 10408 expr "X$arg" : "X\\(.*\\)$as_nl"; 10409 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10410 esac; 10411 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10412 ' 10413 export as_echo_n_body 10414 as_echo_n='sh -c $as_echo_n_body as_echo' 10415 fi 10416 export as_echo_body 10417 as_echo='sh -c $as_echo_body as_echo' 10418fi 10419 10420# The user is always right. 10421if test "${PATH_SEPARATOR+set}" != set; then 10422 PATH_SEPARATOR=: 10423 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10424 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10425 PATH_SEPARATOR=';' 10426 } 10427fi 10428 10429# Support unset when possible. 10430if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10431 as_unset=unset 10432else 10433 as_unset=false 10434fi 10435 10436 10437# IFS 10438# We need space, tab and new line, in precisely that order. Quoting is 10439# there to prevent editors from complaining about space-tab. 10440# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10441# splitting by setting IFS to empty value.) 10442IFS=" "" $as_nl" 10443 10444# Find who we are. Look in the path if we contain no directory separator. 10445case $0 in 10446 *[\\/]* ) as_myself=$0 ;; 10447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10448for as_dir in $PATH 10449do 10450 IFS=$as_save_IFS 10451 test -z "$as_dir" && as_dir=. 10452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10453done 10454IFS=$as_save_IFS 10455 10456 ;; 10457esac 10458# We did not find ourselves, most probably we were run as `sh COMMAND' 10459# in which case we are not to be found in the path. 10460if test "x$as_myself" = x; then 10461 as_myself=$0 10462fi 10463if test ! -f "$as_myself"; then 10464 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10465 { (exit 1); exit 1; } 10466fi 10467 10468# Work around bugs in pre-3.0 UWIN ksh. 10469for as_var in ENV MAIL MAILPATH 10470do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10471done 10472PS1='$ ' 10473PS2='> ' 10474PS4='+ ' 10475 10476# NLS nuisances. 10477LC_ALL=C 10478export LC_ALL 10479LANGUAGE=C 10480export LANGUAGE 10481 10482# Required to use basename. 10483if expr a : '\(a\)' >/dev/null 2>&1 && 10484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10485 as_expr=expr 10486else 10487 as_expr=false 10488fi 10489 10490if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10491 as_basename=basename 10492else 10493 as_basename=false 10494fi 10495 10496 10497# Name of the executable. 10498as_me=`$as_basename -- "$0" || 10499$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10500 X"$0" : 'X\(//\)$' \| \ 10501 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10502$as_echo X/"$0" | 10503 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10504 s//\1/ 10505 q 10506 } 10507 /^X\/\(\/\/\)$/{ 10508 s//\1/ 10509 q 10510 } 10511 /^X\/\(\/\).*/{ 10512 s//\1/ 10513 q 10514 } 10515 s/.*/./; q'` 10516 10517# CDPATH. 10518$as_unset CDPATH 10519 10520 10521 10522 as_lineno_1=$LINENO 10523 as_lineno_2=$LINENO 10524 test "x$as_lineno_1" != "x$as_lineno_2" && 10525 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 10526 10527 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10528 # uniformly replaced by the line number. The first 'sed' inserts a 10529 # line-number line after each line using $LINENO; the second 'sed' 10530 # does the real work. The second script uses 'N' to pair each 10531 # line-number line with the line containing $LINENO, and appends 10532 # trailing '-' during substitution so that $LINENO is not a special 10533 # case at line end. 10534 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10535 # scripts with optimization help from Paolo Bonzini. Blame Lee 10536 # E. McMahon (1931-1989) for sed's syntax. :-) 10537 sed -n ' 10538 p 10539 /[$]LINENO/= 10540 ' <$as_myself | 10541 sed ' 10542 s/[$]LINENO.*/&-/ 10543 t lineno 10544 b 10545 :lineno 10546 N 10547 :loop 10548 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 10549 t loop 10550 s/-\n.*// 10551 ' >$as_me.lineno && 10552 chmod +x "$as_me.lineno" || 10553 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 10554 { (exit 1); exit 1; }; } 10555 10556 # Don't try to exec as it changes $[0], causing all sort of problems 10557 # (the dirname of $[0] is not the place where we might find the 10558 # original and so on. Autoconf is especially sensitive to this). 10559 . "./$as_me.lineno" 10560 # Exit status is that of the last command. 10561 exit 10562} 10563 10564 10565if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10566 as_dirname=dirname 10567else 10568 as_dirname=false 10569fi 10570 10571ECHO_C= ECHO_N= ECHO_T= 10572case `echo -n x` in 10573-n*) 10574 case `echo 'x\c'` in 10575 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10576 *) ECHO_C='\c';; 10577 esac;; 10578*) 10579 ECHO_N='-n';; 10580esac 10581if expr a : '\(a\)' >/dev/null 2>&1 && 10582 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10583 as_expr=expr 10584else 10585 as_expr=false 10586fi 10587 10588rm -f conf$$ conf$$.exe conf$$.file 10589if test -d conf$$.dir; then 10590 rm -f conf$$.dir/conf$$.file 10591else 10592 rm -f conf$$.dir 10593 mkdir conf$$.dir 2>/dev/null 10594fi 10595if (echo >conf$$.file) 2>/dev/null; then 10596 if ln -s conf$$.file conf$$ 2>/dev/null; then 10597 as_ln_s='ln -s' 10598 # ... but there are two gotchas: 10599 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10600 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10601 # In both cases, we have to default to `cp -p'. 10602 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10603 as_ln_s='cp -p' 10604 elif ln conf$$.file conf$$ 2>/dev/null; then 10605 as_ln_s=ln 10606 else 10607 as_ln_s='cp -p' 10608 fi 10609else 10610 as_ln_s='cp -p' 10611fi 10612rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10613rmdir conf$$.dir 2>/dev/null 10614 10615if mkdir -p . 2>/dev/null; then 10616 as_mkdir_p=: 10617else 10618 test -d ./-p && rmdir ./-p 10619 as_mkdir_p=false 10620fi 10621 10622if test -x / >/dev/null 2>&1; then 10623 as_test_x='test -x' 10624else 10625 if ls -dL / >/dev/null 2>&1; then 10626 as_ls_L_option=L 10627 else 10628 as_ls_L_option= 10629 fi 10630 as_test_x=' 10631 eval sh -c '\'' 10632 if test -d "$1"; then 10633 test -d "$1/."; 10634 else 10635 case $1 in 10636 -*)set "./$1";; 10637 esac; 10638 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 10639 ???[sx]*):;;*)false;;esac;fi 10640 '\'' sh 10641 ' 10642fi 10643as_executable_p=$as_test_x 10644 10645# Sed expression to map a string onto a valid CPP name. 10646as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10647 10648# Sed expression to map a string onto a valid variable name. 10649as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10650 10651 10652exec 6>&1 10653 10654# Save the log message, to keep $[0] and so on meaningful, and to 10655# report actual input values of CONFIG_FILES etc. instead of their 10656# values after options handling. 10657ac_log=" 10658This file was extended by tclgeomap $as_me 2.11.6, which was 10659generated by GNU Autoconf 2.63. Invocation command line was 10660 10661 CONFIG_FILES = $CONFIG_FILES 10662 CONFIG_HEADERS = $CONFIG_HEADERS 10663 CONFIG_LINKS = $CONFIG_LINKS 10664 CONFIG_COMMANDS = $CONFIG_COMMANDS 10665 $ $0 $@ 10666 10667on `(hostname || uname -n) 2>/dev/null | sed 1q` 10668" 10669 10670_ACEOF 10671 10672case $ac_config_files in *" 10673"*) set x $ac_config_files; shift; ac_config_files=$*;; 10674esac 10675 10676 10677 10678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10679# Files that config.status was made for. 10680config_files="$ac_config_files" 10681 10682_ACEOF 10683 10684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10685ac_cs_usage="\ 10686\`$as_me' instantiates files from templates according to the 10687current configuration. 10688 10689Usage: $0 [OPTION]... [FILE]... 10690 10691 -h, --help print this help, then exit 10692 -V, --version print version number and configuration settings, then exit 10693 -q, --quiet, --silent 10694 do not print progress messages 10695 -d, --debug don't remove temporary files 10696 --recheck update $as_me by reconfiguring in the same conditions 10697 --file=FILE[:TEMPLATE] 10698 instantiate the configuration file FILE 10699 10700Configuration files: 10701$config_files 10702 10703Report bugs to <bug-autoconf@gnu.org>." 10704 10705_ACEOF 10706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10707ac_cs_version="\\ 10708tclgeomap config.status 2.11.6 10709configured by $0, generated by GNU Autoconf 2.63, 10710 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 10711 10712Copyright (C) 2008 Free Software Foundation, Inc. 10713This config.status script is free software; the Free Software Foundation 10714gives unlimited permission to copy, distribute and modify it." 10715 10716ac_pwd='$ac_pwd' 10717srcdir='$srcdir' 10718INSTALL='$INSTALL' 10719test -n "\$AWK" || AWK=awk 10720_ACEOF 10721 10722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10723# The default lists apply if the user does not specify any file. 10724ac_need_defaults=: 10725while test $# != 0 10726do 10727 case $1 in 10728 --*=*) 10729 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10730 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10731 ac_shift=: 10732 ;; 10733 *) 10734 ac_option=$1 10735 ac_optarg=$2 10736 ac_shift=shift 10737 ;; 10738 esac 10739 10740 case $ac_option in 10741 # Handling of the options. 10742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10743 ac_cs_recheck=: ;; 10744 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10745 $as_echo "$ac_cs_version"; exit ;; 10746 --debug | --debu | --deb | --de | --d | -d ) 10747 debug=: ;; 10748 --file | --fil | --fi | --f ) 10749 $ac_shift 10750 case $ac_optarg in 10751 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10752 esac 10753 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 10754 ac_need_defaults=false;; 10755 --he | --h | --help | --hel | -h ) 10756 $as_echo "$ac_cs_usage"; exit ;; 10757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10758 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10759 ac_cs_silent=: ;; 10760 10761 # This is an error. 10762 -*) { $as_echo "$as_me: error: unrecognized option: $1 10763Try \`$0 --help' for more information." >&2 10764 { (exit 1); exit 1; }; } ;; 10765 10766 *) ac_config_targets="$ac_config_targets $1" 10767 ac_need_defaults=false ;; 10768 10769 esac 10770 shift 10771done 10772 10773ac_configure_extra_args= 10774 10775if $ac_cs_silent; then 10776 exec 6>/dev/null 10777 ac_configure_extra_args="$ac_configure_extra_args --silent" 10778fi 10779 10780_ACEOF 10781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10782if \$ac_cs_recheck; then 10783 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10784 shift 10785 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 10786 CONFIG_SHELL='$SHELL' 10787 export CONFIG_SHELL 10788 exec "\$@" 10789fi 10790 10791_ACEOF 10792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10793exec 5>>config.log 10794{ 10795 echo 10796 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10797## Running $as_me. ## 10798_ASBOX 10799 $as_echo "$ac_log" 10800} >&5 10801 10802_ACEOF 10803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10804_ACEOF 10805 10806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10807 10808# Handling of arguments. 10809for ac_config_target in $ac_config_targets 10810do 10811 case $ac_config_target in 10812 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10813 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 10814 10815 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 10816$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 10817 { (exit 1); exit 1; }; };; 10818 esac 10819done 10820 10821 10822# If the user did not use the arguments to specify the items to instantiate, 10823# then the envvar interface is used. Set only those that are not. 10824# We use the long form for the default assignment because of an extremely 10825# bizarre bug on SunOS 4.1.3. 10826if $ac_need_defaults; then 10827 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10828fi 10829 10830# Have a temporary directory for convenience. Make it in the build tree 10831# simply because there is no reason against having it here, and in addition, 10832# creating and moving files from /tmp can sometimes cause problems. 10833# Hook for its removal unless debugging. 10834# Note that there is a small window in which the directory will not be cleaned: 10835# after its creation but before its name has been assigned to `$tmp'. 10836$debug || 10837{ 10838 tmp= 10839 trap 'exit_status=$? 10840 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 10841' 0 10842 trap '{ (exit 1); exit 1; }' 1 2 13 15 10843} 10844# Create a (secure) tmp directory for tmp files. 10845 10846{ 10847 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10848 test -n "$tmp" && test -d "$tmp" 10849} || 10850{ 10851 tmp=./conf$$-$RANDOM 10852 (umask 077 && mkdir "$tmp") 10853} || 10854{ 10855 $as_echo "$as_me: cannot create a temporary directory in ." >&2 10856 { (exit 1); exit 1; } 10857} 10858 10859# Set up the scripts for CONFIG_FILES section. 10860# No need to generate them if there are no CONFIG_FILES. 10861# This happens for instance with `./config.status config.h'. 10862if test -n "$CONFIG_FILES"; then 10863 10864 10865ac_cr=' 10866' 10867ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 10868if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 10869 ac_cs_awk_cr='\\r' 10870else 10871 ac_cs_awk_cr=$ac_cr 10872fi 10873 10874echo 'BEGIN {' >"$tmp/subs1.awk" && 10875_ACEOF 10876 10877 10878{ 10879 echo "cat >conf$$subs.awk <<_ACEOF" && 10880 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 10881 echo "_ACEOF" 10882} >conf$$subs.sh || 10883 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 10884$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 10885 { (exit 1); exit 1; }; } 10886ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 10887ac_delim='%!_!# ' 10888for ac_last_try in false false false false false :; do 10889 . ./conf$$subs.sh || 10890 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 10891$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 10892 { (exit 1); exit 1; }; } 10893 10894 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 10895 if test $ac_delim_n = $ac_delim_num; then 10896 break 10897 elif $ac_last_try; then 10898 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 10899$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 10900 { (exit 1); exit 1; }; } 10901 else 10902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10903 fi 10904done 10905rm -f conf$$subs.sh 10906 10907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10908cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 10909_ACEOF 10910sed -n ' 10911h 10912s/^/S["/; s/!.*/"]=/ 10913p 10914g 10915s/^[^!]*!// 10916:repl 10917t repl 10918s/'"$ac_delim"'$// 10919t delim 10920:nl 10921h 10922s/\(.\{148\}\).*/\1/ 10923t more1 10924s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 10925p 10926n 10927b repl 10928:more1 10929s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10930p 10931g 10932s/.\{148\}// 10933t nl 10934:delim 10935h 10936s/\(.\{148\}\).*/\1/ 10937t more2 10938s/["\\]/\\&/g; s/^/"/; s/$/"/ 10939p 10940b 10941:more2 10942s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10943p 10944g 10945s/.\{148\}// 10946t delim 10947' <conf$$subs.awk | sed ' 10948/^[^""]/{ 10949 N 10950 s/\n// 10951} 10952' >>$CONFIG_STATUS || ac_write_fail=1 10953rm -f conf$$subs.awk 10954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10955_ACAWK 10956cat >>"\$tmp/subs1.awk" <<_ACAWK && 10957 for (key in S) S_is_set[key] = 1 10958 FS = "" 10959 10960} 10961{ 10962 line = $ 0 10963 nfields = split(line, field, "@") 10964 substed = 0 10965 len = length(field[1]) 10966 for (i = 2; i < nfields; i++) { 10967 key = field[i] 10968 keylen = length(key) 10969 if (S_is_set[key]) { 10970 value = S[key] 10971 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 10972 len += length(value) + length(field[++i]) 10973 substed = 1 10974 } else 10975 len += 1 + keylen 10976 } 10977 10978 print line 10979} 10980 10981_ACAWK 10982_ACEOF 10983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10984if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 10985 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 10986else 10987 cat 10988fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 10989 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 10990$as_echo "$as_me: error: could not setup config files machinery" >&2;} 10991 { (exit 1); exit 1; }; } 10992_ACEOF 10993 10994# VPATH may cause trouble with some makes, so we remove $(srcdir), 10995# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 10996# trailing colons and then remove the whole line if VPATH becomes empty 10997# (actually we leave an empty line to preserve line numbers). 10998if test "x$srcdir" = x.; then 10999 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11000s/:*\$(srcdir):*/:/ 11001s/:*\${srcdir}:*/:/ 11002s/:*@srcdir@:*/:/ 11003s/^\([^=]*=[ ]*\):*/\1/ 11004s/:*$// 11005s/^[^=]*=[ ]*$// 11006}' 11007fi 11008 11009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11010fi # test -n "$CONFIG_FILES" 11011 11012 11013eval set X " :F $CONFIG_FILES " 11014shift 11015for ac_tag 11016do 11017 case $ac_tag in 11018 :[FHLC]) ac_mode=$ac_tag; continue;; 11019 esac 11020 case $ac_mode$ac_tag in 11021 :[FHL]*:*);; 11022 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 11023$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 11024 { (exit 1); exit 1; }; };; 11025 :[FH]-) ac_tag=-:-;; 11026 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11027 esac 11028 ac_save_IFS=$IFS 11029 IFS=: 11030 set x $ac_tag 11031 IFS=$ac_save_IFS 11032 shift 11033 ac_file=$1 11034 shift 11035 11036 case $ac_mode in 11037 :L) ac_source=$1;; 11038 :[FH]) 11039 ac_file_inputs= 11040 for ac_f 11041 do 11042 case $ac_f in 11043 -) ac_f="$tmp/stdin";; 11044 *) # Look for the file first in the build tree, then in the source tree 11045 # (if the path is not absolute). The absolute path cannot be DOS-style, 11046 # because $ac_f cannot contain `:'. 11047 test -f "$ac_f" || 11048 case $ac_f in 11049 [\\/$]*) false;; 11050 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11051 esac || 11052 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11053$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11054 { (exit 1); exit 1; }; };; 11055 esac 11056 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11057 ac_file_inputs="$ac_file_inputs '$ac_f'" 11058 done 11059 11060 # Let's still pretend it is `configure' which instantiates (i.e., don't 11061 # use $as_me), people would be surprised to read: 11062 # /* config.h. Generated by config.status. */ 11063 configure_input='Generated from '` 11064 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11065 `' by configure.' 11066 if test x"$ac_file" != x-; then 11067 configure_input="$ac_file. $configure_input" 11068 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 11069$as_echo "$as_me: creating $ac_file" >&6;} 11070 fi 11071 # Neutralize special characters interpreted by sed in replacement strings. 11072 case $configure_input in #( 11073 *\&* | *\|* | *\\* ) 11074 ac_sed_conf_input=`$as_echo "$configure_input" | 11075 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11076 *) ac_sed_conf_input=$configure_input;; 11077 esac 11078 11079 case $ac_tag in 11080 *:-:* | *:-) cat >"$tmp/stdin" \ 11081 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 11082$as_echo "$as_me: error: could not create $ac_file" >&2;} 11083 { (exit 1); exit 1; }; } ;; 11084 esac 11085 ;; 11086 esac 11087 11088 ac_dir=`$as_dirname -- "$ac_file" || 11089$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11090 X"$ac_file" : 'X\(//\)[^/]' \| \ 11091 X"$ac_file" : 'X\(//\)$' \| \ 11092 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11093$as_echo X"$ac_file" | 11094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11095 s//\1/ 11096 q 11097 } 11098 /^X\(\/\/\)[^/].*/{ 11099 s//\1/ 11100 q 11101 } 11102 /^X\(\/\/\)$/{ 11103 s//\1/ 11104 q 11105 } 11106 /^X\(\/\).*/{ 11107 s//\1/ 11108 q 11109 } 11110 s/.*/./; q'` 11111 { as_dir="$ac_dir" 11112 case $as_dir in #( 11113 -*) as_dir=./$as_dir;; 11114 esac 11115 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11116 as_dirs= 11117 while :; do 11118 case $as_dir in #( 11119 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11120 *) as_qdir=$as_dir;; 11121 esac 11122 as_dirs="'$as_qdir' $as_dirs" 11123 as_dir=`$as_dirname -- "$as_dir" || 11124$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11125 X"$as_dir" : 'X\(//\)[^/]' \| \ 11126 X"$as_dir" : 'X\(//\)$' \| \ 11127 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11128$as_echo X"$as_dir" | 11129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11130 s//\1/ 11131 q 11132 } 11133 /^X\(\/\/\)[^/].*/{ 11134 s//\1/ 11135 q 11136 } 11137 /^X\(\/\/\)$/{ 11138 s//\1/ 11139 q 11140 } 11141 /^X\(\/\).*/{ 11142 s//\1/ 11143 q 11144 } 11145 s/.*/./; q'` 11146 test -d "$as_dir" && break 11147 done 11148 test -z "$as_dirs" || eval "mkdir $as_dirs" 11149 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11150$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 11151 { (exit 1); exit 1; }; }; } 11152 ac_builddir=. 11153 11154case "$ac_dir" in 11155.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11156*) 11157 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11158 # A ".." for each directory in $ac_dir_suffix. 11159 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11160 case $ac_top_builddir_sub in 11161 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11162 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11163 esac ;; 11164esac 11165ac_abs_top_builddir=$ac_pwd 11166ac_abs_builddir=$ac_pwd$ac_dir_suffix 11167# for backward compatibility: 11168ac_top_builddir=$ac_top_build_prefix 11169 11170case $srcdir in 11171 .) # We are building in place. 11172 ac_srcdir=. 11173 ac_top_srcdir=$ac_top_builddir_sub 11174 ac_abs_top_srcdir=$ac_pwd ;; 11175 [\\/]* | ?:[\\/]* ) # Absolute name. 11176 ac_srcdir=$srcdir$ac_dir_suffix; 11177 ac_top_srcdir=$srcdir 11178 ac_abs_top_srcdir=$srcdir ;; 11179 *) # Relative name. 11180 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11181 ac_top_srcdir=$ac_top_build_prefix$srcdir 11182 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11183esac 11184ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11185 11186 11187 case $ac_mode in 11188 :F) 11189 # 11190 # CONFIG_FILE 11191 # 11192 11193 case $INSTALL in 11194 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11195 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11196 esac 11197_ACEOF 11198 11199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11200# If the template does not know about datarootdir, expand it. 11201# FIXME: This hack should be removed a few years after 2.60. 11202ac_datarootdir_hack=; ac_datarootdir_seen= 11203 11204ac_sed_dataroot=' 11205/datarootdir/ { 11206 p 11207 q 11208} 11209/@datadir@/p 11210/@docdir@/p 11211/@infodir@/p 11212/@localedir@/p 11213/@mandir@/p 11214' 11215case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11216*datarootdir*) ac_datarootdir_seen=yes;; 11217*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11218 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11219$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11220_ACEOF 11221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11222 ac_datarootdir_hack=' 11223 s&@datadir@&$datadir&g 11224 s&@docdir@&$docdir&g 11225 s&@infodir@&$infodir&g 11226 s&@localedir@&$localedir&g 11227 s&@mandir@&$mandir&g 11228 s&\\\${datarootdir}&$datarootdir&g' ;; 11229esac 11230_ACEOF 11231 11232# Neutralize VPATH when `$srcdir' = `.'. 11233# Shell code in configure.ac might set extrasub. 11234# FIXME: do we really want to maintain this feature? 11235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11236ac_sed_extra="$ac_vpsub 11237$extrasub 11238_ACEOF 11239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11240:t 11241/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11242s|@configure_input@|$ac_sed_conf_input|;t t 11243s&@top_builddir@&$ac_top_builddir_sub&;t t 11244s&@top_build_prefix@&$ac_top_build_prefix&;t t 11245s&@srcdir@&$ac_srcdir&;t t 11246s&@abs_srcdir@&$ac_abs_srcdir&;t t 11247s&@top_srcdir@&$ac_top_srcdir&;t t 11248s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11249s&@builddir@&$ac_builddir&;t t 11250s&@abs_builddir@&$ac_abs_builddir&;t t 11251s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11252s&@INSTALL@&$ac_INSTALL&;t t 11253$ac_datarootdir_hack 11254" 11255eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 11256 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 11257$as_echo "$as_me: error: could not create $ac_file" >&2;} 11258 { (exit 1); exit 1; }; } 11259 11260test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11261 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 11262 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11263 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11264which seems to be undefined. Please make sure it is defined." >&5 11265$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11266which seems to be undefined. Please make sure it is defined." >&2;} 11267 11268 rm -f "$tmp/stdin" 11269 case $ac_file in 11270 -) cat "$tmp/out" && rm -f "$tmp/out";; 11271 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 11272 esac \ 11273 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 11274$as_echo "$as_me: error: could not create $ac_file" >&2;} 11275 { (exit 1); exit 1; }; } 11276 ;; 11277 11278 11279 11280 esac 11281 11282done # for ac_tag 11283 11284 11285{ (exit 0); exit 0; } 11286_ACEOF 11287chmod +x $CONFIG_STATUS 11288ac_clean_files=$ac_clean_files_save 11289 11290test $ac_write_fail = 0 || 11291 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 11292$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 11293 { (exit 1); exit 1; }; } 11294 11295 11296# configure is writing to config.log, and then calls config.status. 11297# config.status does its own redirection, appending to config.log. 11298# Unfortunately, on DOS this fails, as config.log is still kept open 11299# by configure, so config.status won't be able to write to it; its 11300# output is simply discarded. So we exec the FD to /dev/null, 11301# effectively closing config.log, so it can be properly (re)opened and 11302# appended to by config.status. When coming back to configure, we 11303# need to make the FD available again. 11304if test "$no_create" != yes; then 11305 ac_cs_success=: 11306 ac_config_status_args= 11307 test "$silent" = yes && 11308 ac_config_status_args="$ac_config_status_args --quiet" 11309 exec 5>/dev/null 11310 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11311 exec 5>>config.log 11312 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11313 # would make configure fail if this is the last instruction. 11314 $ac_cs_success || { (exit 1); exit 1; } 11315fi 11316if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11317 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11318$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11319fi 11320 11321