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