source: trunk/kitgen/8.x/blt/configure

Last change on this file was 175, checked in by demin, 12 years ago

initial commit

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