OSDN Git Service

Merge branch 'master' of git://github.com/monaka/binutils
[pf3gnuchains/pf3gnuchains3x.git] / itcl / itcl / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for itcl 3.3.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME='itcl'
574 PACKAGE_TARNAME='itcl'
575 PACKAGE_VERSION='3.3'
576 PACKAGE_STRING='itcl 3.3'
577 PACKAGE_BUGREPORT=''
578
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='SHELL
616 PATH_SEPARATOR
617 PACKAGE_NAME
618 PACKAGE_TARNAME
619 PACKAGE_VERSION
620 PACKAGE_STRING
621 PACKAGE_BUGREPORT
622 exec_prefix
623 prefix
624 program_transform_name
625 bindir
626 sbindir
627 libexecdir
628 datarootdir
629 datadir
630 sysconfdir
631 sharedstatedir
632 localstatedir
633 includedir
634 oldincludedir
635 docdir
636 infodir
637 htmldir
638 dvidir
639 pdfdir
640 psdir
641 libdir
642 localedir
643 mandir
644 DEFS
645 ECHO_C
646 ECHO_N
647 ECHO_T
648 LIBS
649 build_alias
650 host_alias
651 target_alias
652 CYGPATH
653 EXEEXT
654 PKG_LIB_FILE
655 PKG_STUB_LIB_FILE
656 PKG_STUB_SOURCES
657 PKG_STUB_OBJECTS
658 PKG_TCL_SOURCES
659 PKG_HEADERS
660 PKG_INCLUDES
661 PKG_LIBS
662 PKG_CFLAGS
663 LN_S
664 CONFIG_CLEAN_FILES
665 TCL_VERSION
666 TCL_BIN_DIR
667 TCL_SRC_DIR
668 TCL_LIB_FILE
669 TCL_LIB_FLAG
670 TCL_LIB_SPEC
671 TCL_STUB_LIB_FILE
672 TCL_STUB_LIB_FLAG
673 TCL_STUB_LIB_SPEC
674 TCL_LIBS
675 TCL_DEFS
676 TCL_EXTRA_CFLAGS
677 TCL_LD_FLAGS
678 TCL_SHLIB_LD_LIBS
679 CC
680 CFLAGS
681 LDFLAGS
682 CPPFLAGS
683 ac_ct_CC
684 OBJEXT
685 CPP
686 INSTALL_PROGRAM
687 INSTALL_SCRIPT
688 INSTALL_DATA
689 SET_MAKE
690 RANLIB
691 GREP
692 EGREP
693 MATH_LIBS
694 PKG_SOURCES
695 PKG_OBJECTS
696 CLEANFILES
697 TCL_TOP_DIR_NATIVE
698 TCL_GENERIC_DIR_NATIVE
699 TCL_UNIX_DIR_NATIVE
700 TCL_WIN_DIR_NATIVE
701 TCL_BMAP_DIR_NATIVE
702 TCL_TOOL_DIR_NATIVE
703 TCL_PLATFORM_DIR_NATIVE
704 TCL_INCLUDES
705 SHARED_BUILD
706 AR
707 TCLSH_PROG
708 CELIB_DIR
709 LIBOBJS
710 DL_LIBS
711 CFLAGS_DEBUG
712 CFLAGS_OPTIMIZE
713 CFLAGS_WARNING
714 STLIB_LD
715 SHLIB_LD
716 SHLIB_CFLAGS
717 SHLIB_LD_LIBS
718 LDFLAGS_DEBUG
719 LDFLAGS_OPTIMIZE
720 LD_LIBRARY_PATH_VAR
721 TCL_DBGX
722 CFLAGS_DEFAULT
723 LDFLAGS_DEFAULT
724 MAKE_LIB
725 MAKE_SHARED_LIB
726 MAKE_STATIC_LIB
727 MAKE_STUB_LIB
728 RANLIB_STUB
729 itcl_STUB_LIB_FILE
730 itcl_LIB_FILE
731 itcl_BUILD_LIB_SPEC
732 itcl_LIB_SPEC
733 itcl_BUILD_STUB_LIB_SPEC
734 itcl_STUB_LIB_SPEC
735 itcl_BUILD_STUB_LIB_PATH
736 itcl_STUB_LIB_PATH
737 itcl_SRC_DIR
738 LTLIBOBJS'
739 ac_subst_files=''
740       ac_precious_vars='build_alias
741 host_alias
742 target_alias
743 CC
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
748 CPP'
749
750
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
770
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
796
797 ac_prev=
798 ac_dashdash=
799 for ac_option
800 do
801   # If the previous option needs an argument, assign it.
802   if test -n "$ac_prev"; then
803     eval $ac_prev=\$ac_option
804     ac_prev=
805     continue
806   fi
807
808   case $ac_option in
809   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810   *)    ac_optarg=yes ;;
811   esac
812
813   # Accept the important Cygnus configure options, so we can diagnose typos.
814
815   case $ac_dashdash$ac_option in
816   --)
817     ac_dashdash=yes ;;
818
819   -bindir | --bindir | --bindi | --bind | --bin | --bi)
820     ac_prev=bindir ;;
821   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822     bindir=$ac_optarg ;;
823
824   -build | --build | --buil | --bui | --bu)
825     ac_prev=build_alias ;;
826   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827     build_alias=$ac_optarg ;;
828
829   -cache-file | --cache-file | --cache-fil | --cache-fi \
830   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831     ac_prev=cache_file ;;
832   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834     cache_file=$ac_optarg ;;
835
836   --config-cache | -C)
837     cache_file=config.cache ;;
838
839   -datadir | --datadir | --datadi | --datad)
840     ac_prev=datadir ;;
841   -datadir=* | --datadir=* | --datadi=* | --datad=*)
842     datadir=$ac_optarg ;;
843
844   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845   | --dataroo | --dataro | --datar)
846     ac_prev=datarootdir ;;
847   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849     datarootdir=$ac_optarg ;;
850
851   -disable-* | --disable-*)
852     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853     # Reject names that are not valid shell variable names.
854     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856    { (exit 1); exit 1; }; }
857     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858     eval enable_$ac_feature=no ;;
859
860   -docdir | --docdir | --docdi | --doc | --do)
861     ac_prev=docdir ;;
862   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863     docdir=$ac_optarg ;;
864
865   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866     ac_prev=dvidir ;;
867   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868     dvidir=$ac_optarg ;;
869
870   -enable-* | --enable-*)
871     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872     # Reject names that are not valid shell variable names.
873     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875    { (exit 1); exit 1; }; }
876     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877     eval enable_$ac_feature=\$ac_optarg ;;
878
879   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881   | --exec | --exe | --ex)
882     ac_prev=exec_prefix ;;
883   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885   | --exec=* | --exe=* | --ex=*)
886     exec_prefix=$ac_optarg ;;
887
888   -gas | --gas | --ga | --g)
889     # Obsolete; use --with-gas.
890     with_gas=yes ;;
891
892   -help | --help | --hel | --he | -h)
893     ac_init_help=long ;;
894   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895     ac_init_help=recursive ;;
896   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897     ac_init_help=short ;;
898
899   -host | --host | --hos | --ho)
900     ac_prev=host_alias ;;
901   -host=* | --host=* | --hos=* | --ho=*)
902     host_alias=$ac_optarg ;;
903
904   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905     ac_prev=htmldir ;;
906   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907   | --ht=*)
908     htmldir=$ac_optarg ;;
909
910   -includedir | --includedir | --includedi | --included | --include \
911   | --includ | --inclu | --incl | --inc)
912     ac_prev=includedir ;;
913   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914   | --includ=* | --inclu=* | --incl=* | --inc=*)
915     includedir=$ac_optarg ;;
916
917   -infodir | --infodir | --infodi | --infod | --info | --inf)
918     ac_prev=infodir ;;
919   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920     infodir=$ac_optarg ;;
921
922   -libdir | --libdir | --libdi | --libd)
923     ac_prev=libdir ;;
924   -libdir=* | --libdir=* | --libdi=* | --libd=*)
925     libdir=$ac_optarg ;;
926
927   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928   | --libexe | --libex | --libe)
929     ac_prev=libexecdir ;;
930   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931   | --libexe=* | --libex=* | --libe=*)
932     libexecdir=$ac_optarg ;;
933
934   -localedir | --localedir | --localedi | --localed | --locale)
935     ac_prev=localedir ;;
936   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937     localedir=$ac_optarg ;;
938
939   -localstatedir | --localstatedir | --localstatedi | --localstated \
940   | --localstate | --localstat | --localsta | --localst | --locals)
941     ac_prev=localstatedir ;;
942   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944     localstatedir=$ac_optarg ;;
945
946   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947     ac_prev=mandir ;;
948   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949     mandir=$ac_optarg ;;
950
951   -nfp | --nfp | --nf)
952     # Obsolete; use --without-fp.
953     with_fp=no ;;
954
955   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956   | --no-cr | --no-c | -n)
957     no_create=yes ;;
958
959   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961     no_recursion=yes ;;
962
963   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965   | --oldin | --oldi | --old | --ol | --o)
966     ac_prev=oldincludedir ;;
967   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970     oldincludedir=$ac_optarg ;;
971
972   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973     ac_prev=prefix ;;
974   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975     prefix=$ac_optarg ;;
976
977   -program-prefix | --program-prefix | --program-prefi | --program-pref \
978   | --program-pre | --program-pr | --program-p)
979     ac_prev=program_prefix ;;
980   -program-prefix=* | --program-prefix=* | --program-prefi=* \
981   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982     program_prefix=$ac_optarg ;;
983
984   -program-suffix | --program-suffix | --program-suffi | --program-suff \
985   | --program-suf | --program-su | --program-s)
986     ac_prev=program_suffix ;;
987   -program-suffix=* | --program-suffix=* | --program-suffi=* \
988   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989     program_suffix=$ac_optarg ;;
990
991   -program-transform-name | --program-transform-name \
992   | --program-transform-nam | --program-transform-na \
993   | --program-transform-n | --program-transform- \
994   | --program-transform | --program-transfor \
995   | --program-transfo | --program-transf \
996   | --program-trans | --program-tran \
997   | --progr-tra | --program-tr | --program-t)
998     ac_prev=program_transform_name ;;
999   -program-transform-name=* | --program-transform-name=* \
1000   | --program-transform-nam=* | --program-transform-na=* \
1001   | --program-transform-n=* | --program-transform-=* \
1002   | --program-transform=* | --program-transfor=* \
1003   | --program-transfo=* | --program-transf=* \
1004   | --program-trans=* | --program-tran=* \
1005   | --progr-tra=* | --program-tr=* | --program-t=*)
1006     program_transform_name=$ac_optarg ;;
1007
1008   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009     ac_prev=pdfdir ;;
1010   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011     pdfdir=$ac_optarg ;;
1012
1013   -psdir | --psdir | --psdi | --psd | --ps)
1014     ac_prev=psdir ;;
1015   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016     psdir=$ac_optarg ;;
1017
1018   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019   | -silent | --silent | --silen | --sile | --sil)
1020     silent=yes ;;
1021
1022   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023     ac_prev=sbindir ;;
1024   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025   | --sbi=* | --sb=*)
1026     sbindir=$ac_optarg ;;
1027
1028   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030   | --sharedst | --shareds | --shared | --share | --shar \
1031   | --sha | --sh)
1032     ac_prev=sharedstatedir ;;
1033   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036   | --sha=* | --sh=*)
1037     sharedstatedir=$ac_optarg ;;
1038
1039   -site | --site | --sit)
1040     ac_prev=site ;;
1041   -site=* | --site=* | --sit=*)
1042     site=$ac_optarg ;;
1043
1044   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045     ac_prev=srcdir ;;
1046   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047     srcdir=$ac_optarg ;;
1048
1049   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050   | --syscon | --sysco | --sysc | --sys | --sy)
1051     ac_prev=sysconfdir ;;
1052   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054     sysconfdir=$ac_optarg ;;
1055
1056   -target | --target | --targe | --targ | --tar | --ta | --t)
1057     ac_prev=target_alias ;;
1058   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059     target_alias=$ac_optarg ;;
1060
1061   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062     verbose=yes ;;
1063
1064   -version | --version | --versio | --versi | --vers | -V)
1065     ac_init_version=: ;;
1066
1067   -with-* | --with-*)
1068     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071       { echo "$as_me: error: invalid package name: $ac_package" >&2
1072    { (exit 1); exit 1; }; }
1073     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074     eval with_$ac_package=\$ac_optarg ;;
1075
1076   -without-* | --without-*)
1077     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078     # Reject names that are not valid shell variable names.
1079     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080       { echo "$as_me: error: invalid package name: $ac_package" >&2
1081    { (exit 1); exit 1; }; }
1082     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083     eval with_$ac_package=no ;;
1084
1085   --x)
1086     # Obsolete; use --with-x.
1087     with_x=yes ;;
1088
1089   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090   | --x-incl | --x-inc | --x-in | --x-i)
1091     ac_prev=x_includes ;;
1092   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094     x_includes=$ac_optarg ;;
1095
1096   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098     ac_prev=x_libraries ;;
1099   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101     x_libraries=$ac_optarg ;;
1102
1103   -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105    { (exit 1); exit 1; }; }
1106     ;;
1107
1108   *=*)
1109     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110     # Reject names that are not valid shell variable names.
1111     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113    { (exit 1); exit 1; }; }
1114     eval $ac_envvar=\$ac_optarg
1115     export $ac_envvar ;;
1116
1117   *)
1118     # FIXME: should be removed in autoconf 3.0.
1119     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1123     ;;
1124
1125   esac
1126 done
1127
1128 if test -n "$ac_prev"; then
1129   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130   { echo "$as_me: error: missing argument to $ac_option" >&2
1131    { (exit 1); exit 1; }; }
1132 fi
1133
1134 # Be sure to have absolute directory names.
1135 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136                 datadir sysconfdir sharedstatedir localstatedir includedir \
1137                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138                 libdir localedir mandir
1139 do
1140   eval ac_val=\$$ac_var
1141   case $ac_val in
1142     [\\/$]* | ?:[\\/]* )  continue;;
1143     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144   esac
1145   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146    { (exit 1); exit 1; }; }
1147 done
1148
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1155
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158   if test "x$build_alias" = x; then
1159     cross_compiling=maybe
1160     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161     If a cross compiler is detected then cross compile mode will be used." >&2
1162   elif test "x$build_alias" != "x$host_alias"; then
1163     cross_compiling=yes
1164   fi
1165 fi
1166
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1169
1170 test "$silent" = yes && exec 6>/dev/null
1171
1172
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176   { echo "$as_me: error: Working directory cannot be determined" >&2
1177    { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179   { echo "$as_me: error: pwd does not report name of working directory" >&2
1180    { (exit 1); exit 1; }; }
1181
1182
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185   ac_srcdir_defaulted=yes
1186   # Try the directory containing this script, then the parent directory.
1187   ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189          X"$0" : 'X\(//\)[^/]' \| \
1190          X"$0" : 'X\(//\)$' \| \
1191          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194             s//\1/
1195             q
1196           }
1197           /^X\(\/\/\)[^/].*/{
1198             s//\1/
1199             q
1200           }
1201           /^X\(\/\/\)$/{
1202             s//\1/
1203             q
1204           }
1205           /^X\(\/\).*/{
1206             s//\1/
1207             q
1208           }
1209           s/.*/./; q'`
1210   srcdir=$ac_confdir
1211   if test ! -r "$srcdir/$ac_unique_file"; then
1212     srcdir=..
1213   fi
1214 else
1215   ac_srcdir_defaulted=no
1216 fi
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220    { (exit 1); exit 1; }; }
1221 fi
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225    { (exit 1); exit 1; }; }
1226         pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229   srcdir=.
1230 fi
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239   eval ac_env_${ac_var}_value=\$${ac_var}
1240   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1243
1244 #
1245 # Report the --help message.
1246 #
1247 if test "$ac_init_help" = "long"; then
1248   # Omit some internal or obsolete options to make the list less imposing.
1249   # This message is too long to be a string in the A/UX 3.1 sh.
1250   cat <<_ACEOF
1251 \`configure' configures itcl 3.3 to adapt to many kinds of systems.
1252
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1254
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE.  See below for descriptions of some of the useful variables.
1257
1258 Defaults for the options are specified in brackets.
1259
1260 Configuration:
1261   -h, --help              display this help and exit
1262       --help=short        display options specific to this package
1263       --help=recursive    display the short help of all the included packages
1264   -V, --version           display version information and exit
1265   -q, --quiet, --silent   do not print \`checking...' messages
1266       --cache-file=FILE   cache test results in FILE [disabled]
1267   -C, --config-cache      alias for \`--cache-file=config.cache'
1268   -n, --no-create         do not create output files
1269       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1270
1271 Installation directories:
1272   --prefix=PREFIX         install architecture-independent files in PREFIX
1273                           [$ac_default_prefix]
1274   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1275                           [PREFIX]
1276
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1281
1282 For better control, use the options below.
1283
1284 Fine tuning of the installation directories:
1285   --bindir=DIR           user executables [EPREFIX/bin]
1286   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1287   --libexecdir=DIR       program executables [EPREFIX/libexec]
1288   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1289   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1290   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1291   --libdir=DIR           object code libraries [EPREFIX/lib]
1292   --includedir=DIR       C header files [PREFIX/include]
1293   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1294   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1295   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1296   --infodir=DIR          info documentation [DATAROOTDIR/info]
1297   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1298   --mandir=DIR           man documentation [DATAROOTDIR/man]
1299   --docdir=DIR           documentation root [DATAROOTDIR/doc/itcl]
1300   --htmldir=DIR          html documentation [DOCDIR]
1301   --dvidir=DIR           dvi documentation [DOCDIR]
1302   --pdfdir=DIR           pdf documentation [DOCDIR]
1303   --psdir=DIR            ps documentation [DOCDIR]
1304 _ACEOF
1305
1306   cat <<\_ACEOF
1307 _ACEOF
1308 fi
1309
1310 if test -n "$ac_init_help"; then
1311   case $ac_init_help in
1312      short | recursive ) echo "Configuration of itcl 3.3:";;
1313    esac
1314   cat <<\_ACEOF
1315
1316 Optional Features:
1317   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1318   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1319   --enable-shared         build and link with shared libraries --enable-shared
1320   --enable-64bit          enable 64bit support (where applicable)
1321   --enable-64bit-vis      enable 64bit Sparc VIS support
1322   --enable-wince          enable Win/CE support (where applicable)
1323   --disable-load          disallow dynamic loading and "load" command
1324   --enable-symbols        build with debugging symbols --disable-symbols
1325
1326 Optional Packages:
1327   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1328   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1329   --with-tcl              directory containing tcl configuration (tclConfig.sh)
1330   --with-celib=DIR        use Windows/CE support library from DIR
1331
1332 Some influential environment variables:
1333   CC          C compiler command
1334   CFLAGS      C compiler flags
1335   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1336               nonstandard directory <lib dir>
1337   LIBS        libraries to pass to the linker, e.g. -l<library>
1338   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1339               you have headers in a nonstandard directory <include dir>
1340   CPP         C preprocessor
1341
1342 Use these variables to override the choices made by `configure' or to help
1343 it to find libraries and programs with nonstandard names/locations.
1344
1345 _ACEOF
1346 ac_status=$?
1347 fi
1348
1349 if test "$ac_init_help" = "recursive"; then
1350   # If there are subdirs, report their specific --help.
1351   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1352     test -d "$ac_dir" || continue
1353     ac_builddir=.
1354
1355 case "$ac_dir" in
1356 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357 *)
1358   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1359   # A ".." for each directory in $ac_dir_suffix.
1360   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1361   case $ac_top_builddir_sub in
1362   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1363   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1364   esac ;;
1365 esac
1366 ac_abs_top_builddir=$ac_pwd
1367 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1368 # for backward compatibility:
1369 ac_top_builddir=$ac_top_build_prefix
1370
1371 case $srcdir in
1372   .)  # We are building in place.
1373     ac_srcdir=.
1374     ac_top_srcdir=$ac_top_builddir_sub
1375     ac_abs_top_srcdir=$ac_pwd ;;
1376   [\\/]* | ?:[\\/]* )  # Absolute name.
1377     ac_srcdir=$srcdir$ac_dir_suffix;
1378     ac_top_srcdir=$srcdir
1379     ac_abs_top_srcdir=$srcdir ;;
1380   *) # Relative name.
1381     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1382     ac_top_srcdir=$ac_top_build_prefix$srcdir
1383     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1384 esac
1385 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1386
1387     cd "$ac_dir" || { ac_status=$?; continue; }
1388     # Check for guested configure.
1389     if test -f "$ac_srcdir/configure.gnu"; then
1390       echo &&
1391       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1392     elif test -f "$ac_srcdir/configure"; then
1393       echo &&
1394       $SHELL "$ac_srcdir/configure" --help=recursive
1395     else
1396       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1397     fi || ac_status=$?
1398     cd "$ac_pwd" || { ac_status=$?; break; }
1399   done
1400 fi
1401
1402 test -n "$ac_init_help" && exit $ac_status
1403 if $ac_init_version; then
1404   cat <<\_ACEOF
1405 itcl configure 3.3
1406 generated by GNU Autoconf 2.61
1407
1408 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1409 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1410 This configure script is free software; the Free Software Foundation
1411 gives unlimited permission to copy, distribute and modify it.
1412 _ACEOF
1413   exit
1414 fi
1415 cat >config.log <<_ACEOF
1416 This file contains any messages produced by compilers while
1417 running configure, to aid debugging if configure makes a mistake.
1418
1419 It was created by itcl $as_me 3.3, which was
1420 generated by GNU Autoconf 2.61.  Invocation command line was
1421
1422   $ $0 $@
1423
1424 _ACEOF
1425 exec 5>>config.log
1426 {
1427 cat <<_ASUNAME
1428 ## --------- ##
1429 ## Platform. ##
1430 ## --------- ##
1431
1432 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1433 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1434 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1435 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1436 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1437
1438 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1439 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1440
1441 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1442 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1443 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1444 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1445 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1446 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1447 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1448
1449 _ASUNAME
1450
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1453 do
1454   IFS=$as_save_IFS
1455   test -z "$as_dir" && as_dir=.
1456   echo "PATH: $as_dir"
1457 done
1458 IFS=$as_save_IFS
1459
1460 } >&5
1461
1462 cat >&5 <<_ACEOF
1463
1464
1465 ## ----------- ##
1466 ## Core tests. ##
1467 ## ----------- ##
1468
1469 _ACEOF
1470
1471
1472 # Keep a trace of the command line.
1473 # Strip out --no-create and --no-recursion so they do not pile up.
1474 # Strip out --silent because we don't want to record it for future runs.
1475 # Also quote any args containing shell meta-characters.
1476 # Make two passes to allow for proper duplicate-argument suppression.
1477 ac_configure_args=
1478 ac_configure_args0=
1479 ac_configure_args1=
1480 ac_must_keep_next=false
1481 for ac_pass in 1 2
1482 do
1483   for ac_arg
1484   do
1485     case $ac_arg in
1486     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1487     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1488     | -silent | --silent | --silen | --sile | --sil)
1489       continue ;;
1490     *\'*)
1491       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1492     esac
1493     case $ac_pass in
1494     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1495     2)
1496       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1497       if test $ac_must_keep_next = true; then
1498         ac_must_keep_next=false # Got value, back to normal.
1499       else
1500         case $ac_arg in
1501           *=* | --config-cache | -C | -disable-* | --disable-* \
1502           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1503           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1504           | -with-* | --with-* | -without-* | --without-* | --x)
1505             case "$ac_configure_args0 " in
1506               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1507             esac
1508             ;;
1509           -* ) ac_must_keep_next=true ;;
1510         esac
1511       fi
1512       ac_configure_args="$ac_configure_args '$ac_arg'"
1513       ;;
1514     esac
1515   done
1516 done
1517 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1518 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1519
1520 # When interrupted or exit'd, cleanup temporary files, and complete
1521 # config.log.  We remove comments because anyway the quotes in there
1522 # would cause problems or look ugly.
1523 # WARNING: Use '\'' to represent an apostrophe within the trap.
1524 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1525 trap 'exit_status=$?
1526   # Save into config.log some information that might help in debugging.
1527   {
1528     echo
1529
1530     cat <<\_ASBOX
1531 ## ---------------- ##
1532 ## Cache variables. ##
1533 ## ---------------- ##
1534 _ASBOX
1535     echo
1536     # The following way of writing the cache mishandles newlines in values,
1537 (
1538   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1539     eval ac_val=\$$ac_var
1540     case $ac_val in #(
1541     *${as_nl}*)
1542       case $ac_var in #(
1543       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1544 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1545       esac
1546       case $ac_var in #(
1547       _ | IFS | as_nl) ;; #(
1548       *) $as_unset $ac_var ;;
1549       esac ;;
1550     esac
1551   done
1552   (set) 2>&1 |
1553     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1554     *${as_nl}ac_space=\ *)
1555       sed -n \
1556         "s/'\''/'\''\\\\'\'''\''/g;
1557           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1558       ;; #(
1559     *)
1560       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1561       ;;
1562     esac |
1563     sort
1564 )
1565     echo
1566
1567     cat <<\_ASBOX
1568 ## ----------------- ##
1569 ## Output variables. ##
1570 ## ----------------- ##
1571 _ASBOX
1572     echo
1573     for ac_var in $ac_subst_vars
1574     do
1575       eval ac_val=\$$ac_var
1576       case $ac_val in
1577       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1578       esac
1579       echo "$ac_var='\''$ac_val'\''"
1580     done | sort
1581     echo
1582
1583     if test -n "$ac_subst_files"; then
1584       cat <<\_ASBOX
1585 ## ------------------- ##
1586 ## File substitutions. ##
1587 ## ------------------- ##
1588 _ASBOX
1589       echo
1590       for ac_var in $ac_subst_files
1591       do
1592         eval ac_val=\$$ac_var
1593         case $ac_val in
1594         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1595         esac
1596         echo "$ac_var='\''$ac_val'\''"
1597       done | sort
1598       echo
1599     fi
1600
1601     if test -s confdefs.h; then
1602       cat <<\_ASBOX
1603 ## ----------- ##
1604 ## confdefs.h. ##
1605 ## ----------- ##
1606 _ASBOX
1607       echo
1608       cat confdefs.h
1609       echo
1610     fi
1611     test "$ac_signal" != 0 &&
1612       echo "$as_me: caught signal $ac_signal"
1613     echo "$as_me: exit $exit_status"
1614   } >&5
1615   rm -f core *.core core.conftest.* &&
1616     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1617     exit $exit_status
1618 ' 0
1619 for ac_signal in 1 2 13 15; do
1620   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1621 done
1622 ac_signal=0
1623
1624 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1625 rm -f -r conftest* confdefs.h
1626
1627 # Predefined preprocessor variables.
1628
1629 cat >>confdefs.h <<_ACEOF
1630 #define PACKAGE_NAME "$PACKAGE_NAME"
1631 _ACEOF
1632
1633
1634 cat >>confdefs.h <<_ACEOF
1635 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1636 _ACEOF
1637
1638
1639 cat >>confdefs.h <<_ACEOF
1640 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1641 _ACEOF
1642
1643
1644 cat >>confdefs.h <<_ACEOF
1645 #define PACKAGE_STRING "$PACKAGE_STRING"
1646 _ACEOF
1647
1648
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1651 _ACEOF
1652
1653
1654 # Let the site file select an alternate cache file if it wants to.
1655 # Prefer explicitly selected file to automatically selected ones.
1656 if test -n "$CONFIG_SITE"; then
1657   set x "$CONFIG_SITE"
1658 elif test "x$prefix" != xNONE; then
1659   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1660 else
1661   set x "$ac_default_prefix/share/config.site" \
1662         "$ac_default_prefix/etc/config.site"
1663 fi
1664 shift
1665 for ac_site_file
1666 do
1667   if test -r "$ac_site_file"; then
1668     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1669 echo "$as_me: loading site script $ac_site_file" >&6;}
1670     sed 's/^/| /' "$ac_site_file" >&5
1671     . "$ac_site_file"
1672   fi
1673 done
1674
1675 if test -r "$cache_file"; then
1676   # Some versions of bash will fail to source /dev/null (special
1677   # files actually), so we avoid doing that.
1678   if test -f "$cache_file"; then
1679     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1680 echo "$as_me: loading cache $cache_file" >&6;}
1681     case $cache_file in
1682       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1683       *)                      . "./$cache_file";;
1684     esac
1685   fi
1686 else
1687   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1688 echo "$as_me: creating cache $cache_file" >&6;}
1689   >$cache_file
1690 fi
1691
1692 # Check that the precious variables saved in the cache have kept the same
1693 # value.
1694 ac_cache_corrupted=false
1695 for ac_var in $ac_precious_vars; do
1696   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1697   eval ac_new_set=\$ac_env_${ac_var}_set
1698   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1699   eval ac_new_val=\$ac_env_${ac_var}_value
1700   case $ac_old_set,$ac_new_set in
1701     set,)
1702       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1703 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1704       ac_cache_corrupted=: ;;
1705     ,set)
1706       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1707 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1708       ac_cache_corrupted=: ;;
1709     ,);;
1710     *)
1711       if test "x$ac_old_val" != "x$ac_new_val"; then
1712         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1713 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1714         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1715 echo "$as_me:   former value:  $ac_old_val" >&2;}
1716         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1717 echo "$as_me:   current value: $ac_new_val" >&2;}
1718         ac_cache_corrupted=:
1719       fi;;
1720   esac
1721   # Pass precious variables to config.status.
1722   if test "$ac_new_set" = set; then
1723     case $ac_new_val in
1724     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1725     *) ac_arg=$ac_var=$ac_new_val ;;
1726     esac
1727     case " $ac_configure_args " in
1728       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1729       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1730     esac
1731   fi
1732 done
1733 if $ac_cache_corrupted; then
1734   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1735 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1736   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1737 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1738    { (exit 1); exit 1; }; }
1739 fi
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765 ac_ext=c
1766 ac_cpp='$CPP $CPPFLAGS'
1767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1770
1771
1772
1773 #--------------------------------------------------------------------
1774 # Call TEA_INIT as the first TEA_ macro to set up initial vars.
1775 # This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
1776 # as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
1777 #--------------------------------------------------------------------
1778
1779
1780     # TEA extensions pass this us the version of TEA they think they
1781     # are compatible with.
1782     TEA_VERSION="3.2"
1783
1784     { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5
1785 echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; }
1786     if test x"${PACKAGE_NAME}" = x ; then
1787         { { echo "$as_me:$LINENO: error:
1788 The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5
1789 echo "$as_me: error:
1790 The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;}
1791    { (exit 1); exit 1; }; }
1792     fi
1793     if test x"3.2" = x ; then
1794         { { echo "$as_me:$LINENO: error:
1795 TEA version not specified." >&5
1796 echo "$as_me: error:
1797 TEA version not specified." >&2;}
1798    { (exit 1); exit 1; }; }
1799     elif test "3.2" != "${TEA_VERSION}" ; then
1800         { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.2\", have \"${TEA_VERSION}\"" >&5
1801 echo "${ECHO_T}warning: requested TEA version \"3.2\", have \"${TEA_VERSION}\"" >&6; }
1802     else
1803         { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5
1804 echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; }
1805     fi
1806     case "`uname -s`" in
1807         *win32*|*WIN32*|*CYGWIN_NT*|*CYGWIN_9*|*CYGWIN_ME*|*MINGW32_*)
1808             # Extract the first word of "cygpath", so it can be a program name with args.
1809 set dummy cygpath; ac_word=$2
1810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1812 if test "${ac_cv_prog_CYGPATH+set}" = set; then
1813   echo $ECHO_N "(cached) $ECHO_C" >&6
1814 else
1815   if test -n "$CYGPATH"; then
1816   ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
1817 else
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 for as_dir in $PATH
1820 do
1821   IFS=$as_save_IFS
1822   test -z "$as_dir" && as_dir=.
1823   for ac_exec_ext in '' $ac_executable_extensions; do
1824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1825     ac_cv_prog_CYGPATH="cygpath -w"
1826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827     break 2
1828   fi
1829 done
1830 done
1831 IFS=$as_save_IFS
1832
1833   test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
1834 fi
1835 fi
1836 CYGPATH=$ac_cv_prog_CYGPATH
1837 if test -n "$CYGPATH"; then
1838   { echo "$as_me:$LINENO: result: $CYGPATH" >&5
1839 echo "${ECHO_T}$CYGPATH" >&6; }
1840 else
1841   { echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6; }
1843 fi
1844
1845
1846             EXEEXT=".exe"
1847             TEA_PLATFORM="windows"
1848             ;;
1849         *)
1850             CYGPATH=echo
1851             EXEEXT=""
1852             TEA_PLATFORM="unix"
1853             ;;
1854     esac
1855
1856     # Check if exec_prefix is set. If not use fall back to prefix.
1857     # Note when adjusted, so that TEA_PREFIX can correct for this.
1858     # This is needed for recursive configures, since autoconf propagates
1859     # $prefix, but not $exec_prefix (doh!).
1860     if test x$exec_prefix = xNONE ; then
1861         exec_prefix_default=yes
1862         exec_prefix=$prefix
1863     fi
1864
1865
1866
1867
1868     # This package name must be replaced statically for AC_SUBST to work
1869
1870     # Substitute STUB_LIB_FILE in case package creates a stub library too.
1871
1872
1873     # We AC_SUBST these here to ensure they are subst'ed,
1874     # in case the user doesn't call TEA_ADD_...
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
1885 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1886 LN_S=$as_ln_s
1887 if test "$LN_S" = "ln -s"; then
1888   { echo "$as_me:$LINENO: result: yes" >&5
1889 echo "${ECHO_T}yes" >&6; }
1890 else
1891   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1892 echo "${ECHO_T}no, using $LN_S" >&6; }
1893 fi
1894
1895 CONFIG_CLEAN_FILES=
1896 if test ! -d $srcdir/tclconfig ; then
1897     if test -d $srcdir/../tclconfig ; then
1898         $LN_S $srcdir/../tclconfig tclconfig
1899         CONFIG_CLEAN_FILES=tclconfig
1900     fi
1901 fi
1902
1903
1904 ac_aux_dir=
1905 for ac_dir in tclconfig "$srcdir"/tclconfig; do
1906   if test -f "$ac_dir/install-sh"; then
1907     ac_aux_dir=$ac_dir
1908     ac_install_sh="$ac_aux_dir/install-sh -c"
1909     break
1910   elif test -f "$ac_dir/install.sh"; then
1911     ac_aux_dir=$ac_dir
1912     ac_install_sh="$ac_aux_dir/install.sh -c"
1913     break
1914   elif test -f "$ac_dir/shtool"; then
1915     ac_aux_dir=$ac_dir
1916     ac_install_sh="$ac_aux_dir/shtool install -c"
1917     break
1918   fi
1919 done
1920 if test -z "$ac_aux_dir"; then
1921   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5
1922 echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;}
1923    { (exit 1); exit 1; }; }
1924 fi
1925
1926 # These three variables are undocumented and unsupported,
1927 # and are intended to be withdrawn in a future Autoconf release.
1928 # They can cause serious problems if a builder's source tree is in a directory
1929 # whose full name contains unusual characters.
1930 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1931 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1932 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1933
1934
1935
1936 #--------------------------------------------------------------------
1937 # Load the tclConfig.sh file
1938 #--------------------------------------------------------------------
1939
1940
1941
1942     #
1943     # Ok, lets find the tcl configuration
1944     # First, look for one uninstalled.
1945     # the alternative search directory is invoked by --with-tcl
1946     #
1947
1948     if test x"${no_tcl}" = x ; then
1949         # we reset no_tcl in case something fails here
1950         no_tcl=true
1951
1952 # Check whether --with-tcl was given.
1953 if test "${with_tcl+set}" = set; then
1954   withval=$with_tcl; with_tclconfig=${withval}
1955 fi
1956
1957         { echo "$as_me:$LINENO: checking for Tcl configuration" >&5
1958 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
1959         if test "${ac_cv_c_tclconfig+set}" = set; then
1960   echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962
1963
1964             # For platform-specific directories
1965             case $TEA_PLATFORM in
1966               windows) platform="win" ;;
1967               unix) platform="unix" ;;
1968               *) { { echo "$as_me:$LINENO: error: unknown TEA_PLATFORM: \"$TEA_PLATFORM\"" >&5
1969 echo "$as_me: error: unknown TEA_PLATFORM: \"$TEA_PLATFORM\"" >&2;}
1970    { (exit 1); exit 1; }; }
1971             esac
1972
1973             # First check to see if --with-tcl was specified.
1974             if test x"${with_tclconfig}" != x ; then
1975                 case ${with_tclconfig} in
1976                     */tclConfig.sh )
1977                         if test -f ${with_tclconfig}; then
1978                             { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
1979 echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
1980                             with_tclconfig=`echo ${with_tclconfig} | sed 's!/tclConfig\.sh$!!'`
1981                         fi ;;
1982                 esac
1983                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
1984                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
1985                 else
1986                     { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
1987 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
1988    { (exit 1); exit 1; }; }
1989                 fi
1990             fi
1991
1992             # then check for a private Tcl installation
1993             if test x"${ac_cv_c_tclconfig}" = x ; then
1994                 for i in \
1995                         ../tcl \
1996                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
1997                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
1998                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
1999                         ../../tcl \
2000                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2001                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
2002                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2003                         ../../../tcl \
2004                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2005                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
2006                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2007                     if test -f "$i/$platform/tclConfig.sh" ; then
2008                         ac_cv_c_tclconfig=`(cd $i/$platform; pwd)`
2009                         break
2010                     fi
2011                 done
2012             fi
2013
2014             # check in a few common install locations
2015             if test x"${ac_cv_c_tclconfig}" = x ; then
2016                 for i in `ls -d ${exec_prefix}/lib 2>/dev/null` \
2017                         `ls -d ${prefix}/lib 2>/dev/null` \
2018                         `ls -d /usr/local/lib 2>/dev/null` \
2019                         `ls -d /usr/contrib/lib 2>/dev/null` \
2020                         `ls -d /usr/lib 2>/dev/null` \
2021                         ; do
2022                     if test -f "$i/tclConfig.sh" ; then
2023                         ac_cv_c_tclconfig=`(cd $i; pwd)`
2024                         break
2025                     fi
2026                 done
2027             fi
2028
2029             # check in a few other private locations
2030             if test x"${ac_cv_c_tclconfig}" = x ; then
2031                 for i in \
2032                         ${srcdir}/../tcl \
2033                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2034                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2035                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2036
2037                     if test -f "$i/$platform/tclConfig.sh" ; then
2038                       ac_cv_c_tclconfig=`(cd $i/$platform; pwd)`
2039                       break
2040                     fi
2041                 done
2042             fi
2043
2044 fi
2045
2046
2047         if test x"${ac_cv_c_tclconfig}" = x ; then
2048             TCL_BIN_DIR="# no Tcl configs found"
2049             { echo "$as_me:$LINENO: WARNING: \"Cannot find Tcl configuration definitions\"" >&5
2050 echo "$as_me: WARNING: \"Cannot find Tcl configuration definitions\"" >&2;}
2051             exit 0
2052         else
2053             no_tcl=
2054             TCL_BIN_DIR=${ac_cv_c_tclconfig}
2055             { echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
2056 echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6; }
2057         fi
2058     fi
2059
2060
2061     { echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
2062 echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6; }
2063
2064     if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
2065         { echo "$as_me:$LINENO: result: loading" >&5
2066 echo "${ECHO_T}loading" >&6; }
2067         . $TCL_BIN_DIR/tclConfig.sh
2068     else
2069         { echo "$as_me:$LINENO: result: file not found" >&5
2070 echo "${ECHO_T}file not found" >&6; }
2071     fi
2072
2073     #
2074     # If the TCL_BIN_DIR is the build directory (not the install directory),
2075     # then set the common variable name to the value of the build variables.
2076     # For example, the variable TCL_LIB_SPEC will be set to the value
2077     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
2078     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
2079     # installed and uninstalled version of Tcl.
2080     #
2081
2082     if test -f $TCL_BIN_DIR/Makefile ; then
2083         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
2084         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
2085         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
2086     fi
2087
2088     #
2089     # eval is required to do the TCL_DBGX substitution
2090     #
2091
2092     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
2093     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
2094     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
2095
2096     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
2097     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
2098     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117     #AC_SUBST(TCL_BUILD_LIB_SPEC)
2118     #AC_SUBST(TCL_BUILD_STUB_LIB_SPEC)
2119
2120
2121 #-----------------------------------------------------------------------
2122 # Handle the --prefix=... option by defaulting to what Tcl gave.
2123 # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
2124 #-----------------------------------------------------------------------
2125
2126
2127     if test "${prefix}" = "NONE"; then
2128         prefix_default=yes
2129         if test x"${TCL_PREFIX}" != x; then
2130             { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
2131 echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
2132             prefix=${TCL_PREFIX}
2133         else
2134             { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5
2135 echo "$as_me: --prefix defaulting to /usr/local" >&6;}
2136             prefix=/usr/local
2137         fi
2138     fi
2139     if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
2140         -o x"${exec_prefix_default}" = x"yes" ; then
2141         if test x"${TCL_EXEC_PREFIX}" != x; then
2142             { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
2143 echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
2144             exec_prefix=${TCL_EXEC_PREFIX}
2145         else
2146             { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5
2147 echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
2148             exec_prefix=$prefix
2149         fi
2150     fi
2151
2152
2153 #-----------------------------------------------------------------------
2154 # Standard compiler checks.
2155 # This sets up CC by using the CC env var, or looks for gcc otherwise.
2156 # This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
2157 # the basic setup necessary to compile executables.
2158 #-----------------------------------------------------------------------
2159
2160
2161     # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
2162     # in this macro, they need to go into TEA_SETUP_COMPILER instead.
2163
2164     # If the user did not set CFLAGS, set it now to keep
2165     # the AC_PROG_CC macro from adding "-g -O2".
2166     if test "${CFLAGS+set}" != "set" ; then
2167         CFLAGS=""
2168     fi
2169
2170     ac_ext=c
2171 ac_cpp='$CPP $CPPFLAGS'
2172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175 if test -n "$ac_tool_prefix"; then
2176   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2180 if test "${ac_cv_prog_CC+set}" = set; then
2181   echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183   if test -n "$CC"; then
2184   ac_cv_prog_CC="$CC" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2188 do
2189   IFS=$as_save_IFS
2190   test -z "$as_dir" && as_dir=.
2191   for ac_exec_ext in '' $ac_executable_extensions; do
2192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195     break 2
2196   fi
2197 done
2198 done
2199 IFS=$as_save_IFS
2200
2201 fi
2202 fi
2203 CC=$ac_cv_prog_CC
2204 if test -n "$CC"; then
2205   { echo "$as_me:$LINENO: result: $CC" >&5
2206 echo "${ECHO_T}$CC" >&6; }
2207 else
2208   { echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6; }
2210 fi
2211
2212
2213 fi
2214 if test -z "$ac_cv_prog_CC"; then
2215   ac_ct_CC=$CC
2216   # Extract the first word of "gcc", so it can be a program name with args.
2217 set dummy gcc; ac_word=$2
2218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   if test -n "$ac_ct_CC"; then
2224   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2225 else
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2228 do
2229   IFS=$as_save_IFS
2230   test -z "$as_dir" && as_dir=.
2231   for ac_exec_ext in '' $ac_executable_extensions; do
2232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233     ac_cv_prog_ac_ct_CC="gcc"
2234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235     break 2
2236   fi
2237 done
2238 done
2239 IFS=$as_save_IFS
2240
2241 fi
2242 fi
2243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244 if test -n "$ac_ct_CC"; then
2245   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246 echo "${ECHO_T}$ac_ct_CC" >&6; }
2247 else
2248   { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2250 fi
2251
2252   if test "x$ac_ct_CC" = x; then
2253     CC=""
2254   else
2255     case $cross_compiling:$ac_tool_warned in
2256 yes:)
2257 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2258 whose name does not start with the host triplet.  If you think this
2259 configuration is useful to you, please write to autoconf@gnu.org." >&5
2260 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2261 whose name does not start with the host triplet.  If you think this
2262 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2263 ac_tool_warned=yes ;;
2264 esac
2265     CC=$ac_ct_CC
2266   fi
2267 else
2268   CC="$ac_cv_prog_CC"
2269 fi
2270
2271 if test -z "$CC"; then
2272           if test -n "$ac_tool_prefix"; then
2273     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2274 set dummy ${ac_tool_prefix}cc; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_prog_CC+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   if test -n "$CC"; then
2281   ac_cv_prog_CC="$CC" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286   IFS=$as_save_IFS
2287   test -z "$as_dir" && as_dir=.
2288   for ac_exec_ext in '' $ac_executable_extensions; do
2289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290     ac_cv_prog_CC="${ac_tool_prefix}cc"
2291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292     break 2
2293   fi
2294 done
2295 done
2296 IFS=$as_save_IFS
2297
2298 fi
2299 fi
2300 CC=$ac_cv_prog_CC
2301 if test -n "$CC"; then
2302   { echo "$as_me:$LINENO: result: $CC" >&5
2303 echo "${ECHO_T}$CC" >&6; }
2304 else
2305   { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2307 fi
2308
2309
2310   fi
2311 fi
2312 if test -z "$CC"; then
2313   # Extract the first word of "cc", so it can be a program name with args.
2314 set dummy cc; ac_word=$2
2315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2317 if test "${ac_cv_prog_CC+set}" = set; then
2318   echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320   if test -n "$CC"; then
2321   ac_cv_prog_CC="$CC" # Let the user override the test.
2322 else
2323   ac_prog_rejected=no
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2326 do
2327   IFS=$as_save_IFS
2328   test -z "$as_dir" && as_dir=.
2329   for ac_exec_ext in '' $ac_executable_extensions; do
2330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2332        ac_prog_rejected=yes
2333        continue
2334      fi
2335     ac_cv_prog_CC="cc"
2336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337     break 2
2338   fi
2339 done
2340 done
2341 IFS=$as_save_IFS
2342
2343 if test $ac_prog_rejected = yes; then
2344   # We found a bogon in the path, so make sure we never use it.
2345   set dummy $ac_cv_prog_CC
2346   shift
2347   if test $# != 0; then
2348     # We chose a different compiler from the bogus one.
2349     # However, it has the same basename, so the bogon will be chosen
2350     # first if we set CC to just the basename; use the full file name.
2351     shift
2352     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2353   fi
2354 fi
2355 fi
2356 fi
2357 CC=$ac_cv_prog_CC
2358 if test -n "$CC"; then
2359   { echo "$as_me:$LINENO: result: $CC" >&5
2360 echo "${ECHO_T}$CC" >&6; }
2361 else
2362   { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2364 fi
2365
2366
2367 fi
2368 if test -z "$CC"; then
2369   if test -n "$ac_tool_prefix"; then
2370   for ac_prog in cl.exe
2371   do
2372     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2373 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377   echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379   if test -n "$CC"; then
2380   ac_cv_prog_CC="$CC" # Let the user override the test.
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2384 do
2385   IFS=$as_save_IFS
2386   test -z "$as_dir" && as_dir=.
2387   for ac_exec_ext in '' $ac_executable_extensions; do
2388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391     break 2
2392   fi
2393 done
2394 done
2395 IFS=$as_save_IFS
2396
2397 fi
2398 fi
2399 CC=$ac_cv_prog_CC
2400 if test -n "$CC"; then
2401   { echo "$as_me:$LINENO: result: $CC" >&5
2402 echo "${ECHO_T}$CC" >&6; }
2403 else
2404   { echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6; }
2406 fi
2407
2408
2409     test -n "$CC" && break
2410   done
2411 fi
2412 if test -z "$CC"; then
2413   ac_ct_CC=$CC
2414   for ac_prog in cl.exe
2415 do
2416   # Extract the first word of "$ac_prog", so it can be a program name with args.
2417 set dummy $ac_prog; ac_word=$2
2418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2421   echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423   if test -n "$ac_ct_CC"; then
2424   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2428 do
2429   IFS=$as_save_IFS
2430   test -z "$as_dir" && as_dir=.
2431   for ac_exec_ext in '' $ac_executable_extensions; do
2432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2433     ac_cv_prog_ac_ct_CC="$ac_prog"
2434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435     break 2
2436   fi
2437 done
2438 done
2439 IFS=$as_save_IFS
2440
2441 fi
2442 fi
2443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2444 if test -n "$ac_ct_CC"; then
2445   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2446 echo "${ECHO_T}$ac_ct_CC" >&6; }
2447 else
2448   { echo "$as_me:$LINENO: result: no" >&5
2449 echo "${ECHO_T}no" >&6; }
2450 fi
2451
2452
2453   test -n "$ac_ct_CC" && break
2454 done
2455
2456   if test "x$ac_ct_CC" = x; then
2457     CC=""
2458   else
2459     case $cross_compiling:$ac_tool_warned in
2460 yes:)
2461 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2462 whose name does not start with the host triplet.  If you think this
2463 configuration is useful to you, please write to autoconf@gnu.org." >&5
2464 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2465 whose name does not start with the host triplet.  If you think this
2466 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2467 ac_tool_warned=yes ;;
2468 esac
2469     CC=$ac_ct_CC
2470   fi
2471 fi
2472
2473 fi
2474
2475
2476 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2477 See \`config.log' for more details." >&5
2478 echo "$as_me: error: no acceptable C compiler found in \$PATH
2479 See \`config.log' for more details." >&2;}
2480    { (exit 1); exit 1; }; }
2481
2482 # Provide some information about the compiler.
2483 echo "$as_me:$LINENO: checking for C compiler version" >&5
2484 ac_compiler=`set X $ac_compile; echo $2`
2485 { (ac_try="$ac_compiler --version >&5"
2486 case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491   (eval "$ac_compiler --version >&5") 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }
2495 { (ac_try="$ac_compiler -v >&5"
2496 case "(($ac_try" in
2497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498   *) ac_try_echo=$ac_try;;
2499 esac
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501   (eval "$ac_compiler -v >&5") 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }
2505 { (ac_try="$ac_compiler -V >&5"
2506 case "(($ac_try" in
2507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508   *) ac_try_echo=$ac_try;;
2509 esac
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511   (eval "$ac_compiler -V >&5") 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }
2515
2516 cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h.  */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h.  */
2522
2523 int
2524 main ()
2525 {
2526
2527   ;
2528   return 0;
2529 }
2530 _ACEOF
2531 ac_clean_files_save=$ac_clean_files
2532 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2533 # Try to create an executable without -o first, disregard a.out.
2534 # It will help us diagnose broken compilers, and finding out an intuition
2535 # of exeext.
2536 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2537 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2538 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2539 #
2540 # List of possible output files, starting from the most likely.
2541 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2542 # only as a last resort.  b.out is created by i960 compilers.
2543 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2544 #
2545 # The IRIX 6 linker writes into existing files which may not be
2546 # executable, retaining their permissions.  Remove them first so a
2547 # subsequent execution test works.
2548 ac_rmfiles=
2549 for ac_file in $ac_files
2550 do
2551   case $ac_file in
2552     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2553     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2554   esac
2555 done
2556 rm -f $ac_rmfiles
2557
2558 if { (ac_try="$ac_link_default"
2559 case "(($ac_try" in
2560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561   *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564   (eval "$ac_link_default") 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); }; then
2568   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2569 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2570 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2571 # so that the user can short-circuit this test for compilers unknown to
2572 # Autoconf.
2573 for ac_file in $ac_files ''
2574 do
2575   test -f "$ac_file" || continue
2576   case $ac_file in
2577     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2578         ;;
2579     [ab].out )
2580         # We found the default executable, but exeext='' is most
2581         # certainly right.
2582         break;;
2583     *.* )
2584         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2585         then :; else
2586            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2587         fi
2588         # We set ac_cv_exeext here because the later test for it is not
2589         # safe: cross compilers may not add the suffix if given an `-o'
2590         # argument, so we may need to know it at that point already.
2591         # Even if this section looks crufty: it has the advantage of
2592         # actually working.
2593         break;;
2594     * )
2595         break;;
2596   esac
2597 done
2598 test "$ac_cv_exeext" = no && ac_cv_exeext=
2599
2600 else
2601   ac_file=''
2602 fi
2603
2604 { echo "$as_me:$LINENO: result: $ac_file" >&5
2605 echo "${ECHO_T}$ac_file" >&6; }
2606 if test -z "$ac_file"; then
2607   echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2609
2610 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2611 See \`config.log' for more details." >&5
2612 echo "$as_me: error: C compiler cannot create executables
2613 See \`config.log' for more details." >&2;}
2614    { (exit 77); exit 77; }; }
2615 fi
2616
2617 ac_exeext=$ac_cv_exeext
2618
2619 # Check that the compiler produces executables we can run.  If not, either
2620 # the compiler is broken, or we cross compile.
2621 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2622 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2623 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2624 # If not cross compiling, check that we can run a simple program.
2625 if test "$cross_compiling" != yes; then
2626   if { ac_try='./$ac_file'
2627   { (case "(($ac_try" in
2628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629   *) ac_try_echo=$ac_try;;
2630 esac
2631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2632   (eval "$ac_try") 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); }; }; then
2636     cross_compiling=no
2637   else
2638     if test "$cross_compiling" = maybe; then
2639         cross_compiling=yes
2640     else
2641         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2642 If you meant to cross compile, use \`--host'.
2643 See \`config.log' for more details." >&5
2644 echo "$as_me: error: cannot run C compiled programs.
2645 If you meant to cross compile, use \`--host'.
2646 See \`config.log' for more details." >&2;}
2647    { (exit 1); exit 1; }; }
2648     fi
2649   fi
2650 fi
2651 { echo "$as_me:$LINENO: result: yes" >&5
2652 echo "${ECHO_T}yes" >&6; }
2653
2654 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2655 ac_clean_files=$ac_clean_files_save
2656 # Check that the compiler produces executables we can run.  If not, either
2657 # the compiler is broken, or we cross compile.
2658 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2659 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2660 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2661 echo "${ECHO_T}$cross_compiling" >&6; }
2662
2663 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2664 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2665 if { (ac_try="$ac_link"
2666 case "(($ac_try" in
2667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668   *) ac_try_echo=$ac_try;;
2669 esac
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671   (eval "$ac_link") 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; then
2675   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2676 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2677 # work properly (i.e., refer to `conftest.exe'), while it won't with
2678 # `rm'.
2679 for ac_file in conftest.exe conftest conftest.*; do
2680   test -f "$ac_file" || continue
2681   case $ac_file in
2682     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2683     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2684           break;;
2685     * ) break;;
2686   esac
2687 done
2688 else
2689   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2690 See \`config.log' for more details." >&5
2691 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2692 See \`config.log' for more details." >&2;}
2693    { (exit 1); exit 1; }; }
2694 fi
2695
2696 rm -f conftest$ac_cv_exeext
2697 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2698 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2699
2700 rm -f conftest.$ac_ext
2701 EXEEXT=$ac_cv_exeext
2702 ac_exeext=$EXEEXT
2703 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2704 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2705 if test "${ac_cv_objext+set}" = set; then
2706   echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708   cat >conftest.$ac_ext <<_ACEOF
2709 /* confdefs.h.  */
2710 _ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h.  */
2714
2715 int
2716 main ()
2717 {
2718
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 rm -f conftest.o conftest.obj
2724 if { (ac_try="$ac_compile"
2725 case "(($ac_try" in
2726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727   *) ac_try_echo=$ac_try;;
2728 esac
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730   (eval "$ac_compile") 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; then
2734   for ac_file in conftest.o conftest.obj conftest.*; do
2735   test -f "$ac_file" || continue;
2736   case $ac_file in
2737     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2738     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2739        break;;
2740   esac
2741 done
2742 else
2743   echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2747 See \`config.log' for more details." >&5
2748 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2749 See \`config.log' for more details." >&2;}
2750    { (exit 1); exit 1; }; }
2751 fi
2752
2753 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2754 fi
2755 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2756 echo "${ECHO_T}$ac_cv_objext" >&6; }
2757 OBJEXT=$ac_cv_objext
2758 ac_objext=$OBJEXT
2759 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2760 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2761 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2762   echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764   cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h.  */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h.  */
2770
2771 int
2772 main ()
2773 {
2774 #ifndef __GNUC__
2775        choke me
2776 #endif
2777
2778   ;
2779   return 0;
2780 }
2781 _ACEOF
2782 rm -f conftest.$ac_objext
2783 if { (ac_try="$ac_compile"
2784 case "(($ac_try" in
2785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786   *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789   (eval "$ac_compile") 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } && {
2796          test -z "$ac_c_werror_flag" ||
2797          test ! -s conftest.err
2798        } && test -s conftest.$ac_objext; then
2799   ac_compiler_gnu=yes
2800 else
2801   echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2803
2804         ac_compiler_gnu=no
2805 fi
2806
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2809
2810 fi
2811 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2812 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2813 GCC=`test $ac_compiler_gnu = yes && echo yes`
2814 ac_test_CFLAGS=${CFLAGS+set}
2815 ac_save_CFLAGS=$CFLAGS
2816 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2817 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_cc_g+set}" = set; then
2819   echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821   ac_save_c_werror_flag=$ac_c_werror_flag
2822    ac_c_werror_flag=yes
2823    ac_cv_prog_cc_g=no
2824    CFLAGS="-g"
2825    cat >conftest.$ac_ext <<_ACEOF
2826 /* confdefs.h.  */
2827 _ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h.  */
2831
2832 int
2833 main ()
2834 {
2835
2836   ;
2837   return 0;
2838 }
2839 _ACEOF
2840 rm -f conftest.$ac_objext
2841 if { (ac_try="$ac_compile"
2842 case "(($ac_try" in
2843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844   *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847   (eval "$ac_compile") 2>conftest.er1
2848   ac_status=$?
2849   grep -v '^ *+' conftest.er1 >conftest.err
2850   rm -f conftest.er1
2851   cat conftest.err >&5
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); } && {
2854          test -z "$ac_c_werror_flag" ||
2855          test ! -s conftest.err
2856        } && test -s conftest.$ac_objext; then
2857   ac_cv_prog_cc_g=yes
2858 else
2859   echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2861
2862         CFLAGS=""
2863       cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h.  */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h.  */
2869
2870 int
2871 main ()
2872 {
2873
2874   ;
2875   return 0;
2876 }
2877 _ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (ac_try="$ac_compile"
2880 case "(($ac_try" in
2881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882   *) ac_try_echo=$ac_try;;
2883 esac
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885   (eval "$ac_compile") 2>conftest.er1
2886   ac_status=$?
2887   grep -v '^ *+' conftest.er1 >conftest.err
2888   rm -f conftest.er1
2889   cat conftest.err >&5
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); } && {
2892          test -z "$ac_c_werror_flag" ||
2893          test ! -s conftest.err
2894        } && test -s conftest.$ac_objext; then
2895   :
2896 else
2897   echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900         ac_c_werror_flag=$ac_save_c_werror_flag
2901          CFLAGS="-g"
2902          cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h.  */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h.  */
2908
2909 int
2910 main ()
2911 {
2912
2913   ;
2914   return 0;
2915 }
2916 _ACEOF
2917 rm -f conftest.$ac_objext
2918 if { (ac_try="$ac_compile"
2919 case "(($ac_try" in
2920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921   *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924   (eval "$ac_compile") 2>conftest.er1
2925   ac_status=$?
2926   grep -v '^ *+' conftest.er1 >conftest.err
2927   rm -f conftest.er1
2928   cat conftest.err >&5
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); } && {
2931          test -z "$ac_c_werror_flag" ||
2932          test ! -s conftest.err
2933        } && test -s conftest.$ac_objext; then
2934   ac_cv_prog_cc_g=yes
2935 else
2936   echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2938
2939
2940 fi
2941
2942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2943 fi
2944
2945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946 fi
2947
2948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2949    ac_c_werror_flag=$ac_save_c_werror_flag
2950 fi
2951 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2952 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2953 if test "$ac_test_CFLAGS" = set; then
2954   CFLAGS=$ac_save_CFLAGS
2955 elif test $ac_cv_prog_cc_g = yes; then
2956   if test "$GCC" = yes; then
2957     CFLAGS="-g -O2"
2958   else
2959     CFLAGS="-g"
2960   fi
2961 else
2962   if test "$GCC" = yes; then
2963     CFLAGS="-O2"
2964   else
2965     CFLAGS=
2966   fi
2967 fi
2968 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2969 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2970 if test "${ac_cv_prog_cc_c89+set}" = set; then
2971   echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973   ac_cv_prog_cc_c89=no
2974 ac_save_CC=$CC
2975 cat >conftest.$ac_ext <<_ACEOF
2976 /* confdefs.h.  */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h.  */
2981 #include <stdarg.h>
2982 #include <stdio.h>
2983 #include <sys/types.h>
2984 #include <sys/stat.h>
2985 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2986 struct buf { int x; };
2987 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2988 static char *e (p, i)
2989      char **p;
2990      int i;
2991 {
2992   return p[i];
2993 }
2994 static char *f (char * (*g) (char **, int), char **p, ...)
2995 {
2996   char *s;
2997   va_list v;
2998   va_start (v,p);
2999   s = g (p, va_arg (v,int));
3000   va_end (v);
3001   return s;
3002 }
3003
3004 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3005    function prototypes and stuff, but not '\xHH' hex character constants.
3006    These don't provoke an error unfortunately, instead are silently treated
3007    as 'x'.  The following induces an error, until -std is added to get
3008    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3009    array size at least.  It's necessary to write '\x00'==0 to get something
3010    that's true only with -std.  */
3011 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3012
3013 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3014    inside strings and character constants.  */
3015 #define FOO(x) 'x'
3016 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3017
3018 int test (int i, double x);
3019 struct s1 {int (*f) (int a);};
3020 struct s2 {int (*f) (double a);};
3021 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3022 int argc;
3023 char **argv;
3024 int
3025 main ()
3026 {
3027 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3028   ;
3029   return 0;
3030 }
3031 _ACEOF
3032 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3033         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3034 do
3035   CC="$ac_save_CC $ac_arg"
3036   rm -f conftest.$ac_objext
3037 if { (ac_try="$ac_compile"
3038 case "(($ac_try" in
3039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040   *) ac_try_echo=$ac_try;;
3041 esac
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043   (eval "$ac_compile") 2>conftest.er1
3044   ac_status=$?
3045   grep -v '^ *+' conftest.er1 >conftest.err
3046   rm -f conftest.er1
3047   cat conftest.err >&5
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); } && {
3050          test -z "$ac_c_werror_flag" ||
3051          test ! -s conftest.err
3052        } && test -s conftest.$ac_objext; then
3053   ac_cv_prog_cc_c89=$ac_arg
3054 else
3055   echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3057
3058
3059 fi
3060
3061 rm -f core conftest.err conftest.$ac_objext
3062   test "x$ac_cv_prog_cc_c89" != "xno" && break
3063 done
3064 rm -f conftest.$ac_ext
3065 CC=$ac_save_CC
3066
3067 fi
3068 # AC_CACHE_VAL
3069 case "x$ac_cv_prog_cc_c89" in
3070   x)
3071     { echo "$as_me:$LINENO: result: none needed" >&5
3072 echo "${ECHO_T}none needed" >&6; } ;;
3073   xno)
3074     { echo "$as_me:$LINENO: result: unsupported" >&5
3075 echo "${ECHO_T}unsupported" >&6; } ;;
3076   *)
3077     CC="$CC $ac_cv_prog_cc_c89"
3078     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3079 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3080 esac
3081
3082
3083 ac_ext=c
3084 ac_cpp='$CPP $CPPFLAGS'
3085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088
3089     ac_ext=c
3090 ac_cpp='$CPP $CPPFLAGS'
3091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3095 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3096 # On Suns, sometimes $CPP names a directory.
3097 if test -n "$CPP" && test -d "$CPP"; then
3098   CPP=
3099 fi
3100 if test -z "$CPP"; then
3101   if test "${ac_cv_prog_CPP+set}" = set; then
3102   echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104       # Double quotes because CPP needs to be expanded
3105     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3106     do
3107       ac_preproc_ok=false
3108 for ac_c_preproc_warn_flag in '' yes
3109 do
3110   # Use a header file that comes with gcc, so configuring glibc
3111   # with a fresh cross-compiler works.
3112   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113   # <limits.h> exists even on freestanding compilers.
3114   # On the NeXT, cc -E runs the code through the compiler's parser,
3115   # not just through cpp. "Syntax error" is here to catch this case.
3116   cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122 #ifdef __STDC__
3123 # include <limits.h>
3124 #else
3125 # include <assert.h>
3126 #endif
3127                      Syntax error
3128 _ACEOF
3129 if { (ac_try="$ac_cpp conftest.$ac_ext"
3130 case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3136   ac_status=$?
3137   grep -v '^ *+' conftest.er1 >conftest.err
3138   rm -f conftest.er1
3139   cat conftest.err >&5
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); } >/dev/null && {
3142          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143          test ! -s conftest.err
3144        }; then
3145   :
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150   # Broken: fails on valid input.
3151 continue
3152 fi
3153
3154 rm -f conftest.err conftest.$ac_ext
3155
3156   # OK, works on sane cases.  Now check whether nonexistent headers
3157   # can be detected and how.
3158   cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h.  */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h.  */
3164 #include <ac_nonexistent.h>
3165 _ACEOF
3166 if { (ac_try="$ac_cpp conftest.$ac_ext"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3173   ac_status=$?
3174   grep -v '^ *+' conftest.er1 >conftest.err
3175   rm -f conftest.er1
3176   cat conftest.err >&5
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } >/dev/null && {
3179          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3180          test ! -s conftest.err
3181        }; then
3182   # Broken: success on invalid input.
3183 continue
3184 else
3185   echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188   # Passes both tests.
3189 ac_preproc_ok=:
3190 break
3191 fi
3192
3193 rm -f conftest.err conftest.$ac_ext
3194
3195 done
3196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3197 rm -f conftest.err conftest.$ac_ext
3198 if $ac_preproc_ok; then
3199   break
3200 fi
3201
3202     done
3203     ac_cv_prog_CPP=$CPP
3204
3205 fi
3206   CPP=$ac_cv_prog_CPP
3207 else
3208   ac_cv_prog_CPP=$CPP
3209 fi
3210 { echo "$as_me:$LINENO: result: $CPP" >&5
3211 echo "${ECHO_T}$CPP" >&6; }
3212 ac_preproc_ok=false
3213 for ac_c_preproc_warn_flag in '' yes
3214 do
3215   # Use a header file that comes with gcc, so configuring glibc
3216   # with a fresh cross-compiler works.
3217   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3218   # <limits.h> exists even on freestanding compilers.
3219   # On the NeXT, cc -E runs the code through the compiler's parser,
3220   # not just through cpp. "Syntax error" is here to catch this case.
3221   cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h.  */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h.  */
3227 #ifdef __STDC__
3228 # include <limits.h>
3229 #else
3230 # include <assert.h>
3231 #endif
3232                      Syntax error
3233 _ACEOF
3234 if { (ac_try="$ac_cpp conftest.$ac_ext"
3235 case "(($ac_try" in
3236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237   *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3241   ac_status=$?
3242   grep -v '^ *+' conftest.er1 >conftest.err
3243   rm -f conftest.er1
3244   cat conftest.err >&5
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } >/dev/null && {
3247          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3248          test ! -s conftest.err
3249        }; then
3250   :
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255   # Broken: fails on valid input.
3256 continue
3257 fi
3258
3259 rm -f conftest.err conftest.$ac_ext
3260
3261   # OK, works on sane cases.  Now check whether nonexistent headers
3262   # can be detected and how.
3263   cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h.  */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h.  */
3269 #include <ac_nonexistent.h>
3270 _ACEOF
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 case "(($ac_try" in
3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274   *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278   ac_status=$?
3279   grep -v '^ *+' conftest.er1 >conftest.err
3280   rm -f conftest.er1
3281   cat conftest.err >&5
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); } >/dev/null && {
3284          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3285          test ! -s conftest.err
3286        }; then
3287   # Broken: success on invalid input.
3288 continue
3289 else
3290   echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293   # Passes both tests.
3294 ac_preproc_ok=:
3295 break
3296 fi
3297
3298 rm -f conftest.err conftest.$ac_ext
3299
3300 done
3301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3302 rm -f conftest.err conftest.$ac_ext
3303 if $ac_preproc_ok; then
3304   :
3305 else
3306   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3307 See \`config.log' for more details." >&5
3308 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3309 See \`config.log' for more details." >&2;}
3310    { (exit 1); exit 1; }; }
3311 fi
3312
3313 ac_ext=c
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318
3319
3320     # Find a good install program.  We prefer a C program (faster),
3321 # so one script is as good as another.  But avoid the broken or
3322 # incompatible versions:
3323 # SysV /etc/install, /usr/sbin/install
3324 # SunOS /usr/etc/install
3325 # IRIX /sbin/install
3326 # AIX /bin/install
3327 # AmigaOS /C/install, which installs bootblocks on floppy discs
3328 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3329 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3330 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3331 # OS/2's system install, which has a completely different semantic
3332 # ./install, which can be erroneously created by make from ./install.sh.
3333 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3334 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3335 if test -z "$INSTALL"; then
3336 if test "${ac_cv_path_install+set}" = set; then
3337   echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342   IFS=$as_save_IFS
3343   test -z "$as_dir" && as_dir=.
3344   # Account for people who put trailing slashes in PATH elements.
3345 case $as_dir/ in
3346   ./ | .// | /cC/* | \
3347   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3348   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3349   /usr/ucb/* ) ;;
3350   *)
3351     # OSF1 and SCO ODT 3.0 have their own names for install.
3352     # Don't use installbsd from OSF since it installs stuff as root
3353     # by default.
3354     for ac_prog in ginstall scoinst install; do
3355       for ac_exec_ext in '' $ac_executable_extensions; do
3356         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3357           if test $ac_prog = install &&
3358             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3359             # AIX install.  It has an incompatible calling convention.
3360             :
3361           elif test $ac_prog = install &&
3362             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3363             # program-specific install script used by HP pwplus--don't use.
3364             :
3365           else
3366             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3367             break 3
3368           fi
3369         fi
3370       done
3371     done
3372     ;;
3373 esac
3374 done
3375 IFS=$as_save_IFS
3376
3377
3378 fi
3379   if test "${ac_cv_path_install+set}" = set; then
3380     INSTALL=$ac_cv_path_install
3381   else
3382     # As a last resort, use the slow shell script.  Don't cache a
3383     # value for INSTALL within a source directory, because that will
3384     # break other packages using the cache if that directory is
3385     # removed, or if the value is a relative name.
3386     INSTALL=$ac_install_sh
3387   fi
3388 fi
3389 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3390 echo "${ECHO_T}$INSTALL" >&6; }
3391
3392 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3393 # It thinks the first close brace ends the variable substitution.
3394 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3395
3396 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3397
3398 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3399
3400
3401     #--------------------------------------------------------------------
3402     # Checks to see if the make program sets the $MAKE variable.
3403     #--------------------------------------------------------------------
3404
3405     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3406 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3407 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3408 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3409   echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411   cat >conftest.make <<\_ACEOF
3412 SHELL = /bin/sh
3413 all:
3414         @echo '@@@%%%=$(MAKE)=@@@%%%'
3415 _ACEOF
3416 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3417 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3418   *@@@%%%=?*=@@@%%%*)
3419     eval ac_cv_prog_make_${ac_make}_set=yes;;
3420   *)
3421     eval ac_cv_prog_make_${ac_make}_set=no;;
3422 esac
3423 rm -f conftest.make
3424 fi
3425 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3426   { echo "$as_me:$LINENO: result: yes" >&5
3427 echo "${ECHO_T}yes" >&6; }
3428   SET_MAKE=
3429 else
3430   { echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6; }
3432   SET_MAKE="MAKE=${MAKE-make}"
3433 fi
3434
3435
3436     #--------------------------------------------------------------------
3437     # Find ranlib
3438     #--------------------------------------------------------------------
3439
3440     if test -n "$ac_tool_prefix"; then
3441   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3442 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3445 if test "${ac_cv_prog_RANLIB+set}" = set; then
3446   echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448   if test -n "$RANLIB"; then
3449   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3450 else
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3453 do
3454   IFS=$as_save_IFS
3455   test -z "$as_dir" && as_dir=.
3456   for ac_exec_ext in '' $ac_executable_extensions; do
3457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460     break 2
3461   fi
3462 done
3463 done
3464 IFS=$as_save_IFS
3465
3466 fi
3467 fi
3468 RANLIB=$ac_cv_prog_RANLIB
3469 if test -n "$RANLIB"; then
3470   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3471 echo "${ECHO_T}$RANLIB" >&6; }
3472 else
3473   { echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6; }
3475 fi
3476
3477
3478 fi
3479 if test -z "$ac_cv_prog_RANLIB"; then
3480   ac_ct_RANLIB=$RANLIB
3481   # Extract the first word of "ranlib", so it can be a program name with args.
3482 set dummy ranlib; ac_word=$2
3483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3485 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3486   echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488   if test -n "$ac_ct_RANLIB"; then
3489   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3493 do
3494   IFS=$as_save_IFS
3495   test -z "$as_dir" && as_dir=.
3496   for ac_exec_ext in '' $ac_executable_extensions; do
3497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498     ac_cv_prog_ac_ct_RANLIB="ranlib"
3499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500     break 2
3501   fi
3502 done
3503 done
3504 IFS=$as_save_IFS
3505
3506 fi
3507 fi
3508 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3509 if test -n "$ac_ct_RANLIB"; then
3510   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3511 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3512 else
3513   { echo "$as_me:$LINENO: result: no" >&5
3514 echo "${ECHO_T}no" >&6; }
3515 fi
3516
3517   if test "x$ac_ct_RANLIB" = x; then
3518     RANLIB=":"
3519   else
3520     case $cross_compiling:$ac_tool_warned in
3521 yes:)
3522 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3523 whose name does not start with the host triplet.  If you think this
3524 configuration is useful to you, please write to autoconf@gnu.org." >&5
3525 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3526 whose name does not start with the host triplet.  If you think this
3527 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3528 ac_tool_warned=yes ;;
3529 esac
3530     RANLIB=$ac_ct_RANLIB
3531   fi
3532 else
3533   RANLIB="$ac_cv_prog_RANLIB"
3534 fi
3535
3536
3537     #--------------------------------------------------------------------
3538     # Determines the correct binary file extension (.o, .obj, .exe etc.)
3539     #--------------------------------------------------------------------
3540
3541
3542
3543
3544
3545
3546 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3547 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3548 if test "${ac_cv_path_GREP+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   # Extract the first word of "grep ggrep" to use in msg output
3552 if test -z "$GREP"; then
3553 set dummy grep ggrep; ac_prog_name=$2
3554 if test "${ac_cv_path_GREP+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   ac_path_GREP_found=false
3558 # Loop through the user's path and test for each of PROGNAME-LIST
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3561 do
3562   IFS=$as_save_IFS
3563   test -z "$as_dir" && as_dir=.
3564   for ac_prog in grep ggrep; do
3565   for ac_exec_ext in '' $ac_executable_extensions; do
3566     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3567     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3568     # Check for GNU ac_path_GREP and select it if it is found.
3569   # Check for GNU $ac_path_GREP
3570 case `"$ac_path_GREP" --version 2>&1` in
3571 *GNU*)
3572   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3573 *)
3574   ac_count=0
3575   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3576   while :
3577   do
3578     cat "conftest.in" "conftest.in" >"conftest.tmp"
3579     mv "conftest.tmp" "conftest.in"
3580     cp "conftest.in" "conftest.nl"
3581     echo 'GREP' >> "conftest.nl"
3582     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3583     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3584     ac_count=`expr $ac_count + 1`
3585     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3586       # Best one so far, save it but keep looking for a better one
3587       ac_cv_path_GREP="$ac_path_GREP"
3588       ac_path_GREP_max=$ac_count
3589     fi
3590     # 10*(2^10) chars as input seems more than enough
3591     test $ac_count -gt 10 && break
3592   done
3593   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3594 esac
3595
3596
3597     $ac_path_GREP_found && break 3
3598   done
3599 done
3600
3601 done
3602 IFS=$as_save_IFS
3603
3604
3605 fi
3606
3607 GREP="$ac_cv_path_GREP"
3608 if test -z "$GREP"; then
3609   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3610 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3611    { (exit 1); exit 1; }; }
3612 fi
3613
3614 else
3615   ac_cv_path_GREP=$GREP
3616 fi
3617
3618
3619 fi
3620 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3621 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3622  GREP="$ac_cv_path_GREP"
3623
3624
3625 { echo "$as_me:$LINENO: checking for egrep" >&5
3626 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3627 if test "${ac_cv_path_EGREP+set}" = set; then
3628   echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3631    then ac_cv_path_EGREP="$GREP -E"
3632    else
3633      # Extract the first word of "egrep" to use in msg output
3634 if test -z "$EGREP"; then
3635 set dummy egrep; ac_prog_name=$2
3636 if test "${ac_cv_path_EGREP+set}" = set; then
3637   echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639   ac_path_EGREP_found=false
3640 # Loop through the user's path and test for each of PROGNAME-LIST
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3643 do
3644   IFS=$as_save_IFS
3645   test -z "$as_dir" && as_dir=.
3646   for ac_prog in egrep; do
3647   for ac_exec_ext in '' $ac_executable_extensions; do
3648     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3649     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3650     # Check for GNU ac_path_EGREP and select it if it is found.
3651   # Check for GNU $ac_path_EGREP
3652 case `"$ac_path_EGREP" --version 2>&1` in
3653 *GNU*)
3654   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3655 *)
3656   ac_count=0
3657   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3658   while :
3659   do
3660     cat "conftest.in" "conftest.in" >"conftest.tmp"
3661     mv "conftest.tmp" "conftest.in"
3662     cp "conftest.in" "conftest.nl"
3663     echo 'EGREP' >> "conftest.nl"
3664     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3665     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3666     ac_count=`expr $ac_count + 1`
3667     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3668       # Best one so far, save it but keep looking for a better one
3669       ac_cv_path_EGREP="$ac_path_EGREP"
3670       ac_path_EGREP_max=$ac_count
3671     fi
3672     # 10*(2^10) chars as input seems more than enough
3673     test $ac_count -gt 10 && break
3674   done
3675   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3676 esac
3677
3678
3679     $ac_path_EGREP_found && break 3
3680   done
3681 done
3682
3683 done
3684 IFS=$as_save_IFS
3685
3686
3687 fi
3688
3689 EGREP="$ac_cv_path_EGREP"
3690 if test -z "$EGREP"; then
3691   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3692 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3693    { (exit 1); exit 1; }; }
3694 fi
3695
3696 else
3697   ac_cv_path_EGREP=$EGREP
3698 fi
3699
3700
3701    fi
3702 fi
3703 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3704 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3705  EGREP="$ac_cv_path_EGREP"
3706
3707
3708 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3709 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3710 if test "${ac_cv_header_stdc+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h.  */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h.  */
3719 #include <stdlib.h>
3720 #include <stdarg.h>
3721 #include <string.h>
3722 #include <float.h>
3723
3724 int
3725 main ()
3726 {
3727
3728   ;
3729   return 0;
3730 }
3731 _ACEOF
3732 rm -f conftest.$ac_objext
3733 if { (ac_try="$ac_compile"
3734 case "(($ac_try" in
3735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736   *) ac_try_echo=$ac_try;;
3737 esac
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739   (eval "$ac_compile") 2>conftest.er1
3740   ac_status=$?
3741   grep -v '^ *+' conftest.er1 >conftest.err
3742   rm -f conftest.er1
3743   cat conftest.err >&5
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); } && {
3746          test -z "$ac_c_werror_flag" ||
3747          test ! -s conftest.err
3748        } && test -s conftest.$ac_objext; then
3749   ac_cv_header_stdc=yes
3750 else
3751   echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3753
3754         ac_cv_header_stdc=no
3755 fi
3756
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758
3759 if test $ac_cv_header_stdc = yes; then
3760   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3761   cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h.  */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h.  */
3767 #include <string.h>
3768
3769 _ACEOF
3770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3771   $EGREP "memchr" >/dev/null 2>&1; then
3772   :
3773 else
3774   ac_cv_header_stdc=no
3775 fi
3776 rm -f conftest*
3777
3778 fi
3779
3780 if test $ac_cv_header_stdc = yes; then
3781   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3782   cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h.  */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h.  */
3788 #include <stdlib.h>
3789
3790 _ACEOF
3791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3792   $EGREP "free" >/dev/null 2>&1; then
3793   :
3794 else
3795   ac_cv_header_stdc=no
3796 fi
3797 rm -f conftest*
3798
3799 fi
3800
3801 if test $ac_cv_header_stdc = yes; then
3802   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3803   if test "$cross_compiling" = yes; then
3804   :
3805 else
3806   cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h.  */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h.  */
3812 #include <ctype.h>
3813 #include <stdlib.h>
3814 #if ((' ' & 0x0FF) == 0x020)
3815 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3816 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3817 #else
3818 # define ISLOWER(c) \
3819                    (('a' <= (c) && (c) <= 'i') \
3820                      || ('j' <= (c) && (c) <= 'r') \
3821                      || ('s' <= (c) && (c) <= 'z'))
3822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3823 #endif
3824
3825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3826 int
3827 main ()
3828 {
3829   int i;
3830   for (i = 0; i < 256; i++)
3831     if (XOR (islower (i), ISLOWER (i))
3832         || toupper (i) != TOUPPER (i))
3833       return 2;
3834   return 0;
3835 }
3836 _ACEOF
3837 rm -f conftest$ac_exeext
3838 if { (ac_try="$ac_link"
3839 case "(($ac_try" in
3840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841   *) ac_try_echo=$ac_try;;
3842 esac
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844   (eval "$ac_link") 2>&5
3845   ac_status=$?
3846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3848   { (case "(($ac_try" in
3849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850   *) ac_try_echo=$ac_try;;
3851 esac
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853   (eval "$ac_try") 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }; }; then
3857   :
3858 else
3859   echo "$as_me: program exited with status $ac_status" >&5
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863 ( exit $ac_status )
3864 ac_cv_header_stdc=no
3865 fi
3866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3867 fi
3868
3869
3870 fi
3871 fi
3872 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3873 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3874 if test $ac_cv_header_stdc = yes; then
3875
3876 cat >>confdefs.h <<\_ACEOF
3877 #define STDC_HEADERS 1
3878 _ACEOF
3879
3880 fi
3881
3882 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3893                   inttypes.h stdint.h unistd.h
3894 do
3895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3899   echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901   cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h.  */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h.  */
3907 $ac_includes_default
3908
3909 #include <$ac_header>
3910 _ACEOF
3911 rm -f conftest.$ac_objext
3912 if { (ac_try="$ac_compile"
3913 case "(($ac_try" in
3914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915   *) ac_try_echo=$ac_try;;
3916 esac
3917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3918   (eval "$ac_compile") 2>conftest.er1
3919   ac_status=$?
3920   grep -v '^ *+' conftest.er1 >conftest.err
3921   rm -f conftest.er1
3922   cat conftest.err >&5
3923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924   (exit $ac_status); } && {
3925          test -z "$ac_c_werror_flag" ||
3926          test ! -s conftest.err
3927        } && test -s conftest.$ac_objext; then
3928   eval "$as_ac_Header=yes"
3929 else
3930   echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3932
3933         eval "$as_ac_Header=no"
3934 fi
3935
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 fi
3938 ac_res=`eval echo '${'$as_ac_Header'}'`
3939                { echo "$as_me:$LINENO: result: $ac_res" >&5
3940 echo "${ECHO_T}$ac_res" >&6; }
3941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3942   cat >>confdefs.h <<_ACEOF
3943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3944 _ACEOF
3945
3946 fi
3947
3948 done
3949
3950
3951
3952     # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
3953
3954
3955     #------------------------------------------------------------------------
3956     # If we're using GCC, see if the compiler understands -pipe. If so, use it.
3957     # It makes compiling go faster.  (This is only a performance feature.)
3958     #------------------------------------------------------------------------
3959
3960     if test -z "$no_pipe" -a -n "$GCC"; then
3961         { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
3962 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; }
3963         OLDCC="$CC"
3964         CC="$CC -pipe"
3965         cat >conftest.$ac_ext <<_ACEOF
3966 /* confdefs.h.  */
3967 _ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h.  */
3971
3972 int
3973 main ()
3974 {
3975
3976   ;
3977   return 0;
3978 }
3979 _ACEOF
3980 rm -f conftest.$ac_objext
3981 if { (ac_try="$ac_compile"
3982 case "(($ac_try" in
3983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984   *) ac_try_echo=$ac_try;;
3985 esac
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987   (eval "$ac_compile") 2>conftest.er1
3988   ac_status=$?
3989   grep -v '^ *+' conftest.er1 >conftest.err
3990   rm -f conftest.er1
3991   cat conftest.err >&5
3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); } && {
3994          test -z "$ac_c_werror_flag" ||
3995          test ! -s conftest.err
3996        } && test -s conftest.$ac_objext; then
3997   { echo "$as_me:$LINENO: result: yes" >&5
3998 echo "${ECHO_T}yes" >&6; }
3999 else
4000   echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003         CC="$OLDCC"
4004             { echo "$as_me:$LINENO: result: no" >&5
4005 echo "${ECHO_T}no" >&6; }
4006 fi
4007
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009     fi
4010
4011     #--------------------------------------------------------------------
4012     # Common compiler flag setup
4013     #--------------------------------------------------------------------
4014
4015     { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4016 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4017 if test "${ac_cv_c_bigendian+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   # See if sys/param.h defines the BYTE_ORDER macro.
4021 cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h.  */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h.  */
4027 #include <sys/types.h>
4028 #include <sys/param.h>
4029
4030 int
4031 main ()
4032 {
4033 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4034         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4035  bogus endian macros
4036 #endif
4037
4038   ;
4039   return 0;
4040 }
4041 _ACEOF
4042 rm -f conftest.$ac_objext
4043 if { (ac_try="$ac_compile"
4044 case "(($ac_try" in
4045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046   *) ac_try_echo=$ac_try;;
4047 esac
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049   (eval "$ac_compile") 2>conftest.er1
4050   ac_status=$?
4051   grep -v '^ *+' conftest.er1 >conftest.err
4052   rm -f conftest.er1
4053   cat conftest.err >&5
4054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055   (exit $ac_status); } && {
4056          test -z "$ac_c_werror_flag" ||
4057          test ! -s conftest.err
4058        } && test -s conftest.$ac_objext; then
4059   # It does; now see whether it defined to BIG_ENDIAN or not.
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h.  */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h.  */
4066 #include <sys/types.h>
4067 #include <sys/param.h>
4068
4069 int
4070 main ()
4071 {
4072 #if BYTE_ORDER != BIG_ENDIAN
4073  not big endian
4074 #endif
4075
4076   ;
4077   return 0;
4078 }
4079 _ACEOF
4080 rm -f conftest.$ac_objext
4081 if { (ac_try="$ac_compile"
4082 case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087   (eval "$ac_compile") 2>conftest.er1
4088   ac_status=$?
4089   grep -v '^ *+' conftest.er1 >conftest.err
4090   rm -f conftest.er1
4091   cat conftest.err >&5
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } && {
4094          test -z "$ac_c_werror_flag" ||
4095          test ! -s conftest.err
4096        } && test -s conftest.$ac_objext; then
4097   ac_cv_c_bigendian=yes
4098 else
4099   echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4101
4102         ac_cv_c_bigendian=no
4103 fi
4104
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 else
4107   echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4109
4110         # It does not; compile a test program.
4111 if test "$cross_compiling" = yes; then
4112   # try to guess the endianness by grepping values into an object file
4113   ac_cv_c_bigendian=unknown
4114   cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h.  */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h.  */
4120 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4121 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4122 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4123 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4124 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4125 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4126 int
4127 main ()
4128 {
4129  _ascii (); _ebcdic ();
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4136 case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141   (eval "$ac_compile") 2>conftest.er1
4142   ac_status=$?
4143   grep -v '^ *+' conftest.er1 >conftest.err
4144   rm -f conftest.er1
4145   cat conftest.err >&5
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); } && {
4148          test -z "$ac_c_werror_flag" ||
4149          test ! -s conftest.err
4150        } && test -s conftest.$ac_objext; then
4151   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4152   ac_cv_c_bigendian=yes
4153 fi
4154 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4155   if test "$ac_cv_c_bigendian" = unknown; then
4156     ac_cv_c_bigendian=no
4157   else
4158     # finding both strings is unlikely to happen, but who knows?
4159     ac_cv_c_bigendian=unknown
4160   fi
4161 fi
4162 else
4163   echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4165
4166
4167 fi
4168
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 else
4171   cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h.  */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h.  */
4177 $ac_includes_default
4178 int
4179 main ()
4180 {
4181
4182   /* Are we little or big endian?  From Harbison&Steele.  */
4183   union
4184   {
4185     long int l;
4186     char c[sizeof (long int)];
4187   } u;
4188   u.l = 1;
4189   return u.c[sizeof (long int) - 1] == 1;
4190
4191   ;
4192   return 0;
4193 }
4194 _ACEOF
4195 rm -f conftest$ac_exeext
4196 if { (ac_try="$ac_link"
4197 case "(($ac_try" in
4198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199   *) ac_try_echo=$ac_try;;
4200 esac
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202   (eval "$ac_link") 2>&5
4203   ac_status=$?
4204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4206   { (case "(($ac_try" in
4207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208   *) ac_try_echo=$ac_try;;
4209 esac
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211   (eval "$ac_try") 2>&5
4212   ac_status=$?
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); }; }; then
4215   ac_cv_c_bigendian=no
4216 else
4217   echo "$as_me: program exited with status $ac_status" >&5
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4220
4221 ( exit $ac_status )
4222 ac_cv_c_bigendian=yes
4223 fi
4224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4225 fi
4226
4227
4228 fi
4229
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 fi
4232 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4233 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4234 case $ac_cv_c_bigendian in
4235   yes)
4236
4237 cat >>confdefs.h <<\_ACEOF
4238 #define WORDS_BIGENDIAN 1
4239 _ACEOF
4240  ;;
4241   no)
4242      ;;
4243   *)
4244     { { echo "$as_me:$LINENO: error: unknown endianness
4245 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4246 echo "$as_me: error: unknown endianness
4247 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4248    { (exit 1); exit 1; }; } ;;
4249 esac
4250
4251     if test "${TEA_PLATFORM}" = "unix" ; then
4252
4253     #--------------------------------------------------------------------
4254     # On a few very rare systems, all of the libm.a stuff is
4255     # already in libc.a.  Set compiler flags accordingly.
4256     # Also, Linux requires the "ieee" library for math to work
4257     # right (and it must appear before "-lm").
4258     #--------------------------------------------------------------------
4259
4260     { echo "$as_me:$LINENO: checking for sin" >&5
4261 echo $ECHO_N "checking for sin... $ECHO_C" >&6; }
4262 if test "${ac_cv_func_sin+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   cat >conftest.$ac_ext <<_ACEOF
4266 /* confdefs.h.  */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h.  */
4271 /* Define sin to an innocuous variant, in case <limits.h> declares sin.
4272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4273 #define sin innocuous_sin
4274
4275 /* System header to define __stub macros and hopefully few prototypes,
4276     which can conflict with char sin (); below.
4277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4278     <limits.h> exists even on freestanding compilers.  */
4279
4280 #ifdef __STDC__
4281 # include <limits.h>
4282 #else
4283 # include <assert.h>
4284 #endif
4285
4286 #undef sin
4287
4288 /* Override any GCC internal prototype to avoid an error.
4289    Use char because int might match the return type of a GCC
4290    builtin and then its argument prototype would still apply.  */
4291 #ifdef __cplusplus
4292 extern "C"
4293 #endif
4294 char sin ();
4295 /* The GNU C library defines this for functions which it implements
4296     to always fail with ENOSYS.  Some functions are actually named
4297     something starting with __ and the normal name is an alias.  */
4298 #if defined __stub_sin || defined __stub___sin
4299 choke me
4300 #endif
4301
4302 int
4303 main ()
4304 {
4305 return sin ();
4306   ;
4307   return 0;
4308 }
4309 _ACEOF
4310 rm -f conftest.$ac_objext conftest$ac_exeext
4311 if { (ac_try="$ac_link"
4312 case "(($ac_try" in
4313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314   *) ac_try_echo=$ac_try;;
4315 esac
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317   (eval "$ac_link") 2>conftest.er1
4318   ac_status=$?
4319   grep -v '^ *+' conftest.er1 >conftest.err
4320   rm -f conftest.er1
4321   cat conftest.err >&5
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); } && {
4324          test -z "$ac_c_werror_flag" ||
4325          test ! -s conftest.err
4326        } && test -s conftest$ac_exeext &&
4327        $as_test_x conftest$ac_exeext; then
4328   ac_cv_func_sin=yes
4329 else
4330   echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4332
4333         ac_cv_func_sin=no
4334 fi
4335
4336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4337       conftest$ac_exeext conftest.$ac_ext
4338 fi
4339 { echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
4340 echo "${ECHO_T}$ac_cv_func_sin" >&6; }
4341 if test $ac_cv_func_sin = yes; then
4342   MATH_LIBS=""
4343 else
4344   MATH_LIBS="-lm"
4345 fi
4346
4347     { echo "$as_me:$LINENO: checking for main in -lieee" >&5
4348 echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; }
4349 if test "${ac_cv_lib_ieee_main+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352   ac_check_lib_save_LIBS=$LIBS
4353 LIBS="-lieee  $LIBS"
4354 cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h.  */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h.  */
4360
4361
4362 int
4363 main ()
4364 {
4365 return main ();
4366   ;
4367   return 0;
4368 }
4369 _ACEOF
4370 rm -f conftest.$ac_objext conftest$ac_exeext
4371 if { (ac_try="$ac_link"
4372 case "(($ac_try" in
4373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374   *) ac_try_echo=$ac_try;;
4375 esac
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377   (eval "$ac_link") 2>conftest.er1
4378   ac_status=$?
4379   grep -v '^ *+' conftest.er1 >conftest.err
4380   rm -f conftest.er1
4381   cat conftest.err >&5
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); } && {
4384          test -z "$ac_c_werror_flag" ||
4385          test ! -s conftest.err
4386        } && test -s conftest$ac_exeext &&
4387        $as_test_x conftest$ac_exeext; then
4388   ac_cv_lib_ieee_main=yes
4389 else
4390   echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393         ac_cv_lib_ieee_main=no
4394 fi
4395
4396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4397       conftest$ac_exeext conftest.$ac_ext
4398 LIBS=$ac_check_lib_save_LIBS
4399 fi
4400 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5
4401 echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; }
4402 if test $ac_cv_lib_ieee_main = yes; then
4403   MATH_LIBS="-lieee $MATH_LIBS"
4404 fi
4405
4406
4407     #--------------------------------------------------------------------
4408     # Interactive UNIX requires -linet instead of -lsocket, plus it
4409     # needs net/errno.h to define the socket-related error codes.
4410     #--------------------------------------------------------------------
4411
4412     { echo "$as_me:$LINENO: checking for main in -linet" >&5
4413 echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; }
4414 if test "${ac_cv_lib_inet_main+set}" = set; then
4415   echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417   ac_check_lib_save_LIBS=$LIBS
4418 LIBS="-linet  $LIBS"
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h.  */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h.  */
4425
4426
4427 int
4428 main ()
4429 {
4430 return main ();
4431   ;
4432   return 0;
4433 }
4434 _ACEOF
4435 rm -f conftest.$ac_objext conftest$ac_exeext
4436 if { (ac_try="$ac_link"
4437 case "(($ac_try" in
4438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439   *) ac_try_echo=$ac_try;;
4440 esac
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442   (eval "$ac_link") 2>conftest.er1
4443   ac_status=$?
4444   grep -v '^ *+' conftest.er1 >conftest.err
4445   rm -f conftest.er1
4446   cat conftest.err >&5
4447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448   (exit $ac_status); } && {
4449          test -z "$ac_c_werror_flag" ||
4450          test ! -s conftest.err
4451        } && test -s conftest$ac_exeext &&
4452        $as_test_x conftest$ac_exeext; then
4453   ac_cv_lib_inet_main=yes
4454 else
4455   echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4457
4458         ac_cv_lib_inet_main=no
4459 fi
4460
4461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4462       conftest$ac_exeext conftest.$ac_ext
4463 LIBS=$ac_check_lib_save_LIBS
4464 fi
4465 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
4466 echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; }
4467 if test $ac_cv_lib_inet_main = yes; then
4468   LIBS="$LIBS -linet"
4469 fi
4470
4471     if test "${ac_cv_header_net_errno_h+set}" = set; then
4472   { echo "$as_me:$LINENO: checking for net/errno.h" >&5
4473 echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; }
4474 if test "${ac_cv_header_net_errno_h+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 fi
4477 { echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
4478 echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; }
4479 else
4480   # Is the header compilable?
4481 { echo "$as_me:$LINENO: checking net/errno.h usability" >&5
4482 echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; }
4483 cat >conftest.$ac_ext <<_ACEOF
4484 /* confdefs.h.  */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h.  */
4489 $ac_includes_default
4490 #include <net/errno.h>
4491 _ACEOF
4492 rm -f conftest.$ac_objext
4493 if { (ac_try="$ac_compile"
4494 case "(($ac_try" in
4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496   *) ac_try_echo=$ac_try;;
4497 esac
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499   (eval "$ac_compile") 2>conftest.er1
4500   ac_status=$?
4501   grep -v '^ *+' conftest.er1 >conftest.err
4502   rm -f conftest.er1
4503   cat conftest.err >&5
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); } && {
4506          test -z "$ac_c_werror_flag" ||
4507          test ! -s conftest.err
4508        } && test -s conftest.$ac_objext; then
4509   ac_header_compiler=yes
4510 else
4511   echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514         ac_header_compiler=no
4515 fi
4516
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4519 echo "${ECHO_T}$ac_header_compiler" >&6; }
4520
4521 # Is the header present?
4522 { echo "$as_me:$LINENO: checking net/errno.h presence" >&5
4523 echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; }
4524 cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530 #include <net/errno.h>
4531 _ACEOF
4532 if { (ac_try="$ac_cpp conftest.$ac_ext"
4533 case "(($ac_try" in
4534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535   *) ac_try_echo=$ac_try;;
4536 esac
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4539   ac_status=$?
4540   grep -v '^ *+' conftest.er1 >conftest.err
4541   rm -f conftest.er1
4542   cat conftest.err >&5
4543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544   (exit $ac_status); } >/dev/null && {
4545          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4546          test ! -s conftest.err
4547        }; then
4548   ac_header_preproc=yes
4549 else
4550   echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4552
4553   ac_header_preproc=no
4554 fi
4555
4556 rm -f conftest.err conftest.$ac_ext
4557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4558 echo "${ECHO_T}$ac_header_preproc" >&6; }
4559
4560 # So?  What about this header?
4561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4562   yes:no: )
4563     { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4564 echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4565     { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5
4566 echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;}
4567     ac_header_preproc=yes
4568     ;;
4569   no:yes:* )
4570     { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5
4571 echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;}
4572     { echo "$as_me:$LINENO: WARNING: net/errno.h:     check for missing prerequisite headers?" >&5
4573 echo "$as_me: WARNING: net/errno.h:     check for missing prerequisite headers?" >&2;}
4574     { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5
4575 echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;}
4576     { echo "$as_me:$LINENO: WARNING: net/errno.h:     section \"Present But Cannot Be Compiled\"" >&5
4577 echo "$as_me: WARNING: net/errno.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4578     { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5
4579 echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;}
4580     { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5
4581 echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;}
4582
4583     ;;
4584 esac
4585 { echo "$as_me:$LINENO: checking for net/errno.h" >&5
4586 echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; }
4587 if test "${ac_cv_header_net_errno_h+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   ac_cv_header_net_errno_h=$ac_header_preproc
4591 fi
4592 { echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
4593 echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; }
4594
4595 fi
4596 if test $ac_cv_header_net_errno_h = yes; then
4597   cat >>confdefs.h <<\_ACEOF
4598 #define HAVE_NET_ERRNO_H 1
4599 _ACEOF
4600
4601 fi
4602
4603
4604
4605     #--------------------------------------------------------------------
4606     #   Check for the existence of the -lsocket and -lnsl libraries.
4607     #   The order here is important, so that they end up in the right
4608     #   order in the command line generated by make.  Here are some
4609     #   special considerations:
4610     #   1. Use "connect" and "accept" to check for -lsocket, and
4611     #      "gethostbyname" to check for -lnsl.
4612     #   2. Use each function name only once:  can't redo a check because
4613     #      autoconf caches the results of the last check and won't redo it.
4614     #   3. Use -lnsl and -lsocket only if they supply procedures that
4615     #      aren't already present in the normal libraries.  This is because
4616     #      IRIX 5.2 has libraries, but they aren't needed and they're
4617     #      bogus:  they goof up name resolution if used.
4618     #   4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4619     #      To get around this problem, check for both libraries together
4620     #      if -lsocket doesn't work by itself.
4621     #--------------------------------------------------------------------
4622
4623     tcl_checkBoth=0
4624     { echo "$as_me:$LINENO: checking for connect" >&5
4625 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4626 if test "${ac_cv_func_connect+set}" = set; then
4627   echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629   cat >conftest.$ac_ext <<_ACEOF
4630 /* confdefs.h.  */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h.  */
4635 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4637 #define connect innocuous_connect
4638
4639 /* System header to define __stub macros and hopefully few prototypes,
4640     which can conflict with char connect (); below.
4641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4642     <limits.h> exists even on freestanding compilers.  */
4643
4644 #ifdef __STDC__
4645 # include <limits.h>
4646 #else
4647 # include <assert.h>
4648 #endif
4649
4650 #undef connect
4651
4652 /* Override any GCC internal prototype to avoid an error.
4653    Use char because int might match the return type of a GCC
4654    builtin and then its argument prototype would still apply.  */
4655 #ifdef __cplusplus
4656 extern "C"
4657 #endif
4658 char connect ();
4659 /* The GNU C library defines this for functions which it implements
4660     to always fail with ENOSYS.  Some functions are actually named
4661     something starting with __ and the normal name is an alias.  */
4662 #if defined __stub_connect || defined __stub___connect
4663 choke me
4664 #endif
4665
4666 int
4667 main ()
4668 {
4669 return connect ();
4670   ;
4671   return 0;
4672 }
4673 _ACEOF
4674 rm -f conftest.$ac_objext conftest$ac_exeext
4675 if { (ac_try="$ac_link"
4676 case "(($ac_try" in
4677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678   *) ac_try_echo=$ac_try;;
4679 esac
4680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4681   (eval "$ac_link") 2>conftest.er1
4682   ac_status=$?
4683   grep -v '^ *+' conftest.er1 >conftest.err
4684   rm -f conftest.er1
4685   cat conftest.err >&5
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); } && {
4688          test -z "$ac_c_werror_flag" ||
4689          test ! -s conftest.err
4690        } && test -s conftest$ac_exeext &&
4691        $as_test_x conftest$ac_exeext; then
4692   ac_cv_func_connect=yes
4693 else
4694   echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4696
4697         ac_cv_func_connect=no
4698 fi
4699
4700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4701       conftest$ac_exeext conftest.$ac_ext
4702 fi
4703 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4704 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4705 if test $ac_cv_func_connect = yes; then
4706   tcl_checkSocket=0
4707 else
4708   tcl_checkSocket=1
4709 fi
4710
4711     if test "$tcl_checkSocket" = 1; then
4712         { echo "$as_me:$LINENO: checking for setsockopt" >&5
4713 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
4714 if test "${ac_cv_func_setsockopt+set}" = set; then
4715   echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717   cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h.  */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h.  */
4723 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
4724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4725 #define setsockopt innocuous_setsockopt
4726
4727 /* System header to define __stub macros and hopefully few prototypes,
4728     which can conflict with char setsockopt (); below.
4729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4730     <limits.h> exists even on freestanding compilers.  */
4731
4732 #ifdef __STDC__
4733 # include <limits.h>
4734 #else
4735 # include <assert.h>
4736 #endif
4737
4738 #undef setsockopt
4739
4740 /* Override any GCC internal prototype to avoid an error.
4741    Use char because int might match the return type of a GCC
4742    builtin and then its argument prototype would still apply.  */
4743 #ifdef __cplusplus
4744 extern "C"
4745 #endif
4746 char setsockopt ();
4747 /* The GNU C library defines this for functions which it implements
4748     to always fail with ENOSYS.  Some functions are actually named
4749     something starting with __ and the normal name is an alias.  */
4750 #if defined __stub_setsockopt || defined __stub___setsockopt
4751 choke me
4752 #endif
4753
4754 int
4755 main ()
4756 {
4757 return setsockopt ();
4758   ;
4759   return 0;
4760 }
4761 _ACEOF
4762 rm -f conftest.$ac_objext conftest$ac_exeext
4763 if { (ac_try="$ac_link"
4764 case "(($ac_try" in
4765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766   *) ac_try_echo=$ac_try;;
4767 esac
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769   (eval "$ac_link") 2>conftest.er1
4770   ac_status=$?
4771   grep -v '^ *+' conftest.er1 >conftest.err
4772   rm -f conftest.er1
4773   cat conftest.err >&5
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); } && {
4776          test -z "$ac_c_werror_flag" ||
4777          test ! -s conftest.err
4778        } && test -s conftest$ac_exeext &&
4779        $as_test_x conftest$ac_exeext; then
4780   ac_cv_func_setsockopt=yes
4781 else
4782   echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785         ac_cv_func_setsockopt=no
4786 fi
4787
4788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4789       conftest$ac_exeext conftest.$ac_ext
4790 fi
4791 { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
4792 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
4793 if test $ac_cv_func_setsockopt = yes; then
4794   :
4795 else
4796   { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
4797 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
4798 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
4799   echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801   ac_check_lib_save_LIBS=$LIBS
4802 LIBS="-lsocket  $LIBS"
4803 cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h.  */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h.  */
4809
4810 /* Override any GCC internal prototype to avoid an error.
4811    Use char because int might match the return type of a GCC
4812    builtin and then its argument prototype would still apply.  */
4813 #ifdef __cplusplus
4814 extern "C"
4815 #endif
4816 char setsockopt ();
4817 int
4818 main ()
4819 {
4820 return setsockopt ();
4821   ;
4822   return 0;
4823 }
4824 _ACEOF
4825 rm -f conftest.$ac_objext conftest$ac_exeext
4826 if { (ac_try="$ac_link"
4827 case "(($ac_try" in
4828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829   *) ac_try_echo=$ac_try;;
4830 esac
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832   (eval "$ac_link") 2>conftest.er1
4833   ac_status=$?
4834   grep -v '^ *+' conftest.er1 >conftest.err
4835   rm -f conftest.er1
4836   cat conftest.err >&5
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); } && {
4839          test -z "$ac_c_werror_flag" ||
4840          test ! -s conftest.err
4841        } && test -s conftest$ac_exeext &&
4842        $as_test_x conftest$ac_exeext; then
4843   ac_cv_lib_socket_setsockopt=yes
4844 else
4845   echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4847
4848         ac_cv_lib_socket_setsockopt=no
4849 fi
4850
4851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4852       conftest$ac_exeext conftest.$ac_ext
4853 LIBS=$ac_check_lib_save_LIBS
4854 fi
4855 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
4856 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
4857 if test $ac_cv_lib_socket_setsockopt = yes; then
4858   LIBS="$LIBS -lsocket"
4859 else
4860   tcl_checkBoth=1
4861 fi
4862
4863 fi
4864
4865     fi
4866     if test "$tcl_checkBoth" = 1; then
4867         tk_oldLibs=$LIBS
4868         LIBS="$LIBS -lsocket -lnsl"
4869         { echo "$as_me:$LINENO: checking for accept" >&5
4870 echo $ECHO_N "checking for accept... $ECHO_C" >&6; }
4871 if test "${ac_cv_func_accept+set}" = set; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874   cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h.  */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h.  */
4880 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
4881    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4882 #define accept innocuous_accept
4883
4884 /* System header to define __stub macros and hopefully few prototypes,
4885     which can conflict with char accept (); below.
4886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4887     <limits.h> exists even on freestanding compilers.  */
4888
4889 #ifdef __STDC__
4890 # include <limits.h>
4891 #else
4892 # include <assert.h>
4893 #endif
4894
4895 #undef accept
4896
4897 /* Override any GCC internal prototype to avoid an error.
4898    Use char because int might match the return type of a GCC
4899    builtin and then its argument prototype would still apply.  */
4900 #ifdef __cplusplus
4901 extern "C"
4902 #endif
4903 char accept ();
4904 /* The GNU C library defines this for functions which it implements
4905     to always fail with ENOSYS.  Some functions are actually named
4906     something starting with __ and the normal name is an alias.  */
4907 #if defined __stub_accept || defined __stub___accept
4908 choke me
4909 #endif
4910
4911 int
4912 main ()
4913 {
4914 return accept ();
4915   ;
4916   return 0;
4917 }
4918 _ACEOF
4919 rm -f conftest.$ac_objext conftest$ac_exeext
4920 if { (ac_try="$ac_link"
4921 case "(($ac_try" in
4922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923   *) ac_try_echo=$ac_try;;
4924 esac
4925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4926   (eval "$ac_link") 2>conftest.er1
4927   ac_status=$?
4928   grep -v '^ *+' conftest.er1 >conftest.err
4929   rm -f conftest.er1
4930   cat conftest.err >&5
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); } && {
4933          test -z "$ac_c_werror_flag" ||
4934          test ! -s conftest.err
4935        } && test -s conftest$ac_exeext &&
4936        $as_test_x conftest$ac_exeext; then
4937   ac_cv_func_accept=yes
4938 else
4939   echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942         ac_cv_func_accept=no
4943 fi
4944
4945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4946       conftest$ac_exeext conftest.$ac_ext
4947 fi
4948 { echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
4949 echo "${ECHO_T}$ac_cv_func_accept" >&6; }
4950 if test $ac_cv_func_accept = yes; then
4951   tcl_checkNsl=0
4952 else
4953   LIBS=$tk_oldLibs
4954 fi
4955
4956     fi
4957     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4958 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4959 if test "${ac_cv_func_gethostbyname+set}" = set; then
4960   echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962   cat >conftest.$ac_ext <<_ACEOF
4963 /* confdefs.h.  */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h.  */
4968 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4970 #define gethostbyname innocuous_gethostbyname
4971
4972 /* System header to define __stub macros and hopefully few prototypes,
4973     which can conflict with char gethostbyname (); below.
4974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4975     <limits.h> exists even on freestanding compilers.  */
4976
4977 #ifdef __STDC__
4978 # include <limits.h>
4979 #else
4980 # include <assert.h>
4981 #endif
4982
4983 #undef gethostbyname
4984
4985 /* Override any GCC internal prototype to avoid an error.
4986    Use char because int might match the return type of a GCC
4987    builtin and then its argument prototype would still apply.  */
4988 #ifdef __cplusplus
4989 extern "C"
4990 #endif
4991 char gethostbyname ();
4992 /* The GNU C library defines this for functions which it implements
4993     to always fail with ENOSYS.  Some functions are actually named
4994     something starting with __ and the normal name is an alias.  */
4995 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4996 choke me
4997 #endif
4998
4999 int
5000 main ()
5001 {
5002 return gethostbyname ();
5003   ;
5004   return 0;
5005 }
5006 _ACEOF
5007 rm -f conftest.$ac_objext conftest$ac_exeext
5008 if { (ac_try="$ac_link"
5009 case "(($ac_try" in
5010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011   *) ac_try_echo=$ac_try;;
5012 esac
5013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014   (eval "$ac_link") 2>conftest.er1
5015   ac_status=$?
5016   grep -v '^ *+' conftest.er1 >conftest.err
5017   rm -f conftest.er1
5018   cat conftest.err >&5
5019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020   (exit $ac_status); } && {
5021          test -z "$ac_c_werror_flag" ||
5022          test ! -s conftest.err
5023        } && test -s conftest$ac_exeext &&
5024        $as_test_x conftest$ac_exeext; then
5025   ac_cv_func_gethostbyname=yes
5026 else
5027   echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5029
5030         ac_cv_func_gethostbyname=no
5031 fi
5032
5033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5034       conftest$ac_exeext conftest.$ac_ext
5035 fi
5036 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5037 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5038 if test $ac_cv_func_gethostbyname = yes; then
5039   :
5040 else
5041   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5042 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5043 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5044   echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046   ac_check_lib_save_LIBS=$LIBS
5047 LIBS="-lnsl  $LIBS"
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h.  */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h.  */
5054
5055 /* Override any GCC internal prototype to avoid an error.
5056    Use char because int might match the return type of a GCC
5057    builtin and then its argument prototype would still apply.  */
5058 #ifdef __cplusplus
5059 extern "C"
5060 #endif
5061 char gethostbyname ();
5062 int
5063 main ()
5064 {
5065 return gethostbyname ();
5066   ;
5067   return 0;
5068 }
5069 _ACEOF
5070 rm -f conftest.$ac_objext conftest$ac_exeext
5071 if { (ac_try="$ac_link"
5072 case "(($ac_try" in
5073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074   *) ac_try_echo=$ac_try;;
5075 esac
5076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5077   (eval "$ac_link") 2>conftest.er1
5078   ac_status=$?
5079   grep -v '^ *+' conftest.er1 >conftest.err
5080   rm -f conftest.er1
5081   cat conftest.err >&5
5082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083   (exit $ac_status); } && {
5084          test -z "$ac_c_werror_flag" ||
5085          test ! -s conftest.err
5086        } && test -s conftest$ac_exeext &&
5087        $as_test_x conftest$ac_exeext; then
5088   ac_cv_lib_nsl_gethostbyname=yes
5089 else
5090   echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093         ac_cv_lib_nsl_gethostbyname=no
5094 fi
5095
5096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5097       conftest$ac_exeext conftest.$ac_ext
5098 LIBS=$ac_check_lib_save_LIBS
5099 fi
5100 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5101 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5102 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5103   LIBS="$LIBS -lnsl"
5104 fi
5105
5106 fi
5107
5108
5109     # Don't perform the eval of the libraries here because DL_LIBS
5110     # won't be set until we call TEA_CONFIG_CFLAGS
5111
5112     TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
5113
5114
5115
5116
5117     { echo "$as_me:$LINENO: checking dirent.h" >&5
5118 echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; }
5119     cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h.  */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h.  */
5125 #include <sys/types.h>
5126 #include <dirent.h>
5127 int
5128 main ()
5129 {
5130
5131 #ifndef _POSIX_SOURCE
5132 #   ifdef __Lynx__
5133         /*
5134          * Generate compilation error to make the test fail:  Lynx headers
5135          * are only valid if really in the POSIX environment.
5136          */
5137
5138         missing_procedure();
5139 #   endif
5140 #endif
5141 DIR *d;
5142 struct dirent *entryPtr;
5143 char *p;
5144 d = opendir("foobar");
5145 entryPtr = readdir(d);
5146 p = entryPtr->d_name;
5147 closedir(d);
5148
5149   ;
5150   return 0;
5151 }
5152 _ACEOF
5153 rm -f conftest.$ac_objext conftest$ac_exeext
5154 if { (ac_try="$ac_link"
5155 case "(($ac_try" in
5156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157   *) ac_try_echo=$ac_try;;
5158 esac
5159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5160   (eval "$ac_link") 2>conftest.er1
5161   ac_status=$?
5162   grep -v '^ *+' conftest.er1 >conftest.err
5163   rm -f conftest.er1
5164   cat conftest.err >&5
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); } && {
5167          test -z "$ac_c_werror_flag" ||
5168          test ! -s conftest.err
5169        } && test -s conftest$ac_exeext &&
5170        $as_test_x conftest$ac_exeext; then
5171   tcl_ok=yes
5172 else
5173   echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5175
5176         tcl_ok=no
5177 fi
5178
5179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5180       conftest$ac_exeext conftest.$ac_ext
5181
5182     if test $tcl_ok = no; then
5183         cat >>confdefs.h <<\_ACEOF
5184 #define NO_DIRENT_H 1
5185 _ACEOF
5186
5187     fi
5188
5189     { echo "$as_me:$LINENO: result: $tcl_ok" >&5
5190 echo "${ECHO_T}$tcl_ok" >&6; }
5191     if test "${ac_cv_header_errno_h+set}" = set; then
5192   { echo "$as_me:$LINENO: checking for errno.h" >&5
5193 echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5194 if test "${ac_cv_header_errno_h+set}" = set; then
5195   echo $ECHO_N "(cached) $ECHO_C" >&6
5196 fi
5197 { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5198 echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5199 else
5200   # Is the header compilable?
5201 { echo "$as_me:$LINENO: checking errno.h usability" >&5
5202 echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; }
5203 cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h.  */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h.  */
5209 $ac_includes_default
5210 #include <errno.h>
5211 _ACEOF
5212 rm -f conftest.$ac_objext
5213 if { (ac_try="$ac_compile"
5214 case "(($ac_try" in
5215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216   *) ac_try_echo=$ac_try;;
5217 esac
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219   (eval "$ac_compile") 2>conftest.er1
5220   ac_status=$?
5221   grep -v '^ *+' conftest.er1 >conftest.err
5222   rm -f conftest.er1
5223   cat conftest.err >&5
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); } && {
5226          test -z "$ac_c_werror_flag" ||
5227          test ! -s conftest.err
5228        } && test -s conftest.$ac_objext; then
5229   ac_header_compiler=yes
5230 else
5231   echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5233
5234         ac_header_compiler=no
5235 fi
5236
5237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5239 echo "${ECHO_T}$ac_header_compiler" >&6; }
5240
5241 # Is the header present?
5242 { echo "$as_me:$LINENO: checking errno.h presence" >&5
5243 echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; }
5244 cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h.  */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h.  */
5250 #include <errno.h>
5251 _ACEOF
5252 if { (ac_try="$ac_cpp conftest.$ac_ext"
5253 case "(($ac_try" in
5254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255   *) ac_try_echo=$ac_try;;
5256 esac
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5259   ac_status=$?
5260   grep -v '^ *+' conftest.er1 >conftest.err
5261   rm -f conftest.er1
5262   cat conftest.err >&5
5263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264   (exit $ac_status); } >/dev/null && {
5265          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5266          test ! -s conftest.err
5267        }; then
5268   ac_header_preproc=yes
5269 else
5270   echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5272
5273   ac_header_preproc=no
5274 fi
5275
5276 rm -f conftest.err conftest.$ac_ext
5277 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5278 echo "${ECHO_T}$ac_header_preproc" >&6; }
5279
5280 # So?  What about this header?
5281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5282   yes:no: )
5283     { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
5284 echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5285     { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
5286 echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
5287     ac_header_preproc=yes
5288     ;;
5289   no:yes:* )
5290     { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
5291 echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
5292     { echo "$as_me:$LINENO: WARNING: errno.h:     check for missing prerequisite headers?" >&5
5293 echo "$as_me: WARNING: errno.h:     check for missing prerequisite headers?" >&2;}
5294     { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
5295 echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
5296     { echo "$as_me:$LINENO: WARNING: errno.h:     section \"Present But Cannot Be Compiled\"" >&5
5297 echo "$as_me: WARNING: errno.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5298     { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
5299 echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
5300     { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
5301 echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
5302
5303     ;;
5304 esac
5305 { echo "$as_me:$LINENO: checking for errno.h" >&5
5306 echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5307 if test "${ac_cv_header_errno_h+set}" = set; then
5308   echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310   ac_cv_header_errno_h=$ac_header_preproc
5311 fi
5312 { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5313 echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5314
5315 fi
5316 if test $ac_cv_header_errno_h = yes; then
5317   :
5318 else
5319   cat >>confdefs.h <<\_ACEOF
5320 #define NO_ERRNO_H 1
5321 _ACEOF
5322
5323 fi
5324
5325
5326     if test "${ac_cv_header_float_h+set}" = set; then
5327   { echo "$as_me:$LINENO: checking for float.h" >&5
5328 echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
5329 if test "${ac_cv_header_float_h+set}" = set; then
5330   echo $ECHO_N "(cached) $ECHO_C" >&6
5331 fi
5332 { echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
5333 echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
5334 else
5335   # Is the header compilable?
5336 { echo "$as_me:$LINENO: checking float.h usability" >&5
5337 echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; }
5338 cat >conftest.$ac_ext <<_ACEOF
5339 /* confdefs.h.  */
5340 _ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h.  */
5344 $ac_includes_default
5345 #include <float.h>
5346 _ACEOF
5347 rm -f conftest.$ac_objext
5348 if { (ac_try="$ac_compile"
5349 case "(($ac_try" in
5350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351   *) ac_try_echo=$ac_try;;
5352 esac
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354   (eval "$ac_compile") 2>conftest.er1
5355   ac_status=$?
5356   grep -v '^ *+' conftest.er1 >conftest.err
5357   rm -f conftest.er1
5358   cat conftest.err >&5
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); } && {
5361          test -z "$ac_c_werror_flag" ||
5362          test ! -s conftest.err
5363        } && test -s conftest.$ac_objext; then
5364   ac_header_compiler=yes
5365 else
5366   echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5368
5369         ac_header_compiler=no
5370 fi
5371
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5374 echo "${ECHO_T}$ac_header_compiler" >&6; }
5375
5376 # Is the header present?
5377 { echo "$as_me:$LINENO: checking float.h presence" >&5
5378 echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; }
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h.  */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h.  */
5385 #include <float.h>
5386 _ACEOF
5387 if { (ac_try="$ac_cpp conftest.$ac_ext"
5388 case "(($ac_try" in
5389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390   *) ac_try_echo=$ac_try;;
5391 esac
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5394   ac_status=$?
5395   grep -v '^ *+' conftest.er1 >conftest.err
5396   rm -f conftest.er1
5397   cat conftest.err >&5
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); } >/dev/null && {
5400          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5401          test ! -s conftest.err
5402        }; then
5403   ac_header_preproc=yes
5404 else
5405   echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408   ac_header_preproc=no
5409 fi
5410
5411 rm -f conftest.err conftest.$ac_ext
5412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5413 echo "${ECHO_T}$ac_header_preproc" >&6; }
5414
5415 # So?  What about this header?
5416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5417   yes:no: )
5418     { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5
5419 echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5420     { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5
5421 echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;}
5422     ac_header_preproc=yes
5423     ;;
5424   no:yes:* )
5425     { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5
5426 echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;}
5427     { echo "$as_me:$LINENO: WARNING: float.h:     check for missing prerequisite headers?" >&5
5428 echo "$as_me: WARNING: float.h:     check for missing prerequisite headers?" >&2;}
5429     { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5
5430 echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;}
5431     { echo "$as_me:$LINENO: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&5
5432 echo "$as_me: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5433     { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5
5434 echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;}
5435     { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5
5436 echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;}
5437
5438     ;;
5439 esac
5440 { echo "$as_me:$LINENO: checking for float.h" >&5
5441 echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
5442 if test "${ac_cv_header_float_h+set}" = set; then
5443   echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445   ac_cv_header_float_h=$ac_header_preproc
5446 fi
5447 { echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
5448 echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
5449
5450 fi
5451 if test $ac_cv_header_float_h = yes; then
5452   :
5453 else
5454   cat >>confdefs.h <<\_ACEOF
5455 #define NO_FLOAT_H 1
5456 _ACEOF
5457
5458 fi
5459
5460
5461     if test "${ac_cv_header_values_h+set}" = set; then
5462   { echo "$as_me:$LINENO: checking for values.h" >&5
5463 echo $ECHO_N "checking for values.h... $ECHO_C" >&6; }
5464 if test "${ac_cv_header_values_h+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 fi
5467 { echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
5468 echo "${ECHO_T}$ac_cv_header_values_h" >&6; }
5469 else
5470   # Is the header compilable?
5471 { echo "$as_me:$LINENO: checking values.h usability" >&5
5472 echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; }
5473 cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h.  */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h.  */
5479 $ac_includes_default
5480 #include <values.h>
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486   *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489   (eval "$ac_compile") 2>conftest.er1
5490   ac_status=$?
5491   grep -v '^ *+' conftest.er1 >conftest.err
5492   rm -f conftest.er1
5493   cat conftest.err >&5
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); } && {
5496          test -z "$ac_c_werror_flag" ||
5497          test ! -s conftest.err
5498        } && test -s conftest.$ac_objext; then
5499   ac_header_compiler=yes
5500 else
5501   echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504         ac_header_compiler=no
5505 fi
5506
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5509 echo "${ECHO_T}$ac_header_compiler" >&6; }
5510
5511 # Is the header present?
5512 { echo "$as_me:$LINENO: checking values.h presence" >&5
5513 echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; }
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h.  */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h.  */
5520 #include <values.h>
5521 _ACEOF
5522 if { (ac_try="$ac_cpp conftest.$ac_ext"
5523 case "(($ac_try" in
5524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525   *) ac_try_echo=$ac_try;;
5526 esac
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5529   ac_status=$?
5530   grep -v '^ *+' conftest.er1 >conftest.err
5531   rm -f conftest.er1
5532   cat conftest.err >&5
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); } >/dev/null && {
5535          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5536          test ! -s conftest.err
5537        }; then
5538   ac_header_preproc=yes
5539 else
5540   echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543   ac_header_preproc=no
5544 fi
5545
5546 rm -f conftest.err conftest.$ac_ext
5547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5548 echo "${ECHO_T}$ac_header_preproc" >&6; }
5549
5550 # So?  What about this header?
5551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5552   yes:no: )
5553     { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5
5554 echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5555     { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5
5556 echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;}
5557     ac_header_preproc=yes
5558     ;;
5559   no:yes:* )
5560     { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5
5561 echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;}
5562     { echo "$as_me:$LINENO: WARNING: values.h:     check for missing prerequisite headers?" >&5
5563 echo "$as_me: WARNING: values.h:     check for missing prerequisite headers?" >&2;}
5564     { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5
5565 echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;}
5566     { echo "$as_me:$LINENO: WARNING: values.h:     section \"Present But Cannot Be Compiled\"" >&5
5567 echo "$as_me: WARNING: values.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5568     { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5
5569 echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;}
5570     { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5
5571 echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;}
5572
5573     ;;
5574 esac
5575 { echo "$as_me:$LINENO: checking for values.h" >&5
5576 echo $ECHO_N "checking for values.h... $ECHO_C" >&6; }
5577 if test "${ac_cv_header_values_h+set}" = set; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580   ac_cv_header_values_h=$ac_header_preproc
5581 fi
5582 { echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
5583 echo "${ECHO_T}$ac_cv_header_values_h" >&6; }
5584
5585 fi
5586 if test $ac_cv_header_values_h = yes; then
5587   :
5588 else
5589   cat >>confdefs.h <<\_ACEOF
5590 #define NO_VALUES_H 1
5591 _ACEOF
5592
5593 fi
5594
5595
5596     if test "${ac_cv_header_limits_h+set}" = set; then
5597   { echo "$as_me:$LINENO: checking for limits.h" >&5
5598 echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; }
5599 if test "${ac_cv_header_limits_h+set}" = set; then
5600   echo $ECHO_N "(cached) $ECHO_C" >&6
5601 fi
5602 { echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
5603 echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
5604 else
5605   # Is the header compilable?
5606 { echo "$as_me:$LINENO: checking limits.h usability" >&5
5607 echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; }
5608 cat >conftest.$ac_ext <<_ACEOF
5609 /* confdefs.h.  */
5610 _ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h.  */
5614 $ac_includes_default
5615 #include <limits.h>
5616 _ACEOF
5617 rm -f conftest.$ac_objext
5618 if { (ac_try="$ac_compile"
5619 case "(($ac_try" in
5620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621   *) ac_try_echo=$ac_try;;
5622 esac
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624   (eval "$ac_compile") 2>conftest.er1
5625   ac_status=$?
5626   grep -v '^ *+' conftest.er1 >conftest.err
5627   rm -f conftest.er1
5628   cat conftest.err >&5
5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630   (exit $ac_status); } && {
5631          test -z "$ac_c_werror_flag" ||
5632          test ! -s conftest.err
5633        } && test -s conftest.$ac_objext; then
5634   ac_header_compiler=yes
5635 else
5636   echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5638
5639         ac_header_compiler=no
5640 fi
5641
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5644 echo "${ECHO_T}$ac_header_compiler" >&6; }
5645
5646 # Is the header present?
5647 { echo "$as_me:$LINENO: checking limits.h presence" >&5
5648 echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; }
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h.  */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h.  */
5655 #include <limits.h>
5656 _ACEOF
5657 if { (ac_try="$ac_cpp conftest.$ac_ext"
5658 case "(($ac_try" in
5659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660   *) ac_try_echo=$ac_try;;
5661 esac
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5664   ac_status=$?
5665   grep -v '^ *+' conftest.er1 >conftest.err
5666   rm -f conftest.er1
5667   cat conftest.err >&5
5668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); } >/dev/null && {
5670          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5671          test ! -s conftest.err
5672        }; then
5673   ac_header_preproc=yes
5674 else
5675   echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678   ac_header_preproc=no
5679 fi
5680
5681 rm -f conftest.err conftest.$ac_ext
5682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5683 echo "${ECHO_T}$ac_header_preproc" >&6; }
5684
5685 # So?  What about this header?
5686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5687   yes:no: )
5688     { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5
5689 echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5690     { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5
5691 echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;}
5692     ac_header_preproc=yes
5693     ;;
5694   no:yes:* )
5695     { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5
5696 echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;}
5697     { echo "$as_me:$LINENO: WARNING: limits.h:     check for missing prerequisite headers?" >&5
5698 echo "$as_me: WARNING: limits.h:     check for missing prerequisite headers?" >&2;}
5699     { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5
5700 echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;}
5701     { echo "$as_me:$LINENO: WARNING: limits.h:     section \"Present But Cannot Be Compiled\"" >&5
5702 echo "$as_me: WARNING: limits.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5703     { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5
5704 echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;}
5705     { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5
5706 echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;}
5707
5708     ;;
5709 esac
5710 { echo "$as_me:$LINENO: checking for limits.h" >&5
5711 echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; }
5712 if test "${ac_cv_header_limits_h+set}" = set; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715   ac_cv_header_limits_h=$ac_header_preproc
5716 fi
5717 { echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
5718 echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
5719
5720 fi
5721 if test $ac_cv_header_limits_h = yes; then
5722   cat >>confdefs.h <<\_ACEOF
5723 #define HAVE_LIMITS_H 1
5724 _ACEOF
5725
5726 else
5727   cat >>confdefs.h <<\_ACEOF
5728 #define NO_LIMITS_H 1
5729 _ACEOF
5730
5731 fi
5732
5733
5734     if test "${ac_cv_header_stdlib_h+set}" = set; then
5735   { echo "$as_me:$LINENO: checking for stdlib.h" >&5
5736 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
5737 if test "${ac_cv_header_stdlib_h+set}" = set; then
5738   echo $ECHO_N "(cached) $ECHO_C" >&6
5739 fi
5740 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
5741 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
5742 else
5743   # Is the header compilable?
5744 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
5745 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
5746 cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h.  */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h.  */
5752 $ac_includes_default
5753 #include <stdlib.h>
5754 _ACEOF
5755 rm -f conftest.$ac_objext
5756 if { (ac_try="$ac_compile"
5757 case "(($ac_try" in
5758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759   *) ac_try_echo=$ac_try;;
5760 esac
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762   (eval "$ac_compile") 2>conftest.er1
5763   ac_status=$?
5764   grep -v '^ *+' conftest.er1 >conftest.err
5765   rm -f conftest.er1
5766   cat conftest.err >&5
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); } && {
5769          test -z "$ac_c_werror_flag" ||
5770          test ! -s conftest.err
5771        } && test -s conftest.$ac_objext; then
5772   ac_header_compiler=yes
5773 else
5774   echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5776
5777         ac_header_compiler=no
5778 fi
5779
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5782 echo "${ECHO_T}$ac_header_compiler" >&6; }
5783
5784 # Is the header present?
5785 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
5786 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h.  */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h.  */
5793 #include <stdlib.h>
5794 _ACEOF
5795 if { (ac_try="$ac_cpp conftest.$ac_ext"
5796 case "(($ac_try" in
5797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798   *) ac_try_echo=$ac_try;;
5799 esac
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5802   ac_status=$?
5803   grep -v '^ *+' conftest.er1 >conftest.err
5804   rm -f conftest.er1
5805   cat conftest.err >&5
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); } >/dev/null && {
5808          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5809          test ! -s conftest.err
5810        }; then
5811   ac_header_preproc=yes
5812 else
5813   echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816   ac_header_preproc=no
5817 fi
5818
5819 rm -f conftest.err conftest.$ac_ext
5820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5821 echo "${ECHO_T}$ac_header_preproc" >&6; }
5822
5823 # So?  What about this header?
5824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5825   yes:no: )
5826     { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5827 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5828     { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
5829 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
5830     ac_header_preproc=yes
5831     ;;
5832   no:yes:* )
5833     { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
5834 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
5835     { echo "$as_me:$LINENO: WARNING: stdlib.h:     check for missing prerequisite headers?" >&5
5836 echo "$as_me: WARNING: stdlib.h:     check for missing prerequisite headers?" >&2;}
5837     { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
5838 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
5839     { echo "$as_me:$LINENO: WARNING: stdlib.h:     section \"Present But Cannot Be Compiled\"" >&5
5840 echo "$as_me: WARNING: stdlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5841     { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
5842 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
5843     { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
5844 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
5845
5846     ;;
5847 esac
5848 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
5849 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
5850 if test "${ac_cv_header_stdlib_h+set}" = set; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   ac_cv_header_stdlib_h=$ac_header_preproc
5854 fi
5855 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
5856 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
5857
5858 fi
5859 if test $ac_cv_header_stdlib_h = yes; then
5860   tcl_ok=1
5861 else
5862   tcl_ok=0
5863 fi
5864
5865
5866     cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h.  */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h.  */
5872 #include <stdlib.h>
5873
5874 _ACEOF
5875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5876   $EGREP "strtol" >/dev/null 2>&1; then
5877   :
5878 else
5879   tcl_ok=0
5880 fi
5881 rm -f conftest*
5882
5883     cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h.  */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h.  */
5889 #include <stdlib.h>
5890
5891 _ACEOF
5892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5893   $EGREP "strtoul" >/dev/null 2>&1; then
5894   :
5895 else
5896   tcl_ok=0
5897 fi
5898 rm -f conftest*
5899
5900     cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h.  */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h.  */
5906 #include <stdlib.h>
5907
5908 _ACEOF
5909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5910   $EGREP "strtod" >/dev/null 2>&1; then
5911   :
5912 else
5913   tcl_ok=0
5914 fi
5915 rm -f conftest*
5916
5917     if test $tcl_ok = 0; then
5918         cat >>confdefs.h <<\_ACEOF
5919 #define NO_STDLIB_H 1
5920 _ACEOF
5921
5922     fi
5923     if test "${ac_cv_header_string_h+set}" = set; then
5924   { echo "$as_me:$LINENO: checking for string.h" >&5
5925 echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
5926 if test "${ac_cv_header_string_h+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 fi
5929 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
5930 echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
5931 else
5932   # Is the header compilable?
5933 { echo "$as_me:$LINENO: checking string.h usability" >&5
5934 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h.  */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h.  */
5941 $ac_includes_default
5942 #include <string.h>
5943 _ACEOF
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5946 case "(($ac_try" in
5947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948   *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951   (eval "$ac_compile") 2>conftest.er1
5952   ac_status=$?
5953   grep -v '^ *+' conftest.er1 >conftest.err
5954   rm -f conftest.er1
5955   cat conftest.err >&5
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); } && {
5958          test -z "$ac_c_werror_flag" ||
5959          test ! -s conftest.err
5960        } && test -s conftest.$ac_objext; then
5961   ac_header_compiler=yes
5962 else
5963   echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5965
5966         ac_header_compiler=no
5967 fi
5968
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5971 echo "${ECHO_T}$ac_header_compiler" >&6; }
5972
5973 # Is the header present?
5974 { echo "$as_me:$LINENO: checking string.h presence" >&5
5975 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h.  */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h.  */
5982 #include <string.h>
5983 _ACEOF
5984 if { (ac_try="$ac_cpp conftest.$ac_ext"
5985 case "(($ac_try" in
5986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987   *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5991   ac_status=$?
5992   grep -v '^ *+' conftest.er1 >conftest.err
5993   rm -f conftest.er1
5994   cat conftest.err >&5
5995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996   (exit $ac_status); } >/dev/null && {
5997          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5998          test ! -s conftest.err
5999        }; then
6000   ac_header_preproc=yes
6001 else
6002   echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6004
6005   ac_header_preproc=no
6006 fi
6007
6008 rm -f conftest.err conftest.$ac_ext
6009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6010 echo "${ECHO_T}$ac_header_preproc" >&6; }
6011
6012 # So?  What about this header?
6013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6014   yes:no: )
6015     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6016 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6017     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6018 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6019     ac_header_preproc=yes
6020     ;;
6021   no:yes:* )
6022     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6023 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6024     { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
6025 echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
6026     { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6027 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6028     { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
6029 echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6030     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6031 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6032     { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6033 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
6034
6035     ;;
6036 esac
6037 { echo "$as_me:$LINENO: checking for string.h" >&5
6038 echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
6039 if test "${ac_cv_header_string_h+set}" = set; then
6040   echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042   ac_cv_header_string_h=$ac_header_preproc
6043 fi
6044 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6045 echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
6046
6047 fi
6048 if test $ac_cv_header_string_h = yes; then
6049   tcl_ok=1
6050 else
6051   tcl_ok=0
6052 fi
6053
6054
6055     cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h.  */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h.  */
6061 #include <string.h>
6062
6063 _ACEOF
6064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065   $EGREP "strstr" >/dev/null 2>&1; then
6066   :
6067 else
6068   tcl_ok=0
6069 fi
6070 rm -f conftest*
6071
6072     cat >conftest.$ac_ext <<_ACEOF
6073 /* confdefs.h.  */
6074 _ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h.  */
6078 #include <string.h>
6079
6080 _ACEOF
6081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6082   $EGREP "strerror" >/dev/null 2>&1; then
6083   :
6084 else
6085   tcl_ok=0
6086 fi
6087 rm -f conftest*
6088
6089
6090     # See also memmove check below for a place where NO_STRING_H can be
6091     # set and why.
6092
6093     if test $tcl_ok = 0; then
6094         cat >>confdefs.h <<\_ACEOF
6095 #define NO_STRING_H 1
6096 _ACEOF
6097
6098     fi
6099
6100     if test "${ac_cv_header_sys_wait_h+set}" = set; then
6101   { echo "$as_me:$LINENO: checking for sys/wait.h" >&5
6102 echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; }
6103 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6104   echo $ECHO_N "(cached) $ECHO_C" >&6
6105 fi
6106 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6107 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6108 else
6109   # Is the header compilable?
6110 { echo "$as_me:$LINENO: checking sys/wait.h usability" >&5
6111 echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; }
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h.  */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h.  */
6118 $ac_includes_default
6119 #include <sys/wait.h>
6120 _ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6123 case "(($ac_try" in
6124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125   *) ac_try_echo=$ac_try;;
6126 esac
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128   (eval "$ac_compile") 2>conftest.er1
6129   ac_status=$?
6130   grep -v '^ *+' conftest.er1 >conftest.err
6131   rm -f conftest.er1
6132   cat conftest.err >&5
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); } && {
6135          test -z "$ac_c_werror_flag" ||
6136          test ! -s conftest.err
6137        } && test -s conftest.$ac_objext; then
6138   ac_header_compiler=yes
6139 else
6140   echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143         ac_header_compiler=no
6144 fi
6145
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6148 echo "${ECHO_T}$ac_header_compiler" >&6; }
6149
6150 # Is the header present?
6151 { echo "$as_me:$LINENO: checking sys/wait.h presence" >&5
6152 echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; }
6153 cat >conftest.$ac_ext <<_ACEOF
6154 /* confdefs.h.  */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h.  */
6159 #include <sys/wait.h>
6160 _ACEOF
6161 if { (ac_try="$ac_cpp conftest.$ac_ext"
6162 case "(($ac_try" in
6163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164   *) ac_try_echo=$ac_try;;
6165 esac
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6168   ac_status=$?
6169   grep -v '^ *+' conftest.er1 >conftest.err
6170   rm -f conftest.er1
6171   cat conftest.err >&5
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); } >/dev/null && {
6174          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6175          test ! -s conftest.err
6176        }; then
6177   ac_header_preproc=yes
6178 else
6179   echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6181
6182   ac_header_preproc=no
6183 fi
6184
6185 rm -f conftest.err conftest.$ac_ext
6186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6187 echo "${ECHO_T}$ac_header_preproc" >&6; }
6188
6189 # So?  What about this header?
6190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6191   yes:no: )
6192     { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5
6193 echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6194     { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5
6195 echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;}
6196     ac_header_preproc=yes
6197     ;;
6198   no:yes:* )
6199     { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5
6200 echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;}
6201     { echo "$as_me:$LINENO: WARNING: sys/wait.h:     check for missing prerequisite headers?" >&5
6202 echo "$as_me: WARNING: sys/wait.h:     check for missing prerequisite headers?" >&2;}
6203     { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5
6204 echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;}
6205     { echo "$as_me:$LINENO: WARNING: sys/wait.h:     section \"Present But Cannot Be Compiled\"" >&5
6206 echo "$as_me: WARNING: sys/wait.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6207     { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5
6208 echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;}
6209     { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5
6210 echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;}
6211
6212     ;;
6213 esac
6214 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5
6215 echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; }
6216 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   ac_cv_header_sys_wait_h=$ac_header_preproc
6220 fi
6221 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6222 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6223
6224 fi
6225 if test $ac_cv_header_sys_wait_h = yes; then
6226   :
6227 else
6228   cat >>confdefs.h <<\_ACEOF
6229 #define NO_SYS_WAIT_H 1
6230 _ACEOF
6231
6232 fi
6233
6234
6235     if test "${ac_cv_header_dlfcn_h+set}" = set; then
6236   { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
6237 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
6238 if test "${ac_cv_header_dlfcn_h+set}" = set; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 fi
6241 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6242 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
6243 else
6244   # Is the header compilable?
6245 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
6246 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
6247 cat >conftest.$ac_ext <<_ACEOF
6248 /* confdefs.h.  */
6249 _ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h.  */
6253 $ac_includes_default
6254 #include <dlfcn.h>
6255 _ACEOF
6256 rm -f conftest.$ac_objext
6257 if { (ac_try="$ac_compile"
6258 case "(($ac_try" in
6259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260   *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263   (eval "$ac_compile") 2>conftest.er1
6264   ac_status=$?
6265   grep -v '^ *+' conftest.er1 >conftest.err
6266   rm -f conftest.er1
6267   cat conftest.err >&5
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); } && {
6270          test -z "$ac_c_werror_flag" ||
6271          test ! -s conftest.err
6272        } && test -s conftest.$ac_objext; then
6273   ac_header_compiler=yes
6274 else
6275   echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278         ac_header_compiler=no
6279 fi
6280
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6283 echo "${ECHO_T}$ac_header_compiler" >&6; }
6284
6285 # Is the header present?
6286 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
6287 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h.  */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h.  */
6294 #include <dlfcn.h>
6295 _ACEOF
6296 if { (ac_try="$ac_cpp conftest.$ac_ext"
6297 case "(($ac_try" in
6298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299   *) ac_try_echo=$ac_try;;
6300 esac
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6303   ac_status=$?
6304   grep -v '^ *+' conftest.er1 >conftest.err
6305   rm -f conftest.er1
6306   cat conftest.err >&5
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); } >/dev/null && {
6309          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6310          test ! -s conftest.err
6311        }; then
6312   ac_header_preproc=yes
6313 else
6314   echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6316
6317   ac_header_preproc=no
6318 fi
6319
6320 rm -f conftest.err conftest.$ac_ext
6321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6322 echo "${ECHO_T}$ac_header_preproc" >&6; }
6323
6324 # So?  What about this header?
6325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6326   yes:no: )
6327     { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
6328 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6329     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
6330 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
6331     ac_header_preproc=yes
6332     ;;
6333   no:yes:* )
6334     { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
6335 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
6336     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
6337 echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
6338     { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
6339 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
6340     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
6341 echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6342     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
6343 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
6344     { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
6345 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
6346
6347     ;;
6348 esac
6349 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
6350 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
6351 if test "${ac_cv_header_dlfcn_h+set}" = set; then
6352   echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354   ac_cv_header_dlfcn_h=$ac_header_preproc
6355 fi
6356 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6357 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
6358
6359 fi
6360 if test $ac_cv_header_dlfcn_h = yes; then
6361   :
6362 else
6363   cat >>confdefs.h <<\_ACEOF
6364 #define NO_DLFCN_H 1
6365 _ACEOF
6366
6367 fi
6368
6369
6370
6371     # OS/390 lacks sys/param.h (and doesn't need it, by chance).
6372
6373 for ac_header in sys/param.h
6374 do
6375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6377   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6380   echo $ECHO_N "(cached) $ECHO_C" >&6
6381 fi
6382 ac_res=`eval echo '${'$as_ac_Header'}'`
6383                { echo "$as_me:$LINENO: result: $ac_res" >&5
6384 echo "${ECHO_T}$ac_res" >&6; }
6385 else
6386   # Is the header compilable?
6387 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6389 cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h.  */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h.  */
6395 $ac_includes_default
6396 #include <$ac_header>
6397 _ACEOF
6398 rm -f conftest.$ac_objext
6399 if { (ac_try="$ac_compile"
6400 case "(($ac_try" in
6401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402   *) ac_try_echo=$ac_try;;
6403 esac
6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405   (eval "$ac_compile") 2>conftest.er1
6406   ac_status=$?
6407   grep -v '^ *+' conftest.er1 >conftest.err
6408   rm -f conftest.er1
6409   cat conftest.err >&5
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); } && {
6412          test -z "$ac_c_werror_flag" ||
6413          test ! -s conftest.err
6414        } && test -s conftest.$ac_objext; then
6415   ac_header_compiler=yes
6416 else
6417   echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6419
6420         ac_header_compiler=no
6421 fi
6422
6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6425 echo "${ECHO_T}$ac_header_compiler" >&6; }
6426
6427 # Is the header present?
6428 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h.  */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h.  */
6436 #include <$ac_header>
6437 _ACEOF
6438 if { (ac_try="$ac_cpp conftest.$ac_ext"
6439 case "(($ac_try" in
6440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441   *) ac_try_echo=$ac_try;;
6442 esac
6443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6444   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6445   ac_status=$?
6446   grep -v '^ *+' conftest.er1 >conftest.err
6447   rm -f conftest.er1
6448   cat conftest.err >&5
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); } >/dev/null && {
6451          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6452          test ! -s conftest.err
6453        }; then
6454   ac_header_preproc=yes
6455 else
6456   echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6458
6459   ac_header_preproc=no
6460 fi
6461
6462 rm -f conftest.err conftest.$ac_ext
6463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6464 echo "${ECHO_T}$ac_header_preproc" >&6; }
6465
6466 # So?  What about this header?
6467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6468   yes:no: )
6469     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6473     ac_header_preproc=yes
6474     ;;
6475   no:yes:* )
6476     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6478     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6479 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6480     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6482     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6483 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6486     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6488
6489     ;;
6490 esac
6491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6494   echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496   eval "$as_ac_Header=\$ac_header_preproc"
6497 fi
6498 ac_res=`eval echo '${'$as_ac_Header'}'`
6499                { echo "$as_me:$LINENO: result: $ac_res" >&5
6500 echo "${ECHO_T}$ac_res" >&6; }
6501
6502 fi
6503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6504   cat >>confdefs.h <<_ACEOF
6505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6506 _ACEOF
6507
6508 fi
6509
6510 done
6511
6512
6513
6514         # Let the user call this, because if it triggers, they will
6515         # need a compat/strtod.c that is correct.  Users can also
6516         # use Tcl_GetDouble(FromObj) instead.
6517         #TEA_BUGGY_STRTOD
6518     fi
6519
6520
6521 #-----------------------------------------------------------------------
6522 # __CHANGE__
6523 # Specify the C source files to compile in TEA_ADD_SOURCES,
6524 # public headers that need to be installed in TEA_ADD_HEADERS,
6525 # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
6526 # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
6527 # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
6528 # and PKG_TCL_SOURCES.
6529 #-----------------------------------------------------------------------
6530
6531
6532     vars="itclStubInit.c
6533                 itcl_bicmds.c
6534                 itcl_class.c
6535                 itcl_cmds.c
6536                 itcl_ensemble.c
6537                 itcl_linkage.c
6538                 itcl_methods.c
6539                 itcl_migrate.c
6540                 itcl_objects.c
6541                 itcl_parse.c
6542                 itcl_util.c"
6543     for i in $vars; do
6544         case $i in
6545             \$*)
6546                 # allow $-var names
6547                 PKG_SOURCES="$PKG_SOURCES $i"
6548                 PKG_OBJECTS="$PKG_OBJECTS $i"
6549                 ;;
6550             *)
6551                 # check for existence - allows for generic/win/unix VPATH
6552                 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6553                     -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6554                     ; then
6555                     { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5
6556 echo "$as_me: error: could not find source file '$i'" >&2;}
6557    { (exit 1); exit 1; }; }
6558                 fi
6559                 PKG_SOURCES="$PKG_SOURCES $i"
6560                 # this assumes it is in a VPATH dir
6561                 i=`basename $i`
6562                 # handle user calling this before or after TEA_SETUP_COMPILER
6563                 if test x"${OBJEXT}" != x ; then
6564                     j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6565                 else
6566                     j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6567                 fi
6568                 PKG_OBJECTS="$PKG_OBJECTS $j"
6569                 ;;
6570         esac
6571     done
6572
6573
6574
6575
6576     vars="generic/itcl.h
6577                 generic/itclDecls.h
6578                 generic/itclInt.h
6579                 generic/itclIntDecls.h"
6580     for i in $vars; do
6581         # check for existence, be strict because it is installed
6582         if test ! -f "${srcdir}/$i" ; then
6583             { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5
6584 echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;}
6585    { (exit 1); exit 1; }; }
6586         fi
6587         PKG_HEADERS="$PKG_HEADERS $i"
6588     done
6589
6590
6591
6592     vars="-I\"`${CYGPATH} ${srcdir}/generic`\""
6593     for i in $vars; do
6594         PKG_INCLUDES="$PKG_INCLUDES $i"
6595     done
6596
6597
6598
6599     vars=""
6600     for i in $vars; do
6601         if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6602             # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
6603             i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
6604         fi
6605         PKG_LIBS="$PKG_LIBS $i"
6606     done
6607
6608
6609
6610     PKG_CFLAGS="$PKG_CFLAGS "
6611
6612
6613
6614     vars="itclStubLib.c"
6615     for i in $vars; do
6616         # check for existence - allows for generic/win/unix VPATH
6617         if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6618             -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6619             ; then
6620             { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5
6621 echo "$as_me: error: could not find stub source file '$i'" >&2;}
6622    { (exit 1); exit 1; }; }
6623         fi
6624         PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
6625         # this assumes it is in a VPATH dir
6626         i=`basename $i`
6627         # handle user calling this before or after TEA_SETUP_COMPILER
6628         if test x"${OBJEXT}" != x ; then
6629             j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6630         else
6631             j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6632         fi
6633         PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
6634     done
6635
6636
6637
6638
6639     vars="library/itcl.tcl"
6640     for i in $vars; do
6641         # check for existence, be strict because it is installed
6642         if test ! -f "${srcdir}/$i" ; then
6643             { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
6644 echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
6645    { (exit 1); exit 1; }; }
6646         fi
6647         PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
6648     done
6649
6650
6651
6652 #--------------------------------------------------------------------
6653 # __CHANGE__
6654 # A few miscellaneous platform-specific items:
6655 #
6656 # Define a special symbol for Windows (BUILD_itcl in this case) so
6657 # that we create the export library with the dll.  See sha1.h on how
6658 # to use this.
6659 #
6660 # Windows creates a few extra files that need to be cleaned up.
6661 # You can add more files to clean if your extension creates any extra
6662 # files.
6663 #
6664 # Define any extra compiler flags in the PACKAGE_CFLAGS variable.
6665 # These will be appended to the current set of compiler flags for
6666 # your system.
6667 #--------------------------------------------------------------------
6668
6669 if test "${TEA_PLATFORM}" = "windows" ; then
6670     cat >>confdefs.h <<\_ACEOF
6671 #define BUILD_itcl 1
6672 _ACEOF
6673
6674     CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch"
6675
6676     vars="dllEntryPoint.c"
6677     for i in $vars; do
6678         case $i in
6679             \$*)
6680                 # allow $-var names
6681                 PKG_SOURCES="$PKG_SOURCES $i"
6682                 PKG_OBJECTS="$PKG_OBJECTS $i"
6683                 ;;
6684             *)
6685                 # check for existence - allows for generic/win/unix VPATH
6686                 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6687                     -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6688                     ; then
6689                     { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5
6690 echo "$as_me: error: could not find source file '$i'" >&2;}
6691    { (exit 1); exit 1; }; }
6692                 fi
6693                 PKG_SOURCES="$PKG_SOURCES $i"
6694                 # this assumes it is in a VPATH dir
6695                 i=`basename $i`
6696                 # handle user calling this before or after TEA_SETUP_COMPILER
6697                 if test x"${OBJEXT}" != x ; then
6698                     j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6699                 else
6700                     j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6701                 fi
6702                 PKG_OBJECTS="$PKG_OBJECTS $j"
6703                 ;;
6704         esac
6705     done
6706
6707
6708
6709 else
6710     CLEANFILES=
6711     #TEA_ADD_SOURCES([])
6712 fi
6713
6714
6715
6716 #--------------------------------------------------------------------
6717 # __CHANGE__
6718 # Choose which headers you need.  Extension authors should try very
6719 # hard to only rely on the Tcl public header files.  Internal headers
6720 # contain private data structures and are subject to change without
6721 # notice.
6722 # This must be done AFTER calling TEA_PATH_TCLCONFIG/TEA_LOAD_TCLCONFIG
6723 # so that we can extract TCL_SRC_DIR from the config file (in the case
6724 # of private headers
6725 #--------------------------------------------------------------------
6726
6727 #TEA_PUBLIC_TCL_HEADERS
6728
6729     { echo "$as_me:$LINENO: checking for Tcl private include files" >&5
6730 echo $ECHO_N "checking for Tcl private include files... $ECHO_C" >&6; }
6731
6732     if test "${TEA_PLATFORM}" = "windows"; then
6733         TCL_TOP_DIR_NATIVE=\"`${CYGPATH} ${TCL_SRC_DIR}`\"
6734         TCL_GENERIC_DIR_NATIVE=\"`${CYGPATH} ${TCL_SRC_DIR}/generic`\"
6735         TCL_UNIX_DIR_NATIVE=\"`${CYGPATH} ${TCL_SRC_DIR}/unix`\"
6736         TCL_WIN_DIR_NATIVE=\"`${CYGPATH} ${TCL_SRC_DIR}/win`\"
6737         TCL_BMAP_DIR_NATIVE=\"`${CYGPATH} ${TCL_SRC_DIR}/bitmaps`\"
6738         TCL_TOOL_DIR_NATIVE=\"`${CYGPATH} ${TCL_SRC_DIR}/tools`\"
6739         TCL_COMPAT_DIR_NATIVE=\"`${CYGPATH} ${TCL_SRC_DIR}/compat`\"
6740         TCL_PLATFORM_DIR_NATIVE=${TCL_WIN_DIR_NATIVE}
6741
6742         TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}"
6743     else
6744         TCL_TOP_DIR_NATIVE='$(TCL_SRC_DIR)'
6745         TCL_GENERIC_DIR_NATIVE='${TCL_TOP_DIR_NATIVE}/generic'
6746         TCL_UNIX_DIR_NATIVE='${TCL_TOP_DIR_NATIVE}/unix'
6747         TCL_WIN_DIR_NATIVE='${TCL_TOP_DIR_NATIVE}/win'
6748         TCL_BMAP_DIR_NATIVE='${TCL_TOP_DIR_NATIVE}/bitmaps'
6749         TCL_TOOL_DIR_NATIVE='${TCL_TOP_DIR_NATIVE}/tools'
6750         TCL_COMPAT_DIR_NATIVE='${TCL_TOP_DIR_NATIVE}/compat'
6751         TCL_PLATFORM_DIR_NATIVE=${TCL_UNIX_DIR_NATIVE}
6752
6753         # substitute these in "relaxed" so that TCL_INCLUDES still works
6754         # without requiring the other vars to be defined in the Makefile
6755         eval "TCL_INCLUDES=\"-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}\""
6756     fi
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767     { echo "$as_me:$LINENO: result: Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" >&5
6768 echo "${ECHO_T}Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" >&6; }
6769
6770
6771 #--------------------------------------------------------------------
6772 # We need to enable the threading macros found in tcl.h and tclInt.h.
6773 # The use of the threading features is determined by the core the
6774 # extension is loaded into, but we need to compile with these macros
6775 # turned on.
6776 #--------------------------------------------------------------------
6777
6778 cat >>confdefs.h <<\_ACEOF
6779 #define TCL_THREADS 1
6780 _ACEOF
6781
6782
6783 #--------------------------------------------------------------------
6784 # Check whether --enable-threads or --disable-threads was given.
6785 # This auto-enables if Tcl was compiled threaded.
6786 #--------------------------------------------------------------------
6787
6788 #TEA_ENABLE_THREADS
6789
6790 #--------------------------------------------------------------------
6791 # The statement below defines a collection of symbols related to
6792 # building as a shared library instead of a static library.
6793 #--------------------------------------------------------------------
6794
6795
6796     { echo "$as_me:$LINENO: checking how to build libraries" >&5
6797 echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; }
6798     # Check whether --enable-shared was given.
6799 if test "${enable_shared+set}" = set; then
6800   enableval=$enable_shared; tcl_ok=$enableval
6801 else
6802   tcl_ok=yes
6803 fi
6804
6805
6806     if test "${enable_shared+set}" = set; then
6807         enableval="$enable_shared"
6808         tcl_ok=$enableval
6809     else
6810         tcl_ok=yes
6811     fi
6812
6813     if test "$tcl_ok" = "yes" ; then
6814         { echo "$as_me:$LINENO: result: shared" >&5
6815 echo "${ECHO_T}shared" >&6; }
6816         SHARED_BUILD=1
6817     else
6818         { echo "$as_me:$LINENO: result: static" >&5
6819 echo "${ECHO_T}static" >&6; }
6820         SHARED_BUILD=0
6821         cat >>confdefs.h <<\_ACEOF
6822 #define STATIC_BUILD 1
6823 _ACEOF
6824
6825     fi
6826
6827
6828
6829 #--------------------------------------------------------------------
6830 # This macro figures out what flags to use with the compiler/linker
6831 # when building shared/static debug/optimized objects.  This information
6832 # can be taken from the tclConfig.sh file, but this figures it all out.
6833 #--------------------------------------------------------------------
6834
6835
6836     # Allow the user to provide this setting in the env
6837     if test "x${TCLSH_PROG}" = "x" ; then
6838         { echo "$as_me:$LINENO: checking for tclsh" >&5
6839 echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; }
6840
6841         if test "${ac_cv_path_tclsh+set}" = set; then
6842   echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844
6845         search_path=`echo ${PATH} | sed -e 's/:/ /g'`
6846         if test "${TEA_PLATFORM}" != "windows" -o \
6847                 \( "$do64bit_ok" = "no" -a "$doWince" = "no" \) ; then
6848             # Do not allow target tclsh in known cross-compile builds,
6849             # as we need one we can run on this system
6850             search_path="${TCL_BIN_DIR} ${TCL_BIN_DIR}/../bin ${exec_prefix}/bin ${prefix}/bin ${search_path}"
6851         fi
6852         for dir in $search_path ; do
6853             for j in `ls -r $dir/tclsh[8-9]*${EXEEXT} 2> /dev/null` \
6854                     `ls -r $dir/tclsh*${EXEEXT} 2> /dev/null` ; do
6855                 if test x"$ac_cv_path_tclsh" = x ; then
6856                     if test -f "$j" ; then
6857                         ac_cv_path_tclsh=$j
6858                         break
6859                     fi
6860                 fi
6861             done
6862         done
6863
6864 fi
6865
6866
6867         if test -f "$ac_cv_path_tclsh" ; then
6868             TCLSH_PROG=$ac_cv_path_tclsh
6869             { echo "$as_me:$LINENO: result: $TCLSH_PROG" >&5
6870 echo "${ECHO_T}$TCLSH_PROG" >&6; }
6871         else
6872             { { echo "$as_me:$LINENO: error: No tclsh found in PATH: $search_path" >&5
6873 echo "$as_me: error: No tclsh found in PATH: $search_path" >&2;}
6874    { (exit 1); exit 1; }; }
6875         fi
6876     fi
6877
6878
6879
6880
6881
6882     # Step 0: Enable 64 bit support?
6883
6884     { echo "$as_me:$LINENO: checking if 64bit support is enabled" >&5
6885 echo $ECHO_N "checking if 64bit support is enabled... $ECHO_C" >&6; }
6886     # Check whether --enable-64bit was given.
6887 if test "${enable_64bit+set}" = set; then
6888   enableval=$enable_64bit; do64bit=$enableval
6889 else
6890   do64bit=no
6891 fi
6892
6893     { echo "$as_me:$LINENO: result: $do64bit" >&5
6894 echo "${ECHO_T}$do64bit" >&6; }
6895
6896     # Step 0.b: Enable Solaris 64 bit VIS support?
6897
6898     { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5
6899 echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; }
6900     # Check whether --enable-64bit-vis was given.
6901 if test "${enable_64bit_vis+set}" = set; then
6902   enableval=$enable_64bit_vis; do64bitVIS=$enableval
6903 else
6904   do64bitVIS=no
6905 fi
6906
6907     { echo "$as_me:$LINENO: result: $do64bitVIS" >&5
6908 echo "${ECHO_T}$do64bitVIS" >&6; }
6909
6910     if test "$do64bitVIS" = "yes"; then
6911         # Force 64bit on with VIS
6912         do64bit=yes
6913     fi
6914
6915     # Step 0.c: Cross-compiling options for Windows/CE builds?
6916
6917     if test "${TEA_PLATFORM}" = "windows" ; then
6918         { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5
6919 echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; }
6920         # Check whether --enable-wince was given.
6921 if test "${enable_wince+set}" = set; then
6922   enableval=$enable_wince; doWince=$enableval
6923 else
6924   doWince=no
6925 fi
6926
6927         { echo "$as_me:$LINENO: result: $doWince" >&5
6928 echo "${ECHO_T}$doWince" >&6; }
6929     fi
6930
6931     # Step 1: set the variable "system" to hold the name and version number
6932     # for the system.  This can usually be done via the "uname" command, but
6933     # there are a few systems, like Next, where this doesn't work.
6934
6935     { echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5
6936 echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6; }
6937     if test -f /usr/lib/NextStep/software_version; then
6938         system=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
6939     else
6940         system=`uname -s`-`uname -r`
6941         if test "$?" -ne 0 ; then
6942             { echo "$as_me:$LINENO: result: unknown (can't find uname command)" >&5
6943 echo "${ECHO_T}unknown (can't find uname command)" >&6; }
6944             system=unknown
6945         else
6946             # Special check for weird MP-RAS system (uname returns weird
6947             # results, and the version is kept in special file).
6948
6949             if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
6950                 system=MP-RAS-`awk '{print $3}' /etc/.relid`
6951             fi
6952             if test "`uname -s`" = "AIX" ; then
6953                 system=AIX-`uname -v`.`uname -r`
6954             fi
6955             if test "${TEA_PLATFORM}" = "windows" ; then
6956                 system=windows
6957             fi
6958             { echo "$as_me:$LINENO: result: $system" >&5
6959 echo "${ECHO_T}$system" >&6; }
6960         fi
6961     fi
6962
6963     # Step 2: check for existence of -ldl library.  This is needed because
6964     # Linux can use either -ldl or -ldld for dynamic loading.
6965
6966     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6967 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
6968 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   ac_check_lib_save_LIBS=$LIBS
6972 LIBS="-ldl  $LIBS"
6973 cat >conftest.$ac_ext <<_ACEOF
6974 /* confdefs.h.  */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h.  */
6979
6980 /* Override any GCC internal prototype to avoid an error.
6981    Use char because int might match the return type of a GCC
6982    builtin and then its argument prototype would still apply.  */
6983 #ifdef __cplusplus
6984 extern "C"
6985 #endif
6986 char dlopen ();
6987 int
6988 main ()
6989 {
6990 return dlopen ();
6991   ;
6992   return 0;
6993 }
6994 _ACEOF
6995 rm -f conftest.$ac_objext conftest$ac_exeext
6996 if { (ac_try="$ac_link"
6997 case "(($ac_try" in
6998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6999   *) ac_try_echo=$ac_try;;
7000 esac
7001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7002   (eval "$ac_link") 2>conftest.er1
7003   ac_status=$?
7004   grep -v '^ *+' conftest.er1 >conftest.err
7005   rm -f conftest.er1
7006   cat conftest.err >&5
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); } && {
7009          test -z "$ac_c_werror_flag" ||
7010          test ! -s conftest.err
7011        } && test -s conftest$ac_exeext &&
7012        $as_test_x conftest$ac_exeext; then
7013   ac_cv_lib_dl_dlopen=yes
7014 else
7015   echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7017
7018         ac_cv_lib_dl_dlopen=no
7019 fi
7020
7021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7022       conftest$ac_exeext conftest.$ac_ext
7023 LIBS=$ac_check_lib_save_LIBS
7024 fi
7025 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7026 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
7027 if test $ac_cv_lib_dl_dlopen = yes; then
7028   have_dl=yes
7029 else
7030   have_dl=no
7031 fi
7032
7033
7034     # Step 3: set configuration options based on system name and version.
7035     # This is similar to Tcl's unix/tcl.m4 except that we've added a
7036     # "windows" case and CC_SEARCH_FLAGS becomes LD_SEARCH_FLAGS for us
7037     # (and we have no CC_SEARCH_FLAGS).
7038
7039     do64bit_ok=no
7040     LDFLAGS_ORIG="$LDFLAGS"
7041     TCL_EXPORT_FILE_SUFFIX=""
7042     UNSHARED_LIB_SUFFIX=""
7043     TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
7044     ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
7045     TCL_LIB_VERSIONS_OK=ok
7046     CFLAGS_DEBUG=-g
7047     if test "$GCC" = "yes" ; then
7048         CFLAGS_OPTIMIZE=-O2
7049         CFLAGS_WARNING="-Wall -Wno-implicit-int"
7050     else
7051         CFLAGS_OPTIMIZE=-O
7052         CFLAGS_WARNING=""
7053     fi
7054     TCL_NEEDS_EXP_FILE=0
7055     TCL_BUILD_EXP_FILE=""
7056     TCL_EXP_FILE=""
7057     # Extract the first word of "ar", so it can be a program name with args.
7058 set dummy ar; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_prog_AR+set}" = set; then
7062   echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064   if test -n "$AR"; then
7065   ac_cv_prog_AR="$AR" # Let the user override the test.
7066 else
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7069 do
7070   IFS=$as_save_IFS
7071   test -z "$as_dir" && as_dir=.
7072   for ac_exec_ext in '' $ac_executable_extensions; do
7073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074     ac_cv_prog_AR="ar"
7075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076     break 2
7077   fi
7078 done
7079 done
7080 IFS=$as_save_IFS
7081
7082 fi
7083 fi
7084 AR=$ac_cv_prog_AR
7085 if test -n "$AR"; then
7086   { echo "$as_me:$LINENO: result: $AR" >&5
7087 echo "${ECHO_T}$AR" >&6; }
7088 else
7089   { echo "$as_me:$LINENO: result: no" >&5
7090 echo "${ECHO_T}no" >&6; }
7091 fi
7092
7093
7094     STLIB_LD='${AR} cr'
7095     LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
7096     case $system in
7097         windows)
7098             # This is a 2-stage check to make sure we have the 64-bit SDK
7099             # We have to know where the SDK is installed.
7100             if test "$do64bit" = "yes" ; then
7101                 if test "x${MSSDK}x" = "xx" ; then
7102                     MSSDK="C:/Progra~1/Microsoft SDK"
7103                 fi
7104                 # Ensure that this path has no spaces to work in autoconf
7105
7106     if test "${TEA_PLATFORM}" = "windows" ; then
7107         # we need TCLSH_PROG defined to get Windows short pathnames
7108
7109
7110         { echo "$as_me:$LINENO: checking short pathname for MSSDK (${MSSDK})" >&5
7111 echo $ECHO_N "checking short pathname for MSSDK (${MSSDK})... $ECHO_C" >&6; }
7112
7113         shortpath=
7114         case "${MSSDK}" in
7115             *\ *)
7116                 # Only do this if we need to.
7117                 shortpath=`echo "puts [file attributes {${MSSDK}} -shortname] ; exit" | ${TCLSH_PROG} 2>/dev/null`
7118                 ;;
7119         esac
7120         if test "x${shortpath}" = "x" ; then
7121             { echo "$as_me:$LINENO: result: not changed" >&5
7122 echo "${ECHO_T}not changed" >&6; }
7123         else
7124             MSSDK=$shortpath
7125             { echo "$as_me:$LINENO: result: ${MSSDK}" >&5
7126 echo "${ECHO_T}${MSSDK}" >&6; }
7127         fi
7128     fi
7129
7130                 if test ! -d "${MSSDK}/bin/win64" ; then
7131                     { echo "$as_me:$LINENO: WARNING: could not find 64-bit SDK to enable 64bit mode" >&5
7132 echo "$as_me: WARNING: could not find 64-bit SDK to enable 64bit mode" >&2;}
7133                     do64bit="no"
7134                 else
7135                     do64bit_ok="yes"
7136                 fi
7137             fi
7138
7139             if test "$doWince" != "no" ; then
7140                 if test "$do64bit" = "yes" ; then
7141                     { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5
7142 echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;}
7143    { (exit 1); exit 1; }; }
7144                 fi
7145                 if test "$GCC" = "yes" ; then
7146                     { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5
7147 echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;}
7148    { (exit 1); exit 1; }; }
7149                 fi
7150
7151     # First, look for one uninstalled.
7152     # the alternative search directory is invoked by --with-celib
7153
7154     if test x"${no_celib}" = x ; then
7155         # we reset no_celib in case something fails here
7156         no_celib=true
7157
7158 # Check whether --with-celib was given.
7159 if test "${with_celib+set}" = set; then
7160   withval=$with_celib; with_celibconfig=${withval}
7161 fi
7162
7163         { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5
7164 echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; }
7165         if test "${ac_cv_c_celibconfig+set}" = set; then
7166   echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168
7169             # First check to see if --with-celibconfig was specified.
7170             if test x"${with_celibconfig}" != x ; then
7171                 if test -d "${with_celibconfig}/inc" ; then
7172                     ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)`
7173                 else
7174                     { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5
7175 echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;}
7176    { (exit 1); exit 1; }; }
7177                 fi
7178             fi
7179
7180             # then check for a celib library
7181             if test x"${ac_cv_c_celibconfig}" = x ; then
7182                 for i in \
7183                         ../celib-palm-3.0 \
7184                         ../celib \
7185                         ../../celib-palm-3.0 \
7186                         ../../celib \
7187                         `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \
7188                         ${srcdir}/../celib-palm-3.0 \
7189                         ${srcdir}/../celib \
7190                         `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \
7191                         ; do
7192                     if test -d "$i/inc" ; then
7193                         ac_cv_c_celibconfig=`(cd $i; pwd)`
7194                         break
7195                     fi
7196                 done
7197             fi
7198
7199 fi
7200
7201         if test x"${ac_cv_c_celibconfig}" = x ; then
7202             { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5
7203 echo "$as_me: error: Cannot find celib support library directory" >&2;}
7204    { (exit 1); exit 1; }; }
7205         else
7206             no_celib=
7207             CELIB_DIR=${ac_cv_c_celibconfig}
7208             { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5
7209 echo "${ECHO_T}found $CELIB_DIR" >&6; }
7210
7211     if test "${TEA_PLATFORM}" = "windows" ; then
7212         # we need TCLSH_PROG defined to get Windows short pathnames
7213
7214
7215         { echo "$as_me:$LINENO: checking short pathname for CELIB_DIR (${ac_cv_c_celibconfig})" >&5
7216 echo $ECHO_N "checking short pathname for CELIB_DIR (${ac_cv_c_celibconfig})... $ECHO_C" >&6; }
7217
7218         shortpath=
7219         case "${ac_cv_c_celibconfig}" in
7220             *\ *)
7221                 # Only do this if we need to.
7222                 shortpath=`echo "puts [file attributes {${ac_cv_c_celibconfig}} -shortname] ; exit" | ${TCLSH_PROG} 2>/dev/null`
7223                 ;;
7224         esac
7225         if test "x${shortpath}" = "x" ; then
7226             { echo "$as_me:$LINENO: result: not changed" >&5
7227 echo "${ECHO_T}not changed" >&6; }
7228         else
7229             CELIB_DIR=$shortpath
7230             { echo "$as_me:$LINENO: result: ${CELIB_DIR}" >&5
7231 echo "${ECHO_T}${CELIB_DIR}" >&6; }
7232         fi
7233     fi
7234
7235         fi
7236     fi
7237
7238                 # Set defaults for common evc4/PPC2003 setup
7239                 # Currently Tcl requires 300+, possibly 420+ for sockets
7240                 CEVERSION=420;          # could be 211 300 301 400 420 ...
7241                 TARGETCPU=ARMV4;        # could be ARMV4 ARM MIPS SH3 X86 ...
7242                 ARCH=ARM;               # could be ARM MIPS X86EM ...
7243                 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002"
7244                 if test "$doWince" != "yes"; then
7245                     # If !yes then the user specified something
7246                     # Reset ARCH to allow user to skip specifying it
7247                     ARCH=
7248                     eval `echo $doWince | awk -F, '{ \
7249             if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \
7250             if ($1 < 400)   { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \
7251             if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \
7252             if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \
7253             if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \
7254                     }'`
7255                     if test "x${ARCH}" = "x" ; then
7256                         ARCH=$TARGETCPU;
7257                     fi
7258                 fi
7259                 OSVERSION=WCE$CEVERSION;
7260                 if test "x${WCEROOT}" = "x" ; then
7261                         WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0"
7262                     if test ! -d "${WCEROOT}" ; then
7263                         WCEROOT="C:/Program Files/Microsoft eMbedded Tools"
7264                     fi
7265                 fi
7266                 if test "x${SDKROOT}" = "x" ; then
7267                     SDKROOT="C:/Program Files/Windows CE Tools"
7268                     if test ! -d "${SDKROOT}" ; then
7269                         SDKROOT="C:/Windows CE Tools"
7270                     fi
7271                 fi
7272                 # Ensure that this path has no spaces to work in autoconf
7273
7274     if test "${TEA_PLATFORM}" = "windows" ; then
7275         # we need TCLSH_PROG defined to get Windows short pathnames
7276
7277
7278         { echo "$as_me:$LINENO: checking short pathname for WCEROOT (${WCEROOT})" >&5
7279 echo $ECHO_N "checking short pathname for WCEROOT (${WCEROOT})... $ECHO_C" >&6; }
7280
7281         shortpath=
7282         case "${WCEROOT}" in
7283             *\ *)
7284                 # Only do this if we need to.
7285                 shortpath=`echo "puts [file attributes {${WCEROOT}} -shortname] ; exit" | ${TCLSH_PROG} 2>/dev/null`
7286                 ;;
7287         esac
7288         if test "x${shortpath}" = "x" ; then
7289             { echo "$as_me:$LINENO: result: not changed" >&5
7290 echo "${ECHO_T}not changed" >&6; }
7291         else
7292             WCEROOT=$shortpath
7293             { echo "$as_me:$LINENO: result: ${WCEROOT}" >&5
7294 echo "${ECHO_T}${WCEROOT}" >&6; }
7295         fi
7296     fi
7297
7298
7299     if test "${TEA_PLATFORM}" = "windows" ; then
7300         # we need TCLSH_PROG defined to get Windows short pathnames
7301
7302
7303         { echo "$as_me:$LINENO: checking short pathname for SDKROOT (${SDKROOT})" >&5
7304 echo $ECHO_N "checking short pathname for SDKROOT (${SDKROOT})... $ECHO_C" >&6; }
7305
7306         shortpath=
7307         case "${SDKROOT}" in
7308             *\ *)
7309                 # Only do this if we need to.
7310                 shortpath=`echo "puts [file attributes {${SDKROOT}} -shortname] ; exit" | ${TCLSH_PROG} 2>/dev/null`
7311                 ;;
7312         esac
7313         if test "x${shortpath}" = "x" ; then
7314             { echo "$as_me:$LINENO: result: not changed" >&5
7315 echo "${ECHO_T}not changed" >&6; }
7316         else
7317             SDKROOT=$shortpath
7318             { echo "$as_me:$LINENO: result: ${SDKROOT}" >&5
7319 echo "${ECHO_T}${SDKROOT}" >&6; }
7320         fi
7321     fi
7322
7323                 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \
7324                     -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then
7325                     { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5
7326 echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;}
7327    { (exit 1); exit 1; }; }
7328                     doWince="no"
7329                 else
7330                     # We could PATH_NOSPACE these, but that's not important,
7331                     # as long as we quote them when used.
7332                     CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include"
7333                     if test -d "${CEINCLUDE}/${TARGETCPU}" ; then
7334                         CEINCLUDE="${CEINCLUDE}/${TARGETCPU}"
7335                     fi
7336                     CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"
7337                 fi
7338             fi
7339
7340             if test "$GCC" != "yes" ; then
7341                 if test "${SHARED_BUILD}" = "0" ; then
7342                     runtime=-MT
7343                 else
7344                     runtime=-MD
7345                 fi
7346
7347                 if test "$do64bit" = "yes" ; then
7348                     # All this magic is necessary for the Win64 SDK RC1 - hobbs
7349                     CC="${MSSDK}/Bin/Win64/cl.exe"
7350                     CFLAGS="${CFLAGS} -I${MSSDK}/Include/prerelease \
7351                         -I${MSSDK}/Include/Win64/crt \
7352                         -I${MSSDK}/Include"
7353                     RC="${MSSDK}/bin/rc.exe"
7354                     lflags="-MACHINE:IA64 -LIBPATH:${MSSDK}/Lib/IA64 \
7355                         -LIBPATH:${MSSDK}/Lib/Prerelease/IA64 -nologo"
7356                     LINKBIN="${MSSDK}/bin/win64/link.exe"
7357                     CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
7358                     CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7359                 elif test "$doWince" != "no" ; then
7360                     CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin"
7361                     if test "${TARGETCPU}" = "X86"; then
7362                         CC="${CEBINROOT}/cl.exe"
7363                     else
7364                         CC="${CEBINROOT}/cl${ARCH}.exe"
7365                     fi
7366                     CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\""
7367                     RC="${WCEROOT}/Common/EVC/bin/rc.exe"
7368                     arch=`echo ${ARCH} | awk '{print tolower($0)}'`
7369                     defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS"
7370                     if test "${SHARED_BUILD}" = "1" ; then
7371                         # Static CE builds require static celib as well
7372                         defs="${defs} _DLL"
7373                     fi
7374                     for i in $defs ; do
7375                         cat >>confdefs.h <<_ACEOF
7376 #define $i 1
7377 _ACEOF
7378
7379                     done
7380                     cat >>confdefs.h <<_ACEOF
7381 #define _WIN32_WCE $CEVERSION
7382 _ACEOF
7383
7384                     cat >>confdefs.h <<_ACEOF
7385 #define UNDER_CE $CEVERSION
7386 _ACEOF
7387
7388                     CFLAGS_DEBUG="-nologo -Zi -Od"
7389                     CFLAGS_OPTIMIZE="-nologo -Ox"
7390                     lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'`
7391                     lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo"
7392                     LINKBIN="${CEBINROOT}/link.exe"
7393
7394                 else
7395                     RC="rc"
7396                     lflags="-nologo"
7397                     LINKBIN="link"
7398                     CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
7399                     CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7400                 fi
7401             fi
7402
7403             if test "$GCC" = "yes"; then
7404                 # mingw gcc mode
7405                 RC="windres"
7406                 CFLAGS_DEBUG="-g"
7407                 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7408                 SHLIB_LD="$CC -shared"
7409                 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7410                 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
7411                 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
7412             else
7413                 SHLIB_LD="${LINKBIN} -dll ${lflags}"
7414                 # link -lib only works when -lib is the first arg
7415                 STLIB_LD="${LINKBIN} -lib ${lflags}"
7416                 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
7417                 PATHTYPE=-w
7418                 # For information on what debugtype is most useful, see:
7419                 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
7420                 # This essentially turns it all on.
7421                 LDFLAGS_DEBUG="-debug:full -debugtype:both -warn:2"
7422                 LDFLAGS_OPTIMIZE="-release"
7423                 if test "$doWince" != "no" ; then
7424                     LDFLAGS_CONSOLE="-link ${lflags}"
7425                     LDFLAGS_WINDOW=${LDFLAGS_CONSOLE}
7426                 else
7427                     LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
7428                     LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
7429                 fi
7430             fi
7431
7432             SHLIB_LD_LIBS='${LIBS}'
7433             SHLIB_SUFFIX=".dll"
7434             SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
7435
7436             TCL_LIB_VERSIONS_OK=nodots
7437             # Bogus to avoid getting this turned off
7438             DL_OBJS="tclLoadNone.obj"
7439             ;;
7440         AIX-*)
7441             if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
7442                 # AIX requires the _r compiler when gcc isn't being used
7443                 if test "${CC}" != "cc_r" ; then
7444                     CC=${CC}_r
7445                 fi
7446                 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5
7447 echo "${ECHO_T}Using $CC for compiling with threads" >&6; }
7448             fi
7449             LIBS="$LIBS -lc"
7450             SHLIB_CFLAGS=""
7451             SHLIB_SUFFIX=".so"
7452             SHLIB_LD_LIBS='${LIBS}'
7453
7454             DL_OBJS="tclLoadDl.o"
7455             LD_LIBRARY_PATH_VAR="LIBPATH"
7456
7457             # AIX v<=4.1 has some different flags than 4.2+
7458             if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
7459                 #LIBOBJS="$LIBOBJS tclLoadAix.o"
7460                 case " $LIBOBJS " in
7461   *" tclLoadAix.$ac_objext "* ) ;;
7462   *) LIBOBJS="$LIBOBJS tclLoadAix.$ac_objext"
7463  ;;
7464 esac
7465
7466                 DL_LIBS="-lld"
7467             fi
7468
7469             # Check to enable 64-bit flags for compiler/linker on AIX 4+
7470             if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
7471                 if test "$GCC" = "yes" ; then
7472                     { echo "$as_me:$LINENO: WARNING: \"64bit mode not supported with GCC on $system\"" >&5
7473 echo "$as_me: WARNING: \"64bit mode not supported with GCC on $system\"" >&2;}
7474                 else
7475                     do64bit_ok=yes
7476                     CFLAGS="$CFLAGS -q64"
7477                     LDFLAGS="$LDFLAGS -q64"
7478                     RANLIB="${RANLIB} -X64"
7479                     AR="${AR} -X64"
7480                     SHLIB_LD_FLAGS="-b64"
7481                 fi
7482             fi
7483
7484             if test "`uname -m`" = "ia64" ; then
7485                 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
7486                 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7487                 # AIX-5 has dl* in libc.so
7488                 DL_LIBS=""
7489                 if test "$GCC" = "yes" ; then
7490                     LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7491                 else
7492                     LD_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
7493                 fi
7494             else
7495                 if test "$GCC" = "yes" ; then
7496                     SHLIB_LD="gcc -shared"
7497                 else
7498                     SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
7499                 fi
7500                 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
7501                 DL_LIBS="-ldl"
7502                 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7503                 TCL_NEEDS_EXP_FILE=1
7504                 TCL_EXPORT_FILE_SUFFIX='${PACKAGE_VERSION}.exp'
7505             fi
7506
7507             # On AIX <=v4 systems, libbsd.a has to be linked in to support
7508             # non-blocking file IO.  This library has to be linked in after
7509             # the MATH_LIBS or it breaks the pow() function.  The way to
7510             # insure proper sequencing, is to add it to the tail of MATH_LIBS.
7511             # This library also supplies gettimeofday.
7512             #
7513             # AIX does not have a timezone field in struct tm. When the AIX
7514             # bsd library is used, the timezone global and the gettimeofday
7515             # methods are to be avoided for timezone deduction instead, we
7516             # deduce the timezone by comparing the localtime result on a
7517             # known GMT value.
7518
7519             { echo "$as_me:$LINENO: checking for gettimeofday in -lbsd" >&5
7520 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6; }
7521 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
7522   echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524   ac_check_lib_save_LIBS=$LIBS
7525 LIBS="-lbsd  $LIBS"
7526 cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h.  */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h.  */
7532
7533 /* Override any GCC internal prototype to avoid an error.
7534    Use char because int might match the return type of a GCC
7535    builtin and then its argument prototype would still apply.  */
7536 #ifdef __cplusplus
7537 extern "C"
7538 #endif
7539 char gettimeofday ();
7540 int
7541 main ()
7542 {
7543 return gettimeofday ();
7544   ;
7545   return 0;
7546 }
7547 _ACEOF
7548 rm -f conftest.$ac_objext conftest$ac_exeext
7549 if { (ac_try="$ac_link"
7550 case "(($ac_try" in
7551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552   *) ac_try_echo=$ac_try;;
7553 esac
7554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7555   (eval "$ac_link") 2>conftest.er1
7556   ac_status=$?
7557   grep -v '^ *+' conftest.er1 >conftest.err
7558   rm -f conftest.er1
7559   cat conftest.err >&5
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); } && {
7562          test -z "$ac_c_werror_flag" ||
7563          test ! -s conftest.err
7564        } && test -s conftest$ac_exeext &&
7565        $as_test_x conftest$ac_exeext; then
7566   ac_cv_lib_bsd_gettimeofday=yes
7567 else
7568   echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7570
7571         ac_cv_lib_bsd_gettimeofday=no
7572 fi
7573
7574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7575       conftest$ac_exeext conftest.$ac_ext
7576 LIBS=$ac_check_lib_save_LIBS
7577 fi
7578 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gettimeofday" >&5
7579 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6; }
7580 if test $ac_cv_lib_bsd_gettimeofday = yes; then
7581   libbsd=yes
7582 else
7583   libbsd=no
7584 fi
7585
7586             if test $libbsd = yes; then
7587                 MATH_LIBS="$MATH_LIBS -lbsd"
7588                 cat >>confdefs.h <<\_ACEOF
7589 #define USE_DELTA_FOR_TZ 1
7590 _ACEOF
7591
7592             fi
7593             ;;
7594         BeOS*)
7595             SHLIB_CFLAGS="-fPIC"
7596             SHLIB_LD="${CC} -nostart"
7597             SHLIB_LD_LIBS='${LIBS}'
7598             SHLIB_SUFFIX=".so"
7599             DL_OBJS="tclLoadDl.o"
7600             DL_LIBS="-ldl"
7601             ;;
7602         BSD/OS-2.1*|BSD/OS-3*)
7603             SHLIB_CFLAGS=""
7604             SHLIB_LD="shlicc -r"
7605             SHLIB_LD_LIBS='${LIBS}'
7606             SHLIB_SUFFIX=".so"
7607             DL_OBJS="tclLoadDl.o"
7608             DL_LIBS="-ldl"
7609             LD_SEARCH_FLAGS=""
7610             ;;
7611         BSD/OS-4.*)
7612             SHLIB_CFLAGS="-export-dynamic -fPIC"
7613             SHLIB_LD="cc -shared"
7614             SHLIB_LD_LIBS='${LIBS}'
7615             SHLIB_SUFFIX=".so"
7616             DL_OBJS="tclLoadDl.o"
7617             DL_LIBS="-ldl"
7618             LDFLAGS="$LDFLAGS -export-dynamic"
7619             LD_SEARCH_FLAGS=""
7620             ;;
7621         dgux*)
7622             SHLIB_CFLAGS="-K PIC"
7623             SHLIB_LD="cc -G"
7624             SHLIB_LD_LIBS=""
7625             SHLIB_SUFFIX=".so"
7626             DL_OBJS="tclLoadDl.o"
7627             DL_LIBS="-ldl"
7628             LD_SEARCH_FLAGS=""
7629             ;;
7630         HP-UX-*.11.*)
7631             # Use updated header definitions where possible
7632             cat >>confdefs.h <<\_ACEOF
7633 #define _XOPEN_SOURCE_EXTENDED 1
7634 _ACEOF
7635
7636
7637             SHLIB_SUFFIX=".sl"
7638             { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7639 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
7640 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7641   echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643   ac_check_lib_save_LIBS=$LIBS
7644 LIBS="-ldld  $LIBS"
7645 cat >conftest.$ac_ext <<_ACEOF
7646 /* confdefs.h.  */
7647 _ACEOF
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h.  */
7651
7652 /* Override any GCC internal prototype to avoid an error.
7653    Use char because int might match the return type of a GCC
7654    builtin and then its argument prototype would still apply.  */
7655 #ifdef __cplusplus
7656 extern "C"
7657 #endif
7658 char shl_load ();
7659 int
7660 main ()
7661 {
7662 return shl_load ();
7663   ;
7664   return 0;
7665 }
7666 _ACEOF
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (ac_try="$ac_link"
7669 case "(($ac_try" in
7670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671   *) ac_try_echo=$ac_try;;
7672 esac
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674   (eval "$ac_link") 2>conftest.er1
7675   ac_status=$?
7676   grep -v '^ *+' conftest.er1 >conftest.err
7677   rm -f conftest.er1
7678   cat conftest.err >&5
7679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680   (exit $ac_status); } && {
7681          test -z "$ac_c_werror_flag" ||
7682          test ! -s conftest.err
7683        } && test -s conftest$ac_exeext &&
7684        $as_test_x conftest$ac_exeext; then
7685   ac_cv_lib_dld_shl_load=yes
7686 else
7687   echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7689
7690         ac_cv_lib_dld_shl_load=no
7691 fi
7692
7693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7694       conftest$ac_exeext conftest.$ac_ext
7695 LIBS=$ac_check_lib_save_LIBS
7696 fi
7697 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7698 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
7699 if test $ac_cv_lib_dld_shl_load = yes; then
7700   tcl_ok=yes
7701 else
7702   tcl_ok=no
7703 fi
7704
7705             if test "$tcl_ok" = yes; then
7706                 SHLIB_CFLAGS="+z"
7707                 SHLIB_LD="ld -b"
7708                 SHLIB_LD_LIBS='${LIBS}'
7709                 DL_OBJS="tclLoadShl.o"
7710                 DL_LIBS="-ldld"
7711                 LDFLAGS="$LDFLAGS -Wl,-E"
7712                 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
7713                 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7714             fi
7715             if test "$GCC" = "yes" ; then
7716                 SHLIB_LD="gcc -shared"
7717                 SHLIB_LD_LIBS='${LIBS}'
7718                 LD_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
7719             fi
7720
7721             # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
7722             #CFLAGS="$CFLAGS +DAportable"
7723
7724             # Check to enable 64-bit flags for compiler/linker
7725             if test "$do64bit" = "yes" ; then
7726                 if test "$GCC" = "yes" ; then
7727                     hpux_arch=`${CC} -dumpmachine`
7728                     case $hpux_arch in
7729                         hppa64*)
7730                             # 64-bit gcc in use.  Fix flags for GNU ld.
7731                             do64bit_ok=yes
7732                             SHLIB_LD="${CC} -shared"
7733                             SHLIB_LD_LIBS='${LIBS}'
7734                             ;;
7735                         *)
7736                             { echo "$as_me:$LINENO: WARNING: \"64bit mode not supported with GCC on $system\"" >&5
7737 echo "$as_me: WARNING: \"64bit mode not supported with GCC on $system\"" >&2;}
7738                             ;;
7739                     esac
7740                 else
7741                     do64bit_ok=yes
7742                     CFLAGS="$CFLAGS +DD64"
7743                     LDFLAGS="$LDFLAGS +DD64"
7744                 fi
7745             fi
7746             ;;
7747         HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
7748             SHLIB_SUFFIX=".sl"
7749             { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7750 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
7751 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7752   echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754   ac_check_lib_save_LIBS=$LIBS
7755 LIBS="-ldld  $LIBS"
7756 cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h.  */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h.  */
7762
7763 /* Override any GCC internal prototype to avoid an error.
7764    Use char because int might match the return type of a GCC
7765    builtin and then its argument prototype would still apply.  */
7766 #ifdef __cplusplus
7767 extern "C"
7768 #endif
7769 char shl_load ();
7770 int
7771 main ()
7772 {
7773 return shl_load ();
7774   ;
7775   return 0;
7776 }
7777 _ACEOF
7778 rm -f conftest.$ac_objext conftest$ac_exeext
7779 if { (ac_try="$ac_link"
7780 case "(($ac_try" in
7781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782   *) ac_try_echo=$ac_try;;
7783 esac
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785   (eval "$ac_link") 2>conftest.er1
7786   ac_status=$?
7787   grep -v '^ *+' conftest.er1 >conftest.err
7788   rm -f conftest.er1
7789   cat conftest.err >&5
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); } && {
7792          test -z "$ac_c_werror_flag" ||
7793          test ! -s conftest.err
7794        } && test -s conftest$ac_exeext &&
7795        $as_test_x conftest$ac_exeext; then
7796   ac_cv_lib_dld_shl_load=yes
7797 else
7798   echo "$as_me: failed program was:" >&5
7799 sed 's/^/| /' conftest.$ac_ext >&5
7800
7801         ac_cv_lib_dld_shl_load=no
7802 fi
7803
7804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7805       conftest$ac_exeext conftest.$ac_ext
7806 LIBS=$ac_check_lib_save_LIBS
7807 fi
7808 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7809 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
7810 if test $ac_cv_lib_dld_shl_load = yes; then
7811   tcl_ok=yes
7812 else
7813   tcl_ok=no
7814 fi
7815
7816             if test "$tcl_ok" = yes; then
7817                 SHLIB_CFLAGS="+z"
7818                 SHLIB_LD="ld -b"
7819                 SHLIB_LD_LIBS=""
7820                 DL_OBJS="tclLoadShl.o"
7821                 DL_LIBS="-ldld"
7822                 LDFLAGS="$LDFLAGS -Wl,-E"
7823                 LD_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
7824             fi
7825             LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7826             ;;
7827         IRIX-4.*)
7828             SHLIB_CFLAGS="-G 0"
7829             SHLIB_SUFFIX=".a"
7830             SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
7831             SHLIB_LD_LIBS='${LIBS}'
7832             DL_OBJS="tclLoadAout.o"
7833             DL_LIBS=""
7834             LDFLAGS="$LDFLAGS -Wl,-D,08000000"
7835             LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7836             SHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
7837             ;;
7838         IRIX-5.*)
7839             SHLIB_CFLAGS=""
7840             SHLIB_LD="ld -shared -rdata_shared"
7841             SHLIB_LD_LIBS='${LIBS}'
7842             SHLIB_SUFFIX=".so"
7843             DL_OBJS="tclLoadDl.o"
7844             DL_LIBS=""
7845             LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7846             ;;
7847         IRIX-6.*|IRIX64-6.5*)
7848             SHLIB_CFLAGS=""
7849             SHLIB_LD="ld -n32 -shared -rdata_shared"
7850             SHLIB_LD_LIBS='${LIBS}'
7851             SHLIB_SUFFIX=".so"
7852             DL_OBJS="tclLoadDl.o"
7853             DL_LIBS=""
7854             LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7855             if test "$GCC" = "yes" ; then
7856                 CFLAGS="$CFLAGS -mabi=n32"
7857                 LDFLAGS="$LDFLAGS -mabi=n32"
7858             else
7859                 case $system in
7860                     IRIX-6.3)
7861                         # Use to build 6.2 compatible binaries on 6.3.
7862                         CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
7863                         ;;
7864                     *)
7865                         CFLAGS="$CFLAGS -n32"
7866                         ;;
7867                 esac
7868                 LDFLAGS="$LDFLAGS -n32"
7869             fi
7870             ;;
7871         IRIX64-6.*)
7872             SHLIB_CFLAGS=""
7873             SHLIB_LD="ld -n32 -shared -rdata_shared"
7874             SHLIB_LD_LIBS='${LIBS}'
7875             SHLIB_SUFFIX=".so"
7876             DL_OBJS="tclLoadDl.o"
7877             DL_LIBS=""
7878             LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7879
7880             # Check to enable 64-bit flags for compiler/linker
7881
7882             if test "$do64bit" = "yes" ; then
7883                 if test "$GCC" = "yes" ; then
7884                     { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5
7885 echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
7886                 else
7887                     do64bit_ok=yes
7888                     SHLIB_LD="ld -64 -shared -rdata_shared"
7889                     CFLAGS="$CFLAGS -64"
7890                     LDFLAGS="$LDFLAGS -64"
7891                 fi
7892             fi
7893             ;;
7894         Linux*)
7895             SHLIB_CFLAGS="-fPIC"
7896             SHLIB_LD_LIBS='${LIBS}'
7897             SHLIB_SUFFIX=".so"
7898
7899             CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7900             # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
7901             # when you inline the string and math operations.  Turn this off to
7902             # get rid of the warnings.
7903
7904             #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
7905
7906             if test "$have_dl" = yes; then
7907                 SHLIB_LD="${CC} -shared"
7908                 DL_OBJS="tclLoadDl.o"
7909                 DL_LIBS="-ldl"
7910                 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7911                 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7912             else
7913                 if test "${ac_cv_header_dld_h+set}" = set; then
7914   { echo "$as_me:$LINENO: checking for dld.h" >&5
7915 echo $ECHO_N "checking for dld.h... $ECHO_C" >&6; }
7916 if test "${ac_cv_header_dld_h+set}" = set; then
7917   echo $ECHO_N "(cached) $ECHO_C" >&6
7918 fi
7919 { echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
7920 echo "${ECHO_T}$ac_cv_header_dld_h" >&6; }
7921 else
7922   # Is the header compilable?
7923 { echo "$as_me:$LINENO: checking dld.h usability" >&5
7924 echo $ECHO_N "checking dld.h usability... $ECHO_C" >&6; }
7925 cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h.  */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h.  */
7931 $ac_includes_default
7932 #include <dld.h>
7933 _ACEOF
7934 rm -f conftest.$ac_objext
7935 if { (ac_try="$ac_compile"
7936 case "(($ac_try" in
7937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938   *) ac_try_echo=$ac_try;;
7939 esac
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941   (eval "$ac_compile") 2>conftest.er1
7942   ac_status=$?
7943   grep -v '^ *+' conftest.er1 >conftest.err
7944   rm -f conftest.er1
7945   cat conftest.err >&5
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); } && {
7948          test -z "$ac_c_werror_flag" ||
7949          test ! -s conftest.err
7950        } && test -s conftest.$ac_objext; then
7951   ac_header_compiler=yes
7952 else
7953   echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956         ac_header_compiler=no
7957 fi
7958
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7961 echo "${ECHO_T}$ac_header_compiler" >&6; }
7962
7963 # Is the header present?
7964 { echo "$as_me:$LINENO: checking dld.h presence" >&5
7965 echo $ECHO_N "checking dld.h presence... $ECHO_C" >&6; }
7966 cat >conftest.$ac_ext <<_ACEOF
7967 /* confdefs.h.  */
7968 _ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h.  */
7972 #include <dld.h>
7973 _ACEOF
7974 if { (ac_try="$ac_cpp conftest.$ac_ext"
7975 case "(($ac_try" in
7976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977   *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7981   ac_status=$?
7982   grep -v '^ *+' conftest.er1 >conftest.err
7983   rm -f conftest.er1
7984   cat conftest.err >&5
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); } >/dev/null && {
7987          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7988          test ! -s conftest.err
7989        }; then
7990   ac_header_preproc=yes
7991 else
7992   echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7994
7995   ac_header_preproc=no
7996 fi
7997
7998 rm -f conftest.err conftest.$ac_ext
7999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8000 echo "${ECHO_T}$ac_header_preproc" >&6; }
8001
8002 # So?  What about this header?
8003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8004   yes:no: )
8005     { echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5
8006 echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8007     { echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5
8008 echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;}
8009     ac_header_preproc=yes
8010     ;;
8011   no:yes:* )
8012     { echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5
8013 echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;}
8014     { echo "$as_me:$LINENO: WARNING: dld.h:     check for missing prerequisite headers?" >&5
8015 echo "$as_me: WARNING: dld.h:     check for missing prerequisite headers?" >&2;}
8016     { echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5
8017 echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;}
8018     { echo "$as_me:$LINENO: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&5
8019 echo "$as_me: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8020     { echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5
8021 echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;}
8022     { echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5
8023 echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;}
8024
8025     ;;
8026 esac
8027 { echo "$as_me:$LINENO: checking for dld.h" >&5
8028 echo $ECHO_N "checking for dld.h... $ECHO_C" >&6; }
8029 if test "${ac_cv_header_dld_h+set}" = set; then
8030   echo $ECHO_N "(cached) $ECHO_C" >&6
8031 else
8032   ac_cv_header_dld_h=$ac_header_preproc
8033 fi
8034 { echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
8035 echo "${ECHO_T}$ac_cv_header_dld_h" >&6; }
8036
8037 fi
8038 if test $ac_cv_header_dld_h = yes; then
8039
8040                     SHLIB_LD="ld -shared"
8041                     DL_OBJS="tclLoadDld.o"
8042                     DL_LIBS="-ldld"
8043                     LD_SEARCH_FLAGS=""
8044 fi
8045
8046
8047             fi
8048             if test "`uname -m`" = "alpha" ; then
8049                 CFLAGS="$CFLAGS -mieee"
8050             fi
8051
8052             # The combo of gcc + glibc has a bug related
8053             # to inlining of functions like strtod(). The
8054             # -fno-builtin flag should address this problem
8055             # but it does not work. The -fno-inline flag
8056             # is kind of overkill but it works.
8057             # Disable inlining only when one of the
8058             # files in compat/*.c is being linked in.
8059             if test x"${USE_COMPAT}" != x ; then
8060                 CFLAGS="$CFLAGS -fno-inline"
8061             fi
8062
8063             ;;
8064         GNU*)
8065             SHLIB_CFLAGS="-fPIC"
8066             SHLIB_LD_LIBS='${LIBS}'
8067             SHLIB_SUFFIX=".so"
8068
8069             if test "$have_dl" = yes; then
8070                 SHLIB_LD="${CC} -shared"
8071                 DL_OBJS=""
8072                 DL_LIBS="-ldl"
8073                 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
8074                 LD_SEARCH_FLAGS=""
8075             else
8076                 if test "${ac_cv_header_dld_h+set}" = set; then
8077   { echo "$as_me:$LINENO: checking for dld.h" >&5
8078 echo $ECHO_N "checking for dld.h... $ECHO_C" >&6; }
8079 if test "${ac_cv_header_dld_h+set}" = set; then
8080   echo $ECHO_N "(cached) $ECHO_C" >&6
8081 fi
8082 { echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
8083 echo "${ECHO_T}$ac_cv_header_dld_h" >&6; }
8084 else
8085   # Is the header compilable?
8086 { echo "$as_me:$LINENO: checking dld.h usability" >&5
8087 echo $ECHO_N "checking dld.h usability... $ECHO_C" >&6; }
8088 cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094 $ac_includes_default
8095 #include <dld.h>
8096 _ACEOF
8097 rm -f conftest.$ac_objext
8098 if { (ac_try="$ac_compile"
8099 case "(($ac_try" in
8100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101   *) ac_try_echo=$ac_try;;
8102 esac
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104   (eval "$ac_compile") 2>conftest.er1
8105   ac_status=$?
8106   grep -v '^ *+' conftest.er1 >conftest.err
8107   rm -f conftest.er1
8108   cat conftest.err >&5
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } && {
8111          test -z "$ac_c_werror_flag" ||
8112          test ! -s conftest.err
8113        } && test -s conftest.$ac_objext; then
8114   ac_header_compiler=yes
8115 else
8116   echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8118
8119         ac_header_compiler=no
8120 fi
8121
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8124 echo "${ECHO_T}$ac_header_compiler" >&6; }
8125
8126 # Is the header present?
8127 { echo "$as_me:$LINENO: checking dld.h presence" >&5
8128 echo $ECHO_N "checking dld.h presence... $ECHO_C" >&6; }
8129 cat >conftest.$ac_ext <<_ACEOF
8130 /* confdefs.h.  */
8131 _ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h.  */
8135 #include <dld.h>
8136 _ACEOF
8137 if { (ac_try="$ac_cpp conftest.$ac_ext"
8138 case "(($ac_try" in
8139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140   *) ac_try_echo=$ac_try;;
8141 esac
8142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8143   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8144   ac_status=$?
8145   grep -v '^ *+' conftest.er1 >conftest.err
8146   rm -f conftest.er1
8147   cat conftest.err >&5
8148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); } >/dev/null && {
8150          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8151          test ! -s conftest.err
8152        }; then
8153   ac_header_preproc=yes
8154 else
8155   echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8157
8158   ac_header_preproc=no
8159 fi
8160
8161 rm -f conftest.err conftest.$ac_ext
8162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8163 echo "${ECHO_T}$ac_header_preproc" >&6; }
8164
8165 # So?  What about this header?
8166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8167   yes:no: )
8168     { echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5
8169 echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8170     { echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5
8171 echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;}
8172     ac_header_preproc=yes
8173     ;;
8174   no:yes:* )
8175     { echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5
8176 echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;}
8177     { echo "$as_me:$LINENO: WARNING: dld.h:     check for missing prerequisite headers?" >&5
8178 echo "$as_me: WARNING: dld.h:     check for missing prerequisite headers?" >&2;}
8179     { echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5
8180 echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;}
8181     { echo "$as_me:$LINENO: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&5
8182 echo "$as_me: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8183     { echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5
8184 echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;}
8185     { echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5
8186 echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;}
8187
8188     ;;
8189 esac
8190 { echo "$as_me:$LINENO: checking for dld.h" >&5
8191 echo $ECHO_N "checking for dld.h... $ECHO_C" >&6; }
8192 if test "${ac_cv_header_dld_h+set}" = set; then
8193   echo $ECHO_N "(cached) $ECHO_C" >&6
8194 else
8195   ac_cv_header_dld_h=$ac_header_preproc
8196 fi
8197 { echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
8198 echo "${ECHO_T}$ac_cv_header_dld_h" >&6; }
8199
8200 fi
8201 if test $ac_cv_header_dld_h = yes; then
8202
8203                     SHLIB_LD="ld -shared"
8204                     DL_OBJS=""
8205                     DL_LIBS="-ldld"
8206                     LD_SEARCH_FLAGS=""
8207 fi
8208
8209
8210             fi
8211             if test "`uname -m`" = "alpha" ; then
8212                 CFLAGS="$CFLAGS -mieee"
8213             fi
8214             ;;
8215         MP-RAS-02*)
8216             SHLIB_CFLAGS="-K PIC"
8217             SHLIB_LD="cc -G"
8218             SHLIB_LD_LIBS=""
8219             SHLIB_SUFFIX=".so"
8220             DL_OBJS="tclLoadDl.o"
8221             DL_LIBS="-ldl"
8222             LD_SEARCH_FLAGS=""
8223             ;;
8224         MP-RAS-*)
8225             SHLIB_CFLAGS="-K PIC"
8226             SHLIB_LD="cc -G"
8227             SHLIB_LD_LIBS=""
8228             SHLIB_SUFFIX=".so"
8229             DL_OBJS="tclLoadDl.o"
8230             DL_LIBS="-ldl"
8231             LDFLAGS="$LDFLAGS -Wl,-Bexport"
8232             LD_SEARCH_FLAGS=""
8233             ;;
8234         NetBSD-*|FreeBSD-[1-2].*)
8235             # Not available on all versions:  check for include file.
8236             if test "${ac_cv_header_dlfcn_h+set}" = set; then
8237   { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
8238 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
8239 if test "${ac_cv_header_dlfcn_h+set}" = set; then
8240   echo $ECHO_N "(cached) $ECHO_C" >&6
8241 fi
8242 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
8243 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
8244 else
8245   # Is the header compilable?
8246 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
8247 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
8248 cat >conftest.$ac_ext <<_ACEOF
8249 /* confdefs.h.  */
8250 _ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h.  */
8254 $ac_includes_default
8255 #include <dlfcn.h>
8256 _ACEOF
8257 rm -f conftest.$ac_objext
8258 if { (ac_try="$ac_compile"
8259 case "(($ac_try" in
8260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261   *) ac_try_echo=$ac_try;;
8262 esac
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264   (eval "$ac_compile") 2>conftest.er1
8265   ac_status=$?
8266   grep -v '^ *+' conftest.er1 >conftest.err
8267   rm -f conftest.er1
8268   cat conftest.err >&5
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   (exit $ac_status); } && {
8271          test -z "$ac_c_werror_flag" ||
8272          test ! -s conftest.err
8273        } && test -s conftest.$ac_objext; then
8274   ac_header_compiler=yes
8275 else
8276   echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8278
8279         ac_header_compiler=no
8280 fi
8281
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8284 echo "${ECHO_T}$ac_header_compiler" >&6; }
8285
8286 # Is the header present?
8287 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
8288 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
8289 cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h.  */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h.  */
8295 #include <dlfcn.h>
8296 _ACEOF
8297 if { (ac_try="$ac_cpp conftest.$ac_ext"
8298 case "(($ac_try" in
8299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300   *) ac_try_echo=$ac_try;;
8301 esac
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8304   ac_status=$?
8305   grep -v '^ *+' conftest.er1 >conftest.err
8306   rm -f conftest.er1
8307   cat conftest.err >&5
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); } >/dev/null && {
8310          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8311          test ! -s conftest.err
8312        }; then
8313   ac_header_preproc=yes
8314 else
8315   echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8317
8318   ac_header_preproc=no
8319 fi
8320
8321 rm -f conftest.err conftest.$ac_ext
8322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8323 echo "${ECHO_T}$ac_header_preproc" >&6; }
8324
8325 # So?  What about this header?
8326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8327   yes:no: )
8328     { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
8329 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8330     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
8331 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
8332     ac_header_preproc=yes
8333     ;;
8334   no:yes:* )
8335     { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
8336 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
8337     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
8338 echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
8339     { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
8340 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
8341     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
8342 echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8343     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
8344 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
8345     { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
8346 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
8347
8348     ;;
8349 esac
8350 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
8351 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
8352 if test "${ac_cv_header_dlfcn_h+set}" = set; then
8353   echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355   ac_cv_header_dlfcn_h=$ac_header_preproc
8356 fi
8357 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
8358 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
8359
8360 fi
8361 if test $ac_cv_header_dlfcn_h = yes; then
8362
8363                 # NetBSD/SPARC needs -fPIC, -fpic will not do.
8364                 SHLIB_CFLAGS="-fPIC"
8365                 SHLIB_LD="ld -Bshareable -x"
8366                 SHLIB_LD_LIBS=""
8367                 SHLIB_SUFFIX=".so"
8368                 DL_OBJS="tclLoadDl.o"
8369                 DL_LIBS=""
8370                 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8371                 { echo "$as_me:$LINENO: checking for ELF" >&5
8372 echo $ECHO_N "checking for ELF... $ECHO_C" >&6; }
8373                 cat >conftest.$ac_ext <<_ACEOF
8374 /* confdefs.h.  */
8375 _ACEOF
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h.  */
8379
8380 #ifdef __ELF__
8381         yes
8382 #endif
8383
8384 _ACEOF
8385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8386   $EGREP "yes" >/dev/null 2>&1; then
8387   { echo "$as_me:$LINENO: result: yes" >&5
8388 echo "${ECHO_T}yes" >&6; }
8389                     SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
8390 else
8391   { echo "$as_me:$LINENO: result: no" >&5
8392 echo "${ECHO_T}no" >&6; }
8393                     SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
8394
8395 fi
8396 rm -f conftest*
8397
8398
8399 else
8400
8401                 SHLIB_CFLAGS=""
8402                 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
8403                 SHLIB_LD_LIBS='${LIBS}'
8404                 SHLIB_SUFFIX=".a"
8405                 DL_OBJS="tclLoadAout.o"
8406                 DL_LIBS=""
8407                 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
8408                 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8409
8410 fi
8411
8412
8413
8414             # FreeBSD doesn't handle version numbers with dots.
8415
8416             UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8417             TCL_LIB_VERSIONS_OK=nodots
8418             ;;
8419         OpenBSD-*)
8420             SHLIB_LD="${CC} -shared"
8421             SHLIB_LD_LIBS='${LIBS}'
8422             SHLIB_SUFFIX=".so"
8423             DL_OBJS="tclLoadDl.o"
8424             DL_LIBS=""
8425             LD_SEARCH_FLAGS=""
8426             { echo "$as_me:$LINENO: checking for ELF" >&5
8427 echo $ECHO_N "checking for ELF... $ECHO_C" >&6; }
8428             cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h.  */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h.  */
8434
8435 #ifdef __ELF__
8436         yes
8437 #endif
8438
8439 _ACEOF
8440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8441   $EGREP "yes" >/dev/null 2>&1; then
8442   { echo "$as_me:$LINENO: result: yes" >&5
8443 echo "${ECHO_T}yes" >&6; }
8444                 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
8445 else
8446   { echo "$as_me:$LINENO: result: no" >&5
8447 echo "${ECHO_T}no" >&6; }
8448                 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
8449
8450 fi
8451 rm -f conftest*
8452
8453
8454             # OpenBSD doesn't do version numbers with dots.
8455             UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8456             TCL_LIB_VERSIONS_OK=nodots
8457             ;;
8458         FreeBSD-*)
8459             # FreeBSD 3.* and greater have ELF.
8460             SHLIB_CFLAGS="-fPIC"
8461             SHLIB_LD="ld -Bshareable -x"
8462             SHLIB_LD_LIBS='${LIBS}'
8463             SHLIB_SUFFIX=".so"
8464             DL_OBJS="tclLoadDl.o"
8465             DL_LIBS=""
8466             LDFLAGS="$LDFLAGS -export-dynamic"
8467             LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8468             if test "${TCL_THREADS}" = "1" ; then
8469                 # The -pthread needs to go in the CFLAGS, not LIBS
8470                 LIBS=`echo $LIBS | sed s/-pthread//`
8471                 CFLAGS="$CFLAGS -pthread"
8472                 LDFLAGS="$LDFLAGS -pthread"
8473             fi
8474             case $system in
8475             FreeBSD-3.*)
8476                 # FreeBSD-3 doesn't handle version numbers with dots.
8477                 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8478                 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
8479                 TCL_LIB_VERSIONS_OK=nodots
8480                 ;;
8481             esac
8482             ;;
8483         Darwin-*)
8484             SHLIB_CFLAGS="-fno-common"
8485             SHLIB_LD="cc -dynamiclib \${LDFLAGS}"
8486             SHLIB_LD_LIBS='${LIBS}'
8487             SHLIB_SUFFIX=".dylib"
8488             DL_OBJS="tclLoadDyld.o"
8489             DL_LIBS=""
8490             LDFLAGS="$LDFLAGS -prebind -Wl,-search_paths_first"
8491             LD_SEARCH_FLAGS=""
8492             LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
8493             CFLAGS_OPTIMIZE="-Os"
8494             ;;
8495         NEXTSTEP-*)
8496             SHLIB_CFLAGS=""
8497             SHLIB_LD="cc -nostdlib -r"
8498             SHLIB_LD_LIBS=""
8499             SHLIB_SUFFIX=".so"
8500             DL_OBJS="tclLoadNext.o"
8501             DL_LIBS=""
8502             LD_SEARCH_FLAGS=""
8503             ;;
8504         OS/390-*)
8505             CFLAGS_OPTIMIZE=""      # Optimizer is buggy
8506             cat >>confdefs.h <<\_ACEOF
8507 #define _OE_SOCKETS 1
8508 _ACEOF
8509   # needed in sys/socket.h
8510             ;;
8511         OSF1-1.0|OSF1-1.1|OSF1-1.2)
8512             # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
8513             SHLIB_CFLAGS=""
8514             # Hack: make package name same as library name
8515             SHLIB_LD='ld -R -export :'
8516             SHLIB_LD_LIBS=""
8517             SHLIB_SUFFIX=".so"
8518             DL_OBJS="tclLoadOSF.o"
8519             DL_LIBS=""
8520             LD_SEARCH_FLAGS=""
8521             ;;
8522         OSF1-1.*)
8523             # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
8524             SHLIB_CFLAGS="-fPIC"
8525             if test "$SHARED_BUILD" = "1" ; then
8526                 SHLIB_LD="ld -shared"
8527             else
8528                 SHLIB_LD="ld -non_shared"
8529             fi
8530             SHLIB_LD_LIBS=""
8531             SHLIB_SUFFIX=".so"
8532             DL_OBJS="tclLoadDl.o"
8533             DL_LIBS=""
8534             LD_SEARCH_FLAGS=""
8535             ;;
8536         OSF1-V*)
8537             # Digital OSF/1
8538             SHLIB_CFLAGS=""
8539             if test "$SHARED_BUILD" = "1" ; then
8540                 SHLIB_LD='ld -shared -expect_unresolved "*"'
8541             else
8542                 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
8543             fi
8544             SHLIB_LD_LIBS=""
8545             SHLIB_SUFFIX=".so"
8546             DL_OBJS="tclLoadDl.o"
8547             DL_LIBS=""
8548             LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8549             if test "$GCC" = "yes" ; then
8550                 CFLAGS="$CFLAGS -mieee"
8551             else
8552                 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
8553             fi
8554             # see pthread_intro(3) for pthread support on osf1, k.furukawa
8555             if test "${TCL_THREADS}" = "1" ; then
8556                 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
8557                 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
8558                 LIBS=`echo $LIBS | sed s/-lpthreads//`
8559                 if test "$GCC" = "yes" ; then
8560                     LIBS="$LIBS -lpthread -lmach -lexc"
8561                 else
8562                     CFLAGS="$CFLAGS -pthread"
8563                     LDFLAGS="$LDFLAGS -pthread"
8564                 fi
8565             fi
8566
8567             ;;
8568         QNX-6*)
8569             # QNX RTP
8570             # This may work for all QNX, but it was only reported for v6.
8571             SHLIB_CFLAGS="-fPIC"
8572             SHLIB_LD="ld -Bshareable -x"
8573             SHLIB_LD_LIBS=""
8574             SHLIB_SUFFIX=".so"
8575             DL_OBJS="tclLoadDl.o"
8576             # dlopen is in -lc on QNX
8577             DL_LIBS=""
8578             LD_SEARCH_FLAGS=""
8579             ;;
8580         RISCos-*)
8581             SHLIB_CFLAGS="-G 0"
8582             SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
8583             SHLIB_LD_LIBS='${LIBS}'
8584             SHLIB_SUFFIX=".a"
8585             DL_OBJS="tclLoadAout.o"
8586             DL_LIBS=""
8587             LDFLAGS="$LDFLAGS -Wl,-D,08000000"
8588             LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
8589             ;;
8590         SCO_SV-3.2*)
8591             # Note, dlopen is available only on SCO 3.2.5 and greater. However,
8592             # this test works, since "uname -s" was non-standard in 3.2.4 and
8593             # below.
8594             if test "$GCC" = "yes" ; then
8595                 SHLIB_CFLAGS="-fPIC -melf"
8596                 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
8597             else
8598                 SHLIB_CFLAGS="-Kpic -belf"
8599                 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
8600             fi
8601             SHLIB_LD="ld -G"
8602             SHLIB_LD_LIBS=""
8603             SHLIB_SUFFIX=".so"
8604             DL_OBJS="tclLoadDl.o"
8605             DL_LIBS=""
8606             LD_SEARCH_FLAGS=""
8607             ;;
8608         SINIX*5.4*)
8609             SHLIB_CFLAGS="-K PIC"
8610             SHLIB_LD="cc -G"
8611             SHLIB_LD_LIBS=""
8612             SHLIB_SUFFIX=".so"
8613             DL_OBJS="tclLoadDl.o"
8614             DL_LIBS="-ldl"
8615             LD_SEARCH_FLAGS=""
8616             ;;
8617         SunOS-4*)
8618             SHLIB_CFLAGS="-PIC"
8619             SHLIB_LD="ld"
8620             SHLIB_LD_LIBS=""
8621             SHLIB_SUFFIX=".so"
8622             DL_OBJS="tclLoadDl.o"
8623             DL_LIBS="-ldl"
8624             LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
8625
8626             # SunOS can't handle version numbers with dots in them in library
8627             # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
8628             # requires an extra version number at the end of .so file names.
8629             # So, the library has to have a name like libtcl75.so.1.0
8630
8631             SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
8632             UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8633             TCL_LIB_VERSIONS_OK=nodots
8634             ;;
8635         SunOS-5.[0-6]*)
8636
8637             # Note: If _REENTRANT isn't defined, then Solaris
8638             # won't define thread-safe library routines.
8639
8640             cat >>confdefs.h <<\_ACEOF
8641 #define _REENTRANT 1
8642 _ACEOF
8643
8644             cat >>confdefs.h <<\_ACEOF
8645 #define _POSIX_PTHREAD_SEMANTICS 1
8646 _ACEOF
8647
8648
8649             SHLIB_CFLAGS="-KPIC"
8650
8651             # Note: need the LIBS below, otherwise Tk won't find Tcl's
8652             # symbols when dynamically loaded into tclsh.
8653
8654             SHLIB_LD_LIBS='${LIBS}'
8655             SHLIB_SUFFIX=".so"
8656             DL_OBJS="tclLoadDl.o"
8657             DL_LIBS="-ldl"
8658             if test "$GCC" = "yes" ; then
8659                 SHLIB_LD="$CC -shared"
8660                 LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
8661             else
8662                 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
8663                 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
8664             fi
8665             ;;
8666         SunOS-5*)
8667
8668             # Note: If _REENTRANT isn't defined, then Solaris
8669             # won't define thread-safe library routines.
8670
8671             cat >>confdefs.h <<\_ACEOF
8672 #define _REENTRANT 1
8673 _ACEOF
8674
8675             cat >>confdefs.h <<\_ACEOF
8676 #define _POSIX_PTHREAD_SEMANTICS 1
8677 _ACEOF
8678
8679
8680             SHLIB_CFLAGS="-KPIC"
8681
8682             # Check to enable 64-bit flags for compiler/linker
8683             if test "$do64bit" = "yes" ; then
8684                 arch=`isainfo`
8685                 if test "$arch" = "sparcv9 sparc" ; then
8686                         if test "$GCC" = "yes" ; then
8687                             if test "`gcc -dumpversion` | awk -F. '{print $1}'" -lt "3" ; then
8688                                 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
8689 echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
8690                             else
8691                                 do64bit_ok=yes
8692                                 CFLAGS="$CFLAGS -m64 -mcpu=v9"
8693                                 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
8694                                 SHLIB_CFLAGS="-fPIC"
8695                             fi
8696                         else
8697                             do64bit_ok=yes
8698                             if test "$do64bitVIS" = "yes" ; then
8699                                 CFLAGS="$CFLAGS -xarch=v9a"
8700                                 LDFLAGS="$LDFLAGS -xarch=v9a"
8701                             else
8702                                 CFLAGS="$CFLAGS -xarch=v9"
8703                                 LDFLAGS="$LDFLAGS -xarch=v9"
8704                             fi
8705                         fi
8706                 else
8707                     { echo "$as_me:$LINENO: WARNING: \"64bit mode only supported sparcv9 system\"" >&5
8708 echo "$as_me: WARNING: \"64bit mode only supported sparcv9 system\"" >&2;}
8709                 fi
8710             fi
8711
8712             # Note: need the LIBS below, otherwise Tk won't find Tcl's
8713             # symbols when dynamically loaded into tclsh.
8714
8715             SHLIB_LD_LIBS='${LIBS}'
8716             SHLIB_SUFFIX=".so"
8717             DL_OBJS="tclLoadDl.o"
8718             DL_LIBS="-ldl"
8719             if test "$GCC" = "yes" ; then
8720                 SHLIB_LD="$CC -shared"
8721                 LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
8722                 if test "$do64bit" = "yes" ; then
8723                     # We need to specify -static-libgcc or we need to
8724                     # add the path to the sparv9 libgcc.
8725                     # JH: static-libgcc is necessary for core Tcl, but may
8726                     # not be necessary for extensions.
8727                     SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
8728                     # for finding sparcv9 libgcc, get the regular libgcc
8729                     # path, remove so name and append 'sparcv9'
8730                     #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
8731                     #LD_SEARCH_FLAGS="${LD_SEARCH_FLAGS},-R,$v9gcclibdir"
8732                 fi
8733             else
8734                 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
8735                 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
8736             fi
8737             ;;
8738         ULTRIX-4.*)
8739             SHLIB_CFLAGS="-G 0"
8740             SHLIB_SUFFIX=".a"
8741             SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
8742             SHLIB_LD_LIBS='${LIBS}'
8743             DL_OBJS="tclLoadAout.o"
8744             DL_LIBS=""
8745             LDFLAGS="$LDFLAGS -Wl,-D,08000000"
8746             LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
8747             if test "$GCC" != "yes" ; then
8748                 CFLAGS="$CFLAGS -DHAVE_TZSET -std1"
8749             fi
8750             ;;
8751         UNIX_SV* | UnixWare-5*)
8752             SHLIB_CFLAGS="-KPIC"
8753             SHLIB_LD="cc -G"
8754             SHLIB_LD_LIBS=""
8755             SHLIB_SUFFIX=".so"
8756             DL_OBJS="tclLoadDl.o"
8757             DL_LIBS="-ldl"
8758             # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
8759             # that don't grok the -Bexport option.  Test that it does.
8760             hold_ldflags=$LDFLAGS
8761             { echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5
8762 echo $ECHO_N "checking for ld accepts -Bexport flag... $ECHO_C" >&6; }
8763             LDFLAGS="$LDFLAGS -Wl,-Bexport"
8764             cat >conftest.$ac_ext <<_ACEOF
8765 /* confdefs.h.  */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h.  */
8770
8771 int
8772 main ()
8773 {
8774 int i;
8775   ;
8776   return 0;
8777 }
8778 _ACEOF
8779 rm -f conftest.$ac_objext conftest$ac_exeext
8780 if { (ac_try="$ac_link"
8781 case "(($ac_try" in
8782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783   *) ac_try_echo=$ac_try;;
8784 esac
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786   (eval "$ac_link") 2>conftest.er1
8787   ac_status=$?
8788   grep -v '^ *+' conftest.er1 >conftest.err
8789   rm -f conftest.er1
8790   cat conftest.err >&5
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); } && {
8793          test -z "$ac_c_werror_flag" ||
8794          test ! -s conftest.err
8795        } && test -s conftest$ac_exeext &&
8796        $as_test_x conftest$ac_exeext; then
8797   found=yes
8798 else
8799   echo "$as_me: failed program was:" >&5
8800 sed 's/^/| /' conftest.$ac_ext >&5
8801
8802         LDFLAGS=$hold_ldflags found=no
8803 fi
8804
8805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8806       conftest$ac_exeext conftest.$ac_ext
8807             { echo "$as_me:$LINENO: result: $found" >&5
8808 echo "${ECHO_T}$found" >&6; }
8809             LD_SEARCH_FLAGS=""
8810             ;;
8811     esac
8812
8813     if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
8814     { echo "$as_me:$LINENO: WARNING: \"64bit support being disabled -- don\'t know magic for this platform\"" >&5
8815 echo "$as_me: WARNING: \"64bit support being disabled -- don\'t know magic for this platform\"" >&2;}
8816     fi
8817
8818     # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic
8819     # Loading for Tcl -- What Became of It?".  Proc. 2nd Tcl/Tk Workshop,
8820     # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need
8821     # to determine which of several header files defines the a.out file
8822     # format (a.out.h, sys/exec.h, or sys/exec_aout.h).  At present, we
8823     # support only a file format that is more or less version-7-compatible.
8824     # In particular,
8825     #   - a.out files must begin with `struct exec'.
8826     #   - the N_TXTOFF on the `struct exec' must compute the seek address
8827     #     of the text segment
8828     #   - The `struct exec' must contain a_magic, a_text, a_data, a_bss
8829     #     and a_entry fields.
8830     # The following compilation should succeed if and only if either sys/exec.h
8831     # or a.out.h is usable for the purpose.
8832     #
8833     # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the
8834     # `struct exec' includes a second header that contains information that
8835     # duplicates the v7 fields that are needed.
8836
8837     if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
8838         { echo "$as_me:$LINENO: checking sys/exec.h" >&5
8839 echo $ECHO_N "checking sys/exec.h... $ECHO_C" >&6; }
8840         cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h.  */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h.  */
8846 #include <sys/exec.h>
8847 int
8848 main ()
8849 {
8850
8851             struct exec foo;
8852             unsigned long seek;
8853             int flag;
8854 #if defined(__mips) || defined(mips)
8855             seek = N_TXTOFF (foo.ex_f, foo.ex_o);
8856 #else
8857             seek = N_TXTOFF (foo);
8858 #endif
8859             flag = (foo.a_magic == OMAGIC);
8860             return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
8861
8862   ;
8863   return 0;
8864 }
8865 _ACEOF
8866 rm -f conftest.$ac_objext
8867 if { (ac_try="$ac_compile"
8868 case "(($ac_try" in
8869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870   *) ac_try_echo=$ac_try;;
8871 esac
8872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8873   (eval "$ac_compile") 2>conftest.er1
8874   ac_status=$?
8875   grep -v '^ *+' conftest.er1 >conftest.err
8876   rm -f conftest.er1
8877   cat conftest.err >&5
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); } && {
8880          test -z "$ac_c_werror_flag" ||
8881          test ! -s conftest.err
8882        } && test -s conftest.$ac_objext; then
8883   tcl_ok=usable
8884 else
8885   echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8887
8888         tcl_ok=unusable
8889 fi
8890
8891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892         { echo "$as_me:$LINENO: result: $tcl_ok" >&5
8893 echo "${ECHO_T}$tcl_ok" >&6; }
8894         if test $tcl_ok = usable; then
8895             cat >>confdefs.h <<\_ACEOF
8896 #define USE_SYS_EXEC_H 1
8897 _ACEOF
8898
8899         else
8900             { echo "$as_me:$LINENO: checking a.out.h" >&5
8901 echo $ECHO_N "checking a.out.h... $ECHO_C" >&6; }
8902             cat >conftest.$ac_ext <<_ACEOF
8903 /* confdefs.h.  */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h.  */
8908 #include <a.out.h>
8909 int
8910 main ()
8911 {
8912
8913                 struct exec foo;
8914                 unsigned long seek;
8915                 int flag;
8916 #if defined(__mips) || defined(mips)
8917                 seek = N_TXTOFF (foo.ex_f, foo.ex_o);
8918 #else
8919                 seek = N_TXTOFF (foo);
8920 #endif
8921                 flag = (foo.a_magic == OMAGIC);
8922                 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
8923
8924   ;
8925   return 0;
8926 }
8927 _ACEOF
8928 rm -f conftest.$ac_objext
8929 if { (ac_try="$ac_compile"
8930 case "(($ac_try" in
8931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932   *) ac_try_echo=$ac_try;;
8933 esac
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935   (eval "$ac_compile") 2>conftest.er1
8936   ac_status=$?
8937   grep -v '^ *+' conftest.er1 >conftest.err
8938   rm -f conftest.er1
8939   cat conftest.err >&5
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); } && {
8942          test -z "$ac_c_werror_flag" ||
8943          test ! -s conftest.err
8944        } && test -s conftest.$ac_objext; then
8945   tcl_ok=usable
8946 else
8947   echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8949
8950         tcl_ok=unusable
8951 fi
8952
8953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954             { echo "$as_me:$LINENO: result: $tcl_ok" >&5
8955 echo "${ECHO_T}$tcl_ok" >&6; }
8956             if test $tcl_ok = usable; then
8957                 cat >>confdefs.h <<\_ACEOF
8958 #define USE_A_OUT_H 1
8959 _ACEOF
8960
8961             else
8962                 { echo "$as_me:$LINENO: checking sys/exec_aout.h" >&5
8963 echo $ECHO_N "checking sys/exec_aout.h... $ECHO_C" >&6; }
8964                 cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h.  */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h.  */
8970 #include <sys/exec_aout.h>
8971 int
8972 main ()
8973 {
8974
8975                     struct exec foo;
8976                     unsigned long seek;
8977                     int flag;
8978 #if defined(__mips) || defined(mips)
8979                     seek = N_TXTOFF (foo.ex_f, foo.ex_o);
8980 #else
8981                     seek = N_TXTOFF (foo);
8982 #endif
8983                     flag = (foo.a_midmag == OMAGIC);
8984                     return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
8985
8986   ;
8987   return 0;
8988 }
8989 _ACEOF
8990 rm -f conftest.$ac_objext
8991 if { (ac_try="$ac_compile"
8992 case "(($ac_try" in
8993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994   *) ac_try_echo=$ac_try;;
8995 esac
8996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997   (eval "$ac_compile") 2>conftest.er1
8998   ac_status=$?
8999   grep -v '^ *+' conftest.er1 >conftest.err
9000   rm -f conftest.er1
9001   cat conftest.err >&5
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); } && {
9004          test -z "$ac_c_werror_flag" ||
9005          test ! -s conftest.err
9006        } && test -s conftest.$ac_objext; then
9007   tcl_ok=usable
9008 else
9009   echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9011
9012         tcl_ok=unusable
9013 fi
9014
9015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9016                 { echo "$as_me:$LINENO: result: $tcl_ok" >&5
9017 echo "${ECHO_T}$tcl_ok" >&6; }
9018                 if test $tcl_ok = usable; then
9019                     cat >>confdefs.h <<\_ACEOF
9020 #define USE_SYS_EXEC_AOUT_H 1
9021 _ACEOF
9022
9023                 else
9024                     DL_OBJS=""
9025                 fi
9026             fi
9027         fi
9028     fi
9029
9030     # Step 5: disable dynamic loading if requested via a command-line switch.
9031
9032     # Check whether --enable-load was given.
9033 if test "${enable_load+set}" = set; then
9034   enableval=$enable_load; tcl_ok=$enableval
9035 else
9036   tcl_ok=yes
9037 fi
9038
9039     if test "$tcl_ok" = "no"; then
9040         DL_OBJS=""
9041     fi
9042
9043     if test "x$DL_OBJS" != "x" ; then
9044         BUILD_DLTEST="\$(DLTEST_TARGETS)"
9045     else
9046         echo "Can't figure out how to do dynamic loading or shared libraries"
9047         echo "on this system."
9048         SHLIB_CFLAGS=""
9049         SHLIB_LD=""
9050         SHLIB_SUFFIX=""
9051         DL_OBJS="tclLoadNone.o"
9052         DL_LIBS=""
9053         LDFLAGS="$LDFLAGS_ORIG"
9054         LD_SEARCH_FLAGS=""
9055         BUILD_DLTEST=""
9056     fi
9057
9058     # If we're running gcc, then change the C flags for compiling shared
9059     # libraries to the right flags for gcc, instead of those for the
9060     # standard manufacturer compiler.
9061
9062     if test "$DL_OBJS" != "tclLoadNone.o" ; then
9063         if test "$GCC" = "yes" ; then
9064             case $system in
9065                 AIX-*)
9066                     ;;
9067                 BSD/OS*)
9068                     ;;
9069                 IRIX*)
9070                     ;;
9071                 NetBSD-*|FreeBSD-*)
9072                     ;;
9073                 Darwin-*)
9074                     ;;
9075                 RISCos-*)
9076                     ;;
9077                 SCO_SV-3.2*)
9078                     ;;
9079                 ULTRIX-4.*)
9080                     ;;
9081                 windows)
9082                     ;;
9083                 *)
9084                     SHLIB_CFLAGS="-fPIC"
9085                     ;;
9086             esac
9087         fi
9088     fi
9089
9090     if test "$SHARED_LIB_SUFFIX" = "" ; then
9091         SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
9092     fi
9093     if test "$UNSHARED_LIB_SUFFIX" = "" ; then
9094         UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
9095     fi
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110     # These must be called after we do the basic CFLAGS checks and
9111     # verify any possible 64-bit or similar switches are necessary
9112
9113     { echo "$as_me:$LINENO: checking for required early compiler flags" >&5
9114 echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; }
9115     tcl_flags=""
9116
9117     if test "${tcl_cv_flag__isoc99_source+set}" = set; then
9118   echo $ECHO_N "(cached) $ECHO_C" >&6
9119 else
9120   cat >conftest.$ac_ext <<_ACEOF
9121 /* confdefs.h.  */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h.  */
9126 #include <stdlib.h>
9127 int
9128 main ()
9129 {
9130 char *p = (char *)strtoll; char *q = (char *)strtoull;
9131   ;
9132   return 0;
9133 }
9134 _ACEOF
9135 rm -f conftest.$ac_objext
9136 if { (ac_try="$ac_compile"
9137 case "(($ac_try" in
9138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9139   *) ac_try_echo=$ac_try;;
9140 esac
9141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9142   (eval "$ac_compile") 2>conftest.er1
9143   ac_status=$?
9144   grep -v '^ *+' conftest.er1 >conftest.err
9145   rm -f conftest.er1
9146   cat conftest.err >&5
9147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   (exit $ac_status); } && {
9149          test -z "$ac_c_werror_flag" ||
9150          test ! -s conftest.err
9151        } && test -s conftest.$ac_objext; then
9152   tcl_cv_flag__isoc99_source=no
9153 else
9154   echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9156
9157         cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h.  */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h.  */
9163 #define _ISOC99_SOURCE 1
9164 #include <stdlib.h>
9165 int
9166 main ()
9167 {
9168 char *p = (char *)strtoll; char *q = (char *)strtoull;
9169   ;
9170   return 0;
9171 }
9172 _ACEOF
9173 rm -f conftest.$ac_objext
9174 if { (ac_try="$ac_compile"
9175 case "(($ac_try" in
9176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177   *) ac_try_echo=$ac_try;;
9178 esac
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180   (eval "$ac_compile") 2>conftest.er1
9181   ac_status=$?
9182   grep -v '^ *+' conftest.er1 >conftest.err
9183   rm -f conftest.er1
9184   cat conftest.err >&5
9185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186   (exit $ac_status); } && {
9187          test -z "$ac_c_werror_flag" ||
9188          test ! -s conftest.err
9189        } && test -s conftest.$ac_objext; then
9190   tcl_cv_flag__isoc99_source=yes
9191 else
9192   echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9194
9195         tcl_cv_flag__isoc99_source=no
9196 fi
9197
9198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199 fi
9200
9201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9202 fi
9203
9204     if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
9205         cat >>confdefs.h <<\_ACEOF
9206 #define _ISOC99_SOURCE 1
9207 _ACEOF
9208
9209         tcl_flags="$tcl_flags _ISOC99_SOURCE"
9210     fi
9211
9212
9213     if test "${tcl_cv_flag__largefile64_source+set}" = set; then
9214   echo $ECHO_N "(cached) $ECHO_C" >&6
9215 else
9216   cat >conftest.$ac_ext <<_ACEOF
9217 /* confdefs.h.  */
9218 _ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h.  */
9222 #include <sys/stat.h>
9223 int
9224 main ()
9225 {
9226 struct stat64 buf; int i = stat64("/", &buf);
9227   ;
9228   return 0;
9229 }
9230 _ACEOF
9231 rm -f conftest.$ac_objext
9232 if { (ac_try="$ac_compile"
9233 case "(($ac_try" in
9234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235   *) ac_try_echo=$ac_try;;
9236 esac
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238   (eval "$ac_compile") 2>conftest.er1
9239   ac_status=$?
9240   grep -v '^ *+' conftest.er1 >conftest.err
9241   rm -f conftest.er1
9242   cat conftest.err >&5
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); } && {
9245          test -z "$ac_c_werror_flag" ||
9246          test ! -s conftest.err
9247        } && test -s conftest.$ac_objext; then
9248   tcl_cv_flag__largefile64_source=no
9249 else
9250   echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9252
9253         cat >conftest.$ac_ext <<_ACEOF
9254 /* confdefs.h.  */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h.  */
9259 #define _LARGEFILE64_SOURCE 1
9260 #include <sys/stat.h>
9261 int
9262 main ()
9263 {
9264 struct stat64 buf; int i = stat64("/", &buf);
9265   ;
9266   return 0;
9267 }
9268 _ACEOF
9269 rm -f conftest.$ac_objext
9270 if { (ac_try="$ac_compile"
9271 case "(($ac_try" in
9272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273   *) ac_try_echo=$ac_try;;
9274 esac
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276   (eval "$ac_compile") 2>conftest.er1
9277   ac_status=$?
9278   grep -v '^ *+' conftest.er1 >conftest.err
9279   rm -f conftest.er1
9280   cat conftest.err >&5
9281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282   (exit $ac_status); } && {
9283          test -z "$ac_c_werror_flag" ||
9284          test ! -s conftest.err
9285        } && test -s conftest.$ac_objext; then
9286   tcl_cv_flag__largefile64_source=yes
9287 else
9288   echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9290
9291         tcl_cv_flag__largefile64_source=no
9292 fi
9293
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 fi
9296
9297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298 fi
9299
9300     if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
9301         cat >>confdefs.h <<\_ACEOF
9302 #define _LARGEFILE64_SOURCE 1
9303 _ACEOF
9304
9305         tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
9306     fi
9307
9308     if test "x${tcl_flags}" = "x" ; then
9309         { echo "$as_me:$LINENO: result: none" >&5
9310 echo "${ECHO_T}none" >&6; }
9311     else
9312         { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5
9313 echo "${ECHO_T}${tcl_flags}" >&6; }
9314     fi
9315
9316
9317     { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5
9318 echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; }
9319     if test "${tcl_cv_type_64bit+set}" = set; then
9320   echo $ECHO_N "(cached) $ECHO_C" >&6
9321 else
9322
9323         tcl_cv_type_64bit=none
9324         # See if the compiler knows natively about __int64
9325         cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h.  */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h.  */
9331
9332 int
9333 main ()
9334 {
9335 __int64 value = (__int64) 0;
9336   ;
9337   return 0;
9338 }
9339 _ACEOF
9340 rm -f conftest.$ac_objext
9341 if { (ac_try="$ac_compile"
9342 case "(($ac_try" in
9343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344   *) ac_try_echo=$ac_try;;
9345 esac
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347   (eval "$ac_compile") 2>conftest.er1
9348   ac_status=$?
9349   grep -v '^ *+' conftest.er1 >conftest.err
9350   rm -f conftest.er1
9351   cat conftest.err >&5
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); } && {
9354          test -z "$ac_c_werror_flag" ||
9355          test ! -s conftest.err
9356        } && test -s conftest.$ac_objext; then
9357   tcl_type_64bit=__int64
9358 else
9359   echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9361
9362         tcl_type_64bit="long long"
9363 fi
9364
9365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9366         # See if we should use long anyway  Note that we substitute in the
9367         # type that is our current guess for a 64-bit type inside this check
9368         # program, so it should be modified only carefully...
9369         cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h.  */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h.  */
9375
9376 int
9377 main ()
9378 {
9379 switch (0) {
9380             case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
9381         }
9382   ;
9383   return 0;
9384 }
9385 _ACEOF
9386 rm -f conftest.$ac_objext
9387 if { (ac_try="$ac_compile"
9388 case "(($ac_try" in
9389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390   *) ac_try_echo=$ac_try;;
9391 esac
9392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9393   (eval "$ac_compile") 2>conftest.er1
9394   ac_status=$?
9395   grep -v '^ *+' conftest.er1 >conftest.err
9396   rm -f conftest.er1
9397   cat conftest.err >&5
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); } && {
9400          test -z "$ac_c_werror_flag" ||
9401          test ! -s conftest.err
9402        } && test -s conftest.$ac_objext; then
9403   tcl_cv_type_64bit=${tcl_type_64bit}
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408
9409 fi
9410
9411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9412 fi
9413
9414     if test "${tcl_cv_type_64bit}" = none ; then
9415         cat >>confdefs.h <<\_ACEOF
9416 #define TCL_WIDE_INT_IS_LONG 1
9417 _ACEOF
9418
9419         { echo "$as_me:$LINENO: result: using long" >&5
9420 echo "${ECHO_T}using long" >&6; }
9421     elif test "${tcl_cv_type_64bit}" = "__int64" \
9422                 -a "${TEA_PLATFORM}" = "windows" ; then
9423         # We actually want to use the default tcl.h checks in this
9424         # case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
9425         { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5
9426 echo "${ECHO_T}using Tcl header defaults" >&6; }
9427     else
9428         cat >>confdefs.h <<_ACEOF
9429 #define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
9430 _ACEOF
9431
9432         { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5
9433 echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; }
9434
9435         # Now check for auxiliary declarations
9436         { echo "$as_me:$LINENO: checking for struct dirent64" >&5
9437 echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; }
9438         if test "${tcl_cv_struct_dirent64+set}" = set; then
9439   echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441
9442             cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h.  */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h.  */
9448 #include <sys/types.h>
9449 #include <sys/dirent.h>
9450 int
9451 main ()
9452 {
9453 struct dirent64 p;
9454   ;
9455   return 0;
9456 }
9457 _ACEOF
9458 rm -f conftest.$ac_objext
9459 if { (ac_try="$ac_compile"
9460 case "(($ac_try" in
9461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462   *) ac_try_echo=$ac_try;;
9463 esac
9464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465   (eval "$ac_compile") 2>conftest.er1
9466   ac_status=$?
9467   grep -v '^ *+' conftest.er1 >conftest.err
9468   rm -f conftest.er1
9469   cat conftest.err >&5
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); } && {
9472          test -z "$ac_c_werror_flag" ||
9473          test ! -s conftest.err
9474        } && test -s conftest.$ac_objext; then
9475   tcl_cv_struct_dirent64=yes
9476 else
9477   echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9479
9480         tcl_cv_struct_dirent64=no
9481 fi
9482
9483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9484 fi
9485
9486         if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
9487             cat >>confdefs.h <<\_ACEOF
9488 #define HAVE_STRUCT_DIRENT64 1
9489 _ACEOF
9490
9491         fi
9492         { echo "$as_me:$LINENO: result: ${tcl_cv_struct_dirent64}" >&5
9493 echo "${ECHO_T}${tcl_cv_struct_dirent64}" >&6; }
9494
9495         { echo "$as_me:$LINENO: checking for struct stat64" >&5
9496 echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; }
9497         if test "${tcl_cv_struct_stat64+set}" = set; then
9498   echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500
9501             cat >conftest.$ac_ext <<_ACEOF
9502 /* confdefs.h.  */
9503 _ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h.  */
9507 #include <sys/stat.h>
9508 int
9509 main ()
9510 {
9511 struct stat64 p;
9512
9513   ;
9514   return 0;
9515 }
9516 _ACEOF
9517 rm -f conftest.$ac_objext
9518 if { (ac_try="$ac_compile"
9519 case "(($ac_try" in
9520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521   *) ac_try_echo=$ac_try;;
9522 esac
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524   (eval "$ac_compile") 2>conftest.er1
9525   ac_status=$?
9526   grep -v '^ *+' conftest.er1 >conftest.err
9527   rm -f conftest.er1
9528   cat conftest.err >&5
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); } && {
9531          test -z "$ac_c_werror_flag" ||
9532          test ! -s conftest.err
9533        } && test -s conftest.$ac_objext; then
9534   tcl_cv_struct_stat64=yes
9535 else
9536   echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9538
9539         tcl_cv_struct_stat64=no
9540 fi
9541
9542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543 fi
9544
9545         if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
9546             cat >>confdefs.h <<\_ACEOF
9547 #define HAVE_STRUCT_STAT64 1
9548 _ACEOF
9549
9550         fi
9551         { echo "$as_me:$LINENO: result: ${tcl_cv_struct_stat64}" >&5
9552 echo "${ECHO_T}${tcl_cv_struct_stat64}" >&6; }
9553
9554         { echo "$as_me:$LINENO: checking for off64_t" >&5
9555 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; }
9556         if test "${tcl_cv_type_off64_t+set}" = set; then
9557   echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559
9560             cat >conftest.$ac_ext <<_ACEOF
9561 /* confdefs.h.  */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h.  */
9566 #include <sys/types.h>
9567 int
9568 main ()
9569 {
9570 off64_t offset;
9571
9572   ;
9573   return 0;
9574 }
9575 _ACEOF
9576 rm -f conftest.$ac_objext
9577 if { (ac_try="$ac_compile"
9578 case "(($ac_try" in
9579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580   *) ac_try_echo=$ac_try;;
9581 esac
9582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583   (eval "$ac_compile") 2>conftest.er1
9584   ac_status=$?
9585   grep -v '^ *+' conftest.er1 >conftest.err
9586   rm -f conftest.er1
9587   cat conftest.err >&5
9588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   (exit $ac_status); } && {
9590          test -z "$ac_c_werror_flag" ||
9591          test ! -s conftest.err
9592        } && test -s conftest.$ac_objext; then
9593   tcl_cv_type_off64_t=yes
9594 else
9595   echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9597
9598         tcl_cv_type_off64_t=no
9599 fi
9600
9601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602 fi
9603
9604         if test "x${tcl_cv_type_off64_t}" = "xyes" ; then
9605             cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_TYPE_OFF64_T 1
9607 _ACEOF
9608
9609         fi
9610         { echo "$as_me:$LINENO: result: ${tcl_cv_type_off64_t}" >&5
9611 echo "${ECHO_T}${tcl_cv_type_off64_t}" >&6; }
9612     fi
9613
9614
9615
9616 #--------------------------------------------------------------------
9617 # Set the default compiler switches based on the --enable-symbols
9618 # option.
9619 #--------------------------------------------------------------------
9620
9621
9622
9623
9624     DBGX=""
9625
9626     { echo "$as_me:$LINENO: checking for build with symbols" >&5
9627 echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; }
9628     # Check whether --enable-symbols was given.
9629 if test "${enable_symbols+set}" = set; then
9630   enableval=$enable_symbols; tcl_ok=$enableval
9631 else
9632   tcl_ok=no
9633 fi
9634
9635     if test "$tcl_ok" = "no"; then
9636         CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}"
9637         LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
9638         { echo "$as_me:$LINENO: result: no" >&5
9639 echo "${ECHO_T}no" >&6; }
9640     else
9641         CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
9642         LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
9643         if test "$tcl_ok" = "yes"; then
9644             { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5
9645 echo "${ECHO_T}yes (standard debugging)" >&6; }
9646         fi
9647     fi
9648     if test "${TEA_PLATFORM}" != "windows" ; then
9649         LDFLAGS_DEFAULT="${LDFLAGS}"
9650     fi
9651
9652
9653
9654
9655
9656     if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
9657         cat >>confdefs.h <<\_ACEOF
9658 #define TCL_MEM_DEBUG 1
9659 _ACEOF
9660
9661     fi
9662
9663     if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
9664         if test "$tcl_ok" = "all"; then
9665             { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5
9666 echo "${ECHO_T}enabled symbols mem debugging" >&6; }
9667         else
9668             { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5
9669 echo "${ECHO_T}enabled $tcl_ok debugging" >&6; }
9670         fi
9671     fi
9672
9673
9674 #--------------------------------------------------------------------
9675 # Everyone should be linking against the Tcl stub library.  If you
9676 # can't for some reason, remove this definition.  If you aren't using
9677 # stubs, you also need to modify the SHLIB_LD_LIBS setting below to
9678 # link against the non-stubbed Tcl library.
9679 #--------------------------------------------------------------------
9680
9681 if test "${SHARED_BUILD}" = "1" ; then
9682     cat >>confdefs.h <<\_ACEOF
9683 #define USE_TCL_STUBS 1
9684 _ACEOF
9685
9686 fi
9687
9688 #--------------------------------------------------------------------
9689 # This macro generates a line to use when building a library.  It
9690 # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
9691 # and TEA_LOAD_TCLCONFIG macros above.
9692 #--------------------------------------------------------------------
9693
9694
9695     if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
9696         MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
9697         MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)"
9698         MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)"
9699     else
9700         MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
9701         MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
9702         MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
9703     fi
9704
9705     if test "${SHARED_BUILD}" = "1" ; then
9706         MAKE_LIB="${MAKE_SHARED_LIB} "
9707     else
9708         MAKE_LIB="${MAKE_STATIC_LIB} "
9709     fi
9710
9711     #--------------------------------------------------------------------
9712     # Shared libraries and static libraries have different names.
9713     # Use the double eval to make sure any variables in the suffix is
9714     # substituted. (@@@ Might not be necessary anymore)
9715     #--------------------------------------------------------------------
9716
9717     if test "${TEA_PLATFORM}" = "windows" ; then
9718         if test "${SHARED_BUILD}" = "1" ; then
9719             # We force the unresolved linking of symbols that are really in
9720             # the private libraries of Tcl and Tk.
9721             SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
9722             if test x"${TK_BIN_DIR}" != x ; then
9723                 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
9724             fi
9725             eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9726         else
9727             eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9728         fi
9729         # Some packages build there own stubs libraries
9730         if test "$GCC" = "yes"; then
9731           eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
9732         else
9733            eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
9734         fi
9735
9736         # These aren't needed on Windows (either MSVC or gcc)
9737         RANLIB=:
9738         RANLIB_STUB=:
9739     else
9740         RANLIB_STUB="${RANLIB}"
9741         if test "${SHARED_BUILD}" = "1" ; then
9742             SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
9743             if test x"${TK_BIN_DIR}" != x ; then
9744                 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
9745             fi
9746             eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9747             RANLIB=:
9748         else
9749             eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9750         fi
9751         # Some packages build there own stubs libraries
9752         eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
9753     fi
9754
9755     # These are escaped so that only CFLAGS is picked up at configure time.
9756     # The other values will be substituted at make time.
9757     CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
9758     if test "${SHARED_BUILD}" = "1" ; then
9759         CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
9760     fi
9761
9762
9763
9764
9765
9766
9767
9768
9769 #--------------------------------------------------------------------
9770 # __CHANGE__
9771 # Change the name from exampeA_LIB_FILE to match your package name.
9772 # Use the stub_LIB_FILE substitution if your package creates a stub
9773 # library.
9774 #--------------------------------------------------------------------
9775
9776 itcl_STUB_LIB_FILE=${PKG_STUB_LIB_FILE}
9777 itcl_LIB_FILE=${PKG_LIB_FILE}
9778
9779
9780
9781 #--------------------------------------------------------------------
9782 # Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl
9783 # file during the install process.  Don't run the TCLSH_PROG through
9784 # ${CYGPATH} because it's being used directly by make.
9785 # Require that we use a tclsh shell version 8.2 or later since earlier
9786 # versions have bugs in the pkg_mkIndex routine.
9787 #--------------------------------------------------------------------
9788
9789
9790     # Allow the user to provide this setting in the env
9791     if test "x${TCLSH_PROG}" = "x" ; then
9792         { echo "$as_me:$LINENO: checking for tclsh" >&5
9793 echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; }
9794
9795         if test "${ac_cv_path_tclsh+set}" = set; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798
9799         search_path=`echo ${PATH} | sed -e 's/:/ /g'`
9800         if test "${TEA_PLATFORM}" != "windows" -o \
9801                 \( "$do64bit_ok" = "no" -a "$doWince" = "no" \) ; then
9802             # Do not allow target tclsh in known cross-compile builds,
9803             # as we need one we can run on this system
9804             search_path="${TCL_BIN_DIR} ${TCL_BIN_DIR}/../bin ${exec_prefix}/bin ${prefix}/bin ${search_path}"
9805         fi
9806         for dir in $search_path ; do
9807             for j in `ls -r $dir/tclsh[8-9]*${EXEEXT} 2> /dev/null` \
9808                     `ls -r $dir/tclsh*${EXEEXT} 2> /dev/null` ; do
9809                 if test x"$ac_cv_path_tclsh" = x ; then
9810                     if test -f "$j" ; then
9811                         ac_cv_path_tclsh=$j
9812                         break
9813                     fi
9814                 fi
9815             done
9816         done
9817
9818 fi
9819
9820
9821         if test -f "$ac_cv_path_tclsh" ; then
9822             TCLSH_PROG=$ac_cv_path_tclsh
9823             { echo "$as_me:$LINENO: result: $TCLSH_PROG" >&5
9824 echo "${ECHO_T}$TCLSH_PROG" >&6; }
9825         else
9826             { { echo "$as_me:$LINENO: error: No tclsh found in PATH: $search_path" >&5
9827 echo "$as_me: error: No tclsh found in PATH: $search_path" >&2;}
9828    { (exit 1); exit 1; }; }
9829         fi
9830     fi
9831
9832
9833
9834 #--------------------------------------------------------------------
9835 # These are for itclConfig.sh
9836 #--------------------------------------------------------------------
9837
9838 # pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib)
9839 eval pkglibdir="${libdir}/${PACKAGE_NAME}${PACKAGE_VERSION}"
9840 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
9841     eval itcl_LIB_FLAG="-litcl${PACKAGE_VERSION}${DBGX}"
9842     eval itcl_STUB_LIB_FLAG="-litclstub${PACKAGE_VERSION}${DBGX}"
9843 else
9844     eval itcl_LIB_FLAG="-litcl`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}"
9845     eval itcl_STUB_LIB_FLAG="-litclstub`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}"
9846 fi
9847 itcl_BUILD_LIB_SPEC="-L`pwd` ${itcl_LIB_FLAG}"
9848 itcl_LIB_SPEC="-L${pkglibdir} ${itcl_LIB_FLAG}"
9849
9850 itcl_BUILD_STUB_LIB_SPEC="-L`pwd` ${itcl_STUB_LIB_FLAG}"
9851 itcl_STUB_LIB_SPEC="-L${pkglibdir} ${itcl_STUB_LIB_FLAG}"
9852 itcl_BUILD_STUB_LIB_PATH="`pwd`/${itcl_STUB_LIB_FILE}"
9853 itcl_STUB_LIB_PATH="${pkglibdir}/${itcl_STUB_LIB_FILE}"
9854
9855
9856
9857
9858
9859
9860
9861
9862 # itcl_SRC_DIR must be a fully qualified path
9863 eval itcl_SRC_DIR="$srcdir"
9864 itcl_SRC_DIR=`cd "${itcl_SRC_DIR}"; pwd`
9865
9866
9867 #--------------------------------------------------------------------
9868 # Finally, substitute all of the various values into the Makefile.
9869 #--------------------------------------------------------------------
9870
9871 ac_config_files="$ac_config_files Makefile pkgIndex.tcl itclConfig.sh"
9872
9873 cat >confcache <<\_ACEOF
9874 # This file is a shell script that caches the results of configure
9875 # tests run on this system so they can be shared between configure
9876 # scripts and configure runs, see configure's option --config-cache.
9877 # It is not useful on other systems.  If it contains results you don't
9878 # want to keep, you may remove or edit it.
9879 #
9880 # config.status only pays attention to the cache file if you give it
9881 # the --recheck option to rerun configure.
9882 #
9883 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9884 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9885 # following values.
9886
9887 _ACEOF
9888
9889 # The following way of writing the cache mishandles newlines in values,
9890 # but we know of no workaround that is simple, portable, and efficient.
9891 # So, we kill variables containing newlines.
9892 # Ultrix sh set writes to stderr and can't be redirected directly,
9893 # and sets the high bit in the cache file unless we assign to the vars.
9894 (
9895   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9896     eval ac_val=\$$ac_var
9897     case $ac_val in #(
9898     *${as_nl}*)
9899       case $ac_var in #(
9900       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9901 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9902       esac
9903       case $ac_var in #(
9904       _ | IFS | as_nl) ;; #(
9905       *) $as_unset $ac_var ;;
9906       esac ;;
9907     esac
9908   done
9909
9910   (set) 2>&1 |
9911     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9912     *${as_nl}ac_space=\ *)
9913       # `set' does not quote correctly, so add quotes (double-quote
9914       # substitution turns \\\\ into \\, and sed turns \\ into \).
9915       sed -n \
9916         "s/'/'\\\\''/g;
9917           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9918       ;; #(
9919     *)
9920       # `set' quotes correctly as required by POSIX, so do not add quotes.
9921       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9922       ;;
9923     esac |
9924     sort
9925 ) |
9926   sed '
9927      /^ac_cv_env_/b end
9928      t clear
9929      :clear
9930      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9931      t end
9932      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9933      :end' >>confcache
9934 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9935   if test -w "$cache_file"; then
9936     test "x$cache_file" != "x/dev/null" &&
9937       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9938 echo "$as_me: updating cache $cache_file" >&6;}
9939     cat confcache >$cache_file
9940   else
9941     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9942 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9943   fi
9944 fi
9945 rm -f confcache
9946
9947 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9948 # Let make expand exec_prefix.
9949 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9950
9951 # Transform confdefs.h into DEFS.
9952 # Protect against shell expansion while executing Makefile rules.
9953 # Protect against Makefile macro expansion.
9954 #
9955 # If the first sed substitution is executed (which looks for macros that
9956 # take arguments), then branch to the quote section.  Otherwise,
9957 # look for a macro that doesn't take arguments.
9958 ac_script='
9959 t clear
9960 :clear
9961 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
9962 t quote
9963 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
9964 t quote
9965 b any
9966 :quote
9967 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
9968 s/\[/\\&/g
9969 s/\]/\\&/g
9970 s/\$/$$/g
9971 H
9972 :any
9973 ${
9974         g
9975         s/^\n//
9976         s/\n/ /g
9977         p
9978 }
9979 '
9980 DEFS=`sed -n "$ac_script" confdefs.h`
9981
9982
9983 ac_libobjs=
9984 ac_ltlibobjs=
9985 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9986   # 1. Remove the extension, and $U if already installed.
9987   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9988   ac_i=`echo "$ac_i" | sed "$ac_script"`
9989   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9990   #    will be set to the directory where LIBOBJS objects are built.
9991   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9992   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9993 done
9994 LIBOBJS=$ac_libobjs
9995
9996 LTLIBOBJS=$ac_ltlibobjs
9997
9998
9999
10000 : ${CONFIG_STATUS=./config.status}
10001 ac_clean_files_save=$ac_clean_files
10002 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10003 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10004 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10005 cat >$CONFIG_STATUS <<_ACEOF
10006 #! $SHELL
10007 # Generated by $as_me.
10008 # Run this file to recreate the current configuration.
10009 # Compiler output produced by configure, useful for debugging
10010 # configure, is in config.log if it exists.
10011
10012 debug=false
10013 ac_cs_recheck=false
10014 ac_cs_silent=false
10015 SHELL=\${CONFIG_SHELL-$SHELL}
10016 _ACEOF
10017
10018 cat >>$CONFIG_STATUS <<\_ACEOF
10019 ## --------------------- ##
10020 ## M4sh Initialization.  ##
10021 ## --------------------- ##
10022
10023 # Be more Bourne compatible
10024 DUALCASE=1; export DUALCASE # for MKS sh
10025 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10026   emulate sh
10027   NULLCMD=:
10028   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10029   # is contrary to our usage.  Disable this feature.
10030   alias -g '${1+"$@"}'='"$@"'
10031   setopt NO_GLOB_SUBST
10032 else
10033   case `(set -o) 2>/dev/null` in
10034   *posix*) set -o posix ;;
10035 esac
10036
10037 fi
10038
10039
10040
10041
10042 # PATH needs CR
10043 # Avoid depending upon Character Ranges.
10044 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10045 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10046 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10047 as_cr_digits='0123456789'
10048 as_cr_alnum=$as_cr_Letters$as_cr_digits
10049
10050 # The user is always right.
10051 if test "${PATH_SEPARATOR+set}" != set; then
10052   echo "#! /bin/sh" >conf$$.sh
10053   echo  "exit 0"   >>conf$$.sh
10054   chmod +x conf$$.sh
10055   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10056     PATH_SEPARATOR=';'
10057   else
10058     PATH_SEPARATOR=:
10059   fi
10060   rm -f conf$$.sh
10061 fi
10062
10063 # Support unset when possible.
10064 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10065   as_unset=unset
10066 else
10067   as_unset=false
10068 fi
10069
10070
10071 # IFS
10072 # We need space, tab and new line, in precisely that order.  Quoting is
10073 # there to prevent editors from complaining about space-tab.
10074 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10075 # splitting by setting IFS to empty value.)
10076 as_nl='
10077 '
10078 IFS=" ""        $as_nl"
10079
10080 # Find who we are.  Look in the path if we contain no directory separator.
10081 case $0 in
10082   *[\\/]* ) as_myself=$0 ;;
10083   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10085 do
10086   IFS=$as_save_IFS
10087   test -z "$as_dir" && as_dir=.
10088   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10089 done
10090 IFS=$as_save_IFS
10091
10092      ;;
10093 esac
10094 # We did not find ourselves, most probably we were run as `sh COMMAND'
10095 # in which case we are not to be found in the path.
10096 if test "x$as_myself" = x; then
10097   as_myself=$0
10098 fi
10099 if test ! -f "$as_myself"; then
10100   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10101   { (exit 1); exit 1; }
10102 fi
10103
10104 # Work around bugs in pre-3.0 UWIN ksh.
10105 for as_var in ENV MAIL MAILPATH
10106 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10107 done
10108 PS1='$ '
10109 PS2='> '
10110 PS4='+ '
10111
10112 # NLS nuisances.
10113 for as_var in \
10114   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10115   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10116   LC_TELEPHONE LC_TIME
10117 do
10118   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10119     eval $as_var=C; export $as_var
10120   else
10121     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10122   fi
10123 done
10124
10125 # Required to use basename.
10126 if expr a : '\(a\)' >/dev/null 2>&1 &&
10127    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10128   as_expr=expr
10129 else
10130   as_expr=false
10131 fi
10132
10133 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10134   as_basename=basename
10135 else
10136   as_basename=false
10137 fi
10138
10139
10140 # Name of the executable.
10141 as_me=`$as_basename -- "$0" ||
10142 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10143          X"$0" : 'X\(//\)$' \| \
10144          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10145 echo X/"$0" |
10146     sed '/^.*\/\([^/][^/]*\)\/*$/{
10147             s//\1/
10148             q
10149           }
10150           /^X\/\(\/\/\)$/{
10151             s//\1/
10152             q
10153           }
10154           /^X\/\(\/\).*/{
10155             s//\1/
10156             q
10157           }
10158           s/.*/./; q'`
10159
10160 # CDPATH.
10161 $as_unset CDPATH
10162
10163
10164
10165   as_lineno_1=$LINENO
10166   as_lineno_2=$LINENO
10167   test "x$as_lineno_1" != "x$as_lineno_2" &&
10168   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10169
10170   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10171   # uniformly replaced by the line number.  The first 'sed' inserts a
10172   # line-number line after each line using $LINENO; the second 'sed'
10173   # does the real work.  The second script uses 'N' to pair each
10174   # line-number line with the line containing $LINENO, and appends
10175   # trailing '-' during substitution so that $LINENO is not a special
10176   # case at line end.
10177   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10178   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10179   # E. McMahon (1931-1989) for sed's syntax.  :-)
10180   sed -n '
10181     p
10182     /[$]LINENO/=
10183   ' <$as_myself |
10184     sed '
10185       s/[$]LINENO.*/&-/
10186       t lineno
10187       b
10188       :lineno
10189       N
10190       :loop
10191       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10192       t loop
10193       s/-\n.*//
10194     ' >$as_me.lineno &&
10195   chmod +x "$as_me.lineno" ||
10196     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10197    { (exit 1); exit 1; }; }
10198
10199   # Don't try to exec as it changes $[0], causing all sort of problems
10200   # (the dirname of $[0] is not the place where we might find the
10201   # original and so on.  Autoconf is especially sensitive to this).
10202   . "./$as_me.lineno"
10203   # Exit status is that of the last command.
10204   exit
10205 }
10206
10207
10208 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10209   as_dirname=dirname
10210 else
10211   as_dirname=false
10212 fi
10213
10214 ECHO_C= ECHO_N= ECHO_T=
10215 case `echo -n x` in
10216 -n*)
10217   case `echo 'x\c'` in
10218   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10219   *)   ECHO_C='\c';;
10220   esac;;
10221 *)
10222   ECHO_N='-n';;
10223 esac
10224
10225 if expr a : '\(a\)' >/dev/null 2>&1 &&
10226    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10227   as_expr=expr
10228 else
10229   as_expr=false
10230 fi
10231
10232 rm -f conf$$ conf$$.exe conf$$.file
10233 if test -d conf$$.dir; then
10234   rm -f conf$$.dir/conf$$.file
10235 else
10236   rm -f conf$$.dir
10237   mkdir conf$$.dir
10238 fi
10239 echo >conf$$.file
10240 if ln -s conf$$.file conf$$ 2>/dev/null; then
10241   as_ln_s='ln -s'
10242   # ... but there are two gotchas:
10243   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10244   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10245   # In both cases, we have to default to `cp -p'.
10246   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10247     as_ln_s='cp -p'
10248 elif ln conf$$.file conf$$ 2>/dev/null; then
10249   as_ln_s=ln
10250 else
10251   as_ln_s='cp -p'
10252 fi
10253 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10254 rmdir conf$$.dir 2>/dev/null
10255
10256 if mkdir -p . 2>/dev/null; then
10257   as_mkdir_p=:
10258 else
10259   test -d ./-p && rmdir ./-p
10260   as_mkdir_p=false
10261 fi
10262
10263 if test -x / >/dev/null 2>&1; then
10264   as_test_x='test -x'
10265 else
10266   if ls -dL / >/dev/null 2>&1; then
10267     as_ls_L_option=L
10268   else
10269     as_ls_L_option=
10270   fi
10271   as_test_x='
10272     eval sh -c '\''
10273       if test -d "$1"; then
10274         test -d "$1/.";
10275       else
10276         case $1 in
10277         -*)set "./$1";;
10278         esac;
10279         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10280         ???[sx]*):;;*)false;;esac;fi
10281     '\'' sh
10282   '
10283 fi
10284 as_executable_p=$as_test_x
10285
10286 # Sed expression to map a string onto a valid CPP name.
10287 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10288
10289 # Sed expression to map a string onto a valid variable name.
10290 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10291
10292
10293 exec 6>&1
10294
10295 # Save the log message, to keep $[0] and so on meaningful, and to
10296 # report actual input values of CONFIG_FILES etc. instead of their
10297 # values after options handling.
10298 ac_log="
10299 This file was extended by itcl $as_me 3.3, which was
10300 generated by GNU Autoconf 2.61.  Invocation command line was
10301
10302   CONFIG_FILES    = $CONFIG_FILES
10303   CONFIG_HEADERS  = $CONFIG_HEADERS
10304   CONFIG_LINKS    = $CONFIG_LINKS
10305   CONFIG_COMMANDS = $CONFIG_COMMANDS
10306   $ $0 $@
10307
10308 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10309 "
10310
10311 _ACEOF
10312
10313 cat >>$CONFIG_STATUS <<_ACEOF
10314 # Files that config.status was made for.
10315 config_files="$ac_config_files"
10316
10317 _ACEOF
10318
10319 cat >>$CONFIG_STATUS <<\_ACEOF
10320 ac_cs_usage="\
10321 \`$as_me' instantiates files from templates according to the
10322 current configuration.
10323
10324 Usage: $0 [OPTIONS] [FILE]...
10325
10326   -h, --help       print this help, then exit
10327   -V, --version    print version number and configuration settings, then exit
10328   -q, --quiet      do not print progress messages
10329   -d, --debug      don't remove temporary files
10330       --recheck    update $as_me by reconfiguring in the same conditions
10331   --file=FILE[:TEMPLATE]
10332                    instantiate the configuration file FILE
10333
10334 Configuration files:
10335 $config_files
10336
10337 Report bugs to <bug-autoconf@gnu.org>."
10338
10339 _ACEOF
10340 cat >>$CONFIG_STATUS <<_ACEOF
10341 ac_cs_version="\\
10342 itcl config.status 3.3
10343 configured by $0, generated by GNU Autoconf 2.61,
10344   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10345
10346 Copyright (C) 2006 Free Software Foundation, Inc.
10347 This config.status script is free software; the Free Software Foundation
10348 gives unlimited permission to copy, distribute and modify it."
10349
10350 ac_pwd='$ac_pwd'
10351 srcdir='$srcdir'
10352 INSTALL='$INSTALL'
10353 _ACEOF
10354
10355 cat >>$CONFIG_STATUS <<\_ACEOF
10356 # If no file are specified by the user, then we need to provide default
10357 # value.  By we need to know if files were specified by the user.
10358 ac_need_defaults=:
10359 while test $# != 0
10360 do
10361   case $1 in
10362   --*=*)
10363     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10364     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10365     ac_shift=:
10366     ;;
10367   *)
10368     ac_option=$1
10369     ac_optarg=$2
10370     ac_shift=shift
10371     ;;
10372   esac
10373
10374   case $ac_option in
10375   # Handling of the options.
10376   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10377     ac_cs_recheck=: ;;
10378   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10379     echo "$ac_cs_version"; exit ;;
10380   --debug | --debu | --deb | --de | --d | -d )
10381     debug=: ;;
10382   --file | --fil | --fi | --f )
10383     $ac_shift
10384     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10385     ac_need_defaults=false;;
10386   --he | --h |  --help | --hel | -h )
10387     echo "$ac_cs_usage"; exit ;;
10388   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10389   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10390     ac_cs_silent=: ;;
10391
10392   # This is an error.
10393   -*) { echo "$as_me: error: unrecognized option: $1
10394 Try \`$0 --help' for more information." >&2
10395    { (exit 1); exit 1; }; } ;;
10396
10397   *) ac_config_targets="$ac_config_targets $1"
10398      ac_need_defaults=false ;;
10399
10400   esac
10401   shift
10402 done
10403
10404 ac_configure_extra_args=
10405
10406 if $ac_cs_silent; then
10407   exec 6>/dev/null
10408   ac_configure_extra_args="$ac_configure_extra_args --silent"
10409 fi
10410
10411 _ACEOF
10412 cat >>$CONFIG_STATUS <<_ACEOF
10413 if \$ac_cs_recheck; then
10414   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10415   CONFIG_SHELL=$SHELL
10416   export CONFIG_SHELL
10417   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10418 fi
10419
10420 _ACEOF
10421 cat >>$CONFIG_STATUS <<\_ACEOF
10422 exec 5>>config.log
10423 {
10424   echo
10425   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10426 ## Running $as_me. ##
10427 _ASBOX
10428   echo "$ac_log"
10429 } >&5
10430
10431 _ACEOF
10432 cat >>$CONFIG_STATUS <<_ACEOF
10433 _ACEOF
10434
10435 cat >>$CONFIG_STATUS <<\_ACEOF
10436
10437 # Handling of arguments.
10438 for ac_config_target in $ac_config_targets
10439 do
10440   case $ac_config_target in
10441     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10442     "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
10443     "itclConfig.sh") CONFIG_FILES="$CONFIG_FILES itclConfig.sh" ;;
10444
10445   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10446 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10447    { (exit 1); exit 1; }; };;
10448   esac
10449 done
10450
10451
10452 # If the user did not use the arguments to specify the items to instantiate,
10453 # then the envvar interface is used.  Set only those that are not.
10454 # We use the long form for the default assignment because of an extremely
10455 # bizarre bug on SunOS 4.1.3.
10456 if $ac_need_defaults; then
10457   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10458 fi
10459
10460 # Have a temporary directory for convenience.  Make it in the build tree
10461 # simply because there is no reason against having it here, and in addition,
10462 # creating and moving files from /tmp can sometimes cause problems.
10463 # Hook for its removal unless debugging.
10464 # Note that there is a small window in which the directory will not be cleaned:
10465 # after its creation but before its name has been assigned to `$tmp'.
10466 $debug ||
10467 {
10468   tmp=
10469   trap 'exit_status=$?
10470   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10471 ' 0
10472   trap '{ (exit 1); exit 1; }' 1 2 13 15
10473 }
10474 # Create a (secure) tmp directory for tmp files.
10475
10476 {
10477   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10478   test -n "$tmp" && test -d "$tmp"
10479 }  ||
10480 {
10481   tmp=./conf$$-$RANDOM
10482   (umask 077 && mkdir "$tmp")
10483 } ||
10484 {
10485    echo "$me: cannot create a temporary directory in ." >&2
10486    { (exit 1); exit 1; }
10487 }
10488
10489 #
10490 # Set up the sed scripts for CONFIG_FILES section.
10491 #
10492
10493 # No need to generate the scripts if there are no CONFIG_FILES.
10494 # This happens for instance when ./config.status config.h
10495 if test -n "$CONFIG_FILES"; then
10496
10497 _ACEOF
10498
10499
10500
10501 ac_delim='%!_!# '
10502 for ac_last_try in false false false false false :; do
10503   cat >conf$$subs.sed <<_ACEOF
10504 SHELL!$SHELL$ac_delim
10505 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10506 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10507 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10508 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10509 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10510 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10511 exec_prefix!$exec_prefix$ac_delim
10512 prefix!$prefix$ac_delim
10513 program_transform_name!$program_transform_name$ac_delim
10514 bindir!$bindir$ac_delim
10515 sbindir!$sbindir$ac_delim
10516 libexecdir!$libexecdir$ac_delim
10517 datarootdir!$datarootdir$ac_delim
10518 datadir!$datadir$ac_delim
10519 sysconfdir!$sysconfdir$ac_delim
10520 sharedstatedir!$sharedstatedir$ac_delim
10521 localstatedir!$localstatedir$ac_delim
10522 includedir!$includedir$ac_delim
10523 oldincludedir!$oldincludedir$ac_delim
10524 docdir!$docdir$ac_delim
10525 infodir!$infodir$ac_delim
10526 htmldir!$htmldir$ac_delim
10527 dvidir!$dvidir$ac_delim
10528 pdfdir!$pdfdir$ac_delim
10529 psdir!$psdir$ac_delim
10530 libdir!$libdir$ac_delim
10531 localedir!$localedir$ac_delim
10532 mandir!$mandir$ac_delim
10533 DEFS!$DEFS$ac_delim
10534 ECHO_C!$ECHO_C$ac_delim
10535 ECHO_N!$ECHO_N$ac_delim
10536 ECHO_T!$ECHO_T$ac_delim
10537 LIBS!$LIBS$ac_delim
10538 build_alias!$build_alias$ac_delim
10539 host_alias!$host_alias$ac_delim
10540 target_alias!$target_alias$ac_delim
10541 CYGPATH!$CYGPATH$ac_delim
10542 EXEEXT!$EXEEXT$ac_delim
10543 PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim
10544 PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim
10545 PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim
10546 PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim
10547 PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim
10548 PKG_HEADERS!$PKG_HEADERS$ac_delim
10549 PKG_INCLUDES!$PKG_INCLUDES$ac_delim
10550 PKG_LIBS!$PKG_LIBS$ac_delim
10551 PKG_CFLAGS!$PKG_CFLAGS$ac_delim
10552 LN_S!$LN_S$ac_delim
10553 CONFIG_CLEAN_FILES!$CONFIG_CLEAN_FILES$ac_delim
10554 TCL_VERSION!$TCL_VERSION$ac_delim
10555 TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
10556 TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
10557 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
10558 TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim
10559 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
10560 TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim
10561 TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim
10562 TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
10563 TCL_LIBS!$TCL_LIBS$ac_delim
10564 TCL_DEFS!$TCL_DEFS$ac_delim
10565 TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim
10566 TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim
10567 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
10568 CC!$CC$ac_delim
10569 CFLAGS!$CFLAGS$ac_delim
10570 LDFLAGS!$LDFLAGS$ac_delim
10571 CPPFLAGS!$CPPFLAGS$ac_delim
10572 ac_ct_CC!$ac_ct_CC$ac_delim
10573 OBJEXT!$OBJEXT$ac_delim
10574 CPP!$CPP$ac_delim
10575 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10576 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10577 INSTALL_DATA!$INSTALL_DATA$ac_delim
10578 SET_MAKE!$SET_MAKE$ac_delim
10579 RANLIB!$RANLIB$ac_delim
10580 GREP!$GREP$ac_delim
10581 EGREP!$EGREP$ac_delim
10582 MATH_LIBS!$MATH_LIBS$ac_delim
10583 PKG_SOURCES!$PKG_SOURCES$ac_delim
10584 PKG_OBJECTS!$PKG_OBJECTS$ac_delim
10585 CLEANFILES!$CLEANFILES$ac_delim
10586 TCL_TOP_DIR_NATIVE!$TCL_TOP_DIR_NATIVE$ac_delim
10587 TCL_GENERIC_DIR_NATIVE!$TCL_GENERIC_DIR_NATIVE$ac_delim
10588 TCL_UNIX_DIR_NATIVE!$TCL_UNIX_DIR_NATIVE$ac_delim
10589 TCL_WIN_DIR_NATIVE!$TCL_WIN_DIR_NATIVE$ac_delim
10590 TCL_BMAP_DIR_NATIVE!$TCL_BMAP_DIR_NATIVE$ac_delim
10591 TCL_TOOL_DIR_NATIVE!$TCL_TOOL_DIR_NATIVE$ac_delim
10592 TCL_PLATFORM_DIR_NATIVE!$TCL_PLATFORM_DIR_NATIVE$ac_delim
10593 TCL_INCLUDES!$TCL_INCLUDES$ac_delim
10594 SHARED_BUILD!$SHARED_BUILD$ac_delim
10595 AR!$AR$ac_delim
10596 TCLSH_PROG!$TCLSH_PROG$ac_delim
10597 CELIB_DIR!$CELIB_DIR$ac_delim
10598 LIBOBJS!$LIBOBJS$ac_delim
10599 DL_LIBS!$DL_LIBS$ac_delim
10600 CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim
10601 _ACEOF
10602
10603   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10604     break
10605   elif $ac_last_try; then
10606     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10607 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10608    { (exit 1); exit 1; }; }
10609   else
10610     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10611   fi
10612 done
10613
10614 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10615 if test -n "$ac_eof"; then
10616   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10617   ac_eof=`expr $ac_eof + 1`
10618 fi
10619
10620 cat >>$CONFIG_STATUS <<_ACEOF
10621 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10623 _ACEOF
10624 sed '
10625 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10626 s/^/s,@/; s/!/@,|#_!!_#|/
10627 :n
10628 t n
10629 s/'"$ac_delim"'$/,g/; t
10630 s/$/\\/; p
10631 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10632 ' >>$CONFIG_STATUS <conf$$subs.sed
10633 rm -f conf$$subs.sed
10634 cat >>$CONFIG_STATUS <<_ACEOF
10635 CEOF$ac_eof
10636 _ACEOF
10637
10638
10639 ac_delim='%!_!# '
10640 for ac_last_try in false false false false false :; do
10641   cat >conf$$subs.sed <<_ACEOF
10642 CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim
10643 CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim
10644 STLIB_LD!$STLIB_LD$ac_delim
10645 SHLIB_LD!$SHLIB_LD$ac_delim
10646 SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim
10647 SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim
10648 LDFLAGS_DEBUG!$LDFLAGS_DEBUG$ac_delim
10649 LDFLAGS_OPTIMIZE!$LDFLAGS_OPTIMIZE$ac_delim
10650 LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim
10651 TCL_DBGX!$TCL_DBGX$ac_delim
10652 CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim
10653 LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim
10654 MAKE_LIB!$MAKE_LIB$ac_delim
10655 MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim
10656 MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim
10657 MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim
10658 RANLIB_STUB!$RANLIB_STUB$ac_delim
10659 itcl_STUB_LIB_FILE!$itcl_STUB_LIB_FILE$ac_delim
10660 itcl_LIB_FILE!$itcl_LIB_FILE$ac_delim
10661 itcl_BUILD_LIB_SPEC!$itcl_BUILD_LIB_SPEC$ac_delim
10662 itcl_LIB_SPEC!$itcl_LIB_SPEC$ac_delim
10663 itcl_BUILD_STUB_LIB_SPEC!$itcl_BUILD_STUB_LIB_SPEC$ac_delim
10664 itcl_STUB_LIB_SPEC!$itcl_STUB_LIB_SPEC$ac_delim
10665 itcl_BUILD_STUB_LIB_PATH!$itcl_BUILD_STUB_LIB_PATH$ac_delim
10666 itcl_STUB_LIB_PATH!$itcl_STUB_LIB_PATH$ac_delim
10667 itcl_SRC_DIR!$itcl_SRC_DIR$ac_delim
10668 LTLIBOBJS!$LTLIBOBJS$ac_delim
10669 _ACEOF
10670
10671   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
10672     break
10673   elif $ac_last_try; then
10674     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10675 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10676    { (exit 1); exit 1; }; }
10677   else
10678     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10679   fi
10680 done
10681
10682 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10683 if test -n "$ac_eof"; then
10684   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10685   ac_eof=`expr $ac_eof + 1`
10686 fi
10687
10688 cat >>$CONFIG_STATUS <<_ACEOF
10689 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10691 _ACEOF
10692 sed '
10693 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10694 s/^/s,@/; s/!/@,|#_!!_#|/
10695 :n
10696 t n
10697 s/'"$ac_delim"'$/,g/; t
10698 s/$/\\/; p
10699 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10700 ' >>$CONFIG_STATUS <conf$$subs.sed
10701 rm -f conf$$subs.sed
10702 cat >>$CONFIG_STATUS <<_ACEOF
10703 :end
10704 s/|#_!!_#|//g
10705 CEOF$ac_eof
10706 _ACEOF
10707
10708
10709 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10710 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10711 # trailing colons and then remove the whole line if VPATH becomes empty
10712 # (actually we leave an empty line to preserve line numbers).
10713 if test "x$srcdir" = x.; then
10714   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10715 s/:*\$(srcdir):*/:/
10716 s/:*\${srcdir}:*/:/
10717 s/:*@srcdir@:*/:/
10718 s/^\([^=]*=[     ]*\):*/\1/
10719 s/:*$//
10720 s/^[^=]*=[       ]*$//
10721 }'
10722 fi
10723
10724 cat >>$CONFIG_STATUS <<\_ACEOF
10725 fi # test -n "$CONFIG_FILES"
10726
10727
10728 for ac_tag in  :F $CONFIG_FILES
10729 do
10730   case $ac_tag in
10731   :[FHLC]) ac_mode=$ac_tag; continue;;
10732   esac
10733   case $ac_mode$ac_tag in
10734   :[FHL]*:*);;
10735   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10736 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10737    { (exit 1); exit 1; }; };;
10738   :[FH]-) ac_tag=-:-;;
10739   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10740   esac
10741   ac_save_IFS=$IFS
10742   IFS=:
10743   set x $ac_tag
10744   IFS=$ac_save_IFS
10745   shift
10746   ac_file=$1
10747   shift
10748
10749   case $ac_mode in
10750   :L) ac_source=$1;;
10751   :[FH])
10752     ac_file_inputs=
10753     for ac_f
10754     do
10755       case $ac_f in
10756       -) ac_f="$tmp/stdin";;
10757       *) # Look for the file first in the build tree, then in the source tree
10758          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10759          # because $ac_f cannot contain `:'.
10760          test -f "$ac_f" ||
10761            case $ac_f in
10762            [\\/$]*) false;;
10763            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10764            esac ||
10765            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10766 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10767    { (exit 1); exit 1; }; };;
10768       esac
10769       ac_file_inputs="$ac_file_inputs $ac_f"
10770     done
10771
10772     # Let's still pretend it is `configure' which instantiates (i.e., don't
10773     # use $as_me), people would be surprised to read:
10774     #    /* config.h.  Generated by config.status.  */
10775     configure_input="Generated from "`IFS=:
10776           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10777     if test x"$ac_file" != x-; then
10778       configure_input="$ac_file.  $configure_input"
10779       { echo "$as_me:$LINENO: creating $ac_file" >&5
10780 echo "$as_me: creating $ac_file" >&6;}
10781     fi
10782
10783     case $ac_tag in
10784     *:-:* | *:-) cat >"$tmp/stdin";;
10785     esac
10786     ;;
10787   esac
10788
10789   ac_dir=`$as_dirname -- "$ac_file" ||
10790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10791          X"$ac_file" : 'X\(//\)[^/]' \| \
10792          X"$ac_file" : 'X\(//\)$' \| \
10793          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10794 echo X"$ac_file" |
10795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10796             s//\1/
10797             q
10798           }
10799           /^X\(\/\/\)[^/].*/{
10800             s//\1/
10801             q
10802           }
10803           /^X\(\/\/\)$/{
10804             s//\1/
10805             q
10806           }
10807           /^X\(\/\).*/{
10808             s//\1/
10809             q
10810           }
10811           s/.*/./; q'`
10812   { as_dir="$ac_dir"
10813   case $as_dir in #(
10814   -*) as_dir=./$as_dir;;
10815   esac
10816   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10817     as_dirs=
10818     while :; do
10819       case $as_dir in #(
10820       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10821       *) as_qdir=$as_dir;;
10822       esac
10823       as_dirs="'$as_qdir' $as_dirs"
10824       as_dir=`$as_dirname -- "$as_dir" ||
10825 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10826          X"$as_dir" : 'X\(//\)[^/]' \| \
10827          X"$as_dir" : 'X\(//\)$' \| \
10828          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10829 echo X"$as_dir" |
10830     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10831             s//\1/
10832             q
10833           }
10834           /^X\(\/\/\)[^/].*/{
10835             s//\1/
10836             q
10837           }
10838           /^X\(\/\/\)$/{
10839             s//\1/
10840             q
10841           }
10842           /^X\(\/\).*/{
10843             s//\1/
10844             q
10845           }
10846           s/.*/./; q'`
10847       test -d "$as_dir" && break
10848     done
10849     test -z "$as_dirs" || eval "mkdir $as_dirs"
10850   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10851 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10852    { (exit 1); exit 1; }; }; }
10853   ac_builddir=.
10854
10855 case "$ac_dir" in
10856 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10857 *)
10858   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10859   # A ".." for each directory in $ac_dir_suffix.
10860   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10861   case $ac_top_builddir_sub in
10862   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10863   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10864   esac ;;
10865 esac
10866 ac_abs_top_builddir=$ac_pwd
10867 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10868 # for backward compatibility:
10869 ac_top_builddir=$ac_top_build_prefix
10870
10871 case $srcdir in
10872   .)  # We are building in place.
10873     ac_srcdir=.
10874     ac_top_srcdir=$ac_top_builddir_sub
10875     ac_abs_top_srcdir=$ac_pwd ;;
10876   [\\/]* | ?:[\\/]* )  # Absolute name.
10877     ac_srcdir=$srcdir$ac_dir_suffix;
10878     ac_top_srcdir=$srcdir
10879     ac_abs_top_srcdir=$srcdir ;;
10880   *) # Relative name.
10881     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10882     ac_top_srcdir=$ac_top_build_prefix$srcdir
10883     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10884 esac
10885 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10886
10887
10888   case $ac_mode in
10889   :F)
10890   #
10891   # CONFIG_FILE
10892   #
10893
10894   case $INSTALL in
10895   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10896   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10897   esac
10898 _ACEOF
10899
10900 cat >>$CONFIG_STATUS <<\_ACEOF
10901 # If the template does not know about datarootdir, expand it.
10902 # FIXME: This hack should be removed a few years after 2.60.
10903 ac_datarootdir_hack=; ac_datarootdir_seen=
10904
10905 case `sed -n '/datarootdir/ {
10906   p
10907   q
10908 }
10909 /@datadir@/p
10910 /@docdir@/p
10911 /@infodir@/p
10912 /@localedir@/p
10913 /@mandir@/p
10914 ' $ac_file_inputs` in
10915 *datarootdir*) ac_datarootdir_seen=yes;;
10916 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10917   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10918 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10919 _ACEOF
10920 cat >>$CONFIG_STATUS <<_ACEOF
10921   ac_datarootdir_hack='
10922   s&@datadir@&$datadir&g
10923   s&@docdir@&$docdir&g
10924   s&@infodir@&$infodir&g
10925   s&@localedir@&$localedir&g
10926   s&@mandir@&$mandir&g
10927     s&\\\${datarootdir}&$datarootdir&g' ;;
10928 esac
10929 _ACEOF
10930
10931 # Neutralize VPATH when `$srcdir' = `.'.
10932 # Shell code in configure.ac might set extrasub.
10933 # FIXME: do we really want to maintain this feature?
10934 cat >>$CONFIG_STATUS <<_ACEOF
10935   sed "$ac_vpsub
10936 $extrasub
10937 _ACEOF
10938 cat >>$CONFIG_STATUS <<\_ACEOF
10939 :t
10940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10941 s&@configure_input@&$configure_input&;t t
10942 s&@top_builddir@&$ac_top_builddir_sub&;t t
10943 s&@srcdir@&$ac_srcdir&;t t
10944 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10945 s&@top_srcdir@&$ac_top_srcdir&;t t
10946 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10947 s&@builddir@&$ac_builddir&;t t
10948 s&@abs_builddir@&$ac_abs_builddir&;t t
10949 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10950 s&@INSTALL@&$ac_INSTALL&;t t
10951 $ac_datarootdir_hack
10952 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
10953
10954 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10955   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10956   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10957   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10958 which seems to be undefined.  Please make sure it is defined." >&5
10959 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10960 which seems to be undefined.  Please make sure it is defined." >&2;}
10961
10962   rm -f "$tmp/stdin"
10963   case $ac_file in
10964   -) cat "$tmp/out"; rm -f "$tmp/out";;
10965   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10966   esac
10967  ;;
10968
10969
10970
10971   esac
10972
10973 done # for ac_tag
10974
10975
10976 { (exit 0); exit 0; }
10977 _ACEOF
10978 chmod +x $CONFIG_STATUS
10979 ac_clean_files=$ac_clean_files_save
10980
10981
10982 # configure is writing to config.log, and then calls config.status.
10983 # config.status does its own redirection, appending to config.log.
10984 # Unfortunately, on DOS this fails, as config.log is still kept open
10985 # by configure, so config.status won't be able to write to it; its
10986 # output is simply discarded.  So we exec the FD to /dev/null,
10987 # effectively closing config.log, so it can be properly (re)opened and
10988 # appended to by config.status.  When coming back to configure, we
10989 # need to make the FD available again.
10990 if test "$no_create" != yes; then
10991   ac_cs_success=:
10992   ac_config_status_args=
10993   test "$silent" = yes &&
10994     ac_config_status_args="$ac_config_status_args --quiet"
10995   exec 5>/dev/null
10996   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10997   exec 5>>config.log
10998   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10999   # would make configure fail if this is the last instruction.
11000   $ac_cs_success || { (exit 1); exit 1; }
11001 fi
11002