2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for itcl 3.3.
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 ## --------------------- ##
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
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+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
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
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
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
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
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
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
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
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
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
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'"
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'"
552 exec 7<&0 </dev/null 6>&1
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`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
574 PACKAGE_TARNAME='itcl'
575 PACKAGE_VERSION='3.3'
576 PACKAGE_STRING='itcl 3.3'
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
624 program_transform_name
698 TCL_GENERIC_DIR_NATIVE
703 TCL_PLATFORM_DIR_NATIVE
733 itcl_BUILD_STUB_LIB_SPEC
735 itcl_BUILD_STUB_LIB_PATH
740 ac_precious_vars='build_alias
751 # Initialize some variables set by options.
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name=s,x,x,
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'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
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 ;;
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
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 ;;
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 ;;
860 -docdir | --docdir | --docdi | --doc | --do)
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
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 ;;
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 ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
892 -help | --help | --hel | --he | -h)
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 ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 htmldir=$ac_optarg ;;
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 ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
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 ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
952 # Obsolete; use --without-fp.
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1041 -site=* | --site=* | --sit=*)
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
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 ;;
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 ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
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 ;;
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 ;;
1086 # Obsolete; use --with-x.
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 ;;
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 ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
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 ;;
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}
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; }; }
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
1140 eval ac_val=\$$ac_var
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
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.
1154 target=$target_alias
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
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
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; }; }
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 ||
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1215 ac_srcdir_defaulted=no
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; }; }
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
1245 # Report the --help message.
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.
1251 \`configure' configures itcl 3.3 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
1258 Defaults for the options are specified in brackets.
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 \`..']
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
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'.
1282 For better control, use the options below.
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]
1310 if test -n "$ac_init_help"; then
1311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of itcl 3.3:";;
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
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
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>
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.
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
1356 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
1372 .) # We are building in place.
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 ;;
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 ;;
1385 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1387 cd "$ac_dir" || { ac_status=$?; continue; }
1388 # Check for guested configure.
1389 if test -f "$ac_srcdir/configure.gnu"; then
1391 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1392 elif test -f "$ac_srcdir/configure"; then
1394 $SHELL "$ac_srcdir/configure" --help=recursive
1396 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1398 cd "$ac_pwd" || { ac_status=$?; break; }
1402 test -n "$ac_init_help" && exit $ac_status
1403 if $ac_init_version; then
1406 generated by GNU Autoconf 2.61
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.
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.
1419 It was created by itcl $as_me 3.3, which was
1420 generated by GNU Autoconf 2.61. Invocation command line was
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`
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`
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`
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1455 test -z "$as_dir" && as_dir=.
1456 echo "PATH: $as_dir"
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.
1480 ac_must_keep_next=false
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)
1491 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1494 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
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.
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 ;;
1509 -* ) ac_must_keep_next=true ;;
1512 ac_configure_args="$ac_configure_args '$ac_arg'"
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; }
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.
1531 ## ---------------- ##
1532 ## Cache variables. ##
1533 ## ---------------- ##
1536 # The following way of writing the cache mishandles newlines in values,
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
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;} ;;
1547 _ | IFS | as_nl) ;; #(
1548 *) $as_unset $ac_var ;;
1553 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1554 *${as_nl}ac_space=\ *)
1556 "s/'\''/'\''\\\\'\'''\''/g;
1557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1560 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1568 ## ----------------- ##
1569 ## Output variables. ##
1570 ## ----------------- ##
1573 for ac_var in $ac_subst_vars
1575 eval ac_val=\$$ac_var
1577 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1579 echo "$ac_var='\''$ac_val'\''"
1583 if test -n "$ac_subst_files"; then
1585 ## ------------------- ##
1586 ## File substitutions. ##
1587 ## ------------------- ##
1590 for ac_var in $ac_subst_files
1592 eval ac_val=\$$ac_var
1594 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1596 echo "$ac_var='\''$ac_val'\''"
1601 if test -s confdefs.h; then
1611 test "$ac_signal" != 0 &&
1612 echo "$as_me: caught signal $ac_signal"
1613 echo "$as_me: exit $exit_status"
1615 rm -f core *.core core.conftest.* &&
1616 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1619 for ac_signal in 1 2 13 15; do
1620 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1624 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1625 rm -f -r conftest* confdefs.h
1627 # Predefined preprocessor variables.
1629 cat >>confdefs.h <<_ACEOF
1630 #define PACKAGE_NAME "$PACKAGE_NAME"
1634 cat >>confdefs.h <<_ACEOF
1635 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1639 cat >>confdefs.h <<_ACEOF
1640 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1644 cat >>confdefs.h <<_ACEOF
1645 #define PACKAGE_STRING "$PACKAGE_STRING"
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1661 set x "$ac_default_prefix/share/config.site" \
1662 "$ac_default_prefix/etc/config.site"
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
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;}
1682 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1683 *) . "./$cache_file";;
1687 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1688 echo "$as_me: creating cache $cache_file" >&6;}
1692 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1721 # Pass precious variables to config.status.
1722 if test "$ac_new_set" = set; then
1724 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1725 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
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 #--------------------------------------------------------------------
1780 # TEA extensions pass this us the version of TEA they think they
1781 # are compatible with.
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; }; }
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; }
1803 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5
1804 echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; }
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
1815 if test -n "$CYGPATH"; then
1816 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1833 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
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; }
1841 { echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6; }
1847 TEA_PLATFORM="windows"
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
1868 # This package name must be replaced statically for AC_SUBST to work
1870 # Substitute STUB_LIB_FILE in case package creates a stub library too.
1873 # We AC_SUBST these here to ensure they are subst'ed,
1874 # in case the user doesn't call TEA_ADD_...
1884 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
1885 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1887 if test "$LN_S" = "ln -s"; then
1888 { echo "$as_me:$LINENO: result: yes" >&5
1889 echo "${ECHO_T}yes" >&6; }
1891 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1892 echo "${ECHO_T}no, using $LN_S" >&6; }
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
1905 for ac_dir in tclconfig "$srcdir"/tclconfig; do
1906 if test -f "$ac_dir/install-sh"; then
1908 ac_install_sh="$ac_aux_dir/install-sh -c"
1910 elif test -f "$ac_dir/install.sh"; then
1912 ac_install_sh="$ac_aux_dir/install.sh -c"
1914 elif test -f "$ac_dir/shtool"; then
1916 ac_install_sh="$ac_aux_dir/shtool install -c"
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; }; }
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.
1936 #--------------------------------------------------------------------
1937 # Load the tclConfig.sh file
1938 #--------------------------------------------------------------------
1943 # Ok, lets find the tcl configuration
1944 # First, look for one uninstalled.
1945 # the alternative search directory is invoked by --with-tcl
1948 if test x"${no_tcl}" = x ; then
1949 # we reset no_tcl in case something fails here
1952 # Check whether --with-tcl was given.
1953 if test "${with_tcl+set}" = set; then
1954 withval=$with_tcl; with_tclconfig=${withval}
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
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; }; }
1973 # First check to see if --with-tcl was specified.
1974 if test x"${with_tclconfig}" != x ; then
1975 case ${with_tclconfig} in
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$!!'`
1983 if test -f "${with_tclconfig}/tclConfig.sh" ; then
1984 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
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; }; }
1992 # then check for a private Tcl installation
1993 if test x"${ac_cv_c_tclconfig}" = x ; then
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` \
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` \
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)`
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` \
2022 if test -f "$i/tclConfig.sh" ; then
2023 ac_cv_c_tclconfig=`(cd $i; pwd)`
2029 # check in a few other private locations
2030 if test x"${ac_cv_c_tclconfig}" = x ; then
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
2037 if test -f "$i/$platform/tclConfig.sh" ; then
2038 ac_cv_c_tclconfig=`(cd $i/$platform; pwd)`
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;}
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; }
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; }
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
2069 { echo "$as_me:$LINENO: result: file not found" >&5
2070 echo "${ECHO_T}file not found" >&6; }
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.
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}
2089 # eval is required to do the TCL_DBGX substitution
2092 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
2093 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
2094 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
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}\""
2117 #AC_SUBST(TCL_BUILD_LIB_SPEC)
2118 #AC_SUBST(TCL_BUILD_STUB_LIB_SPEC)
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 #-----------------------------------------------------------------------
2127 if test "${prefix}" = "NONE"; then
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}
2134 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5
2135 echo "$as_me: --prefix defaulting to /usr/local" >&6;}
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}
2146 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5
2147 echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
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 #-----------------------------------------------------------------------
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.
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
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
2183 if test -n "$CC"; then
2184 ac_cv_prog_CC="$CC" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2204 if test -n "$CC"; then
2205 { echo "$as_me:$LINENO: result: $CC" >&5
2206 echo "${ECHO_T}$CC" >&6; }
2208 { echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6; }
2214 if test -z "$ac_cv_prog_CC"; then
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
2223 if test -n "$ac_ct_CC"; then
2224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2248 { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2252 if test "x$ac_ct_CC" = x; then
2255 case $cross_compiling:$ac_tool_warned in
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 ;;
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
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2301 if test -n "$CC"; then
2302 { echo "$as_me:$LINENO: result: $CC" >&5
2303 echo "${ECHO_T}$CC" >&6; }
2305 { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
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
2320 if test -n "$CC"; then
2321 ac_cv_prog_CC="$CC" # Let the user override the test.
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
2352 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2358 if test -n "$CC"; then
2359 { echo "$as_me:$LINENO: result: $CC" >&5
2360 echo "${ECHO_T}$CC" >&6; }
2362 { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2368 if test -z "$CC"; then
2369 if test -n "$ac_tool_prefix"; then
2370 for ac_prog in cl.exe
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
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2400 if test -n "$CC"; then
2401 { echo "$as_me:$LINENO: result: $CC" >&5
2402 echo "${ECHO_T}$CC" >&6; }
2404 { echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6; }
2409 test -n "$CC" && break
2412 if test -z "$CC"; then
2414 for ac_prog in cl.exe
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
2423 if test -n "$ac_ct_CC"; then
2424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2448 { echo "$as_me:$LINENO: result: no" >&5
2449 echo "${ECHO_T}no" >&6; }
2453 test -n "$ac_ct_CC" && break
2456 if test "x$ac_ct_CC" = x; then
2459 case $cross_compiling:$ac_tool_warned in
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 ;;
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; }; }
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"
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_compiler --version >&5") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }
2495 { (ac_try="$ac_compiler -v >&5"
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_compiler -v >&5") 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }
2505 { (ac_try="$ac_compiler -V >&5"
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511 (eval "$ac_compiler -V >&5") 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }
2516 cat >conftest.$ac_ext <<_ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
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
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[^ ]*//'`
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'
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.
2549 for ac_file in $ac_files
2552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2553 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2558 if { (ac_try="$ac_link_default"
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_link_default") 2>&5
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
2573 for ac_file in $ac_files ''
2575 test -f "$ac_file" || continue
2577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2580 # We found the default executable, but exeext='' is most
2584 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2586 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
2598 test "$ac_cv_exeext" = no && ac_cv_exeext=
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
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; }; }
2617 ac_exeext=$ac_cv_exeext
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;;
2631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2632 (eval "$ac_try") 2>&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2638 if test "$cross_compiling" = maybe; then
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; }; }
2651 { echo "$as_me:$LINENO: result: yes" >&5
2652 echo "${ECHO_T}yes" >&6; }
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; }
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"
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671 (eval "$ac_link") 2>&5
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
2679 for ac_file in conftest.exe conftest conftest.*; do
2680 test -f "$ac_file" || continue
2682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2683 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }; }
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; }
2700 rm -f conftest.$ac_ext
2701 EXEEXT=$ac_cv_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
2708 cat >conftest.$ac_ext <<_ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h. */
2723 rm -f conftest.o conftest.obj
2724 if { (ac_try="$ac_compile"
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_compile") 2>&5
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;
2737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2738 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
2753 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2755 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2756 echo "${ECHO_T}$ac_cv_objext" >&6; }
2757 OBJEXT=$ac_cv_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
2764 cat >conftest.$ac_ext <<_ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2782 rm -f conftest.$ac_objext
2783 if { (ac_try="$ac_compile"
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compile") 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
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
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 ac_cv_c_compiler_gnu=$ac_compiler_gnu
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
2821 ac_save_c_werror_flag=$ac_c_werror_flag
2822 ac_c_werror_flag=yes
2825 cat >conftest.$ac_ext <<_ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2840 rm -f conftest.$ac_objext
2841 if { (ac_try="$ac_compile"
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_compile") 2>conftest.er1
2849 grep -v '^ *+' conftest.er1 >conftest.err
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
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2863 cat >conftest.$ac_ext <<_ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2878 rm -f conftest.$ac_objext
2879 if { (ac_try="$ac_compile"
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_compile") 2>conftest.er1
2887 grep -v '^ *+' conftest.er1 >conftest.err
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
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2900 ac_c_werror_flag=$ac_save_c_werror_flag
2902 cat >conftest.$ac_ext <<_ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2917 rm -f conftest.$ac_objext
2918 if { (ac_try="$ac_compile"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compile") 2>conftest.er1
2926 grep -v '^ *+' conftest.er1 >conftest.err
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
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2949 ac_c_werror_flag=$ac_save_c_werror_flag
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
2962 if test "$GCC" = yes; then
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
2973 ac_cv_prog_cc_c89=no
2975 cat >conftest.$ac_ext <<_ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.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)
2994 static char *f (char * (*g) (char **, int), char **p, ...)
2999 s = g (p, va_arg (v,int));
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];
3013 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3014 inside strings and character constants. */
3016 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
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);
3027 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3032 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3033 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3035 CC="$ac_save_CC $ac_arg"
3036 rm -f conftest.$ac_objext
3037 if { (ac_try="$ac_compile"
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_compile") 2>conftest.er1
3045 grep -v '^ *+' conftest.er1 >conftest.err
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
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3061 rm -f core conftest.err conftest.$ac_objext
3062 test "x$ac_cv_prog_cc_c89" != "xno" && break
3064 rm -f conftest.$ac_ext
3069 case "x$ac_cv_prog_cc_c89" in
3071 { echo "$as_me:$LINENO: result: none needed" >&5
3072 echo "${ECHO_T}none needed" >&6; } ;;
3074 { echo "$as_me:$LINENO: result: unsupported" >&5
3075 echo "${ECHO_T}unsupported" >&6; } ;;
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; } ;;
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
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
3100 if test -z "$CPP"; then
3101 if test "${ac_cv_prog_CPP+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 # Double quotes because CPP needs to be expanded
3105 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3108 for ac_c_preproc_warn_flag in '' yes
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
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3123 # include <limits.h>
3125 # include <assert.h>
3129 if { (ac_try="$ac_cpp conftest.$ac_ext"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3137 grep -v '^ *+' conftest.er1 >conftest.err
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
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 # Broken: fails on valid input.
3154 rm -f conftest.err conftest.$ac_ext
3156 # OK, works on sane cases. Now check whether nonexistent headers
3157 # can be detected and how.
3158 cat >conftest.$ac_ext <<_ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3164 #include <ac_nonexistent.h>
3166 if { (ac_try="$ac_cpp conftest.$ac_ext"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
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
3182 # Broken: success on invalid input.
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3188 # Passes both tests.
3193 rm -f conftest.err conftest.$ac_ext
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
3210 { echo "$as_me:$LINENO: result: $CPP" >&5
3211 echo "${ECHO_T}$CPP" >&6; }
3213 for ac_c_preproc_warn_flag in '' yes
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
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3228 # include <limits.h>
3230 # include <assert.h>
3234 if { (ac_try="$ac_cpp conftest.$ac_ext"
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242 grep -v '^ *+' conftest.er1 >conftest.err
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
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 # Broken: fails on valid input.
3259 rm -f conftest.err conftest.$ac_ext
3261 # OK, works on sane cases. Now check whether nonexistent headers
3262 # can be detected and how.
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269 #include <ac_nonexistent.h>
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3279 grep -v '^ *+' conftest.er1 >conftest.err
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
3287 # Broken: success on invalid input.
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3293 # Passes both tests.
3298 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
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
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
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir=.
3344 # Account for people who put trailing slashes in PATH elements.
3346 ./ | .// | /cC/* | \
3347 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3348 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
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.
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.
3366 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3379 if test "${ac_cv_path_install+set}" = set; then
3380 INSTALL=$ac_cv_path_install
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
3389 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3390 echo "${ECHO_T}$INSTALL" >&6; }
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}'
3396 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3398 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3401 #--------------------------------------------------------------------
3402 # Checks to see if the make program sets the $MAKE variable.
3403 #--------------------------------------------------------------------
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
3411 cat >conftest.make <<\_ACEOF
3414 @echo '@@@%%%=$(MAKE)=@@@%%%'
3416 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3417 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3419 eval ac_cv_prog_make_${ac_make}_set=yes;;
3421 eval ac_cv_prog_make_${ac_make}_set=no;;
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; }
3430 { echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6; }
3432 SET_MAKE="MAKE=${MAKE-make}"
3436 #--------------------------------------------------------------------
3438 #--------------------------------------------------------------------
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
3448 if test -n "$RANLIB"; then
3449 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
3473 { echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6; }
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
3488 if test -n "$ac_ct_RANLIB"; then
3489 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
3513 { echo "$as_me:$LINENO: result: no" >&5
3514 echo "${ECHO_T}no" >&6; }
3517 if test "x$ac_ct_RANLIB" = x; then
3520 case $cross_compiling:$ac_tool_warned in
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 ;;
3530 RANLIB=$ac_ct_RANLIB
3533 RANLIB="$ac_cv_prog_RANLIB"
3537 #--------------------------------------------------------------------
3538 # Determines the correct binary file extension (.o, .obj, .exe etc.)
3539 #--------------------------------------------------------------------
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
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
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
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
3572 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3575 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
3590 # 10*(2^10) chars as input seems more than enough
3591 test $ac_count -gt 10 && break
3593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3597 $ac_path_GREP_found && break 3
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; }; }
3615 ac_cv_path_GREP=$GREP
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"
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
3630 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3631 then ac_cv_path_EGREP="$GREP -E"
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
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
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
3654 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3657 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
3672 # 10*(2^10) chars as input seems more than enough
3673 test $ac_count -gt 10 && break
3675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3679 $ac_path_EGREP_found && break 3
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; }; }
3697 ac_cv_path_EGREP=$EGREP
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"
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
3713 cat >conftest.$ac_ext <<_ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3732 rm -f conftest.$ac_objext
3733 if { (ac_try="$ac_compile"
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_compile") 2>conftest.er1
3741 grep -v '^ *+' conftest.er1 >conftest.err
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
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3754 ac_cv_header_stdc=no
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3771 $EGREP "memchr" >/dev/null 2>&1; then
3774 ac_cv_header_stdc=no
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
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3792 $EGREP "free" >/dev/null 2>&1; then
3795 ac_cv_header_stdc=no
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
3806 cat >conftest.$ac_ext <<_ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3814 #if ((' ' & 0x0FF) == 0x020)
3815 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3816 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
3825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3830 for (i = 0; i < 256; i++)
3831 if (XOR (islower (i), ISLOWER (i))
3832 || toupper (i) != TOUPPER (i))
3837 rm -f conftest$ac_exeext
3838 if { (ac_try="$ac_link"
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_link") 2>&5
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;;
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_try") 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
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
3864 ac_cv_header_stdc=no
3866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
3876 cat >>confdefs.h <<\_ACEOF
3877 #define STDC_HEADERS 1
3882 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
3901 cat >conftest.$ac_ext <<_ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907 $ac_includes_default
3909 #include <$ac_header>
3911 rm -f conftest.$ac_objext
3912 if { (ac_try="$ac_compile"
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3918 (eval "$ac_compile") 2>conftest.er1
3920 grep -v '^ *+' conftest.er1 >conftest.err
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"
3930 echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3933 eval "$as_ac_Header=no"
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
3952 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
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 #------------------------------------------------------------------------
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; }
3965 cat >conftest.$ac_ext <<_ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3980 rm -f conftest.$ac_objext
3981 if { (ac_try="$ac_compile"
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_compile") 2>conftest.er1
3989 grep -v '^ *+' conftest.er1 >conftest.err
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; }
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4004 { echo "$as_me:$LINENO: result: no" >&5
4005 echo "${ECHO_T}no" >&6; }
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 #--------------------------------------------------------------------
4012 # Common compiler flag setup
4013 #--------------------------------------------------------------------
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
4020 # See if sys/param.h defines the BYTE_ORDER macro.
4021 cat >conftest.$ac_ext <<_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>
4033 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4034 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4042 rm -f conftest.$ac_objext
4043 if { (ac_try="$ac_compile"
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_compile") 2>conftest.er1
4051 grep -v '^ *+' conftest.er1 >conftest.err
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
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>
4072 #if BYTE_ORDER != BIG_ENDIAN
4080 rm -f conftest.$ac_objext
4081 if { (ac_try="$ac_compile"
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_compile") 2>conftest.er1
4089 grep -v '^ *+' conftest.er1 >conftest.err
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
4099 echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4102 ac_cv_c_bigendian=no
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
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
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; }
4129 _ascii (); _ebcdic ();
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
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
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
4158 # finding both strings is unlikely to happen, but who knows?
4159 ac_cv_c_bigendian=unknown
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 $ac_includes_default
4182 /* Are we little or big endian? From Harbison&Steele. */
4186 char c[sizeof (long int)];
4189 return u.c[sizeof (long int) - 1] == 1;
4195 rm -f conftest$ac_exeext
4196 if { (ac_try="$ac_link"
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_link") 2>&5
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;;
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_try") 2>&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 ac_cv_c_bigendian=no
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
4222 ac_cv_c_bigendian=yes
4224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
4237 cat >>confdefs.h <<\_ACEOF
4238 #define WORDS_BIGENDIAN 1
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; }; } ;;
4251 if test "${TEA_PLATFORM}" = "unix" ; then
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 #--------------------------------------------------------------------
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
4265 cat >conftest.$ac_ext <<_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
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. */
4281 # include <limits.h>
4283 # include <assert.h>
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. */
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
4310 rm -f conftest.$ac_objext conftest$ac_exeext
4311 if { (ac_try="$ac_link"
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_link") 2>conftest.er1
4319 grep -v '^ *+' conftest.er1 >conftest.err
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
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4337 conftest$ac_exeext conftest.$ac_ext
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
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
4352 ac_check_lib_save_LIBS=$LIBS
4354 cat >conftest.$ac_ext <<_ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4370 rm -f conftest.$ac_objext conftest$ac_exeext
4371 if { (ac_try="$ac_link"
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_link") 2>conftest.er1
4379 grep -v '^ *+' conftest.er1 >conftest.err
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
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 ac_cv_lib_ieee_main=no
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
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"
4407 #--------------------------------------------------------------------
4408 # Interactive UNIX requires -linet instead of -lsocket, plus it
4409 # needs net/errno.h to define the socket-related error codes.
4410 #--------------------------------------------------------------------
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
4417 ac_check_lib_save_LIBS=$LIBS
4419 cat >conftest.$ac_ext <<_ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4435 rm -f conftest.$ac_objext conftest$ac_exeext
4436 if { (ac_try="$ac_link"
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_link") 2>conftest.er1
4444 grep -v '^ *+' conftest.er1 >conftest.err
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
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4458 ac_cv_lib_inet_main=no
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
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
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
4477 { echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
4478 echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; }
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
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>
4492 rm -f conftest.$ac_objext
4493 if { (ac_try="$ac_compile"
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499 (eval "$ac_compile") 2>conftest.er1
4501 grep -v '^ *+' conftest.er1 >conftest.err
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
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4514 ac_header_compiler=no
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; }
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
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 #include <net/errno.h>
4532 if { (ac_try="$ac_cpp conftest.$ac_ext"
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4540 grep -v '^ *+' conftest.er1 >conftest.err
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
4548 ac_header_preproc=yes
4550 echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4553 ac_header_preproc=no
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; }
4560 # So? What about this header?
4561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
4590 ac_cv_header_net_errno_h=$ac_header_preproc
4592 { echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
4593 echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; }
4596 if test $ac_cv_header_net_errno_h = yes; then
4597 cat >>confdefs.h <<\_ACEOF
4598 #define HAVE_NET_ERRNO_H 1
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 #--------------------------------------------------------------------
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
4629 cat >conftest.$ac_ext <<_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
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. */
4645 # include <limits.h>
4647 # include <assert.h>
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. */
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
4674 rm -f conftest.$ac_objext conftest$ac_exeext
4675 if { (ac_try="$ac_link"
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4681 (eval "$ac_link") 2>conftest.er1
4683 grep -v '^ *+' conftest.er1 >conftest.err
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
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4697 ac_cv_func_connect=no
4700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4701 conftest$ac_exeext conftest.$ac_ext
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
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
4717 cat >conftest.$ac_ext <<_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
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. */
4733 # include <limits.h>
4735 # include <assert.h>
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. */
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
4757 return setsockopt ();
4762 rm -f conftest.$ac_objext conftest$ac_exeext
4763 if { (ac_try="$ac_link"
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_link") 2>conftest.er1
4771 grep -v '^ *+' conftest.er1 >conftest.err
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
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 ac_cv_func_setsockopt=no
4788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4789 conftest$ac_exeext conftest.$ac_ext
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
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
4801 ac_check_lib_save_LIBS=$LIBS
4802 LIBS="-lsocket $LIBS"
4803 cat >conftest.$ac_ext <<_ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
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. */
4820 return setsockopt ();
4825 rm -f conftest.$ac_objext conftest$ac_exeext
4826 if { (ac_try="$ac_link"
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_link") 2>conftest.er1
4834 grep -v '^ *+' conftest.er1 >conftest.err
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
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4848 ac_cv_lib_socket_setsockopt=no
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
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"
4866 if test "$tcl_checkBoth" = 1; then
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
4874 cat >conftest.$ac_ext <<_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
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. */
4890 # include <limits.h>
4892 # include <assert.h>
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. */
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
4919 rm -f conftest.$ac_objext conftest$ac_exeext
4920 if { (ac_try="$ac_link"
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4926 (eval "$ac_link") 2>conftest.er1
4928 grep -v '^ *+' conftest.er1 >conftest.err
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
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4942 ac_cv_func_accept=no
4945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4946 conftest$ac_exeext conftest.$ac_ext
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
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
4962 cat >conftest.$ac_ext <<_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
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. */
4978 # include <limits.h>
4980 # include <assert.h>
4983 #undef gethostbyname
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. */
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
5002 return gethostbyname ();
5007 rm -f conftest.$ac_objext conftest$ac_exeext
5008 if { (ac_try="$ac_link"
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014 (eval "$ac_link") 2>conftest.er1
5016 grep -v '^ *+' conftest.er1 >conftest.err
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
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5030 ac_cv_func_gethostbyname=no
5033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5034 conftest$ac_exeext conftest.$ac_ext
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
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
5046 ac_check_lib_save_LIBS=$LIBS
5048 cat >conftest.$ac_ext <<_ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
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. */
5061 char gethostbyname ();
5065 return gethostbyname ();
5070 rm -f conftest.$ac_objext conftest$ac_exeext
5071 if { (ac_try="$ac_link"
5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074 *) ac_try_echo=$ac_try;;
5076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5077 (eval "$ac_link") 2>conftest.er1
5079 grep -v '^ *+' conftest.er1 >conftest.err
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
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 ac_cv_lib_nsl_gethostbyname=no
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
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
5109 # Don't perform the eval of the libraries here because DL_LIBS
5110 # won't be set until we call TEA_CONFIG_CFLAGS
5112 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
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
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 #include <sys/types.h>
5131 #ifndef _POSIX_SOURCE
5134 * Generate compilation error to make the test fail: Lynx headers
5135 * are only valid if really in the POSIX environment.
5138 missing_procedure();
5142 struct dirent *entryPtr;
5144 d = opendir("foobar");
5145 entryPtr = readdir(d);
5146 p = entryPtr->d_name;
5153 rm -f conftest.$ac_objext conftest$ac_exeext
5154 if { (ac_try="$ac_link"
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5160 (eval "$ac_link") 2>conftest.er1
5162 grep -v '^ *+' conftest.er1 >conftest.err
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
5173 echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5180 conftest$ac_exeext conftest.$ac_ext
5182 if test $tcl_ok = no; then
5183 cat >>confdefs.h <<\_ACEOF
5184 #define NO_DIRENT_H 1
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
5197 { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5198 echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
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
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 $ac_includes_default
5212 rm -f conftest.$ac_objext
5213 if { (ac_try="$ac_compile"
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_compile") 2>conftest.er1
5221 grep -v '^ *+' conftest.er1 >conftest.err
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
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5234 ac_header_compiler=no
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; }
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
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5252 if { (ac_try="$ac_cpp conftest.$ac_ext"
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5260 grep -v '^ *+' conftest.er1 >conftest.err
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
5268 ac_header_preproc=yes
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 ac_header_preproc=no
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; }
5280 # So? What about this header?
5281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
5310 ac_cv_header_errno_h=$ac_header_preproc
5312 { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5313 echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5316 if test $ac_cv_header_errno_h = yes; then
5319 cat >>confdefs.h <<\_ACEOF
5320 #define NO_ERRNO_H 1
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
5332 { echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
5333 echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
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
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5344 $ac_includes_default
5347 rm -f conftest.$ac_objext
5348 if { (ac_try="$ac_compile"
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_compile") 2>conftest.er1
5356 grep -v '^ *+' conftest.er1 >conftest.err
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
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5369 ac_header_compiler=no
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; }
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
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5387 if { (ac_try="$ac_cpp conftest.$ac_ext"
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5395 grep -v '^ *+' conftest.er1 >conftest.err
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
5403 ac_header_preproc=yes
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5408 ac_header_preproc=no
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; }
5415 # So? What about this header?
5416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
5445 ac_cv_header_float_h=$ac_header_preproc
5447 { echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
5448 echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
5451 if test $ac_cv_header_float_h = yes; then
5454 cat >>confdefs.h <<\_ACEOF
5455 #define NO_FLOAT_H 1
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
5467 { echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
5468 echo "${ECHO_T}$ac_cv_header_values_h" >&6; }
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
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 $ac_includes_default
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
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
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 ac_header_compiler=no
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; }
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
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5522 if { (ac_try="$ac_cpp conftest.$ac_ext"
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5530 grep -v '^ *+' conftest.er1 >conftest.err
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
5538 ac_header_preproc=yes
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_header_preproc=no
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; }
5550 # So? What about this header?
5551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
5580 ac_cv_header_values_h=$ac_header_preproc
5582 { echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
5583 echo "${ECHO_T}$ac_cv_header_values_h" >&6; }
5586 if test $ac_cv_header_values_h = yes; then
5589 cat >>confdefs.h <<\_ACEOF
5590 #define NO_VALUES_H 1
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
5602 { echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
5603 echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
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
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5614 $ac_includes_default
5617 rm -f conftest.$ac_objext
5618 if { (ac_try="$ac_compile"
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_compile") 2>conftest.er1
5626 grep -v '^ *+' conftest.er1 >conftest.err
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
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5639 ac_header_compiler=no
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; }
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
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5657 if { (ac_try="$ac_cpp conftest.$ac_ext"
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5665 grep -v '^ *+' conftest.er1 >conftest.err
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
5673 ac_header_preproc=yes
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 ac_header_preproc=no
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; }
5685 # So? What about this header?
5686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
5715 ac_cv_header_limits_h=$ac_header_preproc
5717 { echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
5718 echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
5721 if test $ac_cv_header_limits_h = yes; then
5722 cat >>confdefs.h <<\_ACEOF
5723 #define HAVE_LIMITS_H 1
5727 cat >>confdefs.h <<\_ACEOF
5728 #define NO_LIMITS_H 1
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
5740 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
5741 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
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
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 $ac_includes_default
5755 rm -f conftest.$ac_objext
5756 if { (ac_try="$ac_compile"
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_compile") 2>conftest.er1
5764 grep -v '^ *+' conftest.er1 >conftest.err
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
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777 ac_header_compiler=no
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; }
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
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5795 if { (ac_try="$ac_cpp conftest.$ac_ext"
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5803 grep -v '^ *+' conftest.er1 >conftest.err
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
5811 ac_header_preproc=yes
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5816 ac_header_preproc=no
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; }
5823 # So? What about this header?
5824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
5853 ac_cv_header_stdlib_h=$ac_header_preproc
5855 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
5856 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
5859 if test $ac_cv_header_stdlib_h = yes; then
5866 cat >conftest.$ac_ext <<_ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5876 $EGREP "strtol" >/dev/null 2>&1; then
5883 cat >conftest.$ac_ext <<_ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5893 $EGREP "strtoul" >/dev/null 2>&1; then
5900 cat >conftest.$ac_ext <<_ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5910 $EGREP "strtod" >/dev/null 2>&1; then
5917 if test $tcl_ok = 0; then
5918 cat >>confdefs.h <<\_ACEOF
5919 #define NO_STDLIB_H 1
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
5929 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
5930 echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
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
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 $ac_includes_default
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compile") 2>conftest.er1
5953 grep -v '^ *+' conftest.er1 >conftest.err
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
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5966 ac_header_compiler=no
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; }
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
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5984 if { (ac_try="$ac_cpp conftest.$ac_ext"
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5992 grep -v '^ *+' conftest.er1 >conftest.err
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
6000 ac_header_preproc=yes
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 ac_header_preproc=no
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; }
6012 # So? What about this header?
6013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
6042 ac_cv_header_string_h=$ac_header_preproc
6044 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6045 echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
6048 if test $ac_cv_header_string_h = yes; then
6055 cat >conftest.$ac_ext <<_ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065 $EGREP "strstr" >/dev/null 2>&1; then
6072 cat >conftest.$ac_ext <<_ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6082 $EGREP "strerror" >/dev/null 2>&1; then
6090 # See also memmove check below for a place where NO_STRING_H can be
6093 if test $tcl_ok = 0; then
6094 cat >>confdefs.h <<\_ACEOF
6095 #define NO_STRING_H 1
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
6106 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6107 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
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
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>
6121 rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_compile") 2>conftest.er1
6130 grep -v '^ *+' conftest.er1 >conftest.err
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
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 ac_header_compiler=no
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; }
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
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159 #include <sys/wait.h>
6161 if { (ac_try="$ac_cpp conftest.$ac_ext"
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6169 grep -v '^ *+' conftest.er1 >conftest.err
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
6177 ac_header_preproc=yes
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6182 ac_header_preproc=no
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; }
6189 # So? What about this header?
6190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
6219 ac_cv_header_sys_wait_h=$ac_header_preproc
6221 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6222 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6225 if test $ac_cv_header_sys_wait_h = yes; then
6228 cat >>confdefs.h <<\_ACEOF
6229 #define NO_SYS_WAIT_H 1
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
6241 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6242 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
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
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 $ac_includes_default
6256 rm -f conftest.$ac_objext
6257 if { (ac_try="$ac_compile"
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6265 grep -v '^ *+' conftest.er1 >conftest.err
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
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 ac_header_compiler=no
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; }
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
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6296 if { (ac_try="$ac_cpp conftest.$ac_ext"
6298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299 *) ac_try_echo=$ac_try;;
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6304 grep -v '^ *+' conftest.er1 >conftest.err
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
6312 ac_header_preproc=yes
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 ac_header_preproc=no
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; }
6324 # So? What about this header?
6325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
6354 ac_cv_header_dlfcn_h=$ac_header_preproc
6356 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6357 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
6360 if test $ac_cv_header_dlfcn_h = yes; then
6363 cat >>confdefs.h <<\_ACEOF
6364 #define NO_DLFCN_H 1
6371 # OS/390 lacks sys/param.h (and doesn't need it, by chance).
6373 for ac_header in sys/param.h
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
6382 ac_res=`eval echo '${'$as_ac_Header'}'`
6383 { echo "$as_me:$LINENO: result: $ac_res" >&5
6384 echo "${ECHO_T}$ac_res" >&6; }
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
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>
6398 rm -f conftest.$ac_objext
6399 if { (ac_try="$ac_compile"
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405 (eval "$ac_compile") 2>conftest.er1
6407 grep -v '^ *+' conftest.er1 >conftest.err
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
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6420 ac_header_compiler=no
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; }
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
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 #include <$ac_header>
6438 if { (ac_try="$ac_cpp conftest.$ac_ext"
6440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441 *) ac_try_echo=$ac_try;;
6443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6446 grep -v '^ *+' conftest.er1 >conftest.err
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
6454 ac_header_preproc=yes
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6459 ac_header_preproc=no
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; }
6466 # So? What about this header?
6467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
6496 eval "$as_ac_Header=\$ac_header_preproc"
6498 ac_res=`eval echo '${'$as_ac_Header'}'`
6499 { echo "$as_me:$LINENO: result: $ac_res" >&5
6500 echo "${ECHO_T}$ac_res" >&6; }
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
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.
6521 #-----------------------------------------------------------------------
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 #-----------------------------------------------------------------------
6532 vars="itclStubInit.c
6547 PKG_SOURCES="$PKG_SOURCES $i"
6548 PKG_OBJECTS="$PKG_OBJECTS $i"
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" \
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; }; }
6559 PKG_SOURCES="$PKG_SOURCES $i"
6560 # this assumes it is in a VPATH dir
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}"
6566 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6568 PKG_OBJECTS="$PKG_OBJECTS $j"
6576 vars="generic/itcl.h
6579 generic/itclIntDecls.h"
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; }; }
6587 PKG_HEADERS="$PKG_HEADERS $i"
6592 vars="-I\"`${CYGPATH} ${srcdir}/generic`\""
6594 PKG_INCLUDES="$PKG_INCLUDES $i"
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'`
6605 PKG_LIBS="$PKG_LIBS $i"
6610 PKG_CFLAGS="$PKG_CFLAGS "
6614 vars="itclStubLib.c"
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" \
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; }; }
6624 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
6625 # this assumes it is in a VPATH dir
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}"
6631 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6633 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
6639 vars="library/itcl.tcl"
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; }; }
6647 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
6652 #--------------------------------------------------------------------
6654 # A few miscellaneous platform-specific items:
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
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
6664 # Define any extra compiler flags in the PACKAGE_CFLAGS variable.
6665 # These will be appended to the current set of compiler flags for
6667 #--------------------------------------------------------------------
6669 if test "${TEA_PLATFORM}" = "windows" ; then
6670 cat >>confdefs.h <<\_ACEOF
6671 #define BUILD_itcl 1
6674 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch"
6676 vars="dllEntryPoint.c"
6681 PKG_SOURCES="$PKG_SOURCES $i"
6682 PKG_OBJECTS="$PKG_OBJECTS $i"
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" \
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; }; }
6693 PKG_SOURCES="$PKG_SOURCES $i"
6694 # this assumes it is in a VPATH dir
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}"
6700 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6702 PKG_OBJECTS="$PKG_OBJECTS $j"
6711 #TEA_ADD_SOURCES([])
6716 #--------------------------------------------------------------------
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
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 #--------------------------------------------------------------------
6727 #TEA_PUBLIC_TCL_HEADERS
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; }
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}
6742 TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}"
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}
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}\""
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; }
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
6776 #--------------------------------------------------------------------
6778 cat >>confdefs.h <<\_ACEOF
6779 #define TCL_THREADS 1
6783 #--------------------------------------------------------------------
6784 # Check whether --enable-threads or --disable-threads was given.
6785 # This auto-enables if Tcl was compiled threaded.
6786 #--------------------------------------------------------------------
6790 #--------------------------------------------------------------------
6791 # The statement below defines a collection of symbols related to
6792 # building as a shared library instead of a static library.
6793 #--------------------------------------------------------------------
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
6806 if test "${enable_shared+set}" = set; then
6807 enableval="$enable_shared"
6813 if test "$tcl_ok" = "yes" ; then
6814 { echo "$as_me:$LINENO: result: shared" >&5
6815 echo "${ECHO_T}shared" >&6; }
6818 { echo "$as_me:$LINENO: result: static" >&5
6819 echo "${ECHO_T}static" >&6; }
6821 cat >>confdefs.h <<\_ACEOF
6822 #define STATIC_BUILD 1
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 #--------------------------------------------------------------------
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; }
6841 if test "${ac_cv_path_tclsh+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
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}"
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
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; }
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; }; }
6882 # Step 0: Enable 64 bit support?
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
6893 { echo "$as_me:$LINENO: result: $do64bit" >&5
6894 echo "${ECHO_T}$do64bit" >&6; }
6896 # Step 0.b: Enable Solaris 64 bit VIS support?
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
6907 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5
6908 echo "${ECHO_T}$do64bitVIS" >&6; }
6910 if test "$do64bitVIS" = "yes"; then
6911 # Force 64bit on with VIS
6915 # Step 0.c: Cross-compiling options for Windows/CE builds?
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
6927 { echo "$as_me:$LINENO: result: $doWince" >&5
6928 echo "${ECHO_T}$doWince" >&6; }
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.
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`
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; }
6946 # Special check for weird MP-RAS system (uname returns weird
6947 # results, and the version is kept in special file).
6949 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
6950 system=MP-RAS-`awk '{print $3}' /etc/.relid`
6952 if test "`uname -s`" = "AIX" ; then
6953 system=AIX-`uname -v`.`uname -r`
6955 if test "${TEA_PLATFORM}" = "windows" ; then
6958 { echo "$as_me:$LINENO: result: $system" >&5
6959 echo "${ECHO_T}$system" >&6; }
6963 # Step 2: check for existence of -ldl library. This is needed because
6964 # Linux can use either -ldl or -ldld for dynamic loading.
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
6971 ac_check_lib_save_LIBS=$LIBS
6973 cat >conftest.$ac_ext <<_ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
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. */
6995 rm -f conftest.$ac_objext conftest$ac_exeext
6996 if { (ac_try="$ac_link"
6998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6999 *) ac_try_echo=$ac_try;;
7001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7002 (eval "$ac_link") 2>conftest.er1
7004 grep -v '^ *+' conftest.er1 >conftest.err
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
7015 echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7018 ac_cv_lib_dl_dlopen=no
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
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
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).
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
7047 if test "$GCC" = "yes" ; then
7049 CFLAGS_WARNING="-Wall -Wno-implicit-int"
7054 TCL_NEEDS_EXP_FILE=0
7055 TCL_BUILD_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
7064 if test -n "$AR"; then
7065 ac_cv_prog_AR="$AR" # Let the user override the test.
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
7075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 if test -n "$AR"; then
7086 { echo "$as_me:$LINENO: result: $AR" >&5
7087 echo "${ECHO_T}$AR" >&6; }
7089 { echo "$as_me:$LINENO: result: no" >&5
7090 echo "${ECHO_T}no" >&6; }
7095 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
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"
7104 # Ensure that this path has no spaces to work in autoconf
7106 if test "${TEA_PLATFORM}" = "windows" ; then
7107 # we need TCLSH_PROG defined to get Windows short pathnames
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; }
7116 # Only do this if we need to.
7117 shortpath=`echo "puts [file attributes {${MSSDK}} -shortname] ; exit" | ${TCLSH_PROG} 2>/dev/null`
7120 if test "x${shortpath}" = "x" ; then
7121 { echo "$as_me:$LINENO: result: not changed" >&5
7122 echo "${ECHO_T}not changed" >&6; }
7125 { echo "$as_me:$LINENO: result: ${MSSDK}" >&5
7126 echo "${ECHO_T}${MSSDK}" >&6; }
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;}
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; }; }
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; }; }
7151 # First, look for one uninstalled.
7152 # the alternative search directory is invoked by --with-celib
7154 if test x"${no_celib}" = x ; then
7155 # we reset no_celib in case something fails here
7158 # Check whether --with-celib was given.
7159 if test "${with_celib+set}" = set; then
7160 withval=$with_celib; with_celibconfig=${withval}
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
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)`
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; }; }
7180 # then check for a celib library
7181 if test x"${ac_cv_c_celibconfig}" = x ; then
7185 ../../celib-palm-3.0 \
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` \
7192 if test -d "$i/inc" ; then
7193 ac_cv_c_celibconfig=`(cd $i; pwd)`
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; }; }
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; }
7211 if test "${TEA_PLATFORM}" = "windows" ; then
7212 # we need TCLSH_PROG defined to get Windows short pathnames
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; }
7219 case "${ac_cv_c_celibconfig}" in
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`
7225 if test "x${shortpath}" = "x" ; then
7226 { echo "$as_me:$LINENO: result: not changed" >&5
7227 echo "${ECHO_T}not changed" >&6; }
7229 CELIB_DIR=$shortpath
7230 { echo "$as_me:$LINENO: result: ${CELIB_DIR}" >&5
7231 echo "${ECHO_T}${CELIB_DIR}" >&6; }
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
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 }; \
7255 if test "x${ARCH}" = "x" ; then
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"
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"
7272 # Ensure that this path has no spaces to work in autoconf
7274 if test "${TEA_PLATFORM}" = "windows" ; then
7275 # we need TCLSH_PROG defined to get Windows short pathnames
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; }
7282 case "${WCEROOT}" in
7284 # Only do this if we need to.
7285 shortpath=`echo "puts [file attributes {${WCEROOT}} -shortname] ; exit" | ${TCLSH_PROG} 2>/dev/null`
7288 if test "x${shortpath}" = "x" ; then
7289 { echo "$as_me:$LINENO: result: not changed" >&5
7290 echo "${ECHO_T}not changed" >&6; }
7293 { echo "$as_me:$LINENO: result: ${WCEROOT}" >&5
7294 echo "${ECHO_T}${WCEROOT}" >&6; }
7299 if test "${TEA_PLATFORM}" = "windows" ; then
7300 # we need TCLSH_PROG defined to get Windows short pathnames
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; }
7307 case "${SDKROOT}" in
7309 # Only do this if we need to.
7310 shortpath=`echo "puts [file attributes {${SDKROOT}} -shortname] ; exit" | ${TCLSH_PROG} 2>/dev/null`
7313 if test "x${shortpath}" = "x" ; then
7314 { echo "$as_me:$LINENO: result: not changed" >&5
7315 echo "${ECHO_T}not changed" >&6; }
7318 { echo "$as_me:$LINENO: result: ${SDKROOT}" >&5
7319 echo "${ECHO_T}${SDKROOT}" >&6; }
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; }; }
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}"
7336 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"
7340 if test "$GCC" != "yes" ; then
7341 if test "${SHARED_BUILD}" = "0" ; then
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 \
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"
7364 CC="${CEBINROOT}/cl${ARCH}.exe"
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
7375 cat >>confdefs.h <<_ACEOF
7380 cat >>confdefs.h <<_ACEOF
7381 #define _WIN32_WCE $CEVERSION
7384 cat >>confdefs.h <<_ACEOF
7385 #define UNDER_CE $CEVERSION
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"
7398 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
7399 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7403 if test "$GCC" = "yes"; then
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}"
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'
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}
7427 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
7428 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
7432 SHLIB_LD_LIBS='${LIBS}'
7434 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
7436 TCL_LIB_VERSIONS_OK=nodots
7437 # Bogus to avoid getting this turned off
7438 DL_OBJS="tclLoadNone.obj"
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
7446 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5
7447 echo "${ECHO_T}Using $CC for compiling with threads" >&6; }
7452 SHLIB_LD_LIBS='${LIBS}'
7454 DL_OBJS="tclLoadDl.o"
7455 LD_LIBRARY_PATH_VAR="LIBPATH"
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"
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;}
7476 CFLAGS="$CFLAGS -q64"
7477 LDFLAGS="$LDFLAGS -q64"
7478 RANLIB="${RANLIB} -X64"
7480 SHLIB_LD_FLAGS="-b64"
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
7489 if test "$GCC" = "yes" ; then
7490 LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7492 LD_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
7495 if test "$GCC" = "yes" ; then
7496 SHLIB_LD="gcc -shared"
7498 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
7500 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
7502 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7503 TCL_NEEDS_EXP_FILE=1
7504 TCL_EXPORT_FILE_SUFFIX='${PACKAGE_VERSION}.exp'
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.
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
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
7524 ac_check_lib_save_LIBS=$LIBS
7526 cat >conftest.$ac_ext <<_ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
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. */
7539 char gettimeofday ();
7543 return gettimeofday ();
7548 rm -f conftest.$ac_objext conftest$ac_exeext
7549 if { (ac_try="$ac_link"
7551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552 *) ac_try_echo=$ac_try;;
7554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7555 (eval "$ac_link") 2>conftest.er1
7557 grep -v '^ *+' conftest.er1 >conftest.err
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
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7571 ac_cv_lib_bsd_gettimeofday=no
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
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
7586 if test $libbsd = yes; then
7587 MATH_LIBS="$MATH_LIBS -lbsd"
7588 cat >>confdefs.h <<\_ACEOF
7589 #define USE_DELTA_FOR_TZ 1
7595 SHLIB_CFLAGS="-fPIC"
7596 SHLIB_LD="${CC} -nostart"
7597 SHLIB_LD_LIBS='${LIBS}'
7599 DL_OBJS="tclLoadDl.o"
7602 BSD/OS-2.1*|BSD/OS-3*)
7604 SHLIB_LD="shlicc -r"
7605 SHLIB_LD_LIBS='${LIBS}'
7607 DL_OBJS="tclLoadDl.o"
7612 SHLIB_CFLAGS="-export-dynamic -fPIC"
7613 SHLIB_LD="cc -shared"
7614 SHLIB_LD_LIBS='${LIBS}'
7616 DL_OBJS="tclLoadDl.o"
7618 LDFLAGS="$LDFLAGS -export-dynamic"
7622 SHLIB_CFLAGS="-K PIC"
7626 DL_OBJS="tclLoadDl.o"
7631 # Use updated header definitions where possible
7632 cat >>confdefs.h <<\_ACEOF
7633 #define _XOPEN_SOURCE_EXTENDED 1
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
7643 ac_check_lib_save_LIBS=$LIBS
7645 cat >conftest.$ac_ext <<_ACEOF
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h. */
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. */
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (ac_try="$ac_link"
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_link") 2>conftest.er1
7676 grep -v '^ *+' conftest.er1 >conftest.err
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
7687 echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7690 ac_cv_lib_dld_shl_load=no
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
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
7705 if test "$tcl_ok" = yes; then
7708 SHLIB_LD_LIBS='${LIBS}'
7709 DL_OBJS="tclLoadShl.o"
7711 LDFLAGS="$LDFLAGS -Wl,-E"
7712 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
7713 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
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}:.'
7721 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
7722 #CFLAGS="$CFLAGS +DAportable"
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`
7730 # 64-bit gcc in use. Fix flags for GNU ld.
7732 SHLIB_LD="${CC} -shared"
7733 SHLIB_LD_LIBS='${LIBS}'
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;}
7742 CFLAGS="$CFLAGS +DD64"
7743 LDFLAGS="$LDFLAGS +DD64"
7747 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
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
7754 ac_check_lib_save_LIBS=$LIBS
7756 cat >conftest.$ac_ext <<_ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
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. */
7778 rm -f conftest.$ac_objext conftest$ac_exeext
7779 if { (ac_try="$ac_link"
7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_link") 2>conftest.er1
7787 grep -v '^ *+' conftest.er1 >conftest.err
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
7798 echo "$as_me: failed program was:" >&5
7799 sed 's/^/| /' conftest.$ac_ext >&5
7801 ac_cv_lib_dld_shl_load=no
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
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
7816 if test "$tcl_ok" = yes; then
7820 DL_OBJS="tclLoadShl.o"
7822 LDFLAGS="$LDFLAGS -Wl,-E"
7823 LD_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
7825 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7830 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
7831 SHLIB_LD_LIBS='${LIBS}'
7832 DL_OBJS="tclLoadAout.o"
7834 LDFLAGS="$LDFLAGS -Wl,-D,08000000"
7835 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7836 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
7840 SHLIB_LD="ld -shared -rdata_shared"
7841 SHLIB_LD_LIBS='${LIBS}'
7843 DL_OBJS="tclLoadDl.o"
7845 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7847 IRIX-6.*|IRIX64-6.5*)
7849 SHLIB_LD="ld -n32 -shared -rdata_shared"
7850 SHLIB_LD_LIBS='${LIBS}'
7852 DL_OBJS="tclLoadDl.o"
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"
7861 # Use to build 6.2 compatible binaries on 6.3.
7862 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
7865 CFLAGS="$CFLAGS -n32"
7868 LDFLAGS="$LDFLAGS -n32"
7873 SHLIB_LD="ld -n32 -shared -rdata_shared"
7874 SHLIB_LD_LIBS='${LIBS}'
7876 DL_OBJS="tclLoadDl.o"
7878 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7880 # Check to enable 64-bit flags for compiler/linker
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;}
7888 SHLIB_LD="ld -64 -shared -rdata_shared"
7889 CFLAGS="$CFLAGS -64"
7890 LDFLAGS="$LDFLAGS -64"
7895 SHLIB_CFLAGS="-fPIC"
7896 SHLIB_LD_LIBS='${LIBS}'
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.
7904 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
7906 if test "$have_dl" = yes; then
7907 SHLIB_LD="${CC} -shared"
7908 DL_OBJS="tclLoadDl.o"
7910 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7911 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
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
7919 { echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
7920 echo "${ECHO_T}$ac_cv_header_dld_h" >&6; }
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
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 $ac_includes_default
7934 rm -f conftest.$ac_objext
7935 if { (ac_try="$ac_compile"
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_compile") 2>conftest.er1
7943 grep -v '^ *+' conftest.er1 >conftest.err
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
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7956 ac_header_compiler=no
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; }
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
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7974 if { (ac_try="$ac_cpp conftest.$ac_ext"
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7982 grep -v '^ *+' conftest.er1 >conftest.err
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
7990 ac_header_preproc=yes
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 ac_header_preproc=no
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; }
8002 # So? What about this header?
8003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
8032 ac_cv_header_dld_h=$ac_header_preproc
8034 { echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
8035 echo "${ECHO_T}$ac_cv_header_dld_h" >&6; }
8038 if test $ac_cv_header_dld_h = yes; then
8040 SHLIB_LD="ld -shared"
8041 DL_OBJS="tclLoadDld.o"
8048 if test "`uname -m`" = "alpha" ; then
8049 CFLAGS="$CFLAGS -mieee"
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"
8065 SHLIB_CFLAGS="-fPIC"
8066 SHLIB_LD_LIBS='${LIBS}'
8069 if test "$have_dl" = yes; then
8070 SHLIB_LD="${CC} -shared"
8073 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
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
8082 { echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
8083 echo "${ECHO_T}$ac_cv_header_dld_h" >&6; }
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
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 $ac_includes_default
8097 rm -f conftest.$ac_objext
8098 if { (ac_try="$ac_compile"
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_compile") 2>conftest.er1
8106 grep -v '^ *+' conftest.er1 >conftest.err
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
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 ac_header_compiler=no
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; }
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
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8137 if { (ac_try="$ac_cpp conftest.$ac_ext"
8139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140 *) ac_try_echo=$ac_try;;
8142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8145 grep -v '^ *+' conftest.er1 >conftest.err
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
8153 ac_header_preproc=yes
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8158 ac_header_preproc=no
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; }
8165 # So? What about this header?
8166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
8195 ac_cv_header_dld_h=$ac_header_preproc
8197 { echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
8198 echo "${ECHO_T}$ac_cv_header_dld_h" >&6; }
8201 if test $ac_cv_header_dld_h = yes; then
8203 SHLIB_LD="ld -shared"
8211 if test "`uname -m`" = "alpha" ; then
8212 CFLAGS="$CFLAGS -mieee"
8216 SHLIB_CFLAGS="-K PIC"
8220 DL_OBJS="tclLoadDl.o"
8225 SHLIB_CFLAGS="-K PIC"
8229 DL_OBJS="tclLoadDl.o"
8231 LDFLAGS="$LDFLAGS -Wl,-Bexport"
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
8242 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
8243 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
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
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8254 $ac_includes_default
8257 rm -f conftest.$ac_objext
8258 if { (ac_try="$ac_compile"
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_compile") 2>conftest.er1
8266 grep -v '^ *+' conftest.er1 >conftest.err
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
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8279 ac_header_compiler=no
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; }
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
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8297 if { (ac_try="$ac_cpp conftest.$ac_ext"
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8305 grep -v '^ *+' conftest.er1 >conftest.err
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
8313 ac_header_preproc=yes
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8318 ac_header_preproc=no
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; }
8325 # So? What about this header?
8326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
8355 ac_cv_header_dlfcn_h=$ac_header_preproc
8357 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
8358 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
8361 if test $ac_cv_header_dlfcn_h = yes; then
8363 # NetBSD/SPARC needs -fPIC, -fpic will not do.
8364 SHLIB_CFLAGS="-fPIC"
8365 SHLIB_LD="ld -Bshareable -x"
8368 DL_OBJS="tclLoadDl.o"
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
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h. */
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'
8391 { echo "$as_me:$LINENO: result: no" >&5
8392 echo "${ECHO_T}no" >&6; }
8393 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
8402 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
8403 SHLIB_LD_LIBS='${LIBS}'
8405 DL_OBJS="tclLoadAout.o"
8407 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
8408 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8414 # FreeBSD doesn't handle version numbers with dots.
8416 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8417 TCL_LIB_VERSIONS_OK=nodots
8420 SHLIB_LD="${CC} -shared"
8421 SHLIB_LD_LIBS='${LIBS}'
8423 DL_OBJS="tclLoadDl.o"
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
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
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'
8446 { echo "$as_me:$LINENO: result: no" >&5
8447 echo "${ECHO_T}no" >&6; }
8448 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
8454 # OpenBSD doesn't do version numbers with dots.
8455 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8456 TCL_LIB_VERSIONS_OK=nodots
8459 # FreeBSD 3.* and greater have ELF.
8460 SHLIB_CFLAGS="-fPIC"
8461 SHLIB_LD="ld -Bshareable -x"
8462 SHLIB_LD_LIBS='${LIBS}'
8464 DL_OBJS="tclLoadDl.o"
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"
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
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"
8490 LDFLAGS="$LDFLAGS -prebind -Wl,-search_paths_first"
8492 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
8493 CFLAGS_OPTIMIZE="-Os"
8497 SHLIB_LD="cc -nostdlib -r"
8500 DL_OBJS="tclLoadNext.o"
8505 CFLAGS_OPTIMIZE="" # Optimizer is buggy
8506 cat >>confdefs.h <<\_ACEOF
8507 #define _OE_SOCKETS 1
8509 # needed in sys/socket.h
8511 OSF1-1.0|OSF1-1.1|OSF1-1.2)
8512 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
8514 # Hack: make package name same as library name
8515 SHLIB_LD='ld -R -export :'
8518 DL_OBJS="tclLoadOSF.o"
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"
8528 SHLIB_LD="ld -non_shared"
8532 DL_OBJS="tclLoadDl.o"
8539 if test "$SHARED_BUILD" = "1" ; then
8540 SHLIB_LD='ld -shared -expect_unresolved "*"'
8542 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
8546 DL_OBJS="tclLoadDl.o"
8548 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8549 if test "$GCC" = "yes" ; then
8550 CFLAGS="$CFLAGS -mieee"
8552 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
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"
8562 CFLAGS="$CFLAGS -pthread"
8563 LDFLAGS="$LDFLAGS -pthread"
8570 # This may work for all QNX, but it was only reported for v6.
8571 SHLIB_CFLAGS="-fPIC"
8572 SHLIB_LD="ld -Bshareable -x"
8575 DL_OBJS="tclLoadDl.o"
8576 # dlopen is in -lc on QNX
8582 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
8583 SHLIB_LD_LIBS='${LIBS}'
8585 DL_OBJS="tclLoadAout.o"
8587 LDFLAGS="$LDFLAGS -Wl,-D,08000000"
8588 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
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
8594 if test "$GCC" = "yes" ; then
8595 SHLIB_CFLAGS="-fPIC -melf"
8596 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
8598 SHLIB_CFLAGS="-Kpic -belf"
8599 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
8604 DL_OBJS="tclLoadDl.o"
8609 SHLIB_CFLAGS="-K PIC"
8613 DL_OBJS="tclLoadDl.o"
8622 DL_OBJS="tclLoadDl.o"
8624 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
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
8631 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
8632 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8633 TCL_LIB_VERSIONS_OK=nodots
8637 # Note: If _REENTRANT isn't defined, then Solaris
8638 # won't define thread-safe library routines.
8640 cat >>confdefs.h <<\_ACEOF
8641 #define _REENTRANT 1
8644 cat >>confdefs.h <<\_ACEOF
8645 #define _POSIX_PTHREAD_SEMANTICS 1
8649 SHLIB_CFLAGS="-KPIC"
8651 # Note: need the LIBS below, otherwise Tk won't find Tcl's
8652 # symbols when dynamically loaded into tclsh.
8654 SHLIB_LD_LIBS='${LIBS}'
8656 DL_OBJS="tclLoadDl.o"
8658 if test "$GCC" = "yes" ; then
8659 SHLIB_LD="$CC -shared"
8660 LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
8662 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
8663 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
8668 # Note: If _REENTRANT isn't defined, then Solaris
8669 # won't define thread-safe library routines.
8671 cat >>confdefs.h <<\_ACEOF
8672 #define _REENTRANT 1
8675 cat >>confdefs.h <<\_ACEOF
8676 #define _POSIX_PTHREAD_SEMANTICS 1
8680 SHLIB_CFLAGS="-KPIC"
8682 # Check to enable 64-bit flags for compiler/linker
8683 if test "$do64bit" = "yes" ; then
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;}
8692 CFLAGS="$CFLAGS -m64 -mcpu=v9"
8693 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
8694 SHLIB_CFLAGS="-fPIC"
8698 if test "$do64bitVIS" = "yes" ; then
8699 CFLAGS="$CFLAGS -xarch=v9a"
8700 LDFLAGS="$LDFLAGS -xarch=v9a"
8702 CFLAGS="$CFLAGS -xarch=v9"
8703 LDFLAGS="$LDFLAGS -xarch=v9"
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;}
8712 # Note: need the LIBS below, otherwise Tk won't find Tcl's
8713 # symbols when dynamically loaded into tclsh.
8715 SHLIB_LD_LIBS='${LIBS}'
8717 DL_OBJS="tclLoadDl.o"
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"
8734 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
8735 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
8741 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
8742 SHLIB_LD_LIBS='${LIBS}'
8743 DL_OBJS="tclLoadAout.o"
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"
8751 UNIX_SV* | UnixWare-5*)
8752 SHLIB_CFLAGS="-KPIC"
8756 DL_OBJS="tclLoadDl.o"
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
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8779 rm -f conftest.$ac_objext conftest$ac_exeext
8780 if { (ac_try="$ac_link"
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786 (eval "$ac_link") 2>conftest.er1
8788 grep -v '^ *+' conftest.er1 >conftest.err
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
8799 echo "$as_me: failed program was:" >&5
8800 sed 's/^/| /' conftest.$ac_ext >&5
8802 LDFLAGS=$hold_ldflags found=no
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; }
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;}
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.
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.
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.
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
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 #include <sys/exec.h>
8854 #if defined(__mips) || defined(mips)
8855 seek = N_TXTOFF (foo.ex_f, foo.ex_o);
8857 seek = N_TXTOFF (foo);
8859 flag = (foo.a_magic == OMAGIC);
8860 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
8866 rm -f conftest.$ac_objext
8867 if { (ac_try="$ac_compile"
8869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870 *) ac_try_echo=$ac_try;;
8872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8873 (eval "$ac_compile") 2>conftest.er1
8875 grep -v '^ *+' conftest.er1 >conftest.err
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
8885 echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
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
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
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8916 #if defined(__mips) || defined(mips)
8917 seek = N_TXTOFF (foo.ex_f, foo.ex_o);
8919 seek = N_TXTOFF (foo);
8921 flag = (foo.a_magic == OMAGIC);
8922 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
8928 rm -f conftest.$ac_objext
8929 if { (ac_try="$ac_compile"
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935 (eval "$ac_compile") 2>conftest.er1
8937 grep -v '^ *+' conftest.er1 >conftest.err
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
8947 echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
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
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
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8970 #include <sys/exec_aout.h>
8978 #if defined(__mips) || defined(mips)
8979 seek = N_TXTOFF (foo.ex_f, foo.ex_o);
8981 seek = N_TXTOFF (foo);
8983 flag = (foo.a_midmag == OMAGIC);
8984 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
8990 rm -f conftest.$ac_objext
8991 if { (ac_try="$ac_compile"
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_compile") 2>conftest.er1
8999 grep -v '^ *+' conftest.er1 >conftest.err
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
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
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
9030 # Step 5: disable dynamic loading if requested via a command-line switch.
9032 # Check whether --enable-load was given.
9033 if test "${enable_load+set}" = set; then
9034 enableval=$enable_load; tcl_ok=$enableval
9039 if test "$tcl_ok" = "no"; then
9043 if test "x$DL_OBJS" != "x" ; then
9044 BUILD_DLTEST="\$(DLTEST_TARGETS)"
9046 echo "Can't figure out how to do dynamic loading or shared libraries"
9047 echo "on this system."
9051 DL_OBJS="tclLoadNone.o"
9053 LDFLAGS="$LDFLAGS_ORIG"
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.
9062 if test "$DL_OBJS" != "tclLoadNone.o" ; then
9063 if test "$GCC" = "yes" ; then
9084 SHLIB_CFLAGS="-fPIC"
9090 if test "$SHARED_LIB_SUFFIX" = "" ; then
9091 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
9093 if test "$UNSHARED_LIB_SUFFIX" = "" ; then
9094 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
9110 # These must be called after we do the basic CFLAGS checks and
9111 # verify any possible 64-bit or similar switches are necessary
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; }
9117 if test "${tcl_cv_flag__isoc99_source+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 cat >conftest.$ac_ext <<_ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9130 char *p = (char *)strtoll; char *q = (char *)strtoull;
9135 rm -f conftest.$ac_objext
9136 if { (ac_try="$ac_compile"
9138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9139 *) ac_try_echo=$ac_try;;
9141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9142 (eval "$ac_compile") 2>conftest.er1
9144 grep -v '^ *+' conftest.er1 >conftest.err
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
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9157 cat >conftest.$ac_ext <<_ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 #define _ISOC99_SOURCE 1
9168 char *p = (char *)strtoll; char *q = (char *)strtoull;
9173 rm -f conftest.$ac_objext
9174 if { (ac_try="$ac_compile"
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_compile") 2>conftest.er1
9182 grep -v '^ *+' conftest.er1 >conftest.err
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
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9195 tcl_cv_flag__isoc99_source=no
9198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
9205 cat >>confdefs.h <<\_ACEOF
9206 #define _ISOC99_SOURCE 1
9209 tcl_flags="$tcl_flags _ISOC99_SOURCE"
9213 if test "${tcl_cv_flag__largefile64_source+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 cat >conftest.$ac_ext <<_ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9222 #include <sys/stat.h>
9226 struct stat64 buf; int i = stat64("/", &buf);
9231 rm -f conftest.$ac_objext
9232 if { (ac_try="$ac_compile"
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_compile") 2>conftest.er1
9240 grep -v '^ *+' conftest.er1 >conftest.err
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
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9253 cat >conftest.$ac_ext <<_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>
9264 struct stat64 buf; int i = stat64("/", &buf);
9269 rm -f conftest.$ac_objext
9270 if { (ac_try="$ac_compile"
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_compile") 2>conftest.er1
9278 grep -v '^ *+' conftest.er1 >conftest.err
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
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 tcl_cv_flag__largefile64_source=no
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
9301 cat >>confdefs.h <<\_ACEOF
9302 #define _LARGEFILE64_SOURCE 1
9305 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
9308 if test "x${tcl_flags}" = "x" ; then
9309 { echo "$as_me:$LINENO: result: none" >&5
9310 echo "${ECHO_T}none" >&6; }
9312 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5
9313 echo "${ECHO_T}${tcl_flags}" >&6; }
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
9323 tcl_cv_type_64bit=none
9324 # See if the compiler knows natively about __int64
9325 cat >conftest.$ac_ext <<_ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9335 __int64 value = (__int64) 0;
9340 rm -f conftest.$ac_objext
9341 if { (ac_try="$ac_compile"
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_compile") 2>conftest.er1
9349 grep -v '^ *+' conftest.er1 >conftest.err
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
9359 echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9362 tcl_type_64bit="long long"
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
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9380 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
9386 rm -f conftest.$ac_objext
9387 if { (ac_try="$ac_compile"
9389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390 *) ac_try_echo=$ac_try;;
9392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9393 (eval "$ac_compile") 2>conftest.er1
9395 grep -v '^ *+' conftest.er1 >conftest.err
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}
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9414 if test "${tcl_cv_type_64bit}" = none ; then
9415 cat >>confdefs.h <<\_ACEOF
9416 #define TCL_WIDE_INT_IS_LONG 1
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; }
9428 cat >>confdefs.h <<_ACEOF
9429 #define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
9432 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5
9433 echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; }
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
9442 cat >conftest.$ac_ext <<_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>
9458 rm -f conftest.$ac_objext
9459 if { (ac_try="$ac_compile"
9461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462 *) ac_try_echo=$ac_try;;
9464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465 (eval "$ac_compile") 2>conftest.er1
9467 grep -v '^ *+' conftest.er1 >conftest.err
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
9477 echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9480 tcl_cv_struct_dirent64=no
9483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9486 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
9487 cat >>confdefs.h <<\_ACEOF
9488 #define HAVE_STRUCT_DIRENT64 1
9492 { echo "$as_me:$LINENO: result: ${tcl_cv_struct_dirent64}" >&5
9493 echo "${ECHO_T}${tcl_cv_struct_dirent64}" >&6; }
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
9501 cat >conftest.$ac_ext <<_ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 #include <sys/stat.h>
9517 rm -f conftest.$ac_objext
9518 if { (ac_try="$ac_compile"
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524 (eval "$ac_compile") 2>conftest.er1
9526 grep -v '^ *+' conftest.er1 >conftest.err
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
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9539 tcl_cv_struct_stat64=no
9542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9545 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
9546 cat >>confdefs.h <<\_ACEOF
9547 #define HAVE_STRUCT_STAT64 1
9551 { echo "$as_me:$LINENO: result: ${tcl_cv_struct_stat64}" >&5
9552 echo "${ECHO_T}${tcl_cv_struct_stat64}" >&6; }
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
9560 cat >conftest.$ac_ext <<_ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9566 #include <sys/types.h>
9576 rm -f conftest.$ac_objext
9577 if { (ac_try="$ac_compile"
9579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583 (eval "$ac_compile") 2>conftest.er1
9585 grep -v '^ *+' conftest.er1 >conftest.err
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
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9598 tcl_cv_type_off64_t=no
9601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9604 if test "x${tcl_cv_type_off64_t}" = "xyes" ; then
9605 cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_TYPE_OFF64_T 1
9610 { echo "$as_me:$LINENO: result: ${tcl_cv_type_off64_t}" >&5
9611 echo "${ECHO_T}${tcl_cv_type_off64_t}" >&6; }
9616 #--------------------------------------------------------------------
9617 # Set the default compiler switches based on the --enable-symbols
9619 #--------------------------------------------------------------------
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
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; }
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; }
9648 if test "${TEA_PLATFORM}" != "windows" ; then
9649 LDFLAGS_DEFAULT="${LDFLAGS}"
9656 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
9657 cat >>confdefs.h <<\_ACEOF
9658 #define TCL_MEM_DEBUG 1
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; }
9668 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5
9669 echo "${ECHO_T}enabled $tcl_ok debugging" >&6; }
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 #--------------------------------------------------------------------
9681 if test "${SHARED_BUILD}" = "1" ; then
9682 cat >>confdefs.h <<\_ACEOF
9683 #define USE_TCL_STUBS 1
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 #--------------------------------------------------------------------
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)"
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)"
9705 if test "${SHARED_BUILD}" = "1" ; then
9706 MAKE_LIB="${MAKE_SHARED_LIB} "
9708 MAKE_LIB="${MAKE_STATIC_LIB} "
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 #--------------------------------------------------------------------
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}`\""
9725 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9727 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
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}"
9733 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
9736 # These aren't needed on Windows (either MSVC or gcc)
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}"
9746 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9749 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9751 # Some packages build there own stubs libraries
9752 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
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}"
9769 #--------------------------------------------------------------------
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
9774 #--------------------------------------------------------------------
9776 itcl_STUB_LIB_FILE=${PKG_STUB_LIB_FILE}
9777 itcl_LIB_FILE=${PKG_LIB_FILE}
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 #--------------------------------------------------------------------
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; }
9795 if test "${ac_cv_path_tclsh+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
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}"
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
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; }
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; }; }
9834 #--------------------------------------------------------------------
9835 # These are for itclConfig.sh
9836 #--------------------------------------------------------------------
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}"
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}"
9847 itcl_BUILD_LIB_SPEC="-L`pwd` ${itcl_LIB_FLAG}"
9848 itcl_LIB_SPEC="-L${pkglibdir} ${itcl_LIB_FLAG}"
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}"
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`
9867 #--------------------------------------------------------------------
9868 # Finally, substitute all of the various values into the Makefile.
9869 #--------------------------------------------------------------------
9871 ac_config_files="$ac_config_files Makefile pkgIndex.tcl itclConfig.sh"
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.
9880 # config.status only pays attention to the cache file if you give it
9881 # the --recheck option to rerun configure.
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
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.
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
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;} ;;
9904 _ | IFS | as_nl) ;; #(
9905 *) $as_unset $ac_var ;;
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 \).
9917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9920 # `set' quotes correctly as required by POSIX, so do not add quotes.
9921 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9930 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9932 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
9941 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9942 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9947 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9948 # Let make expand exec_prefix.
9949 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9951 # Transform confdefs.h into DEFS.
9952 # Protect against shell expansion while executing Makefile rules.
9953 # Protect against Makefile macro expansion.
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.
9961 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
9963 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
9967 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
9980 DEFS=`sed -n "$ac_script" confdefs.h`
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'
9996 LTLIBOBJS=$ac_ltlibobjs
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
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.
10013 ac_cs_recheck=false
10015 SHELL=\${CONFIG_SHELL-$SHELL}
10018 cat >>$CONFIG_STATUS <<\_ACEOF
10019 ## --------------------- ##
10020 ## M4sh Initialization. ##
10021 ## --------------------- ##
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
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
10033 case `(set -o) 2>/dev/null` in
10034 *posix*) set -o posix ;;
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
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
10055 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10063 # Support unset when possible.
10064 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
10080 # Find who we are. Look in the path if we contain no directory separator.
10082 *[\\/]* ) as_myself=$0 ;;
10083 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10087 test -z "$as_dir" && as_dir=.
10088 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }
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
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
10118 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10119 eval $as_var=C; export $as_var
10121 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10125 # Required to use basename.
10126 if expr a : '\(a\)' >/dev/null 2>&1 &&
10127 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10133 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10134 as_basename=basename
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 ||
10146 sed '/^.*\/\([^/][^/]*\)\/*$/{
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" || {
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. :-)
10191 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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.
10208 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10214 ECHO_C= ECHO_N= ECHO_T=
10215 case `echo -n x` in
10217 case `echo 'x\c'` in
10218 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10225 if expr a : '\(a\)' >/dev/null 2>&1 &&
10226 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10232 rm -f conf$$ conf$$.exe conf$$.file
10233 if test -d conf$$.dir; then
10234 rm -f conf$$.dir/conf$$.file
10240 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
10248 elif ln conf$$.file conf$$ 2>/dev/null; then
10253 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10254 rmdir conf$$.dir 2>/dev/null
10256 if mkdir -p . 2>/dev/null; then
10259 test -d ./-p && rmdir ./-p
10263 if test -x / >/dev/null 2>&1; then
10264 as_test_x='test -x'
10266 if ls -dL / >/dev/null 2>&1; then
10273 if test -d "$1"; then
10279 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10280 ???[sx]*):;;*)false;;esac;fi
10284 as_executable_p=$as_test_x
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'"
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'"
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.
10299 This file was extended by itcl $as_me 3.3, which was
10300 generated by GNU Autoconf 2.61. Invocation command line was
10302 CONFIG_FILES = $CONFIG_FILES
10303 CONFIG_HEADERS = $CONFIG_HEADERS
10304 CONFIG_LINKS = $CONFIG_LINKS
10305 CONFIG_COMMANDS = $CONFIG_COMMANDS
10308 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10313 cat >>$CONFIG_STATUS <<_ACEOF
10314 # Files that config.status was made for.
10315 config_files="$ac_config_files"
10319 cat >>$CONFIG_STATUS <<\_ACEOF
10321 \`$as_me' instantiates files from templates according to the
10322 current configuration.
10324 Usage: $0 [OPTIONS] [FILE]...
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
10334 Configuration files:
10337 Report bugs to <bug-autoconf@gnu.org>."
10340 cat >>$CONFIG_STATUS <<_ACEOF
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'`\\"
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."
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.
10363 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10364 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10375 # Handling of the options.
10376 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10378 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10379 echo "$ac_cs_version"; exit ;;
10380 --debug | --debu | --deb | --de | --d | -d )
10382 --file | --fil | --fi | --f )
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)
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; }; } ;;
10397 *) ac_config_targets="$ac_config_targets $1"
10398 ac_need_defaults=false ;;
10404 ac_configure_extra_args=
10406 if $ac_cs_silent; then
10408 ac_configure_extra_args="$ac_configure_extra_args --silent"
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
10421 cat >>$CONFIG_STATUS <<\_ACEOF
10425 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10426 ## Running $as_me. ##
10432 cat >>$CONFIG_STATUS <<_ACEOF
10435 cat >>$CONFIG_STATUS <<\_ACEOF
10437 # Handling of arguments.
10438 for ac_config_target in $ac_config_targets
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" ;;
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; }; };;
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
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'.
10469 trap 'exit_status=$?
10470 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10472 trap '{ (exit 1); exit 1; }' 1 2 13 15
10474 # Create a (secure) tmp directory for tmp files.
10477 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10478 test -n "$tmp" && test -d "$tmp"
10481 tmp=./conf$$-$RANDOM
10482 (umask 077 && mkdir "$tmp")
10485 echo "$me: cannot create a temporary directory in ." >&2
10486 { (exit 1); exit 1; }
10490 # Set up the sed scripts for CONFIG_FILES section.
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
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
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
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
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
10603 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
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; }; }
10610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
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`
10620 cat >>$CONFIG_STATUS <<_ACEOF
10621 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10625 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10626 s/^/s,@/; s/!/@,|#_!!_#|/
10629 s/'"$ac_delim"'$/,g/; t
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
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
10671 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
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; }; }
10678 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
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`
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
10693 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10694 s/^/s,@/; s/!/@,|#_!!_#|/
10697 s/'"$ac_delim"'$/,g/; t
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
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}:*/:/
10718 s/^\([^=]*=[ ]*\):*/\1/
10724 cat >>$CONFIG_STATUS <<\_ACEOF
10725 fi # test -n "$CONFIG_FILES"
10728 for ac_tag in :F $CONFIG_FILES
10731 :[FHLC]) ac_mode=$ac_tag; continue;;
10733 case $ac_mode$ac_tag in
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;;
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 `:'.
10763 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
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; }; };;
10769 ac_file_inputs="$ac_file_inputs $ac_f"
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;}
10784 *:-:* | *:-) cat >"$tmp/stdin";;
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 ||
10795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10799 /^X\(\/\/\)[^/].*/{
10814 -*) as_dir=./$as_dir;;
10816 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10820 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10821 *) as_qdir=$as_dir;;
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 ||
10830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10834 /^X\(\/\/\)[^/].*/{
10847 test -d "$as_dir" && break
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; }; }; }
10856 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
10872 .) # We are building in place.
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 ;;
10885 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10895 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10896 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
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=
10905 case `sed -n '/datarootdir/ {
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;}
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' ;;
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
10938 cat >>$CONFIG_STATUS <<\_ACEOF
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
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;}
10964 -) cat "$tmp/out"; rm -f "$tmp/out";;
10965 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10976 { (exit 0); exit 0; }
10978 chmod +x $CONFIG_STATUS
10979 ac_clean_files=$ac_clean_files_save
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
10992 ac_config_status_args=
10993 test "$silent" = yes &&
10994 ac_config_status_args="$ac_config_status_args --quiet"
10996 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
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; }