1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.67 for treectrl 2.4. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8# Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232$0: including any error possibly output before this 233$0: message. Then install a modern shell, or manually run 234$0: the script under such a shell if you do have one." 235 fi 236 exit 1 237fi 238fi 239fi 240SHELL=${CONFIG_SHELL-/bin/sh} 241export SHELL 242# Unset more variables known to interfere with behavior of common tools. 243CLICOLOR_FORCE= GREP_OPTIONS= 244unset CLICOLOR_FORCE GREP_OPTIONS 245 246## --------------------- ## 247## M4sh Shell Functions. ## 248## --------------------- ## 249# as_fn_unset VAR 250# --------------- 251# Portably unset VAR. 252as_fn_unset () 253{ 254 { eval $1=; unset $1;} 255} 256as_unset=as_fn_unset 257 258# as_fn_set_status STATUS 259# ----------------------- 260# Set $? to STATUS, without forking. 261as_fn_set_status () 262{ 263 return $1 264} # as_fn_set_status 265 266# as_fn_exit STATUS 267# ----------------- 268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269as_fn_exit () 270{ 271 set +e 272 as_fn_set_status $1 273 exit $1 274} # as_fn_exit 275 276# as_fn_mkdir_p 277# ------------- 278# Create "$as_dir" as a directory, including parents if necessary. 279as_fn_mkdir_p () 280{ 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298$as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 320 321 322} # as_fn_mkdir_p 323# as_fn_append VAR VALUE 324# ---------------------- 325# Append the text in VALUE to the end of the definition contained in VAR. Take 326# advantage of any shell optimizations that allow amortized linear growth over 327# repeated appends, instead of the typical quadratic growth present in naive 328# implementations. 329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339fi # as_fn_append 340 341# as_fn_arith ARG... 342# ------------------ 343# Perform arithmetic evaluation on the ARGs, and store the result in the 344# global $as_val. Take advantage of shells that can avoid forks. The arguments 345# must be portable across $(()) and expr. 346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356fi # as_fn_arith 357 358 359# as_fn_error STATUS ERROR [LINENO LOG_FD] 360# ---------------------------------------- 361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363# script with STATUS, using 1 if that was 0. 364as_fn_error () 365{ 366 as_status=$1; test $as_status -eq 0 && as_status=1 367 if test "$4"; then 368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 370 fi 371 $as_echo "$as_me: error: $2" >&2 372 as_fn_exit $as_status 373} # as_fn_error 374 375if expr a : '\(a\)' >/dev/null 2>&1 && 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 377 as_expr=expr 378else 379 as_expr=false 380fi 381 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383 as_basename=basename 384else 385 as_basename=false 386fi 387 388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390else 391 as_dirname=false 392fi 393 394as_me=`$as_basename -- "$0" || 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396 X"$0" : 'X\(//\)$' \| \ 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398$as_echo X/"$0" | 399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 s//\1/ 401 q 402 } 403 /^X\/\(\/\/\)$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\).*/{ 408 s//\1/ 409 q 410 } 411 s/.*/./; q'` 412 413# Avoid depending upon Character Ranges. 414as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417as_cr_digits='0123456789' 418as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426 sed -n ' 427 p 428 /[$]LINENO/= 429 ' <$as_myself | 430 sed ' 431 s/[$]LINENO.*/&-/ 432 t lineno 433 b 434 :lineno 435 N 436 :loop 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438 t loop 439 s/-\n.*// 440 ' >$as_me.lineno && 441 chmod +x "$as_me.lineno" || 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443 444 # Don't try to exec as it changes $[0], causing all sort of problems 445 # (the dirname of $[0] is not the place where we might find the 446 # original and so on. Autoconf is especially sensitive to this). 447 . "./$as_me.lineno" 448 # Exit status is that of the last command. 449 exit 450} 451 452ECHO_C= ECHO_N= ECHO_T= 453case `echo -n x` in #((((( 454-n*) 455 case `echo 'xy\c'` in 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 460 esac;; 461*) 462 ECHO_N='-n';; 463esac 464 465rm -f conf$$ conf$$.exe conf$$.file 466if test -d conf$$.dir; then 467 rm -f conf$$.dir/conf$$.file 468else 469 rm -f conf$$.dir 470 mkdir conf$$.dir 2>/dev/null 471fi 472if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 484 as_ln_s='cp -p' 485 fi 486else 487 as_ln_s='cp -p' 488fi 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490rmdir conf$$.dir 2>/dev/null 491 492if mkdir -p . 2>/dev/null; then 493 as_mkdir_p='mkdir -p "$as_dir"' 494else 495 test -d ./-p && rmdir ./-p 496 as_mkdir_p=false 497fi 498 499if test -x / >/dev/null 2>&1; then 500 as_test_x='test -x' 501else 502 if ls -dL / >/dev/null 2>&1; then 503 as_ls_L_option=L 504 else 505 as_ls_L_option= 506 fi 507 as_test_x=' 508 eval sh -c '\'' 509 if test -d "$1"; then 510 test -d "$1/."; 511 else 512 case $1 in #( 513 -*)set "./$1";; 514 esac; 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516 ???[sx]*):;;*)false;;esac;fi 517 '\'' sh 518 ' 519fi 520as_executable_p=$as_test_x 521 522# Sed expression to map a string onto a valid CPP name. 523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524 525# Sed expression to map a string onto a valid variable name. 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527 528 529test -n "$DJDIR" || exec 7<&0 </dev/null 530exec 6>&1 531 532# Name of the host. 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 534# so uname gets run too. 535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 536 537# 538# Initializations. 539# 540ac_default_prefix=/usr/local 541ac_clean_files= 542ac_config_libobj_dir=. 543LIBOBJS= 544cross_compiling=no 545subdirs= 546MFLAGS= 547MAKEFLAGS= 548 549# Identity of this package. 550PACKAGE_NAME='treectrl' 551PACKAGE_TARNAME='treectrl' 552PACKAGE_VERSION='2.4' 553PACKAGE_STRING='treectrl 2.4' 554PACKAGE_BUGREPORT='' 555PACKAGE_URL='' 556 557# Factoring default headers for most tests. 558ac_includes_default="\ 559#include <stdio.h> 560#ifdef HAVE_SYS_TYPES_H 561# include <sys/types.h> 562#endif 563#ifdef HAVE_SYS_STAT_H 564# include <sys/stat.h> 565#endif 566#ifdef STDC_HEADERS 567# include <stdlib.h> 568# include <stddef.h> 569#else 570# ifdef HAVE_STDLIB_H 571# include <stdlib.h> 572# endif 573#endif 574#ifdef HAVE_STRING_H 575# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 576# include <memory.h> 577# endif 578# include <string.h> 579#endif 580#ifdef HAVE_STRINGS_H 581# include <strings.h> 582#endif 583#ifdef HAVE_INTTYPES_H 584# include <inttypes.h> 585#endif 586#ifdef HAVE_STDINT_H 587# include <stdint.h> 588#endif 589#ifdef HAVE_UNISTD_H 590# include <unistd.h> 591#endif" 592 593enable_option_checking=no 594ac_subst_vars='LTLIBOBJS 595LIBOBJS 596WISH_PROG 597TCLSH_PROG 598VC_MANIFEST_EMBED_EXE 599VC_MANIFEST_EMBED_DLL 600RANLIB_STUB 601MAKE_STUB_LIB 602MAKE_STATIC_LIB 603MAKE_SHARED_LIB 604MAKE_LIB 605TCL_DBGX 606LDFLAGS_DEFAULT 607CFLAGS_DEFAULT 608DIST_WIN_MACHINE 609LD_LIBRARY_PATH_VAR 610SHLIB_CFLAGS 611SHLIB_LD_LIBS 612SHLIB_LD 613STLIB_LD 614CC_OBJNAME 615CFLAGS_WARNING 616CFLAGS_OPTIMIZE 617CFLAGS_DEBUG 618CELIB_DIR 619AR 620SHARED_BUILD 621DIST_WIN_THREADS 622TCL_THREADS 623GTK_LIBS 624GTK_CFLAGS 625PKG_CONFIG 626PKG_MANIFEST 627MACHINE 628RES 629RC_DEPARG 630RC_DEFINE 631RC_INCLUDE 632RC_TYPE 633RC_OUT 634RC 635subdirs 636XMKMF 637TK_XLIB_DIR_NATIVE 638TK_TOP_DIR_NATIVE 639TK_INCLUDES 640TCL_TOP_DIR_NATIVE 641TCL_INCLUDES 642PKG_OBJECTS 643PKG_SOURCES 644MATH_LIBS 645EGREP 646GREP 647RANLIB 648SET_MAKE 649INSTALL_DATA 650INSTALL_SCRIPT 651INSTALL_PROGRAM 652CPP 653OBJEXT 654ac_ct_CC 655CPPFLAGS 656LDFLAGS 657CFLAGS 658CC 659TK_XINCLUDES 660TK_LIBS 661TK_STUB_LIB_SPEC 662TK_STUB_LIB_FLAG 663TK_STUB_LIB_FILE 664TK_LIB_SPEC 665TK_LIB_FLAG 666TK_LIB_FILE 667TK_SRC_DIR 668TK_BIN_DIR 669TK_VERSION 670TCL_SHLIB_LD_LIBS 671TCL_LD_FLAGS 672TCL_EXTRA_CFLAGS 673TCL_DEFS 674TCL_LIBS 675CLEANFILES 676TCL_STUB_LIB_SPEC 677TCL_STUB_LIB_FLAG 678TCL_STUB_LIB_FILE 679TCL_LIB_SPEC 680TCL_LIB_FLAG 681TCL_LIB_FILE 682TCL_SRC_DIR 683TCL_BIN_DIR 684TCL_PATCH_LEVEL 685TCL_VERSION 686PKG_CFLAGS 687PKG_LIBS 688PKG_INCLUDES 689PKG_HEADERS 690PKG_TCL_SOURCES 691PKG_STUB_OBJECTS 692PKG_STUB_SOURCES 693PKG_STUB_LIB_FILE 694PKG_LIB_FILE 695EXEEXT 696CYGPATH 697PACKAGE_PATCHLEVEL 698target_alias 699host_alias 700build_alias 701LIBS 702ECHO_T 703ECHO_N 704ECHO_C 705DEFS 706mandir 707localedir 708libdir 709psdir 710pdfdir 711dvidir 712htmldir 713infodir 714docdir 715oldincludedir 716includedir 717localstatedir 718sharedstatedir 719sysconfdir 720datadir 721datarootdir 722libexecdir 723sbindir 724bindir 725program_transform_name 726prefix 727exec_prefix 728PACKAGE_URL 729PACKAGE_BUGREPORT 730PACKAGE_STRING 731PACKAGE_VERSION 732PACKAGE_TARNAME 733PACKAGE_NAME 734PATH_SEPARATOR 735SHELL' 736ac_subst_files='' 737ac_user_opts=' 738enable_option_checking 739with_tcl 740with_tk 741with_tclinclude 742with_tkinclude 743with_x 744enable_shellicon 745enable_gtk 746enable_threads 747enable_shared 748enable_64bit 749enable_64bit_vis 750enable_rpath 751enable_wince 752with_celib 753enable_symbols 754' 755 ac_precious_vars='build_alias 756host_alias 757target_alias 758CC 759CFLAGS 760LDFLAGS 761LIBS 762CPPFLAGS 763CPP 764XMKMF 765PKG_CONFIG 766GTK_CFLAGS 767GTK_LIBS' 768ac_subdirs_all='shellicon' 769 770# Initialize some variables set by options. 771ac_init_help= 772ac_init_version=false 773ac_unrecognized_opts= 774ac_unrecognized_sep= 775# The variables have the same names as the options, with 776# dashes changed to underlines. 777cache_file=/dev/null 778exec_prefix=NONE 779no_create= 780no_recursion= 781prefix=NONE 782program_prefix=NONE 783program_suffix=NONE 784program_transform_name=s,x,x, 785silent= 786site= 787srcdir= 788verbose= 789x_includes=NONE 790x_libraries=NONE 791 792# Installation directory options. 793# These are left unexpanded so users can "make install exec_prefix=/foo" 794# and all the variables that are supposed to be based on exec_prefix 795# by default will actually change. 796# Use braces instead of parens because sh, perl, etc. also accept them. 797# (The list follows the same order as the GNU Coding Standards.) 798bindir='${exec_prefix}/bin' 799sbindir='${exec_prefix}/sbin' 800libexecdir='${exec_prefix}/libexec' 801datarootdir='${prefix}/share' 802datadir='${datarootdir}' 803sysconfdir='${prefix}/etc' 804sharedstatedir='${prefix}/com' 805localstatedir='${prefix}/var' 806includedir='${prefix}/include' 807oldincludedir='/usr/include' 808docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 809infodir='${datarootdir}/info' 810htmldir='${docdir}' 811dvidir='${docdir}' 812pdfdir='${docdir}' 813psdir='${docdir}' 814libdir='${exec_prefix}/lib' 815localedir='${datarootdir}/locale' 816mandir='${datarootdir}/man' 817 818ac_prev= 819ac_dashdash= 820for ac_option 821do 822 # If the previous option needs an argument, assign it. 823 if test -n "$ac_prev"; then 824 eval $ac_prev=\$ac_option 825 ac_prev= 826 continue 827 fi 828 829 case $ac_option in 830 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 831 *=) ac_optarg= ;; 832 *) ac_optarg=yes ;; 833 esac 834 835 # Accept the important Cygnus configure options, so we can diagnose typos. 836 837 case $ac_dashdash$ac_option in 838 --) 839 ac_dashdash=yes ;; 840 841 -bindir | --bindir | --bindi | --bind | --bin | --bi) 842 ac_prev=bindir ;; 843 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 844 bindir=$ac_optarg ;; 845 846 -build | --build | --buil | --bui | --bu) 847 ac_prev=build_alias ;; 848 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 849 build_alias=$ac_optarg ;; 850 851 -cache-file | --cache-file | --cache-fil | --cache-fi \ 852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 853 ac_prev=cache_file ;; 854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 856 cache_file=$ac_optarg ;; 857 858 --config-cache | -C) 859 cache_file=config.cache ;; 860 861 -datadir | --datadir | --datadi | --datad) 862 ac_prev=datadir ;; 863 -datadir=* | --datadir=* | --datadi=* | --datad=*) 864 datadir=$ac_optarg ;; 865 866 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 867 | --dataroo | --dataro | --datar) 868 ac_prev=datarootdir ;; 869 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 870 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 871 datarootdir=$ac_optarg ;; 872 873 -disable-* | --disable-*) 874 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 875 # Reject names that are not valid shell variable names. 876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 877 as_fn_error $? "invalid feature name: $ac_useropt" 878 ac_useropt_orig=$ac_useropt 879 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 880 case $ac_user_opts in 881 *" 882"enable_$ac_useropt" 883"*) ;; 884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 885 ac_unrecognized_sep=', ';; 886 esac 887 eval enable_$ac_useropt=no ;; 888 889 -docdir | --docdir | --docdi | --doc | --do) 890 ac_prev=docdir ;; 891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 892 docdir=$ac_optarg ;; 893 894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 895 ac_prev=dvidir ;; 896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 897 dvidir=$ac_optarg ;; 898 899 -enable-* | --enable-*) 900 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 901 # Reject names that are not valid shell variable names. 902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 903 as_fn_error $? "invalid feature name: $ac_useropt" 904 ac_useropt_orig=$ac_useropt 905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 906 case $ac_user_opts in 907 *" 908"enable_$ac_useropt" 909"*) ;; 910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 911 ac_unrecognized_sep=', ';; 912 esac 913 eval enable_$ac_useropt=\$ac_optarg ;; 914 915 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 916 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 917 | --exec | --exe | --ex) 918 ac_prev=exec_prefix ;; 919 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 920 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 921 | --exec=* | --exe=* | --ex=*) 922 exec_prefix=$ac_optarg ;; 923 924 -gas | --gas | --ga | --g) 925 # Obsolete; use --with-gas. 926 with_gas=yes ;; 927 928 -help | --help | --hel | --he | -h) 929 ac_init_help=long ;; 930 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 931 ac_init_help=recursive ;; 932 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 933 ac_init_help=short ;; 934 935 -host | --host | --hos | --ho) 936 ac_prev=host_alias ;; 937 -host=* | --host=* | --hos=* | --ho=*) 938 host_alias=$ac_optarg ;; 939 940 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 941 ac_prev=htmldir ;; 942 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 943 | --ht=*) 944 htmldir=$ac_optarg ;; 945 946 -includedir | --includedir | --includedi | --included | --include \ 947 | --includ | --inclu | --incl | --inc) 948 ac_prev=includedir ;; 949 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 950 | --includ=* | --inclu=* | --incl=* | --inc=*) 951 includedir=$ac_optarg ;; 952 953 -infodir | --infodir | --infodi | --infod | --info | --inf) 954 ac_prev=infodir ;; 955 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 956 infodir=$ac_optarg ;; 957 958 -libdir | --libdir | --libdi | --libd) 959 ac_prev=libdir ;; 960 -libdir=* | --libdir=* | --libdi=* | --libd=*) 961 libdir=$ac_optarg ;; 962 963 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 964 | --libexe | --libex | --libe) 965 ac_prev=libexecdir ;; 966 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 967 | --libexe=* | --libex=* | --libe=*) 968 libexecdir=$ac_optarg ;; 969 970 -localedir | --localedir | --localedi | --localed | --locale) 971 ac_prev=localedir ;; 972 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 973 localedir=$ac_optarg ;; 974 975 -localstatedir | --localstatedir | --localstatedi | --localstated \ 976 | --localstate | --localstat | --localsta | --localst | --locals) 977 ac_prev=localstatedir ;; 978 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 979 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 980 localstatedir=$ac_optarg ;; 981 982 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 983 ac_prev=mandir ;; 984 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 985 mandir=$ac_optarg ;; 986 987 -nfp | --nfp | --nf) 988 # Obsolete; use --without-fp. 989 with_fp=no ;; 990 991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 992 | --no-cr | --no-c | -n) 993 no_create=yes ;; 994 995 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 996 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 997 no_recursion=yes ;; 998 999 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1000 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1001 | --oldin | --oldi | --old | --ol | --o) 1002 ac_prev=oldincludedir ;; 1003 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1004 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1005 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1006 oldincludedir=$ac_optarg ;; 1007 1008 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1009 ac_prev=prefix ;; 1010 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1011 prefix=$ac_optarg ;; 1012 1013 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1014 | --program-pre | --program-pr | --program-p) 1015 ac_prev=program_prefix ;; 1016 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1017 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1018 program_prefix=$ac_optarg ;; 1019 1020 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1021 | --program-suf | --program-su | --program-s) 1022 ac_prev=program_suffix ;; 1023 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1024 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1025 program_suffix=$ac_optarg ;; 1026 1027 -program-transform-name | --program-transform-name \ 1028 | --program-transform-nam | --program-transform-na \ 1029 | --program-transform-n | --program-transform- \ 1030 | --program-transform | --program-transfor \ 1031 | --program-transfo | --program-transf \ 1032 | --program-trans | --program-tran \ 1033 | --progr-tra | --program-tr | --program-t) 1034 ac_prev=program_transform_name ;; 1035 -program-transform-name=* | --program-transform-name=* \ 1036 | --program-transform-nam=* | --program-transform-na=* \ 1037 | --program-transform-n=* | --program-transform-=* \ 1038 | --program-transform=* | --program-transfor=* \ 1039 | --program-transfo=* | --program-transf=* \ 1040 | --program-trans=* | --program-tran=* \ 1041 | --progr-tra=* | --program-tr=* | --program-t=*) 1042 program_transform_name=$ac_optarg ;; 1043 1044 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1045 ac_prev=pdfdir ;; 1046 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1047 pdfdir=$ac_optarg ;; 1048 1049 -psdir | --psdir | --psdi | --psd | --ps) 1050 ac_prev=psdir ;; 1051 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1052 psdir=$ac_optarg ;; 1053 1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1055 | -silent | --silent | --silen | --sile | --sil) 1056 silent=yes ;; 1057 1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1059 ac_prev=sbindir ;; 1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1061 | --sbi=* | --sb=*) 1062 sbindir=$ac_optarg ;; 1063 1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1066 | --sharedst | --shareds | --shared | --share | --shar \ 1067 | --sha | --sh) 1068 ac_prev=sharedstatedir ;; 1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1072 | --sha=* | --sh=*) 1073 sharedstatedir=$ac_optarg ;; 1074 1075 -site | --site | --sit) 1076 ac_prev=site ;; 1077 -site=* | --site=* | --sit=*) 1078 site=$ac_optarg ;; 1079 1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1081 ac_prev=srcdir ;; 1082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1083 srcdir=$ac_optarg ;; 1084 1085 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1086 | --syscon | --sysco | --sysc | --sys | --sy) 1087 ac_prev=sysconfdir ;; 1088 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1089 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1090 sysconfdir=$ac_optarg ;; 1091 1092 -target | --target | --targe | --targ | --tar | --ta | --t) 1093 ac_prev=target_alias ;; 1094 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1095 target_alias=$ac_optarg ;; 1096 1097 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1098 verbose=yes ;; 1099 1100 -version | --version | --versio | --versi | --vers | -V) 1101 ac_init_version=: ;; 1102 1103 -with-* | --with-*) 1104 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1105 # Reject names that are not valid shell variable names. 1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1107 as_fn_error $? "invalid package name: $ac_useropt" 1108 ac_useropt_orig=$ac_useropt 1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1110 case $ac_user_opts in 1111 *" 1112"with_$ac_useropt" 1113"*) ;; 1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1115 ac_unrecognized_sep=', ';; 1116 esac 1117 eval with_$ac_useropt=\$ac_optarg ;; 1118 1119 -without-* | --without-*) 1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1121 # Reject names that are not valid shell variable names. 1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1123 as_fn_error $? "invalid package name: $ac_useropt" 1124 ac_useropt_orig=$ac_useropt 1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1126 case $ac_user_opts in 1127 *" 1128"with_$ac_useropt" 1129"*) ;; 1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1131 ac_unrecognized_sep=', ';; 1132 esac 1133 eval with_$ac_useropt=no ;; 1134 1135 --x) 1136 # Obsolete; use --with-x. 1137 with_x=yes ;; 1138 1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1140 | --x-incl | --x-inc | --x-in | --x-i) 1141 ac_prev=x_includes ;; 1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1144 x_includes=$ac_optarg ;; 1145 1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1148 ac_prev=x_libraries ;; 1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1151 x_libraries=$ac_optarg ;; 1152 1153 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1154Try \`$0 --help' for more information" 1155 ;; 1156 1157 *=*) 1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1159 # Reject names that are not valid shell variable names. 1160 case $ac_envvar in #( 1161 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1162 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1163 esac 1164 eval $ac_envvar=\$ac_optarg 1165 export $ac_envvar ;; 1166 1167 *) 1168 # FIXME: should be removed in autoconf 3.0. 1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1172 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1173 ;; 1174 1175 esac 1176done 1177 1178if test -n "$ac_prev"; then 1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1180 as_fn_error $? "missing argument to $ac_option" 1181fi 1182 1183if test -n "$ac_unrecognized_opts"; then 1184 case $enable_option_checking in 1185 no) ;; 1186 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1188 esac 1189fi 1190 1191# Check all directory arguments for consistency. 1192for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1193 datadir sysconfdir sharedstatedir localstatedir includedir \ 1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1195 libdir localedir mandir 1196do 1197 eval ac_val=\$$ac_var 1198 # Remove trailing slashes. 1199 case $ac_val in 1200 */ ) 1201 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1202 eval $ac_var=\$ac_val;; 1203 esac 1204 # Be sure to have absolute directory names. 1205 case $ac_val in 1206 [\\/$]* | ?:[\\/]* ) continue;; 1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1208 esac 1209 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1210done 1211 1212# There might be people who depend on the old broken behavior: `$host' 1213# used to hold the argument of --host etc. 1214# FIXME: To remove some day. 1215build=$build_alias 1216host=$host_alias 1217target=$target_alias 1218 1219# FIXME: To remove some day. 1220if test "x$host_alias" != x; then 1221 if test "x$build_alias" = x; then 1222 cross_compiling=maybe 1223 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1224 If a cross compiler is detected then cross compile mode will be used" >&2 1225 elif test "x$build_alias" != "x$host_alias"; then 1226 cross_compiling=yes 1227 fi 1228fi 1229 1230ac_tool_prefix= 1231test -n "$host_alias" && ac_tool_prefix=$host_alias- 1232 1233test "$silent" = yes && exec 6>/dev/null 1234 1235 1236ac_pwd=`pwd` && test -n "$ac_pwd" && 1237ac_ls_di=`ls -di .` && 1238ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1239 as_fn_error $? "working directory cannot be determined" 1240test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1241 as_fn_error $? "pwd does not report name of working directory" 1242 1243 1244# Find the source files, if location was not specified. 1245if test -z "$srcdir"; then 1246 ac_srcdir_defaulted=yes 1247 # Try the directory containing this script, then the parent directory. 1248 ac_confdir=`$as_dirname -- "$as_myself" || 1249$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1250 X"$as_myself" : 'X\(//\)[^/]' \| \ 1251 X"$as_myself" : 'X\(//\)$' \| \ 1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1253$as_echo X"$as_myself" | 1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\/\)[^/].*/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\/\)$/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\).*/{ 1267 s//\1/ 1268 q 1269 } 1270 s/.*/./; q'` 1271 srcdir=$ac_confdir 1272 if test ! -r "$srcdir/$ac_unique_file"; then 1273 srcdir=.. 1274 fi 1275else 1276 ac_srcdir_defaulted=no 1277fi 1278if test ! -r "$srcdir/$ac_unique_file"; then 1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1280 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1281fi 1282ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1283ac_abs_confdir=`( 1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1285 pwd)` 1286# When building in place, set srcdir=. 1287if test "$ac_abs_confdir" = "$ac_pwd"; then 1288 srcdir=. 1289fi 1290# Remove unnecessary trailing slashes from srcdir. 1291# Double slashes in file names in object file debugging info 1292# mess up M-x gdb in Emacs. 1293case $srcdir in 1294*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1295esac 1296for ac_var in $ac_precious_vars; do 1297 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1298 eval ac_env_${ac_var}_value=\$${ac_var} 1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1300 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1301done 1302 1303# 1304# Report the --help message. 1305# 1306if test "$ac_init_help" = "long"; then 1307 # Omit some internal or obsolete options to make the list less imposing. 1308 # This message is too long to be a string in the A/UX 3.1 sh. 1309 cat <<_ACEOF 1310\`configure' configures treectrl 2.4 to adapt to many kinds of systems. 1311 1312Usage: $0 [OPTION]... [VAR=VALUE]... 1313 1314To assign environment variables (e.g., CC, CFLAGS...), specify them as 1315VAR=VALUE. See below for descriptions of some of the useful variables. 1316 1317Defaults for the options are specified in brackets. 1318 1319Configuration: 1320 -h, --help display this help and exit 1321 --help=short display options specific to this package 1322 --help=recursive display the short help of all the included packages 1323 -V, --version display version information and exit 1324 -q, --quiet, --silent do not print \`checking ...' messages 1325 --cache-file=FILE cache test results in FILE [disabled] 1326 -C, --config-cache alias for \`--cache-file=config.cache' 1327 -n, --no-create do not create output files 1328 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1329 1330Installation directories: 1331 --prefix=PREFIX install architecture-independent files in PREFIX 1332 [$ac_default_prefix] 1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1334 [PREFIX] 1335 1336By default, \`make install' will install all the files in 1337\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1338an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1339for instance \`--prefix=\$HOME'. 1340 1341For better control, use the options below. 1342 1343Fine tuning of the installation directories: 1344 --bindir=DIR user executables [EPREFIX/bin] 1345 --sbindir=DIR system admin executables [EPREFIX/sbin] 1346 --libexecdir=DIR program executables [EPREFIX/libexec] 1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1350 --libdir=DIR object code libraries [EPREFIX/lib] 1351 --includedir=DIR C header files [PREFIX/include] 1352 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1355 --infodir=DIR info documentation [DATAROOTDIR/info] 1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1357 --mandir=DIR man documentation [DATAROOTDIR/man] 1358 --docdir=DIR documentation root [DATAROOTDIR/doc/treectrl] 1359 --htmldir=DIR html documentation [DOCDIR] 1360 --dvidir=DIR dvi documentation [DOCDIR] 1361 --pdfdir=DIR pdf documentation [DOCDIR] 1362 --psdir=DIR ps documentation [DOCDIR] 1363_ACEOF 1364 1365 cat <<\_ACEOF 1366 1367X features: 1368 --x-includes=DIR X include files are in DIR 1369 --x-libraries=DIR X library files are in DIR 1370_ACEOF 1371fi 1372 1373if test -n "$ac_init_help"; then 1374 case $ac_init_help in 1375 short | recursive ) echo "Configuration of treectrl 2.4:";; 1376 esac 1377 cat <<\_ACEOF 1378 1379Optional Features: 1380 --disable-option-checking ignore unrecognized --enable/--with options 1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1383 --enable-shellicon build the shellicon extension (default: no) 1384 --enable-gtk build GTK+ theme-aware treectrl (default: no) 1385 --enable-threads build with threads 1386 --enable-shared build and link with shared libraries (default: on) 1387 --enable-64bit enable 64bit support (default: off) 1388 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1389 --disable-rpath disable rpath support (default: on) 1390 --enable-wince enable Win/CE support (where applicable) 1391 --enable-symbols build with debugging symbols (default: off) 1392 1393Optional Packages: 1394 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1395 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1396 --with-tcl directory containing tcl configuration 1397 (tclConfig.sh) 1398 --with-tk directory containing tk configuration (tkConfig.sh) 1399 --with-tclinclude directory containing the public Tcl header files 1400 --with-tkinclude directory containing the public Tk header files 1401 --with-x use the X Window System 1402 --with-celib=DIR use Windows/CE support library from DIR 1403 1404Some influential environment variables: 1405 CC C compiler command 1406 CFLAGS C compiler flags 1407 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1408 nonstandard directory <lib dir> 1409 LIBS libraries to pass to the linker, e.g. -l<library> 1410 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1411 you have headers in a nonstandard directory <include dir> 1412 CPP C preprocessor 1413 XMKMF Path to xmkmf, Makefile generator for X Window System 1414 PKG_CONFIG path to pkg-config utility 1415 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config 1416 GTK_LIBS linker flags for GTK, overriding pkg-config 1417 1418Use these variables to override the choices made by `configure' or to help 1419it to find libraries and programs with nonstandard names/locations. 1420 1421Report bugs to the package provider. 1422_ACEOF 1423ac_status=$? 1424fi 1425 1426if test "$ac_init_help" = "recursive"; then 1427 # If there are subdirs, report their specific --help. 1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1429 test -d "$ac_dir" || 1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1431 continue 1432 ac_builddir=. 1433 1434case "$ac_dir" in 1435.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1436*) 1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1438 # A ".." for each directory in $ac_dir_suffix. 1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1440 case $ac_top_builddir_sub in 1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1443 esac ;; 1444esac 1445ac_abs_top_builddir=$ac_pwd 1446ac_abs_builddir=$ac_pwd$ac_dir_suffix 1447# for backward compatibility: 1448ac_top_builddir=$ac_top_build_prefix 1449 1450case $srcdir in 1451 .) # We are building in place. 1452 ac_srcdir=. 1453 ac_top_srcdir=$ac_top_builddir_sub 1454 ac_abs_top_srcdir=$ac_pwd ;; 1455 [\\/]* | ?:[\\/]* ) # Absolute name. 1456 ac_srcdir=$srcdir$ac_dir_suffix; 1457 ac_top_srcdir=$srcdir 1458 ac_abs_top_srcdir=$srcdir ;; 1459 *) # Relative name. 1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1461 ac_top_srcdir=$ac_top_build_prefix$srcdir 1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1463esac 1464ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1465 1466 cd "$ac_dir" || { ac_status=$?; continue; } 1467 # Check for guested configure. 1468 if test -f "$ac_srcdir/configure.gnu"; then 1469 echo && 1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1471 elif test -f "$ac_srcdir/configure"; then 1472 echo && 1473 $SHELL "$ac_srcdir/configure" --help=recursive 1474 else 1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1476 fi || ac_status=$? 1477 cd "$ac_pwd" || { ac_status=$?; break; } 1478 done 1479fi 1480 1481test -n "$ac_init_help" && exit $ac_status 1482if $ac_init_version; then 1483 cat <<\_ACEOF 1484treectrl configure 2.4 1485generated by GNU Autoconf 2.67 1486 1487Copyright (C) 2010 Free Software Foundation, Inc. 1488This configure script is free software; the Free Software Foundation 1489gives unlimited permission to copy, distribute and modify it. 1490_ACEOF 1491 exit 1492fi 1493 1494## ------------------------ ## 1495## Autoconf initialization. ## 1496## ------------------------ ## 1497 1498# ac_fn_c_try_compile LINENO 1499# -------------------------- 1500# Try to compile conftest.$ac_ext, and return whether this succeeded. 1501ac_fn_c_try_compile () 1502{ 1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1504 rm -f conftest.$ac_objext 1505 if { { ac_try="$ac_compile" 1506case "(($ac_try" in 1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1508 *) ac_try_echo=$ac_try;; 1509esac 1510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1511$as_echo "$ac_try_echo"; } >&5 1512 (eval "$ac_compile") 2>conftest.err 1513 ac_status=$? 1514 if test -s conftest.err; then 1515 grep -v '^ *+' conftest.err >conftest.er1 1516 cat conftest.er1 >&5 1517 mv -f conftest.er1 conftest.err 1518 fi 1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1520 test $ac_status = 0; } && { 1521 test -z "$ac_c_werror_flag" || 1522 test ! -s conftest.err 1523 } && test -s conftest.$ac_objext; then : 1524 ac_retval=0 1525else 1526 $as_echo "$as_me: failed program was:" >&5 1527sed 's/^/| /' conftest.$ac_ext >&5 1528 1529 ac_retval=1 1530fi 1531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1532 as_fn_set_status $ac_retval 1533 1534} # ac_fn_c_try_compile 1535 1536# ac_fn_c_try_cpp LINENO 1537# ---------------------- 1538# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1539ac_fn_c_try_cpp () 1540{ 1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1542 if { { ac_try="$ac_cpp conftest.$ac_ext" 1543case "(($ac_try" in 1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1545 *) ac_try_echo=$ac_try;; 1546esac 1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1548$as_echo "$ac_try_echo"; } >&5 1549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1550 ac_status=$? 1551 if test -s conftest.err; then 1552 grep -v '^ *+' conftest.err >conftest.er1 1553 cat conftest.er1 >&5 1554 mv -f conftest.er1 conftest.err 1555 fi 1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1557 test $ac_status = 0; } > conftest.i && { 1558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1559 test ! -s conftest.err 1560 }; then : 1561 ac_retval=0 1562else 1563 $as_echo "$as_me: failed program was:" >&5 1564sed 's/^/| /' conftest.$ac_ext >&5 1565 1566 ac_retval=1 1567fi 1568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1569 as_fn_set_status $ac_retval 1570 1571} # ac_fn_c_try_cpp 1572 1573# ac_fn_c_try_run LINENO 1574# ---------------------- 1575# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1576# that executables *can* be run. 1577ac_fn_c_try_run () 1578{ 1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1580 if { { ac_try="$ac_link" 1581case "(($ac_try" in 1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1583 *) ac_try_echo=$ac_try;; 1584esac 1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1586$as_echo "$ac_try_echo"; } >&5 1587 (eval "$ac_link") 2>&5 1588 ac_status=$? 1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1590 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1591 { { case "(($ac_try" in 1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1593 *) ac_try_echo=$ac_try;; 1594esac 1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1596$as_echo "$ac_try_echo"; } >&5 1597 (eval "$ac_try") 2>&5 1598 ac_status=$? 1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1600 test $ac_status = 0; }; }; then : 1601 ac_retval=0 1602else 1603 $as_echo "$as_me: program exited with status $ac_status" >&5 1604 $as_echo "$as_me: failed program was:" >&5 1605sed 's/^/| /' conftest.$ac_ext >&5 1606 1607 ac_retval=$ac_status 1608fi 1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1611 as_fn_set_status $ac_retval 1612 1613} # ac_fn_c_try_run 1614 1615# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1616# ------------------------------------------------------- 1617# Tests whether HEADER exists and can be compiled using the include files in 1618# INCLUDES, setting the cache variable VAR accordingly. 1619ac_fn_c_check_header_compile () 1620{ 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1623$as_echo_n "checking for $2... " >&6; } 1624if eval "test \"\${$3+set}\"" = set; then : 1625 $as_echo_n "(cached) " >&6 1626else 1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1628/* end confdefs.h. */ 1629$4 1630#include <$2> 1631_ACEOF 1632if ac_fn_c_try_compile "$LINENO"; then : 1633 eval "$3=yes" 1634else 1635 eval "$3=no" 1636fi 1637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1638fi 1639eval ac_res=\$$3 1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1641$as_echo "$ac_res" >&6; } 1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1643 1644} # ac_fn_c_check_header_compile 1645 1646# ac_fn_c_try_link LINENO 1647# ----------------------- 1648# Try to link conftest.$ac_ext, and return whether this succeeded. 1649ac_fn_c_try_link () 1650{ 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 rm -f conftest.$ac_objext conftest$ac_exeext 1653 if { { ac_try="$ac_link" 1654case "(($ac_try" in 1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1656 *) ac_try_echo=$ac_try;; 1657esac 1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1659$as_echo "$ac_try_echo"; } >&5 1660 (eval "$ac_link") 2>conftest.err 1661 ac_status=$? 1662 if test -s conftest.err; then 1663 grep -v '^ *+' conftest.err >conftest.er1 1664 cat conftest.er1 >&5 1665 mv -f conftest.er1 conftest.err 1666 fi 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; } && { 1669 test -z "$ac_c_werror_flag" || 1670 test ! -s conftest.err 1671 } && test -s conftest$ac_exeext && { 1672 test "$cross_compiling" = yes || 1673 $as_test_x conftest$ac_exeext 1674 }; then : 1675 ac_retval=0 1676else 1677 $as_echo "$as_me: failed program was:" >&5 1678sed 's/^/| /' conftest.$ac_ext >&5 1679 1680 ac_retval=1 1681fi 1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1684 # interfere with the next link command; also delete a directory that is 1685 # left behind by Apple's compiler. We do this before executing the actions. 1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1688 as_fn_set_status $ac_retval 1689 1690} # ac_fn_c_try_link 1691 1692# ac_fn_c_check_func LINENO FUNC VAR 1693# ---------------------------------- 1694# Tests whether FUNC exists, setting the cache variable VAR accordingly 1695ac_fn_c_check_func () 1696{ 1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1699$as_echo_n "checking for $2... " >&6; } 1700if eval "test \"\${$3+set}\"" = set; then : 1701 $as_echo_n "(cached) " >&6 1702else 1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1704/* end confdefs.h. */ 1705/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1706 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1707#define $2 innocuous_$2 1708 1709/* System header to define __stub macros and hopefully few prototypes, 1710 which can conflict with char $2 (); below. 1711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1712 <limits.h> exists even on freestanding compilers. */ 1713 1714#ifdef __STDC__ 1715# include <limits.h> 1716#else 1717# include <assert.h> 1718#endif 1719 1720#undef $2 1721 1722/* Override any GCC internal prototype to avoid an error. 1723 Use char because int might match the return type of a GCC 1724 builtin and then its argument prototype would still apply. */ 1725#ifdef __cplusplus 1726extern "C" 1727#endif 1728char $2 (); 1729/* The GNU C library defines this for functions which it implements 1730 to always fail with ENOSYS. Some functions are actually named 1731 something starting with __ and the normal name is an alias. */ 1732#if defined __stub_$2 || defined __stub___$2 1733choke me 1734#endif 1735 1736int 1737main () 1738{ 1739return $2 (); 1740 ; 1741 return 0; 1742} 1743_ACEOF 1744if ac_fn_c_try_link "$LINENO"; then : 1745 eval "$3=yes" 1746else 1747 eval "$3=no" 1748fi 1749rm -f core conftest.err conftest.$ac_objext \ 1750 conftest$ac_exeext conftest.$ac_ext 1751fi 1752eval ac_res=\$$3 1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1754$as_echo "$ac_res" >&6; } 1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1756 1757} # ac_fn_c_check_func 1758 1759# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1760# ------------------------------------------------------- 1761# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1762# the include files in INCLUDES and setting the cache variable VAR 1763# accordingly. 1764ac_fn_c_check_header_mongrel () 1765{ 1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1767 if eval "test \"\${$3+set}\"" = set; then : 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1769$as_echo_n "checking for $2... " >&6; } 1770if eval "test \"\${$3+set}\"" = set; then : 1771 $as_echo_n "(cached) " >&6 1772fi 1773eval ac_res=\$$3 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1775$as_echo "$ac_res" >&6; } 1776else 1777 # Is the header compilable? 1778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1779$as_echo_n "checking $2 usability... " >&6; } 1780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1781/* end confdefs.h. */ 1782$4 1783#include <$2> 1784_ACEOF 1785if ac_fn_c_try_compile "$LINENO"; then : 1786 ac_header_compiler=yes 1787else 1788 ac_header_compiler=no 1789fi 1790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1792$as_echo "$ac_header_compiler" >&6; } 1793 1794# Is the header present? 1795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1796$as_echo_n "checking $2 presence... " >&6; } 1797cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1798/* end confdefs.h. */ 1799#include <$2> 1800_ACEOF 1801if ac_fn_c_try_cpp "$LINENO"; then : 1802 ac_header_preproc=yes 1803else 1804 ac_header_preproc=no 1805fi 1806rm -f conftest.err conftest.i conftest.$ac_ext 1807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1808$as_echo "$ac_header_preproc" >&6; } 1809 1810# So? What about this header? 1811case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1812 yes:no: ) 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1814$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1816$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1817 ;; 1818 no:yes:* ) 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1820$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1822$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1824$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1826$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1828$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1829 ;; 1830esac 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1832$as_echo_n "checking for $2... " >&6; } 1833if eval "test \"\${$3+set}\"" = set; then : 1834 $as_echo_n "(cached) " >&6 1835else 1836 eval "$3=\$ac_header_compiler" 1837fi 1838eval ac_res=\$$3 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1840$as_echo "$ac_res" >&6; } 1841fi 1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1843 1844} # ac_fn_c_check_header_mongrel 1845 1846# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1847# ------------------------------------------- 1848# Tests whether TYPE exists after having included INCLUDES, setting cache 1849# variable VAR accordingly. 1850ac_fn_c_check_type () 1851{ 1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1854$as_echo_n "checking for $2... " >&6; } 1855if eval "test \"\${$3+set}\"" = set; then : 1856 $as_echo_n "(cached) " >&6 1857else 1858 eval "$3=no" 1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1860/* end confdefs.h. */ 1861$4 1862int 1863main () 1864{ 1865if (sizeof ($2)) 1866 return 0; 1867 ; 1868 return 0; 1869} 1870_ACEOF 1871if ac_fn_c_try_compile "$LINENO"; then : 1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1873/* end confdefs.h. */ 1874$4 1875int 1876main () 1877{ 1878if (sizeof (($2))) 1879 return 0; 1880 ; 1881 return 0; 1882} 1883_ACEOF 1884if ac_fn_c_try_compile "$LINENO"; then : 1885 1886else 1887 eval "$3=yes" 1888fi 1889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1890fi 1891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1892fi 1893eval ac_res=\$$3 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1895$as_echo "$ac_res" >&6; } 1896 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1897 1898} # ac_fn_c_check_type 1899cat >config.log <<_ACEOF 1900This file contains any messages produced by compilers while 1901running configure, to aid debugging if configure makes a mistake. 1902 1903It was created by treectrl $as_me 2.4, which was 1904generated by GNU Autoconf 2.67. Invocation command line was 1905 1906 $ $0 $@ 1907 1908_ACEOF 1909exec 5>>config.log 1910{ 1911cat <<_ASUNAME 1912## --------- ## 1913## Platform. ## 1914## --------- ## 1915 1916hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1917uname -m = `(uname -m) 2>/dev/null || echo unknown` 1918uname -r = `(uname -r) 2>/dev/null || echo unknown` 1919uname -s = `(uname -s) 2>/dev/null || echo unknown` 1920uname -v = `(uname -v) 2>/dev/null || echo unknown` 1921 1922/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1923/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1924 1925/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1926/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1927/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1928/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1929/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1930/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1931/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1932 1933_ASUNAME 1934 1935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1936for as_dir in $PATH 1937do 1938 IFS=$as_save_IFS 1939 test -z "$as_dir" && as_dir=. 1940 $as_echo "PATH: $as_dir" 1941 done 1942IFS=$as_save_IFS 1943 1944} >&5 1945 1946cat >&5 <<_ACEOF 1947 1948 1949## ----------- ## 1950## Core tests. ## 1951## ----------- ## 1952 1953_ACEOF 1954 1955 1956# Keep a trace of the command line. 1957# Strip out --no-create and --no-recursion so they do not pile up. 1958# Strip out --silent because we don't want to record it for future runs. 1959# Also quote any args containing shell meta-characters. 1960# Make two passes to allow for proper duplicate-argument suppression. 1961ac_configure_args= 1962ac_configure_args0= 1963ac_configure_args1= 1964ac_must_keep_next=false 1965for ac_pass in 1 2 1966do 1967 for ac_arg 1968 do 1969 case $ac_arg in 1970 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1972 | -silent | --silent | --silen | --sile | --sil) 1973 continue ;; 1974 *\'*) 1975 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1976 esac 1977 case $ac_pass in 1978 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1979 2) 1980 as_fn_append ac_configure_args1 " '$ac_arg'" 1981 if test $ac_must_keep_next = true; then 1982 ac_must_keep_next=false # Got value, back to normal. 1983 else 1984 case $ac_arg in 1985 *=* | --config-cache | -C | -disable-* | --disable-* \ 1986 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1987 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1988 | -with-* | --with-* | -without-* | --without-* | --x) 1989 case "$ac_configure_args0 " in 1990 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1991 esac 1992 ;; 1993 -* ) ac_must_keep_next=true ;; 1994 esac 1995 fi 1996 as_fn_append ac_configure_args " '$ac_arg'" 1997 ;; 1998 esac 1999 done 2000done 2001{ ac_configure_args0=; unset ac_configure_args0;} 2002{ ac_configure_args1=; unset ac_configure_args1;} 2003 2004# When interrupted or exit'd, cleanup temporary files, and complete 2005# config.log. We remove comments because anyway the quotes in there 2006# would cause problems or look ugly. 2007# WARNING: Use '\'' to represent an apostrophe within the trap. 2008# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2009trap 'exit_status=$? 2010 # Save into config.log some information that might help in debugging. 2011 { 2012 echo 2013 2014 $as_echo "## ---------------- ## 2015## Cache variables. ## 2016## ---------------- ##" 2017 echo 2018 # The following way of writing the cache mishandles newlines in values, 2019( 2020 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2021 eval ac_val=\$$ac_var 2022 case $ac_val in #( 2023 *${as_nl}*) 2024 case $ac_var in #( 2025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2026$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2027 esac 2028 case $ac_var in #( 2029 _ | IFS | as_nl) ;; #( 2030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2031 *) { eval $ac_var=; unset $ac_var;} ;; 2032 esac ;; 2033 esac 2034 done 2035 (set) 2>&1 | 2036 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2037 *${as_nl}ac_space=\ *) 2038 sed -n \ 2039 "s/'\''/'\''\\\\'\'''\''/g; 2040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2041 ;; #( 2042 *) 2043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2044 ;; 2045 esac | 2046 sort 2047) 2048 echo 2049 2050 $as_echo "## ----------------- ## 2051## Output variables. ## 2052## ----------------- ##" 2053 echo 2054 for ac_var in $ac_subst_vars 2055 do 2056 eval ac_val=\$$ac_var 2057 case $ac_val in 2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2059 esac 2060 $as_echo "$ac_var='\''$ac_val'\''" 2061 done | sort 2062 echo 2063 2064 if test -n "$ac_subst_files"; then 2065 $as_echo "## ------------------- ## 2066## File substitutions. ## 2067## ------------------- ##" 2068 echo 2069 for ac_var in $ac_subst_files 2070 do 2071 eval ac_val=\$$ac_var 2072 case $ac_val in 2073 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2074 esac 2075 $as_echo "$ac_var='\''$ac_val'\''" 2076 done | sort 2077 echo 2078 fi 2079 2080 if test -s confdefs.h; then 2081 $as_echo "## ----------- ## 2082## confdefs.h. ## 2083## ----------- ##" 2084 echo 2085 cat confdefs.h 2086 echo 2087 fi 2088 test "$ac_signal" != 0 && 2089 $as_echo "$as_me: caught signal $ac_signal" 2090 $as_echo "$as_me: exit $exit_status" 2091 } >&5 2092 rm -f core *.core core.conftest.* && 2093 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2094 exit $exit_status 2095' 0 2096for ac_signal in 1 2 13 15; do 2097 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2098done 2099ac_signal=0 2100 2101# confdefs.h avoids OS command line length limits that DEFS can exceed. 2102rm -f -r conftest* confdefs.h 2103 2104$as_echo "/* confdefs.h */" > confdefs.h 2105 2106# Predefined preprocessor variables. 2107 2108cat >>confdefs.h <<_ACEOF 2109#define PACKAGE_NAME "$PACKAGE_NAME" 2110_ACEOF 2111 2112cat >>confdefs.h <<_ACEOF 2113#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2114_ACEOF 2115 2116cat >>confdefs.h <<_ACEOF 2117#define PACKAGE_VERSION "$PACKAGE_VERSION" 2118_ACEOF 2119 2120cat >>confdefs.h <<_ACEOF 2121#define PACKAGE_STRING "$PACKAGE_STRING" 2122_ACEOF 2123 2124cat >>confdefs.h <<_ACEOF 2125#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2126_ACEOF 2127 2128cat >>confdefs.h <<_ACEOF 2129#define PACKAGE_URL "$PACKAGE_URL" 2130_ACEOF 2131 2132 2133# Let the site file select an alternate cache file if it wants to. 2134# Prefer an explicitly selected file to automatically selected ones. 2135ac_site_file1=NONE 2136ac_site_file2=NONE 2137if test -n "$CONFIG_SITE"; then 2138 # We do not want a PATH search for config.site. 2139 case $CONFIG_SITE in #(( 2140 -*) ac_site_file1=./$CONFIG_SITE;; 2141 */*) ac_site_file1=$CONFIG_SITE;; 2142 *) ac_site_file1=./$CONFIG_SITE;; 2143 esac 2144elif test "x$prefix" != xNONE; then 2145 ac_site_file1=$prefix/share/config.site 2146 ac_site_file2=$prefix/etc/config.site 2147else 2148 ac_site_file1=$ac_default_prefix/share/config.site 2149 ac_site_file2=$ac_default_prefix/etc/config.site 2150fi 2151for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2152do 2153 test "x$ac_site_file" = xNONE && continue 2154 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2156$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2157 sed 's/^/| /' "$ac_site_file" >&5 2158 . "$ac_site_file" \ 2159 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2161as_fn_error $? "failed to load site script $ac_site_file 2162See \`config.log' for more details" "$LINENO" 5 ; } 2163 fi 2164done 2165 2166if test -r "$cache_file"; then 2167 # Some versions of bash will fail to source /dev/null (special files 2168 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2169 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2170 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2171$as_echo "$as_me: loading cache $cache_file" >&6;} 2172 case $cache_file in 2173 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2174 *) . "./$cache_file";; 2175 esac 2176 fi 2177else 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2179$as_echo "$as_me: creating cache $cache_file" >&6;} 2180 >$cache_file 2181fi 2182 2183# Check that the precious variables saved in the cache have kept the same 2184# value. 2185ac_cache_corrupted=false 2186for ac_var in $ac_precious_vars; do 2187 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2188 eval ac_new_set=\$ac_env_${ac_var}_set 2189 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2190 eval ac_new_val=\$ac_env_${ac_var}_value 2191 case $ac_old_set,$ac_new_set in 2192 set,) 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2194$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2195 ac_cache_corrupted=: ;; 2196 ,set) 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2198$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2199 ac_cache_corrupted=: ;; 2200 ,);; 2201 *) 2202 if test "x$ac_old_val" != "x$ac_new_val"; then 2203 # differences in whitespace do not lead to failure. 2204 ac_old_val_w=`echo x $ac_old_val` 2205 ac_new_val_w=`echo x $ac_new_val` 2206 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2208$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2209 ac_cache_corrupted=: 2210 else 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2212$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2213 eval $ac_var=\$ac_old_val 2214 fi 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2216$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2218$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2219 fi;; 2220 esac 2221 # Pass precious variables to config.status. 2222 if test "$ac_new_set" = set; then 2223 case $ac_new_val in 2224 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2225 *) ac_arg=$ac_var=$ac_new_val ;; 2226 esac 2227 case " $ac_configure_args " in 2228 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2229 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2230 esac 2231 fi 2232done 2233if $ac_cache_corrupted; then 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2237$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2238 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2239fi 2240## -------------------- ## 2241## Main body of script. ## 2242## -------------------- ## 2243 2244ac_ext=c 2245ac_cpp='$CPP $CPPFLAGS' 2246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2248ac_compiler_gnu=$ac_cv_c_compiler_gnu 2249 2250 2251PACKAGE_PATCHLEVEL=2.4.1 2252 2253cat >>confdefs.h <<_ACEOF 2254#define PACKAGE_PATCHLEVEL "$PACKAGE_PATCHLEVEL" 2255_ACEOF 2256 2257 2258 2259 # TEA extensions pass this us the version of TEA they think they 2260 # are compatible with. 2261 TEA_VERSION="3.9" 2262 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct TEA configuration" >&5 2264$as_echo_n "checking for correct TEA configuration... " >&6; } 2265 if test x"${PACKAGE_NAME}" = x ; then 2266 as_fn_error $? " 2267The PACKAGE_NAME variable must be defined by your TEA configure.in" "$LINENO" 5 2268 fi 2269 if test x"3.9" = x ; then 2270 as_fn_error $? " 2271TEA version not specified." "$LINENO" 5 2272 elif test "3.9" != "${TEA_VERSION}" ; then 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 2274$as_echo "warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 2275 else 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5 2277$as_echo "ok (TEA ${TEA_VERSION})" >&6; } 2278 fi 2279 compile_for_windows="no" 2280 if test x"${host_alias}" != x ; then 2281 case $host_alias in 2282 *mingw32*) 2283 compile_for_windows="yes" 2284 esac 2285 fi 2286 case "`uname -s`" in 2287 *win32*|*WIN32*|*MINGW32_*) 2288 compile_for_windows="yes" 2289 ;; 2290 esac 2291 if test $compile_for_windows = yes ; then 2292 # Extract the first word of "cygpath", so it can be a program name with args. 2293set dummy cygpath; ac_word=$2 2294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2295$as_echo_n "checking for $ac_word... " >&6; } 2296if test "${ac_cv_prog_CYGPATH+set}" = set; then : 2297 $as_echo_n "(cached) " >&6 2298else 2299 if test -n "$CYGPATH"; then 2300 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 2301else 2302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2303for as_dir in $PATH 2304do 2305 IFS=$as_save_IFS 2306 test -z "$as_dir" && as_dir=. 2307 for ac_exec_ext in '' $ac_executable_extensions; do 2308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2309 ac_cv_prog_CYGPATH="cygpath -w" 2310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2311 break 2 2312 fi 2313done 2314 done 2315IFS=$as_save_IFS 2316 2317 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 2318fi 2319fi 2320CYGPATH=$ac_cv_prog_CYGPATH 2321if test -n "$CYGPATH"; then 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 2323$as_echo "$CYGPATH" >&6; } 2324else 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2326$as_echo "no" >&6; } 2327fi 2328 2329 2330 EXEEXT=".exe" 2331 TEA_PLATFORM="windows" 2332 else 2333 CYGPATH=echo 2334 EXEEXT="" 2335 TEA_PLATFORM="unix" 2336 fi 2337 2338 # Check if exec_prefix is set. If not use fall back to prefix. 2339 # Note when adjusted, so that TEA_PREFIX can correct for this. 2340 # This is needed for recursive configures, since autoconf propagates 2341 # $prefix, but not $exec_prefix (doh!). 2342 if test x$exec_prefix = xNONE ; then 2343 exec_prefix_default=yes 2344 exec_prefix=$prefix 2345 fi 2346 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5 2348$as_echo "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;} 2349 2350 2351 2352 2353 # This package name must be replaced statically for AC_SUBST to work 2354 2355 # Substitute STUB_LIB_FILE in case package creates a stub library too. 2356 2357 2358 # We AC_SUBST these here to ensure they are subst'ed, 2359 # in case the user doesn't call TEA_ADD_... 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369ac_aux_dir= 2370for ac_dir in tclconfig "$srcdir"/tclconfig; do 2371 if test -f "$ac_dir/install-sh"; then 2372 ac_aux_dir=$ac_dir 2373 ac_install_sh="$ac_aux_dir/install-sh -c" 2374 break 2375 elif test -f "$ac_dir/install.sh"; then 2376 ac_aux_dir=$ac_dir 2377 ac_install_sh="$ac_aux_dir/install.sh -c" 2378 break 2379 elif test -f "$ac_dir/shtool"; then 2380 ac_aux_dir=$ac_dir 2381 ac_install_sh="$ac_aux_dir/shtool install -c" 2382 break 2383 fi 2384done 2385if test -z "$ac_aux_dir"; then 2386 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tclconfig \"$srcdir\"/tclconfig" "$LINENO" 5 2387fi 2388 2389# These three variables are undocumented and unsupported, 2390# and are intended to be withdrawn in a future Autoconf release. 2391# They can cause serious problems if a builder's source tree is in a directory 2392# whose full name contains unusual characters. 2393ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2394ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2395ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2396 2397 2398 2399#-------------------------------------------------------------------- 2400# Load the tclConfig.sh file 2401#-------------------------------------------------------------------- 2402 2403 2404 2405 # 2406 # Ok, lets find the tcl configuration 2407 # First, look for one uninstalled. 2408 # the alternative search directory is invoked by --with-tcl 2409 # 2410 2411 if test x"${no_tcl}" = x ; then 2412 # we reset no_tcl in case something fails here 2413 no_tcl=true 2414 2415# Check whether --with-tcl was given. 2416if test "${with_tcl+set}" = set; then : 2417 withval=$with_tcl; with_tclconfig="${withval}" 2418fi 2419 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5 2421$as_echo_n "checking for Tcl configuration... " >&6; } 2422 if test "${ac_cv_c_tclconfig+set}" = set; then : 2423 $as_echo_n "(cached) " >&6 2424else 2425 2426 2427 # First check to see if --with-tcl was specified. 2428 if test x"${with_tclconfig}" != x ; then 2429 case "${with_tclconfig}" in 2430 */tclConfig.sh ) 2431 if test -f "${with_tclconfig}"; then 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 2433$as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 2434 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 2435 fi ;; 2436 esac 2437 if test -f "${with_tclconfig}/tclConfig.sh" ; then 2438 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 2439 else 2440 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5 2441 fi 2442 fi 2443 2444 # then check for a private Tcl installation 2445 if test x"${ac_cv_c_tclconfig}" = x ; then 2446 for i in \ 2447 ../tcl \ 2448 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2449 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 2450 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 2451 ../../tcl \ 2452 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2453 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 2454 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2455 ../../../tcl \ 2456 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2457 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2458 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2459 if test "${TEA_PLATFORM}" = "windows" \ 2460 -a -f "$i/win/tclConfig.sh" ; then 2461 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2462 break 2463 fi 2464 if test -f "$i/unix/tclConfig.sh" ; then 2465 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2466 break 2467 fi 2468 done 2469 fi 2470 2471 # on Darwin, check in Framework installation locations 2472 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2473 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2474 `ls -d /Library/Frameworks 2>/dev/null` \ 2475 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2476 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2477 ; do 2478 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2479 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2480 break 2481 fi 2482 done 2483 fi 2484 2485 # TEA specific: on Windows, check in common installation locations 2486 if test "${TEA_PLATFORM}" = "windows" \ 2487 -a x"${ac_cv_c_tclconfig}" = x ; then 2488 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2489 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2490 ; do 2491 if test -f "$i/tclConfig.sh" ; then 2492 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2493 break 2494 fi 2495 done 2496 fi 2497 2498 # check in a few common install locations 2499 if test x"${ac_cv_c_tclconfig}" = x ; then 2500 for i in `ls -d ${libdir} 2>/dev/null` \ 2501 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2502 `ls -d ${prefix}/lib 2>/dev/null` \ 2503 `ls -d /usr/local/lib 2>/dev/null` \ 2504 `ls -d /usr/contrib/lib 2>/dev/null` \ 2505 `ls -d /usr/lib 2>/dev/null` \ 2506 `ls -d /usr/lib64 2>/dev/null` \ 2507 ; do 2508 if test -f "$i/tclConfig.sh" ; then 2509 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2510 break 2511 fi 2512 done 2513 fi 2514 2515 # check in a few other private locations 2516 if test x"${ac_cv_c_tclconfig}" = x ; then 2517 for i in \ 2518 ${srcdir}/../tcl \ 2519 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2520 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2521 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2522 if test "${TEA_PLATFORM}" = "windows" \ 2523 -a -f "$i/win/tclConfig.sh" ; then 2524 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2525 break 2526 fi 2527 if test -f "$i/unix/tclConfig.sh" ; then 2528 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2529 break 2530 fi 2531 done 2532 fi 2533 2534fi 2535 2536 2537 if test x"${ac_cv_c_tclconfig}" = x ; then 2538 TCL_BIN_DIR="# no Tcl configs found" 2539 as_fn_error $? "Can't find Tcl configuration definitions" "$LINENO" 5 2540 else 2541 no_tcl= 2542 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2544$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2545 fi 2546 fi 2547 2548 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2550$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; } 2551 2552 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 2554$as_echo "loading" >&6; } 2555 . "${TCL_BIN_DIR}/tclConfig.sh" 2556 else 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2558$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2559 fi 2560 2561 # eval is required to do the TCL_DBGX substitution 2562 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2563 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2564 2565 # If the TCL_BIN_DIR is the build directory (not the install directory), 2566 # then set the common variable name to the value of the build variables. 2567 # For example, the variable TCL_LIB_SPEC will be set to the value 2568 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2569 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2570 # installed and uninstalled version of Tcl. 2571 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2572 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2573 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2574 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2575 elif test "`uname -s`" = "Darwin"; then 2576 # If Tcl was built as a framework, attempt to use the libraries 2577 # from the framework at the given location so that linking works 2578 # against Tcl.framework installed in an arbitrary location. 2579 case ${TCL_DEFS} in 2580 *TCL_FRAMEWORK*) 2581 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2582 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2583 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2584 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2585 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2586 break 2587 fi 2588 done 2589 fi 2590 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2591 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2592 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2593 fi 2594 ;; 2595 esac 2596 fi 2597 2598 # eval is required to do the TCL_DBGX substitution 2599 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2600 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2601 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2602 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 case "`uname -s`" in 2618 *CYGWIN_*) 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin variant" >&5 2620$as_echo_n "checking for cygwin variant... " >&6; } 2621 case ${TCL_EXTRA_CFLAGS} in 2622 *-mwin32*|*-mno-cygwin*) 2623 TEA_PLATFORM="windows" 2624 CFLAGS="$CFLAGS -mwin32" 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: win32" >&5 2626$as_echo "win32" >&6; } 2627 ;; 2628 *) 2629 TEA_PLATFORM="unix" 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix" >&5 2631$as_echo "unix" >&6; } 2632 ;; 2633 esac 2634 EXEEXT=".exe" 2635 ;; 2636 *) 2637 ;; 2638 esac 2639 2640 # The BUILD_$pkg is to define the correct extern storage class 2641 # handling when making this package 2642 2643cat >>confdefs.h <<_ACEOF 2644#define BUILD_${PACKAGE_NAME} /**/ 2645_ACEOF 2646 2647 # Do this here as we have fully defined TEA_PLATFORM now 2648 if test "${TEA_PLATFORM}" = "windows" ; then 2649 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp *.ilk vc*.pch" 2650 fi 2651 2652 # TEA specific: 2653 2654 2655 2656 2657 2658 2659 2660 2661#-------------------------------------------------------------------- 2662# Load the tkConfig.sh file if necessary (Tk extension) 2663#-------------------------------------------------------------------- 2664 2665 2666 # 2667 # Ok, lets find the tk configuration 2668 # First, look for one uninstalled. 2669 # the alternative search directory is invoked by --with-tk 2670 # 2671 2672 if test x"${no_tk}" = x ; then 2673 # we reset no_tk in case something fails here 2674 no_tk=true 2675 2676# Check whether --with-tk was given. 2677if test "${with_tk+set}" = set; then : 2678 withval=$with_tk; with_tkconfig="${withval}" 2679fi 2680 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5 2682$as_echo_n "checking for Tk configuration... " >&6; } 2683 if test "${ac_cv_c_tkconfig+set}" = set; then : 2684 $as_echo_n "(cached) " >&6 2685else 2686 2687 2688 # First check to see if --with-tkconfig was specified. 2689 if test x"${with_tkconfig}" != x ; then 2690 case "${with_tkconfig}" in 2691 */tkConfig.sh ) 2692 if test -f "${with_tkconfig}"; then 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5 2694$as_echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;} 2695 with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`" 2696 fi ;; 2697 esac 2698 if test -f "${with_tkconfig}/tkConfig.sh" ; then 2699 ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`" 2700 else 2701 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5 2702 fi 2703 fi 2704 2705 # then check for a private Tk library 2706 if test x"${ac_cv_c_tkconfig}" = x ; then 2707 for i in \ 2708 ../tk \ 2709 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2710 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ 2711 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ 2712 ../../tk \ 2713 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2714 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ 2715 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ 2716 ../../../tk \ 2717 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2718 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ 2719 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do 2720 if test "${TEA_PLATFORM}" = "windows" \ 2721 -a -f "$i/win/tkConfig.sh" ; then 2722 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2723 break 2724 fi 2725 if test -f "$i/unix/tkConfig.sh" ; then 2726 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2727 break 2728 fi 2729 done 2730 fi 2731 2732 # on Darwin, check in Framework installation locations 2733 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then 2734 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2735 `ls -d /Library/Frameworks 2>/dev/null` \ 2736 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2737 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2738 ; do 2739 if test -f "$i/Tk.framework/tkConfig.sh" ; then 2740 ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`" 2741 break 2742 fi 2743 done 2744 fi 2745 2746 # check in a few common install locations 2747 if test x"${ac_cv_c_tkconfig}" = x ; then 2748 for i in `ls -d ${libdir} 2>/dev/null` \ 2749 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2750 `ls -d ${prefix}/lib 2>/dev/null` \ 2751 `ls -d /usr/local/lib 2>/dev/null` \ 2752 `ls -d /usr/contrib/lib 2>/dev/null` \ 2753 `ls -d /usr/lib 2>/dev/null` \ 2754 `ls -d /usr/lib64 2>/dev/null` \ 2755 ; do 2756 if test -f "$i/tkConfig.sh" ; then 2757 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2758 break 2759 fi 2760 done 2761 fi 2762 2763 # TEA specific: on Windows, check in common installation locations 2764 if test "${TEA_PLATFORM}" = "windows" \ 2765 -a x"${ac_cv_c_tkconfig}" = x ; then 2766 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2767 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2768 ; do 2769 if test -f "$i/tkConfig.sh" ; then 2770 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2771 break 2772 fi 2773 done 2774 fi 2775 2776 # check in a few other private locations 2777 if test x"${ac_cv_c_tkconfig}" = x ; then 2778 for i in \ 2779 ${srcdir}/../tk \ 2780 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2781 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ 2782 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do 2783 if test "${TEA_PLATFORM}" = "windows" \ 2784 -a -f "$i/win/tkConfig.sh" ; then 2785 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2786 break 2787 fi 2788 if test -f "$i/unix/tkConfig.sh" ; then 2789 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2790 break 2791 fi 2792 done 2793 fi 2794 2795fi 2796 2797 2798 if test x"${ac_cv_c_tkconfig}" = x ; then 2799 TK_BIN_DIR="# no Tk configs found" 2800 as_fn_error $? "Can't find Tk configuration definitions" "$LINENO" 5 2801 else 2802 no_tk= 2803 TK_BIN_DIR="${ac_cv_c_tkconfig}" 2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 2805$as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2806 fi 2807 fi 2808 2809 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 2811$as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; } 2812 2813 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 2815$as_echo "loading" >&6; } 2816 . "${TK_BIN_DIR}/tkConfig.sh" 2817 else 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 2819$as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2820 fi 2821 2822 # eval is required to do the TK_DBGX substitution 2823 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" 2824 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" 2825 2826 # If the TK_BIN_DIR is the build directory (not the install directory), 2827 # then set the common variable name to the value of the build variables. 2828 # For example, the variable TK_LIB_SPEC will be set to the value 2829 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC 2830 # instead of TK_BUILD_LIB_SPEC since it will work with both an 2831 # installed and uninstalled version of Tcl. 2832 if test -f "${TK_BIN_DIR}/Makefile" ; then 2833 TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}" 2834 TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}" 2835 TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}" 2836 elif test "`uname -s`" = "Darwin"; then 2837 # If Tk was built as a framework, attempt to use the libraries 2838 # from the framework at the given location so that linking works 2839 # against Tk.framework installed in an arbitrary location. 2840 case ${TK_DEFS} in 2841 *TK_FRAMEWORK*) 2842 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then 2843 for i in "`cd "${TK_BIN_DIR}"; pwd`" \ 2844 "`cd "${TK_BIN_DIR}"/../..; pwd`"; do 2845 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then 2846 TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}" 2847 break 2848 fi 2849 done 2850 fi 2851 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then 2852 TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}" 2853 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" 2854 fi 2855 ;; 2856 esac 2857 fi 2858 2859 # eval is required to do the TK_DBGX substitution 2860 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" 2861 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" 2862 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" 2863 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" 2864 2865 # TEA specific: Ensure windowingsystem is defined 2866 if test "${TEA_PLATFORM}" = "unix" ; then 2867 case ${TK_DEFS} in 2868 *MAC_OSX_TK*) 2869 2870$as_echo "#define MAC_OSX_TK 1" >>confdefs.h 2871 2872 TEA_WINDOWINGSYSTEM="aqua" 2873 ;; 2874 *) 2875 TEA_WINDOWINGSYSTEM="x11" 2876 ;; 2877 esac 2878 elif test "${TEA_PLATFORM}" = "windows" ; then 2879 TEA_WINDOWINGSYSTEM="win32" 2880 fi 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 # TEA specific: 2895 2896 2897 2898 2899#----------------------------------------------------------------------- 2900# Handle the --prefix=... option by defaulting to what Tcl gave. 2901# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2902#----------------------------------------------------------------------- 2903 2904 2905 if test "${prefix}" = "NONE"; then 2906 prefix_default=yes 2907 if test x"${TCL_PREFIX}" != x; then 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2909$as_echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2910 prefix=${TCL_PREFIX} 2911 else 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5 2913$as_echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2914 prefix=/usr/local 2915 fi 2916 fi 2917 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2918 -o x"${exec_prefix_default}" = x"yes" ; then 2919 if test x"${TCL_EXEC_PREFIX}" != x; then 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2921$as_echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2922 exec_prefix=${TCL_EXEC_PREFIX} 2923 else 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5 2925$as_echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2926 exec_prefix=$prefix 2927 fi 2928 fi 2929 2930 2931#----------------------------------------------------------------------- 2932# Standard compiler checks. 2933# This sets up CC by using the CC env var, or looks for gcc otherwise. 2934# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2935# the basic setup necessary to compile executables. 2936#----------------------------------------------------------------------- 2937 2938# Find a good install program. We prefer a C program (faster), 2939# so one script is as good as another. But avoid the broken or 2940# incompatible versions: 2941# SysV /etc/install, /usr/sbin/install 2942# SunOS /usr/etc/install 2943# IRIX /sbin/install 2944# AIX /bin/install 2945# AmigaOS /C/install, which installs bootblocks on floppy discs 2946# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2947# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2948# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2949# OS/2's system install, which has a completely different semantic 2950# ./install, which can be erroneously created by make from ./install.sh. 2951# Reject install programs that cannot install multiple files. 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2953$as_echo_n "checking for a BSD-compatible install... " >&6; } 2954if test -z "$INSTALL"; then 2955if test "${ac_cv_path_install+set}" = set; then : 2956 $as_echo_n "(cached) " >&6 2957else 2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2959for as_dir in $PATH 2960do 2961 IFS=$as_save_IFS 2962 test -z "$as_dir" && as_dir=. 2963 # Account for people who put trailing slashes in PATH elements. 2964case $as_dir/ in #(( 2965 ./ | .// | /[cC]/* | \ 2966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2967 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2968 /usr/ucb/* ) ;; 2969 *) 2970 # OSF1 and SCO ODT 3.0 have their own names for install. 2971 # Don't use installbsd from OSF since it installs stuff as root 2972 # by default. 2973 for ac_prog in ginstall scoinst install; do 2974 for ac_exec_ext in '' $ac_executable_extensions; do 2975 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2976 if test $ac_prog = install && 2977 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2978 # AIX install. It has an incompatible calling convention. 2979 : 2980 elif test $ac_prog = install && 2981 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2982 # program-specific install script used by HP pwplus--don't use. 2983 : 2984 else 2985 rm -rf conftest.one conftest.two conftest.dir 2986 echo one > conftest.one 2987 echo two > conftest.two 2988 mkdir conftest.dir 2989 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2990 test -s conftest.one && test -s conftest.two && 2991 test -s conftest.dir/conftest.one && 2992 test -s conftest.dir/conftest.two 2993 then 2994 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2995 break 3 2996 fi 2997 fi 2998 fi 2999 done 3000 done 3001 ;; 3002esac 3003 3004 done 3005IFS=$as_save_IFS 3006 3007rm -rf conftest.one conftest.two conftest.dir 3008 3009fi 3010 if test "${ac_cv_path_install+set}" = set; then 3011 INSTALL=$ac_cv_path_install 3012 else 3013 # As a last resort, use the slow shell script. Don't cache a 3014 # value for INSTALL within a source directory, because that will 3015 # break other packages using the cache if that directory is 3016 # removed, or if the value is a relative name. 3017 INSTALL=$ac_install_sh 3018 fi 3019fi 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3021$as_echo "$INSTALL" >&6; } 3022 3023# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3024# It thinks the first close brace ends the variable substitution. 3025test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3026 3027test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3028 3029test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3030 3031 3032 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 3033 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 3034 3035 # If the user did not set CFLAGS, set it now to keep 3036 # the AC_PROG_CC macro from adding "-g -O2". 3037 if test "${CFLAGS+set}" != "set" ; then 3038 CFLAGS="" 3039 fi 3040 3041 ac_ext=c 3042ac_cpp='$CPP $CPPFLAGS' 3043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3045ac_compiler_gnu=$ac_cv_c_compiler_gnu 3046if test -n "$ac_tool_prefix"; then 3047 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3048set dummy ${ac_tool_prefix}gcc; ac_word=$2 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3050$as_echo_n "checking for $ac_word... " >&6; } 3051if test "${ac_cv_prog_CC+set}" = set; then : 3052 $as_echo_n "(cached) " >&6 3053else 3054 if test -n "$CC"; then 3055 ac_cv_prog_CC="$CC" # Let the user override the test. 3056else 3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3058for as_dir in $PATH 3059do 3060 IFS=$as_save_IFS 3061 test -z "$as_dir" && as_dir=. 3062 for ac_exec_ext in '' $ac_executable_extensions; do 3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3064 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3066 break 2 3067 fi 3068done 3069 done 3070IFS=$as_save_IFS 3071 3072fi 3073fi 3074CC=$ac_cv_prog_CC 3075if test -n "$CC"; then 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3077$as_echo "$CC" >&6; } 3078else 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3080$as_echo "no" >&6; } 3081fi 3082 3083 3084fi 3085if test -z "$ac_cv_prog_CC"; then 3086 ac_ct_CC=$CC 3087 # Extract the first word of "gcc", so it can be a program name with args. 3088set dummy gcc; ac_word=$2 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3090$as_echo_n "checking for $ac_word... " >&6; } 3091if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3092 $as_echo_n "(cached) " >&6 3093else 3094 if test -n "$ac_ct_CC"; then 3095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3096else 3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3098for as_dir in $PATH 3099do 3100 IFS=$as_save_IFS 3101 test -z "$as_dir" && as_dir=. 3102 for ac_exec_ext in '' $ac_executable_extensions; do 3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3104 ac_cv_prog_ac_ct_CC="gcc" 3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3106 break 2 3107 fi 3108done 3109 done 3110IFS=$as_save_IFS 3111 3112fi 3113fi 3114ac_ct_CC=$ac_cv_prog_ac_ct_CC 3115if test -n "$ac_ct_CC"; then 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3117$as_echo "$ac_ct_CC" >&6; } 3118else 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3120$as_echo "no" >&6; } 3121fi 3122 3123 if test "x$ac_ct_CC" = x; then 3124 CC="" 3125 else 3126 case $cross_compiling:$ac_tool_warned in 3127yes:) 3128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3130ac_tool_warned=yes ;; 3131esac 3132 CC=$ac_ct_CC 3133 fi 3134else 3135 CC="$ac_cv_prog_CC" 3136fi 3137 3138if test -z "$CC"; then 3139 if test -n "$ac_tool_prefix"; then 3140 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3141set dummy ${ac_tool_prefix}cc; ac_word=$2 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3143$as_echo_n "checking for $ac_word... " >&6; } 3144if test "${ac_cv_prog_CC+set}" = set; then : 3145 $as_echo_n "(cached) " >&6 3146else 3147 if test -n "$CC"; then 3148 ac_cv_prog_CC="$CC" # Let the user override the test. 3149else 3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3151for as_dir in $PATH 3152do 3153 IFS=$as_save_IFS 3154 test -z "$as_dir" && as_dir=. 3155 for ac_exec_ext in '' $ac_executable_extensions; do 3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3157 ac_cv_prog_CC="${ac_tool_prefix}cc" 3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3159 break 2 3160 fi 3161done 3162 done 3163IFS=$as_save_IFS 3164 3165fi 3166fi 3167CC=$ac_cv_prog_CC 3168if test -n "$CC"; then 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3170$as_echo "$CC" >&6; } 3171else 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3173$as_echo "no" >&6; } 3174fi 3175 3176 3177 fi 3178fi 3179if test -z "$CC"; then 3180 # Extract the first word of "cc", so it can be a program name with args. 3181set dummy cc; ac_word=$2 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3183$as_echo_n "checking for $ac_word... " >&6; } 3184if test "${ac_cv_prog_CC+set}" = set; then : 3185 $as_echo_n "(cached) " >&6 3186else 3187 if test -n "$CC"; then 3188 ac_cv_prog_CC="$CC" # Let the user override the test. 3189else 3190 ac_prog_rejected=no 3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3192for as_dir in $PATH 3193do 3194 IFS=$as_save_IFS 3195 test -z "$as_dir" && as_dir=. 3196 for ac_exec_ext in '' $ac_executable_extensions; do 3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3198 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3199 ac_prog_rejected=yes 3200 continue 3201 fi 3202 ac_cv_prog_CC="cc" 3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3204 break 2 3205 fi 3206done 3207 done 3208IFS=$as_save_IFS 3209 3210if test $ac_prog_rejected = yes; then 3211 # We found a bogon in the path, so make sure we never use it. 3212 set dummy $ac_cv_prog_CC 3213 shift 3214 if test $# != 0; then 3215 # We chose a different compiler from the bogus one. 3216 # However, it has the same basename, so the bogon will be chosen 3217 # first if we set CC to just the basename; use the full file name. 3218 shift 3219 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3220 fi 3221fi 3222fi 3223fi 3224CC=$ac_cv_prog_CC 3225if test -n "$CC"; then 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3227$as_echo "$CC" >&6; } 3228else 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3230$as_echo "no" >&6; } 3231fi 3232 3233 3234fi 3235if test -z "$CC"; then 3236 if test -n "$ac_tool_prefix"; then 3237 for ac_prog in cl.exe 3238 do 3239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3240set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3242$as_echo_n "checking for $ac_word... " >&6; } 3243if test "${ac_cv_prog_CC+set}" = set; then : 3244 $as_echo_n "(cached) " >&6 3245else 3246 if test -n "$CC"; then 3247 ac_cv_prog_CC="$CC" # Let the user override the test. 3248else 3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3250for as_dir in $PATH 3251do 3252 IFS=$as_save_IFS 3253 test -z "$as_dir" && as_dir=. 3254 for ac_exec_ext in '' $ac_executable_extensions; do 3255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3256 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3258 break 2 3259 fi 3260done 3261 done 3262IFS=$as_save_IFS 3263 3264fi 3265fi 3266CC=$ac_cv_prog_CC 3267if test -n "$CC"; then 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3269$as_echo "$CC" >&6; } 3270else 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3272$as_echo "no" >&6; } 3273fi 3274 3275 3276 test -n "$CC" && break 3277 done 3278fi 3279if test -z "$CC"; then 3280 ac_ct_CC=$CC 3281 for ac_prog in cl.exe 3282do 3283 # Extract the first word of "$ac_prog", so it can be a program name with args. 3284set dummy $ac_prog; ac_word=$2 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3286$as_echo_n "checking for $ac_word... " >&6; } 3287if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3288 $as_echo_n "(cached) " >&6 3289else 3290 if test -n "$ac_ct_CC"; then 3291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3292else 3293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3294for as_dir in $PATH 3295do 3296 IFS=$as_save_IFS 3297 test -z "$as_dir" && as_dir=. 3298 for ac_exec_ext in '' $ac_executable_extensions; do 3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3300 ac_cv_prog_ac_ct_CC="$ac_prog" 3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3302 break 2 3303 fi 3304done 3305 done 3306IFS=$as_save_IFS 3307 3308fi 3309fi 3310ac_ct_CC=$ac_cv_prog_ac_ct_CC 3311if test -n "$ac_ct_CC"; then 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3313$as_echo "$ac_ct_CC" >&6; } 3314else 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3316$as_echo "no" >&6; } 3317fi 3318 3319 3320 test -n "$ac_ct_CC" && break 3321done 3322 3323 if test "x$ac_ct_CC" = x; then 3324 CC="" 3325 else 3326 case $cross_compiling:$ac_tool_warned in 3327yes:) 3328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3330ac_tool_warned=yes ;; 3331esac 3332 CC=$ac_ct_CC 3333 fi 3334fi 3335 3336fi 3337 3338 3339test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3341as_fn_error $? "no acceptable C compiler found in \$PATH 3342See \`config.log' for more details" "$LINENO" 5 ; } 3343 3344# Provide some information about the compiler. 3345$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3346set X $ac_compile 3347ac_compiler=$2 3348for ac_option in --version -v -V -qversion; do 3349 { { ac_try="$ac_compiler $ac_option >&5" 3350case "(($ac_try" in 3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3352 *) ac_try_echo=$ac_try;; 3353esac 3354eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3355$as_echo "$ac_try_echo"; } >&5 3356 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3357 ac_status=$? 3358 if test -s conftest.err; then 3359 sed '10a\ 3360... rest of stderr output deleted ... 3361 10q' conftest.err >conftest.er1 3362 cat conftest.er1 >&5 3363 fi 3364 rm -f conftest.er1 conftest.err 3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3366 test $ac_status = 0; } 3367done 3368 3369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3370/* end confdefs.h. */ 3371 3372int 3373main () 3374{ 3375 3376 ; 3377 return 0; 3378} 3379_ACEOF 3380ac_clean_files_save=$ac_clean_files 3381ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3382# Try to create an executable without -o first, disregard a.out. 3383# It will help us diagnose broken compilers, and finding out an intuition 3384# of exeext. 3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3386$as_echo_n "checking whether the C compiler works... " >&6; } 3387ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3388 3389# The possible output files: 3390ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3391 3392ac_rmfiles= 3393for ac_file in $ac_files 3394do 3395 case $ac_file in 3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3397 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3398 esac 3399done 3400rm -f $ac_rmfiles 3401 3402if { { ac_try="$ac_link_default" 3403case "(($ac_try" in 3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3405 *) ac_try_echo=$ac_try;; 3406esac 3407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3408$as_echo "$ac_try_echo"; } >&5 3409 (eval "$ac_link_default") 2>&5 3410 ac_status=$? 3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3412 test $ac_status = 0; }; then : 3413 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3414# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3415# in a Makefile. We should not override ac_cv_exeext if it was cached, 3416# so that the user can short-circuit this test for compilers unknown to 3417# Autoconf. 3418for ac_file in $ac_files '' 3419do 3420 test -f "$ac_file" || continue 3421 case $ac_file in 3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3423 ;; 3424 [ab].out ) 3425 # We found the default executable, but exeext='' is most 3426 # certainly right. 3427 break;; 3428 *.* ) 3429 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3430 then :; else 3431 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3432 fi 3433 # We set ac_cv_exeext here because the later test for it is not 3434 # safe: cross compilers may not add the suffix if given an `-o' 3435 # argument, so we may need to know it at that point already. 3436 # Even if this section looks crufty: it has the advantage of 3437 # actually working. 3438 break;; 3439 * ) 3440 break;; 3441 esac 3442done 3443test "$ac_cv_exeext" = no && ac_cv_exeext= 3444 3445else 3446 ac_file='' 3447fi 3448if test -z "$ac_file"; then : 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3450$as_echo "no" >&6; } 3451$as_echo "$as_me: failed program was:" >&5 3452sed 's/^/| /' conftest.$ac_ext >&5 3453 3454{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3456as_fn_error 77 "C compiler cannot create executables 3457See \`config.log' for more details" "$LINENO" 5 ; } 3458else 3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3460$as_echo "yes" >&6; } 3461fi 3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3463$as_echo_n "checking for C compiler default output file name... " >&6; } 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3465$as_echo "$ac_file" >&6; } 3466ac_exeext=$ac_cv_exeext 3467 3468rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3469ac_clean_files=$ac_clean_files_save 3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3471$as_echo_n "checking for suffix of executables... " >&6; } 3472if { { ac_try="$ac_link" 3473case "(($ac_try" in 3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3475 *) ac_try_echo=$ac_try;; 3476esac 3477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3478$as_echo "$ac_try_echo"; } >&5 3479 (eval "$ac_link") 2>&5 3480 ac_status=$? 3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3482 test $ac_status = 0; }; then : 3483 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3484# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3485# work properly (i.e., refer to `conftest.exe'), while it won't with 3486# `rm'. 3487for ac_file in conftest.exe conftest conftest.*; do 3488 test -f "$ac_file" || continue 3489 case $ac_file in 3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3491 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3492 break;; 3493 * ) break;; 3494 esac 3495done 3496else 3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3499as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3500See \`config.log' for more details" "$LINENO" 5 ; } 3501fi 3502rm -f conftest conftest$ac_cv_exeext 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3504$as_echo "$ac_cv_exeext" >&6; } 3505 3506rm -f conftest.$ac_ext 3507EXEEXT=$ac_cv_exeext 3508ac_exeext=$EXEEXT 3509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3510/* end confdefs.h. */ 3511#include <stdio.h> 3512int 3513main () 3514{ 3515FILE *f = fopen ("conftest.out", "w"); 3516 return ferror (f) || fclose (f) != 0; 3517 3518 ; 3519 return 0; 3520} 3521_ACEOF 3522ac_clean_files="$ac_clean_files conftest.out" 3523# Check that the compiler produces executables we can run. If not, either 3524# the compiler is broken, or we cross compile. 3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3526$as_echo_n "checking whether we are cross compiling... " >&6; } 3527if test "$cross_compiling" != yes; then 3528 { { ac_try="$ac_link" 3529case "(($ac_try" in 3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3531 *) ac_try_echo=$ac_try;; 3532esac 3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3534$as_echo "$ac_try_echo"; } >&5 3535 (eval "$ac_link") 2>&5 3536 ac_status=$? 3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3538 test $ac_status = 0; } 3539 if { ac_try='./conftest$ac_cv_exeext' 3540 { { case "(($ac_try" in 3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3542 *) ac_try_echo=$ac_try;; 3543esac 3544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3545$as_echo "$ac_try_echo"; } >&5 3546 (eval "$ac_try") 2>&5 3547 ac_status=$? 3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3549 test $ac_status = 0; }; }; then 3550 cross_compiling=no 3551 else 3552 if test "$cross_compiling" = maybe; then 3553 cross_compiling=yes 3554 else 3555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3557as_fn_error $? "cannot run C compiled programs. 3558If you meant to cross compile, use \`--host'. 3559See \`config.log' for more details" "$LINENO" 5 ; } 3560 fi 3561 fi 3562fi 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3564$as_echo "$cross_compiling" >&6; } 3565 3566rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3567ac_clean_files=$ac_clean_files_save 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3569$as_echo_n "checking for suffix of object files... " >&6; } 3570if test "${ac_cv_objext+set}" = set; then : 3571 $as_echo_n "(cached) " >&6 3572else 3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3574/* end confdefs.h. */ 3575 3576int 3577main () 3578{ 3579 3580 ; 3581 return 0; 3582} 3583_ACEOF 3584rm -f conftest.o conftest.obj 3585if { { ac_try="$ac_compile" 3586case "(($ac_try" in 3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3588 *) ac_try_echo=$ac_try;; 3589esac 3590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3591$as_echo "$ac_try_echo"; } >&5 3592 (eval "$ac_compile") 2>&5 3593 ac_status=$? 3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3595 test $ac_status = 0; }; then : 3596 for ac_file in conftest.o conftest.obj conftest.*; do 3597 test -f "$ac_file" || continue; 3598 case $ac_file in 3599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3600 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3601 break;; 3602 esac 3603done 3604else 3605 $as_echo "$as_me: failed program was:" >&5 3606sed 's/^/| /' conftest.$ac_ext >&5 3607 3608{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3610as_fn_error $? "cannot compute suffix of object files: cannot compile 3611See \`config.log' for more details" "$LINENO" 5 ; } 3612fi 3613rm -f conftest.$ac_cv_objext conftest.$ac_ext 3614fi 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3616$as_echo "$ac_cv_objext" >&6; } 3617OBJEXT=$ac_cv_objext 3618ac_objext=$OBJEXT 3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3620$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3621if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3622 $as_echo_n "(cached) " >&6 3623else 3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3625/* end confdefs.h. */ 3626 3627int 3628main () 3629{ 3630#ifndef __GNUC__ 3631 choke me 3632#endif 3633 3634 ; 3635 return 0; 3636} 3637_ACEOF 3638if ac_fn_c_try_compile "$LINENO"; then : 3639 ac_compiler_gnu=yes 3640else 3641 ac_compiler_gnu=no 3642fi 3643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3644ac_cv_c_compiler_gnu=$ac_compiler_gnu 3645 3646fi 3647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3648$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3649if test $ac_compiler_gnu = yes; then 3650 GCC=yes 3651else 3652 GCC= 3653fi 3654ac_test_CFLAGS=${CFLAGS+set} 3655ac_save_CFLAGS=$CFLAGS 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3657$as_echo_n "checking whether $CC accepts -g... " >&6; } 3658if test "${ac_cv_prog_cc_g+set}" = set; then : 3659 $as_echo_n "(cached) " >&6 3660else 3661 ac_save_c_werror_flag=$ac_c_werror_flag 3662 ac_c_werror_flag=yes 3663 ac_cv_prog_cc_g=no 3664 CFLAGS="-g" 3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3666/* end confdefs.h. */ 3667 3668int 3669main () 3670{ 3671 3672 ; 3673 return 0; 3674} 3675_ACEOF 3676if ac_fn_c_try_compile "$LINENO"; then : 3677 ac_cv_prog_cc_g=yes 3678else 3679 CFLAGS="" 3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3681/* end confdefs.h. */ 3682 3683int 3684main () 3685{ 3686 3687 ; 3688 return 0; 3689} 3690_ACEOF 3691if ac_fn_c_try_compile "$LINENO"; then : 3692 3693else 3694 ac_c_werror_flag=$ac_save_c_werror_flag 3695 CFLAGS="-g" 3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3697/* end confdefs.h. */ 3698 3699int 3700main () 3701{ 3702 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707if ac_fn_c_try_compile "$LINENO"; then : 3708 ac_cv_prog_cc_g=yes 3709fi 3710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3711fi 3712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3713fi 3714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3715 ac_c_werror_flag=$ac_save_c_werror_flag 3716fi 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3718$as_echo "$ac_cv_prog_cc_g" >&6; } 3719if test "$ac_test_CFLAGS" = set; then 3720 CFLAGS=$ac_save_CFLAGS 3721elif test $ac_cv_prog_cc_g = yes; then 3722 if test "$GCC" = yes; then 3723 CFLAGS="-g -O2" 3724 else 3725 CFLAGS="-g" 3726 fi 3727else 3728 if test "$GCC" = yes; then 3729 CFLAGS="-O2" 3730 else 3731 CFLAGS= 3732 fi 3733fi 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3735$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3736if test "${ac_cv_prog_cc_c89+set}" = set; then : 3737 $as_echo_n "(cached) " >&6 3738else 3739 ac_cv_prog_cc_c89=no 3740ac_save_CC=$CC 3741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3742/* end confdefs.h. */ 3743#include <stdarg.h> 3744#include <stdio.h> 3745#include <sys/types.h> 3746#include <sys/stat.h> 3747/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3748struct buf { int x; }; 3749FILE * (*rcsopen) (struct buf *, struct stat *, int); 3750static char *e (p, i) 3751 char **p; 3752 int i; 3753{ 3754 return p[i]; 3755} 3756static char *f (char * (*g) (char **, int), char **p, ...) 3757{ 3758 char *s; 3759 va_list v; 3760 va_start (v,p); 3761 s = g (p, va_arg (v,int)); 3762 va_end (v); 3763 return s; 3764} 3765 3766/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3767 function prototypes and stuff, but not '\xHH' hex character constants. 3768 These don't provoke an error unfortunately, instead are silently treated 3769 as 'x'. The following induces an error, until -std is added to get 3770 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3771 array size at least. It's necessary to write '\x00'==0 to get something 3772 that's true only with -std. */ 3773int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3774 3775/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3776 inside strings and character constants. */ 3777#define FOO(x) 'x' 3778int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3779 3780int test (int i, double x); 3781struct s1 {int (*f) (int a);}; 3782struct s2 {int (*f) (double a);}; 3783int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3784int argc; 3785char **argv; 3786int 3787main () 3788{ 3789return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3790 ; 3791 return 0; 3792} 3793_ACEOF 3794for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3795 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3796do 3797 CC="$ac_save_CC $ac_arg" 3798 if ac_fn_c_try_compile "$LINENO"; then : 3799 ac_cv_prog_cc_c89=$ac_arg 3800fi 3801rm -f core conftest.err conftest.$ac_objext 3802 test "x$ac_cv_prog_cc_c89" != "xno" && break 3803done 3804rm -f conftest.$ac_ext 3805CC=$ac_save_CC 3806 3807fi 3808# AC_CACHE_VAL 3809case "x$ac_cv_prog_cc_c89" in 3810 x) 3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3812$as_echo "none needed" >&6; } ;; 3813 xno) 3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3815$as_echo "unsupported" >&6; } ;; 3816 *) 3817 CC="$CC $ac_cv_prog_cc_c89" 3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3819$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3820esac 3821if test "x$ac_cv_prog_cc_c89" != xno; then : 3822 3823fi 3824 3825ac_ext=c 3826ac_cpp='$CPP $CPPFLAGS' 3827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3829ac_compiler_gnu=$ac_cv_c_compiler_gnu 3830 3831 ac_ext=c 3832ac_cpp='$CPP $CPPFLAGS' 3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3835ac_compiler_gnu=$ac_cv_c_compiler_gnu 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3837$as_echo_n "checking how to run the C preprocessor... " >&6; } 3838# On Suns, sometimes $CPP names a directory. 3839if test -n "$CPP" && test -d "$CPP"; then 3840 CPP= 3841fi 3842if test -z "$CPP"; then 3843 if test "${ac_cv_prog_CPP+set}" = set; then : 3844 $as_echo_n "(cached) " >&6 3845else 3846 # Double quotes because CPP needs to be expanded 3847 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3848 do 3849 ac_preproc_ok=false 3850for ac_c_preproc_warn_flag in '' yes 3851do 3852 # Use a header file that comes with gcc, so configuring glibc 3853 # with a fresh cross-compiler works. 3854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3855 # <limits.h> exists even on freestanding compilers. 3856 # On the NeXT, cc -E runs the code through the compiler's parser, 3857 # not just through cpp. "Syntax error" is here to catch this case. 3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3859/* end confdefs.h. */ 3860#ifdef __STDC__ 3861# include <limits.h> 3862#else 3863# include <assert.h> 3864#endif 3865 Syntax error 3866_ACEOF 3867if ac_fn_c_try_cpp "$LINENO"; then : 3868 3869else 3870 # Broken: fails on valid input. 3871continue 3872fi 3873rm -f conftest.err conftest.i conftest.$ac_ext 3874 3875 # OK, works on sane cases. Now check whether nonexistent headers 3876 # can be detected and how. 3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3878/* end confdefs.h. */ 3879#include <ac_nonexistent.h> 3880_ACEOF 3881if ac_fn_c_try_cpp "$LINENO"; then : 3882 # Broken: success on invalid input. 3883continue 3884else 3885 # Passes both tests. 3886ac_preproc_ok=: 3887break 3888fi 3889rm -f conftest.err conftest.i conftest.$ac_ext 3890 3891done 3892# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3893rm -f conftest.i conftest.err conftest.$ac_ext 3894if $ac_preproc_ok; then : 3895 break 3896fi 3897 3898 done 3899 ac_cv_prog_CPP=$CPP 3900 3901fi 3902 CPP=$ac_cv_prog_CPP 3903else 3904 ac_cv_prog_CPP=$CPP 3905fi 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3907$as_echo "$CPP" >&6; } 3908ac_preproc_ok=false 3909for ac_c_preproc_warn_flag in '' yes 3910do 3911 # Use a header file that comes with gcc, so configuring glibc 3912 # with a fresh cross-compiler works. 3913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3914 # <limits.h> exists even on freestanding compilers. 3915 # On the NeXT, cc -E runs the code through the compiler's parser, 3916 # not just through cpp. "Syntax error" is here to catch this case. 3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3918/* end confdefs.h. */ 3919#ifdef __STDC__ 3920# include <limits.h> 3921#else 3922# include <assert.h> 3923#endif 3924 Syntax error 3925_ACEOF 3926if ac_fn_c_try_cpp "$LINENO"; then : 3927 3928else 3929 # Broken: fails on valid input. 3930continue 3931fi 3932rm -f conftest.err conftest.i conftest.$ac_ext 3933 3934 # OK, works on sane cases. Now check whether nonexistent headers 3935 # can be detected and how. 3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3937/* end confdefs.h. */ 3938#include <ac_nonexistent.h> 3939_ACEOF 3940if ac_fn_c_try_cpp "$LINENO"; then : 3941 # Broken: success on invalid input. 3942continue 3943else 3944 # Passes both tests. 3945ac_preproc_ok=: 3946break 3947fi 3948rm -f conftest.err conftest.i conftest.$ac_ext 3949 3950done 3951# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3952rm -f conftest.i conftest.err conftest.$ac_ext 3953if $ac_preproc_ok; then : 3954 3955else 3956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3958as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3959See \`config.log' for more details" "$LINENO" 5 ; } 3960fi 3961 3962ac_ext=c 3963ac_cpp='$CPP $CPPFLAGS' 3964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3966ac_compiler_gnu=$ac_cv_c_compiler_gnu 3967 3968 3969 3970 3971 #-------------------------------------------------------------------- 3972 # Checks to see if the make program sets the $MAKE variable. 3973 #-------------------------------------------------------------------- 3974 3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3976$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3977set x ${MAKE-make} 3978ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3979if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 3980 $as_echo_n "(cached) " >&6 3981else 3982 cat >conftest.make <<\_ACEOF 3983SHELL = /bin/sh 3984all: 3985 @echo '@@@%%%=$(MAKE)=@@@%%%' 3986_ACEOF 3987# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3988case `${MAKE-make} -f conftest.make 2>/dev/null` in 3989 *@@@%%%=?*=@@@%%%*) 3990 eval ac_cv_prog_make_${ac_make}_set=yes;; 3991 *) 3992 eval ac_cv_prog_make_${ac_make}_set=no;; 3993esac 3994rm -f conftest.make 3995fi 3996if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3998$as_echo "yes" >&6; } 3999 SET_MAKE= 4000else 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4002$as_echo "no" >&6; } 4003 SET_MAKE="MAKE=${MAKE-make}" 4004fi 4005 4006 4007 #-------------------------------------------------------------------- 4008 # Find ranlib 4009 #-------------------------------------------------------------------- 4010 4011 if test -n "$ac_tool_prefix"; then 4012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4013set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4015$as_echo_n "checking for $ac_word... " >&6; } 4016if test "${ac_cv_prog_RANLIB+set}" = set; then : 4017 $as_echo_n "(cached) " >&6 4018else 4019 if test -n "$RANLIB"; then 4020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4021else 4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4023for as_dir in $PATH 4024do 4025 IFS=$as_save_IFS 4026 test -z "$as_dir" && as_dir=. 4027 for ac_exec_ext in '' $ac_executable_extensions; do 4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4031 break 2 4032 fi 4033done 4034 done 4035IFS=$as_save_IFS 4036 4037fi 4038fi 4039RANLIB=$ac_cv_prog_RANLIB 4040if test -n "$RANLIB"; then 4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4042$as_echo "$RANLIB" >&6; } 4043else 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4045$as_echo "no" >&6; } 4046fi 4047 4048 4049fi 4050if test -z "$ac_cv_prog_RANLIB"; then 4051 ac_ct_RANLIB=$RANLIB 4052 # Extract the first word of "ranlib", so it can be a program name with args. 4053set dummy ranlib; ac_word=$2 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4055$as_echo_n "checking for $ac_word... " >&6; } 4056if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 4057 $as_echo_n "(cached) " >&6 4058else 4059 if test -n "$ac_ct_RANLIB"; then 4060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4061else 4062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4063for as_dir in $PATH 4064do 4065 IFS=$as_save_IFS 4066 test -z "$as_dir" && as_dir=. 4067 for ac_exec_ext in '' $ac_executable_extensions; do 4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4069 ac_cv_prog_ac_ct_RANLIB="ranlib" 4070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4071 break 2 4072 fi 4073done 4074 done 4075IFS=$as_save_IFS 4076 4077fi 4078fi 4079ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4080if test -n "$ac_ct_RANLIB"; then 4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4082$as_echo "$ac_ct_RANLIB" >&6; } 4083else 4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4085$as_echo "no" >&6; } 4086fi 4087 4088 if test "x$ac_ct_RANLIB" = x; then 4089 RANLIB=":" 4090 else 4091 case $cross_compiling:$ac_tool_warned in 4092yes:) 4093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4095ac_tool_warned=yes ;; 4096esac 4097 RANLIB=$ac_ct_RANLIB 4098 fi 4099else 4100 RANLIB="$ac_cv_prog_RANLIB" 4101fi 4102 4103 4104 #-------------------------------------------------------------------- 4105 # Determines the correct binary file extension (.o, .obj, .exe etc.) 4106 #-------------------------------------------------------------------- 4107 4108 4109 4110 4111 4112 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4114$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4115if test "${ac_cv_path_GREP+set}" = set; then : 4116 $as_echo_n "(cached) " >&6 4117else 4118 if test -z "$GREP"; then 4119 ac_path_GREP_found=false 4120 # Loop through the user's path and test for each of PROGNAME-LIST 4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4122for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4123do 4124 IFS=$as_save_IFS 4125 test -z "$as_dir" && as_dir=. 4126 for ac_prog in grep ggrep; do 4127 for ac_exec_ext in '' $ac_executable_extensions; do 4128 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4129 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4130# Check for GNU ac_path_GREP and select it if it is found. 4131 # Check for GNU $ac_path_GREP 4132case `"$ac_path_GREP" --version 2>&1` in 4133*GNU*) 4134 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4135*) 4136 ac_count=0 4137 $as_echo_n 0123456789 >"conftest.in" 4138 while : 4139 do 4140 cat "conftest.in" "conftest.in" >"conftest.tmp" 4141 mv "conftest.tmp" "conftest.in" 4142 cp "conftest.in" "conftest.nl" 4143 $as_echo 'GREP' >> "conftest.nl" 4144 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4146 as_fn_arith $ac_count + 1 && ac_count=$as_val 4147 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4148 # Best one so far, save it but keep looking for a better one 4149 ac_cv_path_GREP="$ac_path_GREP" 4150 ac_path_GREP_max=$ac_count 4151 fi 4152 # 10*(2^10) chars as input seems more than enough 4153 test $ac_count -gt 10 && break 4154 done 4155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4156esac 4157 4158 $ac_path_GREP_found && break 3 4159 done 4160 done 4161 done 4162IFS=$as_save_IFS 4163 if test -z "$ac_cv_path_GREP"; then 4164 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4165 fi 4166else 4167 ac_cv_path_GREP=$GREP 4168fi 4169 4170fi 4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4172$as_echo "$ac_cv_path_GREP" >&6; } 4173 GREP="$ac_cv_path_GREP" 4174 4175 4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4177$as_echo_n "checking for egrep... " >&6; } 4178if test "${ac_cv_path_EGREP+set}" = set; then : 4179 $as_echo_n "(cached) " >&6 4180else 4181 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4182 then ac_cv_path_EGREP="$GREP -E" 4183 else 4184 if test -z "$EGREP"; then 4185 ac_path_EGREP_found=false 4186 # Loop through the user's path and test for each of PROGNAME-LIST 4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4188for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4189do 4190 IFS=$as_save_IFS 4191 test -z "$as_dir" && as_dir=. 4192 for ac_prog in egrep; do 4193 for ac_exec_ext in '' $ac_executable_extensions; do 4194 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4195 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4196# Check for GNU ac_path_EGREP and select it if it is found. 4197 # Check for GNU $ac_path_EGREP 4198case `"$ac_path_EGREP" --version 2>&1` in 4199*GNU*) 4200 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4201*) 4202 ac_count=0 4203 $as_echo_n 0123456789 >"conftest.in" 4204 while : 4205 do 4206 cat "conftest.in" "conftest.in" >"conftest.tmp" 4207 mv "conftest.tmp" "conftest.in" 4208 cp "conftest.in" "conftest.nl" 4209 $as_echo 'EGREP' >> "conftest.nl" 4210 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4212 as_fn_arith $ac_count + 1 && ac_count=$as_val 4213 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4214 # Best one so far, save it but keep looking for a better one 4215 ac_cv_path_EGREP="$ac_path_EGREP" 4216 ac_path_EGREP_max=$ac_count 4217 fi 4218 # 10*(2^10) chars as input seems more than enough 4219 test $ac_count -gt 10 && break 4220 done 4221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4222esac 4223 4224 $ac_path_EGREP_found && break 3 4225 done 4226 done 4227 done 4228IFS=$as_save_IFS 4229 if test -z "$ac_cv_path_EGREP"; then 4230 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4231 fi 4232else 4233 ac_cv_path_EGREP=$EGREP 4234fi 4235 4236 fi 4237fi 4238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4239$as_echo "$ac_cv_path_EGREP" >&6; } 4240 EGREP="$ac_cv_path_EGREP" 4241 4242 4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4244$as_echo_n "checking for ANSI C header files... " >&6; } 4245if test "${ac_cv_header_stdc+set}" = set; then : 4246 $as_echo_n "(cached) " >&6 4247else 4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4249/* end confdefs.h. */ 4250#include <stdlib.h> 4251#include <stdarg.h> 4252#include <string.h> 4253#include <float.h> 4254 4255int 4256main () 4257{ 4258 4259 ; 4260 return 0; 4261} 4262_ACEOF 4263if ac_fn_c_try_compile "$LINENO"; then : 4264 ac_cv_header_stdc=yes 4265else 4266 ac_cv_header_stdc=no 4267fi 4268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4269 4270if test $ac_cv_header_stdc = yes; then 4271 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4273/* end confdefs.h. */ 4274#include <string.h> 4275 4276_ACEOF 4277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4278 $EGREP "memchr" >/dev/null 2>&1; then : 4279 4280else 4281 ac_cv_header_stdc=no 4282fi 4283rm -f conftest* 4284 4285fi 4286 4287if test $ac_cv_header_stdc = yes; then 4288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4290/* end confdefs.h. */ 4291#include <stdlib.h> 4292 4293_ACEOF 4294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4295 $EGREP "free" >/dev/null 2>&1; then : 4296 4297else 4298 ac_cv_header_stdc=no 4299fi 4300rm -f conftest* 4301 4302fi 4303 4304if test $ac_cv_header_stdc = yes; then 4305 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4306 if test "$cross_compiling" = yes; then : 4307 : 4308else 4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4310/* end confdefs.h. */ 4311#include <ctype.h> 4312#include <stdlib.h> 4313#if ((' ' & 0x0FF) == 0x020) 4314# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4315# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4316#else 4317# define ISLOWER(c) \ 4318 (('a' <= (c) && (c) <= 'i') \ 4319 || ('j' <= (c) && (c) <= 'r') \ 4320 || ('s' <= (c) && (c) <= 'z')) 4321# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4322#endif 4323 4324#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4325int 4326main () 4327{ 4328 int i; 4329 for (i = 0; i < 256; i++) 4330 if (XOR (islower (i), ISLOWER (i)) 4331 || toupper (i) != TOUPPER (i)) 4332 return 2; 4333 return 0; 4334} 4335_ACEOF 4336if ac_fn_c_try_run "$LINENO"; then : 4337 4338else 4339 ac_cv_header_stdc=no 4340fi 4341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4342 conftest.$ac_objext conftest.beam conftest.$ac_ext 4343fi 4344 4345fi 4346fi 4347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4348$as_echo "$ac_cv_header_stdc" >&6; } 4349if test $ac_cv_header_stdc = yes; then 4350 4351$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4352 4353fi 4354 4355# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4356for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4357 inttypes.h stdint.h unistd.h 4358do : 4359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4360ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4361" 4362if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4363 cat >>confdefs.h <<_ACEOF 4364#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4365_ACEOF 4366 4367fi 4368 4369done 4370 4371 4372 4373 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4374 4375 4376 #------------------------------------------------------------------------ 4377 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4378 # It makes compiling go faster. (This is only a performance feature.) 4379 #------------------------------------------------------------------------ 4380 4381 if test -z "$no_pipe" -a -n "$GCC"; then 4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5 4383$as_echo_n "checking if the compiler understands -pipe... " >&6; } 4384if test "${tcl_cv_cc_pipe+set}" = set; then : 4385 $as_echo_n "(cached) " >&6 4386else 4387 4388 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4390/* end confdefs.h. */ 4391 4392int 4393main () 4394{ 4395 4396 ; 4397 return 0; 4398} 4399_ACEOF 4400if ac_fn_c_try_compile "$LINENO"; then : 4401 tcl_cv_cc_pipe=yes 4402else 4403 tcl_cv_cc_pipe=no 4404fi 4405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4406 CFLAGS=$hold_cflags 4407fi 4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5 4409$as_echo "$tcl_cv_cc_pipe" >&6; } 4410 if test $tcl_cv_cc_pipe = yes; then 4411 CFLAGS="$CFLAGS -pipe" 4412 fi 4413 fi 4414 4415 #-------------------------------------------------------------------- 4416 # Common compiler flag setup 4417 #-------------------------------------------------------------------- 4418 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4420$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4421if test "${ac_cv_c_bigendian+set}" = set; then : 4422 $as_echo_n "(cached) " >&6 4423else 4424 ac_cv_c_bigendian=unknown 4425 # See if we're dealing with a universal compiler. 4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4427/* end confdefs.h. */ 4428#ifndef __APPLE_CC__ 4429 not a universal capable compiler 4430 #endif 4431 typedef int dummy; 4432 4433_ACEOF 4434if ac_fn_c_try_compile "$LINENO"; then : 4435 4436 # Check for potential -arch flags. It is not universal unless 4437 # there are at least two -arch flags with different values. 4438 ac_arch= 4439 ac_prev= 4440 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4441 if test -n "$ac_prev"; then 4442 case $ac_word in 4443 i?86 | x86_64 | ppc | ppc64) 4444 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4445 ac_arch=$ac_word 4446 else 4447 ac_cv_c_bigendian=universal 4448 break 4449 fi 4450 ;; 4451 esac 4452 ac_prev= 4453 elif test "x$ac_word" = "x-arch"; then 4454 ac_prev=arch 4455 fi 4456 done 4457fi 4458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4459 if test $ac_cv_c_bigendian = unknown; then 4460 # See if sys/param.h defines the BYTE_ORDER macro. 4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4462/* end confdefs.h. */ 4463#include <sys/types.h> 4464 #include <sys/param.h> 4465 4466int 4467main () 4468{ 4469#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4470 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4471 && LITTLE_ENDIAN) 4472 bogus endian macros 4473 #endif 4474 4475 ; 4476 return 0; 4477} 4478_ACEOF 4479if ac_fn_c_try_compile "$LINENO"; then : 4480 # It does; now see whether it defined to BIG_ENDIAN or not. 4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4482/* end confdefs.h. */ 4483#include <sys/types.h> 4484 #include <sys/param.h> 4485 4486int 4487main () 4488{ 4489#if BYTE_ORDER != BIG_ENDIAN 4490 not big endian 4491 #endif 4492 4493 ; 4494 return 0; 4495} 4496_ACEOF 4497if ac_fn_c_try_compile "$LINENO"; then : 4498 ac_cv_c_bigendian=yes 4499else 4500 ac_cv_c_bigendian=no 4501fi 4502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4503fi 4504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4505 fi 4506 if test $ac_cv_c_bigendian = unknown; then 4507 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4509/* end confdefs.h. */ 4510#include <limits.h> 4511 4512int 4513main () 4514{ 4515#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4516 bogus endian macros 4517 #endif 4518 4519 ; 4520 return 0; 4521} 4522_ACEOF 4523if ac_fn_c_try_compile "$LINENO"; then : 4524 # It does; now see whether it defined to _BIG_ENDIAN or not. 4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4526/* end confdefs.h. */ 4527#include <limits.h> 4528 4529int 4530main () 4531{ 4532#ifndef _BIG_ENDIAN 4533 not big endian 4534 #endif 4535 4536 ; 4537 return 0; 4538} 4539_ACEOF 4540if ac_fn_c_try_compile "$LINENO"; then : 4541 ac_cv_c_bigendian=yes 4542else 4543 ac_cv_c_bigendian=no 4544fi 4545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4546fi 4547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4548 fi 4549 if test $ac_cv_c_bigendian = unknown; then 4550 # Compile a test program. 4551 if test "$cross_compiling" = yes; then : 4552 # Try to guess by grepping values from an object file. 4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4554/* end confdefs.h. */ 4555short int ascii_mm[] = 4556 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4557 short int ascii_ii[] = 4558 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4559 int use_ascii (int i) { 4560 return ascii_mm[i] + ascii_ii[i]; 4561 } 4562 short int ebcdic_ii[] = 4563 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4564 short int ebcdic_mm[] = 4565 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4566 int use_ebcdic (int i) { 4567 return ebcdic_mm[i] + ebcdic_ii[i]; 4568 } 4569 extern int foo; 4570 4571int 4572main () 4573{ 4574return use_ascii (foo) == use_ebcdic (foo); 4575 ; 4576 return 0; 4577} 4578_ACEOF 4579if ac_fn_c_try_compile "$LINENO"; then : 4580 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4581 ac_cv_c_bigendian=yes 4582 fi 4583 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4584 if test "$ac_cv_c_bigendian" = unknown; then 4585 ac_cv_c_bigendian=no 4586 else 4587 # finding both strings is unlikely to happen, but who knows? 4588 ac_cv_c_bigendian=unknown 4589 fi 4590 fi 4591fi 4592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4593else 4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4595/* end confdefs.h. */ 4596$ac_includes_default 4597int 4598main () 4599{ 4600 4601 /* Are we little or big endian? From Harbison&Steele. */ 4602 union 4603 { 4604 long int l; 4605 char c[sizeof (long int)]; 4606 } u; 4607 u.l = 1; 4608 return u.c[sizeof (long int) - 1] == 1; 4609 4610 ; 4611 return 0; 4612} 4613_ACEOF 4614if ac_fn_c_try_run "$LINENO"; then : 4615 ac_cv_c_bigendian=no 4616else 4617 ac_cv_c_bigendian=yes 4618fi 4619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4620 conftest.$ac_objext conftest.beam conftest.$ac_ext 4621fi 4622 4623 fi 4624fi 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4626$as_echo "$ac_cv_c_bigendian" >&6; } 4627 case $ac_cv_c_bigendian in #( 4628 yes) 4629 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4630;; #( 4631 no) 4632 ;; #( 4633 universal) 4634 4635$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4636 4637 ;; #( 4638 *) 4639 as_fn_error $? "unknown endianness 4640 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4641 esac 4642 4643 if test "${TEA_PLATFORM}" = "unix" ; then 4644 4645 #-------------------------------------------------------------------- 4646 # On a few very rare systems, all of the libm.a stuff is 4647 # already in libc.a. Set compiler flags accordingly. 4648 # Also, Linux requires the "ieee" library for math to work 4649 # right (and it must appear before "-lm"). 4650 #-------------------------------------------------------------------- 4651 4652 ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin" 4653if test "x$ac_cv_func_sin" = x""yes; then : 4654 MATH_LIBS="" 4655else 4656 MATH_LIBS="-lm" 4657fi 4658 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5 4660$as_echo_n "checking for main in -lieee... " >&6; } 4661if test "${ac_cv_lib_ieee_main+set}" = set; then : 4662 $as_echo_n "(cached) " >&6 4663else 4664 ac_check_lib_save_LIBS=$LIBS 4665LIBS="-lieee $LIBS" 4666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4667/* end confdefs.h. */ 4668 4669 4670int 4671main () 4672{ 4673return main (); 4674 ; 4675 return 0; 4676} 4677_ACEOF 4678if ac_fn_c_try_link "$LINENO"; then : 4679 ac_cv_lib_ieee_main=yes 4680else 4681 ac_cv_lib_ieee_main=no 4682fi 4683rm -f core conftest.err conftest.$ac_objext \ 4684 conftest$ac_exeext conftest.$ac_ext 4685LIBS=$ac_check_lib_save_LIBS 4686fi 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5 4688$as_echo "$ac_cv_lib_ieee_main" >&6; } 4689if test "x$ac_cv_lib_ieee_main" = x""yes; then : 4690 MATH_LIBS="-lieee $MATH_LIBS" 4691fi 4692 4693 4694 #-------------------------------------------------------------------- 4695 # Interactive UNIX requires -linet instead of -lsocket, plus it 4696 # needs net/errno.h to define the socket-related error codes. 4697 #-------------------------------------------------------------------- 4698 4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5 4700$as_echo_n "checking for main in -linet... " >&6; } 4701if test "${ac_cv_lib_inet_main+set}" = set; then : 4702 $as_echo_n "(cached) " >&6 4703else 4704 ac_check_lib_save_LIBS=$LIBS 4705LIBS="-linet $LIBS" 4706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4707/* end confdefs.h. */ 4708 4709 4710int 4711main () 4712{ 4713return main (); 4714 ; 4715 return 0; 4716} 4717_ACEOF 4718if ac_fn_c_try_link "$LINENO"; then : 4719 ac_cv_lib_inet_main=yes 4720else 4721 ac_cv_lib_inet_main=no 4722fi 4723rm -f core conftest.err conftest.$ac_objext \ 4724 conftest$ac_exeext conftest.$ac_ext 4725LIBS=$ac_check_lib_save_LIBS 4726fi 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5 4728$as_echo "$ac_cv_lib_inet_main" >&6; } 4729if test "x$ac_cv_lib_inet_main" = x""yes; then : 4730 LIBS="$LIBS -linet" 4731fi 4732 4733 ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default" 4734if test "x$ac_cv_header_net_errno_h" = x""yes; then : 4735 4736 4737$as_echo "#define HAVE_NET_ERRNO_H 1" >>confdefs.h 4738 4739fi 4740 4741 4742 4743 #-------------------------------------------------------------------- 4744 # Check for the existence of the -lsocket and -lnsl libraries. 4745 # The order here is important, so that they end up in the right 4746 # order in the command line generated by make. Here are some 4747 # special considerations: 4748 # 1. Use "connect" and "accept" to check for -lsocket, and 4749 # "gethostbyname" to check for -lnsl. 4750 # 2. Use each function name only once: can't redo a check because 4751 # autoconf caches the results of the last check and won't redo it. 4752 # 3. Use -lnsl and -lsocket only if they supply procedures that 4753 # aren't already present in the normal libraries. This is because 4754 # IRIX 5.2 has libraries, but they aren't needed and they're 4755 # bogus: they goof up name resolution if used. 4756 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4757 # To get around this problem, check for both libraries together 4758 # if -lsocket doesn't work by itself. 4759 #-------------------------------------------------------------------- 4760 4761 tcl_checkBoth=0 4762 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 4763if test "x$ac_cv_func_connect" = x""yes; then : 4764 tcl_checkSocket=0 4765else 4766 tcl_checkSocket=1 4767fi 4768 4769 if test "$tcl_checkSocket" = 1; then 4770 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 4771if test "x$ac_cv_func_setsockopt" = x""yes; then : 4772 4773else 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 4775$as_echo_n "checking for setsockopt in -lsocket... " >&6; } 4776if test "${ac_cv_lib_socket_setsockopt+set}" = set; then : 4777 $as_echo_n "(cached) " >&6 4778else 4779 ac_check_lib_save_LIBS=$LIBS 4780LIBS="-lsocket $LIBS" 4781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4782/* end confdefs.h. */ 4783 4784/* Override any GCC internal prototype to avoid an error. 4785 Use char because int might match the return type of a GCC 4786 builtin and then its argument prototype would still apply. */ 4787#ifdef __cplusplus 4788extern "C" 4789#endif 4790char setsockopt (); 4791int 4792main () 4793{ 4794return setsockopt (); 4795 ; 4796 return 0; 4797} 4798_ACEOF 4799if ac_fn_c_try_link "$LINENO"; then : 4800 ac_cv_lib_socket_setsockopt=yes 4801else 4802 ac_cv_lib_socket_setsockopt=no 4803fi 4804rm -f core conftest.err conftest.$ac_objext \ 4805 conftest$ac_exeext conftest.$ac_ext 4806LIBS=$ac_check_lib_save_LIBS 4807fi 4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 4809$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } 4810if test "x$ac_cv_lib_socket_setsockopt" = x""yes; then : 4811 LIBS="$LIBS -lsocket" 4812else 4813 tcl_checkBoth=1 4814fi 4815 4816fi 4817 4818 fi 4819 if test "$tcl_checkBoth" = 1; then 4820 tk_oldLibs=$LIBS 4821 LIBS="$LIBS -lsocket -lnsl" 4822 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept" 4823if test "x$ac_cv_func_accept" = x""yes; then : 4824 tcl_checkNsl=0 4825else 4826 LIBS=$tk_oldLibs 4827fi 4828 4829 fi 4830 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 4831if test "x$ac_cv_func_gethostbyname" = x""yes; then : 4832 4833else 4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 4835$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 4836if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 4837 $as_echo_n "(cached) " >&6 4838else 4839 ac_check_lib_save_LIBS=$LIBS 4840LIBS="-lnsl $LIBS" 4841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4842/* end confdefs.h. */ 4843 4844/* Override any GCC internal prototype to avoid an error. 4845 Use char because int might match the return type of a GCC 4846 builtin and then its argument prototype would still apply. */ 4847#ifdef __cplusplus 4848extern "C" 4849#endif 4850char gethostbyname (); 4851int 4852main () 4853{ 4854return gethostbyname (); 4855 ; 4856 return 0; 4857} 4858_ACEOF 4859if ac_fn_c_try_link "$LINENO"; then : 4860 ac_cv_lib_nsl_gethostbyname=yes 4861else 4862 ac_cv_lib_nsl_gethostbyname=no 4863fi 4864rm -f core conftest.err conftest.$ac_objext \ 4865 conftest$ac_exeext conftest.$ac_ext 4866LIBS=$ac_check_lib_save_LIBS 4867fi 4868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 4869$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 4870if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 4871 LIBS="$LIBS -lnsl" 4872fi 4873 4874fi 4875 4876 4877 # TEA specific: Don't perform the eval of the libraries here because 4878 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 4879 4880 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 4881 4882 4883 4884 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dirent.h" >&5 4886$as_echo_n "checking dirent.h... " >&6; } 4887if test "${tcl_cv_dirent_h+set}" = set; then : 4888 $as_echo_n "(cached) " >&6 4889else 4890 4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4892/* end confdefs.h. */ 4893#include <sys/types.h> 4894#include <dirent.h> 4895int 4896main () 4897{ 4898 4899#ifndef _POSIX_SOURCE 4900# ifdef __Lynx__ 4901 /* 4902 * Generate compilation error to make the test fail: Lynx headers 4903 * are only valid if really in the POSIX environment. 4904 */ 4905 4906 missing_procedure(); 4907# endif 4908#endif 4909DIR *d; 4910struct dirent *entryPtr; 4911char *p; 4912d = opendir("foobar"); 4913entryPtr = readdir(d); 4914p = entryPtr->d_name; 4915closedir(d); 4916 4917 ; 4918 return 0; 4919} 4920_ACEOF 4921if ac_fn_c_try_link "$LINENO"; then : 4922 tcl_cv_dirent_h=yes 4923else 4924 tcl_cv_dirent_h=no 4925fi 4926rm -f core conftest.err conftest.$ac_objext \ 4927 conftest$ac_exeext conftest.$ac_ext 4928fi 4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_dirent_h" >&5 4930$as_echo "$tcl_cv_dirent_h" >&6; } 4931 4932 if test $tcl_cv_dirent_h = no; then 4933 4934$as_echo "#define NO_DIRENT_H 1" >>confdefs.h 4935 4936 fi 4937 4938 # TEA specific: 4939 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 4940if test "x$ac_cv_header_errno_h" = x""yes; then : 4941 4942else 4943 4944$as_echo "#define NO_ERRNO_H 1" >>confdefs.h 4945 4946fi 4947 4948 4949 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" 4950if test "x$ac_cv_header_float_h" = x""yes; then : 4951 4952else 4953 4954$as_echo "#define NO_FLOAT_H 1" >>confdefs.h 4955 4956fi 4957 4958 4959 ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default" 4960if test "x$ac_cv_header_values_h" = x""yes; then : 4961 4962else 4963 4964$as_echo "#define NO_VALUES_H 1" >>confdefs.h 4965 4966fi 4967 4968 4969 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 4970if test "x$ac_cv_header_limits_h" = x""yes; then : 4971 4972$as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h 4973 4974else 4975 4976$as_echo "#define NO_LIMITS_H 1" >>confdefs.h 4977 4978fi 4979 4980 4981 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 4982if test "x$ac_cv_header_stdlib_h" = x""yes; then : 4983 tcl_ok=1 4984else 4985 tcl_ok=0 4986fi 4987 4988 4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4990/* end confdefs.h. */ 4991#include <stdlib.h> 4992 4993_ACEOF 4994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4995 $EGREP "strtol" >/dev/null 2>&1; then : 4996 4997else 4998 tcl_ok=0 4999fi 5000rm -f conftest* 5001 5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5003/* end confdefs.h. */ 5004#include <stdlib.h> 5005 5006_ACEOF 5007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5008 $EGREP "strtoul" >/dev/null 2>&1; then : 5009 5010else 5011 tcl_ok=0 5012fi 5013rm -f conftest* 5014 5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5016/* end confdefs.h. */ 5017#include <stdlib.h> 5018 5019_ACEOF 5020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5021 $EGREP "strtod" >/dev/null 2>&1; then : 5022 5023else 5024 tcl_ok=0 5025fi 5026rm -f conftest* 5027 5028 if test $tcl_ok = 0; then 5029 5030$as_echo "#define NO_STDLIB_H 1" >>confdefs.h 5031 5032 fi 5033 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 5034if test "x$ac_cv_header_string_h" = x""yes; then : 5035 tcl_ok=1 5036else 5037 tcl_ok=0 5038fi 5039 5040 5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5042/* end confdefs.h. */ 5043#include <string.h> 5044 5045_ACEOF 5046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5047 $EGREP "strstr" >/dev/null 2>&1; then : 5048 5049else 5050 tcl_ok=0 5051fi 5052rm -f conftest* 5053 5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5055/* end confdefs.h. */ 5056#include <string.h> 5057 5058_ACEOF 5059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5060 $EGREP "strerror" >/dev/null 2>&1; then : 5061 5062else 5063 tcl_ok=0 5064fi 5065rm -f conftest* 5066 5067 5068 # See also memmove check below for a place where NO_STRING_H can be 5069 # set and why. 5070 5071 if test $tcl_ok = 0; then 5072 5073$as_echo "#define NO_STRING_H 1" >>confdefs.h 5074 5075 fi 5076 5077 ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 5078if test "x$ac_cv_header_sys_wait_h" = x""yes; then : 5079 5080else 5081 5082$as_echo "#define NO_SYS_WAIT_H 1" >>confdefs.h 5083 5084fi 5085 5086 5087 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 5088if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 5089 5090else 5091 5092$as_echo "#define NO_DLFCN_H 1" >>confdefs.h 5093 5094fi 5095 5096 5097 5098 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 5099 for ac_header in sys/param.h 5100do : 5101 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 5102if test "x$ac_cv_header_sys_param_h" = x""yes; then : 5103 cat >>confdefs.h <<_ACEOF 5104#define HAVE_SYS_PARAM_H 1 5105_ACEOF 5106 5107fi 5108 5109done 5110 5111 5112 # Let the user call this, because if it triggers, they will 5113 # need a compat/strtod.c that is correct. Users can also 5114 # use Tcl_GetDouble(FromObj) instead. 5115 #TEA_BUGGY_STRTOD 5116 fi 5117 5118 5119#----------------------------------------------------------------------- 5120# __CHANGE__ 5121# Specify the C source files to compile in TEA_ADD_SOURCES, 5122# public headers that need to be installed in TEA_ADD_HEADERS, 5123# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 5124# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 5125# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 5126# and PKG_TCL_SOURCES. 5127#----------------------------------------------------------------------- 5128 5129 5130 vars="qebind.c tkTreeColumn.c tkTreeCtrl.c tkTreeDisplay.c 5131 tkTreeDrag.c tkTreeElem.c tkTreeHeader.c tkTreeItem.c 5132 tkTreeMarquee.c tkTreeNotify.c tkTreeStyle.c tkTreeTheme.c 5133 tkTreeUtils.c" 5134 for i in $vars; do 5135 case $i in 5136 \$*) 5137 # allow $-var names 5138 PKG_SOURCES="$PKG_SOURCES $i" 5139 PKG_OBJECTS="$PKG_OBJECTS $i" 5140 ;; 5141 *) 5142 # check for existence - allows for generic/win/unix VPATH 5143 # To add more dirs here (like 'src'), you have to update VPATH 5144 # in Makefile.in as well 5145 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 5146 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 5147 -a ! -f "${srcdir}/macosx/$i" \ 5148 ; then 5149 as_fn_error $? "could not find source file '$i'" "$LINENO" 5 5150 fi 5151 PKG_SOURCES="$PKG_SOURCES $i" 5152 # this assumes it is in a VPATH dir 5153 i=`basename $i` 5154 # handle user calling this before or after TEA_SETUP_COMPILER 5155 if test x"${OBJEXT}" != x ; then 5156 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 5157 else 5158 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 5159 fi 5160 PKG_OBJECTS="$PKG_OBJECTS $j" 5161 ;; 5162 esac 5163 done 5164 5165 5166 5167 5168 vars="" 5169 for i in $vars; do 5170 # check for existence, be strict because it is installed 5171 if test ! -f "${srcdir}/$i" ; then 5172 as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5 5173 fi 5174 PKG_HEADERS="$PKG_HEADERS $i" 5175 done 5176 5177 5178 5179 vars="-I. -I\"`${CYGPATH} ${srcdir}/generic`\"" 5180 for i in $vars; do 5181 PKG_INCLUDES="$PKG_INCLUDES $i" 5182 done 5183 5184 5185 5186 PKG_CFLAGS="$PKG_CFLAGS " 5187 5188 5189 5190 vars="" 5191 for i in $vars; do 5192 # check for existence - allows for generic/win/unix VPATH 5193 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 5194 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 5195 -a ! -f "${srcdir}/macosx/$i" \ 5196 ; then 5197 as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5 5198 fi 5199 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 5200 # this assumes it is in a VPATH dir 5201 i=`basename $i` 5202 # handle user calling this before or after TEA_SETUP_COMPILER 5203 if test x"${OBJEXT}" != x ; then 5204 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 5205 else 5206 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 5207 fi 5208 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 5209 done 5210 5211 5212 5213 5214 vars="library/treectrl.tcl library/filelist-bindings.tcl" 5215 for i in $vars; do 5216 # check for existence, be strict because it is installed 5217 if test ! -f "${srcdir}/$i" ; then 5218 as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5 5219 fi 5220 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 5221 done 5222 5223 5224 5225#-------------------------------------------------------------------- 5226# __CHANGE__ 5227# Choose which headers you need. Extension authors should try very 5228# hard to only rely on the Tcl public header files. Internal headers 5229# contain private data structures and are subject to change without 5230# notice. 5231# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 5232#-------------------------------------------------------------------- 5233 5234#TEA_PUBLIC_TCL_HEADERS 5235 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5 5237$as_echo_n "checking for Tcl public headers... " >&6; } 5238 5239 5240# Check whether --with-tclinclude was given. 5241if test "${with_tclinclude+set}" = set; then : 5242 withval=$with_tclinclude; with_tclinclude=${withval} 5243fi 5244 5245 5246 if test "${ac_cv_c_tclh+set}" = set; then : 5247 $as_echo_n "(cached) " >&6 5248else 5249 5250 # Use the value from --with-tclinclude, if it was given 5251 5252 if test x"${with_tclinclude}" != x ; then 5253 if test -f "${with_tclinclude}/tcl.h" ; then 5254 ac_cv_c_tclh=${with_tclinclude} 5255 else 5256 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5 5257 fi 5258 else 5259 list="" 5260 if test "`uname -s`" = "Darwin"; then 5261 # If Tcl was built as a framework, attempt to use 5262 # the framework's Headers directory 5263 case ${TCL_DEFS} in 5264 *TCL_FRAMEWORK*) 5265 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 5266 ;; 5267 esac 5268 fi 5269 5270 # Look in the source dir only if Tcl is not installed, 5271 # and in that situation, look there before installed locations. 5272 if test -f "${TCL_BIN_DIR}/Makefile" ; then 5273 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 5274 fi 5275 5276 # Check order: pkg --prefix location, Tcl's --prefix location, 5277 # relative to directory of tclConfig.sh. 5278 5279 eval "temp_includedir=${includedir}" 5280 list="$list \ 5281 `ls -d ${temp_includedir} 2>/dev/null` \ 5282 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 5283 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 5284 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 5285 list="$list /usr/local/include /usr/include" 5286 if test x"${TCL_INCLUDE_SPEC}" != x ; then 5287 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 5288 list="$list `ls -d ${d} 2>/dev/null`" 5289 fi 5290 fi 5291 for i in $list ; do 5292 if test -f "$i/tcl.h" ; then 5293 ac_cv_c_tclh=$i 5294 break 5295 fi 5296 done 5297 fi 5298 5299fi 5300 5301 5302 # Print a message based on how we determined the include path 5303 5304 if test x"${ac_cv_c_tclh}" = x ; then 5305 as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5 5306 else 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5 5308$as_echo "${ac_cv_c_tclh}" >&6; } 5309 fi 5310 5311 # Convert to a native path and substitute into the output files. 5312 5313 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 5314 5315 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 5316 5317 5318 5319 5320 # Allow for --with-tclinclude to take effect and define ${ac_cv_c_tclh} 5321 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private include files" >&5 5323$as_echo_n "checking for Tcl private include files... " >&6; } 5324 5325 TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}` 5326 TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\" 5327 5328 # Check to see if tcl<Plat>Port.h isn't already with the public headers 5329 # Don't look for tclInt.h because that resides with tcl.h in the core 5330 # sources, but the <plat>Port headers are in a different directory 5331 if test "${TEA_PLATFORM}" = "windows" -a \ 5332 -f "${ac_cv_c_tclh}/tclWinPort.h"; then 5333 result="private headers found with public headers" 5334 elif test "${TEA_PLATFORM}" = "unix" -a \ 5335 -f "${ac_cv_c_tclh}/tclUnixPort.h"; then 5336 result="private headers found with public headers" 5337 else 5338 TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\" 5339 if test "${TEA_PLATFORM}" = "windows"; then 5340 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\" 5341 else 5342 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\" 5343 fi 5344 # Overwrite the previous TCL_INCLUDES as this should capture both 5345 # public and private headers in the same set. 5346 # We want to ensure these are substituted so as not to require 5347 # any *_NATIVE vars be defined in the Makefile 5348 TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}" 5349 if test "`uname -s`" = "Darwin"; then 5350 # If Tcl was built as a framework, attempt to use 5351 # the framework's Headers and PrivateHeaders directories 5352 case ${TCL_DEFS} in 5353 *TCL_FRAMEWORK*) 5354 if test -d "${TCL_BIN_DIR}/Headers" -a \ 5355 -d "${TCL_BIN_DIR}/PrivateHeaders"; then 5356 TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}" 5357 else 5358 TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`" 5359 fi 5360 ;; 5361 esac 5362 result="Using ${TCL_INCLUDES}" 5363 else 5364 if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then 5365 as_fn_error $? "Cannot find private header tclInt.h in ${TCL_SRC_DIR}" "$LINENO" 5 5366 fi 5367 result="Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" 5368 fi 5369 fi 5370 5371 5372 5373 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${result}" >&5 5375$as_echo "${result}" >&6; } 5376 5377 5378#TEA_PUBLIC_TK_HEADERS 5379 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk public headers" >&5 5381$as_echo_n "checking for Tk public headers... " >&6; } 5382 5383 5384# Check whether --with-tkinclude was given. 5385if test "${with_tkinclude+set}" = set; then : 5386 withval=$with_tkinclude; with_tkinclude=${withval} 5387fi 5388 5389 5390 if test "${ac_cv_c_tkh+set}" = set; then : 5391 $as_echo_n "(cached) " >&6 5392else 5393 5394 # Use the value from --with-tkinclude, if it was given 5395 5396 if test x"${with_tkinclude}" != x ; then 5397 if test -f "${with_tkinclude}/tk.h" ; then 5398 ac_cv_c_tkh=${with_tkinclude} 5399 else 5400 as_fn_error $? "${with_tkinclude} directory does not contain tk.h" "$LINENO" 5 5401 fi 5402 else 5403 list="" 5404 if test "`uname -s`" = "Darwin"; then 5405 # If Tk was built as a framework, attempt to use 5406 # the framework's Headers directory. 5407 case ${TK_DEFS} in 5408 *TK_FRAMEWORK*) 5409 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`" 5410 ;; 5411 esac 5412 fi 5413 5414 # Look in the source dir only if Tk is not installed, 5415 # and in that situation, look there before installed locations. 5416 if test -f "${TK_BIN_DIR}/Makefile" ; then 5417 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`" 5418 fi 5419 5420 # Check order: pkg --prefix location, Tk's --prefix location, 5421 # relative to directory of tkConfig.sh, Tcl's --prefix location, 5422 # relative to directory of tclConfig.sh. 5423 5424 eval "temp_includedir=${includedir}" 5425 list="$list \ 5426 `ls -d ${temp_includedir} 2>/dev/null` \ 5427 `ls -d ${TK_PREFIX}/include 2>/dev/null` \ 5428 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \ 5429 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 5430 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 5431 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 5432 list="$list /usr/local/include /usr/include" 5433 if test x"${TK_INCLUDE_SPEC}" != x ; then 5434 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'` 5435 list="$list `ls -d ${d} 2>/dev/null`" 5436 fi 5437 fi 5438 for i in $list ; do 5439 if test -f "$i/tk.h" ; then 5440 ac_cv_c_tkh=$i 5441 break 5442 fi 5443 done 5444 fi 5445 5446fi 5447 5448 5449 # Print a message based on how we determined the include path 5450 5451 if test x"${ac_cv_c_tkh}" = x ; then 5452 as_fn_error $? "tk.h not found. Please specify its location with --with-tkinclude" "$LINENO" 5 5453 else 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tkh}" >&5 5455$as_echo "${ac_cv_c_tkh}" >&6; } 5456 fi 5457 5458 # Convert to a native path and substitute into the output files. 5459 5460 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}` 5461 5462 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 5463 5464 5465 5466 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then 5467 # On Windows and Aqua, we need the X compat headers 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5 5469$as_echo_n "checking for X11 header files... " >&6; } 5470 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then 5471 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`" 5472 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 5473 5474 fi 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${INCLUDE_DIR_NATIVE}" >&5 5476$as_echo "${INCLUDE_DIR_NATIVE}" >&6; } 5477 fi 5478 5479 5480 # Allow for --with-tkinclude to take effect and define ${ac_cv_c_tkh} 5481 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private include files" >&5 5483$as_echo_n "checking for Tk private include files... " >&6; } 5484 5485 TK_SRC_DIR_NATIVE=`${CYGPATH} ${TK_SRC_DIR}` 5486 TK_TOP_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}\" 5487 5488 # Check to see if tk<Plat>Port.h isn't already with the public headers 5489 # Don't look for tkInt.h because that resides with tk.h in the core 5490 # sources, but the <plat>Port headers are in a different directory 5491 if test "${TEA_PLATFORM}" = "windows" -a \ 5492 -f "${ac_cv_c_tkh}/tkWinPort.h"; then 5493 result="private headers found with public headers" 5494 elif test "${TEA_PLATFORM}" = "unix" -a \ 5495 -f "${ac_cv_c_tkh}/tkUnixPort.h"; then 5496 result="private headers found with public headers" 5497 else 5498 TK_GENERIC_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/generic\" 5499 TK_XLIB_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/xlib\" 5500 if test "${TEA_PLATFORM}" = "windows"; then 5501 TK_PLATFORM_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/win\" 5502 else 5503 TK_PLATFORM_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/unix\" 5504 fi 5505 # Overwrite the previous TK_INCLUDES as this should capture both 5506 # public and private headers in the same set. 5507 # We want to ensure these are substituted so as not to require 5508 # any *_NATIVE vars be defined in the Makefile 5509 TK_INCLUDES="-I${TK_GENERIC_DIR_NATIVE} -I${TK_PLATFORM_DIR_NATIVE}" 5510 # Detect and add ttk subdir 5511 if test -d "${TK_SRC_DIR}/generic/ttk"; then 5512 TK_INCLUDES="${TK_INCLUDES} -I\"${TK_SRC_DIR_NATIVE}/generic/ttk\"" 5513 fi 5514 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then 5515 TK_INCLUDES="${TK_INCLUDES} -I${TK_XLIB_DIR_NATIVE}" 5516 fi 5517 if test "${TEA_WINDOWINGSYSTEM}" = "aqua"; then 5518 TK_INCLUDES="${TK_INCLUDES} -I\"${TK_SRC_DIR_NATIVE}/macosx\"" 5519 fi 5520 if test "`uname -s`" = "Darwin"; then 5521 # If Tk was built as a framework, attempt to use 5522 # the framework's Headers and PrivateHeaders directories 5523 case ${TK_DEFS} in 5524 *TK_FRAMEWORK*) 5525 if test -d "${TK_BIN_DIR}/Headers" -a \ 5526 -d "${TK_BIN_DIR}/PrivateHeaders"; then 5527 TK_INCLUDES="-I\"${TK_BIN_DIR}/Headers\" -I\"${TK_BIN_DIR}/PrivateHeaders\" ${TK_INCLUDES}" 5528 else 5529 TK_INCLUDES="${TK_INCLUDES} ${TK_INCLUDE_SPEC} `echo "${TK_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`" 5530 fi 5531 ;; 5532 esac 5533 result="Using ${TK_INCLUDES}" 5534 else 5535 if test ! -f "${TK_SRC_DIR}/generic/tkInt.h" ; then 5536 as_fn_error $? "Cannot find private header tkInt.h in ${TK_SRC_DIR}" "$LINENO" 5 5537 fi 5538 result="Using srcdir found in tkConfig.sh: ${TK_SRC_DIR}" 5539 fi 5540 fi 5541 5542 5543 5544 5545 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${result}" >&5 5547$as_echo "${result}" >&6; } 5548 5549 5550#-------------------------------------------------------------------- 5551# For Unix/Tk builds, make sure that the X libraries/headers are found. 5552#-------------------------------------------------------------------- 5553 5554 5555 if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then 5556 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 5558$as_echo_n "checking for X... " >&6; } 5559 5560 5561# Check whether --with-x was given. 5562if test "${with_x+set}" = set; then : 5563 withval=$with_x; 5564fi 5565 5566# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5567if test "x$with_x" = xno; then 5568 # The user explicitly disabled X. 5569 have_x=disabled 5570else 5571 case $x_includes,$x_libraries in #( 5572 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( 5573 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 5574 $as_echo_n "(cached) " >&6 5575else 5576 # One or both of the vars are not set, and there is no cached value. 5577ac_x_includes=no ac_x_libraries=no 5578rm -f -r conftest.dir 5579if mkdir conftest.dir; then 5580 cd conftest.dir 5581 cat >Imakefile <<'_ACEOF' 5582incroot: 5583 @echo incroot='${INCROOT}' 5584usrlibdir: 5585 @echo usrlibdir='${USRLIBDIR}' 5586libdir: 5587 @echo libdir='${LIBDIR}' 5588_ACEOF 5589 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 5590 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5591 for ac_var in incroot usrlibdir libdir; do 5592 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 5593 done 5594 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 5595 for ac_extension in a so sl dylib la dll; do 5596 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 5597 test -f "$ac_im_libdir/libX11.$ac_extension"; then 5598 ac_im_usrlibdir=$ac_im_libdir; break 5599 fi 5600 done 5601 # Screen out bogus values from the imake configuration. They are 5602 # bogus both because they are the default anyway, and because 5603 # using them would break gcc on systems where it needs fixed includes. 5604 case $ac_im_incroot in 5605 /usr/include) ac_x_includes= ;; 5606 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 5607 esac 5608 case $ac_im_usrlibdir in 5609 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 5610 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 5611 esac 5612 fi 5613 cd .. 5614 rm -f -r conftest.dir 5615fi 5616 5617# Standard set of common directories for X headers. 5618# Check X11 before X11Rn because it is often a symlink to the current release. 5619ac_x_header_dirs=' 5620/usr/X11/include 5621/usr/X11R7/include 5622/usr/X11R6/include 5623/usr/X11R5/include 5624/usr/X11R4/include 5625 5626/usr/include/X11 5627/usr/include/X11R7 5628/usr/include/X11R6 5629/usr/include/X11R5 5630/usr/include/X11R4 5631 5632/usr/local/X11/include 5633/usr/local/X11R7/include 5634/usr/local/X11R6/include 5635/usr/local/X11R5/include 5636/usr/local/X11R4/include 5637 5638/usr/local/include/X11 5639/usr/local/include/X11R7 5640/usr/local/include/X11R6 5641/usr/local/include/X11R5 5642/usr/local/include/X11R4 5643 5644/usr/X386/include 5645/usr/x386/include 5646/usr/XFree86/include/X11 5647 5648/usr/include 5649/usr/local/include 5650/usr/unsupported/include 5651/usr/athena/include 5652/usr/local/x11r5/include 5653/usr/lpp/Xamples/include 5654 5655/usr/openwin/include 5656/usr/openwin/share/include' 5657 5658if test "$ac_x_includes" = no; then 5659 # Guess where to find include files, by looking for Xlib.h. 5660 # First, try using that file with no special directory specified. 5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5662/* end confdefs.h. */ 5663#include <X11/Xlib.h> 5664_ACEOF 5665if ac_fn_c_try_cpp "$LINENO"; then : 5666 # We can compile using X headers with no special include directory. 5667ac_x_includes= 5668else 5669 for ac_dir in $ac_x_header_dirs; do 5670 if test -r "$ac_dir/X11/Xlib.h"; then 5671 ac_x_includes=$ac_dir 5672 break 5673 fi 5674done 5675fi 5676rm -f conftest.err conftest.i conftest.$ac_ext 5677fi # $ac_x_includes = no 5678 5679if test "$ac_x_libraries" = no; then 5680 # Check for the libraries. 5681 # See if we find them without any special options. 5682 # Don't add to $LIBS permanently. 5683 ac_save_LIBS=$LIBS 5684 LIBS="-lX11 $LIBS" 5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5686/* end confdefs.h. */ 5687#include <X11/Xlib.h> 5688int 5689main () 5690{ 5691XrmInitialize () 5692 ; 5693 return 0; 5694} 5695_ACEOF 5696if ac_fn_c_try_link "$LINENO"; then : 5697 LIBS=$ac_save_LIBS 5698# We can link X programs with no special library path. 5699ac_x_libraries= 5700else 5701 LIBS=$ac_save_LIBS 5702for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5703do 5704 # Don't even attempt the hair of trying to link an X program! 5705 for ac_extension in a so sl dylib la dll; do 5706 if test -r "$ac_dir/libX11.$ac_extension"; then 5707 ac_x_libraries=$ac_dir 5708 break 2 5709 fi 5710 done 5711done 5712fi 5713rm -f core conftest.err conftest.$ac_objext \ 5714 conftest$ac_exeext conftest.$ac_ext 5715fi # $ac_x_libraries = no 5716 5717case $ac_x_includes,$ac_x_libraries in #( 5718 no,* | *,no | *\'*) 5719 # Didn't find X, or a directory has "'" in its name. 5720 ac_cv_have_x="have_x=no";; #( 5721 *) 5722 # Record where we found X for the cache. 5723 ac_cv_have_x="have_x=yes\ 5724 ac_x_includes='$ac_x_includes'\ 5725 ac_x_libraries='$ac_x_libraries'" 5726esac 5727fi 5728;; #( 5729 *) have_x=yes;; 5730 esac 5731 eval "$ac_cv_have_x" 5732fi # $with_x != no 5733 5734if test "$have_x" != yes; then 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 5736$as_echo "$have_x" >&6; } 5737 no_x=yes 5738else 5739 # If each of the values was on the command line, it overrides each guess. 5740 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5741 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5742 # Update the cache value to reflect the command line values. 5743 ac_cv_have_x="have_x=yes\ 5744 ac_x_includes='$x_includes'\ 5745 ac_x_libraries='$x_libraries'" 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 5747$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 5748fi 5749 5750 not_really_there="" 5751 if test "$no_x" = ""; then 5752 if test "$x_includes" = ""; then 5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5754/* end confdefs.h. */ 5755#include <X11/XIntrinsic.h> 5756_ACEOF 5757if ac_fn_c_try_cpp "$LINENO"; then : 5758 5759else 5760 not_really_there="yes" 5761fi 5762rm -f conftest.err conftest.i conftest.$ac_ext 5763 else 5764 if test ! -r $x_includes/X11/Intrinsic.h; then 5765 not_really_there="yes" 5766 fi 5767 fi 5768 fi 5769 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5 5771$as_echo_n "checking for X11 header files... " >&6; } 5772 found_xincludes="no" 5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5774/* end confdefs.h. */ 5775#include <X11/Intrinsic.h> 5776_ACEOF 5777if ac_fn_c_try_cpp "$LINENO"; then : 5778 found_xincludes="yes" 5779else 5780 found_xincludes="no" 5781fi 5782rm -f conftest.err conftest.i conftest.$ac_ext 5783 if test "$found_xincludes" = "no"; then 5784 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" 5785 for i in $dirs ; do 5786 if test -r $i/X11/Intrinsic.h; then 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5 5788$as_echo "$i" >&6; } 5789 XINCLUDES=" -I$i" 5790 found_xincludes="yes" 5791 break 5792 fi 5793 done 5794 fi 5795 else 5796 if test "$x_includes" != ""; then 5797 XINCLUDES="-I$x_includes" 5798 found_xincludes="yes" 5799 fi 5800 fi 5801 if test "$found_xincludes" = "no"; then 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: couldn't find any!" >&5 5803$as_echo "couldn't find any!" >&6; } 5804 fi 5805 5806 if test "$no_x" = yes; then 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 libraries" >&5 5808$as_echo_n "checking for X11 libraries... " >&6; } 5809 XLIBSW=nope 5810 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" 5811 for i in $dirs ; do 5812 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5 5814$as_echo "$i" >&6; } 5815 XLIBSW="-L$i -lX11" 5816 x_libraries="$i" 5817 break 5818 fi 5819 done 5820 else 5821 if test "$x_libraries" = ""; then 5822 XLIBSW=-lX11 5823 else 5824 XLIBSW="-L$x_libraries -lX11" 5825 fi 5826 fi 5827 if test "$XLIBSW" = nope ; then 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateWindow in -lXwindow" >&5 5829$as_echo_n "checking for XCreateWindow in -lXwindow... " >&6; } 5830if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then : 5831 $as_echo_n "(cached) " >&6 5832else 5833 ac_check_lib_save_LIBS=$LIBS 5834LIBS="-lXwindow $LIBS" 5835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5836/* end confdefs.h. */ 5837 5838/* Override any GCC internal prototype to avoid an error. 5839 Use char because int might match the return type of a GCC 5840 builtin and then its argument prototype would still apply. */ 5841#ifdef __cplusplus 5842extern "C" 5843#endif 5844char XCreateWindow (); 5845int 5846main () 5847{ 5848return XCreateWindow (); 5849 ; 5850 return 0; 5851} 5852_ACEOF 5853if ac_fn_c_try_link "$LINENO"; then : 5854 ac_cv_lib_Xwindow_XCreateWindow=yes 5855else 5856 ac_cv_lib_Xwindow_XCreateWindow=no 5857fi 5858rm -f core conftest.err conftest.$ac_objext \ 5859 conftest$ac_exeext conftest.$ac_ext 5860LIBS=$ac_check_lib_save_LIBS 5861fi 5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5 5863$as_echo "$ac_cv_lib_Xwindow_XCreateWindow" >&6; } 5864if test "x$ac_cv_lib_Xwindow_XCreateWindow" = x""yes; then : 5865 XLIBSW=-lXwindow 5866fi 5867 5868 fi 5869 if test "$XLIBSW" = nope ; then 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find any! Using -lX11." >&5 5871$as_echo "could not find any! Using -lX11." >&6; } 5872 XLIBSW=-lX11 5873 fi 5874 # TEA specific: 5875 if test x"${XLIBSW}" != x ; then 5876 PKG_LIBS="${PKG_LIBS} ${XLIBSW}" 5877 fi 5878 5879 fi 5880 5881 5882# Needed for OS X ppx/intel image handling 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5884$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 5885if test "${ac_cv_c_bigendian+set}" = set; then : 5886 $as_echo_n "(cached) " >&6 5887else 5888 ac_cv_c_bigendian=unknown 5889 # See if we're dealing with a universal compiler. 5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5891/* end confdefs.h. */ 5892#ifndef __APPLE_CC__ 5893 not a universal capable compiler 5894 #endif 5895 typedef int dummy; 5896 5897_ACEOF 5898if ac_fn_c_try_compile "$LINENO"; then : 5899 5900 # Check for potential -arch flags. It is not universal unless 5901 # there are at least two -arch flags with different values. 5902 ac_arch= 5903 ac_prev= 5904 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5905 if test -n "$ac_prev"; then 5906 case $ac_word in 5907 i?86 | x86_64 | ppc | ppc64) 5908 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5909 ac_arch=$ac_word 5910 else 5911 ac_cv_c_bigendian=universal 5912 break 5913 fi 5914 ;; 5915 esac 5916 ac_prev= 5917 elif test "x$ac_word" = "x-arch"; then 5918 ac_prev=arch 5919 fi 5920 done 5921fi 5922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5923 if test $ac_cv_c_bigendian = unknown; then 5924 # See if sys/param.h defines the BYTE_ORDER macro. 5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5926/* end confdefs.h. */ 5927#include <sys/types.h> 5928 #include <sys/param.h> 5929 5930int 5931main () 5932{ 5933#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5934 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5935 && LITTLE_ENDIAN) 5936 bogus endian macros 5937 #endif 5938 5939 ; 5940 return 0; 5941} 5942_ACEOF 5943if ac_fn_c_try_compile "$LINENO"; then : 5944 # It does; now see whether it defined to BIG_ENDIAN or not. 5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5946/* end confdefs.h. */ 5947#include <sys/types.h> 5948 #include <sys/param.h> 5949 5950int 5951main () 5952{ 5953#if BYTE_ORDER != BIG_ENDIAN 5954 not big endian 5955 #endif 5956 5957 ; 5958 return 0; 5959} 5960_ACEOF 5961if ac_fn_c_try_compile "$LINENO"; then : 5962 ac_cv_c_bigendian=yes 5963else 5964 ac_cv_c_bigendian=no 5965fi 5966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5967fi 5968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5969 fi 5970 if test $ac_cv_c_bigendian = unknown; then 5971 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5973/* end confdefs.h. */ 5974#include <limits.h> 5975 5976int 5977main () 5978{ 5979#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5980 bogus endian macros 5981 #endif 5982 5983 ; 5984 return 0; 5985} 5986_ACEOF 5987if ac_fn_c_try_compile "$LINENO"; then : 5988 # It does; now see whether it defined to _BIG_ENDIAN or not. 5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5990/* end confdefs.h. */ 5991#include <limits.h> 5992 5993int 5994main () 5995{ 5996#ifndef _BIG_ENDIAN 5997 not big endian 5998 #endif 5999 6000 ; 6001 return 0; 6002} 6003_ACEOF 6004if ac_fn_c_try_compile "$LINENO"; then : 6005 ac_cv_c_bigendian=yes 6006else 6007 ac_cv_c_bigendian=no 6008fi 6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6010fi 6011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6012 fi 6013 if test $ac_cv_c_bigendian = unknown; then 6014 # Compile a test program. 6015 if test "$cross_compiling" = yes; then : 6016 # Try to guess by grepping values from an object file. 6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6018/* end confdefs.h. */ 6019short int ascii_mm[] = 6020 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6021 short int ascii_ii[] = 6022 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6023 int use_ascii (int i) { 6024 return ascii_mm[i] + ascii_ii[i]; 6025 } 6026 short int ebcdic_ii[] = 6027 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6028 short int ebcdic_mm[] = 6029 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6030 int use_ebcdic (int i) { 6031 return ebcdic_mm[i] + ebcdic_ii[i]; 6032 } 6033 extern int foo; 6034 6035int 6036main () 6037{ 6038return use_ascii (foo) == use_ebcdic (foo); 6039 ; 6040 return 0; 6041} 6042_ACEOF 6043if ac_fn_c_try_compile "$LINENO"; then : 6044 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 6045 ac_cv_c_bigendian=yes 6046 fi 6047 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6048 if test "$ac_cv_c_bigendian" = unknown; then 6049 ac_cv_c_bigendian=no 6050 else 6051 # finding both strings is unlikely to happen, but who knows? 6052 ac_cv_c_bigendian=unknown 6053 fi 6054 fi 6055fi 6056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6057else 6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6059/* end confdefs.h. */ 6060$ac_includes_default 6061int 6062main () 6063{ 6064 6065 /* Are we little or big endian? From Harbison&Steele. */ 6066 union 6067 { 6068 long int l; 6069 char c[sizeof (long int)]; 6070 } u; 6071 u.l = 1; 6072 return u.c[sizeof (long int) - 1] == 1; 6073 6074 ; 6075 return 0; 6076} 6077_ACEOF 6078if ac_fn_c_try_run "$LINENO"; then : 6079 ac_cv_c_bigendian=no 6080else 6081 ac_cv_c_bigendian=yes 6082fi 6083rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6084 conftest.$ac_objext conftest.beam conftest.$ac_ext 6085fi 6086 6087 fi 6088fi 6089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 6090$as_echo "$ac_cv_c_bigendian" >&6; } 6091 case $ac_cv_c_bigendian in #( 6092 yes) 6093 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 6094;; #( 6095 no) 6096 ;; #( 6097 universal) 6098 6099$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 6100 6101 ;; #( 6102 *) 6103 as_fn_error $? "unknown endianness 6104 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 6105 esac 6106 6107 6108if test "$GCC" = yes; then : 6109 6110 6111# Needed for pointer-to-int conversions with GCC on 64-bit 6112ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 6113if test "x$ac_cv_type_intptr_t" = x""yes; then : 6114 6115 6116$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 6117 6118else 6119 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer-size signed integer type" >&5 6121$as_echo_n "checking for pointer-size signed integer type... " >&6; } 6122if test "${tcl_cv_intptr_t+set}" = set; then : 6123 $as_echo_n "(cached) " >&6 6124else 6125 6126 for tcl_cv_intptr_t in "int" "long" "long long" none; do 6127 if test "$tcl_cv_intptr_t" != none; then 6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6129/* end confdefs.h. */ 6130$ac_includes_default 6131int 6132main () 6133{ 6134static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_intptr_t))]; 6135test_array [0] = 0 6136 6137 ; 6138 return 0; 6139} 6140_ACEOF 6141if ac_fn_c_try_compile "$LINENO"; then : 6142 tcl_ok=yes 6143else 6144 tcl_ok=no 6145fi 6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6147 test "$tcl_ok" = yes && break; fi 6148 done 6149fi 6150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_intptr_t" >&5 6151$as_echo "$tcl_cv_intptr_t" >&6; } 6152 if test "$tcl_cv_intptr_t" != none; then 6153 6154cat >>confdefs.h <<_ACEOF 6155#define intptr_t $tcl_cv_intptr_t 6156_ACEOF 6157 6158 fi 6159 6160fi 6161 6162 6163 6164fi 6165 6166#-------------------------------------------------------------------- 6167# __CHANGE__ 6168# A few miscellaneous platform-specific items: 6169# 6170# Define a special symbol for Windows (BUILD_sample in this case) so 6171# that we create the export library with the dll. See sha1.h on how 6172# to use this. 6173# 6174# Windows creates a few extra files that need to be cleaned up. 6175# You can add more files to clean if your extension creates any extra 6176# files. 6177# 6178# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 6179# These will be appended to the current set of compiler flags for 6180# your system. 6181#-------------------------------------------------------------------- 6182 6183OUTPUTFILES=Makefile 6184 6185if test "${TEA_PLATFORM}" = "windows" ; then 6186 6187 vars="tkWinTree.c" 6188 for i in $vars; do 6189 case $i in 6190 \$*) 6191 # allow $-var names 6192 PKG_SOURCES="$PKG_SOURCES $i" 6193 PKG_OBJECTS="$PKG_OBJECTS $i" 6194 ;; 6195 *) 6196 # check for existence - allows for generic/win/unix VPATH 6197 # To add more dirs here (like 'src'), you have to update VPATH 6198 # in Makefile.in as well 6199 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6200 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6201 -a ! -f "${srcdir}/macosx/$i" \ 6202 ; then 6203 as_fn_error $? "could not find source file '$i'" "$LINENO" 5 6204 fi 6205 PKG_SOURCES="$PKG_SOURCES $i" 6206 # this assumes it is in a VPATH dir 6207 i=`basename $i` 6208 # handle user calling this before or after TEA_SETUP_COMPILER 6209 if test x"${OBJEXT}" != x ; then 6210 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6211 else 6212 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6213 fi 6214 PKG_OBJECTS="$PKG_OBJECTS $j" 6215 ;; 6216 esac 6217 done 6218 6219 6220 6221 6222 vars="gdi32.lib user32.lib" 6223 for i in $vars; do 6224 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6225 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6226 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6227 fi 6228 PKG_LIBS="$PKG_LIBS $i" 6229 done 6230 6231 6232 6233 # Check whether --enable-shellicon was given. 6234if test "${enable_shellicon+set}" = set; then : 6235 enableval=$enable_shellicon; tcl_ok=$enableval 6236else 6237 tcl_ok=no 6238fi 6239 6240 if test "$tcl_ok" = "yes" ; then 6241 6242 6243subdirs="$subdirs shellicon" 6244 6245 fi 6246 6247 # Find rc.exe or windres.exe. 6248 # Defined in winrc.m4. 6249 6250 6251# AC_MSG_CHECKING([for windows resource compiler]) 6252 RC_DEPARG='"$<"' 6253 if test "${GCC}" = "yes" ; then 6254 # Extract the first word of "windres", so it can be a program name with args. 6255set dummy windres; ac_word=$2 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6257$as_echo_n "checking for $ac_word... " >&6; } 6258if test "${ac_cv_prog_RC+set}" = set; then : 6259 $as_echo_n "(cached) " >&6 6260else 6261 if test -n "$RC"; then 6262 ac_cv_prog_RC="$RC" # Let the user override the test. 6263else 6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6265for as_dir in $PATH 6266do 6267 IFS=$as_save_IFS 6268 test -z "$as_dir" && as_dir=. 6269 for ac_exec_ext in '' $ac_executable_extensions; do 6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6271 ac_cv_prog_RC="windres" 6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6273 break 2 6274 fi 6275done 6276 done 6277IFS=$as_save_IFS 6278 6279fi 6280fi 6281RC=$ac_cv_prog_RC 6282if test -n "$RC"; then 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 6284$as_echo "$RC" >&6; } 6285else 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6287$as_echo "no" >&6; } 6288fi 6289 6290 6291 if test "${RC}" = "" ; then 6292 as_fn_error $? "Required resource tool 'windres' not found on PATH." "$LINENO" 5 6293 fi 6294 RC_OUT=-o 6295 RC_TYPE= 6296 RC_INCLUDE=--include 6297 RC_DEFINE=--define 6298 RES=res.o 6299 6300 # Check for a bug in gcc's windres that causes the 6301 # compile to fail when a Windows native path is 6302 # passed into windres. The mingw toolchain requires 6303 # Windows native paths while Cygwin should work 6304 # with both. Avoid the bug by passing a POSIX 6305 # path when using the Cygwin toolchain. 6306 6307 if test "$ac_cv_cygwin" != "yes" -a "$CYGPATH" != "echo" ; then 6308 conftest=/tmp/conftest.rc 6309 echo "STRINGTABLE BEGIN" > $conftest 6310 echo "101 \"name\"" >> $conftest 6311 echo "END" >> $conftest 6312 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native path bug in windres" >&5 6314$as_echo_n "checking for Windows native path bug in windres... " >&6; } 6315 cyg_conftest=`$CYGPATH $conftest` 6316 if { ac_try='$RC -o conftest.res.o $cyg_conftest' 6317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6318 (eval $ac_try) 2>&5 6319 ac_status=$? 6320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6321 test $ac_status = 0; }; } ; then 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6323$as_echo "no" >&6; } 6324 RC_DEPARG='"$(shell $(CYGPATH) $<)"' 6325 else 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6327$as_echo "yes" >&6; } 6328 fi 6329 conftest= 6330 cyg_conftest= 6331 fi 6332 6333 else 6334 if test "$do64bit" != "no" ; then 6335 RC="\"${MSSDK}/bin/rc.exe\"" 6336 elif test "$doWince" != "no" ; then 6337 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 6338 else 6339 RC="rc" 6340 fi 6341 RC_OUT=-fo 6342 RC_TYPE=-r 6343 RC_INCLUDE=-i 6344 RC_DEFINE=-d 6345 RES=res 6346 fi 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 # X86|AMD64|IA64 for manifest 6358 6359 6360 # PKG_MANIFEST -> VC_MANIFEST_EMBED_DLL -> MAKE_SHARED_LIB 6361 6362 vars="treectrl.dll.manifest" 6363 for i in $vars; do 6364 # Check for existence of .manifest.in as well 6365 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/$i.in"; then 6366 as_fn_error $? "could not find manifest file '${srcdir}/$i'" "$LINENO" 5 6367 fi 6368 PKG_MANIFEST="$PKG_MANIFEST $i" 6369 # If package .manifest is provided, don't clean it 6370 # If package .manifest is generated by Makefile, clean it 6371 # If package .manifest is generated by configure, distclean it 6372 #TEA_ADD_CLEANFILES([$i]) 6373 done 6374 6375 6376 6377 # Create treectrl.dll.manifest from treectrl.dll.manifest.in. 6378 # treectrl.dll.manifest is included by treectrl.rc. 6379 # If building with a Microsoft compiler that generates 6380 # treectrlNN.dll.manifest (to pick the correct MSVCRT runtime) then 6381 # that manifest is merged with mine using mt.exe (see the Makefile 6382 # rule for PKG_LIB_FILE). 6383 OUTPUTFILES="Makefile treectrl.dll.manifest" 6384 6385 6386 vars="treectrl.rc" 6387 for i in $vars; do 6388 case $i in 6389 \$*) 6390 # allow $-var names 6391 PKG_SOURCES="$PKG_SOURCES $i" 6392 PKG_OBJECTS="$PKG_OBJECTS $i" 6393 ;; 6394 *) 6395 # check for existence - allows for generic/win/unix VPATH 6396 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6397 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6398 ; then 6399 as_fn_error $? "could not find source file '$i'" "$LINENO" 5 6400 fi 6401 PKG_SOURCES="$PKG_SOURCES $i" 6402 # this assumes it is in a VPATH dir 6403 i=`basename $i` 6404 # handle user calling this before or after TEA_SETUP_COMPILER 6405 if test x"${RES}" != x ; then 6406 j="`echo $i | sed -e 's/\.[^.]*$//'`.${RES}" 6407 else 6408 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${RES}" 6409 fi 6410 PKG_OBJECTS="$PKG_OBJECTS $j" 6411 6412 CLEANFILES="$CLEANFILES $j" 6413 6414 ;; 6415 esac 6416 done 6417 6418 6419 6420fi 6421 6422if test "${TEA_WINDOWINGSYSTEM}" = "aqua"; then 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Cocoa or Carbon" >&5 6424$as_echo_n "checking whether to use Cocoa or Carbon... " >&6; } 6425 case ${TK_LIBS} in 6426 *Cocoa*) 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cocoa" >&5 6428$as_echo "Cocoa" >&6; } 6429 6430 PKG_CFLAGS="$PKG_CFLAGS -DMAC_TK_COCOA -std=gnu99 -x objective-c -fobjc-gc" 6431 6432 6433 6434 vars="tkMacOSXTree.c" 6435 for i in $vars; do 6436 case $i in 6437 \$*) 6438 # allow $-var names 6439 PKG_SOURCES="$PKG_SOURCES $i" 6440 PKG_OBJECTS="$PKG_OBJECTS $i" 6441 ;; 6442 *) 6443 # check for existence - allows for generic/win/unix VPATH 6444 # To add more dirs here (like 'src'), you have to update VPATH 6445 # in Makefile.in as well 6446 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6447 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6448 -a ! -f "${srcdir}/macosx/$i" \ 6449 ; then 6450 as_fn_error $? "could not find source file '$i'" "$LINENO" 5 6451 fi 6452 PKG_SOURCES="$PKG_SOURCES $i" 6453 # this assumes it is in a VPATH dir 6454 i=`basename $i` 6455 # handle user calling this before or after TEA_SETUP_COMPILER 6456 if test x"${OBJEXT}" != x ; then 6457 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6458 else 6459 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6460 fi 6461 PKG_OBJECTS="$PKG_OBJECTS $j" 6462 ;; 6463 esac 6464 done 6465 6466 6467 6468 6469 vars="-framework Cocoa -framework Carbon" 6470 for i in $vars; do 6471 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6472 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6473 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6474 fi 6475 PKG_LIBS="$PKG_LIBS $i" 6476 done 6477 6478 6479 ;; 6480 *) 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon" >&5 6482$as_echo "Carbon" >&6; } 6483 6484 PKG_CFLAGS="$PKG_CFLAGS -DMAC_TK_CARBON" 6485 6486 6487 6488 vars="tkMacOSXTree.c" 6489 for i in $vars; do 6490 case $i in 6491 \$*) 6492 # allow $-var names 6493 PKG_SOURCES="$PKG_SOURCES $i" 6494 PKG_OBJECTS="$PKG_OBJECTS $i" 6495 ;; 6496 *) 6497 # check for existence - allows for generic/win/unix VPATH 6498 # To add more dirs here (like 'src'), you have to update VPATH 6499 # in Makefile.in as well 6500 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6501 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6502 -a ! -f "${srcdir}/macosx/$i" \ 6503 ; then 6504 as_fn_error $? "could not find source file '$i'" "$LINENO" 5 6505 fi 6506 PKG_SOURCES="$PKG_SOURCES $i" 6507 # this assumes it is in a VPATH dir 6508 i=`basename $i` 6509 # handle user calling this before or after TEA_SETUP_COMPILER 6510 if test x"${OBJEXT}" != x ; then 6511 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6512 else 6513 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6514 fi 6515 PKG_OBJECTS="$PKG_OBJECTS $j" 6516 ;; 6517 esac 6518 done 6519 6520 6521 6522 6523 vars="-framework Carbon" 6524 for i in $vars; do 6525 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6526 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6527 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6528 fi 6529 PKG_LIBS="$PKG_LIBS $i" 6530 done 6531 6532 6533 ;; 6534 esac 6535fi 6536 6537if test "${TEA_WINDOWINGSYSTEM}" = "x11"; then 6538 6539 vars="tkUnixTree.c" 6540 for i in $vars; do 6541 case $i in 6542 \$*) 6543 # allow $-var names 6544 PKG_SOURCES="$PKG_SOURCES $i" 6545 PKG_OBJECTS="$PKG_OBJECTS $i" 6546 ;; 6547 *) 6548 # check for existence - allows for generic/win/unix VPATH 6549 # To add more dirs here (like 'src'), you have to update VPATH 6550 # in Makefile.in as well 6551 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6552 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6553 -a ! -f "${srcdir}/macosx/$i" \ 6554 ; then 6555 as_fn_error $? "could not find source file '$i'" "$LINENO" 5 6556 fi 6557 PKG_SOURCES="$PKG_SOURCES $i" 6558 # this assumes it is in a VPATH dir 6559 i=`basename $i` 6560 # handle user calling this before or after TEA_SETUP_COMPILER 6561 if test x"${OBJEXT}" != x ; then 6562 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6563 else 6564 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6565 fi 6566 PKG_OBJECTS="$PKG_OBJECTS $j" 6567 ;; 6568 esac 6569 done 6570 6571 6572 6573 6574 # Check whether --enable-gtk was given. 6575if test "${enable_gtk+set}" = set; then : 6576 enableval=$enable_gtk; tcl_ok=$enableval 6577else 6578 tcl_ok=no 6579fi 6580 6581 if test "$tcl_ok" = "yes" ; then 6582 6583 6584if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 6585 if test -n "$ac_tool_prefix"; then 6586 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 6587set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6589$as_echo_n "checking for $ac_word... " >&6; } 6590if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 6591 $as_echo_n "(cached) " >&6 6592else 6593 case $PKG_CONFIG in 6594 [\\/]* | ?:[\\/]*) 6595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6596 ;; 6597 *) 6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6599for as_dir in $PATH 6600do 6601 IFS=$as_save_IFS 6602 test -z "$as_dir" && as_dir=. 6603 for ac_exec_ext in '' $ac_executable_extensions; do 6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6605 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6607 break 2 6608 fi 6609done 6610 done 6611IFS=$as_save_IFS 6612 6613 ;; 6614esac 6615fi 6616PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6617if test -n "$PKG_CONFIG"; then 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6619$as_echo "$PKG_CONFIG" >&6; } 6620else 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6622$as_echo "no" >&6; } 6623fi 6624 6625 6626fi 6627if test -z "$ac_cv_path_PKG_CONFIG"; then 6628 ac_pt_PKG_CONFIG=$PKG_CONFIG 6629 # Extract the first word of "pkg-config", so it can be a program name with args. 6630set dummy pkg-config; ac_word=$2 6631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6632$as_echo_n "checking for $ac_word... " >&6; } 6633if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 6634 $as_echo_n "(cached) " >&6 6635else 6636 case $ac_pt_PKG_CONFIG in 6637 [\\/]* | ?:[\\/]*) 6638 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6639 ;; 6640 *) 6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6642for as_dir in $PATH 6643do 6644 IFS=$as_save_IFS 6645 test -z "$as_dir" && as_dir=. 6646 for ac_exec_ext in '' $ac_executable_extensions; do 6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6648 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6650 break 2 6651 fi 6652done 6653 done 6654IFS=$as_save_IFS 6655 6656 ;; 6657esac 6658fi 6659ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6660if test -n "$ac_pt_PKG_CONFIG"; then 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6662$as_echo "$ac_pt_PKG_CONFIG" >&6; } 6663else 6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6665$as_echo "no" >&6; } 6666fi 6667 6668 if test "x$ac_pt_PKG_CONFIG" = x; then 6669 PKG_CONFIG="" 6670 else 6671 case $cross_compiling:$ac_tool_warned in 6672yes:) 6673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6675ac_tool_warned=yes ;; 6676esac 6677 PKG_CONFIG=$ac_pt_PKG_CONFIG 6678 fi 6679else 6680 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6681fi 6682 6683fi 6684if test -n "$PKG_CONFIG"; then 6685 _pkg_min_version=0.9.0 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 6687$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 6688 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6690$as_echo "yes" >&6; } 6691 else 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6693$as_echo "no" >&6; } 6694 PKG_CONFIG="" 6695 fi 6696 6697fi 6698 6699pkg_failed=no 6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 6701$as_echo_n "checking for GTK... " >&6; } 6702 6703if test -n "$PKG_CONFIG"; then 6704 if test -n "$GTK_CFLAGS"; then 6705 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" 6706 else 6707 if test -n "$PKG_CONFIG" && \ 6708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 gdk-pixbuf-xlib-2.0\""; } >&5 6709 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 gdk-pixbuf-xlib-2.0") 2>&5 6710 ac_status=$? 6711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6712 test $ac_status = 0; }; then 6713 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 gdk-pixbuf-xlib-2.0" 2>/dev/null` 6714else 6715 pkg_failed=yes 6716fi 6717 fi 6718else 6719 pkg_failed=untried 6720fi 6721if test -n "$PKG_CONFIG"; then 6722 if test -n "$GTK_LIBS"; then 6723 pkg_cv_GTK_LIBS="$GTK_LIBS" 6724 else 6725 if test -n "$PKG_CONFIG" && \ 6726 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 gdk-pixbuf-xlib-2.0\""; } >&5 6727 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 gdk-pixbuf-xlib-2.0") 2>&5 6728 ac_status=$? 6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6730 test $ac_status = 0; }; then 6731 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 gdk-pixbuf-xlib-2.0" 2>/dev/null` 6732else 6733 pkg_failed=yes 6734fi 6735 fi 6736else 6737 pkg_failed=untried 6738fi 6739 6740 6741 6742if test $pkg_failed = yes; then 6743 6744if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 6745 _pkg_short_errors_supported=yes 6746else 6747 _pkg_short_errors_supported=no 6748fi 6749 if test $_pkg_short_errors_supported = yes; then 6750 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 gdk-pixbuf-xlib-2.0"` 6751 else 6752 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 gdk-pixbuf-xlib-2.0"` 6753 fi 6754 # Put the nasty error message in config.log where it belongs 6755 echo "$GTK_PKG_ERRORS" >&5 6756 6757 as_fn_error $? "Package requirements (gtk+-2.0 gdk-pixbuf-xlib-2.0) were not met: 6758 6759$GTK_PKG_ERRORS 6760 6761Consider adjusting the PKG_CONFIG_PATH environment variable if you 6762installed software in a non-standard prefix. 6763 6764Alternatively, you may set the environment variables GTK_CFLAGS 6765and GTK_LIBS to avoid the need to call pkg-config. 6766See the pkg-config man page for more details. 6767" "$LINENO" 5 6768elif test $pkg_failed = untried; then 6769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6771as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 6772is in your PATH or set the PKG_CONFIG environment variable to the full 6773path to pkg-config. 6774 6775Alternatively, you may set the environment variables GTK_CFLAGS 6776and GTK_LIBS to avoid the need to call pkg-config. 6777See the pkg-config man page for more details. 6778 6779To get pkg-config, see <http://pkg-config.freedesktop.org/>. 6780See \`config.log' for more details" "$LINENO" 5 ; } 6781else 6782 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS 6783 GTK_LIBS=$pkg_cv_GTK_LIBS 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6785$as_echo "yes" >&6; } 6786 : 6787fi 6788 6789 PKG_CFLAGS="$PKG_CFLAGS -DTREECTRL_GTK $GTK_CFLAGS" 6790 6791 6792 6793 vars="$GTK_LIBS" 6794 for i in $vars; do 6795 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6796 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6797 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6798 fi 6799 PKG_LIBS="$PKG_LIBS $i" 6800 done 6801 6802 6803 fi 6804 6805 6806 vars="${MATH_LIBS}" 6807 for i in $vars; do 6808 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6809 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6810 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6811 fi 6812 PKG_LIBS="$PKG_LIBS $i" 6813 done 6814 6815 6816fi 6817 6818#-------------------------------------------------------------------- 6819# Check whether --enable-threads or --disable-threads was given. 6820#-------------------------------------------------------------------- 6821 6822 6823 # Check whether --enable-threads was given. 6824if test "${enable_threads+set}" = set; then : 6825 enableval=$enable_threads; tcl_ok=$enableval 6826else 6827 tcl_ok=yes 6828fi 6829 6830 6831 if test "${enable_threads+set}" = set; then 6832 enableval="$enable_threads" 6833 tcl_ok=$enableval 6834 else 6835 tcl_ok=yes 6836 fi 6837 6838 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 6839 TCL_THREADS=1 6840 6841 if test "${TEA_PLATFORM}" != "windows" ; then 6842 # We are always OK on Windows, so check what this platform wants: 6843 6844 # USE_THREAD_ALLOC tells us to try the special thread-based 6845 # allocator that significantly reduces lock contention 6846 6847$as_echo "#define USE_THREAD_ALLOC 1" >>confdefs.h 6848 6849 6850$as_echo "#define _REENTRANT 1" >>confdefs.h 6851 6852 if test "`uname -s`" = "SunOS" ; then 6853 6854$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6855 6856 fi 6857 6858$as_echo "#define _THREAD_SAFE 1" >>confdefs.h 6859 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 6861$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } 6862if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then : 6863 $as_echo_n "(cached) " >&6 6864else 6865 ac_check_lib_save_LIBS=$LIBS 6866LIBS="-lpthread $LIBS" 6867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6868/* end confdefs.h. */ 6869 6870/* Override any GCC internal prototype to avoid an error. 6871 Use char because int might match the return type of a GCC 6872 builtin and then its argument prototype would still apply. */ 6873#ifdef __cplusplus 6874extern "C" 6875#endif 6876char pthread_mutex_init (); 6877int 6878main () 6879{ 6880return pthread_mutex_init (); 6881 ; 6882 return 0; 6883} 6884_ACEOF 6885if ac_fn_c_try_link "$LINENO"; then : 6886 ac_cv_lib_pthread_pthread_mutex_init=yes 6887else 6888 ac_cv_lib_pthread_pthread_mutex_init=no 6889fi 6890rm -f core conftest.err conftest.$ac_objext \ 6891 conftest$ac_exeext conftest.$ac_ext 6892LIBS=$ac_check_lib_save_LIBS 6893fi 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 6895$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 6896if test "x$ac_cv_lib_pthread_pthread_mutex_init" = x""yes; then : 6897 tcl_ok=yes 6898else 6899 tcl_ok=no 6900fi 6901 6902 if test "$tcl_ok" = "no"; then 6903 # Check a little harder for __pthread_mutex_init in the same 6904 # library, as some systems hide it there until pthread.h is 6905 # defined. We could alternatively do an AC_TRY_COMPILE with 6906 # pthread.h, but that will work with libpthread really doesn't 6907 # exist, like AIX 4.2. [Bug: 4359] 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5 6909$as_echo_n "checking for __pthread_mutex_init in -lpthread... " >&6; } 6910if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then : 6911 $as_echo_n "(cached) " >&6 6912else 6913 ac_check_lib_save_LIBS=$LIBS 6914LIBS="-lpthread $LIBS" 6915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6916/* end confdefs.h. */ 6917 6918/* Override any GCC internal prototype to avoid an error. 6919 Use char because int might match the return type of a GCC 6920 builtin and then its argument prototype would still apply. */ 6921#ifdef __cplusplus 6922extern "C" 6923#endif 6924char __pthread_mutex_init (); 6925int 6926main () 6927{ 6928return __pthread_mutex_init (); 6929 ; 6930 return 0; 6931} 6932_ACEOF 6933if ac_fn_c_try_link "$LINENO"; then : 6934 ac_cv_lib_pthread___pthread_mutex_init=yes 6935else 6936 ac_cv_lib_pthread___pthread_mutex_init=no 6937fi 6938rm -f core conftest.err conftest.$ac_objext \ 6939 conftest$ac_exeext conftest.$ac_ext 6940LIBS=$ac_check_lib_save_LIBS 6941fi 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 6943$as_echo "$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 6944if test "x$ac_cv_lib_pthread___pthread_mutex_init" = x""yes; then : 6945 tcl_ok=yes 6946else 6947 tcl_ok=no 6948fi 6949 6950 fi 6951 6952 if test "$tcl_ok" = "yes"; then 6953 # The space is needed 6954 THREADS_LIBS=" -lpthread" 6955 else 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5 6957$as_echo_n "checking for pthread_mutex_init in -lpthreads... " >&6; } 6958if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then : 6959 $as_echo_n "(cached) " >&6 6960else 6961 ac_check_lib_save_LIBS=$LIBS 6962LIBS="-lpthreads $LIBS" 6963cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6964/* end confdefs.h. */ 6965 6966/* Override any GCC internal prototype to avoid an error. 6967 Use char because int might match the return type of a GCC 6968 builtin and then its argument prototype would still apply. */ 6969#ifdef __cplusplus 6970extern "C" 6971#endif 6972char pthread_mutex_init (); 6973int 6974main () 6975{ 6976return pthread_mutex_init (); 6977 ; 6978 return 0; 6979} 6980_ACEOF 6981if ac_fn_c_try_link "$LINENO"; then : 6982 ac_cv_lib_pthreads_pthread_mutex_init=yes 6983else 6984 ac_cv_lib_pthreads_pthread_mutex_init=no 6985fi 6986rm -f core conftest.err conftest.$ac_objext \ 6987 conftest$ac_exeext conftest.$ac_ext 6988LIBS=$ac_check_lib_save_LIBS 6989fi 6990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 6991$as_echo "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 6992if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = x""yes; then : 6993 tcl_ok=yes 6994else 6995 tcl_ok=no 6996fi 6997 6998 if test "$tcl_ok" = "yes"; then 6999 # The space is needed 7000 THREADS_LIBS=" -lpthreads" 7001 else 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5 7003$as_echo_n "checking for pthread_mutex_init in -lc... " >&6; } 7004if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then : 7005 $as_echo_n "(cached) " >&6 7006else 7007 ac_check_lib_save_LIBS=$LIBS 7008LIBS="-lc $LIBS" 7009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7010/* end confdefs.h. */ 7011 7012/* Override any GCC internal prototype to avoid an error. 7013 Use char because int might match the return type of a GCC 7014 builtin and then its argument prototype would still apply. */ 7015#ifdef __cplusplus 7016extern "C" 7017#endif 7018char pthread_mutex_init (); 7019int 7020main () 7021{ 7022return pthread_mutex_init (); 7023 ; 7024 return 0; 7025} 7026_ACEOF 7027if ac_fn_c_try_link "$LINENO"; then : 7028 ac_cv_lib_c_pthread_mutex_init=yes 7029else 7030 ac_cv_lib_c_pthread_mutex_init=no 7031fi 7032rm -f core conftest.err conftest.$ac_objext \ 7033 conftest$ac_exeext conftest.$ac_ext 7034LIBS=$ac_check_lib_save_LIBS 7035fi 7036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7037$as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; } 7038if test "x$ac_cv_lib_c_pthread_mutex_init" = x""yes; then : 7039 tcl_ok=yes 7040else 7041 tcl_ok=no 7042fi 7043 7044 if test "$tcl_ok" = "no"; then 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5 7046$as_echo_n "checking for pthread_mutex_init in -lc_r... " >&6; } 7047if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then : 7048 $as_echo_n "(cached) " >&6 7049else 7050 ac_check_lib_save_LIBS=$LIBS 7051LIBS="-lc_r $LIBS" 7052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7053/* end confdefs.h. */ 7054 7055/* Override any GCC internal prototype to avoid an error. 7056 Use char because int might match the return type of a GCC 7057 builtin and then its argument prototype would still apply. */ 7058#ifdef __cplusplus 7059extern "C" 7060#endif 7061char pthread_mutex_init (); 7062int 7063main () 7064{ 7065return pthread_mutex_init (); 7066 ; 7067 return 0; 7068} 7069_ACEOF 7070if ac_fn_c_try_link "$LINENO"; then : 7071 ac_cv_lib_c_r_pthread_mutex_init=yes 7072else 7073 ac_cv_lib_c_r_pthread_mutex_init=no 7074fi 7075rm -f core conftest.err conftest.$ac_objext \ 7076 conftest$ac_exeext conftest.$ac_ext 7077LIBS=$ac_check_lib_save_LIBS 7078fi 7079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7080$as_echo "$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7081if test "x$ac_cv_lib_c_r_pthread_mutex_init" = x""yes; then : 7082 tcl_ok=yes 7083else 7084 tcl_ok=no 7085fi 7086 7087 if test "$tcl_ok" = "yes"; then 7088 # The space is needed 7089 THREADS_LIBS=" -pthread" 7090 else 7091 TCL_THREADS=0 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7093$as_echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7094 fi 7095 fi 7096 fi 7097 fi 7098 fi 7099 else 7100 TCL_THREADS=0 7101 fi 7102 # Do checking message here to not mess up interleaved configure output 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5 7104$as_echo_n "checking for building with threads... " >&6; } 7105 if test "${TCL_THREADS}" = 1; then 7106 7107$as_echo "#define TCL_THREADS 1" >>confdefs.h 7108 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 7110$as_echo "yes (default)" >&6; } 7111 else 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7113$as_echo "no" >&6; } 7114 fi 7115 # TCL_THREADS sanity checking. See if our request for building with 7116 # threads is the same as the way Tcl was built. If not, warn the user. 7117 case ${TCL_DEFS} in 7118 *THREADS=1*) 7119 if test "${TCL_THREADS}" = "0"; then 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 7121 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7122 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7123$as_echo "$as_me: WARNING: 7124 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7125 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7126 fi 7127 ;; 7128 *) 7129 if test "${TCL_THREADS}" = "1"; then 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 7131 --enable-threads requested, but building against a Tcl that is NOT 7132 thread-enabled. This is an OK configuration that will also run in 7133 a thread-enabled core." >&5 7134$as_echo "$as_me: WARNING: 7135 --enable-threads requested, but building against a Tcl that is NOT 7136 thread-enabled. This is an OK configuration that will also run in 7137 a thread-enabled core." >&2;} 7138 fi 7139 ;; 7140 esac 7141 7142 7143 7144if test "${TCL_THREADS}" = "1"; then : 7145 7146 DIST_WIN_THREADS=-threads 7147 7148else 7149 7150 DIST_WIN_THREADS="" 7151 7152fi 7153 7154 7155#-------------------------------------------------------------------- 7156# The statement below defines a collection of symbols related to 7157# building as a shared library instead of a static library. 7158#-------------------------------------------------------------------- 7159 7160 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5 7162$as_echo_n "checking how to build libraries... " >&6; } 7163 # Check whether --enable-shared was given. 7164if test "${enable_shared+set}" = set; then : 7165 enableval=$enable_shared; tcl_ok=$enableval 7166else 7167 tcl_ok=yes 7168fi 7169 7170 7171 if test "${enable_shared+set}" = set; then 7172 enableval="$enable_shared" 7173 tcl_ok=$enableval 7174 else 7175 tcl_ok=yes 7176 fi 7177 7178 if test "$tcl_ok" = "yes" ; then 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5 7180$as_echo "shared" >&6; } 7181 SHARED_BUILD=1 7182 else 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 7184$as_echo "static" >&6; } 7185 SHARED_BUILD=0 7186 7187$as_echo "#define STATIC_BUILD 1" >>confdefs.h 7188 7189 fi 7190 7191 7192 7193#-------------------------------------------------------------------- 7194# This macro figures out what flags to use with the compiler/linker 7195# when building shared/static debug/optimized objects. This information 7196# can be taken from the tclConfig.sh file, but this figures it all out. 7197#-------------------------------------------------------------------- 7198 7199 7200 7201 7202 # Step 0.a: Enable 64 bit support? 7203 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 7205$as_echo_n "checking if 64bit support is requested... " >&6; } 7206 # Check whether --enable-64bit was given. 7207if test "${enable_64bit+set}" = set; then : 7208 enableval=$enable_64bit; do64bit=$enableval 7209else 7210 do64bit=no 7211fi 7212 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 7214$as_echo "$do64bit" >&6; } 7215 7216 # Step 0.b: Enable Solaris 64 bit VIS support? 7217 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 7219$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } 7220 # Check whether --enable-64bit-vis was given. 7221if test "${enable_64bit_vis+set}" = set; then : 7222 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7223else 7224 do64bitVIS=no 7225fi 7226 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 7228$as_echo "$do64bitVIS" >&6; } 7229 # Force 64bit on with VIS 7230 if test "$do64bitVIS" = "yes"; then : 7231 do64bit=yes 7232fi 7233 7234 # Step 0.c: Check if visibility support is available. Do this here so 7235 # that platform specific alternatives can be used below if this fails. 7236 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5 7238$as_echo_n "checking if compiler supports visibility \"hidden\"... " >&6; } 7239if test "${tcl_cv_cc_visibility_hidden+set}" = set; then : 7240 $as_echo_n "(cached) " >&6 7241else 7242 7243 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7245/* end confdefs.h. */ 7246 7247 extern __attribute__((__visibility__("hidden"))) void f(void); 7248 void f(void) {} 7249int 7250main () 7251{ 7252f(); 7253 ; 7254 return 0; 7255} 7256_ACEOF 7257if ac_fn_c_try_link "$LINENO"; then : 7258 tcl_cv_cc_visibility_hidden=yes 7259else 7260 tcl_cv_cc_visibility_hidden=no 7261fi 7262rm -f core conftest.err conftest.$ac_objext \ 7263 conftest$ac_exeext conftest.$ac_ext 7264 CFLAGS=$hold_cflags 7265fi 7266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5 7267$as_echo "$tcl_cv_cc_visibility_hidden" >&6; } 7268 if test $tcl_cv_cc_visibility_hidden = yes; then : 7269 7270 7271$as_echo "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h 7272 7273 7274fi 7275 7276 # Step 0.d: Disable -rpath support? 7277 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5 7279$as_echo_n "checking if rpath support is requested... " >&6; } 7280 # Check whether --enable-rpath was given. 7281if test "${enable_rpath+set}" = set; then : 7282 enableval=$enable_rpath; doRpath=$enableval 7283else 7284 doRpath=yes 7285fi 7286 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5 7288$as_echo "$doRpath" >&6; } 7289 7290 # TEA specific: Cross-compiling options for Windows/CE builds? 7291 7292 if test "${TEA_PLATFORM}" = windows; then : 7293 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Windows/CE build is requested" >&5 7295$as_echo_n "checking if Windows/CE build is requested... " >&6; } 7296 # Check whether --enable-wince was given. 7297if test "${enable_wince+set}" = set; then : 7298 enableval=$enable_wince; doWince=$enableval 7299else 7300 doWince=no 7301fi 7302 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doWince" >&5 7304$as_echo "$doWince" >&6; } 7305 7306fi 7307 7308 # Set the variable "system" to hold the name and version number 7309 # for the system. 7310 7311 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 7313$as_echo_n "checking system version... " >&6; } 7314if test "${tcl_cv_sys_version+set}" = set; then : 7315 $as_echo_n "(cached) " >&6 7316else 7317 7318 # TEA specific: 7319 if test "${TEA_PLATFORM}" = "windows" ; then 7320 tcl_cv_sys_version=windows 7321 else 7322 tcl_cv_sys_version=`uname -s`-`uname -r` 7323 if test "$?" -ne 0 ; then 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 7325$as_echo "$as_me: WARNING: can't find uname command" >&2;} 7326 tcl_cv_sys_version=unknown 7327 else 7328 if test "`uname -s`" = "AIX" ; then 7329 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7330 fi 7331 fi 7332 fi 7333 7334fi 7335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 7336$as_echo "$tcl_cv_sys_version" >&6; } 7337 system=$tcl_cv_sys_version 7338 7339 7340 # Require ranlib early so we can override it in special cases below. 7341 7342 7343 7344 # Set configuration options based on system name and version. 7345 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7346 # "windows" case and removed some core-only vars. 7347 7348 do64bit_ok=no 7349 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7350 SHLIB_LD_LIBS='${LIBS}' 7351 # When ld needs options to work in 64-bit mode, put them in 7352 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7353 # is disabled by the user. [Bug 1016796] 7354 LDFLAGS_ARCH="" 7355 UNSHARED_LIB_SUFFIX="" 7356 # TEA specific: use PACKAGE_VERSION instead of VERSION 7357 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7358 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7359 TCL_LIB_VERSIONS_OK=ok 7360 CFLAGS_DEBUG=-g 7361 CFLAGS_OPTIMIZE=-O 7362 if test "$GCC" = yes; then : 7363 7364 # TEA specific: 7365 CFLAGS_OPTIMIZE=-O2 7366 CFLAGS_WARNING="-Wall" 7367 7368else 7369 CFLAGS_WARNING="" 7370fi 7371 CC_OBJNAME="-o \$@" 7372 7373 # Extract the first word of "ar", so it can be a program name with args. 7374set dummy ar; ac_word=$2 7375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7376$as_echo_n "checking for $ac_word... " >&6; } 7377if test "${ac_cv_prog_AR+set}" = set; then : 7378 $as_echo_n "(cached) " >&6 7379else 7380 if test -n "$AR"; then 7381 ac_cv_prog_AR="$AR" # Let the user override the test. 7382else 7383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7384for as_dir in $PATH 7385do 7386 IFS=$as_save_IFS 7387 test -z "$as_dir" && as_dir=. 7388 for ac_exec_ext in '' $ac_executable_extensions; do 7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7390 ac_cv_prog_AR="ar" 7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7392 break 2 7393 fi 7394done 7395 done 7396IFS=$as_save_IFS 7397 7398fi 7399fi 7400AR=$ac_cv_prog_AR 7401if test -n "$AR"; then 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7403$as_echo "$AR" >&6; } 7404else 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7406$as_echo "no" >&6; } 7407fi 7408 7409 7410 STLIB_LD='${AR} cr' 7411 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7412 if test "x$SHLIB_VERSION" = x; then : 7413 SHLIB_VERSION="1.0" 7414fi 7415 case $system in 7416 # TEA specific: 7417 windows) 7418 # This is a 2-stage check to make sure we have the 64-bit SDK 7419 # We have to know where the SDK is installed. 7420 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7421 # MACHINE is IX86 for LINK, but this is used by the manifest, 7422 # which requires x86|amd64|ia64. 7423 MACHINE="X86" 7424 if test "$do64bit" != "no" ; then 7425 if test "x${MSSDK}x" = "xx" ; then 7426 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7427 fi 7428 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7429 PATH64="" 7430 case "$do64bit" in 7431 amd64|x64|yes) 7432 MACHINE="AMD64" ; # default to AMD64 64-bit build 7433 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7434 ;; 7435 ia64) 7436 MACHINE="IA64" 7437 PATH64="${MSSDK}/Bin/Win64" 7438 ;; 7439 esac 7440 if test ! -d "${PATH64}" ; then 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7442$as_echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ensure latest Platform SDK is installed" >&5 7444$as_echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7445 do64bit="no" 7446 else 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using 64-bit $MACHINE mode" >&5 7448$as_echo " Using 64-bit $MACHINE mode" >&6; } 7449 do64bit_ok="yes" 7450 fi 7451 fi 7452 7453 if test "$doWince" != "no" ; then 7454 if test "$do64bit" != "no" ; then 7455 as_fn_error $? "Windows/CE and 64-bit builds incompatible" "$LINENO" 5 7456 fi 7457 if test "$GCC" = "yes" ; then 7458 as_fn_error $? "Windows/CE and GCC builds incompatible" "$LINENO" 5 7459 fi 7460 7461 # First, look for one uninstalled. 7462 # the alternative search directory is invoked by --with-celib 7463 7464 if test x"${no_celib}" = x ; then 7465 # we reset no_celib in case something fails here 7466 no_celib=true 7467 7468# Check whether --with-celib was given. 7469if test "${with_celib+set}" = set; then : 7470 withval=$with_celib; with_celibconfig=${withval} 7471fi 7472 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows/CE celib directory" >&5 7474$as_echo_n "checking for Windows/CE celib directory... " >&6; } 7475 if test "${ac_cv_c_celibconfig+set}" = set; then : 7476 $as_echo_n "(cached) " >&6 7477else 7478 7479 # First check to see if --with-celibconfig was specified. 7480 if test x"${with_celibconfig}" != x ; then 7481 if test -d "${with_celibconfig}/inc" ; then 7482 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7483 else 7484 as_fn_error $? "${with_celibconfig} directory doesn't contain inc directory" "$LINENO" 5 7485 fi 7486 fi 7487 7488 # then check for a celib library 7489 if test x"${ac_cv_c_celibconfig}" = x ; then 7490 for i in \ 7491 ../celib-palm-3.0 \ 7492 ../celib \ 7493 ../../celib-palm-3.0 \ 7494 ../../celib \ 7495 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7496 ${srcdir}/../celib-palm-3.0 \ 7497 ${srcdir}/../celib \ 7498 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7499 ; do 7500 if test -d "$i/inc" ; then 7501 ac_cv_c_celibconfig=`(cd $i; pwd)` 7502 break 7503 fi 7504 done 7505 fi 7506 7507fi 7508 7509 if test x"${ac_cv_c_celibconfig}" = x ; then 7510 as_fn_error $? "Cannot find celib support library directory" "$LINENO" 5 7511 else 7512 no_celib= 7513 CELIB_DIR=${ac_cv_c_celibconfig} 7514 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $CELIB_DIR" >&5 7516$as_echo "found $CELIB_DIR" >&6; } 7517 fi 7518 fi 7519 7520 # Set defaults for common evc4/PPC2003 setup 7521 # Currently Tcl requires 300+, possibly 420+ for sockets 7522 CEVERSION=420; # could be 211 300 301 400 420 ... 7523 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7524 ARCH=ARM; # could be ARM MIPS X86EM ... 7525 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7526 if test "$doWince" != "yes"; then 7527 # If !yes then the user specified something 7528 # Reset ARCH to allow user to skip specifying it 7529 ARCH= 7530 eval `echo $doWince | awk -F, '{ \ 7531 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7532 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7533 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7534 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7535 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7536 }'` 7537 if test "x${ARCH}" = "x" ; then 7538 ARCH=$TARGETCPU; 7539 fi 7540 fi 7541 OSVERSION=WCE$CEVERSION; 7542 if test "x${WCEROOT}" = "x" ; then 7543 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7544 if test ! -d "${WCEROOT}" ; then 7545 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7546 fi 7547 fi 7548 if test "x${SDKROOT}" = "x" ; then 7549 SDKROOT="C:/Program Files/Windows CE Tools" 7550 if test ! -d "${SDKROOT}" ; then 7551 SDKROOT="C:/Windows CE Tools" 7552 fi 7553 fi 7554 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7555 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7556 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7557 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7558 as_fn_error $? "could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" "$LINENO" 5 7559 doWince="no" 7560 else 7561 # We could PATH_NOSPACE these, but that's not important, 7562 # as long as we quote them when used. 7563 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7564 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7565 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7566 fi 7567 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7568 fi 7569 fi 7570 7571 if test "$GCC" != "yes" ; then 7572 if test "${SHARED_BUILD}" = "0" ; then 7573 runtime=-MT 7574 else 7575 runtime=-MD 7576 fi 7577 7578 if test "$do64bit" != "no" ; then 7579 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7580 CC="\"${PATH64}/cl.exe\"" 7581 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7582 RC="\"${MSSDK}/bin/rc.exe\"" 7583 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7584 LINKBIN="\"${PATH64}/link.exe\"" 7585 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7586 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7587 # Avoid 'unresolved external symbol __security_cookie' 7588 # errors, c.f. http://support.microsoft.com/?id=894573 7589 7590 vars="bufferoverflowU.lib" 7591 for i in $vars; do 7592 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7593 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7594 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7595 fi 7596 PKG_LIBS="$PKG_LIBS $i" 7597 done 7598 7599 7600 elif test "$doWince" != "no" ; then 7601 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7602 if test "${TARGETCPU}" = "X86"; then 7603 CC="\"${CEBINROOT}/cl.exe\"" 7604 else 7605 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7606 fi 7607 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7608 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 7609 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7610 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7611 if test "${SHARED_BUILD}" = "1" ; then 7612 # Static CE builds require static celib as well 7613 defs="${defs} _DLL" 7614 fi 7615 for i in $defs ; do 7616 7617cat >>confdefs.h <<_ACEOF 7618#define $i 1 7619_ACEOF 7620 7621 done 7622 7623cat >>confdefs.h <<_ACEOF 7624#define _WIN32_WCE $CEVERSION 7625_ACEOF 7626 7627 7628cat >>confdefs.h <<_ACEOF 7629#define UNDER_CE $CEVERSION 7630_ACEOF 7631 7632 CFLAGS_DEBUG="-nologo -Zi -Od" 7633 CFLAGS_OPTIMIZE="-nologo -Ox" 7634 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 7635 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 7636 LINKBIN="\"${CEBINROOT}/link.exe\"" 7637 7638 else 7639 RC="rc" 7640 lflags="-nologo" 7641 LINKBIN="link" 7642 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 7643 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7644 fi 7645 fi 7646 7647 if test "$GCC" = "yes"; then 7648 # mingw gcc mode 7649 if test x"${RC}" = x ; then 7650 RC="windres" 7651 fi 7652 CFLAGS_DEBUG="-g" 7653 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7654 SHLIB_LD="$CC -shared" 7655 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7656 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 7657 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 7658 else 7659 SHLIB_LD="${LINKBIN} -dll ${lflags}" 7660 # link -lib only works when -lib is the first arg 7661 STLIB_LD="${LINKBIN} -lib ${lflags}" 7662 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 7663 PATHTYPE=-w 7664 # For information on what debugtype is most useful, see: 7665 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 7666 # and also 7667 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 7668 # This essentially turns it all on. 7669 LDFLAGS_DEBUG="-debug -debugtype:cv" 7670 LDFLAGS_OPTIMIZE="-release" 7671 CFLAGS_DEBUG="${CFLAGS_DEBUG} -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE" 7672 CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE" 7673 CC_OBJNAME="-Fo\$@" 7674 if test "$doWince" != "no" ; then 7675 LDFLAGS_CONSOLE="-link ${lflags}" 7676 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 7677 else 7678 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 7679 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 7680 fi 7681 fi 7682 7683 SHLIB_SUFFIX=".dll" 7684 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 7685 7686 TCL_LIB_VERSIONS_OK=nodots 7687 ;; 7688 AIX-*) 7689 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then : 7690 7691 # AIX requires the _r compiler when gcc isn't being used 7692 case "${CC}" in 7693 *_r|*_r\ *) 7694 # ok ... 7695 ;; 7696 *) 7697 # Make sure only first arg gets _r 7698 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 7699 ;; 7700 esac 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 7702$as_echo "Using $CC for compiling with threads" >&6; } 7703 7704fi 7705 LIBS="$LIBS -lc" 7706 SHLIB_CFLAGS="" 7707 SHLIB_SUFFIX=".so" 7708 7709 LD_LIBRARY_PATH_VAR="LIBPATH" 7710 7711 # Check to enable 64-bit flags for compiler/linker 7712 if test "$do64bit" = yes; then : 7713 7714 if test "$GCC" = yes; then : 7715 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 7717$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 7718 7719else 7720 7721 do64bit_ok=yes 7722 CFLAGS="$CFLAGS -q64" 7723 LDFLAGS_ARCH="-q64" 7724 RANLIB="${RANLIB} -X64" 7725 AR="${AR} -X64" 7726 SHLIB_LD_FLAGS="-b64" 7727 7728fi 7729 7730fi 7731 7732 if test "`uname -m`" = ia64; then : 7733 7734 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 7735 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 7736 if test "$GCC" = yes; then : 7737 7738 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7739 7740else 7741 7742 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 7743 7744fi 7745 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 7746 7747else 7748 7749 if test "$GCC" = yes; then : 7750 7751 SHLIB_LD='${CC} -shared -Wl,-bexpall' 7752 7753else 7754 7755 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 7756 LDFLAGS="$LDFLAGS -brtl" 7757 7758fi 7759 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 7760 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 7761 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7762 7763fi 7764 ;; 7765 BeOS*) 7766 SHLIB_CFLAGS="-fPIC" 7767 SHLIB_LD='${CC} -nostart' 7768 SHLIB_SUFFIX=".so" 7769 7770 #----------------------------------------------------------- 7771 # Check for inet_ntoa in -lbind, for BeOS (which also needs 7772 # -lsocket, even if the network functions are in -lnet which 7773 # is always linked to, for compatibility. 7774 #----------------------------------------------------------- 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 7776$as_echo_n "checking for inet_ntoa in -lbind... " >&6; } 7777if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then : 7778 $as_echo_n "(cached) " >&6 7779else 7780 ac_check_lib_save_LIBS=$LIBS 7781LIBS="-lbind $LIBS" 7782cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7783/* end confdefs.h. */ 7784 7785/* Override any GCC internal prototype to avoid an error. 7786 Use char because int might match the return type of a GCC 7787 builtin and then its argument prototype would still apply. */ 7788#ifdef __cplusplus 7789extern "C" 7790#endif 7791char inet_ntoa (); 7792int 7793main () 7794{ 7795return inet_ntoa (); 7796 ; 7797 return 0; 7798} 7799_ACEOF 7800if ac_fn_c_try_link "$LINENO"; then : 7801 ac_cv_lib_bind_inet_ntoa=yes 7802else 7803 ac_cv_lib_bind_inet_ntoa=no 7804fi 7805rm -f core conftest.err conftest.$ac_objext \ 7806 conftest$ac_exeext conftest.$ac_ext 7807LIBS=$ac_check_lib_save_LIBS 7808fi 7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 7810$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } 7811if test "x$ac_cv_lib_bind_inet_ntoa" = x""yes; then : 7812 LIBS="$LIBS -lbind -lsocket" 7813fi 7814 7815 ;; 7816 BSD/OS-4.*) 7817 SHLIB_CFLAGS="-export-dynamic -fPIC" 7818 SHLIB_LD='${CC} -shared' 7819 SHLIB_SUFFIX=".so" 7820 LDFLAGS="$LDFLAGS -export-dynamic" 7821 CC_SEARCH_FLAGS="" 7822 LD_SEARCH_FLAGS="" 7823 ;; 7824 CYGWIN_*) 7825 SHLIB_CFLAGS="" 7826 SHLIB_LD='${CC} -shared' 7827 SHLIB_SUFFIX=".dll" 7828 EXE_SUFFIX=".exe" 7829 CC_SEARCH_FLAGS="" 7830 LD_SEARCH_FLAGS="" 7831 ;; 7832 Haiku*) 7833 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 7834 SHLIB_CFLAGS="-fPIC" 7835 SHLIB_SUFFIX=".so" 7836 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5 7838$as_echo_n "checking for inet_ntoa in -lnetwork... " >&6; } 7839if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then : 7840 $as_echo_n "(cached) " >&6 7841else 7842 ac_check_lib_save_LIBS=$LIBS 7843LIBS="-lnetwork $LIBS" 7844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7845/* end confdefs.h. */ 7846 7847/* Override any GCC internal prototype to avoid an error. 7848 Use char because int might match the return type of a GCC 7849 builtin and then its argument prototype would still apply. */ 7850#ifdef __cplusplus 7851extern "C" 7852#endif 7853char inet_ntoa (); 7854int 7855main () 7856{ 7857return inet_ntoa (); 7858 ; 7859 return 0; 7860} 7861_ACEOF 7862if ac_fn_c_try_link "$LINENO"; then : 7863 ac_cv_lib_network_inet_ntoa=yes 7864else 7865 ac_cv_lib_network_inet_ntoa=no 7866fi 7867rm -f core conftest.err conftest.$ac_objext \ 7868 conftest$ac_exeext conftest.$ac_ext 7869LIBS=$ac_check_lib_save_LIBS 7870fi 7871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5 7872$as_echo "$ac_cv_lib_network_inet_ntoa" >&6; } 7873if test "x$ac_cv_lib_network_inet_ntoa" = x""yes; then : 7874 LIBS="$LIBS -lnetwork" 7875fi 7876 7877 ;; 7878 HP-UX-*.11.*) 7879 # Use updated header definitions where possible 7880 7881$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 7882 7883 # TEA specific: Needed by Tcl, but not most extensions 7884 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 7885 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 7886 7887 if test "`uname -m`" = ia64; then : 7888 7889 SHLIB_SUFFIX=".so" 7890 # Use newer C++ library for C++ extensions 7891 #if test "$GCC" != "yes" ; then 7892 # CPPFLAGS="-AA" 7893 #fi 7894 7895else 7896 7897 SHLIB_SUFFIX=".sl" 7898 7899fi 7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 7901$as_echo_n "checking for shl_load in -ldld... " >&6; } 7902if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 7903 $as_echo_n "(cached) " >&6 7904else 7905 ac_check_lib_save_LIBS=$LIBS 7906LIBS="-ldld $LIBS" 7907cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908/* end confdefs.h. */ 7909 7910/* Override any GCC internal prototype to avoid an error. 7911 Use char because int might match the return type of a GCC 7912 builtin and then its argument prototype would still apply. */ 7913#ifdef __cplusplus 7914extern "C" 7915#endif 7916char shl_load (); 7917int 7918main () 7919{ 7920return shl_load (); 7921 ; 7922 return 0; 7923} 7924_ACEOF 7925if ac_fn_c_try_link "$LINENO"; then : 7926 ac_cv_lib_dld_shl_load=yes 7927else 7928 ac_cv_lib_dld_shl_load=no 7929fi 7930rm -f core conftest.err conftest.$ac_objext \ 7931 conftest$ac_exeext conftest.$ac_ext 7932LIBS=$ac_check_lib_save_LIBS 7933fi 7934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 7935$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 7936if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 7937 tcl_ok=yes 7938else 7939 tcl_ok=no 7940fi 7941 7942 if test "$tcl_ok" = yes; then : 7943 7944 LDFLAGS="$LDFLAGS -Wl,-E" 7945 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 7946 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 7947 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 7948 7949fi 7950 if test "$GCC" = yes; then : 7951 7952 SHLIB_LD='${CC} -shared' 7953 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7954 7955else 7956 7957 CFLAGS="$CFLAGS -z" 7958 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 7959 #CFLAGS="$CFLAGS +DAportable" 7960 SHLIB_CFLAGS="+z" 7961 SHLIB_LD="ld -b" 7962 7963fi 7964 7965 # Check to enable 64-bit flags for compiler/linker 7966 if test "$do64bit" = "yes"; then : 7967 7968 if test "$GCC" = yes; then : 7969 7970 case `${CC} -dumpmachine` in 7971 hppa64*) 7972 # 64-bit gcc in use. Fix flags for GNU ld. 7973 do64bit_ok=yes 7974 SHLIB_LD='${CC} -shared' 7975 if test $doRpath = yes; then : 7976 7977 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7978fi 7979 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7980 ;; 7981 *) 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 7983$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 7984 ;; 7985 esac 7986 7987else 7988 7989 do64bit_ok=yes 7990 CFLAGS="$CFLAGS +DD64" 7991 LDFLAGS_ARCH="+DD64" 7992 7993fi 7994 7995fi ;; 7996 IRIX-6.*) 7997 SHLIB_CFLAGS="" 7998 SHLIB_LD="ld -n32 -shared -rdata_shared" 7999 SHLIB_SUFFIX=".so" 8000 if test $doRpath = yes; then : 8001 8002 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8003 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8004fi 8005 if test "$GCC" = yes; then : 8006 8007 CFLAGS="$CFLAGS -mabi=n32" 8008 LDFLAGS="$LDFLAGS -mabi=n32" 8009 8010else 8011 8012 case $system in 8013 IRIX-6.3) 8014 # Use to build 6.2 compatible binaries on 6.3. 8015 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8016 ;; 8017 *) 8018 CFLAGS="$CFLAGS -n32" 8019 ;; 8020 esac 8021 LDFLAGS="$LDFLAGS -n32" 8022 8023fi 8024 ;; 8025 IRIX64-6.*) 8026 SHLIB_CFLAGS="" 8027 SHLIB_LD="ld -n32 -shared -rdata_shared" 8028 SHLIB_SUFFIX=".so" 8029 if test $doRpath = yes; then : 8030 8031 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8032 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8033fi 8034 8035 # Check to enable 64-bit flags for compiler/linker 8036 8037 if test "$do64bit" = yes; then : 8038 8039 if test "$GCC" = yes; then : 8040 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 8042$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8043 8044else 8045 8046 do64bit_ok=yes 8047 SHLIB_LD="ld -64 -shared -rdata_shared" 8048 CFLAGS="$CFLAGS -64" 8049 LDFLAGS_ARCH="-64" 8050 8051fi 8052 8053fi 8054 ;; 8055 Linux*) 8056 SHLIB_CFLAGS="-fPIC" 8057 SHLIB_SUFFIX=".so" 8058 8059 # TEA specific: 8060 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8061 8062 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8063 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8064 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8065 if test $doRpath = yes; then : 8066 8067 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8068fi 8069 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8070 if test "`uname -m`" = "alpha"; then : 8071 CFLAGS="$CFLAGS -mieee" 8072fi 8073 if test $do64bit = yes; then : 8074 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 8076$as_echo_n "checking if compiler accepts -m64 flag... " >&6; } 8077if test "${tcl_cv_cc_m64+set}" = set; then : 8078 $as_echo_n "(cached) " >&6 8079else 8080 8081 hold_cflags=$CFLAGS 8082 CFLAGS="$CFLAGS -m64" 8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8084/* end confdefs.h. */ 8085 8086int 8087main () 8088{ 8089 8090 ; 8091 return 0; 8092} 8093_ACEOF 8094if ac_fn_c_try_link "$LINENO"; then : 8095 tcl_cv_cc_m64=yes 8096else 8097 tcl_cv_cc_m64=no 8098fi 8099rm -f core conftest.err conftest.$ac_objext \ 8100 conftest$ac_exeext conftest.$ac_ext 8101 CFLAGS=$hold_cflags 8102fi 8103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 8104$as_echo "$tcl_cv_cc_m64" >&6; } 8105 if test $tcl_cv_cc_m64 = yes; then : 8106 8107 CFLAGS="$CFLAGS -m64" 8108 do64bit_ok=yes 8109 8110fi 8111 8112fi 8113 8114 # The combo of gcc + glibc has a bug related to inlining of 8115 # functions like strtod(). The -fno-builtin flag should address 8116 # this problem but it does not work. The -fno-inline flag is kind 8117 # of overkill but it works. Disable inlining only when one of the 8118 # files in compat/*.c is being linked in. 8119 8120 if test x"${USE_COMPAT}" != x; then : 8121 CFLAGS="$CFLAGS -fno-inline" 8122fi 8123 8124 ;; 8125 GNU*) 8126 SHLIB_CFLAGS="-fPIC" 8127 SHLIB_SUFFIX=".so" 8128 8129 SHLIB_LD='${CC} -shared' 8130 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8131 CC_SEARCH_FLAGS="" 8132 LD_SEARCH_FLAGS="" 8133 if test "`uname -m`" = "alpha"; then : 8134 CFLAGS="$CFLAGS -mieee" 8135fi 8136 ;; 8137 Lynx*) 8138 SHLIB_CFLAGS="-fPIC" 8139 SHLIB_SUFFIX=".so" 8140 CFLAGS_OPTIMIZE=-02 8141 SHLIB_LD='${CC} -shared' 8142 LD_FLAGS="-Wl,--export-dynamic" 8143 if test $doRpath = yes; then : 8144 8145 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8146 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8147fi 8148 ;; 8149 OpenBSD-*) 8150 SHLIB_CFLAGS="-fPIC" 8151 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8152 SHLIB_SUFFIX=".so" 8153 if test $doRpath = yes; then : 8154 8155 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8156fi 8157 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8158 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 8160$as_echo_n "checking for ELF... " >&6; } 8161if test "${tcl_cv_ld_elf+set}" = set; then : 8162 $as_echo_n "(cached) " >&6 8163else 8164 8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8166/* end confdefs.h. */ 8167 8168#ifdef __ELF__ 8169 yes 8170#endif 8171 8172_ACEOF 8173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8174 $EGREP "yes" >/dev/null 2>&1; then : 8175 tcl_cv_ld_elf=yes 8176else 8177 tcl_cv_ld_elf=no 8178fi 8179rm -f conftest* 8180 8181fi 8182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 8183$as_echo "$tcl_cv_ld_elf" >&6; } 8184 if test $tcl_cv_ld_elf = yes; then : 8185 8186 LDFLAGS=-Wl,-export-dynamic 8187 8188else 8189 LDFLAGS="" 8190fi 8191 if test "${TCL_THREADS}" = "1"; then : 8192 8193 # OpenBSD builds and links with -pthread, never -lpthread. 8194 LIBS=`echo $LIBS | sed s/-lpthread//` 8195 CFLAGS="$CFLAGS -pthread" 8196 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8197 8198fi 8199 # OpenBSD doesn't do version numbers with dots. 8200 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8201 TCL_LIB_VERSIONS_OK=nodots 8202 ;; 8203 NetBSD-*|FreeBSD-[3-4].*) 8204 # FreeBSD 3.* and greater have ELF. 8205 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8206 SHLIB_CFLAGS="-fPIC" 8207 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8208 SHLIB_SUFFIX=".so" 8209 LDFLAGS="$LDFLAGS -export-dynamic" 8210 if test $doRpath = yes; then : 8211 8212 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8213fi 8214 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8215 if test "${TCL_THREADS}" = "1"; then : 8216 8217 # The -pthread needs to go in the CFLAGS, not LIBS 8218 LIBS=`echo $LIBS | sed s/-pthread//` 8219 CFLAGS="$CFLAGS -pthread" 8220 LDFLAGS="$LDFLAGS -pthread" 8221 8222fi 8223 case $system in 8224 FreeBSD-3.*) 8225 # FreeBSD-3 doesn't handle version numbers with dots. 8226 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8227 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8228 TCL_LIB_VERSIONS_OK=nodots 8229 ;; 8230 esac 8231 ;; 8232 FreeBSD-*|DragonFly-*) 8233 # This configuration from FreeBSD Ports. 8234 SHLIB_CFLAGS="-fPIC" 8235 SHLIB_LD="${CC} -shared" 8236 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8237 SHLIB_SUFFIX=".so" 8238 LDFLAGS="" 8239 if test $doRpath = yes; then : 8240 8241 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8242 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8243fi 8244 if test "${TCL_THREADS}" = "1"; then : 8245 8246 # The -pthread needs to go in the LDFLAGS, not LIBS 8247 LIBS=`echo $LIBS | sed s/-pthread//` 8248 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8249 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8250fi 8251 # Version numbers are dot-stripped by system policy. 8252 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8253 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8254 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8255 TCL_LIB_VERSIONS_OK=nodots 8256 ;; 8257 Darwin-*) 8258 CFLAGS_OPTIMIZE="-Os" 8259 SHLIB_CFLAGS="-fno-common" 8260 # To avoid discrepancies between what headers configure sees during 8261 # preprocessing tests and compiling tests, move any -isysroot and 8262 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8263 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8264 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8265 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8266 CFLAGS="`echo " ${CFLAGS}" | \ 8267 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8268 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8269 if test $do64bit = yes; then : 8270 8271 case `arch` in 8272 ppc) 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 8274$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; } 8275if test "${tcl_cv_cc_arch_ppc64+set}" = set; then : 8276 $as_echo_n "(cached) " >&6 8277else 8278 8279 hold_cflags=$CFLAGS 8280 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8282/* end confdefs.h. */ 8283 8284int 8285main () 8286{ 8287 8288 ; 8289 return 0; 8290} 8291_ACEOF 8292if ac_fn_c_try_link "$LINENO"; then : 8293 tcl_cv_cc_arch_ppc64=yes 8294else 8295 tcl_cv_cc_arch_ppc64=no 8296fi 8297rm -f core conftest.err conftest.$ac_objext \ 8298 conftest$ac_exeext conftest.$ac_ext 8299 CFLAGS=$hold_cflags 8300fi 8301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 8302$as_echo "$tcl_cv_cc_arch_ppc64" >&6; } 8303 if test $tcl_cv_cc_arch_ppc64 = yes; then : 8304 8305 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8306 do64bit_ok=yes 8307 8308fi;; 8309 i386) 8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 8311$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; } 8312if test "${tcl_cv_cc_arch_x86_64+set}" = set; then : 8313 $as_echo_n "(cached) " >&6 8314else 8315 8316 hold_cflags=$CFLAGS 8317 CFLAGS="$CFLAGS -arch x86_64" 8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8319/* end confdefs.h. */ 8320 8321int 8322main () 8323{ 8324 8325 ; 8326 return 0; 8327} 8328_ACEOF 8329if ac_fn_c_try_link "$LINENO"; then : 8330 tcl_cv_cc_arch_x86_64=yes 8331else 8332 tcl_cv_cc_arch_x86_64=no 8333fi 8334rm -f core conftest.err conftest.$ac_objext \ 8335 conftest$ac_exeext conftest.$ac_ext 8336 CFLAGS=$hold_cflags 8337fi 8338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 8339$as_echo "$tcl_cv_cc_arch_x86_64" >&6; } 8340 if test $tcl_cv_cc_arch_x86_64 = yes; then : 8341 8342 CFLAGS="$CFLAGS -arch x86_64" 8343 do64bit_ok=yes 8344 8345fi;; 8346 *) 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8348$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8349 esac 8350 8351else 8352 8353 # Check for combined 32-bit and 64-bit fat build 8354 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8355 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then : 8356 8357 fat_32_64=yes 8358fi 8359 8360fi 8361 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8362 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 8364$as_echo_n "checking if ld accepts -single_module flag... " >&6; } 8365if test "${tcl_cv_ld_single_module+set}" = set; then : 8366 $as_echo_n "(cached) " >&6 8367else 8368 8369 hold_ldflags=$LDFLAGS 8370 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8372/* end confdefs.h. */ 8373 8374int 8375main () 8376{ 8377int i; 8378 ; 8379 return 0; 8380} 8381_ACEOF 8382if ac_fn_c_try_link "$LINENO"; then : 8383 tcl_cv_ld_single_module=yes 8384else 8385 tcl_cv_ld_single_module=no 8386fi 8387rm -f core conftest.err conftest.$ac_objext \ 8388 conftest$ac_exeext conftest.$ac_ext 8389 LDFLAGS=$hold_ldflags 8390fi 8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 8392$as_echo "$tcl_cv_ld_single_module" >&6; } 8393 if test $tcl_cv_ld_single_module = yes; then : 8394 8395 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8396 8397fi 8398 # TEA specific: link shlib with current and compatiblity version flags 8399 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 8400 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 8401 SHLIB_SUFFIX=".dylib" 8402 # Don't use -prebind when building for Mac OS X 10.4 or later only: 8403 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 8404 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then : 8405 8406 LDFLAGS="$LDFLAGS -prebind" 8407fi 8408 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 8410$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } 8411if test "${tcl_cv_ld_search_paths_first+set}" = set; then : 8412 $as_echo_n "(cached) " >&6 8413else 8414 8415 hold_ldflags=$LDFLAGS 8416 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8418/* end confdefs.h. */ 8419 8420int 8421main () 8422{ 8423int i; 8424 ; 8425 return 0; 8426} 8427_ACEOF 8428if ac_fn_c_try_link "$LINENO"; then : 8429 tcl_cv_ld_search_paths_first=yes 8430else 8431 tcl_cv_ld_search_paths_first=no 8432fi 8433rm -f core conftest.err conftest.$ac_objext \ 8434 conftest$ac_exeext conftest.$ac_ext 8435 LDFLAGS=$hold_ldflags 8436fi 8437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 8438$as_echo "$tcl_cv_ld_search_paths_first" >&6; } 8439 if test $tcl_cv_ld_search_paths_first = yes; then : 8440 8441 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8442 8443fi 8444 if test "$tcl_cv_cc_visibility_hidden" != yes; then : 8445 8446 8447$as_echo "#define MODULE_SCOPE __private_extern__" >>confdefs.h 8448 8449 tcl_cv_cc_visibility_hidden=yes 8450 8451fi 8452 CC_SEARCH_FLAGS="" 8453 LD_SEARCH_FLAGS="" 8454 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 8455 # TEA specific: for combined 32 & 64 bit fat builds of Tk 8456 # extensions, verify that 64-bit build is possible. 8457 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then : 8458 8459 if test "${TEA_WINDOWINGSYSTEM}" = x11; then : 8460 8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5 8462$as_echo_n "checking for 64-bit X11... " >&6; } 8463if test "${tcl_cv_lib_x11_64+set}" = set; then : 8464 $as_echo_n "(cached) " >&6 8465else 8466 8467 for v in CFLAGS CPPFLAGS LDFLAGS; do 8468 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 8469 done 8470 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 8471 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8473/* end confdefs.h. */ 8474#include <X11/Xlib.h> 8475int 8476main () 8477{ 8478XrmInitialize(); 8479 ; 8480 return 0; 8481} 8482_ACEOF 8483if ac_fn_c_try_link "$LINENO"; then : 8484 tcl_cv_lib_x11_64=yes 8485else 8486 tcl_cv_lib_x11_64=no 8487fi 8488rm -f core conftest.err conftest.$ac_objext \ 8489 conftest$ac_exeext conftest.$ac_ext 8490 for v in CFLAGS CPPFLAGS LDFLAGS; do 8491 eval $v'="$hold_'$v'"' 8492 done 8493fi 8494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5 8495$as_echo "$tcl_cv_lib_x11_64" >&6; } 8496 8497fi 8498 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then : 8499 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5 8501$as_echo_n "checking for 64-bit Tk... " >&6; } 8502if test "${tcl_cv_lib_tk_64+set}" = set; then : 8503 $as_echo_n "(cached) " >&6 8504else 8505 8506 for v in CFLAGS CPPFLAGS LDFLAGS; do 8507 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 8508 done 8509 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}" 8510 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8512/* end confdefs.h. */ 8513#include <tk.h> 8514int 8515main () 8516{ 8517Tk_InitStubs(NULL, "", 0); 8518 ; 8519 return 0; 8520} 8521_ACEOF 8522if ac_fn_c_try_link "$LINENO"; then : 8523 tcl_cv_lib_tk_64=yes 8524else 8525 tcl_cv_lib_tk_64=no 8526fi 8527rm -f core conftest.err conftest.$ac_objext \ 8528 conftest$ac_exeext conftest.$ac_ext 8529 for v in CFLAGS CPPFLAGS LDFLAGS; do 8530 eval $v'="$hold_'$v'"' 8531 done 8532fi 8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5 8534$as_echo "$tcl_cv_lib_tk_64" >&6; } 8535 8536fi 8537 # remove 64-bit arch flags from CFLAGS et al. if configuration 8538 # does not support 64-bit. 8539 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then : 8540 8541 { $as_echo "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5 8542$as_echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 8543 for v in CFLAGS CPPFLAGS LDFLAGS; do 8544 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 8545 done 8546fi 8547 8548fi 8549 ;; 8550 OS/390-*) 8551 CFLAGS_OPTIMIZE="" # Optimizer is buggy 8552 8553$as_echo "#define _OE_SOCKETS 1" >>confdefs.h 8554 8555 ;; 8556 OSF1-V*) 8557 # Digital OSF/1 8558 SHLIB_CFLAGS="" 8559 if test "$SHARED_BUILD" = 1; then : 8560 8561 SHLIB_LD='ld -shared -expect_unresolved "*"' 8562 8563else 8564 8565 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 8566 8567fi 8568 SHLIB_SUFFIX=".so" 8569 if test $doRpath = yes; then : 8570 8571 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8572 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8573fi 8574 if test "$GCC" = yes; then : 8575 CFLAGS="$CFLAGS -mieee" 8576else 8577 8578 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 8579fi 8580 # see pthread_intro(3) for pthread support on osf1, k.furukawa 8581 if test "${TCL_THREADS}" = 1; then : 8582 8583 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 8584 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 8585 LIBS=`echo $LIBS | sed s/-lpthreads//` 8586 if test "$GCC" = yes; then : 8587 8588 LIBS="$LIBS -lpthread -lmach -lexc" 8589 8590else 8591 8592 CFLAGS="$CFLAGS -pthread" 8593 LDFLAGS="$LDFLAGS -pthread" 8594 8595fi 8596 8597fi 8598 ;; 8599 QNX-6*) 8600 # QNX RTP 8601 # This may work for all QNX, but it was only reported for v6. 8602 SHLIB_CFLAGS="-fPIC" 8603 SHLIB_LD="ld -Bshareable -x" 8604 SHLIB_LD_LIBS="" 8605 SHLIB_SUFFIX=".so" 8606 CC_SEARCH_FLAGS="" 8607 LD_SEARCH_FLAGS="" 8608 ;; 8609 SCO_SV-3.2*) 8610 if test "$GCC" = yes; then : 8611 8612 SHLIB_CFLAGS="-fPIC -melf" 8613 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 8614 8615else 8616 8617 SHLIB_CFLAGS="-Kpic -belf" 8618 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 8619 8620fi 8621 SHLIB_LD="ld -G" 8622 SHLIB_LD_LIBS="" 8623 SHLIB_SUFFIX=".so" 8624 CC_SEARCH_FLAGS="" 8625 LD_SEARCH_FLAGS="" 8626 ;; 8627 SunOS-5.[0-6]) 8628 # Careful to not let 5.10+ fall into this case 8629 8630 # Note: If _REENTRANT isn't defined, then Solaris 8631 # won't define thread-safe library routines. 8632 8633 8634$as_echo "#define _REENTRANT 1" >>confdefs.h 8635 8636 8637$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 8638 8639 8640 SHLIB_CFLAGS="-KPIC" 8641 SHLIB_SUFFIX=".so" 8642 if test "$GCC" = yes; then : 8643 8644 SHLIB_LD='${CC} -shared' 8645 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8646 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8647 8648else 8649 8650 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8651 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8652 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8653 8654fi 8655 ;; 8656 SunOS-5*) 8657 # Note: If _REENTRANT isn't defined, then Solaris 8658 # won't define thread-safe library routines. 8659 8660 8661$as_echo "#define _REENTRANT 1" >>confdefs.h 8662 8663 8664$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 8665 8666 8667 SHLIB_CFLAGS="-KPIC" 8668 8669 # Check to enable 64-bit flags for compiler/linker 8670 if test "$do64bit" = yes; then : 8671 8672 arch=`isainfo` 8673 if test "$arch" = "sparcv9 sparc"; then : 8674 8675 if test "$GCC" = yes; then : 8676 8677 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then : 8678 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 8680$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 8681 8682else 8683 8684 do64bit_ok=yes 8685 CFLAGS="$CFLAGS -m64 -mcpu=v9" 8686 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 8687 SHLIB_CFLAGS="-fPIC" 8688 8689fi 8690 8691else 8692 8693 do64bit_ok=yes 8694 if test "$do64bitVIS" = yes; then : 8695 8696 CFLAGS="$CFLAGS -xarch=v9a" 8697 LDFLAGS_ARCH="-xarch=v9a" 8698 8699else 8700 8701 CFLAGS="$CFLAGS -xarch=v9" 8702 LDFLAGS_ARCH="-xarch=v9" 8703 8704fi 8705 # Solaris 64 uses this as well 8706 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 8707 8708fi 8709 8710else 8711 if test "$arch" = "amd64 i386"; then : 8712 8713 if test "$GCC" = yes; then : 8714 8715 case $system in 8716 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 8717 do64bit_ok=yes 8718 CFLAGS="$CFLAGS -m64" 8719 LDFLAGS="$LDFLAGS -m64";; 8720 *) 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 8722$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 8723 esac 8724 8725else 8726 8727 do64bit_ok=yes 8728 case $system in 8729 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 8730 CFLAGS="$CFLAGS -m64" 8731 LDFLAGS="$LDFLAGS -m64";; 8732 *) 8733 CFLAGS="$CFLAGS -xarch=amd64" 8734 LDFLAGS="$LDFLAGS -xarch=amd64";; 8735 esac 8736 8737fi 8738 8739else 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 8741$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 8742fi 8743fi 8744 8745fi 8746 8747 SHLIB_SUFFIX=".so" 8748 if test "$GCC" = yes; then : 8749 8750 SHLIB_LD='${CC} -shared' 8751 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8752 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8753 if test "$do64bit_ok" = yes; then : 8754 8755 if test "$arch" = "sparcv9 sparc"; then : 8756 8757 # We need to specify -static-libgcc or we need to 8758 # add the path to the sparv9 libgcc. 8759 # JH: static-libgcc is necessary for core Tcl, but may 8760 # not be necessary for extensions. 8761 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 8762 # for finding sparcv9 libgcc, get the regular libgcc 8763 # path, remove so name and append 'sparcv9' 8764 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 8765 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 8766 8767else 8768 if test "$arch" = "amd64 i386"; then : 8769 8770 # JH: static-libgcc is necessary for core Tcl, but may 8771 # not be necessary for extensions. 8772 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 8773 8774fi 8775fi 8776 8777fi 8778 8779else 8780 8781 case $system in 8782 SunOS-5.[1-9][0-9]*) 8783 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8784 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 8785 *) 8786 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 8787 esac 8788 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8789 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8790 8791fi 8792 ;; 8793 esac 8794 8795 if test "$do64bit" = yes -a "$do64bit_ok" = no; then : 8796 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 8798$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 8799 8800fi 8801 8802 8803 8804 # Add in the arch flags late to ensure it wasn't removed. 8805 # Not necessary in TEA, but this is aligned with core 8806 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 8807 8808 # If we're running gcc, then change the C flags for compiling shared 8809 # libraries to the right flags for gcc, instead of those for the 8810 # standard manufacturer compiler. 8811 8812 if test "$GCC" = yes; then : 8813 8814 case $system in 8815 AIX-*) ;; 8816 BSD/OS*) ;; 8817 CYGWIN_*) ;; 8818 IRIX*) ;; 8819 NetBSD-*|FreeBSD-*|DragonFly-*|OpenBSD-*) ;; 8820 Darwin-*) ;; 8821 SCO_SV-3.2*) ;; 8822 windows) ;; 8823 *) SHLIB_CFLAGS="-fPIC" ;; 8824 esac 8825fi 8826 8827 if test "$tcl_cv_cc_visibility_hidden" != yes; then : 8828 8829 8830$as_echo "#define MODULE_SCOPE extern" >>confdefs.h 8831 8832 8833$as_echo "#define NO_VIZ /**/" >>confdefs.h 8834 8835 8836fi 8837 8838 if test "$SHARED_LIB_SUFFIX" = ""; then : 8839 8840 # TEA specific: use PACKAGE_VERSION instead of VERSION 8841 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 8842fi 8843 if test "$UNSHARED_LIB_SUFFIX" = ""; then : 8844 8845 # TEA specific: use PACKAGE_VERSION instead of VERSION 8846 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 8847fi 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 # These must be called after we do the basic CFLAGS checks and 8863 # verify any possible 64-bit or similar switches are necessary 8864 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5 8866$as_echo_n "checking for required early compiler flags... " >&6; } 8867 tcl_flags="" 8868 8869 if test "${tcl_cv_flag__isoc99_source+set}" = set; then : 8870 $as_echo_n "(cached) " >&6 8871else 8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8873/* end confdefs.h. */ 8874#include <stdlib.h> 8875int 8876main () 8877{ 8878char *p = (char *)strtoll; char *q = (char *)strtoull; 8879 ; 8880 return 0; 8881} 8882_ACEOF 8883if ac_fn_c_try_compile "$LINENO"; then : 8884 tcl_cv_flag__isoc99_source=no 8885else 8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8887/* end confdefs.h. */ 8888#define _ISOC99_SOURCE 1 8889#include <stdlib.h> 8890int 8891main () 8892{ 8893char *p = (char *)strtoll; char *q = (char *)strtoull; 8894 ; 8895 return 0; 8896} 8897_ACEOF 8898if ac_fn_c_try_compile "$LINENO"; then : 8899 tcl_cv_flag__isoc99_source=yes 8900else 8901 tcl_cv_flag__isoc99_source=no 8902fi 8903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8904fi 8905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8906fi 8907 8908 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 8909 8910$as_echo "#define _ISOC99_SOURCE 1" >>confdefs.h 8911 8912 tcl_flags="$tcl_flags _ISOC99_SOURCE" 8913 fi 8914 8915 8916 if test "${tcl_cv_flag__largefile64_source+set}" = set; then : 8917 $as_echo_n "(cached) " >&6 8918else 8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8920/* end confdefs.h. */ 8921#include <sys/stat.h> 8922int 8923main () 8924{ 8925struct stat64 buf; int i = stat64("/", &buf); 8926 ; 8927 return 0; 8928} 8929_ACEOF 8930if ac_fn_c_try_compile "$LINENO"; then : 8931 tcl_cv_flag__largefile64_source=no 8932else 8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8934/* end confdefs.h. */ 8935#define _LARGEFILE64_SOURCE 1 8936#include <sys/stat.h> 8937int 8938main () 8939{ 8940struct stat64 buf; int i = stat64("/", &buf); 8941 ; 8942 return 0; 8943} 8944_ACEOF 8945if ac_fn_c_try_compile "$LINENO"; then : 8946 tcl_cv_flag__largefile64_source=yes 8947else 8948 tcl_cv_flag__largefile64_source=no 8949fi 8950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8951fi 8952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8953fi 8954 8955 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 8956 8957$as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h 8958 8959 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 8960 fi 8961 8962 8963 if test "${tcl_cv_flag__largefile_source64+set}" = set; then : 8964 $as_echo_n "(cached) " >&6 8965else 8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8967/* end confdefs.h. */ 8968#include <sys/stat.h> 8969int 8970main () 8971{ 8972char *p = (char *)open64; 8973 ; 8974 return 0; 8975} 8976_ACEOF 8977if ac_fn_c_try_compile "$LINENO"; then : 8978 tcl_cv_flag__largefile_source64=no 8979else 8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8981/* end confdefs.h. */ 8982#define _LARGEFILE_SOURCE64 1 8983#include <sys/stat.h> 8984int 8985main () 8986{ 8987char *p = (char *)open64; 8988 ; 8989 return 0; 8990} 8991_ACEOF 8992if ac_fn_c_try_compile "$LINENO"; then : 8993 tcl_cv_flag__largefile_source64=yes 8994else 8995 tcl_cv_flag__largefile_source64=no 8996fi 8997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8998fi 8999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9000fi 9001 9002 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9003 9004$as_echo "#define _LARGEFILE_SOURCE64 1" >>confdefs.h 9005 9006 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9007 fi 9008 9009 if test "x${tcl_flags}" = "x" ; then 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 9011$as_echo "none" >&6; } 9012 else 9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5 9014$as_echo "${tcl_flags}" >&6; } 9015 fi 9016 9017 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5 9019$as_echo_n "checking for 64-bit integer type... " >&6; } 9020 if test "${tcl_cv_type_64bit+set}" = set; then : 9021 $as_echo_n "(cached) " >&6 9022else 9023 9024 tcl_cv_type_64bit=none 9025 # See if the compiler knows natively about __int64 9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9027/* end confdefs.h. */ 9028 9029int 9030main () 9031{ 9032__int64 value = (__int64) 0; 9033 ; 9034 return 0; 9035} 9036_ACEOF 9037if ac_fn_c_try_compile "$LINENO"; then : 9038 tcl_type_64bit=__int64 9039else 9040 tcl_type_64bit="long long" 9041fi 9042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9043 # See if we should use long anyway Note that we substitute in the 9044 # type that is our current guess for a 64-bit type inside this check 9045 # program, so it should be modified only carefully... 9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9047/* end confdefs.h. */ 9048 9049int 9050main () 9051{ 9052switch (0) { 9053 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9054 } 9055 ; 9056 return 0; 9057} 9058_ACEOF 9059if ac_fn_c_try_compile "$LINENO"; then : 9060 tcl_cv_type_64bit=${tcl_type_64bit} 9061fi 9062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9063fi 9064 9065 if test "${tcl_cv_type_64bit}" = none ; then 9066 9067$as_echo "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h 9068 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using long" >&5 9070$as_echo "using long" >&6; } 9071 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9072 -a "${TEA_PLATFORM}" = "windows" ; then 9073 # TEA specific: We actually want to use the default tcl.h checks in 9074 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5 9076$as_echo "using Tcl header defaults" >&6; } 9077 else 9078 9079cat >>confdefs.h <<_ACEOF 9080#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 9081_ACEOF 9082 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5 9084$as_echo "${tcl_cv_type_64bit}" >&6; } 9085 9086 # Now check for auxiliary declarations 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5 9088$as_echo_n "checking for struct dirent64... " >&6; } 9089if test "${tcl_cv_struct_dirent64+set}" = set; then : 9090 $as_echo_n "(cached) " >&6 9091else 9092 9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9094/* end confdefs.h. */ 9095#include <sys/types.h> 9096#include <sys/dirent.h> 9097int 9098main () 9099{ 9100struct dirent64 p; 9101 ; 9102 return 0; 9103} 9104_ACEOF 9105if ac_fn_c_try_compile "$LINENO"; then : 9106 tcl_cv_struct_dirent64=yes 9107else 9108 tcl_cv_struct_dirent64=no 9109fi 9110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9111fi 9112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5 9113$as_echo "$tcl_cv_struct_dirent64" >&6; } 9114 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 9115 9116$as_echo "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h 9117 9118 fi 9119 9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5 9121$as_echo_n "checking for struct stat64... " >&6; } 9122if test "${tcl_cv_struct_stat64+set}" = set; then : 9123 $as_echo_n "(cached) " >&6 9124else 9125 9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9127/* end confdefs.h. */ 9128#include <sys/stat.h> 9129int 9130main () 9131{ 9132struct stat64 p; 9133 9134 ; 9135 return 0; 9136} 9137_ACEOF 9138if ac_fn_c_try_compile "$LINENO"; then : 9139 tcl_cv_struct_stat64=yes 9140else 9141 tcl_cv_struct_stat64=no 9142fi 9143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9144fi 9145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5 9146$as_echo "$tcl_cv_struct_stat64" >&6; } 9147 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 9148 9149$as_echo "#define HAVE_STRUCT_STAT64 1" >>confdefs.h 9150 9151 fi 9152 9153 for ac_func in open64 lseek64 9154do : 9155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9156ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9157if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9158 cat >>confdefs.h <<_ACEOF 9159#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9160_ACEOF 9161 9162fi 9163done 9164 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5 9166$as_echo_n "checking for off64_t... " >&6; } 9167 if test "${tcl_cv_type_off64_t+set}" = set; then : 9168 $as_echo_n "(cached) " >&6 9169else 9170 9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9172/* end confdefs.h. */ 9173#include <sys/types.h> 9174int 9175main () 9176{ 9177off64_t offset; 9178 9179 ; 9180 return 0; 9181} 9182_ACEOF 9183if ac_fn_c_try_compile "$LINENO"; then : 9184 tcl_cv_type_off64_t=yes 9185else 9186 tcl_cv_type_off64_t=no 9187fi 9188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9189fi 9190 9191 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 9192 test "x${ac_cv_func_lseek64}" = "xyes" && \ 9193 test "x${ac_cv_func_open64}" = "xyes" ; then 9194 9195$as_echo "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h 9196 9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9198$as_echo "yes" >&6; } 9199 else 9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9201$as_echo "no" >&6; } 9202 fi 9203 fi 9204 9205 9206 9207if test "$MACHINE" = "X86"; then : 9208 DIST_WIN_MACHINE=x86 9209fi 9210if test "$MACHINE" = "AMD64"; then : 9211 DIST_WIN_MACHINE=x86_64 9212fi 9213if test "$MACHINE" = "IA64"; then : 9214 DIST_WIN_MACHINE=ia64 9215fi 9216 9217 9218#-------------------------------------------------------------------- 9219# Set the default compiler switches based on the --enable-symbols option. 9220#-------------------------------------------------------------------- 9221 9222 9223 9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5 9225$as_echo_n "checking for build with symbols... " >&6; } 9226 # Check whether --enable-symbols was given. 9227if test "${enable_symbols+set}" = set; then : 9228 enableval=$enable_symbols; tcl_ok=$enableval 9229else 9230 tcl_ok=no 9231fi 9232 9233 DBGX="" 9234 if test "$tcl_ok" = "no"; then 9235 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 9236 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9238$as_echo "no" >&6; } 9239 else 9240 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 9241 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 9242 if test "$tcl_ok" = "yes"; then 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5 9244$as_echo "yes (standard debugging)" >&6; } 9245 fi 9246 fi 9247 # TEA specific: 9248 if test "${TEA_PLATFORM}" != "windows" ; then 9249 LDFLAGS_DEFAULT="${LDFLAGS}" 9250 fi 9251 9252 9253 9254 9255 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 9256 9257$as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h 9258 9259 fi 9260 9261 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 9262 if test "$tcl_ok" = "all"; then 9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5 9264$as_echo "enabled symbols mem debugging" >&6; } 9265 else 9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5 9267$as_echo "enabled $tcl_ok debugging" >&6; } 9268 fi 9269 fi 9270 9271 9272if test "${enable_symbols+set}" = set && test "$enable_symbols" != no; then 9273 9274 PKG_CFLAGS="$PKG_CFLAGS -DTREECTRL_DEBUG" 9275 9276 9277fi 9278 9279#-------------------------------------------------------------------- 9280# Everyone should be linking against the Tcl stub library. If you 9281# can't for some reason, remove this definition. If you aren't using 9282# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 9283# link against the non-stubbed Tcl library. Add Tk too if necessary. 9284#-------------------------------------------------------------------- 9285 9286$as_echo "#define USE_TCL_STUBS 1" >>confdefs.h 9287 9288$as_echo "#define USE_TK_STUBS 1" >>confdefs.h 9289 9290 9291#-------------------------------------------------------------------- 9292# This macro generates a line to use when building a library. It 9293# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 9294# and TEA_LOAD_TCLCONFIG macros above. 9295#-------------------------------------------------------------------- 9296 9297 9298 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 9299 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 9300 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9302/* end confdefs.h. */ 9303 9304#if defined(_MSC_VER) && _MSC_VER >= 1400 9305print("manifest needed") 9306#endif 9307 9308_ACEOF 9309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9310 $EGREP "manifest needed" >/dev/null 2>&1; then : 9311 9312 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 9313 VC_MANIFEST_EMBED_DLL="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest \$(PKG_MANIFEST) -outputresource:\$@\;2 ; fi" 9314 VC_MANIFEST_EMBED_EXE="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest \$(PKG_MANIFEST) -outputresource:\$@\;1 ; fi" 9315 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 9316 # Don't clean .manifest provided by the package (see TEA_ADD_MANIFEST) 9317 # or one created by Makefile or configure. Could use the /manifest:filename 9318 # linker option to explicitly set the linker-generated filename. 9319 eval eval "manifest=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}.manifest" 9320 9321 CLEANFILES="$CLEANFILES $manifest" 9322 9323 9324fi 9325rm -f conftest* 9326 9327 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 9328 else 9329 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 9330 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 9331 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 9332 fi 9333 9334 if test "${SHARED_BUILD}" = "1" ; then 9335 MAKE_LIB="${MAKE_SHARED_LIB} " 9336 else 9337 MAKE_LIB="${MAKE_STATIC_LIB} " 9338 fi 9339 9340 #-------------------------------------------------------------------- 9341 # Shared libraries and static libraries have different names. 9342 # Use the double eval to make sure any variables in the suffix is 9343 # substituted. (@@@ Might not be necessary anymore) 9344 #-------------------------------------------------------------------- 9345 9346 if test "${TEA_PLATFORM}" = "windows" ; then 9347 if test "${SHARED_BUILD}" = "1" ; then 9348 # We force the unresolved linking of symbols that are really in 9349 # the private libraries of Tcl and Tk. 9350 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 9351 if test x"${TK_BIN_DIR}" != x ; then 9352 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 9353 fi 9354 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 9355 else 9356 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 9357 fi 9358 # Some packages build their own stubs libraries 9359 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 9360 if test "$GCC" = "yes"; then 9361 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 9362 fi 9363 # These aren't needed on Windows (either MSVC or gcc) 9364 RANLIB=: 9365 RANLIB_STUB=: 9366 else 9367 RANLIB_STUB="${RANLIB}" 9368 if test "${SHARED_BUILD}" = "1" ; then 9369 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 9370 if test x"${TK_BIN_DIR}" != x ; then 9371 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 9372 fi 9373 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 9374 RANLIB=: 9375 else 9376 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 9377 fi 9378 # Some packages build their own stubs libraries 9379 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 9380 fi 9381 9382 # These are escaped so that only CFLAGS is picked up at configure time. 9383 # The other values will be substituted at make time. 9384 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 9385 if test "${SHARED_BUILD}" = "1" ; then 9386 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 9387 fi 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398#-------------------------------------------------------------------- 9399# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 9400# file during the install process. Don't run the TCLSH_PROG through 9401# ${CYGPATH} because it's being used directly by make. 9402# Require that we use a tclsh shell version 8.2 or later since earlier 9403# versions have bugs in the pkg_mkIndex routine. 9404# Add WISH as well if this is a Tk extension. 9405#-------------------------------------------------------------------- 9406 9407 9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5 9409$as_echo_n "checking for tclsh... " >&6; } 9410 if test -f "${TCL_BIN_DIR}/Makefile" ; then 9411 # tclConfig.sh is in Tcl build directory 9412 if test "${TEA_PLATFORM}" = "windows"; then 9413 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 9414 else 9415 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 9416 fi 9417 else 9418 # tclConfig.sh is in install location 9419 if test "${TEA_PLATFORM}" = "windows"; then 9420 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 9421 else 9422 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 9423 fi 9424 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 9425 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 9426 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 9427 for i in $list ; do 9428 if test -f "$i/${TCLSH_PROG}" ; then 9429 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 9430 break 9431 fi 9432 done 9433 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 9434 fi 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5 9436$as_echo "${TCLSH_PROG}" >&6; } 9437 9438 9439 9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wish" >&5 9441$as_echo_n "checking for wish... " >&6; } 9442 if test -f "${TK_BIN_DIR}/Makefile" ; then 9443 # tkConfig.sh is in Tk build directory 9444 if test "${TEA_PLATFORM}" = "windows"; then 9445 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 9446 else 9447 WISH_PROG="${TK_BIN_DIR}/wish" 9448 fi 9449 else 9450 # tkConfig.sh is in install location 9451 if test "${TEA_PLATFORM}" = "windows"; then 9452 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 9453 else 9454 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}" 9455 fi 9456 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \ 9457 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \ 9458 `ls -d ${TK_PREFIX}/bin 2>/dev/null`" 9459 for i in $list ; do 9460 if test -f "$i/${WISH_PROG}" ; then 9461 REAL_TK_BIN_DIR="`cd "$i"; pwd`/" 9462 break 9463 fi 9464 done 9465 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}" 9466 fi 9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WISH_PROG}" >&5 9468$as_echo "${WISH_PROG}" >&6; } 9469 9470 9471 9472#-------------------------------------------------------------------- 9473# Finally, substitute all of the various values into the Makefile. 9474# You may alternatively have a special pkgIndex.tcl.in or other files 9475# which require substituting th AC variables in. Include these here. 9476#-------------------------------------------------------------------- 9477 9478ac_config_files="$ac_config_files $OUTPUTFILES" 9479 9480cat >confcache <<\_ACEOF 9481# This file is a shell script that caches the results of configure 9482# tests run on this system so they can be shared between configure 9483# scripts and configure runs, see configure's option --config-cache. 9484# It is not useful on other systems. If it contains results you don't 9485# want to keep, you may remove or edit it. 9486# 9487# config.status only pays attention to the cache file if you give it 9488# the --recheck option to rerun configure. 9489# 9490# `ac_cv_env_foo' variables (set or unset) will be overridden when 9491# loading this file, other *unset* `ac_cv_foo' will be assigned the 9492# following values. 9493 9494_ACEOF 9495 9496# The following way of writing the cache mishandles newlines in values, 9497# but we know of no workaround that is simple, portable, and efficient. 9498# So, we kill variables containing newlines. 9499# Ultrix sh set writes to stderr and can't be redirected directly, 9500# and sets the high bit in the cache file unless we assign to the vars. 9501( 9502 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 9503 eval ac_val=\$$ac_var 9504 case $ac_val in #( 9505 *${as_nl}*) 9506 case $ac_var in #( 9507 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 9508$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 9509 esac 9510 case $ac_var in #( 9511 _ | IFS | as_nl) ;; #( 9512 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9513 *) { eval $ac_var=; unset $ac_var;} ;; 9514 esac ;; 9515 esac 9516 done 9517 9518 (set) 2>&1 | 9519 case $as_nl`(ac_space=' '; set) 2>&1` in #( 9520 *${as_nl}ac_space=\ *) 9521 # `set' does not quote correctly, so add quotes: double-quote 9522 # substitution turns \\\\ into \\, and sed turns \\ into \. 9523 sed -n \ 9524 "s/'/'\\\\''/g; 9525 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9526 ;; #( 9527 *) 9528 # `set' quotes correctly as required by POSIX, so do not add quotes. 9529 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 9530 ;; 9531 esac | 9532 sort 9533) | 9534 sed ' 9535 /^ac_cv_env_/b end 9536 t clear 9537 :clear 9538 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9539 t end 9540 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9541 :end' >>confcache 9542if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9543 if test -w "$cache_file"; then 9544 test "x$cache_file" != "x/dev/null" && 9545 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 9546$as_echo "$as_me: updating cache $cache_file" >&6;} 9547 cat confcache >$cache_file 9548 else 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 9550$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 9551 fi 9552fi 9553rm -f confcache 9554 9555test "x$prefix" = xNONE && prefix=$ac_default_prefix 9556# Let make expand exec_prefix. 9557test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9558 9559# Transform confdefs.h into DEFS. 9560# Protect against shell expansion while executing Makefile rules. 9561# Protect against Makefile macro expansion. 9562# 9563# If the first sed substitution is executed (which looks for macros that 9564# take arguments), then branch to the quote section. Otherwise, 9565# look for a macro that doesn't take arguments. 9566ac_script=' 9567:mline 9568/\\$/{ 9569 N 9570 s,\\\n,, 9571 b mline 9572} 9573t clear 9574:clear 9575s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 9576t quote 9577s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 9578t quote 9579b any 9580:quote 9581s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 9582s/\[/\\&/g 9583s/\]/\\&/g 9584s/\$/$$/g 9585H 9586:any 9587${ 9588 g 9589 s/^\n// 9590 s/\n/ /g 9591 p 9592} 9593' 9594DEFS=`sed -n "$ac_script" confdefs.h` 9595 9596 9597ac_libobjs= 9598ac_ltlibobjs= 9599U= 9600for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9601 # 1. Remove the extension, and $U if already installed. 9602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9603 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 9604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9605 # will be set to the directory where LIBOBJS objects are built. 9606 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9607 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 9608done 9609LIBOBJS=$ac_libobjs 9610 9611LTLIBOBJS=$ac_ltlibobjs 9612 9613 9614 9615 9616CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 9617 9618: ${CONFIG_STATUS=./config.status} 9619ac_write_fail=0 9620ac_clean_files_save=$ac_clean_files 9621ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9622{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 9623$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 9624as_write_fail=0 9625cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 9626#! $SHELL 9627# Generated by $as_me. 9628# Run this file to recreate the current configuration. 9629# Compiler output produced by configure, useful for debugging 9630# configure, is in config.log if it exists. 9631 9632debug=false 9633ac_cs_recheck=false 9634ac_cs_silent=false 9635 9636SHELL=\${CONFIG_SHELL-$SHELL} 9637export SHELL 9638_ASEOF 9639cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 9640## -------------------- ## 9641## M4sh Initialization. ## 9642## -------------------- ## 9643 9644# Be more Bourne compatible 9645DUALCASE=1; export DUALCASE # for MKS sh 9646if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 9647 emulate sh 9648 NULLCMD=: 9649 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 9650 # is contrary to our usage. Disable this feature. 9651 alias -g '${1+"$@"}'='"$@"' 9652 setopt NO_GLOB_SUBST 9653else 9654 case `(set -o) 2>/dev/null` in #( 9655 *posix*) : 9656 set -o posix ;; #( 9657 *) : 9658 ;; 9659esac 9660fi 9661 9662 9663as_nl=' 9664' 9665export as_nl 9666# Printing a long string crashes Solaris 7 /usr/bin/printf. 9667as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 9668as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 9669as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 9670# Prefer a ksh shell builtin over an external printf program on Solaris, 9671# but without wasting forks for bash or zsh. 9672if test -z "$BASH_VERSION$ZSH_VERSION" \ 9673 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 9674 as_echo='print -r --' 9675 as_echo_n='print -rn --' 9676elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 9677 as_echo='printf %s\n' 9678 as_echo_n='printf %s' 9679else 9680 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 9681 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 9682 as_echo_n='/usr/ucb/echo -n' 9683 else 9684 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 9685 as_echo_n_body='eval 9686 arg=$1; 9687 case $arg in #( 9688 *"$as_nl"*) 9689 expr "X$arg" : "X\\(.*\\)$as_nl"; 9690 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 9691 esac; 9692 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 9693 ' 9694 export as_echo_n_body 9695 as_echo_n='sh -c $as_echo_n_body as_echo' 9696 fi 9697 export as_echo_body 9698 as_echo='sh -c $as_echo_body as_echo' 9699fi 9700 9701# The user is always right. 9702if test "${PATH_SEPARATOR+set}" != set; then 9703 PATH_SEPARATOR=: 9704 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9705 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9706 PATH_SEPARATOR=';' 9707 } 9708fi 9709 9710 9711# IFS 9712# We need space, tab and new line, in precisely that order. Quoting is 9713# there to prevent editors from complaining about space-tab. 9714# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9715# splitting by setting IFS to empty value.) 9716IFS=" "" $as_nl" 9717 9718# Find who we are. Look in the path if we contain no directory separator. 9719case $0 in #(( 9720 *[\\/]* ) as_myself=$0 ;; 9721 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9722for as_dir in $PATH 9723do 9724 IFS=$as_save_IFS 9725 test -z "$as_dir" && as_dir=. 9726 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9727 done 9728IFS=$as_save_IFS 9729 9730 ;; 9731esac 9732# We did not find ourselves, most probably we were run as `sh COMMAND' 9733# in which case we are not to be found in the path. 9734if test "x$as_myself" = x; then 9735 as_myself=$0 9736fi 9737if test ! -f "$as_myself"; then 9738 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 9739 exit 1 9740fi 9741 9742# Unset variables that we do not need and which cause bugs (e.g. in 9743# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 9744# suppresses any "Segmentation fault" message there. '((' could 9745# trigger a bug in pdksh 5.2.14. 9746for as_var in BASH_ENV ENV MAIL MAILPATH 9747do eval test x\${$as_var+set} = xset \ 9748 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 9749done 9750PS1='$ ' 9751PS2='> ' 9752PS4='+ ' 9753 9754# NLS nuisances. 9755LC_ALL=C 9756export LC_ALL 9757LANGUAGE=C 9758export LANGUAGE 9759 9760# CDPATH. 9761(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9762 9763 9764# as_fn_error STATUS ERROR [LINENO LOG_FD] 9765# ---------------------------------------- 9766# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 9767# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 9768# script with STATUS, using 1 if that was 0. 9769as_fn_error () 9770{ 9771 as_status=$1; test $as_status -eq 0 && as_status=1 9772 if test "$4"; then 9773 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 9774 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 9775 fi 9776 $as_echo "$as_me: error: $2" >&2 9777 as_fn_exit $as_status 9778} # as_fn_error 9779 9780 9781# as_fn_set_status STATUS 9782# ----------------------- 9783# Set $? to STATUS, without forking. 9784as_fn_set_status () 9785{ 9786 return $1 9787} # as_fn_set_status 9788 9789# as_fn_exit STATUS 9790# ----------------- 9791# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 9792as_fn_exit () 9793{ 9794 set +e 9795 as_fn_set_status $1 9796 exit $1 9797} # as_fn_exit 9798 9799# as_fn_unset VAR 9800# --------------- 9801# Portably unset VAR. 9802as_fn_unset () 9803{ 9804 { eval $1=; unset $1;} 9805} 9806as_unset=as_fn_unset 9807# as_fn_append VAR VALUE 9808# ---------------------- 9809# Append the text in VALUE to the end of the definition contained in VAR. Take 9810# advantage of any shell optimizations that allow amortized linear growth over 9811# repeated appends, instead of the typical quadratic growth present in naive 9812# implementations. 9813if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 9814 eval 'as_fn_append () 9815 { 9816 eval $1+=\$2 9817 }' 9818else 9819 as_fn_append () 9820 { 9821 eval $1=\$$1\$2 9822 } 9823fi # as_fn_append 9824 9825# as_fn_arith ARG... 9826# ------------------ 9827# Perform arithmetic evaluation on the ARGs, and store the result in the 9828# global $as_val. Take advantage of shells that can avoid forks. The arguments 9829# must be portable across $(()) and expr. 9830if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 9831 eval 'as_fn_arith () 9832 { 9833 as_val=$(( $* )) 9834 }' 9835else 9836 as_fn_arith () 9837 { 9838 as_val=`expr "$@" || test $? -eq 1` 9839 } 9840fi # as_fn_arith 9841 9842 9843if expr a : '\(a\)' >/dev/null 2>&1 && 9844 test "X`expr 00001 : '.*\(...\)'`" = X001; then 9845 as_expr=expr 9846else 9847 as_expr=false 9848fi 9849 9850if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 9851 as_basename=basename 9852else 9853 as_basename=false 9854fi 9855 9856if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 9857 as_dirname=dirname 9858else 9859 as_dirname=false 9860fi 9861 9862as_me=`$as_basename -- "$0" || 9863$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9864 X"$0" : 'X\(//\)$' \| \ 9865 X"$0" : 'X\(/\)' \| . 2>/dev/null || 9866$as_echo X/"$0" | 9867 sed '/^.*\/\([^/][^/]*\)\/*$/{ 9868 s//\1/ 9869 q 9870 } 9871 /^X\/\(\/\/\)$/{ 9872 s//\1/ 9873 q 9874 } 9875 /^X\/\(\/\).*/{ 9876 s//\1/ 9877 q 9878 } 9879 s/.*/./; q'` 9880 9881# Avoid depending upon Character Ranges. 9882as_cr_letters='abcdefghijklmnopqrstuvwxyz' 9883as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9884as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9885as_cr_digits='0123456789' 9886as_cr_alnum=$as_cr_Letters$as_cr_digits 9887 9888ECHO_C= ECHO_N= ECHO_T= 9889case `echo -n x` in #((((( 9890-n*) 9891 case `echo 'xy\c'` in 9892 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 9893 xy) ECHO_C='\c';; 9894 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 9895 ECHO_T=' ';; 9896 esac;; 9897*) 9898 ECHO_N='-n';; 9899esac 9900 9901rm -f conf$$ conf$$.exe conf$$.file 9902if test -d conf$$.dir; then 9903 rm -f conf$$.dir/conf$$.file 9904else 9905 rm -f conf$$.dir 9906 mkdir conf$$.dir 2>/dev/null 9907fi 9908if (echo >conf$$.file) 2>/dev/null; then 9909 if ln -s conf$$.file conf$$ 2>/dev/null; then 9910 as_ln_s='ln -s' 9911 # ... but there are two gotchas: 9912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 9913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 9914 # In both cases, we have to default to `cp -p'. 9915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 9916 as_ln_s='cp -p' 9917 elif ln conf$$.file conf$$ 2>/dev/null; then 9918 as_ln_s=ln 9919 else 9920 as_ln_s='cp -p' 9921 fi 9922else 9923 as_ln_s='cp -p' 9924fi 9925rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 9926rmdir conf$$.dir 2>/dev/null 9927 9928 9929# as_fn_mkdir_p 9930# ------------- 9931# Create "$as_dir" as a directory, including parents if necessary. 9932as_fn_mkdir_p () 9933{ 9934 9935 case $as_dir in #( 9936 -*) as_dir=./$as_dir;; 9937 esac 9938 test -d "$as_dir" || eval $as_mkdir_p || { 9939 as_dirs= 9940 while :; do 9941 case $as_dir in #( 9942 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 9943 *) as_qdir=$as_dir;; 9944 esac 9945 as_dirs="'$as_qdir' $as_dirs" 9946 as_dir=`$as_dirname -- "$as_dir" || 9947$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9948 X"$as_dir" : 'X\(//\)[^/]' \| \ 9949 X"$as_dir" : 'X\(//\)$' \| \ 9950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9951$as_echo X"$as_dir" | 9952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9953 s//\1/ 9954 q 9955 } 9956 /^X\(\/\/\)[^/].*/{ 9957 s//\1/ 9958 q 9959 } 9960 /^X\(\/\/\)$/{ 9961 s//\1/ 9962 q 9963 } 9964 /^X\(\/\).*/{ 9965 s//\1/ 9966 q 9967 } 9968 s/.*/./; q'` 9969 test -d "$as_dir" && break 9970 done 9971 test -z "$as_dirs" || eval "mkdir $as_dirs" 9972 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 9973 9974 9975} # as_fn_mkdir_p 9976if mkdir -p . 2>/dev/null; then 9977 as_mkdir_p='mkdir -p "$as_dir"' 9978else 9979 test -d ./-p && rmdir ./-p 9980 as_mkdir_p=false 9981fi 9982 9983if test -x / >/dev/null 2>&1; then 9984 as_test_x='test -x' 9985else 9986 if ls -dL / >/dev/null 2>&1; then 9987 as_ls_L_option=L 9988 else 9989 as_ls_L_option= 9990 fi 9991 as_test_x=' 9992 eval sh -c '\'' 9993 if test -d "$1"; then 9994 test -d "$1/."; 9995 else 9996 case $1 in #( 9997 -*)set "./$1";; 9998 esac; 9999 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 10000 ???[sx]*):;;*)false;;esac;fi 10001 '\'' sh 10002 ' 10003fi 10004as_executable_p=$as_test_x 10005 10006# Sed expression to map a string onto a valid CPP name. 10007as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10008 10009# Sed expression to map a string onto a valid variable name. 10010as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10011 10012 10013exec 6>&1 10014## ----------------------------------- ## 10015## Main body of $CONFIG_STATUS script. ## 10016## ----------------------------------- ## 10017_ASEOF 10018test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10019 10020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10021# Save the log message, to keep $0 and so on meaningful, and to 10022# report actual input values of CONFIG_FILES etc. instead of their 10023# values after options handling. 10024ac_log=" 10025This file was extended by treectrl $as_me 2.4, which was 10026generated by GNU Autoconf 2.67. Invocation command line was 10027 10028 CONFIG_FILES = $CONFIG_FILES 10029 CONFIG_HEADERS = $CONFIG_HEADERS 10030 CONFIG_LINKS = $CONFIG_LINKS 10031 CONFIG_COMMANDS = $CONFIG_COMMANDS 10032 $ $0 $@ 10033 10034on `(hostname || uname -n) 2>/dev/null | sed 1q` 10035" 10036 10037_ACEOF 10038 10039case $ac_config_files in *" 10040"*) set x $ac_config_files; shift; ac_config_files=$*;; 10041esac 10042 10043 10044 10045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10046# Files that config.status was made for. 10047config_files="$ac_config_files" 10048 10049_ACEOF 10050 10051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10052ac_cs_usage="\ 10053\`$as_me' instantiates files and other configuration actions 10054from templates according to the current configuration. Unless the files 10055and actions are specified as TAGs, all are instantiated by default. 10056 10057Usage: $0 [OPTION]... [TAG]... 10058 10059 -h, --help print this help, then exit 10060 -V, --version print version number and configuration settings, then exit 10061 --config print configuration, then exit 10062 -q, --quiet, --silent 10063 do not print progress messages 10064 -d, --debug don't remove temporary files 10065 --recheck update $as_me by reconfiguring in the same conditions 10066 --file=FILE[:TEMPLATE] 10067 instantiate the configuration file FILE 10068 10069Configuration files: 10070$config_files 10071 10072Report bugs to the package provider." 10073 10074_ACEOF 10075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10076ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10077ac_cs_version="\\ 10078treectrl config.status 2.4 10079configured by $0, generated by GNU Autoconf 2.67, 10080 with options \\"\$ac_cs_config\\" 10081 10082Copyright (C) 2010 Free Software Foundation, Inc. 10083This config.status script is free software; the Free Software Foundation 10084gives unlimited permission to copy, distribute and modify it." 10085 10086ac_pwd='$ac_pwd' 10087srcdir='$srcdir' 10088INSTALL='$INSTALL' 10089test -n "\$AWK" || AWK=awk 10090_ACEOF 10091 10092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10093# The default lists apply if the user does not specify any file. 10094ac_need_defaults=: 10095while test $# != 0 10096do 10097 case $1 in 10098 --*=?*) 10099 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10101 ac_shift=: 10102 ;; 10103 --*=) 10104 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10105 ac_optarg= 10106 ac_shift=: 10107 ;; 10108 *) 10109 ac_option=$1 10110 ac_optarg=$2 10111 ac_shift=shift 10112 ;; 10113 esac 10114 10115 case $ac_option in 10116 # Handling of the options. 10117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10118 ac_cs_recheck=: ;; 10119 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10120 $as_echo "$ac_cs_version"; exit ;; 10121 --config | --confi | --conf | --con | --co | --c ) 10122 $as_echo "$ac_cs_config"; exit ;; 10123 --debug | --debu | --deb | --de | --d | -d ) 10124 debug=: ;; 10125 --file | --fil | --fi | --f ) 10126 $ac_shift 10127 case $ac_optarg in 10128 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10129 '') as_fn_error $? "missing file argument" ;; 10130 esac 10131 as_fn_append CONFIG_FILES " '$ac_optarg'" 10132 ac_need_defaults=false;; 10133 --he | --h | --help | --hel | -h ) 10134 $as_echo "$ac_cs_usage"; exit ;; 10135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10136 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10137 ac_cs_silent=: ;; 10138 10139 # This is an error. 10140 -*) as_fn_error $? "unrecognized option: \`$1' 10141Try \`$0 --help' for more information." ;; 10142 10143 *) as_fn_append ac_config_targets " $1" 10144 ac_need_defaults=false ;; 10145 10146 esac 10147 shift 10148done 10149 10150ac_configure_extra_args= 10151 10152if $ac_cs_silent; then 10153 exec 6>/dev/null 10154 ac_configure_extra_args="$ac_configure_extra_args --silent" 10155fi 10156 10157_ACEOF 10158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10159if \$ac_cs_recheck; then 10160 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10161 shift 10162 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 10163 CONFIG_SHELL='$SHELL' 10164 export CONFIG_SHELL 10165 exec "\$@" 10166fi 10167 10168_ACEOF 10169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10170exec 5>>config.log 10171{ 10172 echo 10173 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10174## Running $as_me. ## 10175_ASBOX 10176 $as_echo "$ac_log" 10177} >&5 10178 10179_ACEOF 10180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10181_ACEOF 10182 10183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10184 10185# Handling of arguments. 10186for ac_config_target in $ac_config_targets 10187do 10188 case $ac_config_target in 10189 "$OUTPUTFILES") CONFIG_FILES="$CONFIG_FILES $OUTPUTFILES" ;; 10190 10191 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 10192 esac 10193done 10194 10195 10196# If the user did not use the arguments to specify the items to instantiate, 10197# then the envvar interface is used. Set only those that are not. 10198# We use the long form for the default assignment because of an extremely 10199# bizarre bug on SunOS 4.1.3. 10200if $ac_need_defaults; then 10201 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10202fi 10203 10204# Have a temporary directory for convenience. Make it in the build tree 10205# simply because there is no reason against having it here, and in addition, 10206# creating and moving files from /tmp can sometimes cause problems. 10207# Hook for its removal unless debugging. 10208# Note that there is a small window in which the directory will not be cleaned: 10209# after its creation but before its name has been assigned to `$tmp'. 10210$debug || 10211{ 10212 tmp= 10213 trap 'exit_status=$? 10214 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 10215' 0 10216 trap 'as_fn_exit 1' 1 2 13 15 10217} 10218# Create a (secure) tmp directory for tmp files. 10219 10220{ 10221 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10222 test -n "$tmp" && test -d "$tmp" 10223} || 10224{ 10225 tmp=./conf$$-$RANDOM 10226 (umask 077 && mkdir "$tmp") 10227} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 10228 10229# Set up the scripts for CONFIG_FILES section. 10230# No need to generate them if there are no CONFIG_FILES. 10231# This happens for instance with `./config.status config.h'. 10232if test -n "$CONFIG_FILES"; then 10233 10234 10235ac_cr=`echo X | tr X '\015'` 10236# On cygwin, bash can eat \r inside `` if the user requested igncr. 10237# But we know of no other shell where ac_cr would be empty at this 10238# point, so we can use a bashism as a fallback. 10239if test "x$ac_cr" = x; then 10240 eval ac_cr=\$\'\\r\' 10241fi 10242ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 10243if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 10244 ac_cs_awk_cr='\\r' 10245else 10246 ac_cs_awk_cr=$ac_cr 10247fi 10248 10249echo 'BEGIN {' >"$tmp/subs1.awk" && 10250_ACEOF 10251 10252 10253{ 10254 echo "cat >conf$$subs.awk <<_ACEOF" && 10255 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 10256 echo "_ACEOF" 10257} >conf$$subs.sh || 10258 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10259ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 10260ac_delim='%!_!# ' 10261for ac_last_try in false false false false false :; do 10262 . ./conf$$subs.sh || 10263 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10264 10265 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 10266 if test $ac_delim_n = $ac_delim_num; then 10267 break 10268 elif $ac_last_try; then 10269 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10270 else 10271 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10272 fi 10273done 10274rm -f conf$$subs.sh 10275 10276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10277cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 10278_ACEOF 10279sed -n ' 10280h 10281s/^/S["/; s/!.*/"]=/ 10282p 10283g 10284s/^[^!]*!// 10285:repl 10286t repl 10287s/'"$ac_delim"'$// 10288t delim 10289:nl 10290h 10291s/\(.\{148\}\)..*/\1/ 10292t more1 10293s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 10294p 10295n 10296b repl 10297:more1 10298s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10299p 10300g 10301s/.\{148\}// 10302t nl 10303:delim 10304h 10305s/\(.\{148\}\)..*/\1/ 10306t more2 10307s/["\\]/\\&/g; s/^/"/; s/$/"/ 10308p 10309b 10310:more2 10311s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10312p 10313g 10314s/.\{148\}// 10315t delim 10316' <conf$$subs.awk | sed ' 10317/^[^""]/{ 10318 N 10319 s/\n// 10320} 10321' >>$CONFIG_STATUS || ac_write_fail=1 10322rm -f conf$$subs.awk 10323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10324_ACAWK 10325cat >>"\$tmp/subs1.awk" <<_ACAWK && 10326 for (key in S) S_is_set[key] = 1 10327 FS = "" 10328 10329} 10330{ 10331 line = $ 0 10332 nfields = split(line, field, "@") 10333 substed = 0 10334 len = length(field[1]) 10335 for (i = 2; i < nfields; i++) { 10336 key = field[i] 10337 keylen = length(key) 10338 if (S_is_set[key]) { 10339 value = S[key] 10340 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 10341 len += length(value) + length(field[++i]) 10342 substed = 1 10343 } else 10344 len += 1 + keylen 10345 } 10346 10347 print line 10348} 10349 10350_ACAWK 10351_ACEOF 10352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10353if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 10354 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 10355else 10356 cat 10357fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 10358 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 10359_ACEOF 10360 10361# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 10362# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 10363# trailing colons and then remove the whole line if VPATH becomes empty 10364# (actually we leave an empty line to preserve line numbers). 10365if test "x$srcdir" = x.; then 10366 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 10367h 10368s/// 10369s/^/:/ 10370s/[ ]*$/:/ 10371s/:\$(srcdir):/:/g 10372s/:\${srcdir}:/:/g 10373s/:@srcdir@:/:/g 10374s/^:*// 10375s/:*$// 10376x 10377s/\(=[ ]*\).*/\1/ 10378G 10379s/\n// 10380s/^[^=]*=[ ]*$// 10381}' 10382fi 10383 10384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10385fi # test -n "$CONFIG_FILES" 10386 10387 10388eval set X " :F $CONFIG_FILES " 10389shift 10390for ac_tag 10391do 10392 case $ac_tag in 10393 :[FHLC]) ac_mode=$ac_tag; continue;; 10394 esac 10395 case $ac_mode$ac_tag in 10396 :[FHL]*:*);; 10397 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 10398 :[FH]-) ac_tag=-:-;; 10399 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10400 esac 10401 ac_save_IFS=$IFS 10402 IFS=: 10403 set x $ac_tag 10404 IFS=$ac_save_IFS 10405 shift 10406 ac_file=$1 10407 shift 10408 10409 case $ac_mode in 10410 :L) ac_source=$1;; 10411 :[FH]) 10412 ac_file_inputs= 10413 for ac_f 10414 do 10415 case $ac_f in 10416 -) ac_f="$tmp/stdin";; 10417 *) # Look for the file first in the build tree, then in the source tree 10418 # (if the path is not absolute). The absolute path cannot be DOS-style, 10419 # because $ac_f cannot contain `:'. 10420 test -f "$ac_f" || 10421 case $ac_f in 10422 [\\/$]*) false;; 10423 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10424 esac || 10425 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 10426 esac 10427 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 10428 as_fn_append ac_file_inputs " '$ac_f'" 10429 done 10430 10431 # Let's still pretend it is `configure' which instantiates (i.e., don't 10432 # use $as_me), people would be surprised to read: 10433 # /* config.h. Generated by config.status. */ 10434 configure_input='Generated from '` 10435 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 10436 `' by configure.' 10437 if test x"$ac_file" != x-; then 10438 configure_input="$ac_file. $configure_input" 10439 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 10440$as_echo "$as_me: creating $ac_file" >&6;} 10441 fi 10442 # Neutralize special characters interpreted by sed in replacement strings. 10443 case $configure_input in #( 10444 *\&* | *\|* | *\\* ) 10445 ac_sed_conf_input=`$as_echo "$configure_input" | 10446 sed 's/[\\\\&|]/\\\\&/g'`;; #( 10447 *) ac_sed_conf_input=$configure_input;; 10448 esac 10449 10450 case $ac_tag in 10451 *:-:* | *:-) cat >"$tmp/stdin" \ 10452 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 10453 esac 10454 ;; 10455 esac 10456 10457 ac_dir=`$as_dirname -- "$ac_file" || 10458$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10459 X"$ac_file" : 'X\(//\)[^/]' \| \ 10460 X"$ac_file" : 'X\(//\)$' \| \ 10461 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10462$as_echo X"$ac_file" | 10463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10464 s//\1/ 10465 q 10466 } 10467 /^X\(\/\/\)[^/].*/{ 10468 s//\1/ 10469 q 10470 } 10471 /^X\(\/\/\)$/{ 10472 s//\1/ 10473 q 10474 } 10475 /^X\(\/\).*/{ 10476 s//\1/ 10477 q 10478 } 10479 s/.*/./; q'` 10480 as_dir="$ac_dir"; as_fn_mkdir_p 10481 ac_builddir=. 10482 10483case "$ac_dir" in 10484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10485*) 10486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 10487 # A ".." for each directory in $ac_dir_suffix. 10488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 10489 case $ac_top_builddir_sub in 10490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 10491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 10492 esac ;; 10493esac 10494ac_abs_top_builddir=$ac_pwd 10495ac_abs_builddir=$ac_pwd$ac_dir_suffix 10496# for backward compatibility: 10497ac_top_builddir=$ac_top_build_prefix 10498 10499case $srcdir in 10500 .) # We are building in place. 10501 ac_srcdir=. 10502 ac_top_srcdir=$ac_top_builddir_sub 10503 ac_abs_top_srcdir=$ac_pwd ;; 10504 [\\/]* | ?:[\\/]* ) # Absolute name. 10505 ac_srcdir=$srcdir$ac_dir_suffix; 10506 ac_top_srcdir=$srcdir 10507 ac_abs_top_srcdir=$srcdir ;; 10508 *) # Relative name. 10509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 10510 ac_top_srcdir=$ac_top_build_prefix$srcdir 10511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 10512esac 10513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 10514 10515 10516 case $ac_mode in 10517 :F) 10518 # 10519 # CONFIG_FILE 10520 # 10521 10522 case $INSTALL in 10523 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 10524 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 10525 esac 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 10579s&@INSTALL@&$ac_INSTALL&;t t 10580$ac_datarootdir_hack 10581" 10582eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 10583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10584 10585test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 10586 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 10587 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$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 "$tmp/stdin" 10594 case $ac_file in 10595 -) cat "$tmp/out" && rm -f "$tmp/out";; 10596 *) rm -f "$ac_file" && mv "$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 10636 10637# 10638# CONFIG_SUBDIRS section. 10639# 10640if test "$no_recursion" != yes; then 10641 10642 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 10643 # so they do not pile up. 10644 ac_sub_configure_args= 10645 ac_prev= 10646 eval "set x $ac_configure_args" 10647 shift 10648 for ac_arg 10649 do 10650 if test -n "$ac_prev"; then 10651 ac_prev= 10652 continue 10653 fi 10654 case $ac_arg in 10655 -cache-file | --cache-file | --cache-fil | --cache-fi \ 10656 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 10657 ac_prev=cache_file ;; 10658 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 10659 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 10660 | --c=*) 10661 ;; 10662 --config-cache | -C) 10663 ;; 10664 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 10665 ac_prev=srcdir ;; 10666 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 10667 ;; 10668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 10669 ac_prev=prefix ;; 10670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10671 ;; 10672 --disable-option-checking) 10673 ;; 10674 *) 10675 case $ac_arg in 10676 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 10677 esac 10678 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 10679 esac 10680 done 10681 10682 # Always prepend --prefix to ensure using the same prefix 10683 # in subdir configurations. 10684 ac_arg="--prefix=$prefix" 10685 case $ac_arg in 10686 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 10687 esac 10688 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 10689 10690 # Pass --silent 10691 if test "$silent" = yes; then 10692 ac_sub_configure_args="--silent $ac_sub_configure_args" 10693 fi 10694 10695 # Always prepend --disable-option-checking to silence warnings, since 10696 # different subdirs can have different --enable and --with options. 10697 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 10698 10699 ac_popdir=`pwd` 10700 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 10701 10702 # Do not complain, so a configure script can configure whichever 10703 # parts of a large source tree are present. 10704 test -d "$srcdir/$ac_dir" || continue 10705 10706 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 10707 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 10708 $as_echo "$ac_msg" >&6 10709 as_dir="$ac_dir"; as_fn_mkdir_p 10710 ac_builddir=. 10711 10712case "$ac_dir" in 10713.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10714*) 10715 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 10716 # A ".." for each directory in $ac_dir_suffix. 10717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 10718 case $ac_top_builddir_sub in 10719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 10720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 10721 esac ;; 10722esac 10723ac_abs_top_builddir=$ac_pwd 10724ac_abs_builddir=$ac_pwd$ac_dir_suffix 10725# for backward compatibility: 10726ac_top_builddir=$ac_top_build_prefix 10727 10728case $srcdir in 10729 .) # We are building in place. 10730 ac_srcdir=. 10731 ac_top_srcdir=$ac_top_builddir_sub 10732 ac_abs_top_srcdir=$ac_pwd ;; 10733 [\\/]* | ?:[\\/]* ) # Absolute name. 10734 ac_srcdir=$srcdir$ac_dir_suffix; 10735 ac_top_srcdir=$srcdir 10736 ac_abs_top_srcdir=$srcdir ;; 10737 *) # Relative name. 10738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 10739 ac_top_srcdir=$ac_top_build_prefix$srcdir 10740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 10741esac 10742ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 10743 10744 10745 cd "$ac_dir" 10746 10747 # Check for guested configure; otherwise get Cygnus style configure. 10748 if test -f "$ac_srcdir/configure.gnu"; then 10749 ac_sub_configure=$ac_srcdir/configure.gnu 10750 elif test -f "$ac_srcdir/configure"; then 10751 ac_sub_configure=$ac_srcdir/configure 10752 elif test -f "$ac_srcdir/configure.in"; then 10753 # This should be Cygnus configure. 10754 ac_sub_configure=$ac_aux_dir/configure 10755 else 10756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 10757$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 10758 ac_sub_configure= 10759 fi 10760 10761 # The recursion is here. 10762 if test -n "$ac_sub_configure"; then 10763 # Make the cache file name correct relative to the subdirectory. 10764 case $cache_file in 10765 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 10766 *) # Relative name. 10767 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 10768 esac 10769 10770 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 10771$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 10772 # The eval makes quoting arguments work. 10773 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 10774 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 10775 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 10776 fi 10777 10778 cd "$ac_popdir" 10779 done 10780fi 10781if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 10782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 10783$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 10784fi 10785 10786