1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for tnc 0.3.0. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (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 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME='tnc' 579PACKAGE_TARNAME='tnc' 580PACKAGE_VERSION='0.3.0' 581PACKAGE_STRING='tnc 0.3.0' 582PACKAGE_BUGREPORT='' 583PACKAGE_URL='' 584 585# Factoring default headers for most tests. 586ac_includes_default="\ 587#include <stdio.h> 588#ifdef HAVE_SYS_TYPES_H 589# include <sys/types.h> 590#endif 591#ifdef HAVE_SYS_STAT_H 592# include <sys/stat.h> 593#endif 594#ifdef STDC_HEADERS 595# include <stdlib.h> 596# include <stddef.h> 597#else 598# ifdef HAVE_STDLIB_H 599# include <stdlib.h> 600# endif 601#endif 602#ifdef HAVE_STRING_H 603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 604# include <memory.h> 605# endif 606# include <string.h> 607#endif 608#ifdef HAVE_STRINGS_H 609# include <strings.h> 610#endif 611#ifdef HAVE_INTTYPES_H 612# include <inttypes.h> 613#endif 614#ifdef HAVE_STDINT_H 615# include <stdint.h> 616#endif 617#ifdef HAVE_UNISTD_H 618# include <unistd.h> 619#endif" 620 621ac_subst_vars='LTLIBOBJS 622LIBOBJS 623TCLSH_PROG 624VC_MANIFEST_EMBED_EXE 625VC_MANIFEST_EMBED_DLL 626RANLIB_STUB 627MAKE_STUB_LIB 628MAKE_STATIC_LIB 629MAKE_SHARED_LIB 630MAKE_LIB 631TCL_DBGX 632LDFLAGS_DEFAULT 633CFLAGS_DEFAULT 634LD_LIBRARY_PATH_VAR 635SHLIB_CFLAGS 636SHLIB_LD_LIBS 637SHLIB_LD 638STLIB_LD 639CFLAGS_WARNING 640CFLAGS_OPTIMIZE 641CFLAGS_DEBUG 642RC 643CELIB_DIR 644AR 645STUBS_BUILD 646SHARED_BUILD 647TCL_THREADS 648TCL_INCLUDES 649PKG_OBJECTS 650PKG_SOURCES 651TDOM_SRC_DIR 652TDOM_STUB_LIB_SPEC 653TDOM_VERSION 654MATH_LIBS 655EGREP 656GREP 657RANLIB 658SET_MAKE 659INSTALL_LIBRARY 660INSTALL_SCRIPT 661INSTALL_PROGRAM 662INSTALL_DATA 663INSTALL_DATA_DIR 664INSTALL 665CPP 666TCL_SHLIB_LD_LIBS 667TCL_LD_FLAGS 668TCL_EXTRA_CFLAGS 669TCL_DEFS 670TCL_LIBS 671CLEANFILES 672OBJEXT 673ac_ct_CC 674CPPFLAGS 675LDFLAGS 676CFLAGS 677CC 678TCL_STUB_LIB_SPEC 679TCL_STUB_LIB_FLAG 680TCL_STUB_LIB_FILE 681TCL_LIB_SPEC 682TCL_LIB_FLAG 683TCL_LIB_FILE 684TCL_SRC_DIR 685TCL_BIN_DIR 686TCL_PATCH_LEVEL 687TCL_VERSION 688PKG_CFLAGS 689PKG_LIBS 690PKG_INCLUDES 691PKG_HEADERS 692PKG_TCL_SOURCES 693PKG_STUB_OBJECTS 694PKG_STUB_SOURCES 695PKG_STUB_LIB_FILE 696PKG_LIB_FILE 697EXEEXT 698CYGPATH 699target_alias 700host_alias 701build_alias 702LIBS 703ECHO_T 704ECHO_N 705ECHO_C 706DEFS 707mandir 708localedir 709libdir 710psdir 711pdfdir 712dvidir 713htmldir 714infodir 715docdir 716oldincludedir 717includedir 718localstatedir 719sharedstatedir 720sysconfdir 721datadir 722datarootdir 723libexecdir 724sbindir 725bindir 726program_transform_name 727prefix 728exec_prefix 729PACKAGE_URL 730PACKAGE_BUGREPORT 731PACKAGE_STRING 732PACKAGE_VERSION 733PACKAGE_TARNAME 734PACKAGE_NAME 735PATH_SEPARATOR 736SHELL' 737ac_subst_files='' 738ac_user_opts=' 739enable_option_checking 740with_tcl 741with_tdom 742with_tclinclude 743enable_threads 744enable_shared 745enable_stubs 746enable_64bit 747enable_64bit_vis 748enable_rpath 749enable_wince 750with_celib 751enable_symbols 752' 753 ac_precious_vars='build_alias 754host_alias 755target_alias 756CC 757CFLAGS 758LDFLAGS 759LIBS 760CPPFLAGS 761CPP' 762 763 764# Initialize some variables set by options. 765ac_init_help= 766ac_init_version=false 767ac_unrecognized_opts= 768ac_unrecognized_sep= 769# The variables have the same names as the options, with 770# dashes changed to underlines. 771cache_file=/dev/null 772exec_prefix=NONE 773no_create= 774no_recursion= 775prefix=NONE 776program_prefix=NONE 777program_suffix=NONE 778program_transform_name=s,x,x, 779silent= 780site= 781srcdir= 782verbose= 783x_includes=NONE 784x_libraries=NONE 785 786# Installation directory options. 787# These are left unexpanded so users can "make install exec_prefix=/foo" 788# and all the variables that are supposed to be based on exec_prefix 789# by default will actually change. 790# Use braces instead of parens because sh, perl, etc. also accept them. 791# (The list follows the same order as the GNU Coding Standards.) 792bindir='${exec_prefix}/bin' 793sbindir='${exec_prefix}/sbin' 794libexecdir='${exec_prefix}/libexec' 795datarootdir='${prefix}/share' 796datadir='${datarootdir}' 797sysconfdir='${prefix}/etc' 798sharedstatedir='${prefix}/com' 799localstatedir='${prefix}/var' 800includedir='${prefix}/include' 801oldincludedir='/usr/include' 802docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 803infodir='${datarootdir}/info' 804htmldir='${docdir}' 805dvidir='${docdir}' 806pdfdir='${docdir}' 807psdir='${docdir}' 808libdir='${exec_prefix}/lib' 809localedir='${datarootdir}/locale' 810mandir='${datarootdir}/man' 811 812ac_prev= 813ac_dashdash= 814for ac_option 815do 816 # If the previous option needs an argument, assign it. 817 if test -n "$ac_prev"; then 818 eval $ac_prev=\$ac_option 819 ac_prev= 820 continue 821 fi 822 823 case $ac_option in 824 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 825 *=) ac_optarg= ;; 826 *) ac_optarg=yes ;; 827 esac 828 829 # Accept the important Cygnus configure options, so we can diagnose typos. 830 831 case $ac_dashdash$ac_option in 832 --) 833 ac_dashdash=yes ;; 834 835 -bindir | --bindir | --bindi | --bind | --bin | --bi) 836 ac_prev=bindir ;; 837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 838 bindir=$ac_optarg ;; 839 840 -build | --build | --buil | --bui | --bu) 841 ac_prev=build_alias ;; 842 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 843 build_alias=$ac_optarg ;; 844 845 -cache-file | --cache-file | --cache-fil | --cache-fi \ 846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 847 ac_prev=cache_file ;; 848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 850 cache_file=$ac_optarg ;; 851 852 --config-cache | -C) 853 cache_file=config.cache ;; 854 855 -datadir | --datadir | --datadi | --datad) 856 ac_prev=datadir ;; 857 -datadir=* | --datadir=* | --datadi=* | --datad=*) 858 datadir=$ac_optarg ;; 859 860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 861 | --dataroo | --dataro | --datar) 862 ac_prev=datarootdir ;; 863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 865 datarootdir=$ac_optarg ;; 866 867 -disable-* | --disable-*) 868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 869 # Reject names that are not valid shell variable names. 870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 871 as_fn_error $? "invalid feature name: $ac_useropt" 872 ac_useropt_orig=$ac_useropt 873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 874 case $ac_user_opts in 875 *" 876"enable_$ac_useropt" 877"*) ;; 878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 879 ac_unrecognized_sep=', ';; 880 esac 881 eval enable_$ac_useropt=no ;; 882 883 -docdir | --docdir | --docdi | --doc | --do) 884 ac_prev=docdir ;; 885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 886 docdir=$ac_optarg ;; 887 888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 889 ac_prev=dvidir ;; 890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 891 dvidir=$ac_optarg ;; 892 893 -enable-* | --enable-*) 894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 895 # Reject names that are not valid shell variable names. 896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 897 as_fn_error $? "invalid feature name: $ac_useropt" 898 ac_useropt_orig=$ac_useropt 899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 900 case $ac_user_opts in 901 *" 902"enable_$ac_useropt" 903"*) ;; 904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 905 ac_unrecognized_sep=', ';; 906 esac 907 eval enable_$ac_useropt=\$ac_optarg ;; 908 909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 911 | --exec | --exe | --ex) 912 ac_prev=exec_prefix ;; 913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 915 | --exec=* | --exe=* | --ex=*) 916 exec_prefix=$ac_optarg ;; 917 918 -gas | --gas | --ga | --g) 919 # Obsolete; use --with-gas. 920 with_gas=yes ;; 921 922 -help | --help | --hel | --he | -h) 923 ac_init_help=long ;; 924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 925 ac_init_help=recursive ;; 926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 927 ac_init_help=short ;; 928 929 -host | --host | --hos | --ho) 930 ac_prev=host_alias ;; 931 -host=* | --host=* | --hos=* | --ho=*) 932 host_alias=$ac_optarg ;; 933 934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 935 ac_prev=htmldir ;; 936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 937 | --ht=*) 938 htmldir=$ac_optarg ;; 939 940 -includedir | --includedir | --includedi | --included | --include \ 941 | --includ | --inclu | --incl | --inc) 942 ac_prev=includedir ;; 943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 944 | --includ=* | --inclu=* | --incl=* | --inc=*) 945 includedir=$ac_optarg ;; 946 947 -infodir | --infodir | --infodi | --infod | --info | --inf) 948 ac_prev=infodir ;; 949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 950 infodir=$ac_optarg ;; 951 952 -libdir | --libdir | --libdi | --libd) 953 ac_prev=libdir ;; 954 -libdir=* | --libdir=* | --libdi=* | --libd=*) 955 libdir=$ac_optarg ;; 956 957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 958 | --libexe | --libex | --libe) 959 ac_prev=libexecdir ;; 960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 961 | --libexe=* | --libex=* | --libe=*) 962 libexecdir=$ac_optarg ;; 963 964 -localedir | --localedir | --localedi | --localed | --locale) 965 ac_prev=localedir ;; 966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 967 localedir=$ac_optarg ;; 968 969 -localstatedir | --localstatedir | --localstatedi | --localstated \ 970 | --localstate | --localstat | --localsta | --localst | --locals) 971 ac_prev=localstatedir ;; 972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 974 localstatedir=$ac_optarg ;; 975 976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 977 ac_prev=mandir ;; 978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 979 mandir=$ac_optarg ;; 980 981 -nfp | --nfp | --nf) 982 # Obsolete; use --without-fp. 983 with_fp=no ;; 984 985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 986 | --no-cr | --no-c | -n) 987 no_create=yes ;; 988 989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 991 no_recursion=yes ;; 992 993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 995 | --oldin | --oldi | --old | --ol | --o) 996 ac_prev=oldincludedir ;; 997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1000 oldincludedir=$ac_optarg ;; 1001 1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1003 ac_prev=prefix ;; 1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1005 prefix=$ac_optarg ;; 1006 1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1008 | --program-pre | --program-pr | --program-p) 1009 ac_prev=program_prefix ;; 1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1012 program_prefix=$ac_optarg ;; 1013 1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1015 | --program-suf | --program-su | --program-s) 1016 ac_prev=program_suffix ;; 1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1019 program_suffix=$ac_optarg ;; 1020 1021 -program-transform-name | --program-transform-name \ 1022 | --program-transform-nam | --program-transform-na \ 1023 | --program-transform-n | --program-transform- \ 1024 | --program-transform | --program-transfor \ 1025 | --program-transfo | --program-transf \ 1026 | --program-trans | --program-tran \ 1027 | --progr-tra | --program-tr | --program-t) 1028 ac_prev=program_transform_name ;; 1029 -program-transform-name=* | --program-transform-name=* \ 1030 | --program-transform-nam=* | --program-transform-na=* \ 1031 | --program-transform-n=* | --program-transform-=* \ 1032 | --program-transform=* | --program-transfor=* \ 1033 | --program-transfo=* | --program-transf=* \ 1034 | --program-trans=* | --program-tran=* \ 1035 | --progr-tra=* | --program-tr=* | --program-t=*) 1036 program_transform_name=$ac_optarg ;; 1037 1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1039 ac_prev=pdfdir ;; 1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1041 pdfdir=$ac_optarg ;; 1042 1043 -psdir | --psdir | --psdi | --psd | --ps) 1044 ac_prev=psdir ;; 1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1046 psdir=$ac_optarg ;; 1047 1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1049 | -silent | --silent | --silen | --sile | --sil) 1050 silent=yes ;; 1051 1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1053 ac_prev=sbindir ;; 1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1055 | --sbi=* | --sb=*) 1056 sbindir=$ac_optarg ;; 1057 1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1060 | --sharedst | --shareds | --shared | --share | --shar \ 1061 | --sha | --sh) 1062 ac_prev=sharedstatedir ;; 1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1066 | --sha=* | --sh=*) 1067 sharedstatedir=$ac_optarg ;; 1068 1069 -site | --site | --sit) 1070 ac_prev=site ;; 1071 -site=* | --site=* | --sit=*) 1072 site=$ac_optarg ;; 1073 1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1075 ac_prev=srcdir ;; 1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1077 srcdir=$ac_optarg ;; 1078 1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1080 | --syscon | --sysco | --sysc | --sys | --sy) 1081 ac_prev=sysconfdir ;; 1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1084 sysconfdir=$ac_optarg ;; 1085 1086 -target | --target | --targe | --targ | --tar | --ta | --t) 1087 ac_prev=target_alias ;; 1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1089 target_alias=$ac_optarg ;; 1090 1091 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1092 verbose=yes ;; 1093 1094 -version | --version | --versio | --versi | --vers | -V) 1095 ac_init_version=: ;; 1096 1097 -with-* | --with-*) 1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1099 # Reject names that are not valid shell variable names. 1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1101 as_fn_error $? "invalid package name: $ac_useropt" 1102 ac_useropt_orig=$ac_useropt 1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1104 case $ac_user_opts in 1105 *" 1106"with_$ac_useropt" 1107"*) ;; 1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1109 ac_unrecognized_sep=', ';; 1110 esac 1111 eval with_$ac_useropt=\$ac_optarg ;; 1112 1113 -without-* | --without-*) 1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1115 # Reject names that are not valid shell variable names. 1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1117 as_fn_error $? "invalid package name: $ac_useropt" 1118 ac_useropt_orig=$ac_useropt 1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1120 case $ac_user_opts in 1121 *" 1122"with_$ac_useropt" 1123"*) ;; 1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1125 ac_unrecognized_sep=', ';; 1126 esac 1127 eval with_$ac_useropt=no ;; 1128 1129 --x) 1130 # Obsolete; use --with-x. 1131 with_x=yes ;; 1132 1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1134 | --x-incl | --x-inc | --x-in | --x-i) 1135 ac_prev=x_includes ;; 1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1138 x_includes=$ac_optarg ;; 1139 1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1142 ac_prev=x_libraries ;; 1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1145 x_libraries=$ac_optarg ;; 1146 1147 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1148Try \`$0 --help' for more information" 1149 ;; 1150 1151 *=*) 1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1153 # Reject names that are not valid shell variable names. 1154 case $ac_envvar in #( 1155 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1156 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1157 esac 1158 eval $ac_envvar=\$ac_optarg 1159 export $ac_envvar ;; 1160 1161 *) 1162 # FIXME: should be removed in autoconf 3.0. 1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1166 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1167 ;; 1168 1169 esac 1170done 1171 1172if test -n "$ac_prev"; then 1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1174 as_fn_error $? "missing argument to $ac_option" 1175fi 1176 1177if test -n "$ac_unrecognized_opts"; then 1178 case $enable_option_checking in 1179 no) ;; 1180 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1182 esac 1183fi 1184 1185# Check all directory arguments for consistency. 1186for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1187 datadir sysconfdir sharedstatedir localstatedir includedir \ 1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1189 libdir localedir mandir 1190do 1191 eval ac_val=\$$ac_var 1192 # Remove trailing slashes. 1193 case $ac_val in 1194 */ ) 1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1196 eval $ac_var=\$ac_val;; 1197 esac 1198 # Be sure to have absolute directory names. 1199 case $ac_val in 1200 [\\/$]* | ?:[\\/]* ) continue;; 1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1202 esac 1203 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1204done 1205 1206# There might be people who depend on the old broken behavior: `$host' 1207# used to hold the argument of --host etc. 1208# FIXME: To remove some day. 1209build=$build_alias 1210host=$host_alias 1211target=$target_alias 1212 1213# FIXME: To remove some day. 1214if test "x$host_alias" != x; then 1215 if test "x$build_alias" = x; then 1216 cross_compiling=maybe 1217 elif test "x$build_alias" != "x$host_alias"; then 1218 cross_compiling=yes 1219 fi 1220fi 1221 1222ac_tool_prefix= 1223test -n "$host_alias" && ac_tool_prefix=$host_alias- 1224 1225test "$silent" = yes && exec 6>/dev/null 1226 1227 1228ac_pwd=`pwd` && test -n "$ac_pwd" && 1229ac_ls_di=`ls -di .` && 1230ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1231 as_fn_error $? "working directory cannot be determined" 1232test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1233 as_fn_error $? "pwd does not report name of working directory" 1234 1235 1236# Find the source files, if location was not specified. 1237if test -z "$srcdir"; then 1238 ac_srcdir_defaulted=yes 1239 # Try the directory containing this script, then the parent directory. 1240 ac_confdir=`$as_dirname -- "$as_myself" || 1241$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1242 X"$as_myself" : 'X\(//\)[^/]' \| \ 1243 X"$as_myself" : 'X\(//\)$' \| \ 1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1245$as_echo X"$as_myself" | 1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1247 s//\1/ 1248 q 1249 } 1250 /^X\(\/\/\)[^/].*/{ 1251 s//\1/ 1252 q 1253 } 1254 /^X\(\/\/\)$/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\).*/{ 1259 s//\1/ 1260 q 1261 } 1262 s/.*/./; q'` 1263 srcdir=$ac_confdir 1264 if test ! -r "$srcdir/$ac_unique_file"; then 1265 srcdir=.. 1266 fi 1267else 1268 ac_srcdir_defaulted=no 1269fi 1270if test ! -r "$srcdir/$ac_unique_file"; then 1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1272 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1273fi 1274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1275ac_abs_confdir=`( 1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1277 pwd)` 1278# When building in place, set srcdir=. 1279if test "$ac_abs_confdir" = "$ac_pwd"; then 1280 srcdir=. 1281fi 1282# Remove unnecessary trailing slashes from srcdir. 1283# Double slashes in file names in object file debugging info 1284# mess up M-x gdb in Emacs. 1285case $srcdir in 1286*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1287esac 1288for ac_var in $ac_precious_vars; do 1289 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1290 eval ac_env_${ac_var}_value=\$${ac_var} 1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1292 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1293done 1294 1295# 1296# Report the --help message. 1297# 1298if test "$ac_init_help" = "long"; then 1299 # Omit some internal or obsolete options to make the list less imposing. 1300 # This message is too long to be a string in the A/UX 3.1 sh. 1301 cat <<_ACEOF 1302\`configure' configures tnc 0.3.0 to adapt to many kinds of systems. 1303 1304Usage: $0 [OPTION]... [VAR=VALUE]... 1305 1306To assign environment variables (e.g., CC, CFLAGS...), specify them as 1307VAR=VALUE. See below for descriptions of some of the useful variables. 1308 1309Defaults for the options are specified in brackets. 1310 1311Configuration: 1312 -h, --help display this help and exit 1313 --help=short display options specific to this package 1314 --help=recursive display the short help of all the included packages 1315 -V, --version display version information and exit 1316 -q, --quiet, --silent do not print \`checking ...' messages 1317 --cache-file=FILE cache test results in FILE [disabled] 1318 -C, --config-cache alias for \`--cache-file=config.cache' 1319 -n, --no-create do not create output files 1320 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1321 1322Installation directories: 1323 --prefix=PREFIX install architecture-independent files in PREFIX 1324 [$ac_default_prefix] 1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1326 [PREFIX] 1327 1328By default, \`make install' will install all the files in 1329\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1330an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1331for instance \`--prefix=\$HOME'. 1332 1333For better control, use the options below. 1334 1335Fine tuning of the installation directories: 1336 --bindir=DIR user executables [EPREFIX/bin] 1337 --sbindir=DIR system admin executables [EPREFIX/sbin] 1338 --libexecdir=DIR program executables [EPREFIX/libexec] 1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1342 --libdir=DIR object code libraries [EPREFIX/lib] 1343 --includedir=DIR C header files [PREFIX/include] 1344 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1347 --infodir=DIR info documentation [DATAROOTDIR/info] 1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1349 --mandir=DIR man documentation [DATAROOTDIR/man] 1350 --docdir=DIR documentation root [DATAROOTDIR/doc/tnc] 1351 --htmldir=DIR html documentation [DOCDIR] 1352 --dvidir=DIR dvi documentation [DOCDIR] 1353 --pdfdir=DIR pdf documentation [DOCDIR] 1354 --psdir=DIR ps documentation [DOCDIR] 1355_ACEOF 1356 1357 cat <<\_ACEOF 1358_ACEOF 1359fi 1360 1361if test -n "$ac_init_help"; then 1362 case $ac_init_help in 1363 short | recursive ) echo "Configuration of tnc 0.3.0:";; 1364 esac 1365 cat <<\_ACEOF 1366 1367Optional Features: 1368 --disable-option-checking ignore unrecognized --enable/--with options 1369 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1370 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1371 --enable-threads build with threads 1372 --enable-shared build and link with shared libraries (default: on) 1373 --enable-stubs build and link with stub libraries. Always true for 1374 shared builds (default: on) 1375 --enable-64bit enable 64bit support (default: off) 1376 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1377 --disable-rpath disable rpath support (default: on) 1378 --enable-wince enable Win/CE support (where applicable) 1379 --enable-symbols build with debugging symbols (default: off) 1380 1381Optional Packages: 1382 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1383 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1384 --with-tcl directory containing tcl configuration 1385 (tclConfig.sh) 1386 --with-tdom directory containig tDOM configuration 1387 (tdomConfig.sh) 1388 --with-tclinclude directory containing the public Tcl header files 1389 --with-celib=DIR use Windows/CE support library from DIR 1390 1391Some influential environment variables: 1392 CC C compiler command 1393 CFLAGS C compiler flags 1394 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1395 nonstandard directory <lib dir> 1396 LIBS libraries to pass to the linker, e.g. -l<library> 1397 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1398 you have headers in a nonstandard directory <include dir> 1399 CPP C preprocessor 1400 1401Use these variables to override the choices made by `configure' or to help 1402it to find libraries and programs with nonstandard names/locations. 1403 1404Report bugs to the package provider. 1405_ACEOF 1406ac_status=$? 1407fi 1408 1409if test "$ac_init_help" = "recursive"; then 1410 # If there are subdirs, report their specific --help. 1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1412 test -d "$ac_dir" || 1413 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1414 continue 1415 ac_builddir=. 1416 1417case "$ac_dir" in 1418.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1419*) 1420 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1421 # A ".." for each directory in $ac_dir_suffix. 1422 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1423 case $ac_top_builddir_sub in 1424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1426 esac ;; 1427esac 1428ac_abs_top_builddir=$ac_pwd 1429ac_abs_builddir=$ac_pwd$ac_dir_suffix 1430# for backward compatibility: 1431ac_top_builddir=$ac_top_build_prefix 1432 1433case $srcdir in 1434 .) # We are building in place. 1435 ac_srcdir=. 1436 ac_top_srcdir=$ac_top_builddir_sub 1437 ac_abs_top_srcdir=$ac_pwd ;; 1438 [\\/]* | ?:[\\/]* ) # Absolute name. 1439 ac_srcdir=$srcdir$ac_dir_suffix; 1440 ac_top_srcdir=$srcdir 1441 ac_abs_top_srcdir=$srcdir ;; 1442 *) # Relative name. 1443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1444 ac_top_srcdir=$ac_top_build_prefix$srcdir 1445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1446esac 1447ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1448 1449 cd "$ac_dir" || { ac_status=$?; continue; } 1450 # Check for guested configure. 1451 if test -f "$ac_srcdir/configure.gnu"; then 1452 echo && 1453 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1454 elif test -f "$ac_srcdir/configure"; then 1455 echo && 1456 $SHELL "$ac_srcdir/configure" --help=recursive 1457 else 1458 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1459 fi || ac_status=$? 1460 cd "$ac_pwd" || { ac_status=$?; break; } 1461 done 1462fi 1463 1464test -n "$ac_init_help" && exit $ac_status 1465if $ac_init_version; then 1466 cat <<\_ACEOF 1467tnc configure 0.3.0 1468generated by GNU Autoconf 2.69 1469 1470Copyright (C) 2012 Free Software Foundation, Inc. 1471This configure script is free software; the Free Software Foundation 1472gives unlimited permission to copy, distribute and modify it. 1473_ACEOF 1474 exit 1475fi 1476 1477## ------------------------ ## 1478## Autoconf initialization. ## 1479## ------------------------ ## 1480 1481# ac_fn_c_try_compile LINENO 1482# -------------------------- 1483# Try to compile conftest.$ac_ext, and return whether this succeeded. 1484ac_fn_c_try_compile () 1485{ 1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1487 rm -f conftest.$ac_objext 1488 if { { ac_try="$ac_compile" 1489case "(($ac_try" in 1490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1491 *) ac_try_echo=$ac_try;; 1492esac 1493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1494$as_echo "$ac_try_echo"; } >&5 1495 (eval "$ac_compile") 2>conftest.err 1496 ac_status=$? 1497 if test -s conftest.err; then 1498 grep -v '^ *+' conftest.err >conftest.er1 1499 cat conftest.er1 >&5 1500 mv -f conftest.er1 conftest.err 1501 fi 1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1503 test $ac_status = 0; } && { 1504 test -z "$ac_c_werror_flag" || 1505 test ! -s conftest.err 1506 } && test -s conftest.$ac_objext; then : 1507 ac_retval=0 1508else 1509 $as_echo "$as_me: failed program was:" >&5 1510sed 's/^/| /' conftest.$ac_ext >&5 1511 1512 ac_retval=1 1513fi 1514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1515 as_fn_set_status $ac_retval 1516 1517} # ac_fn_c_try_compile 1518 1519# ac_fn_c_try_cpp LINENO 1520# ---------------------- 1521# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1522ac_fn_c_try_cpp () 1523{ 1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1525 if { { ac_try="$ac_cpp conftest.$ac_ext" 1526case "(($ac_try" in 1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1528 *) ac_try_echo=$ac_try;; 1529esac 1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1531$as_echo "$ac_try_echo"; } >&5 1532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1533 ac_status=$? 1534 if test -s conftest.err; then 1535 grep -v '^ *+' conftest.err >conftest.er1 1536 cat conftest.er1 >&5 1537 mv -f conftest.er1 conftest.err 1538 fi 1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1540 test $ac_status = 0; } > conftest.i && { 1541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1542 test ! -s conftest.err 1543 }; then : 1544 ac_retval=0 1545else 1546 $as_echo "$as_me: failed program was:" >&5 1547sed 's/^/| /' conftest.$ac_ext >&5 1548 1549 ac_retval=1 1550fi 1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1552 as_fn_set_status $ac_retval 1553 1554} # ac_fn_c_try_cpp 1555 1556# ac_fn_c_try_run LINENO 1557# ---------------------- 1558# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1559# that executables *can* be run. 1560ac_fn_c_try_run () 1561{ 1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1563 if { { ac_try="$ac_link" 1564case "(($ac_try" in 1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1566 *) ac_try_echo=$ac_try;; 1567esac 1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1569$as_echo "$ac_try_echo"; } >&5 1570 (eval "$ac_link") 2>&5 1571 ac_status=$? 1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1573 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1574 { { case "(($ac_try" in 1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1576 *) ac_try_echo=$ac_try;; 1577esac 1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1579$as_echo "$ac_try_echo"; } >&5 1580 (eval "$ac_try") 2>&5 1581 ac_status=$? 1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1583 test $ac_status = 0; }; }; then : 1584 ac_retval=0 1585else 1586 $as_echo "$as_me: program exited with status $ac_status" >&5 1587 $as_echo "$as_me: failed program was:" >&5 1588sed 's/^/| /' conftest.$ac_ext >&5 1589 1590 ac_retval=$ac_status 1591fi 1592 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1594 as_fn_set_status $ac_retval 1595 1596} # ac_fn_c_try_run 1597 1598# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1599# ------------------------------------------------------- 1600# Tests whether HEADER exists and can be compiled using the include files in 1601# INCLUDES, setting the cache variable VAR accordingly. 1602ac_fn_c_check_header_compile () 1603{ 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1606$as_echo_n "checking for $2... " >&6; } 1607if eval \${$3+:} false; then : 1608 $as_echo_n "(cached) " >&6 1609else 1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1611/* end confdefs.h. */ 1612$4 1613#include <$2> 1614_ACEOF 1615if ac_fn_c_try_compile "$LINENO"; then : 1616 eval "$3=yes" 1617else 1618 eval "$3=no" 1619fi 1620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1621fi 1622eval ac_res=\$$3 1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1624$as_echo "$ac_res" >&6; } 1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1626 1627} # ac_fn_c_check_header_compile 1628 1629# ac_fn_c_try_link LINENO 1630# ----------------------- 1631# Try to link conftest.$ac_ext, and return whether this succeeded. 1632ac_fn_c_try_link () 1633{ 1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1635 rm -f conftest.$ac_objext conftest$ac_exeext 1636 if { { ac_try="$ac_link" 1637case "(($ac_try" in 1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1639 *) ac_try_echo=$ac_try;; 1640esac 1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1642$as_echo "$ac_try_echo"; } >&5 1643 (eval "$ac_link") 2>conftest.err 1644 ac_status=$? 1645 if test -s conftest.err; then 1646 grep -v '^ *+' conftest.err >conftest.er1 1647 cat conftest.er1 >&5 1648 mv -f conftest.er1 conftest.err 1649 fi 1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1651 test $ac_status = 0; } && { 1652 test -z "$ac_c_werror_flag" || 1653 test ! -s conftest.err 1654 } && test -s conftest$ac_exeext && { 1655 test "$cross_compiling" = yes || 1656 test -x conftest$ac_exeext 1657 }; then : 1658 ac_retval=0 1659else 1660 $as_echo "$as_me: failed program was:" >&5 1661sed 's/^/| /' conftest.$ac_ext >&5 1662 1663 ac_retval=1 1664fi 1665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1667 # interfere with the next link command; also delete a directory that is 1668 # left behind by Apple's compiler. We do this before executing the actions. 1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1671 as_fn_set_status $ac_retval 1672 1673} # ac_fn_c_try_link 1674 1675# ac_fn_c_check_func LINENO FUNC VAR 1676# ---------------------------------- 1677# Tests whether FUNC exists, setting the cache variable VAR accordingly 1678ac_fn_c_check_func () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1682$as_echo_n "checking for $2... " >&6; } 1683if eval \${$3+:} false; then : 1684 $as_echo_n "(cached) " >&6 1685else 1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1687/* end confdefs.h. */ 1688/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1689 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1690#define $2 innocuous_$2 1691 1692/* System header to define __stub macros and hopefully few prototypes, 1693 which can conflict with char $2 (); below. 1694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1695 <limits.h> exists even on freestanding compilers. */ 1696 1697#ifdef __STDC__ 1698# include <limits.h> 1699#else 1700# include <assert.h> 1701#endif 1702 1703#undef $2 1704 1705/* Override any GCC internal prototype to avoid an error. 1706 Use char because int might match the return type of a GCC 1707 builtin and then its argument prototype would still apply. */ 1708#ifdef __cplusplus 1709extern "C" 1710#endif 1711char $2 (); 1712/* The GNU C library defines this for functions which it implements 1713 to always fail with ENOSYS. Some functions are actually named 1714 something starting with __ and the normal name is an alias. */ 1715#if defined __stub_$2 || defined __stub___$2 1716choke me 1717#endif 1718 1719int 1720main () 1721{ 1722return $2 (); 1723 ; 1724 return 0; 1725} 1726_ACEOF 1727if ac_fn_c_try_link "$LINENO"; then : 1728 eval "$3=yes" 1729else 1730 eval "$3=no" 1731fi 1732rm -f core conftest.err conftest.$ac_objext \ 1733 conftest$ac_exeext conftest.$ac_ext 1734fi 1735eval ac_res=\$$3 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1737$as_echo "$ac_res" >&6; } 1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1739 1740} # ac_fn_c_check_func 1741 1742# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1743# ------------------------------------------------------- 1744# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1745# the include files in INCLUDES and setting the cache variable VAR 1746# accordingly. 1747ac_fn_c_check_header_mongrel () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 if eval \${$3+:} false; then : 1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1752$as_echo_n "checking for $2... " >&6; } 1753if eval \${$3+:} false; then : 1754 $as_echo_n "(cached) " >&6 1755fi 1756eval ac_res=\$$3 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1758$as_echo "$ac_res" >&6; } 1759else 1760 # Is the header compilable? 1761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1762$as_echo_n "checking $2 usability... " >&6; } 1763cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1764/* end confdefs.h. */ 1765$4 1766#include <$2> 1767_ACEOF 1768if ac_fn_c_try_compile "$LINENO"; then : 1769 ac_header_compiler=yes 1770else 1771 ac_header_compiler=no 1772fi 1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1775$as_echo "$ac_header_compiler" >&6; } 1776 1777# Is the header present? 1778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1779$as_echo_n "checking $2 presence... " >&6; } 1780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1781/* end confdefs.h. */ 1782#include <$2> 1783_ACEOF 1784if ac_fn_c_try_cpp "$LINENO"; then : 1785 ac_header_preproc=yes 1786else 1787 ac_header_preproc=no 1788fi 1789rm -f conftest.err conftest.i conftest.$ac_ext 1790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1791$as_echo "$ac_header_preproc" >&6; } 1792 1793# So? What about this header? 1794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1795 yes:no: ) 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1797$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1799$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1800 ;; 1801 no:yes:* ) 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1803$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1805$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1807$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1809$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1811$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1812 ;; 1813esac 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1815$as_echo_n "checking for $2... " >&6; } 1816if eval \${$3+:} false; then : 1817 $as_echo_n "(cached) " >&6 1818else 1819 eval "$3=\$ac_header_compiler" 1820fi 1821eval ac_res=\$$3 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1823$as_echo "$ac_res" >&6; } 1824fi 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1826 1827} # ac_fn_c_check_header_mongrel 1828cat >config.log <<_ACEOF 1829This file contains any messages produced by compilers while 1830running configure, to aid debugging if configure makes a mistake. 1831 1832It was created by tnc $as_me 0.3.0, which was 1833generated by GNU Autoconf 2.69. Invocation command line was 1834 1835 $ $0 $@ 1836 1837_ACEOF 1838exec 5>>config.log 1839{ 1840cat <<_ASUNAME 1841## --------- ## 1842## Platform. ## 1843## --------- ## 1844 1845hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1846uname -m = `(uname -m) 2>/dev/null || echo unknown` 1847uname -r = `(uname -r) 2>/dev/null || echo unknown` 1848uname -s = `(uname -s) 2>/dev/null || echo unknown` 1849uname -v = `(uname -v) 2>/dev/null || echo unknown` 1850 1851/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1852/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1853 1854/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1855/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1856/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1857/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1858/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1859/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1860/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1861 1862_ASUNAME 1863 1864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1865for as_dir in $PATH 1866do 1867 IFS=$as_save_IFS 1868 test -z "$as_dir" && as_dir=. 1869 $as_echo "PATH: $as_dir" 1870 done 1871IFS=$as_save_IFS 1872 1873} >&5 1874 1875cat >&5 <<_ACEOF 1876 1877 1878## ----------- ## 1879## Core tests. ## 1880## ----------- ## 1881 1882_ACEOF 1883 1884 1885# Keep a trace of the command line. 1886# Strip out --no-create and --no-recursion so they do not pile up. 1887# Strip out --silent because we don't want to record it for future runs. 1888# Also quote any args containing shell meta-characters. 1889# Make two passes to allow for proper duplicate-argument suppression. 1890ac_configure_args= 1891ac_configure_args0= 1892ac_configure_args1= 1893ac_must_keep_next=false 1894for ac_pass in 1 2 1895do 1896 for ac_arg 1897 do 1898 case $ac_arg in 1899 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1901 | -silent | --silent | --silen | --sile | --sil) 1902 continue ;; 1903 *\'*) 1904 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1905 esac 1906 case $ac_pass in 1907 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1908 2) 1909 as_fn_append ac_configure_args1 " '$ac_arg'" 1910 if test $ac_must_keep_next = true; then 1911 ac_must_keep_next=false # Got value, back to normal. 1912 else 1913 case $ac_arg in 1914 *=* | --config-cache | -C | -disable-* | --disable-* \ 1915 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1916 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1917 | -with-* | --with-* | -without-* | --without-* | --x) 1918 case "$ac_configure_args0 " in 1919 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1920 esac 1921 ;; 1922 -* ) ac_must_keep_next=true ;; 1923 esac 1924 fi 1925 as_fn_append ac_configure_args " '$ac_arg'" 1926 ;; 1927 esac 1928 done 1929done 1930{ ac_configure_args0=; unset ac_configure_args0;} 1931{ ac_configure_args1=; unset ac_configure_args1;} 1932 1933# When interrupted or exit'd, cleanup temporary files, and complete 1934# config.log. We remove comments because anyway the quotes in there 1935# would cause problems or look ugly. 1936# WARNING: Use '\'' to represent an apostrophe within the trap. 1937# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1938trap 'exit_status=$? 1939 # Save into config.log some information that might help in debugging. 1940 { 1941 echo 1942 1943 $as_echo "## ---------------- ## 1944## Cache variables. ## 1945## ---------------- ##" 1946 echo 1947 # The following way of writing the cache mishandles newlines in values, 1948( 1949 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1950 eval ac_val=\$$ac_var 1951 case $ac_val in #( 1952 *${as_nl}*) 1953 case $ac_var in #( 1954 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1955$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1956 esac 1957 case $ac_var in #( 1958 _ | IFS | as_nl) ;; #( 1959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1960 *) { eval $ac_var=; unset $ac_var;} ;; 1961 esac ;; 1962 esac 1963 done 1964 (set) 2>&1 | 1965 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1966 *${as_nl}ac_space=\ *) 1967 sed -n \ 1968 "s/'\''/'\''\\\\'\'''\''/g; 1969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1970 ;; #( 1971 *) 1972 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1973 ;; 1974 esac | 1975 sort 1976) 1977 echo 1978 1979 $as_echo "## ----------------- ## 1980## Output variables. ## 1981## ----------------- ##" 1982 echo 1983 for ac_var in $ac_subst_vars 1984 do 1985 eval ac_val=\$$ac_var 1986 case $ac_val in 1987 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1988 esac 1989 $as_echo "$ac_var='\''$ac_val'\''" 1990 done | sort 1991 echo 1992 1993 if test -n "$ac_subst_files"; then 1994 $as_echo "## ------------------- ## 1995## File substitutions. ## 1996## ------------------- ##" 1997 echo 1998 for ac_var in $ac_subst_files 1999 do 2000 eval ac_val=\$$ac_var 2001 case $ac_val in 2002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2003 esac 2004 $as_echo "$ac_var='\''$ac_val'\''" 2005 done | sort 2006 echo 2007 fi 2008 2009 if test -s confdefs.h; then 2010 $as_echo "## ----------- ## 2011## confdefs.h. ## 2012## ----------- ##" 2013 echo 2014 cat confdefs.h 2015 echo 2016 fi 2017 test "$ac_signal" != 0 && 2018 $as_echo "$as_me: caught signal $ac_signal" 2019 $as_echo "$as_me: exit $exit_status" 2020 } >&5 2021 rm -f core *.core core.conftest.* && 2022 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2023 exit $exit_status 2024' 0 2025for ac_signal in 1 2 13 15; do 2026 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2027done 2028ac_signal=0 2029 2030# confdefs.h avoids OS command line length limits that DEFS can exceed. 2031rm -f -r conftest* confdefs.h 2032 2033$as_echo "/* confdefs.h */" > confdefs.h 2034 2035# Predefined preprocessor variables. 2036 2037cat >>confdefs.h <<_ACEOF 2038#define PACKAGE_NAME "$PACKAGE_NAME" 2039_ACEOF 2040 2041cat >>confdefs.h <<_ACEOF 2042#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2043_ACEOF 2044 2045cat >>confdefs.h <<_ACEOF 2046#define PACKAGE_VERSION "$PACKAGE_VERSION" 2047_ACEOF 2048 2049cat >>confdefs.h <<_ACEOF 2050#define PACKAGE_STRING "$PACKAGE_STRING" 2051_ACEOF 2052 2053cat >>confdefs.h <<_ACEOF 2054#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2055_ACEOF 2056 2057cat >>confdefs.h <<_ACEOF 2058#define PACKAGE_URL "$PACKAGE_URL" 2059_ACEOF 2060 2061 2062# Let the site file select an alternate cache file if it wants to. 2063# Prefer an explicitly selected file to automatically selected ones. 2064ac_site_file1=NONE 2065ac_site_file2=NONE 2066if test -n "$CONFIG_SITE"; then 2067 # We do not want a PATH search for config.site. 2068 case $CONFIG_SITE in #(( 2069 -*) ac_site_file1=./$CONFIG_SITE;; 2070 */*) ac_site_file1=$CONFIG_SITE;; 2071 *) ac_site_file1=./$CONFIG_SITE;; 2072 esac 2073elif test "x$prefix" != xNONE; then 2074 ac_site_file1=$prefix/share/config.site 2075 ac_site_file2=$prefix/etc/config.site 2076else 2077 ac_site_file1=$ac_default_prefix/share/config.site 2078 ac_site_file2=$ac_default_prefix/etc/config.site 2079fi 2080for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2081do 2082 test "x$ac_site_file" = xNONE && continue 2083 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2085$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2086 sed 's/^/| /' "$ac_site_file" >&5 2087 . "$ac_site_file" \ 2088 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2090as_fn_error $? "failed to load site script $ac_site_file 2091See \`config.log' for more details" "$LINENO" 5; } 2092 fi 2093done 2094 2095if test -r "$cache_file"; then 2096 # Some versions of bash will fail to source /dev/null (special files 2097 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2098 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2100$as_echo "$as_me: loading cache $cache_file" >&6;} 2101 case $cache_file in 2102 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2103 *) . "./$cache_file";; 2104 esac 2105 fi 2106else 2107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2108$as_echo "$as_me: creating cache $cache_file" >&6;} 2109 >$cache_file 2110fi 2111 2112# Check that the precious variables saved in the cache have kept the same 2113# value. 2114ac_cache_corrupted=false 2115for ac_var in $ac_precious_vars; do 2116 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2117 eval ac_new_set=\$ac_env_${ac_var}_set 2118 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2119 eval ac_new_val=\$ac_env_${ac_var}_value 2120 case $ac_old_set,$ac_new_set in 2121 set,) 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2123$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2124 ac_cache_corrupted=: ;; 2125 ,set) 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2127$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2128 ac_cache_corrupted=: ;; 2129 ,);; 2130 *) 2131 if test "x$ac_old_val" != "x$ac_new_val"; then 2132 # differences in whitespace do not lead to failure. 2133 ac_old_val_w=`echo x $ac_old_val` 2134 ac_new_val_w=`echo x $ac_new_val` 2135 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2137$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2138 ac_cache_corrupted=: 2139 else 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2141$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2142 eval $ac_var=\$ac_old_val 2143 fi 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2145$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2147$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2148 fi;; 2149 esac 2150 # Pass precious variables to config.status. 2151 if test "$ac_new_set" = set; then 2152 case $ac_new_val in 2153 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2154 *) ac_arg=$ac_var=$ac_new_val ;; 2155 esac 2156 case " $ac_configure_args " in 2157 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2158 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2159 esac 2160 fi 2161done 2162if $ac_cache_corrupted; then 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2166$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2167 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2168fi 2169## -------------------- ## 2170## Main body of script. ## 2171## -------------------- ## 2172 2173ac_ext=c 2174ac_cpp='$CPP $CPPFLAGS' 2175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2177ac_compiler_gnu=$ac_cv_c_compiler_gnu 2178 2179 2180 2181#-------------------------------------------------------------------- 2182# Call TEA_INIT as the first TEA_ macro to set up initial vars. 2183# This will define a ${TEA_PLATFORM} variable == "unix" or "windows" 2184# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. 2185#-------------------------------------------------------------------- 2186 2187 2188 # TEA extensions pass this us the version of TEA they think they 2189 # are compatible with. 2190 TEA_VERSION="3.10" 2191 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct TEA configuration" >&5 2193$as_echo_n "checking for correct TEA configuration... " >&6; } 2194 if test x"${PACKAGE_NAME}" = x ; then 2195 as_fn_error $? " 2196The PACKAGE_NAME variable must be defined by your TEA configure.ac" "$LINENO" 5 2197 fi 2198 if test x"3.10" = x ; then 2199 as_fn_error $? " 2200TEA version not specified." "$LINENO" 5 2201 elif test "3.10" != "${TEA_VERSION}" ; then 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: warning: requested TEA version \"3.10\", have \"${TEA_VERSION}\"" >&5 2203$as_echo "warning: requested TEA version \"3.10\", have \"${TEA_VERSION}\"" >&6; } 2204 else 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5 2206$as_echo "ok (TEA ${TEA_VERSION})" >&6; } 2207 fi 2208 2209 # If the user did not set CFLAGS, set it now to keep macros 2210 # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2". 2211 if test "${CFLAGS+set}" != "set" ; then 2212 CFLAGS="" 2213 fi 2214 2215 case "`uname -s`" in 2216 *win32*|*WIN32*|*MINGW32_*) 2217 # Extract the first word of "cygpath", so it can be a program name with args. 2218set dummy cygpath; ac_word=$2 2219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2220$as_echo_n "checking for $ac_word... " >&6; } 2221if ${ac_cv_prog_CYGPATH+:} false; then : 2222 $as_echo_n "(cached) " >&6 2223else 2224 if test -n "$CYGPATH"; then 2225 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 2226else 2227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2228for as_dir in $PATH 2229do 2230 IFS=$as_save_IFS 2231 test -z "$as_dir" && as_dir=. 2232 for ac_exec_ext in '' $ac_executable_extensions; do 2233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2234 ac_cv_prog_CYGPATH="cygpath -m" 2235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2236 break 2 2237 fi 2238done 2239 done 2240IFS=$as_save_IFS 2241 2242 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 2243fi 2244fi 2245CYGPATH=$ac_cv_prog_CYGPATH 2246if test -n "$CYGPATH"; then 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 2248$as_echo "$CYGPATH" >&6; } 2249else 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2251$as_echo "no" >&6; } 2252fi 2253 2254 2255 EXEEXT=".exe" 2256 TEA_PLATFORM="windows" 2257 ;; 2258 *CYGWIN_*) 2259 EXEEXT=".exe" 2260 # CYGPATH and TEA_PLATFORM are determined later in LOAD_TCLCONFIG 2261 ;; 2262 *) 2263 CYGPATH=echo 2264 # Maybe we are cross-compiling.... 2265 case ${host_alias} in 2266 *mingw32*) 2267 EXEEXT=".exe" 2268 TEA_PLATFORM="windows" 2269 ;; 2270 *) 2271 EXEEXT="" 2272 TEA_PLATFORM="unix" 2273 ;; 2274 esac 2275 ;; 2276 esac 2277 2278 # Check if exec_prefix is set. If not use fall back to prefix. 2279 # Note when adjusted, so that TEA_PREFIX can correct for this. 2280 # This is needed for recursive configures, since autoconf propagates 2281 # $prefix, but not $exec_prefix (doh!). 2282 if test x$exec_prefix = xNONE ; then 2283 exec_prefix_default=yes 2284 exec_prefix=$prefix 2285 fi 2286 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5 2288$as_echo "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;} 2289 2290 2291 2292 2293 # This package name must be replaced statically for AC_SUBST to work 2294 2295 # Substitute STUB_LIB_FILE in case package creates a stub library too. 2296 2297 2298 # We AC_SUBST these here to ensure they are subst'ed, 2299 # in case the user doesn't call TEA_ADD_... 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309ac_aux_dir= 2310for ac_dir in ../../tclconfig "$srcdir"/../../tclconfig; do 2311 if test -f "$ac_dir/install-sh"; then 2312 ac_aux_dir=$ac_dir 2313 ac_install_sh="$ac_aux_dir/install-sh -c" 2314 break 2315 elif test -f "$ac_dir/install.sh"; then 2316 ac_aux_dir=$ac_dir 2317 ac_install_sh="$ac_aux_dir/install.sh -c" 2318 break 2319 elif test -f "$ac_dir/shtool"; then 2320 ac_aux_dir=$ac_dir 2321 ac_install_sh="$ac_aux_dir/shtool install -c" 2322 break 2323 fi 2324done 2325if test -z "$ac_aux_dir"; then 2326 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../tclconfig \"$srcdir\"/../../tclconfig" "$LINENO" 5 2327fi 2328 2329# These three variables are undocumented and unsupported, 2330# and are intended to be withdrawn in a future Autoconf release. 2331# They can cause serious problems if a builder's source tree is in a directory 2332# whose full name contains unusual characters. 2333ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2334ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2335ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2336 2337 2338 2339#-------------------------------------------------------------------- 2340# Load the tclConfig.sh file 2341#-------------------------------------------------------------------- 2342 2343 2344 2345 # 2346 # Ok, lets find the tcl configuration 2347 # First, look for one uninstalled. 2348 # the alternative search directory is invoked by --with-tcl 2349 # 2350 2351 if test x"${no_tcl}" = x ; then 2352 # we reset no_tcl in case something fails here 2353 no_tcl=true 2354 2355# Check whether --with-tcl was given. 2356if test "${with_tcl+set}" = set; then : 2357 withval=$with_tcl; with_tclconfig="${withval}" 2358fi 2359 2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5 2361$as_echo_n "checking for Tcl configuration... " >&6; } 2362 if ${ac_cv_c_tclconfig+:} false; then : 2363 $as_echo_n "(cached) " >&6 2364else 2365 2366 2367 # First check to see if --with-tcl was specified. 2368 if test x"${with_tclconfig}" != x ; then 2369 case "${with_tclconfig}" in 2370 */tclConfig.sh ) 2371 if test -f "${with_tclconfig}"; then 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 2373$as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 2374 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 2375 fi ;; 2376 esac 2377 if test -f "${with_tclconfig}/tclConfig.sh" ; then 2378 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 2379 else 2380 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5 2381 fi 2382 fi 2383 2384 # then check for a private Tcl installation 2385 if test x"${ac_cv_c_tclconfig}" = x ; then 2386 for i in \ 2387 ../tcl \ 2388 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2389 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 2390 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 2391 ../../tcl \ 2392 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2393 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 2394 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2395 ../../../tcl \ 2396 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2397 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2398 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2399 if test "${TEA_PLATFORM}" = "windows" \ 2400 -a -f "$i/win/tclConfig.sh" ; then 2401 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2402 break 2403 fi 2404 if test -f "$i/unix/tclConfig.sh" ; then 2405 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2406 break 2407 fi 2408 done 2409 fi 2410 2411 # on Darwin, check in Framework installation locations 2412 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2413 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2414 `ls -d /Library/Frameworks 2>/dev/null` \ 2415 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2416 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2417 ; do 2418 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2419 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2420 break 2421 fi 2422 done 2423 fi 2424 2425 # TEA specific: on Windows, check in common installation locations 2426 if test "${TEA_PLATFORM}" = "windows" \ 2427 -a x"${ac_cv_c_tclconfig}" = x ; then 2428 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2429 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2430 ; do 2431 if test -f "$i/tclConfig.sh" ; then 2432 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2433 break 2434 fi 2435 done 2436 fi 2437 2438 # check in a few common install locations 2439 if test x"${ac_cv_c_tclconfig}" = x ; then 2440 for i in `ls -d ${libdir} 2>/dev/null` \ 2441 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2442 `ls -d ${prefix}/lib 2>/dev/null` \ 2443 `ls -d /usr/contrib/lib 2>/dev/null` \ 2444 `ls -d /usr/local/lib 2>/dev/null` \ 2445 `ls -d /usr/pkg/lib 2>/dev/null` \ 2446 `ls -d /usr/lib 2>/dev/null` \ 2447 `ls -d /usr/lib64 2>/dev/null` \ 2448 `ls -d /usr/lib/tcl8.6 2>/dev/null` \ 2449 `ls -d /usr/lib/tcl8.5 2>/dev/null` \ 2450 ; do 2451 if test -f "$i/tclConfig.sh" ; then 2452 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2453 break 2454 fi 2455 done 2456 fi 2457 2458 # check in a few other private locations 2459 if test x"${ac_cv_c_tclconfig}" = x ; then 2460 for i in \ 2461 ${srcdir}/../tcl \ 2462 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2463 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2464 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2465 if test "${TEA_PLATFORM}" = "windows" \ 2466 -a -f "$i/win/tclConfig.sh" ; then 2467 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2468 break 2469 fi 2470 if test -f "$i/unix/tclConfig.sh" ; then 2471 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2472 break 2473 fi 2474 done 2475 fi 2476 2477fi 2478 2479 2480 if test x"${ac_cv_c_tclconfig}" = x ; then 2481 TCL_BIN_DIR="# no Tcl configs found" 2482 as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5 2483 else 2484 no_tcl= 2485 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2487$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2488 fi 2489 fi 2490 2491ac_ext=c 2492ac_cpp='$CPP $CPPFLAGS' 2493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2495ac_compiler_gnu=$ac_cv_c_compiler_gnu 2496if test -n "$ac_tool_prefix"; then 2497 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2498set dummy ${ac_tool_prefix}gcc; ac_word=$2 2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2500$as_echo_n "checking for $ac_word... " >&6; } 2501if ${ac_cv_prog_CC+:} false; then : 2502 $as_echo_n "(cached) " >&6 2503else 2504 if test -n "$CC"; then 2505 ac_cv_prog_CC="$CC" # Let the user override the test. 2506else 2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2508for as_dir in $PATH 2509do 2510 IFS=$as_save_IFS 2511 test -z "$as_dir" && as_dir=. 2512 for ac_exec_ext in '' $ac_executable_extensions; do 2513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2514 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2516 break 2 2517 fi 2518done 2519 done 2520IFS=$as_save_IFS 2521 2522fi 2523fi 2524CC=$ac_cv_prog_CC 2525if test -n "$CC"; then 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2527$as_echo "$CC" >&6; } 2528else 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2530$as_echo "no" >&6; } 2531fi 2532 2533 2534fi 2535if test -z "$ac_cv_prog_CC"; then 2536 ac_ct_CC=$CC 2537 # Extract the first word of "gcc", so it can be a program name with args. 2538set dummy gcc; ac_word=$2 2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2540$as_echo_n "checking for $ac_word... " >&6; } 2541if ${ac_cv_prog_ac_ct_CC+:} false; then : 2542 $as_echo_n "(cached) " >&6 2543else 2544 if test -n "$ac_ct_CC"; then 2545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2546else 2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2548for as_dir in $PATH 2549do 2550 IFS=$as_save_IFS 2551 test -z "$as_dir" && as_dir=. 2552 for ac_exec_ext in '' $ac_executable_extensions; do 2553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2554 ac_cv_prog_ac_ct_CC="gcc" 2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2556 break 2 2557 fi 2558done 2559 done 2560IFS=$as_save_IFS 2561 2562fi 2563fi 2564ac_ct_CC=$ac_cv_prog_ac_ct_CC 2565if test -n "$ac_ct_CC"; then 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2567$as_echo "$ac_ct_CC" >&6; } 2568else 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2570$as_echo "no" >&6; } 2571fi 2572 2573 if test "x$ac_ct_CC" = x; then 2574 CC="" 2575 else 2576 case $cross_compiling:$ac_tool_warned in 2577yes:) 2578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2580ac_tool_warned=yes ;; 2581esac 2582 CC=$ac_ct_CC 2583 fi 2584else 2585 CC="$ac_cv_prog_CC" 2586fi 2587 2588if test -z "$CC"; then 2589 if test -n "$ac_tool_prefix"; then 2590 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2591set dummy ${ac_tool_prefix}cc; ac_word=$2 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2593$as_echo_n "checking for $ac_word... " >&6; } 2594if ${ac_cv_prog_CC+:} false; then : 2595 $as_echo_n "(cached) " >&6 2596else 2597 if test -n "$CC"; then 2598 ac_cv_prog_CC="$CC" # Let the user override the test. 2599else 2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2601for as_dir in $PATH 2602do 2603 IFS=$as_save_IFS 2604 test -z "$as_dir" && as_dir=. 2605 for ac_exec_ext in '' $ac_executable_extensions; do 2606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2607 ac_cv_prog_CC="${ac_tool_prefix}cc" 2608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2609 break 2 2610 fi 2611done 2612 done 2613IFS=$as_save_IFS 2614 2615fi 2616fi 2617CC=$ac_cv_prog_CC 2618if test -n "$CC"; then 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2620$as_echo "$CC" >&6; } 2621else 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2623$as_echo "no" >&6; } 2624fi 2625 2626 2627 fi 2628fi 2629if test -z "$CC"; then 2630 # Extract the first word of "cc", so it can be a program name with args. 2631set dummy cc; ac_word=$2 2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2633$as_echo_n "checking for $ac_word... " >&6; } 2634if ${ac_cv_prog_CC+:} false; then : 2635 $as_echo_n "(cached) " >&6 2636else 2637 if test -n "$CC"; then 2638 ac_cv_prog_CC="$CC" # Let the user override the test. 2639else 2640 ac_prog_rejected=no 2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2642for as_dir in $PATH 2643do 2644 IFS=$as_save_IFS 2645 test -z "$as_dir" && as_dir=. 2646 for ac_exec_ext in '' $ac_executable_extensions; do 2647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2649 ac_prog_rejected=yes 2650 continue 2651 fi 2652 ac_cv_prog_CC="cc" 2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2654 break 2 2655 fi 2656done 2657 done 2658IFS=$as_save_IFS 2659 2660if test $ac_prog_rejected = yes; then 2661 # We found a bogon in the path, so make sure we never use it. 2662 set dummy $ac_cv_prog_CC 2663 shift 2664 if test $# != 0; then 2665 # We chose a different compiler from the bogus one. 2666 # However, it has the same basename, so the bogon will be chosen 2667 # first if we set CC to just the basename; use the full file name. 2668 shift 2669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2670 fi 2671fi 2672fi 2673fi 2674CC=$ac_cv_prog_CC 2675if test -n "$CC"; then 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2677$as_echo "$CC" >&6; } 2678else 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2680$as_echo "no" >&6; } 2681fi 2682 2683 2684fi 2685if test -z "$CC"; then 2686 if test -n "$ac_tool_prefix"; then 2687 for ac_prog in cl.exe 2688 do 2689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2690set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2692$as_echo_n "checking for $ac_word... " >&6; } 2693if ${ac_cv_prog_CC+:} false; then : 2694 $as_echo_n "(cached) " >&6 2695else 2696 if test -n "$CC"; then 2697 ac_cv_prog_CC="$CC" # Let the user override the test. 2698else 2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2700for as_dir in $PATH 2701do 2702 IFS=$as_save_IFS 2703 test -z "$as_dir" && as_dir=. 2704 for ac_exec_ext in '' $ac_executable_extensions; do 2705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2706 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2708 break 2 2709 fi 2710done 2711 done 2712IFS=$as_save_IFS 2713 2714fi 2715fi 2716CC=$ac_cv_prog_CC 2717if test -n "$CC"; then 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2719$as_echo "$CC" >&6; } 2720else 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2722$as_echo "no" >&6; } 2723fi 2724 2725 2726 test -n "$CC" && break 2727 done 2728fi 2729if test -z "$CC"; then 2730 ac_ct_CC=$CC 2731 for ac_prog in cl.exe 2732do 2733 # Extract the first word of "$ac_prog", so it can be a program name with args. 2734set dummy $ac_prog; ac_word=$2 2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2736$as_echo_n "checking for $ac_word... " >&6; } 2737if ${ac_cv_prog_ac_ct_CC+:} false; then : 2738 $as_echo_n "(cached) " >&6 2739else 2740 if test -n "$ac_ct_CC"; then 2741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2742else 2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2744for as_dir in $PATH 2745do 2746 IFS=$as_save_IFS 2747 test -z "$as_dir" && as_dir=. 2748 for ac_exec_ext in '' $ac_executable_extensions; do 2749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2750 ac_cv_prog_ac_ct_CC="$ac_prog" 2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2752 break 2 2753 fi 2754done 2755 done 2756IFS=$as_save_IFS 2757 2758fi 2759fi 2760ac_ct_CC=$ac_cv_prog_ac_ct_CC 2761if test -n "$ac_ct_CC"; then 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2763$as_echo "$ac_ct_CC" >&6; } 2764else 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2766$as_echo "no" >&6; } 2767fi 2768 2769 2770 test -n "$ac_ct_CC" && break 2771done 2772 2773 if test "x$ac_ct_CC" = x; then 2774 CC="" 2775 else 2776 case $cross_compiling:$ac_tool_warned in 2777yes:) 2778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2780ac_tool_warned=yes ;; 2781esac 2782 CC=$ac_ct_CC 2783 fi 2784fi 2785 2786fi 2787 2788 2789test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2790$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2791as_fn_error $? "no acceptable C compiler found in \$PATH 2792See \`config.log' for more details" "$LINENO" 5; } 2793 2794# Provide some information about the compiler. 2795$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2796set X $ac_compile 2797ac_compiler=$2 2798for ac_option in --version -v -V -qversion; do 2799 { { ac_try="$ac_compiler $ac_option >&5" 2800case "(($ac_try" in 2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2802 *) ac_try_echo=$ac_try;; 2803esac 2804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2805$as_echo "$ac_try_echo"; } >&5 2806 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2807 ac_status=$? 2808 if test -s conftest.err; then 2809 sed '10a\ 2810... rest of stderr output deleted ... 2811 10q' conftest.err >conftest.er1 2812 cat conftest.er1 >&5 2813 fi 2814 rm -f conftest.er1 conftest.err 2815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2816 test $ac_status = 0; } 2817done 2818 2819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2820/* end confdefs.h. */ 2821 2822int 2823main () 2824{ 2825 2826 ; 2827 return 0; 2828} 2829_ACEOF 2830ac_clean_files_save=$ac_clean_files 2831ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2832# Try to create an executable without -o first, disregard a.out. 2833# It will help us diagnose broken compilers, and finding out an intuition 2834# of exeext. 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2836$as_echo_n "checking whether the C compiler works... " >&6; } 2837ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2838 2839# The possible output files: 2840ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2841 2842ac_rmfiles= 2843for ac_file in $ac_files 2844do 2845 case $ac_file in 2846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2847 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2848 esac 2849done 2850rm -f $ac_rmfiles 2851 2852if { { ac_try="$ac_link_default" 2853case "(($ac_try" in 2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2855 *) ac_try_echo=$ac_try;; 2856esac 2857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2858$as_echo "$ac_try_echo"; } >&5 2859 (eval "$ac_link_default") 2>&5 2860 ac_status=$? 2861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2862 test $ac_status = 0; }; then : 2863 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2864# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2865# in a Makefile. We should not override ac_cv_exeext if it was cached, 2866# so that the user can short-circuit this test for compilers unknown to 2867# Autoconf. 2868for ac_file in $ac_files '' 2869do 2870 test -f "$ac_file" || continue 2871 case $ac_file in 2872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2873 ;; 2874 [ab].out ) 2875 # We found the default executable, but exeext='' is most 2876 # certainly right. 2877 break;; 2878 *.* ) 2879 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2880 then :; else 2881 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2882 fi 2883 # We set ac_cv_exeext here because the later test for it is not 2884 # safe: cross compilers may not add the suffix if given an `-o' 2885 # argument, so we may need to know it at that point already. 2886 # Even if this section looks crufty: it has the advantage of 2887 # actually working. 2888 break;; 2889 * ) 2890 break;; 2891 esac 2892done 2893test "$ac_cv_exeext" = no && ac_cv_exeext= 2894 2895else 2896 ac_file='' 2897fi 2898if test -z "$ac_file"; then : 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2900$as_echo "no" >&6; } 2901$as_echo "$as_me: failed program was:" >&5 2902sed 's/^/| /' conftest.$ac_ext >&5 2903 2904{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2906as_fn_error 77 "C compiler cannot create executables 2907See \`config.log' for more details" "$LINENO" 5; } 2908else 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2910$as_echo "yes" >&6; } 2911fi 2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2913$as_echo_n "checking for C compiler default output file name... " >&6; } 2914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2915$as_echo "$ac_file" >&6; } 2916ac_exeext=$ac_cv_exeext 2917 2918rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2919ac_clean_files=$ac_clean_files_save 2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2921$as_echo_n "checking for suffix of executables... " >&6; } 2922if { { ac_try="$ac_link" 2923case "(($ac_try" in 2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2925 *) ac_try_echo=$ac_try;; 2926esac 2927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2928$as_echo "$ac_try_echo"; } >&5 2929 (eval "$ac_link") 2>&5 2930 ac_status=$? 2931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2932 test $ac_status = 0; }; then : 2933 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2934# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2935# work properly (i.e., refer to `conftest.exe'), while it won't with 2936# `rm'. 2937for ac_file in conftest.exe conftest conftest.*; do 2938 test -f "$ac_file" || continue 2939 case $ac_file in 2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2941 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2942 break;; 2943 * ) break;; 2944 esac 2945done 2946else 2947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2949as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2950See \`config.log' for more details" "$LINENO" 5; } 2951fi 2952rm -f conftest conftest$ac_cv_exeext 2953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2954$as_echo "$ac_cv_exeext" >&6; } 2955 2956rm -f conftest.$ac_ext 2957EXEEXT=$ac_cv_exeext 2958ac_exeext=$EXEEXT 2959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2960/* end confdefs.h. */ 2961#include <stdio.h> 2962int 2963main () 2964{ 2965FILE *f = fopen ("conftest.out", "w"); 2966 return ferror (f) || fclose (f) != 0; 2967 2968 ; 2969 return 0; 2970} 2971_ACEOF 2972ac_clean_files="$ac_clean_files conftest.out" 2973# Check that the compiler produces executables we can run. If not, either 2974# the compiler is broken, or we cross compile. 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2976$as_echo_n "checking whether we are cross compiling... " >&6; } 2977if test "$cross_compiling" != yes; then 2978 { { ac_try="$ac_link" 2979case "(($ac_try" in 2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2981 *) ac_try_echo=$ac_try;; 2982esac 2983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2984$as_echo "$ac_try_echo"; } >&5 2985 (eval "$ac_link") 2>&5 2986 ac_status=$? 2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2988 test $ac_status = 0; } 2989 if { ac_try='./conftest$ac_cv_exeext' 2990 { { case "(($ac_try" in 2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2992 *) ac_try_echo=$ac_try;; 2993esac 2994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2995$as_echo "$ac_try_echo"; } >&5 2996 (eval "$ac_try") 2>&5 2997 ac_status=$? 2998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2999 test $ac_status = 0; }; }; then 3000 cross_compiling=no 3001 else 3002 if test "$cross_compiling" = maybe; then 3003 cross_compiling=yes 3004 else 3005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3007as_fn_error $? "cannot run C compiled programs. 3008If you meant to cross compile, use \`--host'. 3009See \`config.log' for more details" "$LINENO" 5; } 3010 fi 3011 fi 3012fi 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3014$as_echo "$cross_compiling" >&6; } 3015 3016rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3017ac_clean_files=$ac_clean_files_save 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3019$as_echo_n "checking for suffix of object files... " >&6; } 3020if ${ac_cv_objext+:} false; then : 3021 $as_echo_n "(cached) " >&6 3022else 3023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3024/* end confdefs.h. */ 3025 3026int 3027main () 3028{ 3029 3030 ; 3031 return 0; 3032} 3033_ACEOF 3034rm -f conftest.o conftest.obj 3035if { { ac_try="$ac_compile" 3036case "(($ac_try" in 3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3038 *) ac_try_echo=$ac_try;; 3039esac 3040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3041$as_echo "$ac_try_echo"; } >&5 3042 (eval "$ac_compile") 2>&5 3043 ac_status=$? 3044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3045 test $ac_status = 0; }; then : 3046 for ac_file in conftest.o conftest.obj conftest.*; do 3047 test -f "$ac_file" || continue; 3048 case $ac_file in 3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3051 break;; 3052 esac 3053done 3054else 3055 $as_echo "$as_me: failed program was:" >&5 3056sed 's/^/| /' conftest.$ac_ext >&5 3057 3058{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3060as_fn_error $? "cannot compute suffix of object files: cannot compile 3061See \`config.log' for more details" "$LINENO" 5; } 3062fi 3063rm -f conftest.$ac_cv_objext conftest.$ac_ext 3064fi 3065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3066$as_echo "$ac_cv_objext" >&6; } 3067OBJEXT=$ac_cv_objext 3068ac_objext=$OBJEXT 3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3070$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3071if ${ac_cv_c_compiler_gnu+:} false; then : 3072 $as_echo_n "(cached) " >&6 3073else 3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3075/* end confdefs.h. */ 3076 3077int 3078main () 3079{ 3080#ifndef __GNUC__ 3081 choke me 3082#endif 3083 3084 ; 3085 return 0; 3086} 3087_ACEOF 3088if ac_fn_c_try_compile "$LINENO"; then : 3089 ac_compiler_gnu=yes 3090else 3091 ac_compiler_gnu=no 3092fi 3093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3094ac_cv_c_compiler_gnu=$ac_compiler_gnu 3095 3096fi 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3098$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3099if test $ac_compiler_gnu = yes; then 3100 GCC=yes 3101else 3102 GCC= 3103fi 3104ac_test_CFLAGS=${CFLAGS+set} 3105ac_save_CFLAGS=$CFLAGS 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3107$as_echo_n "checking whether $CC accepts -g... " >&6; } 3108if ${ac_cv_prog_cc_g+:} false; then : 3109 $as_echo_n "(cached) " >&6 3110else 3111 ac_save_c_werror_flag=$ac_c_werror_flag 3112 ac_c_werror_flag=yes 3113 ac_cv_prog_cc_g=no 3114 CFLAGS="-g" 3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3116/* end confdefs.h. */ 3117 3118int 3119main () 3120{ 3121 3122 ; 3123 return 0; 3124} 3125_ACEOF 3126if ac_fn_c_try_compile "$LINENO"; then : 3127 ac_cv_prog_cc_g=yes 3128else 3129 CFLAGS="" 3130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3131/* end confdefs.h. */ 3132 3133int 3134main () 3135{ 3136 3137 ; 3138 return 0; 3139} 3140_ACEOF 3141if ac_fn_c_try_compile "$LINENO"; then : 3142 3143else 3144 ac_c_werror_flag=$ac_save_c_werror_flag 3145 CFLAGS="-g" 3146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3147/* end confdefs.h. */ 3148 3149int 3150main () 3151{ 3152 3153 ; 3154 return 0; 3155} 3156_ACEOF 3157if ac_fn_c_try_compile "$LINENO"; then : 3158 ac_cv_prog_cc_g=yes 3159fi 3160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3161fi 3162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3163fi 3164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3165 ac_c_werror_flag=$ac_save_c_werror_flag 3166fi 3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3168$as_echo "$ac_cv_prog_cc_g" >&6; } 3169if test "$ac_test_CFLAGS" = set; then 3170 CFLAGS=$ac_save_CFLAGS 3171elif test $ac_cv_prog_cc_g = yes; then 3172 if test "$GCC" = yes; then 3173 CFLAGS="-g -O2" 3174 else 3175 CFLAGS="-g" 3176 fi 3177else 3178 if test "$GCC" = yes; then 3179 CFLAGS="-O2" 3180 else 3181 CFLAGS= 3182 fi 3183fi 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3185$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3186if ${ac_cv_prog_cc_c89+:} false; then : 3187 $as_echo_n "(cached) " >&6 3188else 3189 ac_cv_prog_cc_c89=no 3190ac_save_CC=$CC 3191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3192/* end confdefs.h. */ 3193#include <stdarg.h> 3194#include <stdio.h> 3195struct stat; 3196/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3197struct buf { int x; }; 3198FILE * (*rcsopen) (struct buf *, struct stat *, int); 3199static char *e (p, i) 3200 char **p; 3201 int i; 3202{ 3203 return p[i]; 3204} 3205static char *f (char * (*g) (char **, int), char **p, ...) 3206{ 3207 char *s; 3208 va_list v; 3209 va_start (v,p); 3210 s = g (p, va_arg (v,int)); 3211 va_end (v); 3212 return s; 3213} 3214 3215/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3216 function prototypes and stuff, but not '\xHH' hex character constants. 3217 These don't provoke an error unfortunately, instead are silently treated 3218 as 'x'. The following induces an error, until -std is added to get 3219 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3220 array size at least. It's necessary to write '\x00'==0 to get something 3221 that's true only with -std. */ 3222int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3223 3224/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3225 inside strings and character constants. */ 3226#define FOO(x) 'x' 3227int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3228 3229int test (int i, double x); 3230struct s1 {int (*f) (int a);}; 3231struct s2 {int (*f) (double a);}; 3232int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3233int argc; 3234char **argv; 3235int 3236main () 3237{ 3238return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3239 ; 3240 return 0; 3241} 3242_ACEOF 3243for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3244 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3245do 3246 CC="$ac_save_CC $ac_arg" 3247 if ac_fn_c_try_compile "$LINENO"; then : 3248 ac_cv_prog_cc_c89=$ac_arg 3249fi 3250rm -f core conftest.err conftest.$ac_objext 3251 test "x$ac_cv_prog_cc_c89" != "xno" && break 3252done 3253rm -f conftest.$ac_ext 3254CC=$ac_save_CC 3255 3256fi 3257# AC_CACHE_VAL 3258case "x$ac_cv_prog_cc_c89" in 3259 x) 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3261$as_echo "none needed" >&6; } ;; 3262 xno) 3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3264$as_echo "unsupported" >&6; } ;; 3265 *) 3266 CC="$CC $ac_cv_prog_cc_c89" 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3268$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3269esac 3270if test "x$ac_cv_prog_cc_c89" != xno; then : 3271 3272fi 3273 3274ac_ext=c 3275ac_cpp='$CPP $CPPFLAGS' 3276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3278ac_compiler_gnu=$ac_cv_c_compiler_gnu 3279 3280 3281 3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 3283$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; } 3284 3285 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 3287$as_echo "loading" >&6; } 3288 . "${TCL_BIN_DIR}/tclConfig.sh" 3289 else 3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 3291$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 3292 fi 3293 3294 # eval is required to do the TCL_DBGX substitution 3295 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 3296 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 3297 3298 # If the TCL_BIN_DIR is the build directory (not the install directory), 3299 # then set the common variable name to the value of the build variables. 3300 # For example, the variable TCL_LIB_SPEC will be set to the value 3301 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 3302 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 3303 # installed and uninstalled version of Tcl. 3304 if test -f "${TCL_BIN_DIR}/Makefile" ; then 3305 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 3306 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 3307 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 3308 elif test "`uname -s`" = "Darwin"; then 3309 # If Tcl was built as a framework, attempt to use the libraries 3310 # from the framework at the given location so that linking works 3311 # against Tcl.framework installed in an arbitrary location. 3312 case ${TCL_DEFS} in 3313 *TCL_FRAMEWORK*) 3314 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 3315 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 3316 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 3317 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 3318 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 3319 break 3320 fi 3321 done 3322 fi 3323 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 3324 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 3325 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 3326 fi 3327 ;; 3328 esac 3329 fi 3330 3331 # eval is required to do the TCL_DBGX substitution 3332 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 3333 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 3334 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 3335 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking platform" >&5 3351$as_echo_n "checking platform... " >&6; } 3352 hold_cc=$CC; CC="$TCL_CC" 3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3354/* end confdefs.h. */ 3355 3356int 3357main () 3358{ 3359 3360 #ifdef _WIN32 3361 #error win32 3362 #endif 3363 3364 ; 3365 return 0; 3366} 3367_ACEOF 3368if ac_fn_c_try_compile "$LINENO"; then : 3369 3370 TEA_PLATFORM="unix" 3371 CYGPATH=echo 3372 3373else 3374 3375 TEA_PLATFORM="windows" 3376 # Extract the first word of "cygpath", so it can be a program name with args. 3377set dummy cygpath; ac_word=$2 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3379$as_echo_n "checking for $ac_word... " >&6; } 3380if ${ac_cv_prog_CYGPATH+:} false; then : 3381 $as_echo_n "(cached) " >&6 3382else 3383 if test -n "$CYGPATH"; then 3384 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 3385else 3386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3387for as_dir in $PATH 3388do 3389 IFS=$as_save_IFS 3390 test -z "$as_dir" && as_dir=. 3391 for ac_exec_ext in '' $ac_executable_extensions; do 3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3393 ac_cv_prog_CYGPATH="cygpath -m" 3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3395 break 2 3396 fi 3397done 3398 done 3399IFS=$as_save_IFS 3400 3401 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 3402fi 3403fi 3404CYGPATH=$ac_cv_prog_CYGPATH 3405if test -n "$CYGPATH"; then 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 3407$as_echo "$CYGPATH" >&6; } 3408else 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3410$as_echo "no" >&6; } 3411fi 3412 3413 3414 3415fi 3416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3417 CC=$hold_cc 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5 3419$as_echo "$TEA_PLATFORM" >&6; } 3420 3421 # The BUILD_$pkg is to define the correct extern storage class 3422 # handling when making this package 3423 3424cat >>confdefs.h <<_ACEOF 3425#define BUILD_${PACKAGE_NAME} /**/ 3426_ACEOF 3427 3428 # Do this here as we have fully defined TEA_PLATFORM now 3429 if test "${TEA_PLATFORM}" = "windows" ; then 3430 EXEEXT=".exe" 3431 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 3432 fi 3433 3434 # TEA specific: 3435 3436 3437 3438 3439 3440 3441 3442 3443#-------------------------------------------------------------------- 3444# Load the tkConfig.sh file if necessary (Tk extension) 3445#-------------------------------------------------------------------- 3446 3447#TEA_PATH_TKCONFIG 3448#TEA_LOAD_TKCONFIG 3449 3450#----------------------------------------------------------------------- 3451# Handle the --prefix=... option by defaulting to what Tcl gave. 3452# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 3453#----------------------------------------------------------------------- 3454 3455 3456 if test "${prefix}" = "NONE"; then 3457 prefix_default=yes 3458 if test x"${TCL_PREFIX}" != x; then 3459 { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 3460$as_echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 3461 prefix=${TCL_PREFIX} 3462 else 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5 3464$as_echo "$as_me: --prefix defaulting to /usr/local" >&6;} 3465 prefix=/usr/local 3466 fi 3467 fi 3468 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 3469 -o x"${exec_prefix_default}" = x"yes" ; then 3470 if test x"${TCL_EXEC_PREFIX}" != x; then 3471 { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 3472$as_echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 3473 exec_prefix=${TCL_EXEC_PREFIX} 3474 else 3475 { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5 3476$as_echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 3477 exec_prefix=$prefix 3478 fi 3479 fi 3480 3481 3482#----------------------------------------------------------------------- 3483# Standard compiler checks. 3484# This sets up CC by using the CC env var, or looks for gcc otherwise. 3485# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 3486# the basic setup necessary to compile executables. 3487#----------------------------------------------------------------------- 3488 3489 3490 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 3491 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 3492 3493 ac_ext=c 3494ac_cpp='$CPP $CPPFLAGS' 3495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3497ac_compiler_gnu=$ac_cv_c_compiler_gnu 3498if test -n "$ac_tool_prefix"; then 3499 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3500set dummy ${ac_tool_prefix}gcc; ac_word=$2 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3502$as_echo_n "checking for $ac_word... " >&6; } 3503if ${ac_cv_prog_CC+:} false; then : 3504 $as_echo_n "(cached) " >&6 3505else 3506 if test -n "$CC"; then 3507 ac_cv_prog_CC="$CC" # Let the user override the test. 3508else 3509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3510for as_dir in $PATH 3511do 3512 IFS=$as_save_IFS 3513 test -z "$as_dir" && as_dir=. 3514 for ac_exec_ext in '' $ac_executable_extensions; do 3515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3516 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3518 break 2 3519 fi 3520done 3521 done 3522IFS=$as_save_IFS 3523 3524fi 3525fi 3526CC=$ac_cv_prog_CC 3527if test -n "$CC"; then 3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3529$as_echo "$CC" >&6; } 3530else 3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3532$as_echo "no" >&6; } 3533fi 3534 3535 3536fi 3537if test -z "$ac_cv_prog_CC"; then 3538 ac_ct_CC=$CC 3539 # Extract the first word of "gcc", so it can be a program name with args. 3540set dummy gcc; ac_word=$2 3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3542$as_echo_n "checking for $ac_word... " >&6; } 3543if ${ac_cv_prog_ac_ct_CC+:} false; then : 3544 $as_echo_n "(cached) " >&6 3545else 3546 if test -n "$ac_ct_CC"; then 3547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3548else 3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3550for as_dir in $PATH 3551do 3552 IFS=$as_save_IFS 3553 test -z "$as_dir" && as_dir=. 3554 for ac_exec_ext in '' $ac_executable_extensions; do 3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3556 ac_cv_prog_ac_ct_CC="gcc" 3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3558 break 2 3559 fi 3560done 3561 done 3562IFS=$as_save_IFS 3563 3564fi 3565fi 3566ac_ct_CC=$ac_cv_prog_ac_ct_CC 3567if test -n "$ac_ct_CC"; then 3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3569$as_echo "$ac_ct_CC" >&6; } 3570else 3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3572$as_echo "no" >&6; } 3573fi 3574 3575 if test "x$ac_ct_CC" = x; then 3576 CC="" 3577 else 3578 case $cross_compiling:$ac_tool_warned in 3579yes:) 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3582ac_tool_warned=yes ;; 3583esac 3584 CC=$ac_ct_CC 3585 fi 3586else 3587 CC="$ac_cv_prog_CC" 3588fi 3589 3590if test -z "$CC"; then 3591 if test -n "$ac_tool_prefix"; then 3592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3593set dummy ${ac_tool_prefix}cc; ac_word=$2 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3595$as_echo_n "checking for $ac_word... " >&6; } 3596if ${ac_cv_prog_CC+:} false; then : 3597 $as_echo_n "(cached) " >&6 3598else 3599 if test -n "$CC"; then 3600 ac_cv_prog_CC="$CC" # Let the user override the test. 3601else 3602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3603for as_dir in $PATH 3604do 3605 IFS=$as_save_IFS 3606 test -z "$as_dir" && as_dir=. 3607 for ac_exec_ext in '' $ac_executable_extensions; do 3608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3609 ac_cv_prog_CC="${ac_tool_prefix}cc" 3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3611 break 2 3612 fi 3613done 3614 done 3615IFS=$as_save_IFS 3616 3617fi 3618fi 3619CC=$ac_cv_prog_CC 3620if test -n "$CC"; then 3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3622$as_echo "$CC" >&6; } 3623else 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3625$as_echo "no" >&6; } 3626fi 3627 3628 3629 fi 3630fi 3631if test -z "$CC"; then 3632 # Extract the first word of "cc", so it can be a program name with args. 3633set dummy cc; ac_word=$2 3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3635$as_echo_n "checking for $ac_word... " >&6; } 3636if ${ac_cv_prog_CC+:} false; then : 3637 $as_echo_n "(cached) " >&6 3638else 3639 if test -n "$CC"; then 3640 ac_cv_prog_CC="$CC" # Let the user override the test. 3641else 3642 ac_prog_rejected=no 3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3644for as_dir in $PATH 3645do 3646 IFS=$as_save_IFS 3647 test -z "$as_dir" && as_dir=. 3648 for ac_exec_ext in '' $ac_executable_extensions; do 3649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3651 ac_prog_rejected=yes 3652 continue 3653 fi 3654 ac_cv_prog_CC="cc" 3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3656 break 2 3657 fi 3658done 3659 done 3660IFS=$as_save_IFS 3661 3662if test $ac_prog_rejected = yes; then 3663 # We found a bogon in the path, so make sure we never use it. 3664 set dummy $ac_cv_prog_CC 3665 shift 3666 if test $# != 0; then 3667 # We chose a different compiler from the bogus one. 3668 # However, it has the same basename, so the bogon will be chosen 3669 # first if we set CC to just the basename; use the full file name. 3670 shift 3671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3672 fi 3673fi 3674fi 3675fi 3676CC=$ac_cv_prog_CC 3677if test -n "$CC"; then 3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3679$as_echo "$CC" >&6; } 3680else 3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3682$as_echo "no" >&6; } 3683fi 3684 3685 3686fi 3687if test -z "$CC"; then 3688 if test -n "$ac_tool_prefix"; then 3689 for ac_prog in cl.exe 3690 do 3691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3692set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3694$as_echo_n "checking for $ac_word... " >&6; } 3695if ${ac_cv_prog_CC+:} false; then : 3696 $as_echo_n "(cached) " >&6 3697else 3698 if test -n "$CC"; then 3699 ac_cv_prog_CC="$CC" # Let the user override the test. 3700else 3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3702for as_dir in $PATH 3703do 3704 IFS=$as_save_IFS 3705 test -z "$as_dir" && as_dir=. 3706 for ac_exec_ext in '' $ac_executable_extensions; do 3707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3710 break 2 3711 fi 3712done 3713 done 3714IFS=$as_save_IFS 3715 3716fi 3717fi 3718CC=$ac_cv_prog_CC 3719if test -n "$CC"; then 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3721$as_echo "$CC" >&6; } 3722else 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3724$as_echo "no" >&6; } 3725fi 3726 3727 3728 test -n "$CC" && break 3729 done 3730fi 3731if test -z "$CC"; then 3732 ac_ct_CC=$CC 3733 for ac_prog in cl.exe 3734do 3735 # Extract the first word of "$ac_prog", so it can be a program name with args. 3736set dummy $ac_prog; ac_word=$2 3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3738$as_echo_n "checking for $ac_word... " >&6; } 3739if ${ac_cv_prog_ac_ct_CC+:} false; then : 3740 $as_echo_n "(cached) " >&6 3741else 3742 if test -n "$ac_ct_CC"; then 3743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3744else 3745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3746for as_dir in $PATH 3747do 3748 IFS=$as_save_IFS 3749 test -z "$as_dir" && as_dir=. 3750 for ac_exec_ext in '' $ac_executable_extensions; do 3751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3752 ac_cv_prog_ac_ct_CC="$ac_prog" 3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3754 break 2 3755 fi 3756done 3757 done 3758IFS=$as_save_IFS 3759 3760fi 3761fi 3762ac_ct_CC=$ac_cv_prog_ac_ct_CC 3763if test -n "$ac_ct_CC"; then 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3765$as_echo "$ac_ct_CC" >&6; } 3766else 3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3768$as_echo "no" >&6; } 3769fi 3770 3771 3772 test -n "$ac_ct_CC" && break 3773done 3774 3775 if test "x$ac_ct_CC" = x; then 3776 CC="" 3777 else 3778 case $cross_compiling:$ac_tool_warned in 3779yes:) 3780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3782ac_tool_warned=yes ;; 3783esac 3784 CC=$ac_ct_CC 3785 fi 3786fi 3787 3788fi 3789 3790 3791test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3793as_fn_error $? "no acceptable C compiler found in \$PATH 3794See \`config.log' for more details" "$LINENO" 5; } 3795 3796# Provide some information about the compiler. 3797$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3798set X $ac_compile 3799ac_compiler=$2 3800for ac_option in --version -v -V -qversion; do 3801 { { ac_try="$ac_compiler $ac_option >&5" 3802case "(($ac_try" in 3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3804 *) ac_try_echo=$ac_try;; 3805esac 3806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3807$as_echo "$ac_try_echo"; } >&5 3808 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3809 ac_status=$? 3810 if test -s conftest.err; then 3811 sed '10a\ 3812... rest of stderr output deleted ... 3813 10q' conftest.err >conftest.er1 3814 cat conftest.er1 >&5 3815 fi 3816 rm -f conftest.er1 conftest.err 3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3818 test $ac_status = 0; } 3819done 3820 3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3822$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3823if ${ac_cv_c_compiler_gnu+:} false; then : 3824 $as_echo_n "(cached) " >&6 3825else 3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3827/* end confdefs.h. */ 3828 3829int 3830main () 3831{ 3832#ifndef __GNUC__ 3833 choke me 3834#endif 3835 3836 ; 3837 return 0; 3838} 3839_ACEOF 3840if ac_fn_c_try_compile "$LINENO"; then : 3841 ac_compiler_gnu=yes 3842else 3843 ac_compiler_gnu=no 3844fi 3845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3846ac_cv_c_compiler_gnu=$ac_compiler_gnu 3847 3848fi 3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3850$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3851if test $ac_compiler_gnu = yes; then 3852 GCC=yes 3853else 3854 GCC= 3855fi 3856ac_test_CFLAGS=${CFLAGS+set} 3857ac_save_CFLAGS=$CFLAGS 3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3859$as_echo_n "checking whether $CC accepts -g... " >&6; } 3860if ${ac_cv_prog_cc_g+:} false; then : 3861 $as_echo_n "(cached) " >&6 3862else 3863 ac_save_c_werror_flag=$ac_c_werror_flag 3864 ac_c_werror_flag=yes 3865 ac_cv_prog_cc_g=no 3866 CFLAGS="-g" 3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868/* end confdefs.h. */ 3869 3870int 3871main () 3872{ 3873 3874 ; 3875 return 0; 3876} 3877_ACEOF 3878if ac_fn_c_try_compile "$LINENO"; then : 3879 ac_cv_prog_cc_g=yes 3880else 3881 CFLAGS="" 3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3883/* end confdefs.h. */ 3884 3885int 3886main () 3887{ 3888 3889 ; 3890 return 0; 3891} 3892_ACEOF 3893if ac_fn_c_try_compile "$LINENO"; then : 3894 3895else 3896 ac_c_werror_flag=$ac_save_c_werror_flag 3897 CFLAGS="-g" 3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3899/* end confdefs.h. */ 3900 3901int 3902main () 3903{ 3904 3905 ; 3906 return 0; 3907} 3908_ACEOF 3909if ac_fn_c_try_compile "$LINENO"; then : 3910 ac_cv_prog_cc_g=yes 3911fi 3912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3913fi 3914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3915fi 3916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3917 ac_c_werror_flag=$ac_save_c_werror_flag 3918fi 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3920$as_echo "$ac_cv_prog_cc_g" >&6; } 3921if test "$ac_test_CFLAGS" = set; then 3922 CFLAGS=$ac_save_CFLAGS 3923elif test $ac_cv_prog_cc_g = yes; then 3924 if test "$GCC" = yes; then 3925 CFLAGS="-g -O2" 3926 else 3927 CFLAGS="-g" 3928 fi 3929else 3930 if test "$GCC" = yes; then 3931 CFLAGS="-O2" 3932 else 3933 CFLAGS= 3934 fi 3935fi 3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3937$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3938if ${ac_cv_prog_cc_c89+:} false; then : 3939 $as_echo_n "(cached) " >&6 3940else 3941 ac_cv_prog_cc_c89=no 3942ac_save_CC=$CC 3943cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3944/* end confdefs.h. */ 3945#include <stdarg.h> 3946#include <stdio.h> 3947struct stat; 3948/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3949struct buf { int x; }; 3950FILE * (*rcsopen) (struct buf *, struct stat *, int); 3951static char *e (p, i) 3952 char **p; 3953 int i; 3954{ 3955 return p[i]; 3956} 3957static char *f (char * (*g) (char **, int), char **p, ...) 3958{ 3959 char *s; 3960 va_list v; 3961 va_start (v,p); 3962 s = g (p, va_arg (v,int)); 3963 va_end (v); 3964 return s; 3965} 3966 3967/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3968 function prototypes and stuff, but not '\xHH' hex character constants. 3969 These don't provoke an error unfortunately, instead are silently treated 3970 as 'x'. The following induces an error, until -std is added to get 3971 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3972 array size at least. It's necessary to write '\x00'==0 to get something 3973 that's true only with -std. */ 3974int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3975 3976/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3977 inside strings and character constants. */ 3978#define FOO(x) 'x' 3979int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3980 3981int test (int i, double x); 3982struct s1 {int (*f) (int a);}; 3983struct s2 {int (*f) (double a);}; 3984int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3985int argc; 3986char **argv; 3987int 3988main () 3989{ 3990return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3991 ; 3992 return 0; 3993} 3994_ACEOF 3995for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3996 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3997do 3998 CC="$ac_save_CC $ac_arg" 3999 if ac_fn_c_try_compile "$LINENO"; then : 4000 ac_cv_prog_cc_c89=$ac_arg 4001fi 4002rm -f core conftest.err conftest.$ac_objext 4003 test "x$ac_cv_prog_cc_c89" != "xno" && break 4004done 4005rm -f conftest.$ac_ext 4006CC=$ac_save_CC 4007 4008fi 4009# AC_CACHE_VAL 4010case "x$ac_cv_prog_cc_c89" in 4011 x) 4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4013$as_echo "none needed" >&6; } ;; 4014 xno) 4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4016$as_echo "unsupported" >&6; } ;; 4017 *) 4018 CC="$CC $ac_cv_prog_cc_c89" 4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4020$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4021esac 4022if test "x$ac_cv_prog_cc_c89" != xno; then : 4023 4024fi 4025 4026ac_ext=c 4027ac_cpp='$CPP $CPPFLAGS' 4028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4030ac_compiler_gnu=$ac_cv_c_compiler_gnu 4031 4032 ac_ext=c 4033ac_cpp='$CPP $CPPFLAGS' 4034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4036ac_compiler_gnu=$ac_cv_c_compiler_gnu 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4038$as_echo_n "checking how to run the C preprocessor... " >&6; } 4039# On Suns, sometimes $CPP names a directory. 4040if test -n "$CPP" && test -d "$CPP"; then 4041 CPP= 4042fi 4043if test -z "$CPP"; then 4044 if ${ac_cv_prog_CPP+:} false; then : 4045 $as_echo_n "(cached) " >&6 4046else 4047 # Double quotes because CPP needs to be expanded 4048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4049 do 4050 ac_preproc_ok=false 4051for ac_c_preproc_warn_flag in '' yes 4052do 4053 # Use a header file that comes with gcc, so configuring glibc 4054 # with a fresh cross-compiler works. 4055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4056 # <limits.h> exists even on freestanding compilers. 4057 # On the NeXT, cc -E runs the code through the compiler's parser, 4058 # not just through cpp. "Syntax error" is here to catch this case. 4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4060/* end confdefs.h. */ 4061#ifdef __STDC__ 4062# include <limits.h> 4063#else 4064# include <assert.h> 4065#endif 4066 Syntax error 4067_ACEOF 4068if ac_fn_c_try_cpp "$LINENO"; then : 4069 4070else 4071 # Broken: fails on valid input. 4072continue 4073fi 4074rm -f conftest.err conftest.i conftest.$ac_ext 4075 4076 # OK, works on sane cases. Now check whether nonexistent headers 4077 # can be detected and how. 4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4079/* end confdefs.h. */ 4080#include <ac_nonexistent.h> 4081_ACEOF 4082if ac_fn_c_try_cpp "$LINENO"; then : 4083 # Broken: success on invalid input. 4084continue 4085else 4086 # Passes both tests. 4087ac_preproc_ok=: 4088break 4089fi 4090rm -f conftest.err conftest.i conftest.$ac_ext 4091 4092done 4093# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4094rm -f conftest.i conftest.err conftest.$ac_ext 4095if $ac_preproc_ok; then : 4096 break 4097fi 4098 4099 done 4100 ac_cv_prog_CPP=$CPP 4101 4102fi 4103 CPP=$ac_cv_prog_CPP 4104else 4105 ac_cv_prog_CPP=$CPP 4106fi 4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4108$as_echo "$CPP" >&6; } 4109ac_preproc_ok=false 4110for ac_c_preproc_warn_flag in '' yes 4111do 4112 # Use a header file that comes with gcc, so configuring glibc 4113 # with a fresh cross-compiler works. 4114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4115 # <limits.h> exists even on freestanding compilers. 4116 # On the NeXT, cc -E runs the code through the compiler's parser, 4117 # not just through cpp. "Syntax error" is here to catch this case. 4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4119/* end confdefs.h. */ 4120#ifdef __STDC__ 4121# include <limits.h> 4122#else 4123# include <assert.h> 4124#endif 4125 Syntax error 4126_ACEOF 4127if ac_fn_c_try_cpp "$LINENO"; then : 4128 4129else 4130 # Broken: fails on valid input. 4131continue 4132fi 4133rm -f conftest.err conftest.i conftest.$ac_ext 4134 4135 # OK, works on sane cases. Now check whether nonexistent headers 4136 # can be detected and how. 4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4138/* end confdefs.h. */ 4139#include <ac_nonexistent.h> 4140_ACEOF 4141if ac_fn_c_try_cpp "$LINENO"; then : 4142 # Broken: success on invalid input. 4143continue 4144else 4145 # Passes both tests. 4146ac_preproc_ok=: 4147break 4148fi 4149rm -f conftest.err conftest.i conftest.$ac_ext 4150 4151done 4152# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4153rm -f conftest.i conftest.err conftest.$ac_ext 4154if $ac_preproc_ok; then : 4155 4156else 4157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4159as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4160See \`config.log' for more details" "$LINENO" 5; } 4161fi 4162 4163ac_ext=c 4164ac_cpp='$CPP $CPPFLAGS' 4165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4167ac_compiler_gnu=$ac_cv_c_compiler_gnu 4168 4169 4170 INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c' 4171 INSTALL_DATA_DIR='${INSTALL} -d -m 755' 4172 INSTALL_DATA='${INSTALL} -m 644' 4173 INSTALL_PROGRAM='${INSTALL}' 4174 INSTALL_SCRIPT='${INSTALL}' 4175 INSTALL_LIBRARY='${INSTALL_DATA}' 4176 4177 4178 4179 4180 4181 4182 4183 4184 #-------------------------------------------------------------------- 4185 # Checks to see if the make program sets the $MAKE variable. 4186 #-------------------------------------------------------------------- 4187 4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4189$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4190set x ${MAKE-make} 4191ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4192if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4193 $as_echo_n "(cached) " >&6 4194else 4195 cat >conftest.make <<\_ACEOF 4196SHELL = /bin/sh 4197all: 4198 @echo '@@@%%%=$(MAKE)=@@@%%%' 4199_ACEOF 4200# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4201case `${MAKE-make} -f conftest.make 2>/dev/null` in 4202 *@@@%%%=?*=@@@%%%*) 4203 eval ac_cv_prog_make_${ac_make}_set=yes;; 4204 *) 4205 eval ac_cv_prog_make_${ac_make}_set=no;; 4206esac 4207rm -f conftest.make 4208fi 4209if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4211$as_echo "yes" >&6; } 4212 SET_MAKE= 4213else 4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4215$as_echo "no" >&6; } 4216 SET_MAKE="MAKE=${MAKE-make}" 4217fi 4218 4219 4220 #-------------------------------------------------------------------- 4221 # Find ranlib 4222 #-------------------------------------------------------------------- 4223 4224 if test -n "$ac_tool_prefix"; then 4225 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4226set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4228$as_echo_n "checking for $ac_word... " >&6; } 4229if ${ac_cv_prog_RANLIB+:} false; then : 4230 $as_echo_n "(cached) " >&6 4231else 4232 if test -n "$RANLIB"; then 4233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4234else 4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4236for as_dir in $PATH 4237do 4238 IFS=$as_save_IFS 4239 test -z "$as_dir" && as_dir=. 4240 for ac_exec_ext in '' $ac_executable_extensions; do 4241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4244 break 2 4245 fi 4246done 4247 done 4248IFS=$as_save_IFS 4249 4250fi 4251fi 4252RANLIB=$ac_cv_prog_RANLIB 4253if test -n "$RANLIB"; then 4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4255$as_echo "$RANLIB" >&6; } 4256else 4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4258$as_echo "no" >&6; } 4259fi 4260 4261 4262fi 4263if test -z "$ac_cv_prog_RANLIB"; then 4264 ac_ct_RANLIB=$RANLIB 4265 # Extract the first word of "ranlib", so it can be a program name with args. 4266set dummy ranlib; ac_word=$2 4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4268$as_echo_n "checking for $ac_word... " >&6; } 4269if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4270 $as_echo_n "(cached) " >&6 4271else 4272 if test -n "$ac_ct_RANLIB"; then 4273 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4274else 4275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4276for as_dir in $PATH 4277do 4278 IFS=$as_save_IFS 4279 test -z "$as_dir" && as_dir=. 4280 for ac_exec_ext in '' $ac_executable_extensions; do 4281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4282 ac_cv_prog_ac_ct_RANLIB="ranlib" 4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4284 break 2 4285 fi 4286done 4287 done 4288IFS=$as_save_IFS 4289 4290fi 4291fi 4292ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4293if test -n "$ac_ct_RANLIB"; then 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4295$as_echo "$ac_ct_RANLIB" >&6; } 4296else 4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4298$as_echo "no" >&6; } 4299fi 4300 4301 if test "x$ac_ct_RANLIB" = x; then 4302 RANLIB="" 4303 else 4304 case $cross_compiling:$ac_tool_warned in 4305yes:) 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4308ac_tool_warned=yes ;; 4309esac 4310 RANLIB=$ac_ct_RANLIB 4311 fi 4312else 4313 RANLIB="$ac_cv_prog_RANLIB" 4314fi 4315 4316 4317 #-------------------------------------------------------------------- 4318 # Determines the correct binary file extension (.o, .obj, .exe etc.) 4319 #-------------------------------------------------------------------- 4320 4321 4322 4323 4324 4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4326$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4327if ${ac_cv_path_GREP+:} false; then : 4328 $as_echo_n "(cached) " >&6 4329else 4330 if test -z "$GREP"; then 4331 ac_path_GREP_found=false 4332 # Loop through the user's path and test for each of PROGNAME-LIST 4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4334for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4335do 4336 IFS=$as_save_IFS 4337 test -z "$as_dir" && as_dir=. 4338 for ac_prog in grep ggrep; do 4339 for ac_exec_ext in '' $ac_executable_extensions; do 4340 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4341 as_fn_executable_p "$ac_path_GREP" || continue 4342# Check for GNU ac_path_GREP and select it if it is found. 4343 # Check for GNU $ac_path_GREP 4344case `"$ac_path_GREP" --version 2>&1` in 4345*GNU*) 4346 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4347*) 4348 ac_count=0 4349 $as_echo_n 0123456789 >"conftest.in" 4350 while : 4351 do 4352 cat "conftest.in" "conftest.in" >"conftest.tmp" 4353 mv "conftest.tmp" "conftest.in" 4354 cp "conftest.in" "conftest.nl" 4355 $as_echo 'GREP' >> "conftest.nl" 4356 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4357 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4358 as_fn_arith $ac_count + 1 && ac_count=$as_val 4359 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4360 # Best one so far, save it but keep looking for a better one 4361 ac_cv_path_GREP="$ac_path_GREP" 4362 ac_path_GREP_max=$ac_count 4363 fi 4364 # 10*(2^10) chars as input seems more than enough 4365 test $ac_count -gt 10 && break 4366 done 4367 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4368esac 4369 4370 $ac_path_GREP_found && break 3 4371 done 4372 done 4373 done 4374IFS=$as_save_IFS 4375 if test -z "$ac_cv_path_GREP"; then 4376 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4377 fi 4378else 4379 ac_cv_path_GREP=$GREP 4380fi 4381 4382fi 4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4384$as_echo "$ac_cv_path_GREP" >&6; } 4385 GREP="$ac_cv_path_GREP" 4386 4387 4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4389$as_echo_n "checking for egrep... " >&6; } 4390if ${ac_cv_path_EGREP+:} false; then : 4391 $as_echo_n "(cached) " >&6 4392else 4393 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4394 then ac_cv_path_EGREP="$GREP -E" 4395 else 4396 if test -z "$EGREP"; then 4397 ac_path_EGREP_found=false 4398 # Loop through the user's path and test for each of PROGNAME-LIST 4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4400for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4401do 4402 IFS=$as_save_IFS 4403 test -z "$as_dir" && as_dir=. 4404 for ac_prog in egrep; do 4405 for ac_exec_ext in '' $ac_executable_extensions; do 4406 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4407 as_fn_executable_p "$ac_path_EGREP" || continue 4408# Check for GNU ac_path_EGREP and select it if it is found. 4409 # Check for GNU $ac_path_EGREP 4410case `"$ac_path_EGREP" --version 2>&1` in 4411*GNU*) 4412 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4413*) 4414 ac_count=0 4415 $as_echo_n 0123456789 >"conftest.in" 4416 while : 4417 do 4418 cat "conftest.in" "conftest.in" >"conftest.tmp" 4419 mv "conftest.tmp" "conftest.in" 4420 cp "conftest.in" "conftest.nl" 4421 $as_echo 'EGREP' >> "conftest.nl" 4422 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4424 as_fn_arith $ac_count + 1 && ac_count=$as_val 4425 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4426 # Best one so far, save it but keep looking for a better one 4427 ac_cv_path_EGREP="$ac_path_EGREP" 4428 ac_path_EGREP_max=$ac_count 4429 fi 4430 # 10*(2^10) chars as input seems more than enough 4431 test $ac_count -gt 10 && break 4432 done 4433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4434esac 4435 4436 $ac_path_EGREP_found && break 3 4437 done 4438 done 4439 done 4440IFS=$as_save_IFS 4441 if test -z "$ac_cv_path_EGREP"; then 4442 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4443 fi 4444else 4445 ac_cv_path_EGREP=$EGREP 4446fi 4447 4448 fi 4449fi 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4451$as_echo "$ac_cv_path_EGREP" >&6; } 4452 EGREP="$ac_cv_path_EGREP" 4453 4454 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4456$as_echo_n "checking for ANSI C header files... " >&6; } 4457if ${ac_cv_header_stdc+:} false; then : 4458 $as_echo_n "(cached) " >&6 4459else 4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4461/* end confdefs.h. */ 4462#include <stdlib.h> 4463#include <stdarg.h> 4464#include <string.h> 4465#include <float.h> 4466 4467int 4468main () 4469{ 4470 4471 ; 4472 return 0; 4473} 4474_ACEOF 4475if ac_fn_c_try_compile "$LINENO"; then : 4476 ac_cv_header_stdc=yes 4477else 4478 ac_cv_header_stdc=no 4479fi 4480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4481 4482if test $ac_cv_header_stdc = yes; then 4483 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4485/* end confdefs.h. */ 4486#include <string.h> 4487 4488_ACEOF 4489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4490 $EGREP "memchr" >/dev/null 2>&1; then : 4491 4492else 4493 ac_cv_header_stdc=no 4494fi 4495rm -f conftest* 4496 4497fi 4498 4499if test $ac_cv_header_stdc = yes; then 4500 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4502/* end confdefs.h. */ 4503#include <stdlib.h> 4504 4505_ACEOF 4506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4507 $EGREP "free" >/dev/null 2>&1; then : 4508 4509else 4510 ac_cv_header_stdc=no 4511fi 4512rm -f conftest* 4513 4514fi 4515 4516if test $ac_cv_header_stdc = yes; then 4517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4518 if test "$cross_compiling" = yes; then : 4519 : 4520else 4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4522/* end confdefs.h. */ 4523#include <ctype.h> 4524#include <stdlib.h> 4525#if ((' ' & 0x0FF) == 0x020) 4526# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4527# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4528#else 4529# define ISLOWER(c) \ 4530 (('a' <= (c) && (c) <= 'i') \ 4531 || ('j' <= (c) && (c) <= 'r') \ 4532 || ('s' <= (c) && (c) <= 'z')) 4533# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4534#endif 4535 4536#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4537int 4538main () 4539{ 4540 int i; 4541 for (i = 0; i < 256; i++) 4542 if (XOR (islower (i), ISLOWER (i)) 4543 || toupper (i) != TOUPPER (i)) 4544 return 2; 4545 return 0; 4546} 4547_ACEOF 4548if ac_fn_c_try_run "$LINENO"; then : 4549 4550else 4551 ac_cv_header_stdc=no 4552fi 4553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4554 conftest.$ac_objext conftest.beam conftest.$ac_ext 4555fi 4556 4557fi 4558fi 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4560$as_echo "$ac_cv_header_stdc" >&6; } 4561if test $ac_cv_header_stdc = yes; then 4562 4563$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4564 4565fi 4566 4567# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4568for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4569 inttypes.h stdint.h unistd.h 4570do : 4571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4572ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4573" 4574if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4575 cat >>confdefs.h <<_ACEOF 4576#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4577_ACEOF 4578 4579fi 4580 4581done 4582 4583 4584 4585 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4586 4587 4588 #------------------------------------------------------------------------ 4589 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4590 # It makes compiling go faster. (This is only a performance feature.) 4591 #------------------------------------------------------------------------ 4592 4593 if test -z "$no_pipe" -a -n "$GCC"; then 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5 4595$as_echo_n "checking if the compiler understands -pipe... " >&6; } 4596if ${tcl_cv_cc_pipe+:} false; then : 4597 $as_echo_n "(cached) " >&6 4598else 4599 4600 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4602/* end confdefs.h. */ 4603 4604int 4605main () 4606{ 4607 4608 ; 4609 return 0; 4610} 4611_ACEOF 4612if ac_fn_c_try_compile "$LINENO"; then : 4613 tcl_cv_cc_pipe=yes 4614else 4615 tcl_cv_cc_pipe=no 4616fi 4617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4618 CFLAGS=$hold_cflags 4619fi 4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5 4621$as_echo "$tcl_cv_cc_pipe" >&6; } 4622 if test $tcl_cv_cc_pipe = yes; then 4623 CFLAGS="$CFLAGS -pipe" 4624 fi 4625 fi 4626 4627 #-------------------------------------------------------------------- 4628 # Common compiler flag setup 4629 #-------------------------------------------------------------------- 4630 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4632$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4633if ${ac_cv_c_bigendian+:} false; then : 4634 $as_echo_n "(cached) " >&6 4635else 4636 ac_cv_c_bigendian=unknown 4637 # See if we're dealing with a universal compiler. 4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4639/* end confdefs.h. */ 4640#ifndef __APPLE_CC__ 4641 not a universal capable compiler 4642 #endif 4643 typedef int dummy; 4644 4645_ACEOF 4646if ac_fn_c_try_compile "$LINENO"; then : 4647 4648 # Check for potential -arch flags. It is not universal unless 4649 # there are at least two -arch flags with different values. 4650 ac_arch= 4651 ac_prev= 4652 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4653 if test -n "$ac_prev"; then 4654 case $ac_word in 4655 i?86 | x86_64 | ppc | ppc64) 4656 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4657 ac_arch=$ac_word 4658 else 4659 ac_cv_c_bigendian=universal 4660 break 4661 fi 4662 ;; 4663 esac 4664 ac_prev= 4665 elif test "x$ac_word" = "x-arch"; then 4666 ac_prev=arch 4667 fi 4668 done 4669fi 4670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4671 if test $ac_cv_c_bigendian = unknown; then 4672 # See if sys/param.h defines the BYTE_ORDER macro. 4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4674/* end confdefs.h. */ 4675#include <sys/types.h> 4676 #include <sys/param.h> 4677 4678int 4679main () 4680{ 4681#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4682 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4683 && LITTLE_ENDIAN) 4684 bogus endian macros 4685 #endif 4686 4687 ; 4688 return 0; 4689} 4690_ACEOF 4691if ac_fn_c_try_compile "$LINENO"; then : 4692 # It does; now see whether it defined to BIG_ENDIAN or not. 4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4694/* end confdefs.h. */ 4695#include <sys/types.h> 4696 #include <sys/param.h> 4697 4698int 4699main () 4700{ 4701#if BYTE_ORDER != BIG_ENDIAN 4702 not big endian 4703 #endif 4704 4705 ; 4706 return 0; 4707} 4708_ACEOF 4709if ac_fn_c_try_compile "$LINENO"; then : 4710 ac_cv_c_bigendian=yes 4711else 4712 ac_cv_c_bigendian=no 4713fi 4714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4715fi 4716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4717 fi 4718 if test $ac_cv_c_bigendian = unknown; then 4719 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4721/* end confdefs.h. */ 4722#include <limits.h> 4723 4724int 4725main () 4726{ 4727#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4728 bogus endian macros 4729 #endif 4730 4731 ; 4732 return 0; 4733} 4734_ACEOF 4735if ac_fn_c_try_compile "$LINENO"; then : 4736 # It does; now see whether it defined to _BIG_ENDIAN or not. 4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4738/* end confdefs.h. */ 4739#include <limits.h> 4740 4741int 4742main () 4743{ 4744#ifndef _BIG_ENDIAN 4745 not big endian 4746 #endif 4747 4748 ; 4749 return 0; 4750} 4751_ACEOF 4752if ac_fn_c_try_compile "$LINENO"; then : 4753 ac_cv_c_bigendian=yes 4754else 4755 ac_cv_c_bigendian=no 4756fi 4757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4758fi 4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4760 fi 4761 if test $ac_cv_c_bigendian = unknown; then 4762 # Compile a test program. 4763 if test "$cross_compiling" = yes; then : 4764 # Try to guess by grepping values from an object file. 4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4766/* end confdefs.h. */ 4767short int ascii_mm[] = 4768 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4769 short int ascii_ii[] = 4770 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4771 int use_ascii (int i) { 4772 return ascii_mm[i] + ascii_ii[i]; 4773 } 4774 short int ebcdic_ii[] = 4775 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4776 short int ebcdic_mm[] = 4777 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4778 int use_ebcdic (int i) { 4779 return ebcdic_mm[i] + ebcdic_ii[i]; 4780 } 4781 extern int foo; 4782 4783int 4784main () 4785{ 4786return use_ascii (foo) == use_ebcdic (foo); 4787 ; 4788 return 0; 4789} 4790_ACEOF 4791if ac_fn_c_try_compile "$LINENO"; then : 4792 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4793 ac_cv_c_bigendian=yes 4794 fi 4795 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4796 if test "$ac_cv_c_bigendian" = unknown; then 4797 ac_cv_c_bigendian=no 4798 else 4799 # finding both strings is unlikely to happen, but who knows? 4800 ac_cv_c_bigendian=unknown 4801 fi 4802 fi 4803fi 4804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4805else 4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4807/* end confdefs.h. */ 4808$ac_includes_default 4809int 4810main () 4811{ 4812 4813 /* Are we little or big endian? From Harbison&Steele. */ 4814 union 4815 { 4816 long int l; 4817 char c[sizeof (long int)]; 4818 } u; 4819 u.l = 1; 4820 return u.c[sizeof (long int) - 1] == 1; 4821 4822 ; 4823 return 0; 4824} 4825_ACEOF 4826if ac_fn_c_try_run "$LINENO"; then : 4827 ac_cv_c_bigendian=no 4828else 4829 ac_cv_c_bigendian=yes 4830fi 4831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4832 conftest.$ac_objext conftest.beam conftest.$ac_ext 4833fi 4834 4835 fi 4836fi 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4838$as_echo "$ac_cv_c_bigendian" >&6; } 4839 case $ac_cv_c_bigendian in #( 4840 yes) 4841 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4842;; #( 4843 no) 4844 ;; #( 4845 universal) 4846 4847$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4848 4849 ;; #( 4850 *) 4851 as_fn_error $? "unknown endianness 4852 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4853 esac 4854 4855 if test "${TEA_PLATFORM}" = "unix" ; then 4856 4857 #-------------------------------------------------------------------- 4858 # On a few very rare systems, all of the libm.a stuff is 4859 # already in libc.a. Set compiler flags accordingly. 4860 # Also, Linux requires the "ieee" library for math to work 4861 # right (and it must appear before "-lm"). 4862 #-------------------------------------------------------------------- 4863 4864 ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin" 4865if test "x$ac_cv_func_sin" = xyes; then : 4866 MATH_LIBS="" 4867else 4868 MATH_LIBS="-lm" 4869fi 4870 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5 4872$as_echo_n "checking for main in -lieee... " >&6; } 4873if ${ac_cv_lib_ieee_main+:} false; then : 4874 $as_echo_n "(cached) " >&6 4875else 4876 ac_check_lib_save_LIBS=$LIBS 4877LIBS="-lieee $LIBS" 4878cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4879/* end confdefs.h. */ 4880 4881 4882int 4883main () 4884{ 4885return main (); 4886 ; 4887 return 0; 4888} 4889_ACEOF 4890if ac_fn_c_try_link "$LINENO"; then : 4891 ac_cv_lib_ieee_main=yes 4892else 4893 ac_cv_lib_ieee_main=no 4894fi 4895rm -f core conftest.err conftest.$ac_objext \ 4896 conftest$ac_exeext conftest.$ac_ext 4897LIBS=$ac_check_lib_save_LIBS 4898fi 4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5 4900$as_echo "$ac_cv_lib_ieee_main" >&6; } 4901if test "x$ac_cv_lib_ieee_main" = xyes; then : 4902 MATH_LIBS="-lieee $MATH_LIBS" 4903fi 4904 4905 4906 #-------------------------------------------------------------------- 4907 # Interactive UNIX requires -linet instead of -lsocket, plus it 4908 # needs net/errno.h to define the socket-related error codes. 4909 #-------------------------------------------------------------------- 4910 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5 4912$as_echo_n "checking for main in -linet... " >&6; } 4913if ${ac_cv_lib_inet_main+:} false; then : 4914 $as_echo_n "(cached) " >&6 4915else 4916 ac_check_lib_save_LIBS=$LIBS 4917LIBS="-linet $LIBS" 4918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4919/* end confdefs.h. */ 4920 4921 4922int 4923main () 4924{ 4925return main (); 4926 ; 4927 return 0; 4928} 4929_ACEOF 4930if ac_fn_c_try_link "$LINENO"; then : 4931 ac_cv_lib_inet_main=yes 4932else 4933 ac_cv_lib_inet_main=no 4934fi 4935rm -f core conftest.err conftest.$ac_objext \ 4936 conftest$ac_exeext conftest.$ac_ext 4937LIBS=$ac_check_lib_save_LIBS 4938fi 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5 4940$as_echo "$ac_cv_lib_inet_main" >&6; } 4941if test "x$ac_cv_lib_inet_main" = xyes; then : 4942 LIBS="$LIBS -linet" 4943fi 4944 4945 ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default" 4946if test "x$ac_cv_header_net_errno_h" = xyes; then : 4947 4948 4949$as_echo "#define HAVE_NET_ERRNO_H 1" >>confdefs.h 4950 4951fi 4952 4953 4954 4955 #-------------------------------------------------------------------- 4956 # Check for the existence of the -lsocket and -lnsl libraries. 4957 # The order here is important, so that they end up in the right 4958 # order in the command line generated by make. Here are some 4959 # special considerations: 4960 # 1. Use "connect" and "accept" to check for -lsocket, and 4961 # "gethostbyname" to check for -lnsl. 4962 # 2. Use each function name only once: can't redo a check because 4963 # autoconf caches the results of the last check and won't redo it. 4964 # 3. Use -lnsl and -lsocket only if they supply procedures that 4965 # aren't already present in the normal libraries. This is because 4966 # IRIX 5.2 has libraries, but they aren't needed and they're 4967 # bogus: they goof up name resolution if used. 4968 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4969 # To get around this problem, check for both libraries together 4970 # if -lsocket doesn't work by itself. 4971 #-------------------------------------------------------------------- 4972 4973 tcl_checkBoth=0 4974 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 4975if test "x$ac_cv_func_connect" = xyes; then : 4976 tcl_checkSocket=0 4977else 4978 tcl_checkSocket=1 4979fi 4980 4981 if test "$tcl_checkSocket" = 1; then 4982 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 4983if test "x$ac_cv_func_setsockopt" = xyes; then : 4984 4985else 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 4987$as_echo_n "checking for setsockopt in -lsocket... " >&6; } 4988if ${ac_cv_lib_socket_setsockopt+:} false; then : 4989 $as_echo_n "(cached) " >&6 4990else 4991 ac_check_lib_save_LIBS=$LIBS 4992LIBS="-lsocket $LIBS" 4993cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4994/* end confdefs.h. */ 4995 4996/* Override any GCC internal prototype to avoid an error. 4997 Use char because int might match the return type of a GCC 4998 builtin and then its argument prototype would still apply. */ 4999#ifdef __cplusplus 5000extern "C" 5001#endif 5002char setsockopt (); 5003int 5004main () 5005{ 5006return setsockopt (); 5007 ; 5008 return 0; 5009} 5010_ACEOF 5011if ac_fn_c_try_link "$LINENO"; then : 5012 ac_cv_lib_socket_setsockopt=yes 5013else 5014 ac_cv_lib_socket_setsockopt=no 5015fi 5016rm -f core conftest.err conftest.$ac_objext \ 5017 conftest$ac_exeext conftest.$ac_ext 5018LIBS=$ac_check_lib_save_LIBS 5019fi 5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 5021$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } 5022if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : 5023 LIBS="$LIBS -lsocket" 5024else 5025 tcl_checkBoth=1 5026fi 5027 5028fi 5029 5030 fi 5031 if test "$tcl_checkBoth" = 1; then 5032 tk_oldLibs=$LIBS 5033 LIBS="$LIBS -lsocket -lnsl" 5034 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept" 5035if test "x$ac_cv_func_accept" = xyes; then : 5036 tcl_checkNsl=0 5037else 5038 LIBS=$tk_oldLibs 5039fi 5040 5041 fi 5042 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 5043if test "x$ac_cv_func_gethostbyname" = xyes; then : 5044 5045else 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 5047$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 5048if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 5049 $as_echo_n "(cached) " >&6 5050else 5051 ac_check_lib_save_LIBS=$LIBS 5052LIBS="-lnsl $LIBS" 5053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5054/* end confdefs.h. */ 5055 5056/* Override any GCC internal prototype to avoid an error. 5057 Use char because int might match the return type of a GCC 5058 builtin and then its argument prototype would still apply. */ 5059#ifdef __cplusplus 5060extern "C" 5061#endif 5062char gethostbyname (); 5063int 5064main () 5065{ 5066return gethostbyname (); 5067 ; 5068 return 0; 5069} 5070_ACEOF 5071if ac_fn_c_try_link "$LINENO"; then : 5072 ac_cv_lib_nsl_gethostbyname=yes 5073else 5074 ac_cv_lib_nsl_gethostbyname=no 5075fi 5076rm -f core conftest.err conftest.$ac_objext \ 5077 conftest$ac_exeext conftest.$ac_ext 5078LIBS=$ac_check_lib_save_LIBS 5079fi 5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 5081$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 5082if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 5083 LIBS="$LIBS -lnsl" 5084fi 5085 5086fi 5087 5088 5089 # TEA specific: Don't perform the eval of the libraries here because 5090 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5091 5092 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5093 5094 5095 5096 5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dirent.h" >&5 5098$as_echo_n "checking dirent.h... " >&6; } 5099if ${tcl_cv_dirent_h+:} false; then : 5100 $as_echo_n "(cached) " >&6 5101else 5102 5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5104/* end confdefs.h. */ 5105#include <sys/types.h> 5106#include <dirent.h> 5107int 5108main () 5109{ 5110 5111#ifndef _POSIX_SOURCE 5112# ifdef __Lynx__ 5113 /* 5114 * Generate compilation error to make the test fail: Lynx headers 5115 * are only valid if really in the POSIX environment. 5116 */ 5117 5118 missing_procedure(); 5119# endif 5120#endif 5121DIR *d; 5122struct dirent *entryPtr; 5123char *p; 5124d = opendir("foobar"); 5125entryPtr = readdir(d); 5126p = entryPtr->d_name; 5127closedir(d); 5128 5129 ; 5130 return 0; 5131} 5132_ACEOF 5133if ac_fn_c_try_link "$LINENO"; then : 5134 tcl_cv_dirent_h=yes 5135else 5136 tcl_cv_dirent_h=no 5137fi 5138rm -f core conftest.err conftest.$ac_objext \ 5139 conftest$ac_exeext conftest.$ac_ext 5140fi 5141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_dirent_h" >&5 5142$as_echo "$tcl_cv_dirent_h" >&6; } 5143 5144 if test $tcl_cv_dirent_h = no; then 5145 5146$as_echo "#define NO_DIRENT_H 1" >>confdefs.h 5147 5148 fi 5149 5150 # TEA specific: 5151 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 5152if test "x$ac_cv_header_errno_h" = xyes; then : 5153 5154else 5155 5156$as_echo "#define NO_ERRNO_H 1" >>confdefs.h 5157 5158fi 5159 5160 5161 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" 5162if test "x$ac_cv_header_float_h" = xyes; then : 5163 5164else 5165 5166$as_echo "#define NO_FLOAT_H 1" >>confdefs.h 5167 5168fi 5169 5170 5171 ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default" 5172if test "x$ac_cv_header_values_h" = xyes; then : 5173 5174else 5175 5176$as_echo "#define NO_VALUES_H 1" >>confdefs.h 5177 5178fi 5179 5180 5181 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 5182if test "x$ac_cv_header_limits_h" = xyes; then : 5183 5184$as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h 5185 5186else 5187 5188$as_echo "#define NO_LIMITS_H 1" >>confdefs.h 5189 5190fi 5191 5192 5193 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 5194if test "x$ac_cv_header_stdlib_h" = xyes; then : 5195 tcl_ok=1 5196else 5197 tcl_ok=0 5198fi 5199 5200 5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202/* end confdefs.h. */ 5203#include <stdlib.h> 5204 5205_ACEOF 5206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5207 $EGREP "strtol" >/dev/null 2>&1; then : 5208 5209else 5210 tcl_ok=0 5211fi 5212rm -f conftest* 5213 5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5215/* end confdefs.h. */ 5216#include <stdlib.h> 5217 5218_ACEOF 5219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5220 $EGREP "strtoul" >/dev/null 2>&1; then : 5221 5222else 5223 tcl_ok=0 5224fi 5225rm -f conftest* 5226 5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5228/* end confdefs.h. */ 5229#include <stdlib.h> 5230 5231_ACEOF 5232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5233 $EGREP "strtod" >/dev/null 2>&1; then : 5234 5235else 5236 tcl_ok=0 5237fi 5238rm -f conftest* 5239 5240 if test $tcl_ok = 0; then 5241 5242$as_echo "#define NO_STDLIB_H 1" >>confdefs.h 5243 5244 fi 5245 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 5246if test "x$ac_cv_header_string_h" = xyes; then : 5247 tcl_ok=1 5248else 5249 tcl_ok=0 5250fi 5251 5252 5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5254/* end confdefs.h. */ 5255#include <string.h> 5256 5257_ACEOF 5258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5259 $EGREP "strstr" >/dev/null 2>&1; then : 5260 5261else 5262 tcl_ok=0 5263fi 5264rm -f conftest* 5265 5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5267/* end confdefs.h. */ 5268#include <string.h> 5269 5270_ACEOF 5271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5272 $EGREP "strerror" >/dev/null 2>&1; then : 5273 5274else 5275 tcl_ok=0 5276fi 5277rm -f conftest* 5278 5279 5280 # See also memmove check below for a place where NO_STRING_H can be 5281 # set and why. 5282 5283 if test $tcl_ok = 0; then 5284 5285$as_echo "#define NO_STRING_H 1" >>confdefs.h 5286 5287 fi 5288 5289 ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 5290if test "x$ac_cv_header_sys_wait_h" = xyes; then : 5291 5292else 5293 5294$as_echo "#define NO_SYS_WAIT_H 1" >>confdefs.h 5295 5296fi 5297 5298 5299 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 5300if test "x$ac_cv_header_dlfcn_h" = xyes; then : 5301 5302else 5303 5304$as_echo "#define NO_DLFCN_H 1" >>confdefs.h 5305 5306fi 5307 5308 5309 5310 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 5311 for ac_header in sys/param.h 5312do : 5313 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 5314if test "x$ac_cv_header_sys_param_h" = xyes; then : 5315 cat >>confdefs.h <<_ACEOF 5316#define HAVE_SYS_PARAM_H 1 5317_ACEOF 5318 5319fi 5320 5321done 5322 5323 5324 # Let the user call this, because if it triggers, they will 5325 # need a compat/strtod.c that is correct. Users can also 5326 # use Tcl_GetDouble(FromObj) instead. 5327 #TEA_BUGGY_STRTOD 5328 fi 5329 5330 5331#-------------------------------------------------------------------- 5332# Load the tdomConfig.sh file 5333#-------------------------------------------------------------------- 5334 5335 5336 if test x"${no_tdom}" = x ; then 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tDOM configuration" >&5 5338$as_echo_n "checking for tDOM configuration... " >&6; } 5339 5340# Check whether --with-tdom was given. 5341if test "${with_tdom+set}" = set; then : 5342 withval=$with_tdom; with_tdomconfig=${withval} 5343fi 5344 5345 5346 no_tdom=true 5347 if test "${TEA_PLATFORM}" = "windows" ; then 5348 tdom_bindir=win 5349 else 5350 tdom_bindir=unix 5351 fi 5352 5353 if ${ac_cv_c_tdomconfig+:} false; then : 5354 $as_echo_n "(cached) " >&6 5355else 5356 5357 5358 # First check to see if --with-tdom was specified. 5359 if test x"${with_tdomconfig}" != x ; then 5360 if test -f "${with_tdomconfig}/tdomConfig.sh" ; then 5361 ac_cv_c_tdomconfig=`(cd ${with_tdomconfig}; pwd)` 5362 else 5363 as_fn_error $? "${with_tdomconfig} directory doesn't contain tdomConfig.sh" "$LINENO" 5 5364 fi 5365 fi 5366 # Then check for a sibling installation 5367 if test x"${ac_cv_c_tdomconfig}" = x ; then 5368 for i in \ 5369 ../tdom `ls -dr ../tdom-* 2>/dev/null` \ 5370 ../../tdom `ls -dr ../../tdom-* 2>/dev/null` \ 5371 ../../../tdom `ls -dr ../../../tdom-* 2>/dev/null` ; do 5372 if test -f "$i/$tdom_bindir/tdomConfig.sh" ; then 5373 ac_cv_c_tdomconfig=`(cd $i/$tdom_bindir; pwd)` 5374 fi 5375 done 5376 fi 5377 # Then check if tnc/tdom are compilied in the source tree 5378 if test x"${ac_cv_c_tdomconfig}" = x ; then 5379 if test -f "../../$tdom_bindir/tdomConfig.sh" ; then 5380 ac_cv_c_tdomconfig=`(cd ../../$tdom_bindir; pwd)` 5381 fi 5382 fi 5383 # Check in a few common install locations 5384 if test x"${ac_cv_c_tdomconfig}" = x ; then 5385 for i in \ 5386 `ls -d ${prefix}/lib 2>/dev/null` \ 5387 `ls -d /usr/local/lib 2>/dev/null` ; do 5388 if test -f "$i/tdomConfig.sh" ; then 5389 ac_cv_c_tdomconfig=`(cd $i; pwd)` 5390 fi 5391 done 5392 fi 5393 # Check in a few other private locations 5394 if test x"${ac_cv_c_tdomconfig}" = x ; then 5395 for i in \ 5396 ${srcdir}/../tdom \ 5397 `ls -dr ${srcdir}/../tdom[0-9].[0-9]* 2>/dev/null` ; do 5398 if test -f "$i/$tdom_bindir/tdomConfig.sh" ; then 5399 ac_cv_c_tdomconfig=`(cd $i/$tdom_bindir; pwd)` 5400 fi 5401 done 5402 fi 5403 5404fi 5405 5406 if test x"${ac_cv_c_tdomconfig}" = x ; then 5407 TDOM_BIN_DIR="# no tDOM configuration file found" 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find tDOM configuration definitions" >&5 5409$as_echo "$as_me: WARNING: Can't find tDOM configuration definitions" >&2;} 5410 exit 0 5411 else 5412 no_tdom= 5413 TDOM_BIN_DIR=${ac_cv_c_tdomconfig} 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TDOM_BIN_DIR/tdomConfig.sh" >&5 5415$as_echo "found $TDOM_BIN_DIR/tdomConfig.sh" >&6; } 5416 fi 5417 fi 5418 5419 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TDOM_BIN_DIR/tdomConfig.sh" >&5 5421$as_echo_n "checking for existence of $TDOM_BIN_DIR/tdomConfig.sh... " >&6; } 5422 if test -f "$TDOM_BIN_DIR/tdomConfig.sh" ; then 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 5424$as_echo "loading" >&6; } 5425 . $TDOM_BIN_DIR/tdomConfig.sh 5426 else 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 5428$as_echo "file not found" >&6; } 5429 fi 5430 if test -f "${TDOM_BIN_DIR}/Makefile" ; then 5431 TDOM_STUB_LIB_SPEC=${TDOM_BUILD_STUB_LIB_SPEC} 5432 fi 5433 5434 5435 5436 5437 5438#----------------------------------------------------------------------- 5439# __CHANGE__ 5440# Specify the C source files to compile in TEA_ADD_SOURCES, 5441# public headers that need to be installed in TEA_ADD_HEADERS, 5442# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 5443# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 5444# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 5445# and PKG_TCL_SOURCES. 5446#----------------------------------------------------------------------- 5447 5448 5449 vars="tnc.c" 5450 for i in $vars; do 5451 case $i in 5452 \$*) 5453 # allow $-var names 5454 PKG_SOURCES="$PKG_SOURCES $i" 5455 PKG_OBJECTS="$PKG_OBJECTS $i" 5456 ;; 5457 *) 5458 # check for existence - allows for generic/win/unix VPATH 5459 # To add more dirs here (like 'src'), you have to update VPATH 5460 # in Makefile.in as well 5461 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 5462 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 5463 -a ! -f "${srcdir}/macosx/$i" \ 5464 ; then 5465 as_fn_error $? "could not find source file '$i'" "$LINENO" 5 5466 fi 5467 PKG_SOURCES="$PKG_SOURCES $i" 5468 # this assumes it is in a VPATH dir 5469 i=`basename $i` 5470 # handle user calling this before or after TEA_SETUP_COMPILER 5471 if test x"${OBJEXT}" != x ; then 5472 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 5473 else 5474 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 5475 fi 5476 PKG_OBJECTS="$PKG_OBJECTS $j" 5477 ;; 5478 esac 5479 done 5480 5481 5482 5483 5484 vars="" 5485 for i in $vars; do 5486 # check for existence, be strict because it is installed 5487 if test ! -f "${srcdir}/$i" ; then 5488 as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5 5489 fi 5490 PKG_HEADERS="$PKG_HEADERS $i" 5491 done 5492 5493 5494 5495 vars="-I${srcdir}/../../generic -I${srcdir}/../../expat" 5496 for i in $vars; do 5497 PKG_INCLUDES="$PKG_INCLUDES $i" 5498 done 5499 5500 5501 5502 vars="${TDOM_STUB_LIB_SPEC}" 5503 for i in $vars; do 5504 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 5505 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 5506 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 5507 fi 5508 PKG_LIBS="$PKG_LIBS $i" 5509 done 5510 5511 5512 5513 PKG_CFLAGS="$PKG_CFLAGS -DUSE_TDOM_STUBS=1" 5514 5515 5516 5517 vars="" 5518 for i in $vars; do 5519 # check for existence - allows for generic/win/unix VPATH 5520 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 5521 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 5522 -a ! -f "${srcdir}/macosx/$i" \ 5523 ; then 5524 as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5 5525 fi 5526 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 5527 # this assumes it is in a VPATH dir 5528 i=`basename $i` 5529 # handle user calling this before or after TEA_SETUP_COMPILER 5530 if test x"${OBJEXT}" != x ; then 5531 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 5532 else 5533 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 5534 fi 5535 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 5536 done 5537 5538 5539 5540 5541 vars="" 5542 for i in $vars; do 5543 # check for existence, be strict because it is installed 5544 if test ! -f "${srcdir}/$i" ; then 5545 as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5 5546 fi 5547 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 5548 done 5549 5550 5551 5552#-------------------------------------------------------------------- 5553# __CHANGE__ 5554# A few miscellaneous platform-specific items: 5555# 5556# Define a special symbol for Windows (BUILD_sample in this case) so 5557# that we create the export library with the dll. 5558# 5559# Windows creates a few extra files that need to be cleaned up. 5560# You can add more files to clean if your extension creates any extra 5561# files. 5562# 5563# TEA_ADD_* any platform specific compiler/build info here. 5564#-------------------------------------------------------------------- 5565 5566if test "${TEA_PLATFORM}" = "windows" ; then 5567 #AC_DEFINE(BUILD_tnc, 1, [Build windows export dll]) 5568 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" 5569 #TEA_ADD_SOURCES([win/winFile.c]) 5570 #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"]) 5571else 5572 CLEANFILES="pkgIndex.tcl" 5573 #TEA_ADD_SOURCES([unix/unixFile.c]) 5574 #TEA_ADD_LIBS([-lsuperfly]) 5575fi 5576 5577 5578#-------------------------------------------------------------------- 5579# __CHANGE__ 5580# Choose which headers you need. Extension authors should try very 5581# hard to only rely on the Tcl public header files. Internal headers 5582# contain private data structures and are subject to change without 5583# notice. 5584# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 5585#-------------------------------------------------------------------- 5586 5587 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5 5589$as_echo_n "checking for Tcl public headers... " >&6; } 5590 5591 5592# Check whether --with-tclinclude was given. 5593if test "${with_tclinclude+set}" = set; then : 5594 withval=$with_tclinclude; with_tclinclude=${withval} 5595fi 5596 5597 5598 if ${ac_cv_c_tclh+:} false; then : 5599 $as_echo_n "(cached) " >&6 5600else 5601 5602 # Use the value from --with-tclinclude, if it was given 5603 5604 if test x"${with_tclinclude}" != x ; then 5605 if test -f "${with_tclinclude}/tcl.h" ; then 5606 ac_cv_c_tclh=${with_tclinclude} 5607 else 5608 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5 5609 fi 5610 else 5611 list="" 5612 if test "`uname -s`" = "Darwin"; then 5613 # If Tcl was built as a framework, attempt to use 5614 # the framework's Headers directory 5615 case ${TCL_DEFS} in 5616 *TCL_FRAMEWORK*) 5617 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 5618 ;; 5619 esac 5620 fi 5621 5622 # Look in the source dir only if Tcl is not installed, 5623 # and in that situation, look there before installed locations. 5624 if test -f "${TCL_BIN_DIR}/Makefile" ; then 5625 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 5626 fi 5627 5628 # Check order: pkg --prefix location, Tcl's --prefix location, 5629 # relative to directory of tclConfig.sh. 5630 5631 eval "temp_includedir=${includedir}" 5632 list="$list \ 5633 `ls -d ${temp_includedir} 2>/dev/null` \ 5634 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 5635 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 5636 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 5637 list="$list /usr/local/include /usr/include" 5638 if test x"${TCL_INCLUDE_SPEC}" != x ; then 5639 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 5640 list="$list `ls -d ${d} 2>/dev/null`" 5641 fi 5642 fi 5643 for i in $list ; do 5644 if test -f "$i/tcl.h" ; then 5645 ac_cv_c_tclh=$i 5646 break 5647 fi 5648 done 5649 fi 5650 5651fi 5652 5653 5654 # Print a message based on how we determined the include path 5655 5656 if test x"${ac_cv_c_tclh}" = x ; then 5657 as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5 5658 else 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5 5660$as_echo "${ac_cv_c_tclh}" >&6; } 5661 fi 5662 5663 # Convert to a native path and substitute into the output files. 5664 5665 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 5666 5667 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 5668 5669 5670 5671#TEA_PRIVATE_TCL_HEADERS 5672 5673#TEA_PUBLIC_TK_HEADERS 5674#TEA_PRIVATE_TK_HEADERS 5675#TEA_PATH_X 5676 5677#-------------------------------------------------------------------- 5678# Check whether --enable-threads or --disable-threads was given. 5679# This auto-enables if Tcl was compiled threaded. 5680#-------------------------------------------------------------------- 5681 5682 5683 # Check whether --enable-threads was given. 5684if test "${enable_threads+set}" = set; then : 5685 enableval=$enable_threads; tcl_ok=$enableval 5686else 5687 tcl_ok=yes 5688fi 5689 5690 5691 if test "${enable_threads+set}" = set; then 5692 enableval="$enable_threads" 5693 tcl_ok=$enableval 5694 else 5695 tcl_ok=yes 5696 fi 5697 5698 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 5699 TCL_THREADS=1 5700 5701 if test "${TEA_PLATFORM}" != "windows" ; then 5702 # We are always OK on Windows, so check what this platform wants: 5703 5704 # USE_THREAD_ALLOC tells us to try the special thread-based 5705 # allocator that significantly reduces lock contention 5706 5707$as_echo "#define USE_THREAD_ALLOC 1" >>confdefs.h 5708 5709 5710$as_echo "#define _REENTRANT 1" >>confdefs.h 5711 5712 if test "`uname -s`" = "SunOS" ; then 5713 5714$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5715 5716 fi 5717 5718$as_echo "#define _THREAD_SAFE 1" >>confdefs.h 5719 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 5721$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } 5722if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : 5723 $as_echo_n "(cached) " >&6 5724else 5725 ac_check_lib_save_LIBS=$LIBS 5726LIBS="-lpthread $LIBS" 5727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5728/* end confdefs.h. */ 5729 5730/* Override any GCC internal prototype to avoid an error. 5731 Use char because int might match the return type of a GCC 5732 builtin and then its argument prototype would still apply. */ 5733#ifdef __cplusplus 5734extern "C" 5735#endif 5736char pthread_mutex_init (); 5737int 5738main () 5739{ 5740return pthread_mutex_init (); 5741 ; 5742 return 0; 5743} 5744_ACEOF 5745if ac_fn_c_try_link "$LINENO"; then : 5746 ac_cv_lib_pthread_pthread_mutex_init=yes 5747else 5748 ac_cv_lib_pthread_pthread_mutex_init=no 5749fi 5750rm -f core conftest.err conftest.$ac_objext \ 5751 conftest$ac_exeext conftest.$ac_ext 5752LIBS=$ac_check_lib_save_LIBS 5753fi 5754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 5755$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 5756if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : 5757 tcl_ok=yes 5758else 5759 tcl_ok=no 5760fi 5761 5762 if test "$tcl_ok" = "no"; then 5763 # Check a little harder for __pthread_mutex_init in the same 5764 # library, as some systems hide it there until pthread.h is 5765 # defined. We could alternatively do an AC_TRY_COMPILE with 5766 # pthread.h, but that will work with libpthread really doesn't 5767 # exist, like AIX 4.2. [Bug: 4359] 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5 5769$as_echo_n "checking for __pthread_mutex_init in -lpthread... " >&6; } 5770if ${ac_cv_lib_pthread___pthread_mutex_init+:} false; then : 5771 $as_echo_n "(cached) " >&6 5772else 5773 ac_check_lib_save_LIBS=$LIBS 5774LIBS="-lpthread $LIBS" 5775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5776/* end confdefs.h. */ 5777 5778/* Override any GCC internal prototype to avoid an error. 5779 Use char because int might match the return type of a GCC 5780 builtin and then its argument prototype would still apply. */ 5781#ifdef __cplusplus 5782extern "C" 5783#endif 5784char __pthread_mutex_init (); 5785int 5786main () 5787{ 5788return __pthread_mutex_init (); 5789 ; 5790 return 0; 5791} 5792_ACEOF 5793if ac_fn_c_try_link "$LINENO"; then : 5794 ac_cv_lib_pthread___pthread_mutex_init=yes 5795else 5796 ac_cv_lib_pthread___pthread_mutex_init=no 5797fi 5798rm -f core conftest.err conftest.$ac_objext \ 5799 conftest$ac_exeext conftest.$ac_ext 5800LIBS=$ac_check_lib_save_LIBS 5801fi 5802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 5803$as_echo "$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 5804if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes; then : 5805 tcl_ok=yes 5806else 5807 tcl_ok=no 5808fi 5809 5810 fi 5811 5812 if test "$tcl_ok" = "yes"; then 5813 # The space is needed 5814 THREADS_LIBS=" -lpthread" 5815 else 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5 5817$as_echo_n "checking for pthread_mutex_init in -lpthreads... " >&6; } 5818if ${ac_cv_lib_pthreads_pthread_mutex_init+:} false; then : 5819 $as_echo_n "(cached) " >&6 5820else 5821 ac_check_lib_save_LIBS=$LIBS 5822LIBS="-lpthreads $LIBS" 5823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5824/* end confdefs.h. */ 5825 5826/* Override any GCC internal prototype to avoid an error. 5827 Use char because int might match the return type of a GCC 5828 builtin and then its argument prototype would still apply. */ 5829#ifdef __cplusplus 5830extern "C" 5831#endif 5832char pthread_mutex_init (); 5833int 5834main () 5835{ 5836return pthread_mutex_init (); 5837 ; 5838 return 0; 5839} 5840_ACEOF 5841if ac_fn_c_try_link "$LINENO"; then : 5842 ac_cv_lib_pthreads_pthread_mutex_init=yes 5843else 5844 ac_cv_lib_pthreads_pthread_mutex_init=no 5845fi 5846rm -f core conftest.err conftest.$ac_objext \ 5847 conftest$ac_exeext conftest.$ac_ext 5848LIBS=$ac_check_lib_save_LIBS 5849fi 5850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 5851$as_echo "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 5852if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes; then : 5853 tcl_ok=yes 5854else 5855 tcl_ok=no 5856fi 5857 5858 if test "$tcl_ok" = "yes"; then 5859 # The space is needed 5860 THREADS_LIBS=" -lpthreads" 5861 else 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5 5863$as_echo_n "checking for pthread_mutex_init in -lc... " >&6; } 5864if ${ac_cv_lib_c_pthread_mutex_init+:} false; then : 5865 $as_echo_n "(cached) " >&6 5866else 5867 ac_check_lib_save_LIBS=$LIBS 5868LIBS="-lc $LIBS" 5869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5870/* end confdefs.h. */ 5871 5872/* Override any GCC internal prototype to avoid an error. 5873 Use char because int might match the return type of a GCC 5874 builtin and then its argument prototype would still apply. */ 5875#ifdef __cplusplus 5876extern "C" 5877#endif 5878char pthread_mutex_init (); 5879int 5880main () 5881{ 5882return pthread_mutex_init (); 5883 ; 5884 return 0; 5885} 5886_ACEOF 5887if ac_fn_c_try_link "$LINENO"; then : 5888 ac_cv_lib_c_pthread_mutex_init=yes 5889else 5890 ac_cv_lib_c_pthread_mutex_init=no 5891fi 5892rm -f core conftest.err conftest.$ac_objext \ 5893 conftest$ac_exeext conftest.$ac_ext 5894LIBS=$ac_check_lib_save_LIBS 5895fi 5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5 5897$as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; } 5898if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then : 5899 tcl_ok=yes 5900else 5901 tcl_ok=no 5902fi 5903 5904 if test "$tcl_ok" = "no"; then 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5 5906$as_echo_n "checking for pthread_mutex_init in -lc_r... " >&6; } 5907if ${ac_cv_lib_c_r_pthread_mutex_init+:} false; then : 5908 $as_echo_n "(cached) " >&6 5909else 5910 ac_check_lib_save_LIBS=$LIBS 5911LIBS="-lc_r $LIBS" 5912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5913/* end confdefs.h. */ 5914 5915/* Override any GCC internal prototype to avoid an error. 5916 Use char because int might match the return type of a GCC 5917 builtin and then its argument prototype would still apply. */ 5918#ifdef __cplusplus 5919extern "C" 5920#endif 5921char pthread_mutex_init (); 5922int 5923main () 5924{ 5925return pthread_mutex_init (); 5926 ; 5927 return 0; 5928} 5929_ACEOF 5930if ac_fn_c_try_link "$LINENO"; then : 5931 ac_cv_lib_c_r_pthread_mutex_init=yes 5932else 5933 ac_cv_lib_c_r_pthread_mutex_init=no 5934fi 5935rm -f core conftest.err conftest.$ac_objext \ 5936 conftest$ac_exeext conftest.$ac_ext 5937LIBS=$ac_check_lib_save_LIBS 5938fi 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 5940$as_echo "$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 5941if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes; then : 5942 tcl_ok=yes 5943else 5944 tcl_ok=no 5945fi 5946 5947 if test "$tcl_ok" = "yes"; then 5948 # The space is needed 5949 THREADS_LIBS=" -pthread" 5950 else 5951 TCL_THREADS=0 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 5953$as_echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 5954 fi 5955 fi 5956 fi 5957 fi 5958 fi 5959 else 5960 TCL_THREADS=0 5961 fi 5962 # Do checking message here to not mess up interleaved configure output 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5 5964$as_echo_n "checking for building with threads... " >&6; } 5965 if test "${TCL_THREADS}" = 1; then 5966 5967$as_echo "#define TCL_THREADS 1" >>confdefs.h 5968 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 5970$as_echo "yes (default)" >&6; } 5971 else 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5973$as_echo "no" >&6; } 5974 fi 5975 # TCL_THREADS sanity checking. See if our request for building with 5976 # threads is the same as the way Tcl was built. If not, warn the user. 5977 case ${TCL_DEFS} in 5978 *THREADS=1*) 5979 if test "${TCL_THREADS}" = "0"; then 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 5981 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 5982 that IS thread-enabled. It is recommended to use --enable-threads." >&5 5983$as_echo "$as_me: WARNING: 5984 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 5985 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 5986 fi 5987 ;; 5988 *) 5989 if test "${TCL_THREADS}" = "1"; then 5990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 5991 --enable-threads requested, but building against a Tcl that is NOT 5992 thread-enabled. This is an OK configuration that will also run in 5993 a thread-enabled core." >&5 5994$as_echo "$as_me: WARNING: 5995 --enable-threads requested, but building against a Tcl that is NOT 5996 thread-enabled. This is an OK configuration that will also run in 5997 a thread-enabled core." >&2;} 5998 fi 5999 ;; 6000 esac 6001 6002 6003 6004#-------------------------------------------------------------------- 6005# The statement below defines a collection of symbols related to 6006# building as a shared library instead of a static library. 6007#-------------------------------------------------------------------- 6008 6009 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5 6011$as_echo_n "checking how to build libraries... " >&6; } 6012 # Check whether --enable-shared was given. 6013if test "${enable_shared+set}" = set; then : 6014 enableval=$enable_shared; shared_ok=$enableval 6015else 6016 shared_ok=yes 6017fi 6018 6019 6020 if test "${enable_shared+set}" = set; then 6021 enableval="$enable_shared" 6022 shared_ok=$enableval 6023 else 6024 shared_ok=yes 6025 fi 6026 6027 # Check whether --enable-stubs was given. 6028if test "${enable_stubs+set}" = set; then : 6029 enableval=$enable_stubs; stubs_ok=$enableval 6030else 6031 stubs_ok=yes 6032fi 6033 6034 6035 if test "${enable_stubs+set}" = set; then 6036 enableval="$enable_stubs" 6037 stubs_ok=$enableval 6038 else 6039 stubs_ok=yes 6040 fi 6041 6042 # Stubs are always enabled for shared builds 6043 if test "$shared_ok" = "yes" ; then 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5 6045$as_echo "shared" >&6; } 6046 SHARED_BUILD=1 6047 STUBS_BUILD=1 6048 else 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 6050$as_echo "static" >&6; } 6051 SHARED_BUILD=0 6052 6053$as_echo "#define STATIC_BUILD 1" >>confdefs.h 6054 6055 if test "$stubs_ok" = "yes" ; then 6056 STUBS_BUILD=1 6057 else 6058 STUBS_BUILD=0 6059 fi 6060 fi 6061 if test "${STUBS_BUILD}" = "1" ; then 6062 6063$as_echo "#define USE_TCL_STUBS 1" >>confdefs.h 6064 6065 6066$as_echo "#define USE_TCLOO_STUBS 1" >>confdefs.h 6067 6068 if test "${TEA_WINDOWINGSYSTEM}" != ""; then 6069 6070$as_echo "#define USE_TK_STUBS 1" >>confdefs.h 6071 6072 fi 6073 fi 6074 6075 6076 6077 6078 6079#-------------------------------------------------------------------- 6080# This macro figures out what flags to use with the compiler/linker 6081# when building shared/static debug/optimized objects. This information 6082# can be taken from the tclConfig.sh file, but this figures it all out. 6083#-------------------------------------------------------------------- 6084 6085if test -n "$ac_tool_prefix"; then 6086 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6087set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6089$as_echo_n "checking for $ac_word... " >&6; } 6090if ${ac_cv_prog_RANLIB+:} false; then : 6091 $as_echo_n "(cached) " >&6 6092else 6093 if test -n "$RANLIB"; then 6094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6095else 6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6097for as_dir in $PATH 6098do 6099 IFS=$as_save_IFS 6100 test -z "$as_dir" && as_dir=. 6101 for ac_exec_ext in '' $ac_executable_extensions; do 6102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6105 break 2 6106 fi 6107done 6108 done 6109IFS=$as_save_IFS 6110 6111fi 6112fi 6113RANLIB=$ac_cv_prog_RANLIB 6114if test -n "$RANLIB"; then 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6116$as_echo "$RANLIB" >&6; } 6117else 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6119$as_echo "no" >&6; } 6120fi 6121 6122 6123fi 6124if test -z "$ac_cv_prog_RANLIB"; then 6125 ac_ct_RANLIB=$RANLIB 6126 # Extract the first word of "ranlib", so it can be a program name with args. 6127set dummy ranlib; ac_word=$2 6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6129$as_echo_n "checking for $ac_word... " >&6; } 6130if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6131 $as_echo_n "(cached) " >&6 6132else 6133 if test -n "$ac_ct_RANLIB"; then 6134 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6135else 6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6137for as_dir in $PATH 6138do 6139 IFS=$as_save_IFS 6140 test -z "$as_dir" && as_dir=. 6141 for ac_exec_ext in '' $ac_executable_extensions; do 6142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6143 ac_cv_prog_ac_ct_RANLIB="ranlib" 6144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6145 break 2 6146 fi 6147done 6148 done 6149IFS=$as_save_IFS 6150 6151fi 6152fi 6153ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6154if test -n "$ac_ct_RANLIB"; then 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6156$as_echo "$ac_ct_RANLIB" >&6; } 6157else 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6159$as_echo "no" >&6; } 6160fi 6161 6162 if test "x$ac_ct_RANLIB" = x; then 6163 RANLIB=":" 6164 else 6165 case $cross_compiling:$ac_tool_warned in 6166yes:) 6167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6169ac_tool_warned=yes ;; 6170esac 6171 RANLIB=$ac_ct_RANLIB 6172 fi 6173else 6174 RANLIB="$ac_cv_prog_RANLIB" 6175fi 6176 6177 6178 6179 6180 # Step 0.a: Enable 64 bit support? 6181 6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 6183$as_echo_n "checking if 64bit support is requested... " >&6; } 6184 # Check whether --enable-64bit was given. 6185if test "${enable_64bit+set}" = set; then : 6186 enableval=$enable_64bit; do64bit=$enableval 6187else 6188 do64bit=no 6189fi 6190 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 6192$as_echo "$do64bit" >&6; } 6193 6194 # Step 0.b: Enable Solaris 64 bit VIS support? 6195 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 6197$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } 6198 # Check whether --enable-64bit-vis was given. 6199if test "${enable_64bit_vis+set}" = set; then : 6200 enableval=$enable_64bit_vis; do64bitVIS=$enableval 6201else 6202 do64bitVIS=no 6203fi 6204 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 6206$as_echo "$do64bitVIS" >&6; } 6207 # Force 64bit on with VIS 6208 if test "$do64bitVIS" = "yes"; then : 6209 do64bit=yes 6210fi 6211 6212 # Step 0.c: Check if visibility support is available. Do this here so 6213 # that platform specific alternatives can be used below if this fails. 6214 6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5 6216$as_echo_n "checking if compiler supports visibility \"hidden\"... " >&6; } 6217if ${tcl_cv_cc_visibility_hidden+:} false; then : 6218 $as_echo_n "(cached) " >&6 6219else 6220 6221 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223/* end confdefs.h. */ 6224 6225 extern __attribute__((__visibility__("hidden"))) void f(void); 6226 void f(void) {} 6227int 6228main () 6229{ 6230f(); 6231 ; 6232 return 0; 6233} 6234_ACEOF 6235if ac_fn_c_try_link "$LINENO"; then : 6236 tcl_cv_cc_visibility_hidden=yes 6237else 6238 tcl_cv_cc_visibility_hidden=no 6239fi 6240rm -f core conftest.err conftest.$ac_objext \ 6241 conftest$ac_exeext conftest.$ac_ext 6242 CFLAGS=$hold_cflags 6243fi 6244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5 6245$as_echo "$tcl_cv_cc_visibility_hidden" >&6; } 6246 if test $tcl_cv_cc_visibility_hidden = yes; then : 6247 6248 6249$as_echo "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h 6250 6251 6252$as_echo "#define HAVE_HIDDEN 1" >>confdefs.h 6253 6254 6255fi 6256 6257 # Step 0.d: Disable -rpath support? 6258 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5 6260$as_echo_n "checking if rpath support is requested... " >&6; } 6261 # Check whether --enable-rpath was given. 6262if test "${enable_rpath+set}" = set; then : 6263 enableval=$enable_rpath; doRpath=$enableval 6264else 6265 doRpath=yes 6266fi 6267 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5 6269$as_echo "$doRpath" >&6; } 6270 6271 # TEA specific: Cross-compiling options for Windows/CE builds? 6272 6273 if test "${TEA_PLATFORM}" = windows; then : 6274 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Windows/CE build is requested" >&5 6276$as_echo_n "checking if Windows/CE build is requested... " >&6; } 6277 # Check whether --enable-wince was given. 6278if test "${enable_wince+set}" = set; then : 6279 enableval=$enable_wince; doWince=$enableval 6280else 6281 doWince=no 6282fi 6283 6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doWince" >&5 6285$as_echo "$doWince" >&6; } 6286 6287fi 6288 6289 # Set the variable "system" to hold the name and version number 6290 # for the system. 6291 6292 6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 6294$as_echo_n "checking system version... " >&6; } 6295if ${tcl_cv_sys_version+:} false; then : 6296 $as_echo_n "(cached) " >&6 6297else 6298 6299 # TEA specific: 6300 if test "${TEA_PLATFORM}" = "windows" ; then 6301 tcl_cv_sys_version=windows 6302 else 6303 tcl_cv_sys_version=`uname -s`-`uname -r` 6304 if test "$?" -ne 0 ; then 6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 6306$as_echo "$as_me: WARNING: can't find uname command" >&2;} 6307 tcl_cv_sys_version=unknown 6308 else 6309 if test "`uname -s`" = "AIX" ; then 6310 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 6311 fi 6312 fi 6313 fi 6314 6315fi 6316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 6317$as_echo "$tcl_cv_sys_version" >&6; } 6318 system=$tcl_cv_sys_version 6319 6320 6321 # Require ranlib early so we can override it in special cases below. 6322 6323 6324 6325 # Set configuration options based on system name and version. 6326 # This is similar to Tcl's unix/tcl.m4 except that we've added a 6327 # "windows" case and removed some core-only vars. 6328 6329 do64bit_ok=no 6330 # default to '{$LIBS}' and set to "" on per-platform necessary basis 6331 SHLIB_LD_LIBS='${LIBS}' 6332 # When ld needs options to work in 64-bit mode, put them in 6333 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 6334 # is disabled by the user. [Bug 1016796] 6335 LDFLAGS_ARCH="" 6336 UNSHARED_LIB_SUFFIX="" 6337 # TEA specific: use PACKAGE_VERSION instead of VERSION 6338 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 6339 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 6340 TCL_LIB_VERSIONS_OK=ok 6341 CFLAGS_DEBUG=-g 6342 if test "$GCC" = yes; then : 6343 6344 CFLAGS_OPTIMIZE=-O2 6345 CFLAGS_WARNING="-Wall" 6346 6347else 6348 6349 CFLAGS_OPTIMIZE=-O 6350 CFLAGS_WARNING="" 6351 6352fi 6353 if test -n "$ac_tool_prefix"; then 6354 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6355set dummy ${ac_tool_prefix}ar; ac_word=$2 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6357$as_echo_n "checking for $ac_word... " >&6; } 6358if ${ac_cv_prog_AR+:} false; then : 6359 $as_echo_n "(cached) " >&6 6360else 6361 if test -n "$AR"; then 6362 ac_cv_prog_AR="$AR" # Let the user override the test. 6363else 6364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6365for as_dir in $PATH 6366do 6367 IFS=$as_save_IFS 6368 test -z "$as_dir" && as_dir=. 6369 for ac_exec_ext in '' $ac_executable_extensions; do 6370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6371 ac_cv_prog_AR="${ac_tool_prefix}ar" 6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6373 break 2 6374 fi 6375done 6376 done 6377IFS=$as_save_IFS 6378 6379fi 6380fi 6381AR=$ac_cv_prog_AR 6382if test -n "$AR"; then 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6384$as_echo "$AR" >&6; } 6385else 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6387$as_echo "no" >&6; } 6388fi 6389 6390 6391fi 6392if test -z "$ac_cv_prog_AR"; then 6393 ac_ct_AR=$AR 6394 # Extract the first word of "ar", so it can be a program name with args. 6395set dummy ar; ac_word=$2 6396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6397$as_echo_n "checking for $ac_word... " >&6; } 6398if ${ac_cv_prog_ac_ct_AR+:} false; then : 6399 $as_echo_n "(cached) " >&6 6400else 6401 if test -n "$ac_ct_AR"; then 6402 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6403else 6404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6405for as_dir in $PATH 6406do 6407 IFS=$as_save_IFS 6408 test -z "$as_dir" && as_dir=. 6409 for ac_exec_ext in '' $ac_executable_extensions; do 6410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6411 ac_cv_prog_ac_ct_AR="ar" 6412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6413 break 2 6414 fi 6415done 6416 done 6417IFS=$as_save_IFS 6418 6419fi 6420fi 6421ac_ct_AR=$ac_cv_prog_ac_ct_AR 6422if test -n "$ac_ct_AR"; then 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6424$as_echo "$ac_ct_AR" >&6; } 6425else 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6427$as_echo "no" >&6; } 6428fi 6429 6430 if test "x$ac_ct_AR" = x; then 6431 AR="" 6432 else 6433 case $cross_compiling:$ac_tool_warned in 6434yes:) 6435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6437ac_tool_warned=yes ;; 6438esac 6439 AR=$ac_ct_AR 6440 fi 6441else 6442 AR="$ac_cv_prog_AR" 6443fi 6444 6445 STLIB_LD='${AR} cr' 6446 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 6447 if test "x$SHLIB_VERSION" = x; then : 6448 SHLIB_VERSION="" 6449else 6450 SHLIB_VERSION=".$SHLIB_VERSION" 6451fi 6452 case $system in 6453 # TEA specific: 6454 windows) 6455 # This is a 2-stage check to make sure we have the 64-bit SDK 6456 # We have to know where the SDK is installed. 6457 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 6458 # MACHINE is IX86 for LINK, but this is used by the manifest, 6459 # which requires x86|amd64|ia64. 6460 MACHINE="X86" 6461 if test "$do64bit" != "no" ; then 6462 if test "x${MSSDK}x" = "xx" ; then 6463 MSSDK="C:/Progra~1/Microsoft Platform SDK" 6464 fi 6465 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 6466 PATH64="" 6467 case "$do64bit" in 6468 amd64|x64|yes) 6469 MACHINE="AMD64" ; # default to AMD64 64-bit build 6470 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 6471 ;; 6472 ia64) 6473 MACHINE="IA64" 6474 PATH64="${MSSDK}/Bin/Win64" 6475 ;; 6476 esac 6477 if test "$GCC" != "yes" -a ! -d "${PATH64}" ; then 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 6479$as_echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ensure latest Platform SDK is installed" >&5 6481$as_echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 6482 do64bit="no" 6483 else 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using 64-bit $MACHINE mode" >&5 6485$as_echo " Using 64-bit $MACHINE mode" >&6; } 6486 do64bit_ok="yes" 6487 fi 6488 fi 6489 6490 if test "$doWince" != "no" ; then 6491 if test "$do64bit" != "no" ; then 6492 as_fn_error $? "Windows/CE and 64-bit builds incompatible" "$LINENO" 5 6493 fi 6494 if test "$GCC" = "yes" ; then 6495 as_fn_error $? "Windows/CE and GCC builds incompatible" "$LINENO" 5 6496 fi 6497 6498 # First, look for one uninstalled. 6499 # the alternative search directory is invoked by --with-celib 6500 6501 if test x"${no_celib}" = x ; then 6502 # we reset no_celib in case something fails here 6503 no_celib=true 6504 6505# Check whether --with-celib was given. 6506if test "${with_celib+set}" = set; then : 6507 withval=$with_celib; with_celibconfig=${withval} 6508fi 6509 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows/CE celib directory" >&5 6511$as_echo_n "checking for Windows/CE celib directory... " >&6; } 6512 if ${ac_cv_c_celibconfig+:} false; then : 6513 $as_echo_n "(cached) " >&6 6514else 6515 6516 # First check to see if --with-celibconfig was specified. 6517 if test x"${with_celibconfig}" != x ; then 6518 if test -d "${with_celibconfig}/inc" ; then 6519 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 6520 else 6521 as_fn_error $? "${with_celibconfig} directory doesn't contain inc directory" "$LINENO" 5 6522 fi 6523 fi 6524 6525 # then check for a celib library 6526 if test x"${ac_cv_c_celibconfig}" = x ; then 6527 for i in \ 6528 ../celib-palm-3.0 \ 6529 ../celib \ 6530 ../../celib-palm-3.0 \ 6531 ../../celib \ 6532 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 6533 ${srcdir}/../celib-palm-3.0 \ 6534 ${srcdir}/../celib \ 6535 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 6536 ; do 6537 if test -d "$i/inc" ; then 6538 ac_cv_c_celibconfig=`(cd $i; pwd)` 6539 break 6540 fi 6541 done 6542 fi 6543 6544fi 6545 6546 if test x"${ac_cv_c_celibconfig}" = x ; then 6547 as_fn_error $? "Cannot find celib support library directory" "$LINENO" 5 6548 else 6549 no_celib= 6550 CELIB_DIR=${ac_cv_c_celibconfig} 6551 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $CELIB_DIR" >&5 6553$as_echo "found $CELIB_DIR" >&6; } 6554 fi 6555 fi 6556 6557 # Set defaults for common evc4/PPC2003 setup 6558 # Currently Tcl requires 300+, possibly 420+ for sockets 6559 CEVERSION=420; # could be 211 300 301 400 420 ... 6560 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 6561 ARCH=ARM; # could be ARM MIPS X86EM ... 6562 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 6563 if test "$doWince" != "yes"; then 6564 # If !yes then the user specified something 6565 # Reset ARCH to allow user to skip specifying it 6566 ARCH= 6567 eval `echo $doWince | awk -F, '{ \ 6568 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 6569 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 6570 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 6571 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 6572 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 6573 }'` 6574 if test "x${ARCH}" = "x" ; then 6575 ARCH=$TARGETCPU; 6576 fi 6577 fi 6578 OSVERSION=WCE$CEVERSION; 6579 if test "x${WCEROOT}" = "x" ; then 6580 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 6581 if test ! -d "${WCEROOT}" ; then 6582 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 6583 fi 6584 fi 6585 if test "x${SDKROOT}" = "x" ; then 6586 SDKROOT="C:/Program Files/Windows CE Tools" 6587 if test ! -d "${SDKROOT}" ; then 6588 SDKROOT="C:/Windows CE Tools" 6589 fi 6590 fi 6591 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 6592 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 6593 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 6594 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 6595 as_fn_error $? "could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" "$LINENO" 5 6596 doWince="no" 6597 else 6598 # We could PATH_NOSPACE these, but that's not important, 6599 # as long as we quote them when used. 6600 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 6601 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 6602 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 6603 fi 6604 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 6605 fi 6606 fi 6607 6608 if test "$GCC" != "yes" ; then 6609 if test "${SHARED_BUILD}" = "0" ; then 6610 runtime=-MT 6611 else 6612 runtime=-MD 6613 fi 6614 case "x`echo \${VisualStudioVersion}`" in 6615 x1[4-9]*) 6616 lflags="${lflags} -nodefaultlib:libucrt.lib" 6617 6618 vars="ucrt.lib" 6619 for i in $vars; do 6620 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6621 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6622 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6623 fi 6624 PKG_LIBS="$PKG_LIBS $i" 6625 done 6626 6627 6628 ;; 6629 *) 6630 ;; 6631 esac 6632 6633 if test "$do64bit" != "no" ; then 6634 # All this magic is necessary for the Win64 SDK RC1 - hobbs 6635 CC="\"${PATH64}/cl.exe\"" 6636 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 6637 RC="\"${MSSDK}/bin/rc.exe\"" 6638 lflags="${lflags} -nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 6639 LINKBIN="\"${PATH64}/link.exe\"" 6640 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 6641 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 6642 # Avoid 'unresolved external symbol __security_cookie' 6643 # errors, c.f. http://support.microsoft.com/?id=894573 6644 6645 vars="bufferoverflowU.lib" 6646 for i in $vars; do 6647 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6648 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6649 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6650 fi 6651 PKG_LIBS="$PKG_LIBS $i" 6652 done 6653 6654 6655 elif test "$doWince" != "no" ; then 6656 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 6657 if test "${TARGETCPU}" = "X86"; then 6658 CC="\"${CEBINROOT}/cl.exe\"" 6659 else 6660 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 6661 fi 6662 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 6663 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 6664 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 6665 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 6666 if test "${SHARED_BUILD}" = "1" ; then 6667 # Static CE builds require static celib as well 6668 defs="${defs} _DLL" 6669 fi 6670 for i in $defs ; do 6671 6672cat >>confdefs.h <<_ACEOF 6673#define $i 1 6674_ACEOF 6675 6676 done 6677 6678cat >>confdefs.h <<_ACEOF 6679#define _WIN32_WCE $CEVERSION 6680_ACEOF 6681 6682 6683cat >>confdefs.h <<_ACEOF 6684#define UNDER_CE $CEVERSION 6685_ACEOF 6686 6687 CFLAGS_DEBUG="-nologo -Zi -Od" 6688 CFLAGS_OPTIMIZE="-nologo -Ox" 6689 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 6690 lflags="${lflags} -MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 6691 LINKBIN="\"${CEBINROOT}/link.exe\"" 6692 6693 else 6694 RC="rc" 6695 lflags="${lflags} -nologo" 6696 LINKBIN="link" 6697 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 6698 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 6699 fi 6700 fi 6701 6702 if test "$GCC" = "yes"; then 6703 # mingw gcc mode 6704 if test -n "$ac_tool_prefix"; then 6705 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 6706set dummy ${ac_tool_prefix}windres; ac_word=$2 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6708$as_echo_n "checking for $ac_word... " >&6; } 6709if ${ac_cv_prog_RC+:} false; then : 6710 $as_echo_n "(cached) " >&6 6711else 6712 if test -n "$RC"; then 6713 ac_cv_prog_RC="$RC" # Let the user override the test. 6714else 6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6716for as_dir in $PATH 6717do 6718 IFS=$as_save_IFS 6719 test -z "$as_dir" && as_dir=. 6720 for ac_exec_ext in '' $ac_executable_extensions; do 6721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6722 ac_cv_prog_RC="${ac_tool_prefix}windres" 6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6724 break 2 6725 fi 6726done 6727 done 6728IFS=$as_save_IFS 6729 6730fi 6731fi 6732RC=$ac_cv_prog_RC 6733if test -n "$RC"; then 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 6735$as_echo "$RC" >&6; } 6736else 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6738$as_echo "no" >&6; } 6739fi 6740 6741 6742fi 6743if test -z "$ac_cv_prog_RC"; then 6744 ac_ct_RC=$RC 6745 # Extract the first word of "windres", so it can be a program name with args. 6746set dummy windres; ac_word=$2 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6748$as_echo_n "checking for $ac_word... " >&6; } 6749if ${ac_cv_prog_ac_ct_RC+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751else 6752 if test -n "$ac_ct_RC"; then 6753 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 6754else 6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6756for as_dir in $PATH 6757do 6758 IFS=$as_save_IFS 6759 test -z "$as_dir" && as_dir=. 6760 for ac_exec_ext in '' $ac_executable_extensions; do 6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6762 ac_cv_prog_ac_ct_RC="windres" 6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6764 break 2 6765 fi 6766done 6767 done 6768IFS=$as_save_IFS 6769 6770fi 6771fi 6772ac_ct_RC=$ac_cv_prog_ac_ct_RC 6773if test -n "$ac_ct_RC"; then 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 6775$as_echo "$ac_ct_RC" >&6; } 6776else 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6778$as_echo "no" >&6; } 6779fi 6780 6781 if test "x$ac_ct_RC" = x; then 6782 RC="" 6783 else 6784 case $cross_compiling:$ac_tool_warned in 6785yes:) 6786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6788ac_tool_warned=yes ;; 6789esac 6790 RC=$ac_ct_RC 6791 fi 6792else 6793 RC="$ac_cv_prog_RC" 6794fi 6795 6796 CFLAGS_DEBUG="-g" 6797 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 6798 SHLIB_LD='${CC} -shared' 6799 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 6800 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 6801 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 6802 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5 6804$as_echo_n "checking for cross-compile version of gcc... " >&6; } 6805if ${ac_cv_cross+:} false; then : 6806 $as_echo_n "(cached) " >&6 6807else 6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6809/* end confdefs.h. */ 6810 6811 #ifdef _WIN32 6812 #error cross-compiler 6813 #endif 6814 6815int 6816main () 6817{ 6818 6819 ; 6820 return 0; 6821} 6822_ACEOF 6823if ac_fn_c_try_compile "$LINENO"; then : 6824 ac_cv_cross=yes 6825else 6826 ac_cv_cross=no 6827fi 6828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6829 6830fi 6831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5 6832$as_echo "$ac_cv_cross" >&6; } 6833 if test "$ac_cv_cross" = "yes"; then 6834 case "$do64bit" in 6835 amd64|x64|yes) 6836 CC="x86_64-w64-mingw32-gcc" 6837 LD="x86_64-w64-mingw32-ld" 6838 AR="x86_64-w64-mingw32-ar" 6839 RANLIB="x86_64-w64-mingw32-ranlib" 6840 RC="x86_64-w64-mingw32-windres" 6841 ;; 6842 *) 6843 CC="i686-w64-mingw32-gcc" 6844 LD="i686-w64-mingw32-ld" 6845 AR="i686-w64-mingw32-ar" 6846 RANLIB="i686-w64-mingw32-ranlib" 6847 RC="i686-w64-mingw32-windres" 6848 ;; 6849 esac 6850 fi 6851 6852 else 6853 SHLIB_LD="${LINKBIN} -dll ${lflags}" 6854 # link -lib only works when -lib is the first arg 6855 STLIB_LD="${LINKBIN} -lib ${lflags}" 6856 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 6857 PATHTYPE=-w 6858 # For information on what debugtype is most useful, see: 6859 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 6860 # and also 6861 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 6862 # This essentially turns it all on. 6863 LDFLAGS_DEBUG="-debug -debugtype:cv" 6864 LDFLAGS_OPTIMIZE="-release" 6865 if test "$doWince" != "no" ; then 6866 LDFLAGS_CONSOLE="-link ${lflags}" 6867 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 6868 else 6869 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 6870 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 6871 fi 6872 fi 6873 6874 SHLIB_SUFFIX=".dll" 6875 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 6876 6877 TCL_LIB_VERSIONS_OK=nodots 6878 ;; 6879 AIX-*) 6880 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then : 6881 6882 # AIX requires the _r compiler when gcc isn't being used 6883 case "${CC}" in 6884 *_r|*_r\ *) 6885 # ok ... 6886 ;; 6887 *) 6888 # Make sure only first arg gets _r 6889 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 6890 ;; 6891 esac 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 6893$as_echo "Using $CC for compiling with threads" >&6; } 6894 6895fi 6896 LIBS="$LIBS -lc" 6897 SHLIB_CFLAGS="" 6898 SHLIB_SUFFIX=".so" 6899 6900 LD_LIBRARY_PATH_VAR="LIBPATH" 6901 6902 # Check to enable 64-bit flags for compiler/linker 6903 if test "$do64bit" = yes; then : 6904 6905 if test "$GCC" = yes; then : 6906 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 6908$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 6909 6910else 6911 6912 do64bit_ok=yes 6913 CFLAGS="$CFLAGS -q64" 6914 LDFLAGS_ARCH="-q64" 6915 RANLIB="${RANLIB} -X64" 6916 AR="${AR} -X64" 6917 SHLIB_LD_FLAGS="-b64" 6918 6919fi 6920 6921fi 6922 6923 if test "`uname -m`" = ia64; then : 6924 6925 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 6926 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 6927 if test "$GCC" = yes; then : 6928 6929 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 6930 6931else 6932 6933 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 6934 6935fi 6936 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 6937 6938else 6939 6940 if test "$GCC" = yes; then : 6941 6942 SHLIB_LD='${CC} -shared -Wl,-bexpall' 6943 6944else 6945 6946 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 6947 LDFLAGS="$LDFLAGS -brtl" 6948 6949fi 6950 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 6951 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 6952 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6953 6954fi 6955 ;; 6956 BeOS*) 6957 SHLIB_CFLAGS="-fPIC" 6958 SHLIB_LD='${CC} -nostart' 6959 SHLIB_SUFFIX=".so" 6960 6961 #----------------------------------------------------------- 6962 # Check for inet_ntoa in -lbind, for BeOS (which also needs 6963 # -lsocket, even if the network functions are in -lnet which 6964 # is always linked to, for compatibility. 6965 #----------------------------------------------------------- 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 6967$as_echo_n "checking for inet_ntoa in -lbind... " >&6; } 6968if ${ac_cv_lib_bind_inet_ntoa+:} false; then : 6969 $as_echo_n "(cached) " >&6 6970else 6971 ac_check_lib_save_LIBS=$LIBS 6972LIBS="-lbind $LIBS" 6973cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6974/* end confdefs.h. */ 6975 6976/* Override any GCC internal prototype to avoid an error. 6977 Use char because int might match the return type of a GCC 6978 builtin and then its argument prototype would still apply. */ 6979#ifdef __cplusplus 6980extern "C" 6981#endif 6982char inet_ntoa (); 6983int 6984main () 6985{ 6986return inet_ntoa (); 6987 ; 6988 return 0; 6989} 6990_ACEOF 6991if ac_fn_c_try_link "$LINENO"; then : 6992 ac_cv_lib_bind_inet_ntoa=yes 6993else 6994 ac_cv_lib_bind_inet_ntoa=no 6995fi 6996rm -f core conftest.err conftest.$ac_objext \ 6997 conftest$ac_exeext conftest.$ac_ext 6998LIBS=$ac_check_lib_save_LIBS 6999fi 7000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 7001$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } 7002if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then : 7003 LIBS="$LIBS -lbind -lsocket" 7004fi 7005 7006 ;; 7007 BSD/OS-4.*) 7008 SHLIB_CFLAGS="-export-dynamic -fPIC" 7009 SHLIB_LD='${CC} -shared' 7010 SHLIB_SUFFIX=".so" 7011 LDFLAGS="$LDFLAGS -export-dynamic" 7012 CC_SEARCH_FLAGS="" 7013 LD_SEARCH_FLAGS="" 7014 ;; 7015 CYGWIN_*) 7016 SHLIB_CFLAGS="" 7017 SHLIB_LD='${CC} -shared' 7018 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\$@.a" 7019 SHLIB_SUFFIX=".dll" 7020 EXEEXT=".exe" 7021 do64bit_ok=yes 7022 CC_SEARCH_FLAGS="" 7023 LD_SEARCH_FLAGS="" 7024 ;; 7025 Haiku*) 7026 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 7027 SHLIB_CFLAGS="-fPIC" 7028 SHLIB_SUFFIX=".so" 7029 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5 7031$as_echo_n "checking for inet_ntoa in -lnetwork... " >&6; } 7032if ${ac_cv_lib_network_inet_ntoa+:} false; then : 7033 $as_echo_n "(cached) " >&6 7034else 7035 ac_check_lib_save_LIBS=$LIBS 7036LIBS="-lnetwork $LIBS" 7037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7038/* end confdefs.h. */ 7039 7040/* Override any GCC internal prototype to avoid an error. 7041 Use char because int might match the return type of a GCC 7042 builtin and then its argument prototype would still apply. */ 7043#ifdef __cplusplus 7044extern "C" 7045#endif 7046char inet_ntoa (); 7047int 7048main () 7049{ 7050return inet_ntoa (); 7051 ; 7052 return 0; 7053} 7054_ACEOF 7055if ac_fn_c_try_link "$LINENO"; then : 7056 ac_cv_lib_network_inet_ntoa=yes 7057else 7058 ac_cv_lib_network_inet_ntoa=no 7059fi 7060rm -f core conftest.err conftest.$ac_objext \ 7061 conftest$ac_exeext conftest.$ac_ext 7062LIBS=$ac_check_lib_save_LIBS 7063fi 7064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5 7065$as_echo "$ac_cv_lib_network_inet_ntoa" >&6; } 7066if test "x$ac_cv_lib_network_inet_ntoa" = xyes; then : 7067 LIBS="$LIBS -lnetwork" 7068fi 7069 7070 ;; 7071 HP-UX-*.11.*) 7072 # Use updated header definitions where possible 7073 7074$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 7075 7076 # TEA specific: Needed by Tcl, but not most extensions 7077 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 7078 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 7079 7080 if test "`uname -m`" = ia64; then : 7081 7082 SHLIB_SUFFIX=".so" 7083 # Use newer C++ library for C++ extensions 7084 #if test "$GCC" != "yes" ; then 7085 # CPPFLAGS="-AA" 7086 #fi 7087 7088else 7089 7090 SHLIB_SUFFIX=".sl" 7091 7092fi 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 7094$as_echo_n "checking for shl_load in -ldld... " >&6; } 7095if ${ac_cv_lib_dld_shl_load+:} false; then : 7096 $as_echo_n "(cached) " >&6 7097else 7098 ac_check_lib_save_LIBS=$LIBS 7099LIBS="-ldld $LIBS" 7100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7101/* end confdefs.h. */ 7102 7103/* Override any GCC internal prototype to avoid an error. 7104 Use char because int might match the return type of a GCC 7105 builtin and then its argument prototype would still apply. */ 7106#ifdef __cplusplus 7107extern "C" 7108#endif 7109char shl_load (); 7110int 7111main () 7112{ 7113return shl_load (); 7114 ; 7115 return 0; 7116} 7117_ACEOF 7118if ac_fn_c_try_link "$LINENO"; then : 7119 ac_cv_lib_dld_shl_load=yes 7120else 7121 ac_cv_lib_dld_shl_load=no 7122fi 7123rm -f core conftest.err conftest.$ac_objext \ 7124 conftest$ac_exeext conftest.$ac_ext 7125LIBS=$ac_check_lib_save_LIBS 7126fi 7127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 7128$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 7129if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 7130 tcl_ok=yes 7131else 7132 tcl_ok=no 7133fi 7134 7135 if test "$tcl_ok" = yes; then : 7136 7137 LDFLAGS="$LDFLAGS -Wl,-E" 7138 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 7139 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 7140 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 7141 7142fi 7143 if test "$GCC" = yes; then : 7144 7145 SHLIB_LD='${CC} -shared' 7146 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7147 7148else 7149 7150 CFLAGS="$CFLAGS -z" 7151 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 7152 #CFLAGS="$CFLAGS +DAportable" 7153 SHLIB_CFLAGS="+z" 7154 SHLIB_LD="ld -b" 7155 7156fi 7157 7158 # Check to enable 64-bit flags for compiler/linker 7159 if test "$do64bit" = "yes"; then : 7160 7161 if test "$GCC" = yes; then : 7162 7163 case `${CC} -dumpmachine` in 7164 hppa64*) 7165 # 64-bit gcc in use. Fix flags for GNU ld. 7166 do64bit_ok=yes 7167 SHLIB_LD='${CC} -shared' 7168 if test $doRpath = yes; then : 7169 7170 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7171fi 7172 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7173 ;; 7174 *) 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 7176$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 7177 ;; 7178 esac 7179 7180else 7181 7182 do64bit_ok=yes 7183 CFLAGS="$CFLAGS +DD64" 7184 LDFLAGS_ARCH="+DD64" 7185 7186fi 7187 7188fi ;; 7189 IRIX-6.*) 7190 SHLIB_CFLAGS="" 7191 SHLIB_LD="ld -n32 -shared -rdata_shared" 7192 SHLIB_SUFFIX=".so" 7193 if test $doRpath = yes; then : 7194 7195 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7196 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 7197fi 7198 if test "$GCC" = yes; then : 7199 7200 CFLAGS="$CFLAGS -mabi=n32" 7201 LDFLAGS="$LDFLAGS -mabi=n32" 7202 7203else 7204 7205 case $system in 7206 IRIX-6.3) 7207 # Use to build 6.2 compatible binaries on 6.3. 7208 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 7209 ;; 7210 *) 7211 CFLAGS="$CFLAGS -n32" 7212 ;; 7213 esac 7214 LDFLAGS="$LDFLAGS -n32" 7215 7216fi 7217 ;; 7218 IRIX64-6.*) 7219 SHLIB_CFLAGS="" 7220 SHLIB_LD="ld -n32 -shared -rdata_shared" 7221 SHLIB_SUFFIX=".so" 7222 if test $doRpath = yes; then : 7223 7224 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7225 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 7226fi 7227 7228 # Check to enable 64-bit flags for compiler/linker 7229 7230 if test "$do64bit" = yes; then : 7231 7232 if test "$GCC" = yes; then : 7233 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 7235$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 7236 7237else 7238 7239 do64bit_ok=yes 7240 SHLIB_LD="ld -64 -shared -rdata_shared" 7241 CFLAGS="$CFLAGS -64" 7242 LDFLAGS_ARCH="-64" 7243 7244fi 7245 7246fi 7247 ;; 7248 Linux*|GNU*|NetBSD-Debian) 7249 SHLIB_CFLAGS="-fPIC" 7250 SHLIB_SUFFIX=".so" 7251 7252 # TEA specific: 7253 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7254 7255 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 7256 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 7257 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 7258 if test $doRpath = yes; then : 7259 7260 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7261fi 7262 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7263 if test "`uname -m`" = "alpha"; then : 7264 CFLAGS="$CFLAGS -mieee" 7265fi 7266 if test $do64bit = yes; then : 7267 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 7269$as_echo_n "checking if compiler accepts -m64 flag... " >&6; } 7270if ${tcl_cv_cc_m64+:} false; then : 7271 $as_echo_n "(cached) " >&6 7272else 7273 7274 hold_cflags=$CFLAGS 7275 CFLAGS="$CFLAGS -m64" 7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7277/* end confdefs.h. */ 7278 7279int 7280main () 7281{ 7282 7283 ; 7284 return 0; 7285} 7286_ACEOF 7287if ac_fn_c_try_link "$LINENO"; then : 7288 tcl_cv_cc_m64=yes 7289else 7290 tcl_cv_cc_m64=no 7291fi 7292rm -f core conftest.err conftest.$ac_objext \ 7293 conftest$ac_exeext conftest.$ac_ext 7294 CFLAGS=$hold_cflags 7295fi 7296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 7297$as_echo "$tcl_cv_cc_m64" >&6; } 7298 if test $tcl_cv_cc_m64 = yes; then : 7299 7300 CFLAGS="$CFLAGS -m64" 7301 do64bit_ok=yes 7302 7303fi 7304 7305fi 7306 7307 # The combo of gcc + glibc has a bug related to inlining of 7308 # functions like strtod(). The -fno-builtin flag should address 7309 # this problem but it does not work. The -fno-inline flag is kind 7310 # of overkill but it works. Disable inlining only when one of the 7311 # files in compat/*.c is being linked in. 7312 7313 if test x"${USE_COMPAT}" != x; then : 7314 CFLAGS="$CFLAGS -fno-inline" 7315fi 7316 ;; 7317 Lynx*) 7318 SHLIB_CFLAGS="-fPIC" 7319 SHLIB_SUFFIX=".so" 7320 CFLAGS_OPTIMIZE=-02 7321 SHLIB_LD='${CC} -shared' 7322 LD_FLAGS="-Wl,--export-dynamic" 7323 if test $doRpath = yes; then : 7324 7325 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7326 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7327fi 7328 ;; 7329 OpenBSD-*) 7330 arch=`arch -s` 7331 case "$arch" in 7332 alpha|sparc64) 7333 SHLIB_CFLAGS="-fPIC" 7334 ;; 7335 *) 7336 SHLIB_CFLAGS="-fpic" 7337 ;; 7338 esac 7339 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 7340 SHLIB_SUFFIX=".so" 7341 if test $doRpath = yes; then : 7342 7343 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7344fi 7345 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7346 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}' 7347 LDFLAGS="-Wl,-export-dynamic" 7348 CFLAGS_OPTIMIZE="-O2" 7349 if test "${TCL_THREADS}" = "1"; then : 7350 7351 # On OpenBSD: Compile with -pthread 7352 # Don't link with -lpthread 7353 LIBS=`echo $LIBS | sed s/-lpthread//` 7354 CFLAGS="$CFLAGS -pthread" 7355 7356fi 7357 # OpenBSD doesn't do version numbers with dots. 7358 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7359 TCL_LIB_VERSIONS_OK=nodots 7360 ;; 7361 NetBSD-*) 7362 # NetBSD has ELF and can use 'cc -shared' to build shared libs 7363 SHLIB_CFLAGS="-fPIC" 7364 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 7365 SHLIB_SUFFIX=".so" 7366 LDFLAGS="$LDFLAGS -export-dynamic" 7367 if test $doRpath = yes; then : 7368 7369 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7370fi 7371 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7372 if test "${TCL_THREADS}" = "1"; then : 7373 7374 # The -pthread needs to go in the CFLAGS, not LIBS 7375 LIBS=`echo $LIBS | sed s/-pthread//` 7376 CFLAGS="$CFLAGS -pthread" 7377 LDFLAGS="$LDFLAGS -pthread" 7378 7379fi 7380 ;; 7381 FreeBSD-*) 7382 # This configuration from FreeBSD Ports. 7383 SHLIB_CFLAGS="-fPIC" 7384 SHLIB_LD="${CC} -shared" 7385 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,-soname,\$@" 7386 SHLIB_SUFFIX=".so" 7387 LDFLAGS="" 7388 if test $doRpath = yes; then : 7389 7390 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7391 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7392fi 7393 if test "${TCL_THREADS}" = "1"; then : 7394 7395 # The -pthread needs to go in the LDFLAGS, not LIBS 7396 LIBS=`echo $LIBS | sed s/-pthread//` 7397 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 7398 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 7399fi 7400 case $system in 7401 FreeBSD-3.*) 7402 # Version numbers are dot-stripped by system policy. 7403 TCL_TRIM_DOTS=`echo ${PACKAGE_VERSION} | tr -d .` 7404 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7405 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 7406 TCL_LIB_VERSIONS_OK=nodots 7407 ;; 7408 esac 7409 ;; 7410 Darwin-*) 7411 CFLAGS_OPTIMIZE="-Os" 7412 SHLIB_CFLAGS="-fno-common" 7413 # To avoid discrepancies between what headers configure sees during 7414 # preprocessing tests and compiling tests, move any -isysroot and 7415 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 7416 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 7417 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 7418 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 7419 CFLAGS="`echo " ${CFLAGS}" | \ 7420 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 7421 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 7422 if test $do64bit = yes; then : 7423 7424 case `arch` in 7425 ppc) 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 7427$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; } 7428if ${tcl_cv_cc_arch_ppc64+:} false; then : 7429 $as_echo_n "(cached) " >&6 7430else 7431 7432 hold_cflags=$CFLAGS 7433 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7435/* end confdefs.h. */ 7436 7437int 7438main () 7439{ 7440 7441 ; 7442 return 0; 7443} 7444_ACEOF 7445if ac_fn_c_try_link "$LINENO"; then : 7446 tcl_cv_cc_arch_ppc64=yes 7447else 7448 tcl_cv_cc_arch_ppc64=no 7449fi 7450rm -f core conftest.err conftest.$ac_objext \ 7451 conftest$ac_exeext conftest.$ac_ext 7452 CFLAGS=$hold_cflags 7453fi 7454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 7455$as_echo "$tcl_cv_cc_arch_ppc64" >&6; } 7456 if test $tcl_cv_cc_arch_ppc64 = yes; then : 7457 7458 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 7459 do64bit_ok=yes 7460 7461fi;; 7462 i386) 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 7464$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; } 7465if ${tcl_cv_cc_arch_x86_64+:} false; then : 7466 $as_echo_n "(cached) " >&6 7467else 7468 7469 hold_cflags=$CFLAGS 7470 CFLAGS="$CFLAGS -arch x86_64" 7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7472/* end confdefs.h. */ 7473 7474int 7475main () 7476{ 7477 7478 ; 7479 return 0; 7480} 7481_ACEOF 7482if ac_fn_c_try_link "$LINENO"; then : 7483 tcl_cv_cc_arch_x86_64=yes 7484else 7485 tcl_cv_cc_arch_x86_64=no 7486fi 7487rm -f core conftest.err conftest.$ac_objext \ 7488 conftest$ac_exeext conftest.$ac_ext 7489 CFLAGS=$hold_cflags 7490fi 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 7492$as_echo "$tcl_cv_cc_arch_x86_64" >&6; } 7493 if test $tcl_cv_cc_arch_x86_64 = yes; then : 7494 7495 CFLAGS="$CFLAGS -arch x86_64" 7496 do64bit_ok=yes 7497 7498fi;; 7499 *) 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 7501$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 7502 esac 7503 7504else 7505 7506 # Check for combined 32-bit and 64-bit fat build 7507 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 7508 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then : 7509 7510 fat_32_64=yes 7511fi 7512 7513fi 7514 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 7515 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 7517$as_echo_n "checking if ld accepts -single_module flag... " >&6; } 7518if ${tcl_cv_ld_single_module+:} false; then : 7519 $as_echo_n "(cached) " >&6 7520else 7521 7522 hold_ldflags=$LDFLAGS 7523 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7525/* end confdefs.h. */ 7526 7527int 7528main () 7529{ 7530int i; 7531 ; 7532 return 0; 7533} 7534_ACEOF 7535if ac_fn_c_try_link "$LINENO"; then : 7536 tcl_cv_ld_single_module=yes 7537else 7538 tcl_cv_ld_single_module=no 7539fi 7540rm -f core conftest.err conftest.$ac_objext \ 7541 conftest$ac_exeext conftest.$ac_ext 7542 LDFLAGS=$hold_ldflags 7543fi 7544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 7545$as_echo "$tcl_cv_ld_single_module" >&6; } 7546 if test $tcl_cv_ld_single_module = yes; then : 7547 7548 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 7549 7550fi 7551 # TEA specific: link shlib with current and compatibility version flags 7552 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 7553 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 7554 SHLIB_SUFFIX=".dylib" 7555 # Don't use -prebind when building for Mac OS X 10.4 or later only: 7556 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 7557 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then : 7558 7559 LDFLAGS="$LDFLAGS -prebind" 7560fi 7561 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 7563$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } 7564if ${tcl_cv_ld_search_paths_first+:} false; then : 7565 $as_echo_n "(cached) " >&6 7566else 7567 7568 hold_ldflags=$LDFLAGS 7569 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7571/* end confdefs.h. */ 7572 7573int 7574main () 7575{ 7576int i; 7577 ; 7578 return 0; 7579} 7580_ACEOF 7581if ac_fn_c_try_link "$LINENO"; then : 7582 tcl_cv_ld_search_paths_first=yes 7583else 7584 tcl_cv_ld_search_paths_first=no 7585fi 7586rm -f core conftest.err conftest.$ac_objext \ 7587 conftest$ac_exeext conftest.$ac_ext 7588 LDFLAGS=$hold_ldflags 7589fi 7590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 7591$as_echo "$tcl_cv_ld_search_paths_first" >&6; } 7592 if test $tcl_cv_ld_search_paths_first = yes; then : 7593 7594 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 7595 7596fi 7597 if test "$tcl_cv_cc_visibility_hidden" != yes; then : 7598 7599 7600$as_echo "#define MODULE_SCOPE __private_extern__" >>confdefs.h 7601 7602 tcl_cv_cc_visibility_hidden=yes 7603 7604fi 7605 CC_SEARCH_FLAGS="" 7606 LD_SEARCH_FLAGS="" 7607 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 7608 # TEA specific: for combined 32 & 64 bit fat builds of Tk 7609 # extensions, verify that 64-bit build is possible. 7610 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then : 7611 7612 if test "${TEA_WINDOWINGSYSTEM}" = x11; then : 7613 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5 7615$as_echo_n "checking for 64-bit X11... " >&6; } 7616if ${tcl_cv_lib_x11_64+:} false; then : 7617 $as_echo_n "(cached) " >&6 7618else 7619 7620 for v in CFLAGS CPPFLAGS LDFLAGS; do 7621 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 7622 done 7623 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 7624 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7626/* end confdefs.h. */ 7627#include <X11/Xlib.h> 7628int 7629main () 7630{ 7631XrmInitialize(); 7632 ; 7633 return 0; 7634} 7635_ACEOF 7636if ac_fn_c_try_link "$LINENO"; then : 7637 tcl_cv_lib_x11_64=yes 7638else 7639 tcl_cv_lib_x11_64=no 7640fi 7641rm -f core conftest.err conftest.$ac_objext \ 7642 conftest$ac_exeext conftest.$ac_ext 7643 for v in CFLAGS CPPFLAGS LDFLAGS; do 7644 eval $v'="$hold_'$v'"' 7645 done 7646fi 7647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5 7648$as_echo "$tcl_cv_lib_x11_64" >&6; } 7649 7650fi 7651 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then : 7652 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5 7654$as_echo_n "checking for 64-bit Tk... " >&6; } 7655if ${tcl_cv_lib_tk_64+:} false; then : 7656 $as_echo_n "(cached) " >&6 7657else 7658 7659 for v in CFLAGS CPPFLAGS LDFLAGS; do 7660 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 7661 done 7662 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}" 7663 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7665/* end confdefs.h. */ 7666#include <tk.h> 7667int 7668main () 7669{ 7670Tk_InitStubs(NULL, "", 0); 7671 ; 7672 return 0; 7673} 7674_ACEOF 7675if ac_fn_c_try_link "$LINENO"; then : 7676 tcl_cv_lib_tk_64=yes 7677else 7678 tcl_cv_lib_tk_64=no 7679fi 7680rm -f core conftest.err conftest.$ac_objext \ 7681 conftest$ac_exeext conftest.$ac_ext 7682 for v in CFLAGS CPPFLAGS LDFLAGS; do 7683 eval $v'="$hold_'$v'"' 7684 done 7685fi 7686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5 7687$as_echo "$tcl_cv_lib_tk_64" >&6; } 7688 7689fi 7690 # remove 64-bit arch flags from CFLAGS et al. if configuration 7691 # does not support 64-bit. 7692 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then : 7693 7694 { $as_echo "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5 7695$as_echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 7696 for v in CFLAGS CPPFLAGS LDFLAGS; do 7697 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 7698 done 7699fi 7700 7701fi 7702 ;; 7703 OS/390-*) 7704 CFLAGS_OPTIMIZE="" # Optimizer is buggy 7705 7706$as_echo "#define _OE_SOCKETS 1" >>confdefs.h 7707 7708 ;; 7709 OSF1-V*) 7710 # Digital OSF/1 7711 SHLIB_CFLAGS="" 7712 if test "$SHARED_BUILD" = 1; then : 7713 7714 SHLIB_LD='ld -shared -expect_unresolved "*"' 7715 7716else 7717 7718 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 7719 7720fi 7721 SHLIB_SUFFIX=".so" 7722 if test $doRpath = yes; then : 7723 7724 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7725 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 7726fi 7727 if test "$GCC" = yes; then : 7728 CFLAGS="$CFLAGS -mieee" 7729else 7730 7731 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 7732fi 7733 # see pthread_intro(3) for pthread support on osf1, k.furukawa 7734 if test "${TCL_THREADS}" = 1; then : 7735 7736 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 7737 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 7738 LIBS=`echo $LIBS | sed s/-lpthreads//` 7739 if test "$GCC" = yes; then : 7740 7741 LIBS="$LIBS -lpthread -lmach -lexc" 7742 7743else 7744 7745 CFLAGS="$CFLAGS -pthread" 7746 LDFLAGS="$LDFLAGS -pthread" 7747 7748fi 7749 7750fi 7751 ;; 7752 QNX-6*) 7753 # QNX RTP 7754 # This may work for all QNX, but it was only reported for v6. 7755 SHLIB_CFLAGS="-fPIC" 7756 SHLIB_LD="ld -Bshareable -x" 7757 SHLIB_LD_LIBS="" 7758 SHLIB_SUFFIX=".so" 7759 CC_SEARCH_FLAGS="" 7760 LD_SEARCH_FLAGS="" 7761 ;; 7762 SCO_SV-3.2*) 7763 if test "$GCC" = yes; then : 7764 7765 SHLIB_CFLAGS="-fPIC -melf" 7766 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 7767 7768else 7769 7770 SHLIB_CFLAGS="-Kpic -belf" 7771 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 7772 7773fi 7774 SHLIB_LD="ld -G" 7775 SHLIB_LD_LIBS="" 7776 SHLIB_SUFFIX=".so" 7777 CC_SEARCH_FLAGS="" 7778 LD_SEARCH_FLAGS="" 7779 ;; 7780 SunOS-5.[0-6]) 7781 # Careful to not let 5.10+ fall into this case 7782 7783 # Note: If _REENTRANT isn't defined, then Solaris 7784 # won't define thread-safe library routines. 7785 7786 7787$as_echo "#define _REENTRANT 1" >>confdefs.h 7788 7789 7790$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 7791 7792 7793 SHLIB_CFLAGS="-KPIC" 7794 SHLIB_SUFFIX=".so" 7795 if test "$GCC" = yes; then : 7796 7797 SHLIB_LD='${CC} -shared' 7798 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7799 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7800 7801else 7802 7803 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 7804 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 7805 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7806 7807fi 7808 ;; 7809 SunOS-5*) 7810 # Note: If _REENTRANT isn't defined, then Solaris 7811 # won't define thread-safe library routines. 7812 7813 7814$as_echo "#define _REENTRANT 1" >>confdefs.h 7815 7816 7817$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 7818 7819 7820 SHLIB_CFLAGS="-KPIC" 7821 7822 # Check to enable 64-bit flags for compiler/linker 7823 if test "$do64bit" = yes; then : 7824 7825 arch=`isainfo` 7826 if test "$arch" = "sparcv9 sparc"; then : 7827 7828 if test "$GCC" = yes; then : 7829 7830 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then : 7831 7832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 7833$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 7834 7835else 7836 7837 do64bit_ok=yes 7838 CFLAGS="$CFLAGS -m64 -mcpu=v9" 7839 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 7840 SHLIB_CFLAGS="-fPIC" 7841 7842fi 7843 7844else 7845 7846 do64bit_ok=yes 7847 if test "$do64bitVIS" = yes; then : 7848 7849 CFLAGS="$CFLAGS -xarch=v9a" 7850 LDFLAGS_ARCH="-xarch=v9a" 7851 7852else 7853 7854 CFLAGS="$CFLAGS -xarch=v9" 7855 LDFLAGS_ARCH="-xarch=v9" 7856 7857fi 7858 # Solaris 64 uses this as well 7859 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 7860 7861fi 7862 7863else 7864 if test "$arch" = "amd64 i386"; then : 7865 7866 if test "$GCC" = yes; then : 7867 7868 case $system in 7869 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 7870 do64bit_ok=yes 7871 CFLAGS="$CFLAGS -m64" 7872 LDFLAGS="$LDFLAGS -m64";; 7873 *) 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 7875$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 7876 esac 7877 7878else 7879 7880 do64bit_ok=yes 7881 case $system in 7882 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 7883 CFLAGS="$CFLAGS -m64" 7884 LDFLAGS="$LDFLAGS -m64";; 7885 *) 7886 CFLAGS="$CFLAGS -xarch=amd64" 7887 LDFLAGS="$LDFLAGS -xarch=amd64";; 7888 esac 7889 7890fi 7891 7892else 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 7894$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 7895fi 7896fi 7897 7898fi 7899 7900 SHLIB_SUFFIX=".so" 7901 if test "$GCC" = yes; then : 7902 7903 SHLIB_LD='${CC} -shared' 7904 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7905 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7906 if test "$do64bit_ok" = yes; then : 7907 7908 if test "$arch" = "sparcv9 sparc"; then : 7909 7910 # We need to specify -static-libgcc or we need to 7911 # add the path to the sparv9 libgcc. 7912 # JH: static-libgcc is necessary for core Tcl, but may 7913 # not be necessary for extensions. 7914 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 7915 # for finding sparcv9 libgcc, get the regular libgcc 7916 # path, remove so name and append 'sparcv9' 7917 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 7918 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 7919 7920else 7921 if test "$arch" = "amd64 i386"; then : 7922 7923 # JH: static-libgcc is necessary for core Tcl, but may 7924 # not be necessary for extensions. 7925 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 7926 7927fi 7928fi 7929 7930fi 7931 7932else 7933 7934 case $system in 7935 SunOS-5.[1-9][0-9]*) 7936 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 7937 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 7938 *) 7939 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 7940 esac 7941 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7942 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 7943 7944fi 7945 ;; 7946 UNIX_SV* | UnixWare-5*) 7947 SHLIB_CFLAGS="-KPIC" 7948 SHLIB_LD='${CC} -G' 7949 SHLIB_LD_LIBS="" 7950 SHLIB_SUFFIX=".so" 7951 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 7952 # that don't grok the -Bexport option. Test that it does. 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 7954$as_echo_n "checking for ld accepts -Bexport flag... " >&6; } 7955if ${tcl_cv_ld_Bexport+:} false; then : 7956 $as_echo_n "(cached) " >&6 7957else 7958 7959 hold_ldflags=$LDFLAGS 7960 LDFLAGS="$LDFLAGS -Wl,-Bexport" 7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7962/* end confdefs.h. */ 7963 7964int 7965main () 7966{ 7967int i; 7968 ; 7969 return 0; 7970} 7971_ACEOF 7972if ac_fn_c_try_link "$LINENO"; then : 7973 tcl_cv_ld_Bexport=yes 7974else 7975 tcl_cv_ld_Bexport=no 7976fi 7977rm -f core conftest.err conftest.$ac_objext \ 7978 conftest$ac_exeext conftest.$ac_ext 7979 LDFLAGS=$hold_ldflags 7980fi 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 7982$as_echo "$tcl_cv_ld_Bexport" >&6; } 7983 if test $tcl_cv_ld_Bexport = yes; then : 7984 7985 LDFLAGS="$LDFLAGS -Wl,-Bexport" 7986 7987fi 7988 CC_SEARCH_FLAGS="" 7989 LD_SEARCH_FLAGS="" 7990 ;; 7991 esac 7992 7993 if test "$do64bit" = yes -a "$do64bit_ok" = no; then : 7994 7995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 7996$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 7997 7998fi 7999 8000 8001 8002 # Add in the arch flags late to ensure it wasn't removed. 8003 # Not necessary in TEA, but this is aligned with core 8004 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 8005 8006 # If we're running gcc, then change the C flags for compiling shared 8007 # libraries to the right flags for gcc, instead of those for the 8008 # standard manufacturer compiler. 8009 8010 if test "$GCC" = yes; then : 8011 8012 case $system in 8013 AIX-*) ;; 8014 BSD/OS*) ;; 8015 CYGWIN_*|MINGW32_*) ;; 8016 IRIX*) ;; 8017 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 8018 Darwin-*) ;; 8019 SCO_SV-3.2*) ;; 8020 windows) ;; 8021 *) SHLIB_CFLAGS="-fPIC" ;; 8022 esac 8023fi 8024 8025 if test "$tcl_cv_cc_visibility_hidden" != yes; then : 8026 8027 8028$as_echo "#define MODULE_SCOPE extern" >>confdefs.h 8029 8030 8031fi 8032 8033 if test "$SHARED_LIB_SUFFIX" = ""; then : 8034 8035 # TEA specific: use PACKAGE_VERSION instead of VERSION 8036 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 8037fi 8038 if test "$UNSHARED_LIB_SUFFIX" = ""; then : 8039 8040 # TEA specific: use PACKAGE_VERSION instead of VERSION 8041 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 8042fi 8043 8044 if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then 8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5 8046$as_echo_n "checking for SEH support in compiler... " >&6; } 8047if ${tcl_cv_seh+:} false; then : 8048 $as_echo_n "(cached) " >&6 8049else 8050 if test "$cross_compiling" = yes; then : 8051 tcl_cv_seh=no 8052else 8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8054/* end confdefs.h. */ 8055 8056#define WIN32_LEAN_AND_MEAN 8057#include <windows.h> 8058#undef WIN32_LEAN_AND_MEAN 8059 8060 int main(int argc, char** argv) { 8061 int a, b = 0; 8062 __try { 8063 a = 666 / b; 8064 } 8065 __except (EXCEPTION_EXECUTE_HANDLER) { 8066 return 0; 8067 } 8068 return 1; 8069 } 8070 8071_ACEOF 8072if ac_fn_c_try_run "$LINENO"; then : 8073 tcl_cv_seh=yes 8074else 8075 tcl_cv_seh=no 8076fi 8077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8078 conftest.$ac_objext conftest.beam conftest.$ac_ext 8079fi 8080 8081 8082fi 8083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5 8084$as_echo "$tcl_cv_seh" >&6; } 8085 if test "$tcl_cv_seh" = "no" ; then 8086 8087$as_echo "#define HAVE_NO_SEH 1" >>confdefs.h 8088 8089 fi 8090 8091 # 8092 # Check to see if the excpt.h include file provided contains the 8093 # definition for EXCEPTION_DISPOSITION; if not, which is the case 8094 # with Cygwin's version as of 2002-04-10, define it to be int, 8095 # sufficient for getting the current code to work. 8096 # 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5 8098$as_echo_n "checking for EXCEPTION_DISPOSITION support in include files... " >&6; } 8099if ${tcl_cv_eh_disposition+:} false; then : 8100 $as_echo_n "(cached) " >&6 8101else 8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8103/* end confdefs.h. */ 8104 8105# define WIN32_LEAN_AND_MEAN 8106# include <windows.h> 8107# undef WIN32_LEAN_AND_MEAN 8108 8109int 8110main () 8111{ 8112 8113 EXCEPTION_DISPOSITION x; 8114 8115 ; 8116 return 0; 8117} 8118_ACEOF 8119if ac_fn_c_try_compile "$LINENO"; then : 8120 tcl_cv_eh_disposition=yes 8121else 8122 tcl_cv_eh_disposition=no 8123fi 8124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8125 8126fi 8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5 8128$as_echo "$tcl_cv_eh_disposition" >&6; } 8129 if test "$tcl_cv_eh_disposition" = "no" ; then 8130 8131$as_echo "#define EXCEPTION_DISPOSITION int" >>confdefs.h 8132 8133 fi 8134 8135 # Check to see if winnt.h defines CHAR, SHORT, and LONG 8136 # even if VOID has already been #defined. The win32api 8137 # used by mingw and cygwin is known to do this. 8138 8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5 8140$as_echo_n "checking for winnt.h that ignores VOID define... " >&6; } 8141if ${tcl_cv_winnt_ignore_void+:} false; then : 8142 $as_echo_n "(cached) " >&6 8143else 8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8145/* end confdefs.h. */ 8146 8147#define VOID void 8148#define WIN32_LEAN_AND_MEAN 8149#include <windows.h> 8150#undef WIN32_LEAN_AND_MEAN 8151 8152int 8153main () 8154{ 8155 8156 CHAR c; 8157 SHORT s; 8158 LONG l; 8159 8160 ; 8161 return 0; 8162} 8163_ACEOF 8164if ac_fn_c_try_compile "$LINENO"; then : 8165 tcl_cv_winnt_ignore_void=yes 8166else 8167 tcl_cv_winnt_ignore_void=no 8168fi 8169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8170 8171fi 8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5 8173$as_echo "$tcl_cv_winnt_ignore_void" >&6; } 8174 if test "$tcl_cv_winnt_ignore_void" = "yes" ; then 8175 8176$as_echo "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h 8177 8178 fi 8179 fi 8180 8181 # See if the compiler supports casting to a union type. 8182 # This is used to stop gcc from printing a compiler 8183 # warning when initializing a union member. 8184 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5 8186$as_echo_n "checking for cast to union support... " >&6; } 8187if ${tcl_cv_cast_to_union+:} false; then : 8188 $as_echo_n "(cached) " >&6 8189else 8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8191/* end confdefs.h. */ 8192 8193int 8194main () 8195{ 8196 8197 union foo { int i; double d; }; 8198 union foo f = (union foo) (int) 0; 8199 8200 ; 8201 return 0; 8202} 8203_ACEOF 8204if ac_fn_c_try_compile "$LINENO"; then : 8205 tcl_cv_cast_to_union=yes 8206else 8207 tcl_cv_cast_to_union=no 8208fi 8209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8210 8211fi 8212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5 8213$as_echo "$tcl_cv_cast_to_union" >&6; } 8214 if test "$tcl_cv_cast_to_union" = "yes"; then 8215 8216$as_echo "#define HAVE_CAST_TO_UNION 1" >>confdefs.h 8217 8218 fi 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 # These must be called after we do the basic CFLAGS checks and 8233 # verify any possible 64-bit or similar switches are necessary 8234 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5 8236$as_echo_n "checking for required early compiler flags... " >&6; } 8237 tcl_flags="" 8238 8239 if ${tcl_cv_flag__isoc99_source+:} false; then : 8240 $as_echo_n "(cached) " >&6 8241else 8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8243/* end confdefs.h. */ 8244#include <stdlib.h> 8245int 8246main () 8247{ 8248char *p = (char *)strtoll; char *q = (char *)strtoull; 8249 ; 8250 return 0; 8251} 8252_ACEOF 8253if ac_fn_c_try_compile "$LINENO"; then : 8254 tcl_cv_flag__isoc99_source=no 8255else 8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8257/* end confdefs.h. */ 8258#define _ISOC99_SOURCE 1 8259#include <stdlib.h> 8260int 8261main () 8262{ 8263char *p = (char *)strtoll; char *q = (char *)strtoull; 8264 ; 8265 return 0; 8266} 8267_ACEOF 8268if ac_fn_c_try_compile "$LINENO"; then : 8269 tcl_cv_flag__isoc99_source=yes 8270else 8271 tcl_cv_flag__isoc99_source=no 8272fi 8273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8274fi 8275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8276fi 8277 8278 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 8279 8280$as_echo "#define _ISOC99_SOURCE 1" >>confdefs.h 8281 8282 tcl_flags="$tcl_flags _ISOC99_SOURCE" 8283 fi 8284 8285 8286 if ${tcl_cv_flag__largefile64_source+:} false; then : 8287 $as_echo_n "(cached) " >&6 8288else 8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8290/* end confdefs.h. */ 8291#include <sys/stat.h> 8292int 8293main () 8294{ 8295struct stat64 buf; int i = stat64("/", &buf); 8296 ; 8297 return 0; 8298} 8299_ACEOF 8300if ac_fn_c_try_compile "$LINENO"; then : 8301 tcl_cv_flag__largefile64_source=no 8302else 8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8304/* end confdefs.h. */ 8305#define _LARGEFILE64_SOURCE 1 8306#include <sys/stat.h> 8307int 8308main () 8309{ 8310struct stat64 buf; int i = stat64("/", &buf); 8311 ; 8312 return 0; 8313} 8314_ACEOF 8315if ac_fn_c_try_compile "$LINENO"; then : 8316 tcl_cv_flag__largefile64_source=yes 8317else 8318 tcl_cv_flag__largefile64_source=no 8319fi 8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8321fi 8322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8323fi 8324 8325 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 8326 8327$as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h 8328 8329 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 8330 fi 8331 8332 8333 if ${tcl_cv_flag__largefile_source64+:} false; then : 8334 $as_echo_n "(cached) " >&6 8335else 8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8337/* end confdefs.h. */ 8338#include <sys/stat.h> 8339int 8340main () 8341{ 8342char *p = (char *)open64; 8343 ; 8344 return 0; 8345} 8346_ACEOF 8347if ac_fn_c_try_compile "$LINENO"; then : 8348 tcl_cv_flag__largefile_source64=no 8349else 8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8351/* end confdefs.h. */ 8352#define _LARGEFILE_SOURCE64 1 8353#include <sys/stat.h> 8354int 8355main () 8356{ 8357char *p = (char *)open64; 8358 ; 8359 return 0; 8360} 8361_ACEOF 8362if ac_fn_c_try_compile "$LINENO"; then : 8363 tcl_cv_flag__largefile_source64=yes 8364else 8365 tcl_cv_flag__largefile_source64=no 8366fi 8367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8368fi 8369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8370fi 8371 8372 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 8373 8374$as_echo "#define _LARGEFILE_SOURCE64 1" >>confdefs.h 8375 8376 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 8377 fi 8378 8379 if test "x${tcl_flags}" = "x" ; then 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8381$as_echo "none" >&6; } 8382 else 8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5 8384$as_echo "${tcl_flags}" >&6; } 8385 fi 8386 8387 8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5 8389$as_echo_n "checking for 64-bit integer type... " >&6; } 8390 if ${tcl_cv_type_64bit+:} false; then : 8391 $as_echo_n "(cached) " >&6 8392else 8393 8394 tcl_cv_type_64bit=none 8395 # See if the compiler knows natively about __int64 8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8397/* end confdefs.h. */ 8398 8399int 8400main () 8401{ 8402__int64 value = (__int64) 0; 8403 ; 8404 return 0; 8405} 8406_ACEOF 8407if ac_fn_c_try_compile "$LINENO"; then : 8408 tcl_type_64bit=__int64 8409else 8410 tcl_type_64bit="long long" 8411fi 8412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8413 # See if we should use long anyway Note that we substitute in the 8414 # type that is our current guess for a 64-bit type inside this check 8415 # program, so it should be modified only carefully... 8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8417/* end confdefs.h. */ 8418 8419int 8420main () 8421{ 8422switch (0) { 8423 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 8424 } 8425 ; 8426 return 0; 8427} 8428_ACEOF 8429if ac_fn_c_try_compile "$LINENO"; then : 8430 tcl_cv_type_64bit=${tcl_type_64bit} 8431fi 8432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8433fi 8434 8435 if test "${tcl_cv_type_64bit}" = none ; then 8436 8437$as_echo "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h 8438 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using long" >&5 8440$as_echo "using long" >&6; } 8441 elif test "${tcl_cv_type_64bit}" = "__int64" \ 8442 -a "${TEA_PLATFORM}" = "windows" ; then 8443 # TEA specific: We actually want to use the default tcl.h checks in 8444 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5 8446$as_echo "using Tcl header defaults" >&6; } 8447 else 8448 8449cat >>confdefs.h <<_ACEOF 8450#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 8451_ACEOF 8452 8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5 8454$as_echo "${tcl_cv_type_64bit}" >&6; } 8455 8456 # Now check for auxiliary declarations 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5 8458$as_echo_n "checking for struct dirent64... " >&6; } 8459if ${tcl_cv_struct_dirent64+:} false; then : 8460 $as_echo_n "(cached) " >&6 8461else 8462 8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8464/* end confdefs.h. */ 8465#include <sys/types.h> 8466#include <dirent.h> 8467int 8468main () 8469{ 8470struct dirent64 p; 8471 ; 8472 return 0; 8473} 8474_ACEOF 8475if ac_fn_c_try_compile "$LINENO"; then : 8476 tcl_cv_struct_dirent64=yes 8477else 8478 tcl_cv_struct_dirent64=no 8479fi 8480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8481fi 8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5 8483$as_echo "$tcl_cv_struct_dirent64" >&6; } 8484 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 8485 8486$as_echo "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h 8487 8488 fi 8489 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5 8491$as_echo_n "checking for struct stat64... " >&6; } 8492if ${tcl_cv_struct_stat64+:} false; then : 8493 $as_echo_n "(cached) " >&6 8494else 8495 8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8497/* end confdefs.h. */ 8498#include <sys/stat.h> 8499int 8500main () 8501{ 8502struct stat64 p; 8503 8504 ; 8505 return 0; 8506} 8507_ACEOF 8508if ac_fn_c_try_compile "$LINENO"; then : 8509 tcl_cv_struct_stat64=yes 8510else 8511 tcl_cv_struct_stat64=no 8512fi 8513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8514fi 8515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5 8516$as_echo "$tcl_cv_struct_stat64" >&6; } 8517 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 8518 8519$as_echo "#define HAVE_STRUCT_STAT64 1" >>confdefs.h 8520 8521 fi 8522 8523 for ac_func in open64 lseek64 8524do : 8525 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8526ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8527if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8528 cat >>confdefs.h <<_ACEOF 8529#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8530_ACEOF 8531 8532fi 8533done 8534 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5 8536$as_echo_n "checking for off64_t... " >&6; } 8537 if ${tcl_cv_type_off64_t+:} false; then : 8538 $as_echo_n "(cached) " >&6 8539else 8540 8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8542/* end confdefs.h. */ 8543#include <sys/types.h> 8544int 8545main () 8546{ 8547off64_t offset; 8548 8549 ; 8550 return 0; 8551} 8552_ACEOF 8553if ac_fn_c_try_compile "$LINENO"; then : 8554 tcl_cv_type_off64_t=yes 8555else 8556 tcl_cv_type_off64_t=no 8557fi 8558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8559fi 8560 8561 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 8562 test "x${ac_cv_func_lseek64}" = "xyes" && \ 8563 test "x${ac_cv_func_open64}" = "xyes" ; then 8564 8565$as_echo "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h 8566 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8568$as_echo "yes" >&6; } 8569 else 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8571$as_echo "no" >&6; } 8572 fi 8573 fi 8574 8575 8576 8577#-------------------------------------------------------------------- 8578# Set the default compiler switches based on the --enable-symbols option. 8579#-------------------------------------------------------------------- 8580 8581 8582 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5 8584$as_echo_n "checking for build with symbols... " >&6; } 8585 # Check whether --enable-symbols was given. 8586if test "${enable_symbols+set}" = set; then : 8587 enableval=$enable_symbols; tcl_ok=$enableval 8588else 8589 tcl_ok=no 8590fi 8591 8592 DBGX="" 8593 if test "$tcl_ok" = "no"; then 8594 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG" 8595 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8597$as_echo "no" >&6; } 8598 else 8599 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 8600 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 8601 if test "$tcl_ok" = "yes"; then 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5 8603$as_echo "yes (standard debugging)" >&6; } 8604 fi 8605 fi 8606 # TEA specific: 8607 if test "${TEA_PLATFORM}" != "windows" ; then 8608 LDFLAGS_DEFAULT="${LDFLAGS}" 8609 fi 8610 8611 8612 8613 8614 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 8615 8616$as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h 8617 8618 fi 8619 8620 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 8621 if test "$tcl_ok" = "all"; then 8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5 8623$as_echo "enabled symbols mem debugging" >&6; } 8624 else 8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5 8626$as_echo "enabled $tcl_ok debugging" >&6; } 8627 fi 8628 fi 8629 8630 8631#-------------------------------------------------------------------- 8632# Everyone should be linking against the Tcl stub library. If you 8633# can't for some reason, remove this definition. If you aren't using 8634# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 8635# link against the non-stubbed Tcl library. Add Tk too if necessary. 8636#-------------------------------------------------------------------- 8637 8638 8639$as_echo "#define USE_TCL_STUBS 1" >>confdefs.h 8640 8641#AC_DEFINE(USE_TK_STUBS, 1, [Use Tk stubs]) 8642 8643#-------------------------------------------------------------------- 8644# This macro generates a line to use when building a library. It 8645# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 8646# and TEA_LOAD_TCLCONFIG macros above. 8647#-------------------------------------------------------------------- 8648 8649 8650 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 8651 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 8652 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8654/* end confdefs.h. */ 8655 8656#if defined(_MSC_VER) && _MSC_VER >= 1400 8657print("manifest needed") 8658#endif 8659 8660_ACEOF 8661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8662 $EGREP "manifest needed" >/dev/null 2>&1; then : 8663 8664 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 8665 VC_MANIFEST_EMBED_DLL="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2 ; fi" 8666 VC_MANIFEST_EMBED_EXE="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1 ; fi" 8667 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 8668 8669 CLEANFILES="$CLEANFILES *.manifest" 8670 8671 8672fi 8673rm -f conftest* 8674 8675 MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)" 8676 else 8677 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 8678 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 8679 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 8680 fi 8681 8682 if test "${SHARED_BUILD}" = "1" ; then 8683 MAKE_LIB="${MAKE_SHARED_LIB} " 8684 else 8685 MAKE_LIB="${MAKE_STATIC_LIB} " 8686 fi 8687 8688 #-------------------------------------------------------------------- 8689 # Shared libraries and static libraries have different names. 8690 # Use the double eval to make sure any variables in the suffix is 8691 # substituted. (@@@ Might not be necessary anymore) 8692 #-------------------------------------------------------------------- 8693 8694 if test "${TEA_PLATFORM}" = "windows" ; then 8695 if test "${SHARED_BUILD}" = "1" ; then 8696 # We force the unresolved linking of symbols that are really in 8697 # the private libraries of Tcl and Tk. 8698 if test x"${TK_BIN_DIR}" != x ; then 8699 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 8700 fi 8701 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 8702 if test "$GCC" = "yes"; then 8703 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc" 8704 fi 8705 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 8706 else 8707 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 8708 if test "$GCC" = "yes"; then 8709 PKG_LIB_FILE=lib${PKG_LIB_FILE} 8710 fi 8711 fi 8712 # Some packages build their own stubs libraries 8713 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 8714 if test "$GCC" = "yes"; then 8715 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 8716 fi 8717 # These aren't needed on Windows (either MSVC or gcc) 8718 RANLIB=: 8719 RANLIB_STUB=: 8720 else 8721 RANLIB_STUB="${RANLIB}" 8722 if test "${SHARED_BUILD}" = "1" ; then 8723 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 8724 if test x"${TK_BIN_DIR}" != x ; then 8725 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 8726 fi 8727 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 8728 RANLIB=: 8729 else 8730 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 8731 fi 8732 # Some packages build their own stubs libraries 8733 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 8734 fi 8735 8736 # These are escaped so that only CFLAGS is picked up at configure time. 8737 # The other values will be substituted at make time. 8738 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 8739 if test "${SHARED_BUILD}" = "1" ; then 8740 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 8741 fi 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752#-------------------------------------------------------------------- 8753# Determine the name of the tclsh and/or wish executables in the 8754# Tcl and Tk build directories or the location they were installed 8755# into. These paths are used to support running test cases only, 8756# the Makefile should not be making use of these paths to generate 8757# a pkgIndex.tcl file or anything else at extension build time. 8758#-------------------------------------------------------------------- 8759 8760 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5 8762$as_echo_n "checking for tclsh... " >&6; } 8763 if test -f "${TCL_BIN_DIR}/Makefile" ; then 8764 # tclConfig.sh is in Tcl build directory 8765 if test "${TEA_PLATFORM}" = "windows"; then 8766 if test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" ; then 8767 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 8768 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}s${EXEEXT}" ; then 8769 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}s${EXEEXT}" 8770 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}t${EXEEXT}" ; then 8771 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}t${EXEEXT}" 8772 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}st${EXEEXT}" ; then 8773 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}st${EXEEXT}" 8774 fi 8775 else 8776 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 8777 fi 8778 else 8779 # tclConfig.sh is in install location 8780 if test "${TEA_PLATFORM}" = "windows"; then 8781 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 8782 else 8783 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 8784 fi 8785 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 8786 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 8787 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 8788 for i in $list ; do 8789 if test -f "$i/${TCLSH_PROG}" ; then 8790 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 8791 break 8792 fi 8793 done 8794 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 8795 fi 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5 8797$as_echo "${TCLSH_PROG}" >&6; } 8798 8799 8800#TEA_PROG_WISH 8801 8802#-------------------------------------------------------------------- 8803# Finally, substitute all of the various values into the Makefile. 8804# You may alternatively have a special pkgIndex.tcl.in or other files 8805# which require substituting th AC variables in. Include these here. 8806#-------------------------------------------------------------------- 8807 8808ac_config_files="$ac_config_files Makefile pkgIndex.tcl" 8809 8810cat >confcache <<\_ACEOF 8811# This file is a shell script that caches the results of configure 8812# tests run on this system so they can be shared between configure 8813# scripts and configure runs, see configure's option --config-cache. 8814# It is not useful on other systems. If it contains results you don't 8815# want to keep, you may remove or edit it. 8816# 8817# config.status only pays attention to the cache file if you give it 8818# the --recheck option to rerun configure. 8819# 8820# `ac_cv_env_foo' variables (set or unset) will be overridden when 8821# loading this file, other *unset* `ac_cv_foo' will be assigned the 8822# following values. 8823 8824_ACEOF 8825 8826# The following way of writing the cache mishandles newlines in values, 8827# but we know of no workaround that is simple, portable, and efficient. 8828# So, we kill variables containing newlines. 8829# Ultrix sh set writes to stderr and can't be redirected directly, 8830# and sets the high bit in the cache file unless we assign to the vars. 8831( 8832 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8833 eval ac_val=\$$ac_var 8834 case $ac_val in #( 8835 *${as_nl}*) 8836 case $ac_var in #( 8837 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8838$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8839 esac 8840 case $ac_var in #( 8841 _ | IFS | as_nl) ;; #( 8842 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8843 *) { eval $ac_var=; unset $ac_var;} ;; 8844 esac ;; 8845 esac 8846 done 8847 8848 (set) 2>&1 | 8849 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8850 *${as_nl}ac_space=\ *) 8851 # `set' does not quote correctly, so add quotes: double-quote 8852 # substitution turns \\\\ into \\, and sed turns \\ into \. 8853 sed -n \ 8854 "s/'/'\\\\''/g; 8855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8856 ;; #( 8857 *) 8858 # `set' quotes correctly as required by POSIX, so do not add quotes. 8859 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8860 ;; 8861 esac | 8862 sort 8863) | 8864 sed ' 8865 /^ac_cv_env_/b end 8866 t clear 8867 :clear 8868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8869 t end 8870 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8871 :end' >>confcache 8872if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8873 if test -w "$cache_file"; then 8874 if test "x$cache_file" != "x/dev/null"; then 8875 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8876$as_echo "$as_me: updating cache $cache_file" >&6;} 8877 if test ! -f "$cache_file" || test -h "$cache_file"; then 8878 cat confcache >"$cache_file" 8879 else 8880 case $cache_file in #( 8881 */* | ?:*) 8882 mv -f confcache "$cache_file"$$ && 8883 mv -f "$cache_file"$$ "$cache_file" ;; #( 8884 *) 8885 mv -f confcache "$cache_file" ;; 8886 esac 8887 fi 8888 fi 8889 else 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8891$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8892 fi 8893fi 8894rm -f confcache 8895 8896test "x$prefix" = xNONE && prefix=$ac_default_prefix 8897# Let make expand exec_prefix. 8898test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8899 8900# Transform confdefs.h into DEFS. 8901# Protect against shell expansion while executing Makefile rules. 8902# Protect against Makefile macro expansion. 8903# 8904# If the first sed substitution is executed (which looks for macros that 8905# take arguments), then branch to the quote section. Otherwise, 8906# look for a macro that doesn't take arguments. 8907ac_script=' 8908:mline 8909/\\$/{ 8910 N 8911 s,\\\n,, 8912 b mline 8913} 8914t clear 8915:clear 8916s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 8917t quote 8918s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 8919t quote 8920b any 8921:quote 8922s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 8923s/\[/\\&/g 8924s/\]/\\&/g 8925s/\$/$$/g 8926H 8927:any 8928${ 8929 g 8930 s/^\n// 8931 s/\n/ /g 8932 p 8933} 8934' 8935DEFS=`sed -n "$ac_script" confdefs.h` 8936 8937 8938ac_libobjs= 8939ac_ltlibobjs= 8940U= 8941for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8942 # 1. Remove the extension, and $U if already installed. 8943 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8944 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8945 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8946 # will be set to the directory where LIBOBJS objects are built. 8947 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8948 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 8949done 8950LIBOBJS=$ac_libobjs 8951 8952LTLIBOBJS=$ac_ltlibobjs 8953 8954 8955 8956CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 8957 8958: "${CONFIG_STATUS=./config.status}" 8959ac_write_fail=0 8960ac_clean_files_save=$ac_clean_files 8961ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8962{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8963$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8964as_write_fail=0 8965cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8966#! $SHELL 8967# Generated by $as_me. 8968# Run this file to recreate the current configuration. 8969# Compiler output produced by configure, useful for debugging 8970# configure, is in config.log if it exists. 8971 8972debug=false 8973ac_cs_recheck=false 8974ac_cs_silent=false 8975 8976SHELL=\${CONFIG_SHELL-$SHELL} 8977export SHELL 8978_ASEOF 8979cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 8980## -------------------- ## 8981## M4sh Initialization. ## 8982## -------------------- ## 8983 8984# Be more Bourne compatible 8985DUALCASE=1; export DUALCASE # for MKS sh 8986if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8987 emulate sh 8988 NULLCMD=: 8989 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8990 # is contrary to our usage. Disable this feature. 8991 alias -g '${1+"$@"}'='"$@"' 8992 setopt NO_GLOB_SUBST 8993else 8994 case `(set -o) 2>/dev/null` in #( 8995 *posix*) : 8996 set -o posix ;; #( 8997 *) : 8998 ;; 8999esac 9000fi 9001 9002 9003as_nl=' 9004' 9005export as_nl 9006# Printing a long string crashes Solaris 7 /usr/bin/printf. 9007as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 9008as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 9009as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 9010# Prefer a ksh shell builtin over an external printf program on Solaris, 9011# but without wasting forks for bash or zsh. 9012if test -z "$BASH_VERSION$ZSH_VERSION" \ 9013 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 9014 as_echo='print -r --' 9015 as_echo_n='print -rn --' 9016elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 9017 as_echo='printf %s\n' 9018 as_echo_n='printf %s' 9019else 9020 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 9021 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 9022 as_echo_n='/usr/ucb/echo -n' 9023 else 9024 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 9025 as_echo_n_body='eval 9026 arg=$1; 9027 case $arg in #( 9028 *"$as_nl"*) 9029 expr "X$arg" : "X\\(.*\\)$as_nl"; 9030 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 9031 esac; 9032 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 9033 ' 9034 export as_echo_n_body 9035 as_echo_n='sh -c $as_echo_n_body as_echo' 9036 fi 9037 export as_echo_body 9038 as_echo='sh -c $as_echo_body as_echo' 9039fi 9040 9041# The user is always right. 9042if test "${PATH_SEPARATOR+set}" != set; then 9043 PATH_SEPARATOR=: 9044 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9045 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9046 PATH_SEPARATOR=';' 9047 } 9048fi 9049 9050 9051# IFS 9052# We need space, tab and new line, in precisely that order. Quoting is 9053# there to prevent editors from complaining about space-tab. 9054# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9055# splitting by setting IFS to empty value.) 9056IFS=" "" $as_nl" 9057 9058# Find who we are. Look in the path if we contain no directory separator. 9059as_myself= 9060case $0 in #(( 9061 *[\\/]* ) as_myself=$0 ;; 9062 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9063for as_dir in $PATH 9064do 9065 IFS=$as_save_IFS 9066 test -z "$as_dir" && as_dir=. 9067 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9068 done 9069IFS=$as_save_IFS 9070 9071 ;; 9072esac 9073# We did not find ourselves, most probably we were run as `sh COMMAND' 9074# in which case we are not to be found in the path. 9075if test "x$as_myself" = x; then 9076 as_myself=$0 9077fi 9078if test ! -f "$as_myself"; then 9079 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 9080 exit 1 9081fi 9082 9083# Unset variables that we do not need and which cause bugs (e.g. in 9084# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 9085# suppresses any "Segmentation fault" message there. '((' could 9086# trigger a bug in pdksh 5.2.14. 9087for as_var in BASH_ENV ENV MAIL MAILPATH 9088do eval test x\${$as_var+set} = xset \ 9089 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 9090done 9091PS1='$ ' 9092PS2='> ' 9093PS4='+ ' 9094 9095# NLS nuisances. 9096LC_ALL=C 9097export LC_ALL 9098LANGUAGE=C 9099export LANGUAGE 9100 9101# CDPATH. 9102(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9103 9104 9105# as_fn_error STATUS ERROR [LINENO LOG_FD] 9106# ---------------------------------------- 9107# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 9108# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 9109# script with STATUS, using 1 if that was 0. 9110as_fn_error () 9111{ 9112 as_status=$1; test $as_status -eq 0 && as_status=1 9113 if test "$4"; then 9114 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 9115 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 9116 fi 9117 $as_echo "$as_me: error: $2" >&2 9118 as_fn_exit $as_status 9119} # as_fn_error 9120 9121 9122# as_fn_set_status STATUS 9123# ----------------------- 9124# Set $? to STATUS, without forking. 9125as_fn_set_status () 9126{ 9127 return $1 9128} # as_fn_set_status 9129 9130# as_fn_exit STATUS 9131# ----------------- 9132# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 9133as_fn_exit () 9134{ 9135 set +e 9136 as_fn_set_status $1 9137 exit $1 9138} # as_fn_exit 9139 9140# as_fn_unset VAR 9141# --------------- 9142# Portably unset VAR. 9143as_fn_unset () 9144{ 9145 { eval $1=; unset $1;} 9146} 9147as_unset=as_fn_unset 9148# as_fn_append VAR VALUE 9149# ---------------------- 9150# Append the text in VALUE to the end of the definition contained in VAR. Take 9151# advantage of any shell optimizations that allow amortized linear growth over 9152# repeated appends, instead of the typical quadratic growth present in naive 9153# implementations. 9154if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 9155 eval 'as_fn_append () 9156 { 9157 eval $1+=\$2 9158 }' 9159else 9160 as_fn_append () 9161 { 9162 eval $1=\$$1\$2 9163 } 9164fi # as_fn_append 9165 9166# as_fn_arith ARG... 9167# ------------------ 9168# Perform arithmetic evaluation on the ARGs, and store the result in the 9169# global $as_val. Take advantage of shells that can avoid forks. The arguments 9170# must be portable across $(()) and expr. 9171if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 9172 eval 'as_fn_arith () 9173 { 9174 as_val=$(( $* )) 9175 }' 9176else 9177 as_fn_arith () 9178 { 9179 as_val=`expr "$@" || test $? -eq 1` 9180 } 9181fi # as_fn_arith 9182 9183 9184if expr a : '\(a\)' >/dev/null 2>&1 && 9185 test "X`expr 00001 : '.*\(...\)'`" = X001; then 9186 as_expr=expr 9187else 9188 as_expr=false 9189fi 9190 9191if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 9192 as_basename=basename 9193else 9194 as_basename=false 9195fi 9196 9197if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 9198 as_dirname=dirname 9199else 9200 as_dirname=false 9201fi 9202 9203as_me=`$as_basename -- "$0" || 9204$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9205 X"$0" : 'X\(//\)$' \| \ 9206 X"$0" : 'X\(/\)' \| . 2>/dev/null || 9207$as_echo X/"$0" | 9208 sed '/^.*\/\([^/][^/]*\)\/*$/{ 9209 s//\1/ 9210 q 9211 } 9212 /^X\/\(\/\/\)$/{ 9213 s//\1/ 9214 q 9215 } 9216 /^X\/\(\/\).*/{ 9217 s//\1/ 9218 q 9219 } 9220 s/.*/./; q'` 9221 9222# Avoid depending upon Character Ranges. 9223as_cr_letters='abcdefghijklmnopqrstuvwxyz' 9224as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9225as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9226as_cr_digits='0123456789' 9227as_cr_alnum=$as_cr_Letters$as_cr_digits 9228 9229ECHO_C= ECHO_N= ECHO_T= 9230case `echo -n x` in #((((( 9231-n*) 9232 case `echo 'xy\c'` in 9233 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 9234 xy) ECHO_C='\c';; 9235 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 9236 ECHO_T=' ';; 9237 esac;; 9238*) 9239 ECHO_N='-n';; 9240esac 9241 9242rm -f conf$$ conf$$.exe conf$$.file 9243if test -d conf$$.dir; then 9244 rm -f conf$$.dir/conf$$.file 9245else 9246 rm -f conf$$.dir 9247 mkdir conf$$.dir 2>/dev/null 9248fi 9249if (echo >conf$$.file) 2>/dev/null; then 9250 if ln -s conf$$.file conf$$ 2>/dev/null; then 9251 as_ln_s='ln -s' 9252 # ... but there are two gotchas: 9253 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 9254 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 9255 # In both cases, we have to default to `cp -pR'. 9256 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 9257 as_ln_s='cp -pR' 9258 elif ln conf$$.file conf$$ 2>/dev/null; then 9259 as_ln_s=ln 9260 else 9261 as_ln_s='cp -pR' 9262 fi 9263else 9264 as_ln_s='cp -pR' 9265fi 9266rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 9267rmdir conf$$.dir 2>/dev/null 9268 9269 9270# as_fn_mkdir_p 9271# ------------- 9272# Create "$as_dir" as a directory, including parents if necessary. 9273as_fn_mkdir_p () 9274{ 9275 9276 case $as_dir in #( 9277 -*) as_dir=./$as_dir;; 9278 esac 9279 test -d "$as_dir" || eval $as_mkdir_p || { 9280 as_dirs= 9281 while :; do 9282 case $as_dir in #( 9283 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 9284 *) as_qdir=$as_dir;; 9285 esac 9286 as_dirs="'$as_qdir' $as_dirs" 9287 as_dir=`$as_dirname -- "$as_dir" || 9288$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9289 X"$as_dir" : 'X\(//\)[^/]' \| \ 9290 X"$as_dir" : 'X\(//\)$' \| \ 9291 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9292$as_echo X"$as_dir" | 9293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9294 s//\1/ 9295 q 9296 } 9297 /^X\(\/\/\)[^/].*/{ 9298 s//\1/ 9299 q 9300 } 9301 /^X\(\/\/\)$/{ 9302 s//\1/ 9303 q 9304 } 9305 /^X\(\/\).*/{ 9306 s//\1/ 9307 q 9308 } 9309 s/.*/./; q'` 9310 test -d "$as_dir" && break 9311 done 9312 test -z "$as_dirs" || eval "mkdir $as_dirs" 9313 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 9314 9315 9316} # as_fn_mkdir_p 9317if mkdir -p . 2>/dev/null; then 9318 as_mkdir_p='mkdir -p "$as_dir"' 9319else 9320 test -d ./-p && rmdir ./-p 9321 as_mkdir_p=false 9322fi 9323 9324 9325# as_fn_executable_p FILE 9326# ----------------------- 9327# Test if FILE is an executable regular file. 9328as_fn_executable_p () 9329{ 9330 test -f "$1" && test -x "$1" 9331} # as_fn_executable_p 9332as_test_x='test -x' 9333as_executable_p=as_fn_executable_p 9334 9335# Sed expression to map a string onto a valid CPP name. 9336as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 9337 9338# Sed expression to map a string onto a valid variable name. 9339as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 9340 9341 9342exec 6>&1 9343## ----------------------------------- ## 9344## Main body of $CONFIG_STATUS script. ## 9345## ----------------------------------- ## 9346_ASEOF 9347test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 9348 9349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9350# Save the log message, to keep $0 and so on meaningful, and to 9351# report actual input values of CONFIG_FILES etc. instead of their 9352# values after options handling. 9353ac_log=" 9354This file was extended by tnc $as_me 0.3.0, which was 9355generated by GNU Autoconf 2.69. Invocation command line was 9356 9357 CONFIG_FILES = $CONFIG_FILES 9358 CONFIG_HEADERS = $CONFIG_HEADERS 9359 CONFIG_LINKS = $CONFIG_LINKS 9360 CONFIG_COMMANDS = $CONFIG_COMMANDS 9361 $ $0 $@ 9362 9363on `(hostname || uname -n) 2>/dev/null | sed 1q` 9364" 9365 9366_ACEOF 9367 9368case $ac_config_files in *" 9369"*) set x $ac_config_files; shift; ac_config_files=$*;; 9370esac 9371 9372 9373 9374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9375# Files that config.status was made for. 9376config_files="$ac_config_files" 9377 9378_ACEOF 9379 9380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9381ac_cs_usage="\ 9382\`$as_me' instantiates files and other configuration actions 9383from templates according to the current configuration. Unless the files 9384and actions are specified as TAGs, all are instantiated by default. 9385 9386Usage: $0 [OPTION]... [TAG]... 9387 9388 -h, --help print this help, then exit 9389 -V, --version print version number and configuration settings, then exit 9390 --config print configuration, then exit 9391 -q, --quiet, --silent 9392 do not print progress messages 9393 -d, --debug don't remove temporary files 9394 --recheck update $as_me by reconfiguring in the same conditions 9395 --file=FILE[:TEMPLATE] 9396 instantiate the configuration file FILE 9397 9398Configuration files: 9399$config_files 9400 9401Report bugs to the package provider." 9402 9403_ACEOF 9404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9405ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 9406ac_cs_version="\\ 9407tnc config.status 0.3.0 9408configured by $0, generated by GNU Autoconf 2.69, 9409 with options \\"\$ac_cs_config\\" 9410 9411Copyright (C) 2012 Free Software Foundation, Inc. 9412This config.status script is free software; the Free Software Foundation 9413gives unlimited permission to copy, distribute and modify it." 9414 9415ac_pwd='$ac_pwd' 9416srcdir='$srcdir' 9417test -n "\$AWK" || AWK=awk 9418_ACEOF 9419 9420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9421# The default lists apply if the user does not specify any file. 9422ac_need_defaults=: 9423while test $# != 0 9424do 9425 case $1 in 9426 --*=?*) 9427 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9428 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 9429 ac_shift=: 9430 ;; 9431 --*=) 9432 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9433 ac_optarg= 9434 ac_shift=: 9435 ;; 9436 *) 9437 ac_option=$1 9438 ac_optarg=$2 9439 ac_shift=shift 9440 ;; 9441 esac 9442 9443 case $ac_option in 9444 # Handling of the options. 9445 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9446 ac_cs_recheck=: ;; 9447 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 9448 $as_echo "$ac_cs_version"; exit ;; 9449 --config | --confi | --conf | --con | --co | --c ) 9450 $as_echo "$ac_cs_config"; exit ;; 9451 --debug | --debu | --deb | --de | --d | -d ) 9452 debug=: ;; 9453 --file | --fil | --fi | --f ) 9454 $ac_shift 9455 case $ac_optarg in 9456 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9457 '') as_fn_error $? "missing file argument" ;; 9458 esac 9459 as_fn_append CONFIG_FILES " '$ac_optarg'" 9460 ac_need_defaults=false;; 9461 --he | --h | --help | --hel | -h ) 9462 $as_echo "$ac_cs_usage"; exit ;; 9463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9464 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9465 ac_cs_silent=: ;; 9466 9467 # This is an error. 9468 -*) as_fn_error $? "unrecognized option: \`$1' 9469Try \`$0 --help' for more information." ;; 9470 9471 *) as_fn_append ac_config_targets " $1" 9472 ac_need_defaults=false ;; 9473 9474 esac 9475 shift 9476done 9477 9478ac_configure_extra_args= 9479 9480if $ac_cs_silent; then 9481 exec 6>/dev/null 9482 ac_configure_extra_args="$ac_configure_extra_args --silent" 9483fi 9484 9485_ACEOF 9486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9487if \$ac_cs_recheck; then 9488 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9489 shift 9490 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 9491 CONFIG_SHELL='$SHELL' 9492 export CONFIG_SHELL 9493 exec "\$@" 9494fi 9495 9496_ACEOF 9497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9498exec 5>>config.log 9499{ 9500 echo 9501 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 9502## Running $as_me. ## 9503_ASBOX 9504 $as_echo "$ac_log" 9505} >&5 9506 9507_ACEOF 9508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9509_ACEOF 9510 9511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9512 9513# Handling of arguments. 9514for ac_config_target in $ac_config_targets 9515do 9516 case $ac_config_target in 9517 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9518 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 9519 9520 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 9521 esac 9522done 9523 9524 9525# If the user did not use the arguments to specify the items to instantiate, 9526# then the envvar interface is used. Set only those that are not. 9527# We use the long form for the default assignment because of an extremely 9528# bizarre bug on SunOS 4.1.3. 9529if $ac_need_defaults; then 9530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9531fi 9532 9533# Have a temporary directory for convenience. Make it in the build tree 9534# simply because there is no reason against having it here, and in addition, 9535# creating and moving files from /tmp can sometimes cause problems. 9536# Hook for its removal unless debugging. 9537# Note that there is a small window in which the directory will not be cleaned: 9538# after its creation but before its name has been assigned to `$tmp'. 9539$debug || 9540{ 9541 tmp= ac_tmp= 9542 trap 'exit_status=$? 9543 : "${ac_tmp:=$tmp}" 9544 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 9545' 0 9546 trap 'as_fn_exit 1' 1 2 13 15 9547} 9548# Create a (secure) tmp directory for tmp files. 9549 9550{ 9551 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 9552 test -d "$tmp" 9553} || 9554{ 9555 tmp=./conf$$-$RANDOM 9556 (umask 077 && mkdir "$tmp") 9557} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 9558ac_tmp=$tmp 9559 9560# Set up the scripts for CONFIG_FILES section. 9561# No need to generate them if there are no CONFIG_FILES. 9562# This happens for instance with `./config.status config.h'. 9563if test -n "$CONFIG_FILES"; then 9564 9565 9566ac_cr=`echo X | tr X '\015'` 9567# On cygwin, bash can eat \r inside `` if the user requested igncr. 9568# But we know of no other shell where ac_cr would be empty at this 9569# point, so we can use a bashism as a fallback. 9570if test "x$ac_cr" = x; then 9571 eval ac_cr=\$\'\\r\' 9572fi 9573ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 9574if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 9575 ac_cs_awk_cr='\\r' 9576else 9577 ac_cs_awk_cr=$ac_cr 9578fi 9579 9580echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 9581_ACEOF 9582 9583 9584{ 9585 echo "cat >conf$$subs.awk <<_ACEOF" && 9586 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 9587 echo "_ACEOF" 9588} >conf$$subs.sh || 9589 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9590ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 9591ac_delim='%!_!# ' 9592for ac_last_try in false false false false false :; do 9593 . ./conf$$subs.sh || 9594 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9595 9596 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 9597 if test $ac_delim_n = $ac_delim_num; then 9598 break 9599 elif $ac_last_try; then 9600 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9601 else 9602 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9603 fi 9604done 9605rm -f conf$$subs.sh 9606 9607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9608cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 9609_ACEOF 9610sed -n ' 9611h 9612s/^/S["/; s/!.*/"]=/ 9613p 9614g 9615s/^[^!]*!// 9616:repl 9617t repl 9618s/'"$ac_delim"'$// 9619t delim 9620:nl 9621h 9622s/\(.\{148\}\)..*/\1/ 9623t more1 9624s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 9625p 9626n 9627b repl 9628:more1 9629s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9630p 9631g 9632s/.\{148\}// 9633t nl 9634:delim 9635h 9636s/\(.\{148\}\)..*/\1/ 9637t more2 9638s/["\\]/\\&/g; s/^/"/; s/$/"/ 9639p 9640b 9641:more2 9642s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9643p 9644g 9645s/.\{148\}// 9646t delim 9647' <conf$$subs.awk | sed ' 9648/^[^""]/{ 9649 N 9650 s/\n// 9651} 9652' >>$CONFIG_STATUS || ac_write_fail=1 9653rm -f conf$$subs.awk 9654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9655_ACAWK 9656cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 9657 for (key in S) S_is_set[key] = 1 9658 FS = "" 9659 9660} 9661{ 9662 line = $ 0 9663 nfields = split(line, field, "@") 9664 substed = 0 9665 len = length(field[1]) 9666 for (i = 2; i < nfields; i++) { 9667 key = field[i] 9668 keylen = length(key) 9669 if (S_is_set[key]) { 9670 value = S[key] 9671 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 9672 len += length(value) + length(field[++i]) 9673 substed = 1 9674 } else 9675 len += 1 + keylen 9676 } 9677 9678 print line 9679} 9680 9681_ACAWK 9682_ACEOF 9683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9684if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 9685 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 9686else 9687 cat 9688fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 9689 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 9690_ACEOF 9691 9692# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 9693# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 9694# trailing colons and then remove the whole line if VPATH becomes empty 9695# (actually we leave an empty line to preserve line numbers). 9696if test "x$srcdir" = x.; then 9697 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 9698h 9699s/// 9700s/^/:/ 9701s/[ ]*$/:/ 9702s/:\$(srcdir):/:/g 9703s/:\${srcdir}:/:/g 9704s/:@srcdir@:/:/g 9705s/^:*// 9706s/:*$// 9707x 9708s/\(=[ ]*\).*/\1/ 9709G 9710s/\n// 9711s/^[^=]*=[ ]*$// 9712}' 9713fi 9714 9715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9716fi # test -n "$CONFIG_FILES" 9717 9718 9719eval set X " :F $CONFIG_FILES " 9720shift 9721for ac_tag 9722do 9723 case $ac_tag in 9724 :[FHLC]) ac_mode=$ac_tag; continue;; 9725 esac 9726 case $ac_mode$ac_tag in 9727 :[FHL]*:*);; 9728 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 9729 :[FH]-) ac_tag=-:-;; 9730 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9731 esac 9732 ac_save_IFS=$IFS 9733 IFS=: 9734 set x $ac_tag 9735 IFS=$ac_save_IFS 9736 shift 9737 ac_file=$1 9738 shift 9739 9740 case $ac_mode in 9741 :L) ac_source=$1;; 9742 :[FH]) 9743 ac_file_inputs= 9744 for ac_f 9745 do 9746 case $ac_f in 9747 -) ac_f="$ac_tmp/stdin";; 9748 *) # Look for the file first in the build tree, then in the source tree 9749 # (if the path is not absolute). The absolute path cannot be DOS-style, 9750 # because $ac_f cannot contain `:'. 9751 test -f "$ac_f" || 9752 case $ac_f in 9753 [\\/$]*) false;; 9754 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9755 esac || 9756 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9757 esac 9758 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9759 as_fn_append ac_file_inputs " '$ac_f'" 9760 done 9761 9762 # Let's still pretend it is `configure' which instantiates (i.e., don't 9763 # use $as_me), people would be surprised to read: 9764 # /* config.h. Generated by config.status. */ 9765 configure_input='Generated from '` 9766 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9767 `' by configure.' 9768 if test x"$ac_file" != x-; then 9769 configure_input="$ac_file. $configure_input" 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 9771$as_echo "$as_me: creating $ac_file" >&6;} 9772 fi 9773 # Neutralize special characters interpreted by sed in replacement strings. 9774 case $configure_input in #( 9775 *\&* | *\|* | *\\* ) 9776 ac_sed_conf_input=`$as_echo "$configure_input" | 9777 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9778 *) ac_sed_conf_input=$configure_input;; 9779 esac 9780 9781 case $ac_tag in 9782 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 9783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 9784 esac 9785 ;; 9786 esac 9787 9788 ac_dir=`$as_dirname -- "$ac_file" || 9789$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9790 X"$ac_file" : 'X\(//\)[^/]' \| \ 9791 X"$ac_file" : 'X\(//\)$' \| \ 9792 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9793$as_echo X"$ac_file" | 9794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9795 s//\1/ 9796 q 9797 } 9798 /^X\(\/\/\)[^/].*/{ 9799 s//\1/ 9800 q 9801 } 9802 /^X\(\/\/\)$/{ 9803 s//\1/ 9804 q 9805 } 9806 /^X\(\/\).*/{ 9807 s//\1/ 9808 q 9809 } 9810 s/.*/./; q'` 9811 as_dir="$ac_dir"; as_fn_mkdir_p 9812 ac_builddir=. 9813 9814case "$ac_dir" in 9815.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9816*) 9817 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9818 # A ".." for each directory in $ac_dir_suffix. 9819 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9820 case $ac_top_builddir_sub in 9821 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9822 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9823 esac ;; 9824esac 9825ac_abs_top_builddir=$ac_pwd 9826ac_abs_builddir=$ac_pwd$ac_dir_suffix 9827# for backward compatibility: 9828ac_top_builddir=$ac_top_build_prefix 9829 9830case $srcdir in 9831 .) # We are building in place. 9832 ac_srcdir=. 9833 ac_top_srcdir=$ac_top_builddir_sub 9834 ac_abs_top_srcdir=$ac_pwd ;; 9835 [\\/]* | ?:[\\/]* ) # Absolute name. 9836 ac_srcdir=$srcdir$ac_dir_suffix; 9837 ac_top_srcdir=$srcdir 9838 ac_abs_top_srcdir=$srcdir ;; 9839 *) # Relative name. 9840 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9841 ac_top_srcdir=$ac_top_build_prefix$srcdir 9842 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9843esac 9844ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9845 9846 9847 case $ac_mode in 9848 :F) 9849 # 9850 # CONFIG_FILE 9851 # 9852 9853_ACEOF 9854 9855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9856# If the template does not know about datarootdir, expand it. 9857# FIXME: This hack should be removed a few years after 2.60. 9858ac_datarootdir_hack=; ac_datarootdir_seen= 9859ac_sed_dataroot=' 9860/datarootdir/ { 9861 p 9862 q 9863} 9864/@datadir@/p 9865/@docdir@/p 9866/@infodir@/p 9867/@localedir@/p 9868/@mandir@/p' 9869case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9870*datarootdir*) ac_datarootdir_seen=yes;; 9871*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9873$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9874_ACEOF 9875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9876 ac_datarootdir_hack=' 9877 s&@datadir@&$datadir&g 9878 s&@docdir@&$docdir&g 9879 s&@infodir@&$infodir&g 9880 s&@localedir@&$localedir&g 9881 s&@mandir@&$mandir&g 9882 s&\\\${datarootdir}&$datarootdir&g' ;; 9883esac 9884_ACEOF 9885 9886# Neutralize VPATH when `$srcdir' = `.'. 9887# Shell code in configure.ac might set extrasub. 9888# FIXME: do we really want to maintain this feature? 9889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9890ac_sed_extra="$ac_vpsub 9891$extrasub 9892_ACEOF 9893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9894:t 9895/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9896s|@configure_input@|$ac_sed_conf_input|;t t 9897s&@top_builddir@&$ac_top_builddir_sub&;t t 9898s&@top_build_prefix@&$ac_top_build_prefix&;t t 9899s&@srcdir@&$ac_srcdir&;t t 9900s&@abs_srcdir@&$ac_abs_srcdir&;t t 9901s&@top_srcdir@&$ac_top_srcdir&;t t 9902s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9903s&@builddir@&$ac_builddir&;t t 9904s&@abs_builddir@&$ac_abs_builddir&;t t 9905s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9906$ac_datarootdir_hack 9907" 9908eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 9909 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9910 9911test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9912 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 9913 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 9914 "$ac_tmp/out"`; test -z "$ac_out"; } && 9915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9916which seems to be undefined. Please make sure it is defined" >&5 9917$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9918which seems to be undefined. Please make sure it is defined" >&2;} 9919 9920 rm -f "$ac_tmp/stdin" 9921 case $ac_file in 9922 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 9923 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 9924 esac \ 9925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9926 ;; 9927 9928 9929 9930 esac 9931 9932done # for ac_tag 9933 9934 9935as_fn_exit 0 9936_ACEOF 9937ac_clean_files=$ac_clean_files_save 9938 9939test $ac_write_fail = 0 || 9940 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 9941 9942 9943# configure is writing to config.log, and then calls config.status. 9944# config.status does its own redirection, appending to config.log. 9945# Unfortunately, on DOS this fails, as config.log is still kept open 9946# by configure, so config.status won't be able to write to it; its 9947# output is simply discarded. So we exec the FD to /dev/null, 9948# effectively closing config.log, so it can be properly (re)opened and 9949# appended to by config.status. When coming back to configure, we 9950# need to make the FD available again. 9951if test "$no_create" != yes; then 9952 ac_cs_success=: 9953 ac_config_status_args= 9954 test "$silent" = yes && 9955 ac_config_status_args="$ac_config_status_args --quiet" 9956 exec 5>/dev/null 9957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9958 exec 5>>config.log 9959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9960 # would make configure fail if this is the last instruction. 9961 $ac_cs_success || as_fn_exit 1 9962fi 9963if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 9964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 9965$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 9966fi 9967 9968