2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.70 for tdbcsqlite3 1.1.3.
6 # Copyright (C) 1992-1996, 1998-2017, 2020 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
37 # Reset variables that may have inherited troublesome values from
40 # IFS needs to be set, to space, tab, and newline, in precisely that order.
41 # (If _AS_PATH_WALK were called with IFS unset, it would have the
42 # side effect of setting IFS to empty, thus disabling word splitting.)
43 # Quoting is to prevent editors from complaining about space-tab.
53 # Ensure predictable behavior from utilities with locale-dependent output.
59 # We cannot yet rely on "unset" to work, but we need these variables
60 # to be unset--not just set to an empty or harmless value--now, to
61 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
62 # also avoids known problems related to "unset" and subshell syntax
63 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
64 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
65 do eval test \${$as_var+y} \
66 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
69 # Ensure that fds 0, 1, and 2 are open.
70 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
71 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
72 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74 # The user is always right.
75 if ${PATH_SEPARATOR+false} :; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 # Find who we are. Look in the path if we contain no directory separator.
87 *[\\/]* ) as_myself=$0 ;;
88 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Use a proper internal environment variable to ensure we don't fall
115 # into an infinite loop, continuously re-executing ourselves.
116 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
117 _as_can_reexec=no; export _as_can_reexec;
118 # We cannot yet assume a decent shell, so we have to provide a
119 # neutralization value for shells without unset; and this also
120 # works around shells that cannot unset nonexistent variables.
121 # Preserve -v and -x to the replacement shell.
124 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 *v*x* | *x*v* ) as_opts=-vx ;;
131 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
132 # Admittedly, this is quite paranoid, since all the known shells bail
133 # out after a failed `exec'.
134 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
137 # We don't want this to propagate to other subprocesses.
138 { _as_can_reexec=; unset _as_can_reexec;}
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="as_nop=:
141 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 case \`(set -o) 2>/dev/null\` in #(
158 as_required="as_fn_return () { (exit \$1); }
159 as_fn_success () { as_fn_return 0; }
160 as_fn_failure () { as_fn_return 1; }
161 as_fn_ret_success () { return 0; }
162 as_fn_ret_failure () { return 1; }
165 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 exitcode=1; echo positional parameters were not saved.
175 test x\$exitcode = x0 || exit 1
176 blah=\$(echo \$(echo blah))
177 test x\"\$blah\" = xblah || exit 1
179 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
180 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
181 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
182 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
183 if (eval "$as_required") 2>/dev/null
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 *) as_dir=$as_dir/ ;;
206 for as_base in sh bash ksh sh5; do
207 # Try only shells that exist, to save several forks.
208 as_shell=$as_dir$as_base
209 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
210 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
212 CONFIG_SHELL=$as_shell as_have_required=yes
213 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
227 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
228 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
230 CONFIG_SHELL=$SHELL as_have_required=yes
235 if test "x$CONFIG_SHELL" != x
238 # We cannot yet assume a decent shell, so we have to provide a
239 # neutralization value for shells without unset; and this also
240 # works around shells that cannot unset nonexistent variables.
241 # Preserve -v and -x to the replacement shell.
244 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246 *v*x* | *x*v* ) as_opts=-vx ;;
251 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
252 # Admittedly, this is quite paranoid, since all the known shells bail
253 # out after a failed `exec'.
254 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
258 if test x$as_have_required = xno
260 printf "%s\n" "$0: This script requires a shell more modern than all"
261 printf "%s\n" "$0: the shells that I found on your system."
262 if test ${ZSH_VERSION+y} ; then
263 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
266 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
267 $0: including any error possibly output before this
268 $0: message. Then install a modern shell, or manually run
269 $0: the script under such a shell if you do have one."
275 SHELL=${CONFIG_SHELL-/bin/sh}
277 # Unset more variables known to interfere with behavior of common tools.
278 CLICOLOR_FORCE= GREP_OPTIONS=
279 unset CLICOLOR_FORCE GREP_OPTIONS
281 ## --------------------- ##
282 ## M4sh Shell Functions. ##
283 ## --------------------- ##
286 # Portably unset VAR.
289 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 # Do nothing but, unlike ":", preserve the value of $?.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 printf "%s\n" X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 eval 'as_fn_append ()
396 # Perform arithmetic evaluation on the ARGs, and store the result in the
397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
398 # must be portable across $(()) and expr.
399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
408 as_val=`expr "$@" || test $? -eq 1`
414 # Do nothing but, unlike ":", preserve the value of $?.
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
428 as_status=$1; test $as_status -eq 0 && as_status=1
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
499 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
503 chmod +x "$as_me.lineno" ||
504 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
506 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
507 # already done that, so ensure we don't try to do so again and fall
508 # in an infinite loop. This has already happened in practice.
509 _as_can_reexec=no; export _as_can_reexec
510 # Don't try to exec as it changes $[0], causing all sort of problems
511 # (the dirname of $[0] is not the place where we might find the
512 # original and so on. Autoconf is especially sensitive to this).
514 # Exit status is that of the last command.
519 # Determine whether it's possible to make 'echo' print without a newline.
520 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
521 # for compatibility with existing Makefiles.
522 ECHO_C= ECHO_N= ECHO_T=
523 case `echo -n x` in #(((((
525 case `echo 'xy\c'` in
526 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
528 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 # For backward compatibility with old third-party macros, we provide
536 # the shell variables $as_echo and $as_echo_n. New code should use
537 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
538 as_echo='printf %s\n'
539 as_echo_n='printf %s'
542 rm -f conf$$ conf$$.exe conf$$.file
543 if test -d conf$$.dir; then
544 rm -f conf$$.dir/conf$$.file
547 mkdir conf$$.dir 2>/dev/null
549 if (echo >conf$$.file) 2>/dev/null; then
550 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 # ... but there are two gotchas:
553 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
554 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
555 # In both cases, we have to default to `cp -pR'.
556 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 elif ln conf$$.file conf$$ 2>/dev/null; then
566 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
567 rmdir conf$$.dir 2>/dev/null
569 if mkdir -p . 2>/dev/null; then
570 as_mkdir_p='mkdir -p "$as_dir"'
572 test -d ./-p && rmdir ./-p
577 as_executable_p=as_fn_executable_p
579 # Sed expression to map a string onto a valid CPP name.
580 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
582 # Sed expression to map a string onto a valid variable name.
583 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
586 test -n "$DJDIR" || exec 7<&0 </dev/null
590 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
591 # so uname gets run too.
592 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
597 ac_default_prefix=/usr/local
599 ac_config_libobj_dir=.
606 # Identity of this package.
607 PACKAGE_NAME='tdbcsqlite3'
608 PACKAGE_TARNAME='tdbcsqlite3'
609 PACKAGE_VERSION='1.1.3'
610 PACKAGE_STRING='tdbcsqlite3 1.1.3'
614 # Factoring default headers for most tests.
615 ac_includes_default="\
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
646 ac_subst_vars='LTLIBOBJS
747 program_transform_name
760 enable_option_checking
769 ac_precious_vars='build_alias
779 # Initialize some variables set by options.
781 ac_init_version=false
782 ac_unrecognized_opts=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
793 program_transform_name=s,x,x,
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 runstatedir='${localstatedir}/run'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 case $ac_dashdash$ac_option in
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
867 cache_file=config.cache ;;
869 -datadir | --datadir | --datadi | --datad)
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
881 -disable-* | --disable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: \`$ac_useropt'"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
895 eval enable_$ac_useropt=no ;;
897 -docdir | --docdir | --docdi | --doc | --do)
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 -enable-* | --enable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: \`$ac_useropt'"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
921 eval enable_$ac_useropt=\$ac_optarg ;;
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
936 -help | --help | --hel | --he | -h)
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 htmldir=$ac_optarg ;;
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
966 -libdir | --libdir | --libdi | --libd)
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
978 -localedir | --localedir | --localedi | --localed | --locale)
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 # Obsolete; use --without-fp.
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1057 -psdir | --psdir | --psdi | --psd | --ps)
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1066 -runstatedir | --runstatedir | --runstatedi | --runstated \
1067 | --runstate | --runstat | --runsta | --runst | --runs \
1068 | --run | --ru | --r)
1069 ac_prev=runstatedir ;;
1070 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1071 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1072 | --run=* | --ru=* | --r=*)
1073 runstatedir=$ac_optarg ;;
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 sbindir=$ac_optarg ;;
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 sharedstatedir=$ac_optarg ;;
1092 -site | --site | --sit)
1094 -site=* | --site=* | --sit=*)
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: \`$ac_useropt'"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1134 eval with_$ac_useropt=\$ac_optarg ;;
1136 -without-* | --without-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: \`$ac_useropt'"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1150 eval with_$ac_useropt=no ;;
1153 # Obsolete; use --with-x.
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information"
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 as_fn_error $? "missing argument to $ac_option"
1200 if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1203 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 # Check all directory arguments for consistency.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir runstatedir
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1221 # Be sure to have absolute directory names.
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1234 target=$target_alias
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 elif test "x$build_alias" != "x$host_alias"; then
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248 test "$silent" = yes && exec 6>/dev/null
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error $? "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error $? "pwd does not report name of working directory"
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 printf "%s\n" X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1291 ac_srcdir_defaulted=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1325 \`configure' configures tdbcsqlite3 1.1.3 to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking ...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/tdbcsqlite3]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of tdbcsqlite3 1.1.3:";;
1392 --disable-option-checking ignore unrecognized --enable/--with options
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-threads build with threads (default: on)
1396 --enable-64bit enable 64bit support (default: off)
1397 --enable-64bit-vis enable 64bit Sparc VIS support (default: off)
1398 --disable-rpath disable rpath support (default: on)
1399 --enable-symbols build with debugging symbols (default: off)
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --with-tcl directory containing tcl configuration
1406 --with-tdbc directory containing tdbc configuration (tdbcConfig.sh)
1408 Some influential environment variables:
1409 CC C compiler command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1412 nonstandard directory <lib dir>
1413 LIBS libraries to pass to the linker, e.g. -l<library>
1414 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1415 you have headers in a nonstandard directory <include dir>
1417 Use these variables to override the choices made by `configure' or to help
1418 it to find libraries and programs with nonstandard names/locations.
1420 Report bugs to the package provider.
1425 if test "$ac_init_help" = "recursive"; then
1426 # If there are subdirs, report their specific --help.
1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428 test -d "$ac_dir" ||
1429 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1434 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1437 # A ".." for each directory in $ac_dir_suffix.
1438 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1439 case $ac_top_builddir_sub in
1440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 ac_abs_top_builddir=$ac_pwd
1445 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446 # for backward compatibility:
1447 ac_top_builddir=$ac_top_build_prefix
1450 .) # We are building in place.
1452 ac_top_srcdir=$ac_top_builddir_sub
1453 ac_abs_top_srcdir=$ac_pwd ;;
1454 [\\/]* | ?:[\\/]* ) # Absolute name.
1455 ac_srcdir=$srcdir$ac_dir_suffix;
1456 ac_top_srcdir=$srcdir
1457 ac_abs_top_srcdir=$srcdir ;;
1459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460 ac_top_srcdir=$ac_top_build_prefix$srcdir
1461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465 cd "$ac_dir" || { ac_status=$?; continue; }
1466 # Check for configure.gnu first; this name is used for a wrapper for
1467 # Metaconfig's "Configure" on case-insensitive file systems.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1475 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1484 tdbcsqlite3 configure 1.1.3
1485 generated by GNU Autoconf 2.70
1487 Copyright (C) 2020 Free Software Foundation, Inc.
1488 This configure script is free software; the Free Software Foundation
1489 gives unlimited permission to copy, distribute and modify it.
1494 ## ------------------------ ##
1495 ## Autoconf initialization. ##
1496 ## ------------------------ ##
1498 # ac_fn_c_try_compile LINENO
1499 # --------------------------
1500 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1501 ac_fn_c_try_compile ()
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 rm -f conftest.$ac_objext conftest.beam
1505 if { { ac_try="$ac_compile"
1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 *) ac_try_echo=$ac_try;;
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 printf "%s\n" "$ac_try_echo"; } >&5
1512 (eval "$ac_compile") 2>conftest.err
1514 if test -s conftest.err; then
1515 grep -v '^ *+' conftest.err >conftest.er1
1516 cat conftest.er1 >&5
1517 mv -f conftest.er1 conftest.err
1519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; } && {
1521 test -z "$ac_c_werror_flag" ||
1522 test ! -s conftest.err
1523 } && test -s conftest.$ac_objext
1527 printf "%s\n" "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 as_fn_set_status $ac_retval
1535 } # ac_fn_c_try_compile
1537 # ac_fn_c_try_link LINENO
1538 # -----------------------
1539 # Try to link conftest.$ac_ext, and return whether this succeeded.
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1544 if { { ac_try="$ac_link"
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 printf "%s\n" "$ac_try_echo"; } >&5
1551 (eval "$ac_link") 2>conftest.err
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest$ac_exeext && {
1563 test "$cross_compiling" = yes ||
1564 test -x conftest$ac_exeext
1569 printf "%s\n" "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1574 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1575 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1576 # interfere with the next link command; also delete a directory that is
1577 # left behind by Apple's compiler. We do this before executing the actions.
1578 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1582 } # ac_fn_c_try_link
1584 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1585 # -------------------------------------------------------
1586 # Tests whether HEADER exists and can be compiled using the include files in
1587 # INCLUDES, setting the cache variable VAR accordingly.
1588 ac_fn_c_check_header_compile ()
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1592 printf %s "checking for $2... " >&6; }
1593 if eval test \${$3+y}
1595 printf %s "(cached) " >&6
1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h. */
1602 if ac_fn_c_try_compile "$LINENO"
1608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612 printf "%s\n" "$ac_res" >&6; }
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 } # ac_fn_c_check_header_compile
1617 # ac_fn_c_check_func LINENO FUNC VAR
1618 # ----------------------------------
1619 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1620 ac_fn_c_check_func ()
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 printf %s "checking for $2... " >&6; }
1625 if eval test \${$3+y}
1627 printf %s "(cached) " >&6
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630 /* end confdefs.h. */
1631 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1633 #define $2 innocuous_$2
1635 /* System header to define __stub macros and hopefully few prototypes,
1636 which can conflict with char $2 (); below. */
1641 /* Override any GCC internal prototype to avoid an error.
1642 Use char because int might match the return type of a GCC
1643 builtin and then its argument prototype would still apply. */
1648 /* The GNU C library defines this for functions which it implements
1649 to always fail with ENOSYS. Some functions are actually named
1650 something starting with __ and the normal name is an alias. */
1651 #if defined __stub_$2 || defined __stub___$2
1663 if ac_fn_c_try_link "$LINENO"
1669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1670 conftest$ac_exeext conftest.$ac_ext
1673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 printf "%s\n" "$ac_res" >&6; }
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 } # ac_fn_c_check_func
1678 ac_configure_args_raw=
1683 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1685 as_fn_append ac_configure_args_raw " '$ac_arg'"
1688 case $ac_configure_args_raw in
1692 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1693 ac_unsafe_a="$ac_unsafe_z#~"
1694 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1695 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1698 cat >config.log <<_ACEOF
1699 This file contains any messages produced by compilers while
1700 running configure, to aid debugging if configure makes a mistake.
1702 It was created by tdbcsqlite3 $as_me 1.1.3, which was
1703 generated by GNU Autoconf 2.70. Invocation command line was
1705 $ $0$ac_configure_args_raw
1715 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1716 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1717 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1718 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1719 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1721 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1722 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1724 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1725 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1726 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1727 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1728 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1729 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1730 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 case $as_dir in #(((
1741 *) as_dir=$as_dir/ ;;
1743 printf "%s\n" "PATH: $as_dir"
1759 # Keep a trace of the command line.
1760 # Strip out --no-create and --no-recursion so they do not pile up.
1761 # Strip out --silent because we don't want to record it for future runs.
1762 # Also quote any args containing shell meta-characters.
1763 # Make two passes to allow for proper duplicate-argument suppression.
1767 ac_must_keep_next=false
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1778 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1783 as_fn_append ac_configure_args1 " '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
1785 ac_must_keep_next=false # Got value, back to normal.
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1796 -* ) ac_must_keep_next=true ;;
1799 as_fn_append ac_configure_args " '$ac_arg'"
1804 { ac_configure_args0=; unset ac_configure_args0;}
1805 { ac_configure_args1=; unset ac_configure_args1;}
1807 # When interrupted or exit'd, cleanup temporary files, and complete
1808 # config.log. We remove comments because anyway the quotes in there
1809 # would cause problems or look ugly.
1810 # WARNING: Use '\'' to represent an apostrophe within the trap.
1811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812 trap 'exit_status=$?
1815 # Save into config.log some information that might help in debugging.
1819 printf "%s\n" "## ---------------- ##
1820 ## Cache variables. ##
1821 ## ---------------- ##"
1823 # The following way of writing the cache mishandles newlines in values,
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1830 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1831 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1834 _ | IFS | as_nl) ;; #(
1835 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1836 *) { eval $ac_var=; unset $ac_var;} ;;
1841 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1842 *${as_nl}ac_space=\ *)
1844 "s/'\''/'\''\\\\'\'''\''/g;
1845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1855 printf "%s\n" "## ----------------- ##
1856 ## Output variables. ##
1857 ## ----------------- ##"
1859 for ac_var in $ac_subst_vars
1861 eval ac_val=\$$ac_var
1863 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865 printf "%s\n" "$ac_var='\''$ac_val'\''"
1869 if test -n "$ac_subst_files"; then
1870 printf "%s\n" "## ------------------- ##
1871 ## File substitutions. ##
1872 ## ------------------- ##"
1874 for ac_var in $ac_subst_files
1876 eval ac_val=\$$ac_var
1878 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1880 printf "%s\n" "$ac_var='\''$ac_val'\''"
1885 if test -s confdefs.h; then
1886 printf "%s\n" "## ----------- ##
1893 test "$ac_signal" != 0 &&
1894 printf "%s\n" "$as_me: caught signal $ac_signal"
1895 printf "%s\n" "$as_me: exit $exit_status"
1897 rm -f core *.core core.conftest.* &&
1898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1901 for ac_signal in 1 2 13 15; do
1902 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1907 rm -f -r conftest* confdefs.h
1909 printf "%s\n" "/* confdefs.h */" > confdefs.h
1911 # Predefined preprocessor variables.
1913 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1915 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1917 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1919 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1921 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1923 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1926 # Let the site file select an alternate cache file if it wants to.
1927 # Prefer an explicitly selected file to automatically selected ones.
1928 if test -n "$CONFIG_SITE"; then
1929 ac_site_files="$CONFIG_SITE"
1930 elif test "x$prefix" != xNONE; then
1931 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1933 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1936 for ac_site_file in $ac_site_files
1938 case $ac_site_file in #(
1942 ac_site_file=./$ac_site_file ;;
1944 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1946 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1947 sed 's/^/| /' "$ac_site_file" >&5
1949 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1950 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1951 as_fn_error $? "failed to load site script $ac_site_file
1952 See \`config.log' for more details" "$LINENO" 5; }
1956 if test -r "$cache_file"; then
1957 # Some versions of bash will fail to source /dev/null (special files
1958 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1959 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1961 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1963 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964 *) . "./$cache_file";;
1968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1969 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1973 # Test code for whether the C compiler supports C89 (global declarations)
1974 ac_c_conftest_c89_globals='
1975 /* Does the compiler advertise C89 conformance?
1976 Do not test the value of __STDC__, because some compilers set it to 0
1977 while being otherwise adequately conformant. */
1978 #if !defined __STDC__
1979 # error "Compiler does not advertise C89 conformance"
1985 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1986 struct buf { int x; };
1987 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1988 static char *e (p, i)
1994 static char *f (char * (*g) (char **, int), char **p, ...)
1999 s = g (p, va_arg (v,int));
2004 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2005 function prototypes and stuff, but not \xHH hex character constants.
2006 These do not provoke an error unfortunately, instead are silently treated
2007 as an "x". The following induces an error, until -std is added to get
2008 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2009 array size at least. It is necessary to write \x00 == 0 to get something
2010 that is true only with -std. */
2011 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2013 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2014 inside strings and character constants. */
2015 #define FOO(x) '\''x'\''
2016 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2018 int test (int i, double x);
2019 struct s1 {int (*f) (int a);};
2020 struct s2 {int (*f) (double a);};
2021 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2024 # Test code for whether the C compiler supports C89 (body of main).
2025 ac_c_conftest_c89_main='
2026 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2029 # Test code for whether the C compiler supports C99 (global declarations)
2030 ac_c_conftest_c99_globals='
2031 // Does the compiler advertise C99 conformance?
2032 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2033 # error "Compiler does not advertise C99 conformance"
2036 #include <stdbool.h>
2037 extern int puts (const char *);
2038 extern int printf (const char *, ...);
2039 extern int dprintf (int, const char *, ...);
2040 extern void *malloc (size_t);
2042 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2043 // dprintf is used instead of fprintf to avoid needing to declare
2045 #define debug(...) dprintf (2, __VA_ARGS__)
2046 #define showlist(...) puts (#__VA_ARGS__)
2047 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2049 test_varargs_macros (void)
2054 debug ("X = %d\n", x);
2055 showlist (The first, second, and third items.);
2056 report (x>y, "x is %d but y is %d", x, y);
2059 // Check long long types.
2060 #define BIG64 18446744073709551615ull
2061 #define BIG32 4294967295ul
2062 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2064 #error "your preprocessor is broken"
2068 #error "your preprocessor is broken"
2070 static long long int bignum = -9223372036854775807LL;
2071 static unsigned long long int ubignum = BIG64;
2073 struct incomplete_array
2081 const wchar_t *name;
2085 typedef const char *ccp;
2088 test_restrict (ccp restrict text)
2090 // See if C++-style comments work.
2091 // Iterate through items via the restricted pointer.
2092 // Also check for declarations in for loops.
2093 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2098 // Check varargs and va_copy.
2100 test_varargs (const char *format, ...)
2103 va_start (args, format);
2105 va_copy (args_copy, args);
2107 const char *str = "";
2115 case '\''s'\'': // string
2116 str = va_arg (args_copy, const char *);
2118 case '\''d'\'': // int
2119 number = va_arg (args_copy, int);
2121 case '\''f'\'': // float
2122 fnumber = va_arg (args_copy, double);
2131 return *str && number && fnumber;
2135 # Test code for whether the C compiler supports C99 (body of main).
2136 ac_c_conftest_c99_main='
2138 _Bool success = false;
2139 success |= (argc != 0);
2142 if (test_restrict ("String literal") == 0)
2144 char *restrict newvar = "Another string";
2147 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2148 test_varargs_macros ();
2150 // Check flexible array members.
2151 struct incomplete_array *ia =
2152 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2154 for (int i = 0; i < ia->datasize; ++i)
2155 ia->data[i] = i * 1.234;
2157 // Check named initializers.
2158 struct named_init ni = {
2160 .name = L"Test wide string",
2161 .average = 543.34343,
2166 int dynamic_array[ni.number];
2167 dynamic_array[0] = argv[0][0];
2168 dynamic_array[ni.number - 1] = 543;
2170 // work around unused variable warnings
2171 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2172 || dynamic_array[ni.number - 1] != 543);
2175 # Test code for whether the C compiler supports C11 (global declarations)
2176 ac_c_conftest_c11_globals='
2177 // Does the compiler advertise C11 conformance?
2178 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2179 # error "Compiler does not advertise C11 conformance"
2183 char _Alignas (double) aligned_as_double;
2184 char _Alignas (0) no_special_alignment;
2185 extern char aligned_as_int;
2186 char _Alignas (0) _Alignas (int) aligned_as_int;
2191 int_alignment = _Alignof (int),
2192 int_array_alignment = _Alignof (int[100]),
2193 char_alignment = _Alignof (char)
2195 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2198 int _Noreturn does_not_return (void) { for (;;) continue; }
2200 // Check _Static_assert.
2201 struct test_static_assert
2204 _Static_assert (sizeof (int) <= sizeof (long int),
2205 "_Static_assert does not work in struct");
2209 // Check UTF-8 literals.
2210 #define u8 syntax error!
2211 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2213 // Check duplicate typedefs.
2214 typedef long *long_ptr;
2215 typedef long int *long_ptr;
2216 typedef long_ptr long_ptr;
2218 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2222 struct { int i; int j; };
2223 struct { int k; long int l; } w;
2229 # Test code for whether the C compiler supports C11 (body of main).
2230 ac_c_conftest_c11_main='
2231 _Static_assert ((offsetof (struct anonymous, i)
2232 == offsetof (struct anonymous, w.k)),
2233 "Anonymous union alignment botch");
2239 # Test code for whether the C compiler supports C11 (complete).
2240 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2241 ${ac_c_conftest_c99_globals}
2242 ${ac_c_conftest_c11_globals}
2245 main (int argc, char **argv)
2248 ${ac_c_conftest_c89_main}
2249 ${ac_c_conftest_c99_main}
2250 ${ac_c_conftest_c11_main}
2255 # Test code for whether the C compiler supports C99 (complete).
2256 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2257 ${ac_c_conftest_c99_globals}
2260 main (int argc, char **argv)
2263 ${ac_c_conftest_c89_main}
2264 ${ac_c_conftest_c99_main}
2269 # Test code for whether the C compiler supports C89 (complete).
2270 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2273 main (int argc, char **argv)
2276 ${ac_c_conftest_c89_main}
2281 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2282 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2283 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2284 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2285 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2286 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2287 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2288 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2289 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2290 # Check that the precious variables saved in the cache have kept the same
2292 ac_cache_corrupted=false
2293 for ac_var in $ac_precious_vars; do
2294 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2295 eval ac_new_set=\$ac_env_${ac_var}_set
2296 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2297 eval ac_new_val=\$ac_env_${ac_var}_value
2298 case $ac_old_set,$ac_new_set in
2300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2301 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2302 ac_cache_corrupted=: ;;
2304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2305 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2306 ac_cache_corrupted=: ;;
2309 if test "x$ac_old_val" != "x$ac_new_val"; then
2310 # differences in whitespace do not lead to failure.
2311 ac_old_val_w=`echo x $ac_old_val`
2312 ac_new_val_w=`echo x $ac_new_val`
2313 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2315 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2316 ac_cache_corrupted=:
2318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2319 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2320 eval $ac_var=\$ac_old_val
2322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2323 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2325 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2328 # Pass precious variables to config.status.
2329 if test "$ac_new_set" = set; then
2331 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2332 *) ac_arg=$ac_var=$ac_new_val ;;
2334 case " $ac_configure_args " in
2335 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2336 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2340 if $ac_cache_corrupted; then
2341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2342 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2344 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2345 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2346 and start over" "$LINENO" 5
2348 ## -------------------- ##
2349 ## Main body of script. ##
2350 ## -------------------- ##
2353 ac_cpp='$CPP $CPPFLAGS'
2354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360 #--------------------------------------------------------------------
2361 # Call TEA_INIT as the first TEA_ macro to set up initial vars.
2362 # This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
2363 # as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
2364 #--------------------------------------------------------------------
2369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TEA configuration" >&5
2370 printf %s "checking TEA configuration... " >&6; }
2371 if test x"${PACKAGE_NAME}" = x ; then
2373 The PACKAGE_NAME variable must be defined by your TEA configure.ac" "$LINENO" 5
2375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
2376 printf "%s\n" "ok (TEA ${TEA_VERSION})" >&6; }
2378 # If the user did not set CFLAGS, set it now to keep macros
2379 # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2".
2380 if test "${CFLAGS+set}" != "set" ; then
2384 case "`uname -s`" in
2385 *win32*|*WIN32*|*MINGW32_*|*MINGW64_*|*MSYS_*)
2386 # Extract the first word of "cygpath", so it can be a program name with args.
2387 set dummy cygpath; ac_word=$2
2388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2389 printf %s "checking for $ac_word... " >&6; }
2390 if test ${ac_cv_prog_CYGPATH+y}
2392 printf %s "(cached) " >&6
2394 if test -n "$CYGPATH"; then
2395 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 case $as_dir in #(((
2404 *) as_dir=$as_dir/ ;;
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2408 ac_cv_prog_CYGPATH="cygpath -m"
2409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2416 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
2419 CYGPATH=$ac_cv_prog_CYGPATH
2420 if test -n "$CYGPATH"; then
2421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
2422 printf "%s\n" "$CYGPATH" >&6; }
2424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2425 printf "%s\n" "no" >&6; }
2430 TEA_PLATFORM="windows"
2434 # CYGPATH and TEA_PLATFORM are determined later in LOAD_TCLCONFIG
2438 # Maybe we are cross-compiling....
2439 case ${host_alias} in
2442 TEA_PLATFORM="windows"
2452 # Check if exec_prefix is set. If not use fall back to prefix.
2453 # Note when adjusted, so that TEA_PREFIX can correct for this.
2454 # This is needed for recursive configures, since autoconf propagates
2455 # $prefix, but not $exec_prefix (doh!).
2456 if test x$exec_prefix = xNONE ; then
2457 exec_prefix_default=yes
2461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5
2462 printf "%s\n" "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;}
2467 # This package name must be replaced statically for AC_SUBST to work
2471 # Substitute STUB_LIB_FILE in case package creates a stub library too.
2474 # We AC_SUBST these here to ensure they are subst'ed,
2475 # in case the user doesn't call TEA_ADD_...
2484 # Configure the installer.
2486 INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c'
2487 INSTALL_DATA_DIR='${INSTALL} -d -m 755'
2488 INSTALL_DATA='${INSTALL} -m 644'
2489 INSTALL_PROGRAM='${INSTALL} -m 755'
2490 INSTALL_SCRIPT='${INSTALL} -m 755'
2493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
2494 printf %s "checking system version... " >&6; }
2495 if test ${tcl_cv_sys_version+y}
2497 printf %s "(cached) " >&6
2501 if test "${TEA_PLATFORM}" = "windows" ; then
2502 tcl_cv_sys_version=windows
2504 tcl_cv_sys_version=`uname -s`-`uname -r`
2505 if test "$?" -ne 0 ; then
2506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
2507 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
2508 tcl_cv_sys_version=unknown
2510 if test "`uname -s`" = "AIX" ; then
2511 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
2513 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
2514 tcl_cv_sys_version=NetBSD-Debian
2520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
2521 printf "%s\n" "$tcl_cv_sys_version" >&6; }
2522 system=$tcl_cv_sys_version
2525 HP-UX-*) INSTALL_LIBRARY='${INSTALL} -m 755' ;;
2526 *) INSTALL_LIBRARY='${INSTALL} -m 644' ;;
2540 #--------------------------------------------------------------------
2541 # Load the tclConfig.sh file
2542 #--------------------------------------------------------------------
2547 # Ok, lets find the tcl configuration
2548 # First, look for one uninstalled.
2549 # the alternative search directory is invoked by --with-tcl
2552 if test x"${no_tcl}" = x ; then
2553 # we reset no_tcl in case something fails here
2556 # Check whether --with-tcl was given.
2557 if test ${with_tcl+y}
2559 withval=$with_tcl; with_tclconfig="${withval}"
2562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
2563 printf %s "checking for Tcl configuration... " >&6; }
2564 if test ${ac_cv_c_tclconfig+y}
2566 printf %s "(cached) " >&6
2570 # First check to see if --with-tcl was specified.
2571 if test x"${with_tclconfig}" != x ; then
2572 case "${with_tclconfig}" in
2574 if test -f "${with_tclconfig}"; then
2575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
2576 printf "%s\n" "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
2577 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
2580 if test -f "${with_tclconfig}/tclConfig.sh" ; then
2581 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
2583 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
2587 # then check for a private Tcl installation
2588 if test x"${ac_cv_c_tclconfig}" = x ; then
2591 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2592 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
2593 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
2595 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2596 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
2597 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2599 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2600 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
2601 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2602 if test "${TEA_PLATFORM}" = "windows" \
2603 -a -f "$i/win/tclConfig.sh" ; then
2604 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2607 if test -f "$i/unix/tclConfig.sh" ; then
2608 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2614 # on Darwin, check in Framework installation locations
2615 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
2616 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
2617 `ls -d /Library/Frameworks 2>/dev/null` \
2618 `ls -d /Network/Library/Frameworks 2>/dev/null` \
2619 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks/Tcl.framework 2>/dev/null` \
2620 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Network/Library/Frameworks/Tcl.framework 2>/dev/null` \
2621 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Tcl.framework 2>/dev/null` \
2623 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
2624 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
2630 # TEA specific: on Windows, check in common installation locations
2631 if test "${TEA_PLATFORM}" = "windows" \
2632 -a x"${ac_cv_c_tclconfig}" = x ; then
2633 for i in `ls -d C:/Tcl/lib 2>/dev/null` \
2634 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
2636 if test -f "$i/tclConfig.sh" ; then
2637 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2643 # check in a few common install locations
2644 if test x"${ac_cv_c_tclconfig}" = x ; then
2645 for i in `ls -d ${libdir} 2>/dev/null` \
2646 `ls -d ${exec_prefix}/lib 2>/dev/null` \
2647 `ls -d ${prefix}/lib 2>/dev/null` \
2648 `ls -d /usr/local/lib 2>/dev/null` \
2649 `ls -d /usr/contrib/lib 2>/dev/null` \
2650 `ls -d /usr/pkg/lib 2>/dev/null` \
2651 `ls -d /usr/lib 2>/dev/null` \
2652 `ls -d /usr/lib64 2>/dev/null` \
2653 `ls -d /usr/lib/tcl8.6 2>/dev/null` \
2654 `ls -d /usr/lib/tcl8.5 2>/dev/null` \
2655 `ls -d /usr/local/lib/tcl8.6 2>/dev/null` \
2656 `ls -d /usr/local/lib/tcl8.5 2>/dev/null` \
2657 `ls -d /usr/local/lib/tcl/tcl8.6 2>/dev/null` \
2658 `ls -d /usr/local/lib/tcl/tcl8.5 2>/dev/null` \
2660 if test -f "$i/tclConfig.sh" ; then
2661 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2667 # check in a few other private locations
2668 if test x"${ac_cv_c_tclconfig}" = x ; then
2671 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2672 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2673 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2674 if test "${TEA_PLATFORM}" = "windows" \
2675 -a -f "$i/win/tclConfig.sh" ; then
2676 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2679 if test -f "$i/unix/tclConfig.sh" ; then
2680 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2689 if test x"${ac_cv_c_tclconfig}" = x ; then
2690 TCL_BIN_DIR="# no Tcl configs found"
2691 as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
2694 TCL_BIN_DIR="${ac_cv_c_tclconfig}"
2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2696 printf "%s\n" "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2710 ac_cpp='$CPP $CPPFLAGS'
2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714 if test -n "$ac_tool_prefix"; then
2715 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2716 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 printf %s "checking for $ac_word... " >&6; }
2719 if test ${ac_cv_prog_CC+y}
2721 printf %s "(cached) " >&6
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 case $as_dir in #(((
2733 *) as_dir=$as_dir/ ;;
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2748 if test -n "$CC"; then
2749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2750 printf "%s\n" "$CC" >&6; }
2752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 printf "%s\n" "no" >&6; }
2758 if test -z "$ac_cv_prog_CC"; then
2760 # Extract the first word of "gcc", so it can be a program name with args.
2761 set dummy gcc; ac_word=$2
2762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 printf %s "checking for $ac_word... " >&6; }
2764 if test ${ac_cv_prog_ac_ct_CC+y}
2766 printf %s "(cached) " >&6
2768 if test -n "$ac_ct_CC"; then
2769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 case $as_dir in #(((
2778 *) as_dir=$as_dir/ ;;
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2782 ac_cv_prog_ac_ct_CC="gcc"
2783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2795 printf "%s\n" "$ac_ct_CC" >&6; }
2797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 printf "%s\n" "no" >&6; }
2801 if test "x$ac_ct_CC" = x; then
2804 case $cross_compiling:$ac_tool_warned in
2806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2807 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2808 ac_tool_warned=yes ;;
2816 if test -z "$CC"; then
2817 if test -n "$ac_tool_prefix"; then
2818 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2819 set dummy ${ac_tool_prefix}cc; ac_word=$2
2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 printf %s "checking for $ac_word... " >&6; }
2822 if test ${ac_cv_prog_CC+y}
2824 printf %s "(cached) " >&6
2826 if test -n "$CC"; then
2827 ac_cv_prog_CC="$CC" # Let the user override the test.
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 case $as_dir in #(((
2836 *) as_dir=$as_dir/ ;;
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2840 ac_cv_prog_CC="${ac_tool_prefix}cc"
2841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2851 if test -n "$CC"; then
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2853 printf "%s\n" "$CC" >&6; }
2855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 printf "%s\n" "no" >&6; }
2862 if test -z "$CC"; then
2863 # Extract the first word of "cc", so it can be a program name with args.
2864 set dummy cc; ac_word=$2
2865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 printf %s "checking for $ac_word... " >&6; }
2867 if test ${ac_cv_prog_CC+y}
2869 printf %s "(cached) " >&6
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC="$CC" # Let the user override the test.
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 case $as_dir in #(((
2882 *) as_dir=$as_dir/ ;;
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2886 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2887 ac_prog_rejected=yes
2891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2898 if test $ac_prog_rejected = yes; then
2899 # We found a bogon in the path, so make sure we never use it.
2900 set dummy $ac_cv_prog_CC
2902 if test $# != 0; then
2903 # We chose a different compiler from the bogus one.
2904 # However, it has the same basename, so the bogon will be chosen
2905 # first if we set CC to just the basename; use the full file name.
2907 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2913 if test -n "$CC"; then
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915 printf "%s\n" "$CC" >&6; }
2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 printf "%s\n" "no" >&6; }
2923 if test -z "$CC"; then
2924 if test -n "$ac_tool_prefix"; then
2925 for ac_prog in cl.exe
2927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 printf %s "checking for $ac_word... " >&6; }
2931 if test ${ac_cv_prog_CC+y}
2933 printf %s "(cached) " >&6
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 case $as_dir in #(((
2945 *) as_dir=$as_dir/ ;;
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2960 if test -n "$CC"; then
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 printf "%s\n" "$CC" >&6; }
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 printf "%s\n" "no" >&6; }
2969 test -n "$CC" && break
2972 if test -z "$CC"; then
2974 for ac_prog in cl.exe
2976 # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 printf %s "checking for $ac_word... " >&6; }
2980 if test ${ac_cv_prog_ac_ct_CC+y}
2982 printf %s "(cached) " >&6
2984 if test -n "$ac_ct_CC"; then
2985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 case $as_dir in #(((
2994 *) as_dir=$as_dir/ ;;
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_ac_ct_CC="$ac_prog"
2999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009 if test -n "$ac_ct_CC"; then
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3011 printf "%s\n" "$ac_ct_CC" >&6; }
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 printf "%s\n" "no" >&6; }
3018 test -n "$ac_ct_CC" && break
3021 if test "x$ac_ct_CC" = x; then
3024 case $cross_compiling:$ac_tool_warned in
3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3035 if test -z "$CC"; then
3036 if test -n "$ac_tool_prefix"; then
3037 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3038 set dummy ${ac_tool_prefix}clang; ac_word=$2
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 printf %s "checking for $ac_word... " >&6; }
3041 if test ${ac_cv_prog_CC+y}
3043 printf %s "(cached) " >&6
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC="$CC" # Let the user override the test.
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 case $as_dir in #(((
3055 *) as_dir=$as_dir/ ;;
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3059 ac_cv_prog_CC="${ac_tool_prefix}clang"
3060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3070 if test -n "$CC"; then
3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 printf "%s\n" "$CC" >&6; }
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 printf "%s\n" "no" >&6; }
3080 if test -z "$ac_cv_prog_CC"; then
3082 # Extract the first word of "clang", so it can be a program name with args.
3083 set dummy clang; ac_word=$2
3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 printf %s "checking for $ac_word... " >&6; }
3086 if test ${ac_cv_prog_ac_ct_CC+y}
3088 printf %s "(cached) " >&6
3090 if test -n "$ac_ct_CC"; then
3091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 case $as_dir in #(((
3100 *) as_dir=$as_dir/ ;;
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3104 ac_cv_prog_ac_ct_CC="clang"
3105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115 if test -n "$ac_ct_CC"; then
3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3117 printf "%s\n" "$ac_ct_CC" >&6; }
3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 printf "%s\n" "no" >&6; }
3123 if test "x$ac_ct_CC" = x; then
3126 case $cross_compiling:$ac_tool_warned in
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3129 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130 ac_tool_warned=yes ;;
3141 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3143 as_fn_error $? "no acceptable C compiler found in \$PATH
3144 See \`config.log' for more details" "$LINENO" 5; }
3146 # Provide some information about the compiler.
3147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3150 for ac_option in --version -v -V -qversion -version; do
3151 { { ac_try="$ac_compiler $ac_option >&5"
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 printf "%s\n" "$ac_try_echo"; } >&5
3158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3160 if test -s conftest.err; then
3162 ... rest of stderr output deleted ...
3163 10q' conftest.err >conftest.er1
3164 cat conftest.er1 >&5
3166 rm -f conftest.er1 conftest.err
3167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3182 ac_clean_files_save=$ac_clean_files
3183 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3184 # Try to create an executable without -o first, disregard a.out.
3185 # It will help us diagnose broken compilers, and finding out an intuition
3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3188 printf %s "checking whether the C compiler works... " >&6; }
3189 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3191 # The possible output files:
3192 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3195 for ac_file in $ac_files
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3204 if { { ac_try="$ac_link_default"
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 printf "%s\n" "$ac_try_echo"; } >&5
3211 (eval "$ac_link_default") 2>&5
3213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }
3216 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3217 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3218 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3219 # so that the user can short-circuit this test for compilers unknown to
3221 for ac_file in $ac_files ''
3223 test -f "$ac_file" || continue
3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3228 # We found the default executable, but exeext='' is most
3232 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3234 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3236 # We set ac_cv_exeext here because the later test for it is not
3237 # safe: cross compilers may not add the suffix if given an `-o'
3238 # argument, so we may need to know it at that point already.
3239 # Even if this section looks crufty: it has the advantage of
3246 test "$ac_cv_exeext" = no && ac_cv_exeext=
3251 if test -z "$ac_file"
3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 printf "%s\n" "no" >&6; }
3255 printf "%s\n" "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error 77 "C compiler cannot create executables
3261 See \`config.log' for more details" "$LINENO" 5; }
3263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3264 printf "%s\n" "yes" >&6; }
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3267 printf %s "checking for C compiler default output file name... " >&6; }
3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3269 printf "%s\n" "$ac_file" >&6; }
3270 ac_exeext=$ac_cv_exeext
3272 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3273 ac_clean_files=$ac_clean_files_save
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3275 printf %s "checking for suffix of executables... " >&6; }
3276 if { { ac_try="$ac_link"
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 printf "%s\n" "$ac_try_echo"; } >&5
3283 (eval "$ac_link") 2>&5
3285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }
3288 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3289 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3290 # work properly (i.e., refer to `conftest.exe'), while it won't with
3292 for ac_file in conftest.exe conftest conftest.*; do
3293 test -f "$ac_file" || continue
3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3302 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3304 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3305 See \`config.log' for more details" "$LINENO" 5; }
3307 rm -f conftest conftest$ac_cv_exeext
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3309 printf "%s\n" "$ac_cv_exeext" >&6; }
3311 rm -f conftest.$ac_ext
3312 EXEEXT=$ac_cv_exeext
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3320 FILE *f = fopen ("conftest.out", "w");
3321 return ferror (f) || fclose (f) != 0;
3327 ac_clean_files="$ac_clean_files conftest.out"
3328 # Check that the compiler produces executables we can run. If not, either
3329 # the compiler is broken, or we cross compile.
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3331 printf %s "checking whether we are cross compiling... " >&6; }
3332 if test "$cross_compiling" != yes; then
3333 { { ac_try="$ac_link"
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 printf "%s\n" "$ac_try_echo"; } >&5
3340 (eval "$ac_link") 2>&5
3342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }
3344 if { ac_try='./conftest$ac_cv_exeext'
3345 { { case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 printf "%s\n" "$ac_try_echo"; } >&5
3351 (eval "$ac_try") 2>&5
3353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }; }; then
3357 if test "$cross_compiling" = maybe; then
3360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error 77 "cannot run C compiled programs.
3363 If you meant to cross compile, use \`--host'.
3364 See \`config.log' for more details" "$LINENO" 5; }
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3369 printf "%s\n" "$cross_compiling" >&6; }
3371 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3372 ac_clean_files=$ac_clean_files_save
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3374 printf %s "checking for suffix of object files... " >&6; }
3375 if test ${ac_cv_objext+y}
3377 printf %s "(cached) " >&6
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3390 rm -f conftest.o conftest.obj
3391 if { { ac_try="$ac_compile"
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 printf "%s\n" "$ac_try_echo"; } >&5
3398 (eval "$ac_compile") 2>&5
3400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }
3403 for ac_file in conftest.o conftest.obj conftest.*; do
3404 test -f "$ac_file" || continue;
3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3407 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3412 printf "%s\n" "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3415 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error $? "cannot compute suffix of object files: cannot compile
3418 See \`config.log' for more details" "$LINENO" 5; }
3420 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3423 printf "%s\n" "$ac_cv_objext" >&6; }
3424 OBJEXT=$ac_cv_objext
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3427 printf %s "checking whether the compiler supports GNU C... " >&6; }
3428 if test ${ac_cv_c_compiler_gnu+y}
3430 printf %s "(cached) " >&6
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3446 if ac_fn_c_try_compile "$LINENO"
3452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3453 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3457 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460 if test $ac_compiler_gnu = yes; then
3465 ac_test_CFLAGS=${CFLAGS+y}
3466 ac_save_CFLAGS=$CFLAGS
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3468 printf %s "checking whether $CC accepts -g... " >&6; }
3469 if test ${ac_cv_prog_cc_g+y}
3471 printf %s "(cached) " >&6
3473 ac_save_c_werror_flag=$ac_c_werror_flag
3474 ac_c_werror_flag=yes
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3488 if ac_fn_c_try_compile "$LINENO"
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3504 if ac_fn_c_try_compile "$LINENO"
3508 ac_c_werror_flag=$ac_save_c_werror_flag
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3521 if ac_fn_c_try_compile "$LINENO"
3525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3530 ac_c_werror_flag=$ac_save_c_werror_flag
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3533 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3534 if test $ac_test_CFLAGS; then
3535 CFLAGS=$ac_save_CFLAGS
3536 elif test $ac_cv_prog_cc_g = yes; then
3537 if test "$GCC" = yes; then
3543 if test "$GCC" = yes; then
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3550 printf %s "checking for $CC option to enable C11 features... " >&6; }
3551 if test ${ac_cv_prog_cc_c11+y}
3553 printf %s "(cached) " >&6
3555 ac_cv_prog_cc_c11=no
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559 $ac_c_conftest_c11_program
3561 for ac_arg in '' -std=gnu11
3563 CC="$ac_save_CC $ac_arg"
3564 if ac_fn_c_try_compile "$LINENO"
3566 ac_cv_prog_cc_c11=$ac_arg
3568 rm -f core conftest.err conftest.$ac_objext conftest.beam
3569 test "x$ac_cv_prog_cc_c11" != "xno" && break
3571 rm -f conftest.$ac_ext
3576 ac_prog_cc_stdc_options=
3577 case "x$ac_cv_prog_cc_c11" in #(
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3580 printf "%s\n" "none needed" >&6; } ;; #(
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3583 printf "%s\n" "unsupported" >&6; } ;; #(
3585 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
3586 CC="$CC$ac_prog_cc_stdc_options"
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3588 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } ;;
3590 if test "x$ac_cv_prog_cc_c11" != xno
3593 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3596 printf %s "checking for $CC option to enable C99 features... " >&6; }
3597 if test ${ac_cv_prog_cc_c99+y}
3599 printf %s "(cached) " >&6
3601 ac_cv_prog_cc_c99=no
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3605 $ac_c_conftest_c89_program
3607 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
3609 CC="$ac_save_CC $ac_arg"
3610 if ac_fn_c_try_compile "$LINENO"
3612 ac_cv_prog_cc_c99=$ac_arg
3614 rm -f core conftest.err conftest.$ac_objext conftest.beam
3615 test "x$ac_cv_prog_cc_c99" != "xno" && break
3617 rm -f conftest.$ac_ext
3622 ac_prog_cc_stdc_options=
3623 case "x$ac_cv_prog_cc_c99" in #(
3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3626 printf "%s\n" "none needed" >&6; } ;; #(
3628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3629 printf "%s\n" "unsupported" >&6; } ;; #(
3631 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
3632 CC="$CC$ac_prog_cc_stdc_options"
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3634 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;;
3636 if test "x$ac_cv_prog_cc_c99" != xno
3639 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3642 printf %s "checking for $CC option to enable C89 features... " >&6; }
3643 if test ${ac_cv_prog_cc_c89+y}
3645 printf %s "(cached) " >&6
3647 ac_cv_prog_cc_c89=no
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3651 $ac_c_conftest_c89_program
3653 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3654 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3656 CC="$ac_save_CC $ac_arg"
3657 if ac_fn_c_try_compile "$LINENO"
3659 ac_cv_prog_cc_c89=$ac_arg
3661 rm -f core conftest.err conftest.$ac_objext conftest.beam
3662 test "x$ac_cv_prog_cc_c89" != "xno" && break
3664 rm -f conftest.$ac_ext
3669 ac_prog_cc_stdc_options=
3670 case "x$ac_cv_prog_cc_c89" in #(
3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3673 printf "%s\n" "none needed" >&6; } ;; #(
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3676 printf "%s\n" "unsupported" >&6; } ;; #(
3678 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
3679 CC="$CC$ac_prog_cc_stdc_options"
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3681 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } ;;
3683 if test "x$ac_cv_prog_cc_c89" != xno
3686 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3689 ac_cv_prog_cc_stdc=no
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
3705 printf %s "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
3707 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
3709 printf "%s\n" "loading" >&6; }
3710 . "${TCL_BIN_DIR}/tclConfig.sh"
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
3713 printf "%s\n" "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
3716 # If the TCL_BIN_DIR is the build directory (not the install directory),
3717 # then set the common variable name to the value of the build variables.
3718 # For example, the variable TCL_LIB_SPEC will be set to the value
3719 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
3720 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
3721 # installed and uninstalled version of Tcl.
3722 if test -f "${TCL_BIN_DIR}/Makefile" ; then
3723 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
3724 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
3725 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
3726 elif test "`uname -s`" = "Darwin"; then
3727 # If Tcl was built as a framework, attempt to use the libraries
3728 # from the framework at the given location so that linking works
3729 # against Tcl.framework installed in an arbitrary location.
3732 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
3733 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
3734 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
3735 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
3736 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
3741 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
3742 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
3743 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking platform" >&5
3763 printf %s "checking platform... " >&6; }
3764 hold_cc=$CC; CC="$TCL_CC"
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3780 if ac_fn_c_try_compile "$LINENO"
3783 # first test we've already retrieved platform (cross-compile), fallback to unix otherwise:
3784 TEA_PLATFORM="${TEA_PLATFORM-unix}"
3789 TEA_PLATFORM="windows"
3790 # Extract the first word of "cygpath", so it can be a program name with args.
3791 set dummy cygpath; ac_word=$2
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 printf %s "checking for $ac_word... " >&6; }
3794 if test ${ac_cv_prog_CYGPATH+y}
3796 printf %s "(cached) " >&6
3798 if test -n "$CYGPATH"; then
3799 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 case $as_dir in #(((
3808 *) as_dir=$as_dir/ ;;
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_CYGPATH="cygpath -m"
3813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3820 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
3823 CYGPATH=$ac_cv_prog_CYGPATH
3824 if test -n "$CYGPATH"; then
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
3826 printf "%s\n" "$CYGPATH" >&6; }
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 printf "%s\n" "no" >&6; }
3835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5
3838 printf "%s\n" "$TEA_PLATFORM" >&6; }
3840 # The BUILD_$pkg is to define the correct extern storage class
3841 # handling when making this package
3843 printf "%s\n" "#define BUILD_${PACKAGE_NAME} /**/" >>confdefs.h
3845 # Do this here as we have fully defined TEA_PLATFORM now
3846 if test "${TEA_PLATFORM}" = "windows" ; then
3848 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
3860 #--------------------------------------------------------------------
3861 # Load the tkConfig.sh file if necessary (Tk extension)
3862 #--------------------------------------------------------------------
3867 #----------------------------------------------------------------------
3868 # Load the tdbcConfig.sh file
3869 #----------------------------------------------------------------------
3873 # Ok, lets find the tdbc configuration
3874 # First, look for one uninstalled.
3875 # the alternative search directory is invoked by --with-tdbc
3878 if test x"${no_tdbc}" = x ; then
3879 # we reset no_tdbc in case something fails here
3882 # Check whether --with-tdbc was given.
3883 if test ${with_tdbc+y}
3885 withval=$with_tdbc; with_tdbcconfig=${withval}
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tdbc configuration" >&5
3889 printf %s "checking for tdbc configuration... " >&6; }
3890 if test ${ac_cv_c_tdbcconfig+y}
3892 printf %s "(cached) " >&6
3896 # First check to see if --with-tdbc was specified.
3897 if test x"${with_tdbcconfig}" != x ; then
3898 case ${with_tdbcconfig} in
3900 if test -f ${with_tdbcconfig}; then
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-tdbc argument should refer to directory containing tdbcConfig.sh, not to tdbcConfig.sh itself" >&5
3902 printf "%s\n" "$as_me: WARNING: --with-tdbc argument should refer to directory containing tdbcConfig.sh, not to tdbcConfig.sh itself" >&2;}
3903 with_tdbcconfig=`echo ${with_tdbcconfig} | sed 's!/tdbcConfig\.sh$!!'`
3906 if test -f "${with_tdbcconfig}/tdbcConfig.sh" ; then
3907 ac_cv_c_tdbcconfig=`(cd ${with_tdbcconfig}; pwd)`
3909 as_fn_error $? "${with_tdbcconfig} directory doesn't contain tdbcConfig.sh" "$LINENO" 5
3913 # then check for a private tdbc installation
3914 if test x"${ac_cv_c_tdbcconfig}" = x ; then
3917 `ls -dr ../tdbc*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
3918 `ls -dr ../tdbc*[0-9].[0-9][0-9] 2>/dev/null` \
3919 `ls -dr ../tdbc*[0-9].[0-9] 2>/dev/null` \
3920 `ls -dr ../tdbc*[0-9].[0-9]* 2>/dev/null` \
3922 `ls -dr ../../tdbc*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
3923 `ls -dr ../../tdbc*[0-9].[0-9][0-9] 2>/dev/null` \
3924 `ls -dr ../../tdbc*[0-9].[0-9] 2>/dev/null` \
3925 `ls -dr ../../tdbc*[0-9].[0-9]* 2>/dev/null` \
3927 `ls -dr ../../../tdbc*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
3928 `ls -dr ../../../tdbc*[0-9].[0-9][0-9] 2>/dev/null` \
3929 `ls -dr ../../../tdbc*[0-9].[0-9] 2>/dev/null` \
3930 `ls -dr ../../../tdbc*[0-9].[0-9]* 2>/dev/null` \
3932 `ls -dr ${srcdir}/../tdbc*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
3933 `ls -dr ${srcdir}/../tdbc*[0-9].[0-9][0-9] 2>/dev/null` \
3934 `ls -dr ${srcdir}/../tdbc*[0-9].[0-9] 2>/dev/null` \
3935 `ls -dr ${srcdir}/../tdbc*[0-9].[0-9]* 2>/dev/null` \
3937 if test -f "$i/tdbcConfig.sh" ; then
3938 ac_cv_c_tdbcconfig=`(cd $i; pwd)`
3941 if test -f "$i/unix/tdbcConfig.sh" ; then
3942 ac_cv_c_tdbcconfig=`(cd $i/unix; pwd)`
3948 # check in a few common install locations
3949 if test x"${ac_cv_c_tdbcconfig}" = x ; then
3950 for i in `ls -d ${libdir} 2>/dev/null` \
3951 `ls -d ${exec_prefix}/lib 2>/dev/null` \
3952 `ls -d ${prefix}/lib 2>/dev/null` \
3953 `ls -d /usr/local/lib 2>/dev/null` \
3954 `ls -d /usr/contrib/lib 2>/dev/null` \
3955 `ls -d /usr/pkg/lib 2>/dev/null` \
3956 `ls -d /usr/lib 2>/dev/null` \
3957 `ls -d /usr/lib64 2>/dev/null` \
3959 if test -f "$i/tdbcConfig.sh" ; then
3960 ac_cv_c_tdbcconfig=`(cd $i; pwd)`
3969 if test x"${ac_cv_c_tdbcconfig}" = x ; then
3970 tdbc_BIN_DIR="# no tdbc configs found"
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find tdbc configuration definitions" >&5
3972 printf "%s\n" "$as_me: WARNING: Cannot find tdbc configuration definitions" >&2;}
3976 tdbc_BIN_DIR=${ac_cv_c_tdbcconfig}
3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $tdbc_BIN_DIR/tdbcConfig.sh" >&5
3978 printf "%s\n" "found $tdbc_BIN_DIR/tdbcConfig.sh" >&6; }
3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${tdbc_BIN_DIR}/tdbcConfig.sh" >&5
3984 printf %s "checking for existence of ${tdbc_BIN_DIR}/tdbcConfig.sh... " >&6; }
3986 if test -f "${tdbc_BIN_DIR}/tdbcConfig.sh" ; then
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
3988 printf "%s\n" "loading" >&6; }
3989 . "${tdbc_BIN_DIR}/tdbcConfig.sh"
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
3992 printf "%s\n" "file not found" >&6; }
3996 # If the tdbc_BIN_DIR is the build directory (not the install directory),
3997 # then set the common variable name to the value of the build variables.
3998 # For example, the variable tdbc_LIB_SPEC will be set to the value
3999 # of tdbc_BUILD_LIB_SPEC. An extension should make use of tdbc_LIB_SPEC
4000 # instead of tdbc_BUILD_LIB_SPEC since it will work with both an
4001 # installed and uninstalled version of Tcl.
4004 if test -f "${tdbc_BIN_DIR}/Makefile" ; then
4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found Makefile - using build library specs for tdbc" >&5
4006 printf "%s\n" "$as_me: WARNING: Found Makefile - using build library specs for tdbc" >&2;}
4007 tdbc_LIB_SPEC=${tdbc_BUILD_LIB_SPEC}
4008 tdbc_STUB_LIB_SPEC=${tdbc_BUILD_STUB_LIB_SPEC}
4009 tdbc_STUB_LIB_PATH=${tdbc_BUILD_STUB_LIB_PATH}
4010 tdbc_INCLUDE_SPEC=${tdbc_BUILD_INCLUDE_SPEC}
4011 tdbc_LIBRARY_PATH=${tdbc_LIBRARY_PATH}
4025 # Allow the caller to prevent this auto-check by specifying any 2nd arg
4029 # Check both upper and lower-case variants
4030 # If a dev wanted non-stubs libs, this function could take an option
4031 # to not use _STUB in the paths below
4032 if test "x${tdbc_STUB_LIB_SPEC}" = x
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For TDBC_STUB library for LIBS" >&5
4036 printf %s "checking For TDBC_STUB library for LIBS... " >&6; }
4037 # This simplifies the use of stub libraries by automatically adding
4038 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
4039 # but this is called before CONFIG_CFLAGS. More importantly, this adds
4040 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
4041 if test "x${TDBC_STUB_LIB_SPEC}" != "x" ; then
4042 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
4044 vars="\"`${CYGPATH} ${TDBC_STUB_LIB_PATH}`\""
4046 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
4047 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
4048 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
4050 PKG_LIBS="$PKG_LIBS $i"
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using TDBC_STUB_LIB_PATH ${TDBC_STUB_LIB_PATH}" >&5
4055 printf "%s\n" "using TDBC_STUB_LIB_PATH ${TDBC_STUB_LIB_PATH}" >&6; }
4058 vars="${TDBC_STUB_LIB_SPEC}"
4060 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
4061 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
4062 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
4064 PKG_LIBS="$PKG_LIBS $i"
4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using TDBC_STUB_LIB_SPEC ${TDBC_STUB_LIB_SPEC}" >&5
4069 printf "%s\n" "using TDBC_STUB_LIB_SPEC ${TDBC_STUB_LIB_SPEC}" >&6; }
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
4073 printf "%s\n" "file not found" >&6; }
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For tdbc_STUB library for LIBS" >&5
4079 printf %s "checking For tdbc_STUB library for LIBS... " >&6; }
4080 # This simplifies the use of stub libraries by automatically adding
4081 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
4082 # but this is called before CONFIG_CFLAGS. More importantly, this adds
4083 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
4084 if test "x${tdbc_STUB_LIB_SPEC}" != "x" ; then
4085 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
4087 vars="\"`${CYGPATH} ${tdbc_STUB_LIB_PATH}`\""
4089 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
4090 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
4091 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
4093 PKG_LIBS="$PKG_LIBS $i"
4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using tdbc_STUB_LIB_PATH ${tdbc_STUB_LIB_PATH}" >&5
4098 printf "%s\n" "using tdbc_STUB_LIB_PATH ${tdbc_STUB_LIB_PATH}" >&6; }
4101 vars="${tdbc_STUB_LIB_SPEC}"
4103 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
4104 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
4105 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
4107 PKG_LIBS="$PKG_LIBS $i"
4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using tdbc_STUB_LIB_SPEC ${tdbc_STUB_LIB_SPEC}" >&5
4112 printf "%s\n" "using tdbc_STUB_LIB_SPEC ${tdbc_STUB_LIB_SPEC}" >&6; }
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
4116 printf "%s\n" "file not found" >&6; }
4123 # The next bit probably ought to be in TEA_LOAD_CONFIG
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Looking for \"${tdbc_BIN_DIR}/Makefile\"" >&5
4125 printf "%s\n" "$as_me: WARNING: Looking for \"${tdbc_BIN_DIR}/Makefile\"" >&2;}
4126 if test -f "${tdbc_BIN_DIR}/Makefile" ; then
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found Makefile - using build include spec and lib specs for tdbc" >&5
4128 printf "%s\n" "$as_me: WARNING: Found Makefile - using build include spec and lib specs for tdbc" >&2;}
4129 tdbc_INCLUDE_SPEC=${tdbc_BUILD_INCLUDE_SPEC}
4130 tdbc_LIBRARY_PATH=${tdbc_BUILD_LIBRARY_PATH}
4137 #-----------------------------------------------------------------------
4138 # Handle the --prefix=... option by defaulting to what Tcl gave.
4139 # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
4140 #-----------------------------------------------------------------------
4143 if test "${prefix}" = "NONE"; then
4145 if test x"${TCL_PREFIX}" != x; then
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
4147 printf "%s\n" "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
4148 prefix=${TCL_PREFIX}
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5
4151 printf "%s\n" "$as_me: --prefix defaulting to /usr/local" >&6;}
4155 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
4156 -o x"${exec_prefix_default}" = x"yes" ; then
4157 if test x"${TCL_EXEC_PREFIX}" != x; then
4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
4159 printf "%s\n" "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
4160 exec_prefix=${TCL_EXEC_PREFIX}
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5
4163 printf "%s\n" "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
4169 #-----------------------------------------------------------------------
4170 # Standard compiler checks.
4171 # This sets up CC by using the CC env var, or looks for gcc otherwise.
4172 # This also calls AC_PROG_CC and a few others to create the basic setup
4173 # necessary to compile executables.
4174 #-----------------------------------------------------------------------
4178 #-----------------------------------------------------------------------
4180 # Specify the C source files to compile in TEA_ADD_SOURCES,
4181 # public headers that need to be installed in TEA_ADD_HEADERS,
4182 # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
4183 # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
4184 # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
4185 # and PKG_TCL_SOURCES.
4186 #-----------------------------------------------------------------------
4188 #TEA_ADD_SOURCES([])
4189 #TEA_ADD_HEADERS([])
4190 #TEA_ADD_INCLUDES([])
4193 #TEA_ADD_STUB_SOURCES([])
4195 vars="library/tdbcsqlite3.tcl"
4197 # check for existence, be strict because it is installed
4198 if test ! -f "${srcdir}/$i" ; then
4199 as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5
4201 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
4206 #--------------------------------------------------------------------
4209 # You can add more files to clean if your extension creates any extra
4210 # files by extending CLEANFILES.
4211 # Add pkgIndex.tcl if it is generated in the Makefile instead of ./configure
4212 # and change Makefile.in to move it from CONFIG_CLEAN_FILES to BINARIES var.
4214 # A few miscellaneous platform-specific items:
4215 # TEA_ADD_* any platform specific compiler/build info here.
4216 #--------------------------------------------------------------------
4218 #CLEANFILES="$CLEANFILES pkgIndex.tcl"
4219 if test "${TEA_PLATFORM}" = "windows" ; then
4220 # Ensure no empty if clauses
4222 #TEA_ADD_SOURCES([win/winFile.c])
4223 #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"])
4225 # Ensure no empty else clauses
4227 #TEA_ADD_SOURCES([unix/unixFile.c])
4228 #TEA_ADD_LIBS([-lsuperfly])
4231 #--------------------------------------------------------------------
4233 # Choose which headers you need. Extension authors should try very
4234 # hard to only rely on the Tcl public header files. Internal headers
4235 # contain private data structures and are subject to change without
4237 # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
4238 #--------------------------------------------------------------------
4240 #TEA_PUBLIC_TCL_HEADERS
4241 #TEA_PRIVATE_TCL_HEADERS
4243 #TEA_PUBLIC_TK_HEADERS
4244 #TEA_PRIVATE_TK_HEADERS
4247 #--------------------------------------------------------------------
4248 # Check whether --enable-threads or --disable-threads was given.
4249 # This auto-enables if Tcl was compiled threaded.
4250 #--------------------------------------------------------------------
4253 # Check whether --enable-threads was given.
4254 if test ${enable_threads+y}
4256 enableval=$enable_threads; tcl_ok=$enableval
4262 if test "${enable_threads+set}" = set; then
4263 enableval="$enable_threads"
4269 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
4272 if test "${TEA_PLATFORM}" != "windows" ; then
4273 # We are always OK on Windows, so check what this platform wants:
4275 # USE_THREAD_ALLOC tells us to try the special thread-based
4276 # allocator that significantly reduces lock contention
4278 printf "%s\n" "#define USE_THREAD_ALLOC 1" >>confdefs.h
4281 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
4283 if test "`uname -s`" = "SunOS" ; then
4285 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4289 printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
4292 printf %s "checking for pthread_mutex_init in -lpthread... " >&6; }
4293 if test ${ac_cv_lib_pthread_pthread_mutex_init+y}
4295 printf %s "(cached) " >&6
4297 ac_check_lib_save_LIBS=$LIBS
4298 LIBS="-lpthread $LIBS"
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4302 /* Override any GCC internal prototype to avoid an error.
4303 Use char because int might match the return type of a GCC
4304 builtin and then its argument prototype would still apply. */
4305 char pthread_mutex_init ();
4309 return pthread_mutex_init ();
4314 if ac_fn_c_try_link "$LINENO"
4316 ac_cv_lib_pthread_pthread_mutex_init=yes
4318 ac_cv_lib_pthread_pthread_mutex_init=no
4320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4321 conftest$ac_exeext conftest.$ac_ext
4322 LIBS=$ac_check_lib_save_LIBS
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
4325 printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
4326 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
4333 if test "$tcl_ok" = "no"; then
4334 # Check a little harder for __pthread_mutex_init in the same
4335 # library, as some systems hide it there until pthread.h is
4336 # defined. We could alternatively do an AC_TRY_COMPILE with
4337 # pthread.h, but that will work with libpthread really doesn't
4338 # exist, like AIX 4.2. [Bug: 4359]
4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5
4340 printf %s "checking for __pthread_mutex_init in -lpthread... " >&6; }
4341 if test ${ac_cv_lib_pthread___pthread_mutex_init+y}
4343 printf %s "(cached) " >&6
4345 ac_check_lib_save_LIBS=$LIBS
4346 LIBS="-lpthread $LIBS"
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4350 /* Override any GCC internal prototype to avoid an error.
4351 Use char because int might match the return type of a GCC
4352 builtin and then its argument prototype would still apply. */
4353 char __pthread_mutex_init ();
4357 return __pthread_mutex_init ();
4362 if ac_fn_c_try_link "$LINENO"
4364 ac_cv_lib_pthread___pthread_mutex_init=yes
4366 ac_cv_lib_pthread___pthread_mutex_init=no
4368 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4369 conftest$ac_exeext conftest.$ac_ext
4370 LIBS=$ac_check_lib_save_LIBS
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
4373 printf "%s\n" "$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
4374 if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes
4383 if test "$tcl_ok" = "yes"; then
4384 # The space is needed
4385 THREADS_LIBS=" -lpthread"
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5
4388 printf %s "checking for pthread_mutex_init in -lpthreads... " >&6; }
4389 if test ${ac_cv_lib_pthreads_pthread_mutex_init+y}
4391 printf %s "(cached) " >&6
4393 ac_check_lib_save_LIBS=$LIBS
4394 LIBS="-lpthreads $LIBS"
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4398 /* Override any GCC internal prototype to avoid an error.
4399 Use char because int might match the return type of a GCC
4400 builtin and then its argument prototype would still apply. */
4401 char pthread_mutex_init ();
4405 return pthread_mutex_init ();
4410 if ac_fn_c_try_link "$LINENO"
4412 ac_cv_lib_pthreads_pthread_mutex_init=yes
4414 ac_cv_lib_pthreads_pthread_mutex_init=no
4416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4417 conftest$ac_exeext conftest.$ac_ext
4418 LIBS=$ac_check_lib_save_LIBS
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
4421 printf "%s\n" "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
4422 if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes
4429 if test "$tcl_ok" = "yes"; then
4430 # The space is needed
4431 THREADS_LIBS=" -lpthreads"
4433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
4434 printf %s "checking for pthread_mutex_init in -lc... " >&6; }
4435 if test ${ac_cv_lib_c_pthread_mutex_init+y}
4437 printf %s "(cached) " >&6
4439 ac_check_lib_save_LIBS=$LIBS
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4444 /* Override any GCC internal prototype to avoid an error.
4445 Use char because int might match the return type of a GCC
4446 builtin and then its argument prototype would still apply. */
4447 char pthread_mutex_init ();
4451 return pthread_mutex_init ();
4456 if ac_fn_c_try_link "$LINENO"
4458 ac_cv_lib_c_pthread_mutex_init=yes
4460 ac_cv_lib_c_pthread_mutex_init=no
4462 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4463 conftest$ac_exeext conftest.$ac_ext
4464 LIBS=$ac_check_lib_save_LIBS
4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
4467 printf "%s\n" "$ac_cv_lib_c_pthread_mutex_init" >&6; }
4468 if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes
4475 if test "$tcl_ok" = "no"; then
4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5
4477 printf %s "checking for pthread_mutex_init in -lc_r... " >&6; }
4478 if test ${ac_cv_lib_c_r_pthread_mutex_init+y}
4480 printf %s "(cached) " >&6
4482 ac_check_lib_save_LIBS=$LIBS
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4487 /* Override any GCC internal prototype to avoid an error.
4488 Use char because int might match the return type of a GCC
4489 builtin and then its argument prototype would still apply. */
4490 char pthread_mutex_init ();
4494 return pthread_mutex_init ();
4499 if ac_fn_c_try_link "$LINENO"
4501 ac_cv_lib_c_r_pthread_mutex_init=yes
4503 ac_cv_lib_c_r_pthread_mutex_init=no
4505 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4506 conftest$ac_exeext conftest.$ac_ext
4507 LIBS=$ac_check_lib_save_LIBS
4509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
4510 printf "%s\n" "$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
4511 if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes
4518 if test "$tcl_ok" = "yes"; then
4519 # The space is needed
4520 THREADS_LIBS=" -pthread"
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
4524 printf "%s\n" "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
4533 # Do checking message here to not mess up interleaved configure output
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5
4535 printf %s "checking for building with threads... " >&6; }
4536 if test "${TCL_THREADS}" = 1; then
4538 printf "%s\n" "#define TCL_THREADS 1" >>confdefs.h
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
4541 printf "%s\n" "yes (default)" >&6; }
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 printf "%s\n" "no" >&6; }
4546 # TCL_THREADS sanity checking. See if our request for building with
4547 # threads is the same as the way Tcl was built. If not, warn the user.
4550 if test "${TCL_THREADS}" = "0"; then
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
4552 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
4553 that IS thread-enabled. It is recommended to use --enable-threads." >&5
4554 printf "%s\n" "$as_me: WARNING:
4555 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
4556 that IS thread-enabled. It is recommended to use --enable-threads." >&2;}
4563 #--------------------------------------------------------------------
4564 # The statement below defines a collection of symbols related to
4565 # building as a shared library instead of a static library.
4566 #--------------------------------------------------------------------
4570 #--------------------------------------------------------------------
4571 # This macro figures out what flags to use with the compiler/linker
4572 # when building shared/static debug/optimized objects. This information
4573 # can be taken from the tclConfig.sh file, but this figures it all out.
4574 #--------------------------------------------------------------------
4578 #--------------------------------------------------------------------
4579 # Set the default compiler switches based on the --enable-symbols option.
4580 #--------------------------------------------------------------------
4582 if test -n "$ac_tool_prefix"; then
4583 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4584 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 printf %s "checking for $ac_word... " >&6; }
4587 if test ${ac_cv_prog_RANLIB+y}
4589 printf %s "(cached) " >&6
4591 if test -n "$RANLIB"; then
4592 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 case $as_dir in #(((
4601 *) as_dir=$as_dir/ ;;
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4605 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4615 RANLIB=$ac_cv_prog_RANLIB
4616 if test -n "$RANLIB"; then
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4618 printf "%s\n" "$RANLIB" >&6; }
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 printf "%s\n" "no" >&6; }
4626 if test -z "$ac_cv_prog_RANLIB"; then
4627 ac_ct_RANLIB=$RANLIB
4628 # Extract the first word of "ranlib", so it can be a program name with args.
4629 set dummy ranlib; ac_word=$2
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 printf %s "checking for $ac_word... " >&6; }
4632 if test ${ac_cv_prog_ac_ct_RANLIB+y}
4634 printf %s "(cached) " >&6
4636 if test -n "$ac_ct_RANLIB"; then
4637 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 case $as_dir in #(((
4646 *) as_dir=$as_dir/ ;;
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4650 ac_cv_prog_ac_ct_RANLIB="ranlib"
4651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4660 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4661 if test -n "$ac_ct_RANLIB"; then
4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4663 printf "%s\n" "$ac_ct_RANLIB" >&6; }
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 printf "%s\n" "no" >&6; }
4669 if test "x$ac_ct_RANLIB" = x; then
4672 case $cross_compiling:$ac_tool_warned in
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4675 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4676 ac_tool_warned=yes ;;
4678 RANLIB=$ac_ct_RANLIB
4681 RANLIB="$ac_cv_prog_RANLIB"
4684 ac_header= ac_cache=
4685 for ac_item in $ac_header_c_list
4687 if test $ac_cache; then
4688 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4689 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4690 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4692 ac_header= ac_cache=
4693 elif test $ac_header; then
4707 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4710 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4716 # Step 0.a: Enable 64 bit support?
4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
4719 printf %s "checking if 64bit support is requested... " >&6; }
4720 # Check whether --enable-64bit was given.
4721 if test ${enable_64bit+y}
4723 enableval=$enable_64bit; do64bit=$enableval
4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
4729 printf "%s\n" "$do64bit" >&6; }
4731 # Step 0.b: Enable Solaris 64 bit VIS support?
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
4734 printf %s "checking if 64bit Sparc VIS support is requested... " >&6; }
4735 # Check whether --enable-64bit-vis was given.
4736 if test ${enable_64bit_vis+y}
4738 enableval=$enable_64bit_vis; do64bitVIS=$enableval
4743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
4744 printf "%s\n" "$do64bitVIS" >&6; }
4745 # Force 64bit on with VIS
4746 if test "$do64bitVIS" = "yes"
4751 # Step 0.c: Check if visibility support is available. Do this here so
4752 # that platform specific alternatives can be used below if this fails.
4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
4755 printf %s "checking if compiler supports visibility \"hidden\"... " >&6; }
4756 if test ${tcl_cv_cc_visibility_hidden+y}
4758 printf %s "(cached) " >&6
4761 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4765 extern __attribute__((__visibility__("hidden"))) void f(void);
4775 if ac_fn_c_try_link "$LINENO"
4777 tcl_cv_cc_visibility_hidden=yes
4779 tcl_cv_cc_visibility_hidden=no
4781 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4782 conftest$ac_exeext conftest.$ac_ext
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
4786 printf "%s\n" "$tcl_cv_cc_visibility_hidden" >&6; }
4787 if test $tcl_cv_cc_visibility_hidden = yes
4791 printf "%s\n" "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
4794 printf "%s\n" "#define HAVE_HIDDEN 1" >>confdefs.h
4799 # Step 0.d: Disable -rpath support?
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
4802 printf %s "checking if rpath support is requested... " >&6; }
4803 # Check whether --enable-rpath was given.
4804 if test ${enable_rpath+y}
4806 enableval=$enable_rpath; doRpath=$enableval
4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
4812 printf "%s\n" "$doRpath" >&6; }
4814 # Set the variable "system" to hold the name and version number
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
4819 printf %s "checking system version... " >&6; }
4820 if test ${tcl_cv_sys_version+y}
4822 printf %s "(cached) " >&6
4826 if test "${TEA_PLATFORM}" = "windows" ; then
4827 tcl_cv_sys_version=windows
4829 tcl_cv_sys_version=`uname -s`-`uname -r`
4830 if test "$?" -ne 0 ; then
4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
4832 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
4833 tcl_cv_sys_version=unknown
4835 if test "`uname -s`" = "AIX" ; then
4836 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
4838 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
4839 tcl_cv_sys_version=NetBSD-Debian
4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
4846 printf "%s\n" "$tcl_cv_sys_version" >&6; }
4847 system=$tcl_cv_sys_version
4850 # Require ranlib early so we can override it in special cases below.
4854 # Set configuration options based on system name and version.
4855 # This is similar to Tcl's unix/tcl.m4 except that we've added a
4856 # "windows" case and removed some core-only vars.
4859 # default to '{$LIBS}' and set to "" on per-platform necessary basis
4860 SHLIB_LD_LIBS='${LIBS}'
4861 # When ld needs options to work in 64-bit mode, put them in
4862 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
4863 # is disabled by the user. [Bug 1016796]
4865 UNSHARED_LIB_SUFFIX=""
4866 # TEA specific: use PACKAGE_VERSION instead of VERSION
4867 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
4868 ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
4869 TCL_LIB_VERSIONS_OK=ok
4871 if test "$GCC" = yes
4875 CFLAGS_WARNING="-Wall"
4883 if test -n "$ac_tool_prefix"; then
4884 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4885 set dummy ${ac_tool_prefix}ar; ac_word=$2
4886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 printf %s "checking for $ac_word... " >&6; }
4888 if test ${ac_cv_prog_AR+y}
4890 printf %s "(cached) " >&6
4892 if test -n "$AR"; then
4893 ac_cv_prog_AR="$AR" # Let the user override the test.
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 case $as_dir in #(((
4902 *) as_dir=$as_dir/ ;;
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4906 ac_cv_prog_AR="${ac_tool_prefix}ar"
4907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4917 if test -n "$AR"; then
4918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4919 printf "%s\n" "$AR" >&6; }
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 printf "%s\n" "no" >&6; }
4927 if test -z "$ac_cv_prog_AR"; then
4929 # Extract the first word of "ar", so it can be a program name with args.
4930 set dummy ar; ac_word=$2
4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 printf %s "checking for $ac_word... " >&6; }
4933 if test ${ac_cv_prog_ac_ct_AR+y}
4935 printf %s "(cached) " >&6
4937 if test -n "$ac_ct_AR"; then
4938 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 case $as_dir in #(((
4947 *) as_dir=$as_dir/ ;;
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4951 ac_cv_prog_ac_ct_AR="ar"
4952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4962 if test -n "$ac_ct_AR"; then
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4964 printf "%s\n" "$ac_ct_AR" >&6; }
4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 printf "%s\n" "no" >&6; }
4970 if test "x$ac_ct_AR" = x; then
4973 case $cross_compiling:$ac_tool_warned in
4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4976 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4977 ac_tool_warned=yes ;;
4986 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
4987 if test "x$SHLIB_VERSION" = x
4991 SHLIB_VERSION=".$SHLIB_VERSION"
4997 if test "$do64bit" != "no" ; then
5000 MACHINE="AMD64" ; # default to AMD64 64-bit build
5008 if test "$GCC" != "yes" ; then
5009 if test "${SHARED_BUILD}" = "0" ; then
5014 case "x`echo \${VisualStudioVersion}`" in
5016 lflags="${lflags} -nodefaultlib:libucrt.lib"
5020 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5021 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5022 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5024 PKG_LIBS="$PKG_LIBS $i"
5033 if test "$do64bit" != "no" ; then
5036 lflags="${lflags} -nologo -MACHINE:${MACHINE} "
5038 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
5039 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
5040 # Avoid 'unresolved external symbol __security_cookie'
5041 # errors, c.f. http://support.microsoft.com/?id=894573
5043 vars="bufferoverflowU.lib"
5045 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5046 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5047 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5049 PKG_LIBS="$PKG_LIBS $i"
5055 lflags="${lflags} -nologo"
5057 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
5058 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
5062 if test "$GCC" = "yes"; then
5064 if test -n "$ac_tool_prefix"; then
5065 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5066 set dummy ${ac_tool_prefix}windres; ac_word=$2
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 printf %s "checking for $ac_word... " >&6; }
5069 if test ${ac_cv_prog_RC+y}
5071 printf %s "(cached) " >&6
5073 if test -n "$RC"; then
5074 ac_cv_prog_RC="$RC" # Let the user override the test.
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 case $as_dir in #(((
5083 *) as_dir=$as_dir/ ;;
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5087 ac_cv_prog_RC="${ac_tool_prefix}windres"
5088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5098 if test -n "$RC"; then
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
5100 printf "%s\n" "$RC" >&6; }
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 printf "%s\n" "no" >&6; }
5108 if test -z "$ac_cv_prog_RC"; then
5110 # Extract the first word of "windres", so it can be a program name with args.
5111 set dummy windres; ac_word=$2
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 printf %s "checking for $ac_word... " >&6; }
5114 if test ${ac_cv_prog_ac_ct_RC+y}
5116 printf %s "(cached) " >&6
5118 if test -n "$ac_ct_RC"; then
5119 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 case $as_dir in #(((
5128 *) as_dir=$as_dir/ ;;
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5132 ac_cv_prog_ac_ct_RC="windres"
5133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5142 ac_ct_RC=$ac_cv_prog_ac_ct_RC
5143 if test -n "$ac_ct_RC"; then
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
5145 printf "%s\n" "$ac_ct_RC" >&6; }
5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 printf "%s\n" "no" >&6; }
5151 if test "x$ac_ct_RC" = x; then
5154 case $cross_compiling:$ac_tool_warned in
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5157 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5158 ac_tool_warned=yes ;;
5167 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
5168 SHLIB_LD='${CC} -shared'
5169 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
5170 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
5171 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5
5174 printf %s "checking for cross-compile version of gcc... " >&6; }
5175 if test ${ac_cv_cross+y}
5177 printf %s "(cached) " >&6
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5183 #error cross-compiler
5194 if ac_fn_c_try_compile "$LINENO"
5200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5
5204 printf "%s\n" "$ac_cv_cross" >&6; }
5205 if test "$ac_cv_cross" = "yes"; then
5208 CC="x86_64-w64-mingw32-${CC}"
5209 LD="x86_64-w64-mingw32-ld"
5210 AR="x86_64-w64-mingw32-ar"
5211 RANLIB="x86_64-w64-mingw32-ranlib"
5212 RC="x86_64-w64-mingw32-windres"
5215 CC="i686-w64-mingw32-${CC}"
5216 LD="i686-w64-mingw32-ld"
5217 AR="i686-w64-mingw32-ar"
5218 RANLIB="i686-w64-mingw32-ranlib"
5219 RC="i686-w64-mingw32-windres"
5225 SHLIB_LD="${LINKBIN} -dll ${lflags}"
5226 # link -lib only works when -lib is the first arg
5227 STLIB_LD="${LINKBIN} -lib ${lflags}"
5228 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
5230 # For information on what debugtype is most useful, see:
5231 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
5233 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
5234 # This essentially turns it all on.
5235 LDFLAGS_DEBUG="-debug -debugtype:cv"
5236 LDFLAGS_OPTIMIZE="-release"
5237 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
5238 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
5242 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
5244 TCL_LIB_VERSIONS_OK=nodots
5247 if test "$GCC" != "yes"
5250 # AIX requires the _r compiler when gcc isn't being used
5256 # Make sure only first arg gets _r
5257 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
5261 printf "%s\n" "Using $CC for compiling with threads" >&6; }
5268 LD_LIBRARY_PATH_VAR="LIBPATH"
5270 # Check to enable 64-bit flags for compiler/linker
5271 if test "$do64bit" = yes
5274 if test "$GCC" = yes
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
5278 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
5283 CFLAGS="$CFLAGS -q64"
5285 RANLIB="${RANLIB} -X64"
5287 SHLIB_LD_FLAGS="-b64"
5293 if test "`uname -m`" = ia64
5296 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
5297 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
5298 if test "$GCC" = yes
5301 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
5305 CC_SEARCH_FLAGS='"-R${LIB_RUNTIME_DIR}"'
5308 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
5312 if test "$GCC" = yes
5315 SHLIB_LD='${CC} -shared -Wl,-bexpall'
5319 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
5320 LDFLAGS="$LDFLAGS -brtl"
5323 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
5324 CC_SEARCH_FLAGS='"-L${LIB_RUNTIME_DIR}"'
5325 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5330 SHLIB_CFLAGS="-fPIC"
5331 SHLIB_LD='${CC} -nostart'
5334 #-----------------------------------------------------------
5335 # Check for inet_ntoa in -lbind, for BeOS (which also needs
5336 # -lsocket, even if the network functions are in -lnet which
5337 # is always linked to, for compatibility.
5338 #-----------------------------------------------------------
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
5340 printf %s "checking for inet_ntoa in -lbind... " >&6; }
5341 if test ${ac_cv_lib_bind_inet_ntoa+y}
5343 printf %s "(cached) " >&6
5345 ac_check_lib_save_LIBS=$LIBS
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5350 /* Override any GCC internal prototype to avoid an error.
5351 Use char because int might match the return type of a GCC
5352 builtin and then its argument prototype would still apply. */
5357 return inet_ntoa ();
5362 if ac_fn_c_try_link "$LINENO"
5364 ac_cv_lib_bind_inet_ntoa=yes
5366 ac_cv_lib_bind_inet_ntoa=no
5368 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5369 conftest$ac_exeext conftest.$ac_ext
5370 LIBS=$ac_check_lib_save_LIBS
5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
5373 printf "%s\n" "$ac_cv_lib_bind_inet_ntoa" >&6; }
5374 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes
5376 LIBS="$LIBS -lbind -lsocket"
5380 BSD/OS-2.1*|BSD/OS-3*)
5382 SHLIB_LD="shlicc -r"
5388 SHLIB_CFLAGS="-export-dynamic -fPIC"
5389 SHLIB_LD='${CC} -shared'
5391 LDFLAGS="$LDFLAGS -export-dynamic"
5397 SHLIB_LD='${CC} -shared'
5399 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\$@.a"
5406 SHLIB_CFLAGS="-K PIC"
5414 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
5415 SHLIB_CFLAGS="-fPIC"
5417 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
5419 printf %s "checking for inet_ntoa in -lnetwork... " >&6; }
5420 if test ${ac_cv_lib_network_inet_ntoa+y}
5422 printf %s "(cached) " >&6
5424 ac_check_lib_save_LIBS=$LIBS
5425 LIBS="-lnetwork $LIBS"
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5429 /* Override any GCC internal prototype to avoid an error.
5430 Use char because int might match the return type of a GCC
5431 builtin and then its argument prototype would still apply. */
5436 return inet_ntoa ();
5441 if ac_fn_c_try_link "$LINENO"
5443 ac_cv_lib_network_inet_ntoa=yes
5445 ac_cv_lib_network_inet_ntoa=no
5447 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5448 conftest$ac_exeext conftest.$ac_ext
5449 LIBS=$ac_check_lib_save_LIBS
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5
5452 printf "%s\n" "$ac_cv_lib_network_inet_ntoa" >&6; }
5453 if test "x$ac_cv_lib_network_inet_ntoa" = xyes
5455 LIBS="$LIBS -lnetwork"
5460 # Use updated header definitions where possible
5462 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
5464 # TEA specific: Needed by Tcl, but not most extensions
5465 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
5466 #LIBS="$LIBS -lxnet" # Use the XOPEN network library
5468 if test "`uname -m`" = ia64
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
5479 printf %s "checking for shl_load in -ldld... " >&6; }
5480 if test ${ac_cv_lib_dld_shl_load+y}
5482 printf %s "(cached) " >&6
5484 ac_check_lib_save_LIBS=$LIBS
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5489 /* Override any GCC internal prototype to avoid an error.
5490 Use char because int might match the return type of a GCC
5491 builtin and then its argument prototype would still apply. */
5501 if ac_fn_c_try_link "$LINENO"
5503 ac_cv_lib_dld_shl_load=yes
5505 ac_cv_lib_dld_shl_load=no
5507 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5508 conftest$ac_exeext conftest.$ac_ext
5509 LIBS=$ac_check_lib_save_LIBS
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
5512 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
5513 if test "x$ac_cv_lib_dld_shl_load" = xyes
5520 if test "$tcl_ok" = yes
5525 LDFLAGS="$LDFLAGS -Wl,-E"
5526 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
5527 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
5528 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
5531 if test "$GCC" = yes
5534 SHLIB_LD='${CC} -shared'
5535 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5543 # Check to enable 64-bit flags for compiler/linker
5544 if test "$do64bit" = "yes"
5547 if test "$GCC" = yes
5550 case `${CC} -dumpmachine` in
5552 # 64-bit gcc in use. Fix flags for GNU ld.
5554 SHLIB_LD='${CC} -shared'
5555 if test $doRpath = yes
5558 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
5560 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
5564 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
5571 CFLAGS="$CFLAGS +DD64"
5572 LDFLAGS_ARCH="+DD64"
5577 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
5580 printf %s "checking for shl_load in -ldld... " >&6; }
5581 if test ${ac_cv_lib_dld_shl_load+y}
5583 printf %s "(cached) " >&6
5585 ac_check_lib_save_LIBS=$LIBS
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5590 /* Override any GCC internal prototype to avoid an error.
5591 Use char because int might match the return type of a GCC
5592 builtin and then its argument prototype would still apply. */
5602 if ac_fn_c_try_link "$LINENO"
5604 ac_cv_lib_dld_shl_load=yes
5606 ac_cv_lib_dld_shl_load=no
5608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5609 conftest$ac_exeext conftest.$ac_ext
5610 LIBS=$ac_check_lib_save_LIBS
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
5613 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
5614 if test "x$ac_cv_lib_dld_shl_load" = xyes
5621 if test "$tcl_ok" = yes
5627 LDFLAGS="$LDFLAGS -Wl,-E"
5628 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
5629 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
5630 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
5635 SHLIB_LD="ld -shared -rdata_shared"
5637 case " $LIBOBJS " in
5638 *" mkstemp.$ac_objext "* ) ;;
5639 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
5643 if test $doRpath = yes
5646 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
5647 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
5652 SHLIB_LD="ld -n32 -shared -rdata_shared"
5654 if test $doRpath = yes
5657 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
5658 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
5660 if test "$GCC" = yes
5663 CFLAGS="$CFLAGS -mabi=n32"
5664 LDFLAGS="$LDFLAGS -mabi=n32"
5670 # Use to build 6.2 compatible binaries on 6.3.
5671 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
5674 CFLAGS="$CFLAGS -n32"
5677 LDFLAGS="$LDFLAGS -n32"
5683 SHLIB_LD="ld -n32 -shared -rdata_shared"
5685 if test $doRpath = yes
5688 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
5689 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
5692 # Check to enable 64-bit flags for compiler/linker
5694 if test "$do64bit" = yes
5697 if test "$GCC" = yes
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
5701 printf "%s\n" "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
5706 SHLIB_LD="ld -64 -shared -rdata_shared"
5707 CFLAGS="$CFLAGS -64"
5714 Linux*|GNU*|NetBSD-Debian|DragonFly-*|FreeBSD-*)
5715 SHLIB_CFLAGS="-fPIC"
5719 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
5721 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
5722 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS_DEFAULT} -shared'
5723 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
5726 DragonFly-*|FreeBSD-*)
5727 if test "${TCL_THREADS}" = "1"
5730 # The -pthread needs to go in the LDFLAGS, not LIBS
5731 LIBS=`echo $LIBS | sed s/-pthread//`
5732 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5733 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
5738 if test $doRpath = yes
5741 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
5743 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5744 if test "`uname -m`" = "alpha"
5746 CFLAGS="$CFLAGS -mieee"
5748 if test $do64bit = yes
5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
5752 printf %s "checking if compiler accepts -m64 flag... " >&6; }
5753 if test ${tcl_cv_cc_m64+y}
5755 printf %s "(cached) " >&6
5759 CFLAGS="$CFLAGS -m64"
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5771 if ac_fn_c_try_link "$LINENO"
5777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5778 conftest$ac_exeext conftest.$ac_ext
5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
5782 printf "%s\n" "$tcl_cv_cc_m64" >&6; }
5783 if test $tcl_cv_cc_m64 = yes
5786 CFLAGS="$CFLAGS -m64"
5793 # The combo of gcc + glibc has a bug related to inlining of
5794 # functions like strtod(). The -fno-builtin flag should address
5795 # this problem but it does not work. The -fno-inline flag is kind
5796 # of overkill but it works. Disable inlining only when one of the
5797 # files in compat/*.c is being linked in.
5799 if test x"${USE_COMPAT}" != x
5801 CFLAGS="$CFLAGS -fno-inline"
5805 SHLIB_CFLAGS="-fPIC"
5808 SHLIB_LD='${CC} -shared'
5809 LD_FLAGS="-Wl,--export-dynamic"
5810 if test $doRpath = yes
5813 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
5814 LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
5821 SHLIB_CFLAGS="-fPIC"
5824 SHLIB_CFLAGS="-fpic"
5827 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
5829 if test $doRpath = yes
5832 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
5834 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5835 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
5836 LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
5837 CFLAGS_OPTIMIZE="-O2"
5838 # On OpenBSD: Compile with -pthread
5839 # Don't link with -lpthread
5840 LIBS=`echo $LIBS | sed s/-lpthread//`
5841 CFLAGS="$CFLAGS -pthread"
5842 # OpenBSD doesn't do version numbers with dots.
5843 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
5844 TCL_LIB_VERSIONS_OK=nodots
5847 # NetBSD has ELF and can use 'cc -shared' to build shared libs
5848 SHLIB_CFLAGS="-fPIC"
5849 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
5851 LDFLAGS="$LDFLAGS -export-dynamic"
5852 if test $doRpath = yes
5855 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
5857 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5858 # The -pthread needs to go in the CFLAGS, not LIBS
5859 LIBS=`echo $LIBS | sed s/-pthread//`
5860 CFLAGS="$CFLAGS -pthread"
5861 LDFLAGS="$LDFLAGS -pthread"
5864 CFLAGS_OPTIMIZE="-Os"
5865 SHLIB_CFLAGS="-fno-common"
5866 # To avoid discrepancies between what headers configure sees during
5867 # preprocessing tests and compiling tests, move any -isysroot and
5868 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
5869 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
5870 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
5871 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
5872 CFLAGS="`echo " ${CFLAGS}" | \
5873 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
5874 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
5875 if test $do64bit = yes
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
5881 printf %s "checking if compiler accepts -arch ppc64 flag... " >&6; }
5882 if test ${tcl_cv_cc_arch_ppc64+y}
5884 printf %s "(cached) " >&6
5888 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5900 if ac_fn_c_try_link "$LINENO"
5902 tcl_cv_cc_arch_ppc64=yes
5904 tcl_cv_cc_arch_ppc64=no
5906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5907 conftest$ac_exeext conftest.$ac_ext
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
5911 printf "%s\n" "$tcl_cv_cc_arch_ppc64" >&6; }
5912 if test $tcl_cv_cc_arch_ppc64 = yes
5915 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
5921 printf %s "checking if compiler accepts -arch x86_64 flag... " >&6; }
5922 if test ${tcl_cv_cc_arch_x86_64+y}
5924 printf %s "(cached) " >&6
5928 CFLAGS="$CFLAGS -arch x86_64"
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5940 if ac_fn_c_try_link "$LINENO"
5942 tcl_cv_cc_arch_x86_64=yes
5944 tcl_cv_cc_arch_x86_64=no
5946 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5947 conftest$ac_exeext conftest.$ac_ext
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
5951 printf "%s\n" "$tcl_cv_cc_arch_x86_64" >&6; }
5952 if test $tcl_cv_cc_arch_x86_64 = yes
5955 CFLAGS="$CFLAGS -arch x86_64"
5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
5961 printf "%s\n" "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
5966 # Check for combined 32-bit and 64-bit fat build
5967 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
5968 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '
5975 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
5976 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
5978 printf %s "checking if ld accepts -single_module flag... " >&6; }
5979 if test ${tcl_cv_ld_single_module+y}
5981 printf %s "(cached) " >&6
5984 hold_ldflags=$LDFLAGS
5985 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5997 if ac_fn_c_try_link "$LINENO"
5999 tcl_cv_ld_single_module=yes
6001 tcl_cv_ld_single_module=no
6003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6004 conftest$ac_exeext conftest.$ac_ext
6005 LDFLAGS=$hold_ldflags
6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
6008 printf "%s\n" "$tcl_cv_ld_single_module" >&6; }
6009 if test $tcl_cv_ld_single_module = yes
6012 SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
6015 # TEA specific: link shlib with current and compatibility version flags
6016 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
6017 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
6018 SHLIB_SUFFIX=".dylib"
6019 LDFLAGS="$LDFLAGS -headerpad_max_install_names"
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
6021 printf %s "checking if ld accepts -search_paths_first flag... " >&6; }
6022 if test ${tcl_cv_ld_search_paths_first+y}
6024 printf %s "(cached) " >&6
6027 hold_ldflags=$LDFLAGS
6028 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6040 if ac_fn_c_try_link "$LINENO"
6042 tcl_cv_ld_search_paths_first=yes
6044 tcl_cv_ld_search_paths_first=no
6046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6047 conftest$ac_exeext conftest.$ac_ext
6048 LDFLAGS=$hold_ldflags
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
6051 printf "%s\n" "$tcl_cv_ld_search_paths_first" >&6; }
6052 if test $tcl_cv_ld_search_paths_first = yes
6055 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6058 if test "$tcl_cv_cc_visibility_hidden" != yes
6062 printf "%s\n" "#define MODULE_SCOPE __private_extern__" >>confdefs.h
6064 tcl_cv_cc_visibility_hidden=yes
6069 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
6070 # TEA specific: for combined 32 & 64 bit fat builds of Tk
6071 # extensions, verify that 64-bit build is possible.
6072 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"
6075 if test "${TEA_WINDOWINGSYSTEM}" = x11
6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
6079 printf %s "checking for 64-bit X11... " >&6; }
6080 if test ${tcl_cv_lib_x11_64+y}
6082 printf %s "(cached) " >&6
6085 for v in CFLAGS CPPFLAGS LDFLAGS; do
6086 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
6088 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
6089 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6092 #include <X11/Xlib.h>
6101 if ac_fn_c_try_link "$LINENO"
6103 tcl_cv_lib_x11_64=yes
6105 tcl_cv_lib_x11_64=no
6107 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6108 conftest$ac_exeext conftest.$ac_ext
6109 for v in CFLAGS CPPFLAGS LDFLAGS; do
6110 eval $v'="$hold_'$v'"'
6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
6114 printf "%s\n" "$tcl_cv_lib_x11_64" >&6; }
6117 if test "${TEA_WINDOWINGSYSTEM}" = aqua
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5
6121 printf %s "checking for 64-bit Tk... " >&6; }
6122 if test ${tcl_cv_lib_tk_64+y}
6124 printf %s "(cached) " >&6
6127 for v in CFLAGS CPPFLAGS LDFLAGS; do
6128 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
6130 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
6131 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6138 Tk_InitStubs(NULL, "", 0);
6143 if ac_fn_c_try_link "$LINENO"
6145 tcl_cv_lib_tk_64=yes
6149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6150 conftest$ac_exeext conftest.$ac_ext
6151 for v in CFLAGS CPPFLAGS LDFLAGS; do
6152 eval $v'="$hold_'$v'"'
6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5
6156 printf "%s\n" "$tcl_cv_lib_tk_64" >&6; }
6159 # remove 64-bit arch flags from CFLAGS et al. if configuration
6160 # does not support 64-bit.
6161 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no
6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
6165 printf "%s\n" "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
6166 for v in CFLAGS CPPFLAGS LDFLAGS; do
6167 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
6174 CFLAGS_OPTIMIZE="" # Optimizer is buggy
6176 printf "%s\n" "#define _OE_SOCKETS 1" >>confdefs.h
6182 if test "$SHARED_BUILD" = 1
6185 SHLIB_LD='ld -shared -expect_unresolved "*"'
6189 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
6193 if test $doRpath = yes
6196 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
6197 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6199 if test "$GCC" = yes
6201 CFLAGS="$CFLAGS -mieee"
6204 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
6206 # see pthread_intro(3) for pthread support on osf1, k.furukawa
6207 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
6208 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
6209 LIBS=`echo $LIBS | sed s/-lpthreads//`
6210 if test "$GCC" = yes
6213 LIBS="$LIBS -lpthread -lmach -lexc"
6217 CFLAGS="$CFLAGS -pthread"
6218 LDFLAGS="$LDFLAGS -pthread"
6224 # This may work for all QNX, but it was only reported for v6.
6225 SHLIB_CFLAGS="-fPIC"
6226 SHLIB_LD="ld -Bshareable -x"
6233 if test "$GCC" = yes
6236 SHLIB_CFLAGS="-fPIC -melf"
6237 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
6241 SHLIB_CFLAGS="-Kpic -belf"
6242 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
6252 # Careful to not let 5.10+ fall into this case
6254 # Note: If _REENTRANT isn't defined, then Solaris
6255 # won't define thread-safe library routines.
6258 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
6261 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6264 SHLIB_CFLAGS="-KPIC"
6266 if test "$GCC" = yes
6269 SHLIB_LD='${CC} -shared'
6270 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
6271 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6275 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
6276 CC_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
6277 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6282 # Note: If _REENTRANT isn't defined, then Solaris
6283 # won't define thread-safe library routines.
6286 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
6289 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6292 SHLIB_CFLAGS="-KPIC"
6294 # Check to enable 64-bit flags for compiler/linker
6295 if test "$do64bit" = yes
6299 if test "$arch" = "sparcv9 sparc"
6302 if test "$GCC" = yes
6305 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
6309 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
6314 CFLAGS="$CFLAGS -m64 -mcpu=v9"
6315 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
6316 SHLIB_CFLAGS="-fPIC"
6323 if test "$do64bitVIS" = yes
6326 CFLAGS="$CFLAGS -xarch=v9a"
6327 LDFLAGS_ARCH="-xarch=v9a"
6331 CFLAGS="$CFLAGS -xarch=v9"
6332 LDFLAGS_ARCH="-xarch=v9"
6335 # Solaris 64 uses this as well
6336 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
6341 if test "$arch" = "amd64 i386"
6344 if test "$GCC" = yes
6348 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
6350 CFLAGS="$CFLAGS -m64"
6351 LDFLAGS="$LDFLAGS -m64";;
6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
6354 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
6361 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
6362 CFLAGS="$CFLAGS -m64"
6363 LDFLAGS="$LDFLAGS -m64";;
6365 CFLAGS="$CFLAGS -xarch=amd64"
6366 LDFLAGS="$LDFLAGS -xarch=amd64";;
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
6373 printf "%s\n" "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
6380 if test "$GCC" = yes
6383 SHLIB_LD='${CC} -shared'
6384 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
6385 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6386 if test "$do64bit_ok" = yes
6389 if test "$arch" = "sparcv9 sparc"
6392 # We need to specify -static-libgcc or we need to
6393 # add the path to the sparv9 libgcc.
6394 # JH: static-libgcc is necessary for core Tcl, but may
6395 # not be necessary for extensions.
6396 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
6397 # for finding sparcv9 libgcc, get the regular libgcc
6398 # path, remove so name and append 'sparcv9'
6399 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
6400 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
6403 if test "$arch" = "amd64 i386"
6406 # JH: static-libgcc is necessary for core Tcl, but may
6407 # not be necessary for extensions.
6408 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
6418 SunOS-5.[1-9][0-9]*)
6419 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
6420 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
6422 SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
6424 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
6425 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
6429 UNIX_SV* | UnixWare-5*)
6430 SHLIB_CFLAGS="-KPIC"
6434 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
6435 # that don't grok the -Bexport option. Test that it does.
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
6437 printf %s "checking for ld accepts -Bexport flag... " >&6; }
6438 if test ${tcl_cv_ld_Bexport+y}
6440 printf %s "(cached) " >&6
6443 hold_ldflags=$LDFLAGS
6444 LDFLAGS="$LDFLAGS -Wl,-Bexport"
6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6456 if ac_fn_c_try_link "$LINENO"
6458 tcl_cv_ld_Bexport=yes
6460 tcl_cv_ld_Bexport=no
6462 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6463 conftest$ac_exeext conftest.$ac_ext
6464 LDFLAGS=$hold_ldflags
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
6467 printf "%s\n" "$tcl_cv_ld_Bexport" >&6; }
6468 if test $tcl_cv_ld_Bexport = yes
6471 LDFLAGS="$LDFLAGS -Wl,-Bexport"
6479 if test "$do64bit" = yes -a "$do64bit_ok" = no
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
6483 printf "%s\n" "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
6489 # Add in the arch flags late to ensure it wasn't removed.
6490 # Not necessary in TEA, but this is aligned with core
6491 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
6493 # If we're running gcc, then change the C flags for compiling shared
6494 # libraries to the right flags for gcc, instead of those for the
6495 # standard manufacturer compiler.
6497 if test "$GCC" = yes
6503 CYGWIN_*|MINGW32_*|MINGW64_*|MSYS_*) ;;
6505 NetBSD-*|DragonFly-*|FreeBSD-*|OpenBSD-*) ;;
6509 *) SHLIB_CFLAGS="-fPIC" ;;
6513 if test "$tcl_cv_cc_visibility_hidden" != yes
6517 printf "%s\n" "#define MODULE_SCOPE extern" >>confdefs.h
6522 if test "$SHARED_LIB_SUFFIX" = ""
6525 # TEA specific: use PACKAGE_VERSION instead of VERSION
6526 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
6528 if test "$UNSHARED_LIB_SUFFIX" = ""
6531 # TEA specific: use PACKAGE_VERSION instead of VERSION
6532 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
6535 if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5
6537 printf %s "checking for SEH support in compiler... " >&6; }
6538 if test ${tcl_cv_seh+y}
6540 printf %s "(cached) " >&6
6542 if test "$cross_compiling" = yes
6547 # ac_fn_c_try_run LINENO
6548 # ----------------------
6549 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
6550 # executables *can* be run.
6553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6554 if { { ac_try="$ac_link"
6556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557 *) ac_try_echo=$ac_try;;
6559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6560 printf "%s\n" "$ac_try_echo"; } >&5
6561 (eval "$ac_link") 2>&5
6563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6564 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
6565 { { case "(($ac_try" in
6566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6567 *) ac_try_echo=$ac_try;;
6569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6570 printf "%s\n" "$ac_try_echo"; } >&5
6571 (eval "$ac_try") 2>&5
6573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6574 test $ac_status = 0; }; }
6578 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
6579 printf "%s\n" "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6582 ac_retval=$ac_status
6584 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
6585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6586 as_fn_set_status $ac_retval
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6592 #define WIN32_LEAN_AND_MEAN
6593 #include <windows.h>
6594 #undef WIN32_LEAN_AND_MEAN
6596 int main(int argc, char** argv) {
6601 __except (EXCEPTION_EXECUTE_HANDLER) {
6608 if ac_fn_c_try_run "$LINENO"
6614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6615 conftest.$ac_objext conftest.beam conftest.$ac_ext
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5
6621 printf "%s\n" "$tcl_cv_seh" >&6; }
6622 if test "$tcl_cv_seh" = "no" ; then
6624 printf "%s\n" "#define HAVE_NO_SEH 1" >>confdefs.h
6629 # Check to see if the excpt.h include file provided contains the
6630 # definition for EXCEPTION_DISPOSITION; if not, which is the case
6631 # with Cygwin's version as of 2002-04-10, define it to be int,
6632 # sufficient for getting the current code to work.
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5
6635 printf %s "checking for EXCEPTION_DISPOSITION support in include files... " >&6; }
6636 if test ${tcl_cv_eh_disposition+y}
6638 printf %s "(cached) " >&6
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6643 # define WIN32_LEAN_AND_MEAN
6644 # include <windows.h>
6645 # undef WIN32_LEAN_AND_MEAN
6651 EXCEPTION_DISPOSITION x;
6657 if ac_fn_c_try_compile "$LINENO"
6659 tcl_cv_eh_disposition=yes
6661 tcl_cv_eh_disposition=no
6663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5
6667 printf "%s\n" "$tcl_cv_eh_disposition" >&6; }
6668 if test "$tcl_cv_eh_disposition" = "no" ; then
6670 printf "%s\n" "#define EXCEPTION_DISPOSITION int" >>confdefs.h
6674 # Check to see if winnt.h defines CHAR, SHORT, and LONG
6675 # even if VOID has already been #defined. The win32api
6676 # used by mingw and cygwin is known to do this.
6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5
6679 printf %s "checking for winnt.h that ignores VOID define... " >&6; }
6680 if test ${tcl_cv_winnt_ignore_void+y}
6682 printf %s "(cached) " >&6
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6688 #define WIN32_LEAN_AND_MEAN
6689 #include <windows.h>
6690 #undef WIN32_LEAN_AND_MEAN
6704 if ac_fn_c_try_compile "$LINENO"
6706 tcl_cv_winnt_ignore_void=yes
6708 tcl_cv_winnt_ignore_void=no
6710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5
6714 printf "%s\n" "$tcl_cv_winnt_ignore_void" >&6; }
6715 if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
6717 printf "%s\n" "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h
6722 # See if the compiler supports casting to a union type.
6723 # This is used to stop gcc from printing a compiler
6724 # warning when initializing a union member.
6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5
6727 printf %s "checking for cast to union support... " >&6; }
6728 if test ${tcl_cv_cast_to_union+y}
6730 printf %s "(cached) " >&6
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6739 union foo { int i; double d; };
6740 union foo f = (union foo) (int) 0;
6746 if ac_fn_c_try_compile "$LINENO"
6748 tcl_cv_cast_to_union=yes
6750 tcl_cv_cast_to_union=no
6752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5
6756 printf "%s\n" "$tcl_cv_cast_to_union" >&6; }
6757 if test "$tcl_cv_cast_to_union" = "yes"; then
6759 printf "%s\n" "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
6763 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
6764 if test "x$ac_cv_header_stdbool_h" = xyes
6767 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
6786 # These must be called after we do the basic CFLAGS checks and
6787 # verify any possible 64-bit or similar switches are necessary
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
6790 printf %s "checking for required early compiler flags... " >&6; }
6793 if test ${tcl_cv_flag__isoc99_source+y}
6795 printf %s "(cached) " >&6
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6803 char *p = (char *)strtoll; char *q = (char *)strtoull;
6808 if ac_fn_c_try_compile "$LINENO"
6810 tcl_cv_flag__isoc99_source=no
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814 #define _ISOC99_SOURCE 1
6819 char *p = (char *)strtoll; char *q = (char *)strtoull;
6824 if ac_fn_c_try_compile "$LINENO"
6826 tcl_cv_flag__isoc99_source=yes
6828 tcl_cv_flag__isoc99_source=no
6830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6835 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
6837 printf "%s\n" "#define _ISOC99_SOURCE 1" >>confdefs.h
6839 tcl_flags="$tcl_flags _ISOC99_SOURCE"
6843 if test ${tcl_cv_flag__largefile64_source+y}
6845 printf %s "(cached) " >&6
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849 #include <sys/stat.h>
6853 struct stat64 buf; int i = stat64("/", &buf);
6858 if ac_fn_c_try_compile "$LINENO"
6860 tcl_cv_flag__largefile64_source=no
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864 #define _LARGEFILE64_SOURCE 1
6865 #include <sys/stat.h>
6869 struct stat64 buf; int i = stat64("/", &buf);
6874 if ac_fn_c_try_compile "$LINENO"
6876 tcl_cv_flag__largefile64_source=yes
6878 tcl_cv_flag__largefile64_source=no
6880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6885 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
6887 printf "%s\n" "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
6889 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
6893 if test ${tcl_cv_flag__largefile_source64+y}
6895 printf %s "(cached) " >&6
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 #include <sys/stat.h>
6903 char *p = (char *)open64;
6908 if ac_fn_c_try_compile "$LINENO"
6910 tcl_cv_flag__largefile_source64=no
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6914 #define _LARGEFILE_SOURCE64 1
6915 #include <sys/stat.h>
6919 char *p = (char *)open64;
6924 if ac_fn_c_try_compile "$LINENO"
6926 tcl_cv_flag__largefile_source64=yes
6928 tcl_cv_flag__largefile_source64=no
6930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6935 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
6937 printf "%s\n" "#define _LARGEFILE_SOURCE64 1" >>confdefs.h
6939 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
6942 if test "x${tcl_flags}" = "x" ; then
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6944 printf "%s\n" "none" >&6; }
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
6947 printf "%s\n" "${tcl_flags}" >&6; }
6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
6952 printf %s "checking for 64-bit integer type... " >&6; }
6953 if test ${tcl_cv_type_64bit+y}
6955 printf %s "(cached) " >&6
6958 tcl_cv_type_64bit=none
6959 # See if the compiler knows natively about __int64
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6966 __int64 value = (__int64) 0;
6971 if ac_fn_c_try_compile "$LINENO"
6973 tcl_type_64bit=__int64
6975 tcl_type_64bit="long long"
6977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6978 # See if we could use long anyway Note that we substitute in the
6979 # type that is our current guess for a 64-bit type inside this check
6980 # program, so it should be modified only carefully...
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6988 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
6994 if ac_fn_c_try_compile "$LINENO"
6996 tcl_cv_type_64bit=${tcl_type_64bit}
6998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7001 if test "${tcl_cv_type_64bit}" = none ; then
7003 printf "%s\n" "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7006 printf "%s\n" "yes" >&6; }
7007 elif test "${tcl_cv_type_64bit}" = "__int64" \
7008 -a "${TEA_PLATFORM}" = "windows" ; then
7009 # TEA specific: We actually want to use the default tcl.h checks in
7010 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
7012 printf "%s\n" "using Tcl header defaults" >&6; }
7015 printf "%s\n" "#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}" >>confdefs.h
7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
7018 printf "%s\n" "${tcl_cv_type_64bit}" >&6; }
7020 # Now check for auxiliary declarations
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
7022 printf %s "checking for struct dirent64... " >&6; }
7023 if test ${tcl_cv_struct_dirent64+y}
7025 printf %s "(cached) " >&6
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7030 #include <sys/types.h>
7040 if ac_fn_c_try_compile "$LINENO"
7042 tcl_cv_struct_dirent64=yes
7044 tcl_cv_struct_dirent64=no
7046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
7049 printf "%s\n" "$tcl_cv_struct_dirent64" >&6; }
7050 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
7052 printf "%s\n" "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DIR64" >&5
7057 printf %s "checking for DIR64... " >&6; }
7058 if test ${tcl_cv_DIR64+y}
7060 printf %s "(cached) " >&6
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065 #include <sys/types.h>
7070 struct dirent64 *p; DIR64 d = opendir64(".");
7071 p = readdir64(d); rewinddir64(d); closedir64(d);
7076 if ac_fn_c_try_compile "$LINENO"
7082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_DIR64" >&5
7085 printf "%s\n" "$tcl_cv_DIR64" >&6; }
7086 if test "x${tcl_cv_DIR64}" = "xyes" ; then
7088 printf "%s\n" "#define HAVE_DIR64 1" >>confdefs.h
7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
7093 printf %s "checking for struct stat64... " >&6; }
7094 if test ${tcl_cv_struct_stat64+y}
7096 printf %s "(cached) " >&6
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h. */
7101 #include <sys/stat.h>
7111 if ac_fn_c_try_compile "$LINENO"
7113 tcl_cv_struct_stat64=yes
7115 tcl_cv_struct_stat64=no
7117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
7120 printf "%s\n" "$tcl_cv_struct_stat64" >&6; }
7121 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
7123 printf "%s\n" "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
7127 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
7128 if test "x$ac_cv_func_open64" = xyes
7130 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
7133 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
7134 if test "x$ac_cv_func_lseek64" = xyes
7136 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
7141 printf %s "checking for off64_t... " >&6; }
7142 if test ${tcl_cv_type_off64_t+y}
7144 printf %s "(cached) " >&6
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7149 #include <sys/types.h>
7159 if ac_fn_c_try_compile "$LINENO"
7161 tcl_cv_type_off64_t=yes
7163 tcl_cv_type_off64_t=no
7165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7168 if test "x${tcl_cv_type_off64_t}" = "xyes" && \
7169 test "x${ac_cv_func_lseek64}" = "xyes" && \
7170 test "x${ac_cv_func_open64}" = "xyes" ; then
7172 printf "%s\n" "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7175 printf "%s\n" "yes" >&6; }
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 printf "%s\n" "no" >&6; }
7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
7186 printf %s "checking for build with symbols... " >&6; }
7187 # Check whether --enable-symbols was given.
7188 if test ${enable_symbols+y}
7190 enableval=$enable_symbols; tcl_ok=$enableval
7195 if test "$tcl_ok" = "no"; then
7196 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG"
7197 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 printf "%s\n" "no" >&6; }
7201 printf "%s\n" "#define TCL_CFG_OPTIMIZED 1" >>confdefs.h
7204 CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
7205 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
7206 if test "$tcl_ok" = "yes"; then
7207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
7208 printf "%s\n" "yes (standard debugging)" >&6; }
7214 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
7216 printf "%s\n" "#define TCL_MEM_DEBUG 1" >>confdefs.h
7220 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
7221 if test "$tcl_ok" = "all"; then
7222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
7223 printf "%s\n" "enabled symbols mem debugging" >&6; }
7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
7226 printf "%s\n" "enabled $tcl_ok debugging" >&6; }
7231 #--------------------------------------------------------------------
7232 # This macro generates a line to use when building a library. It
7233 # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
7234 # and TEA_LOAD_TCLCONFIG macros above.
7235 #--------------------------------------------------------------------
7239 #--------------------------------------------------------------------
7240 # Determine the name of the tclsh and/or wish executables in the
7241 # Tcl and Tk build directories or the location they were installed
7242 # into. These paths are used to support running test cases only,
7243 # the Makefile should not be making use of these paths to generate
7244 # a pkgIndex.tcl file or anything else at extension build time.
7245 #--------------------------------------------------------------------
7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
7249 printf %s "checking for tclsh... " >&6; }
7250 if test -f "${TCL_BIN_DIR}/Makefile" ; then
7251 # tclConfig.sh is in Tcl build directory
7252 if test "${TEA_PLATFORM}" = "windows"; then
7253 if test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}" ; then
7254 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
7255 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}" ; then
7256 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}"
7257 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}" ; then
7258 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}"
7259 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}" ; then
7260 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}"
7263 TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
7266 # tclConfig.sh is in install location
7267 if test "${TEA_PLATFORM}" = "windows"; then
7268 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
7270 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
7272 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
7273 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \
7274 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`"
7276 if test -f "$i/${TCLSH_PROG}" ; then
7277 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
7281 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
7284 printf "%s\n" "${TCLSH_PROG}" >&6; }
7289 #--------------------------------------------------------------------
7290 # Substitute variables needed for .tm install.
7291 #--------------------------------------------------------------------
7297 #--------------------------------------------------------------------
7298 # Finally, substitute all of the various values into the Makefile.
7299 # You may alternatively have a special pkgIndex.tcl.in or other files
7300 # which require substituting the AC variables in. Include these here.
7301 #--------------------------------------------------------------------
7303 ac_config_files="$ac_config_files Makefile pkgIndex.tcl"
7305 cat >confcache <<\_ACEOF
7306 # This file is a shell script that caches the results of configure
7307 # tests run on this system so they can be shared between configure
7308 # scripts and configure runs, see configure's option --config-cache.
7309 # It is not useful on other systems. If it contains results you don't
7310 # want to keep, you may remove or edit it.
7312 # config.status only pays attention to the cache file if you give it
7313 # the --recheck option to rerun configure.
7315 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7316 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7321 # The following way of writing the cache mishandles newlines in values,
7322 # but we know of no workaround that is simple, portable, and efficient.
7323 # So, we kill variables containing newlines.
7324 # Ultrix sh set writes to stderr and can't be redirected directly,
7325 # and sets the high bit in the cache file unless we assign to the vars.
7327 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7328 eval ac_val=\$$ac_var
7332 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7333 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7336 _ | IFS | as_nl) ;; #(
7337 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7338 *) { eval $ac_var=; unset $ac_var;} ;;
7344 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7345 *${as_nl}ac_space=\ *)
7346 # `set' does not quote correctly, so add quotes: double-quote
7347 # substitution turns \\\\ into \\, and sed turns \\ into \.
7350 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7353 # `set' quotes correctly as required by POSIX, so do not add quotes.
7354 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7363 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7365 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7367 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7368 if test -w "$cache_file"; then
7369 if test "x$cache_file" != "x/dev/null"; then
7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7371 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
7372 if test ! -f "$cache_file" || test -h "$cache_file"; then
7373 cat confcache >"$cache_file"
7375 case $cache_file in #(
7377 mv -f confcache "$cache_file"$$ &&
7378 mv -f "$cache_file"$$ "$cache_file" ;; #(
7380 mv -f confcache "$cache_file" ;;
7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7386 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
7391 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7392 # Let make expand exec_prefix.
7393 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7395 # Transform confdefs.h into DEFS.
7396 # Protect against shell expansion while executing Makefile rules.
7397 # Protect against Makefile macro expansion.
7399 # If the first sed substitution is executed (which looks for macros that
7400 # take arguments), then branch to the quote section. Otherwise,
7401 # look for a macro that doesn't take arguments.
7411 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7413 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7417 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7430 DEFS=`sed -n "$ac_script" confdefs.h`
7436 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7437 # 1. Remove the extension, and $U if already installed.
7438 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7439 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
7440 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7441 # will be set to the directory where LIBOBJS objects are built.
7442 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7443 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7447 LTLIBOBJS=$ac_ltlibobjs
7450 CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
7452 : "${CONFIG_STATUS=./config.status}"
7454 ac_clean_files_save=$ac_clean_files
7455 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7457 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
7459 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7461 # Generated by $as_me.
7462 # Run this file to recreate the current configuration.
7463 # Compiler output produced by configure, useful for debugging
7464 # configure, is in config.log if it exists.
7470 SHELL=\${CONFIG_SHELL-$SHELL}
7473 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7474 ## -------------------- ##
7475 ## M4sh Initialization. ##
7476 ## -------------------- ##
7478 # Be more Bourne compatible
7479 DUALCASE=1; export DUALCASE # for MKS sh
7481 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
7485 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7486 # is contrary to our usage. Disable this feature.
7487 alias -g '${1+"$@"}'='"$@"'
7488 setopt NO_GLOB_SUBST
7490 case `(set -o) 2>/dev/null` in #(
7500 # Reset variables that may have inherited troublesome values from
7503 # IFS needs to be set, to space, tab, and newline, in precisely that order.
7504 # (If _AS_PATH_WALK were called with IFS unset, it would have the
7505 # side effect of setting IFS to empty, thus disabling word splitting.)
7506 # Quoting is to prevent editors from complaining about space-tab.
7516 # Ensure predictable behavior from utilities with locale-dependent output.
7522 # We cannot yet rely on "unset" to work, but we need these variables
7523 # to be unset--not just set to an empty or harmless value--now, to
7524 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
7525 # also avoids known problems related to "unset" and subshell syntax
7526 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
7527 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
7528 do eval test \${$as_var+y} \
7529 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7532 # Ensure that fds 0, 1, and 2 are open.
7533 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
7534 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
7535 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7537 # The user is always right.
7538 if ${PATH_SEPARATOR+false} :; then
7540 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7541 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7547 # Find who we are. Look in the path if we contain no directory separator.
7550 *[\\/]* ) as_myself=$0 ;;
7551 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 case $as_dir in #(((
7558 *) as_dir=$as_dir/ ;;
7560 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
7566 # We did not find ourselves, most probably we were run as `sh COMMAND'
7567 # in which case we are not to be found in the path.
7568 if test "x$as_myself" = x; then
7571 if test ! -f "$as_myself"; then
7572 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7578 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7579 # ----------------------------------------
7580 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7581 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7582 # script with STATUS, using 1 if that was 0.
7585 as_status=$1; test $as_status -eq 0 && as_status=1
7587 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7590 printf "%s\n" "$as_me: error: $2" >&2
7591 as_fn_exit $as_status
7596 # as_fn_set_status STATUS
7597 # -----------------------
7598 # Set $? to STATUS, without forking.
7602 } # as_fn_set_status
7606 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7616 # Portably unset VAR.
7619 { eval $1=; unset $1;}
7621 as_unset=as_fn_unset
7623 # as_fn_append VAR VALUE
7624 # ----------------------
7625 # Append the text in VALUE to the end of the definition contained in VAR. Take
7626 # advantage of any shell optimizations that allow amortized linear growth over
7627 # repeated appends, instead of the typical quadratic growth present in naive
7629 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7631 eval 'as_fn_append ()
7642 # as_fn_arith ARG...
7643 # ------------------
7644 # Perform arithmetic evaluation on the ARGs, and store the result in the
7645 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7646 # must be portable across $(()) and expr.
7647 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7649 eval 'as_fn_arith ()
7656 as_val=`expr "$@" || test $? -eq 1`
7661 if expr a : '\(a\)' >/dev/null 2>&1 &&
7662 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7668 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7669 as_basename=basename
7674 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7680 as_me=`$as_basename -- "$0" ||
7681 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7682 X"$0" : 'X\(//\)$' \| \
7683 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7684 printf "%s\n" X/"$0" |
7685 sed '/^.*\/\([^/][^/]*\)\/*$/{
7699 # Avoid depending upon Character Ranges.
7700 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7701 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7702 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7703 as_cr_digits='0123456789'
7704 as_cr_alnum=$as_cr_Letters$as_cr_digits
7707 # Determine whether it's possible to make 'echo' print without a newline.
7708 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7709 # for compatibility with existing Makefiles.
7710 ECHO_C= ECHO_N= ECHO_T=
7711 case `echo -n x` in #(((((
7713 case `echo 'xy\c'` in
7714 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7716 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7723 # For backward compatibility with old third-party macros, we provide
7724 # the shell variables $as_echo and $as_echo_n. New code should use
7725 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7726 as_echo='printf %s\n'
7727 as_echo_n='printf %s'
7729 rm -f conf$$ conf$$.exe conf$$.file
7730 if test -d conf$$.dir; then
7731 rm -f conf$$.dir/conf$$.file
7734 mkdir conf$$.dir 2>/dev/null
7736 if (echo >conf$$.file) 2>/dev/null; then
7737 if ln -s conf$$.file conf$$ 2>/dev/null; then
7739 # ... but there are two gotchas:
7740 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7741 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7742 # In both cases, we have to default to `cp -pR'.
7743 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7745 elif ln conf$$.file conf$$ 2>/dev/null; then
7753 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7754 rmdir conf$$.dir 2>/dev/null
7759 # Create "$as_dir" as a directory, including parents if necessary.
7764 -*) as_dir=./$as_dir;;
7766 test -d "$as_dir" || eval $as_mkdir_p || {
7770 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7771 *) as_qdir=$as_dir;;
7773 as_dirs="'$as_qdir' $as_dirs"
7774 as_dir=`$as_dirname -- "$as_dir" ||
7775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7776 X"$as_dir" : 'X\(//\)[^/]' \| \
7777 X"$as_dir" : 'X\(//\)$' \| \
7778 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7779 printf "%s\n" X"$as_dir" |
7780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7797 test -d "$as_dir" && break
7799 test -z "$as_dirs" || eval "mkdir $as_dirs"
7800 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7804 if mkdir -p . 2>/dev/null; then
7805 as_mkdir_p='mkdir -p "$as_dir"'
7807 test -d ./-p && rmdir ./-p
7812 # as_fn_executable_p FILE
7813 # -----------------------
7814 # Test if FILE is an executable regular file.
7815 as_fn_executable_p ()
7817 test -f "$1" && test -x "$1"
7818 } # as_fn_executable_p
7820 as_executable_p=as_fn_executable_p
7822 # Sed expression to map a string onto a valid CPP name.
7823 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7825 # Sed expression to map a string onto a valid variable name.
7826 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7830 ## ----------------------------------- ##
7831 ## Main body of $CONFIG_STATUS script. ##
7832 ## ----------------------------------- ##
7834 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7837 # Save the log message, to keep $0 and so on meaningful, and to
7838 # report actual input values of CONFIG_FILES etc. instead of their
7839 # values after options handling.
7841 This file was extended by tdbcsqlite3 $as_me 1.1.3, which was
7842 generated by GNU Autoconf 2.70. Invocation command line was
7844 CONFIG_FILES = $CONFIG_FILES
7845 CONFIG_HEADERS = $CONFIG_HEADERS
7846 CONFIG_LINKS = $CONFIG_LINKS
7847 CONFIG_COMMANDS = $CONFIG_COMMANDS
7850 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7855 case $ac_config_files in *"
7856 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7862 # Files that config.status was made for.
7863 config_files="$ac_config_files"
7867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7869 \`$as_me' instantiates files and other configuration actions
7870 from templates according to the current configuration. Unless the files
7871 and actions are specified as TAGs, all are instantiated by default.
7873 Usage: $0 [OPTION]... [TAG]...
7875 -h, --help print this help, then exit
7876 -V, --version print version number and configuration settings, then exit
7877 --config print configuration, then exit
7878 -q, --quiet, --silent
7879 do not print progress messages
7880 -d, --debug don't remove temporary files
7881 --recheck update $as_me by reconfiguring in the same conditions
7882 --file=FILE[:TEMPLATE]
7883 instantiate the configuration file FILE
7885 Configuration files:
7888 Report bugs to the package provider."
7891 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7892 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7894 ac_cs_config='$ac_cs_config_escaped'
7896 tdbcsqlite3 config.status 1.1.3
7897 configured by $0, generated by GNU Autoconf 2.70,
7898 with options \\"\$ac_cs_config\\"
7900 Copyright (C) 2020 Free Software Foundation, Inc.
7901 This config.status script is free software; the Free Software Foundation
7902 gives unlimited permission to copy, distribute and modify it."
7906 test -n "\$AWK" || AWK=awk
7909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7910 # The default lists apply if the user does not specify any file.
7916 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7917 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7921 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7933 # Handling of the options.
7934 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7936 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7937 printf "%s\n" "$ac_cs_version"; exit ;;
7938 --config | --confi | --conf | --con | --co | --c )
7939 printf "%s\n" "$ac_cs_config"; exit ;;
7940 --debug | --debu | --deb | --de | --d | -d )
7942 --file | --fil | --fi | --f )
7945 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7946 '') as_fn_error $? "missing file argument" ;;
7948 as_fn_append CONFIG_FILES " '$ac_optarg'"
7949 ac_need_defaults=false;;
7950 --he | --h | --help | --hel | -h )
7951 printf "%s\n" "$ac_cs_usage"; exit ;;
7952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7953 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7957 -*) as_fn_error $? "unrecognized option: \`$1'
7958 Try \`$0 --help' for more information." ;;
7960 *) as_fn_append ac_config_targets " $1"
7961 ac_need_defaults=false ;;
7967 ac_configure_extra_args=
7969 if $ac_cs_silent; then
7971 ac_configure_extra_args="$ac_configure_extra_args --silent"
7975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7976 if \$ac_cs_recheck; then
7977 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7979 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7980 CONFIG_SHELL='$SHELL'
7986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7991 ## Running $as_me. ##
7993 printf "%s\n" "$ac_log"
7997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8002 # Handling of arguments.
8003 for ac_config_target in $ac_config_targets
8005 case $ac_config_target in
8006 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8007 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
8009 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8014 # If the user did not use the arguments to specify the items to instantiate,
8015 # then the envvar interface is used. Set only those that are not.
8016 # We use the long form for the default assignment because of an extremely
8017 # bizarre bug on SunOS 4.1.3.
8018 if $ac_need_defaults; then
8019 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8022 # Have a temporary directory for convenience. Make it in the build tree
8023 # simply because there is no reason against having it here, and in addition,
8024 # creating and moving files from /tmp can sometimes cause problems.
8025 # Hook for its removal unless debugging.
8026 # Note that there is a small window in which the directory will not be cleaned:
8027 # after its creation but before its name has been assigned to `$tmp'.
8031 trap 'exit_status=$?
8033 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8035 trap 'as_fn_exit 1' 1 2 13 15
8037 # Create a (secure) tmp directory for tmp files.
8040 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8044 tmp=./conf$$-$RANDOM
8045 (umask 077 && mkdir "$tmp")
8046 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8049 # Set up the scripts for CONFIG_FILES section.
8050 # No need to generate them if there are no CONFIG_FILES.
8051 # This happens for instance with `./config.status config.h'.
8052 if test -n "$CONFIG_FILES"; then
8055 ac_cr=`echo X | tr X '\015'`
8056 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8057 # But we know of no other shell where ac_cr would be empty at this
8058 # point, so we can use a bashism as a fallback.
8059 if test "x$ac_cr" = x; then
8060 eval ac_cr=\$\'\\r\'
8062 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8063 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8069 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8074 echo "cat >conf$$subs.awk <<_ACEOF" &&
8075 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8078 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8079 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8081 for ac_last_try in false false false false false :; do
8082 . ./conf$$subs.sh ||
8083 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8085 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8086 if test $ac_delim_n = $ac_delim_num; then
8088 elif $ac_last_try; then
8089 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8091 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8097 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8101 s/^/S["/; s/!.*/"]=/
8111 s/\(.\{148\}\)..*/\1/
8113 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8125 s/\(.\{148\}\)..*/\1/
8127 s/["\\]/\\&/g; s/^/"/; s/$/"/
8131 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8136 ' <conf$$subs.awk | sed '
8141 ' >>$CONFIG_STATUS || ac_write_fail=1
8142 rm -f conf$$subs.awk
8143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8145 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8146 for (key in S) S_is_set[key] = 1
8152 nfields = split(line, field, "@")
8154 len = length(field[1])
8155 for (i = 2; i < nfields; i++) {
8157 keylen = length(key)
8158 if (S_is_set[key]) {
8160 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8161 len += length(value) + length(field[++i])
8172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8173 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8174 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8177 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8178 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8181 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8182 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8183 # trailing colons and then remove the whole line if VPATH becomes empty
8184 # (actually we leave an empty line to preserve line numbers).
8185 if test "x$srcdir" = x.; then
8186 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8205 fi # test -n "$CONFIG_FILES"
8208 eval set X " :F $CONFIG_FILES "
8213 :[FHLC]) ac_mode=$ac_tag; continue;;
8215 case $ac_mode$ac_tag in
8217 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8218 :[FH]-) ac_tag=-:-;;
8219 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8236 -) ac_f="$ac_tmp/stdin";;
8237 *) # Look for the file first in the build tree, then in the source tree
8238 # (if the path is not absolute). The absolute path cannot be DOS-style,
8239 # because $ac_f cannot contain `:'.
8243 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8245 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8247 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8248 as_fn_append ac_file_inputs " '$ac_f'"
8251 # Let's still pretend it is `configure' which instantiates (i.e., don't
8252 # use $as_me), people would be surprised to read:
8253 # /* config.h. Generated by config.status. */
8254 configure_input='Generated from '`
8255 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8257 if test x"$ac_file" != x-; then
8258 configure_input="$ac_file. $configure_input"
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8260 printf "%s\n" "$as_me: creating $ac_file" >&6;}
8262 # Neutralize special characters interpreted by sed in replacement strings.
8263 case $configure_input in #(
8264 *\&* | *\|* | *\\* )
8265 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
8266 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8267 *) ac_sed_conf_input=$configure_input;;
8271 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8277 ac_dir=`$as_dirname -- "$ac_file" ||
8278 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8279 X"$ac_file" : 'X\(//\)[^/]' \| \
8280 X"$ac_file" : 'X\(//\)$' \| \
8281 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8282 printf "%s\n" X"$ac_file" |
8283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8300 as_dir="$ac_dir"; as_fn_mkdir_p
8304 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8306 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
8307 # A ".." for each directory in $ac_dir_suffix.
8308 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8309 case $ac_top_builddir_sub in
8310 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8311 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8314 ac_abs_top_builddir=$ac_pwd
8315 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8316 # for backward compatibility:
8317 ac_top_builddir=$ac_top_build_prefix
8320 .) # We are building in place.
8322 ac_top_srcdir=$ac_top_builddir_sub
8323 ac_abs_top_srcdir=$ac_pwd ;;
8324 [\\/]* | ?:[\\/]* ) # Absolute name.
8325 ac_srcdir=$srcdir$ac_dir_suffix;
8326 ac_top_srcdir=$srcdir
8327 ac_abs_top_srcdir=$srcdir ;;
8329 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8330 ac_top_srcdir=$ac_top_build_prefix$srcdir
8331 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8333 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8345 # If the template does not know about datarootdir, expand it.
8346 # FIXME: This hack should be removed a few years after 2.60.
8347 ac_datarootdir_hack=; ac_datarootdir_seen=
8358 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8359 *datarootdir*) ac_datarootdir_seen=yes;;
8360 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8362 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8365 ac_datarootdir_hack='
8366 s&@datadir@&$datadir&g
8367 s&@docdir@&$docdir&g
8368 s&@infodir@&$infodir&g
8369 s&@localedir@&$localedir&g
8370 s&@mandir@&$mandir&g
8371 s&\\\${datarootdir}&$datarootdir&g' ;;
8375 # Neutralize VPATH when `$srcdir' = `.'.
8376 # Shell code in configure.ac might set extrasub.
8377 # FIXME: do we really want to maintain this feature?
8378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8379 ac_sed_extra="$ac_vpsub
8382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8384 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8385 s|@configure_input@|$ac_sed_conf_input|;t t
8386 s&@top_builddir@&$ac_top_builddir_sub&;t t
8387 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8388 s&@srcdir@&$ac_srcdir&;t t
8389 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8390 s&@top_srcdir@&$ac_top_srcdir&;t t
8391 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8392 s&@builddir@&$ac_builddir&;t t
8393 s&@abs_builddir@&$ac_abs_builddir&;t t
8394 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8395 $ac_datarootdir_hack
8397 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8398 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8400 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8401 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8402 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8403 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8405 which seems to be undefined. Please make sure it is defined" >&5
8406 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8407 which seems to be undefined. Please make sure it is defined" >&2;}
8409 rm -f "$ac_tmp/stdin"
8411 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8412 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8426 ac_clean_files=$ac_clean_files_save
8428 test $ac_write_fail = 0 ||
8429 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8432 # configure is writing to config.log, and then calls config.status.
8433 # config.status does its own redirection, appending to config.log.
8434 # Unfortunately, on DOS this fails, as config.log is still kept open
8435 # by configure, so config.status won't be able to write to it; its
8436 # output is simply discarded. So we exec the FD to /dev/null,
8437 # effectively closing config.log, so it can be properly (re)opened and
8438 # appended to by config.status. When coming back to configure, we
8439 # need to make the FD available again.
8440 if test "$no_create" != yes; then
8442 ac_config_status_args=
8443 test "$silent" = yes &&
8444 ac_config_status_args="$ac_config_status_args --quiet"
8446 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8448 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8449 # would make configure fail if this is the last instruction.
8450 $ac_cs_success || as_fn_exit 1
8452 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8454 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}