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