Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for itk 4.2.7.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null
187 then :
188 as_have_required=yes
189 else case e in #(
190 e) as_have_required=no ;;
191 esac
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else case e in #(
197 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else case e in #(
231 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi ;;
236 esac
237 fi
238
239
240 if test "x$CONFIG_SHELL" != x
241 then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255 esac
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed 'exec'.
259 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
261 fi
262
263 if test x$as_have_required = xno
264 then :
265 printf "%s\n" "$0: This script requires a shell more modern than all"
266 printf "%s\n" "$0: the shells that I found on your system."
267 if test ${ZSH_VERSION+y} ; then
268 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 else
271 printf "%s\n" "$0: Please tell [email protected] about your system,
272 $0: including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
275 fi
276 exit 1
277 fi ;;
278 esac
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317
318 # as_fn_mkdir_p
319 # -------------
320 # Create "$as_dir" as a directory, including parents if necessary.
321 as_fn_mkdir_p ()
322 {
323
324 case $as_dir in #(
325 -*) as_dir=./$as_dir;;
326 esac
327 test -d "$as_dir" || eval $as_mkdir_p || {
328 as_dirs=
329 while :; do
330 case $as_dir in #(
331 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332 *) as_qdir=$as_dir;;
333 esac
334 as_dirs="'$as_qdir' $as_dirs"
335 as_dir=`$as_dirname -- "$as_dir" ||
336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
337 X"$as_dir" : 'X\(//\)[^/]' \| \
338 X"$as_dir" : 'X\(//\)$' \| \
339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
340 printf "%s\n" X"$as_dir" |
341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)[^/].*/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\).*/{
354 s//\1/
355 q
356 }
357 s/.*/./; q'`
358 test -d "$as_dir" && break
359 done
360 test -z "$as_dirs" || eval "mkdir $as_dirs"
361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
362
363
364 } # as_fn_mkdir_p
365
366 # as_fn_executable_p FILE
367 # -----------------------
368 # Test if FILE is an executable regular file.
369 as_fn_executable_p ()
370 {
371 test -f "$1" && test -x "$1"
372 } # as_fn_executable_p
373 # as_fn_append VAR VALUE
374 # ----------------------
375 # Append the text in VALUE to the end of the definition contained in VAR. Take
376 # advantage of any shell optimizations that allow amortized linear growth over
377 # repeated appends, instead of the typical quadratic growth present in naive
378 # implementations.
379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
380 then :
381 eval 'as_fn_append ()
382 {
383 eval $1+=\$2
384 }'
385 else case e in #(
386 e) as_fn_append ()
387 {
388 eval $1=\$$1\$2
389 } ;;
390 esac
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
399 then :
400 eval 'as_fn_arith ()
401 {
402 as_val=$(( $* ))
403 }'
404 else case e in #(
405 e) as_fn_arith ()
406 {
407 as_val=`expr "$@" || test $? -eq 1`
408 } ;;
409 esac
410 fi # as_fn_arith
411
412
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
419 {
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424 fi
425 printf "%s\n" "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
428
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432 else
433 as_expr=false
434 fi
435
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
440 fi
441
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444 else
445 as_dirname=false
446 fi
447
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 printf "%s\n" X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 t clear
486 :clear
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512
513 # Determine whether it's possible to make 'echo' print without a newline.
514 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
515 # for compatibility with existing Makefiles.
516 ECHO_C= ECHO_N= ECHO_T=
517 case `echo -n x` in #(((((
518 -n*)
519 case `echo 'xy\c'` in
520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
521 xy) ECHO_C='\c';;
522 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
523 ECHO_T=' ';;
524 esac;;
525 *)
526 ECHO_N='-n';;
527 esac
528
529 # For backward compatibility with old third-party macros, we provide
530 # the shell variables $as_echo and $as_echo_n. New code should use
531 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
532 as_echo='printf %s\n'
533 as_echo_n='printf %s'
534
535 rm -f conf$$ conf$$.exe conf$$.file
536 if test -d conf$$.dir; then
537 rm -f conf$$.dir/conf$$.file
538 else
539 rm -f conf$$.dir
540 mkdir conf$$.dir 2>/dev/null
541 fi
542 if (echo >conf$$.file) 2>/dev/null; then
543 if ln -s conf$$.file conf$$ 2>/dev/null; then
544 as_ln_s='ln -s'
545 # ... but there are two gotchas:
546 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
547 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
548 # In both cases, we have to default to 'cp -pR'.
549 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
550 as_ln_s='cp -pR'
551 elif ln conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s=ln
553 else
554 as_ln_s='cp -pR'
555 fi
556 else
557 as_ln_s='cp -pR'
558 fi
559 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
560 rmdir conf$$.dir 2>/dev/null
561
562 if mkdir -p . 2>/dev/null; then
563 as_mkdir_p='mkdir -p "$as_dir"'
564 else
565 test -d ./-p && rmdir ./-p
566 as_mkdir_p=false
567 fi
568
569 as_test_x='test -x'
570 as_executable_p=as_fn_executable_p
571
572 # Sed expression to map a string onto a valid CPP name.
573 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
574 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
575
576 # Sed expression to map a string onto a valid variable name.
577 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
579
580
581 test -n "$DJDIR" || exec 7<&0 </dev/null
582 exec 6>&1
583
584 # Name of the host.
585 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
586 # so uname gets run too.
587 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588
589 #
590 # Initializations.
591 #
592 ac_default_prefix=/usr/local
593 ac_clean_files=
594 ac_config_libobj_dir=.
595 LIBOBJS=
596 cross_compiling=no
597 subdirs=
598 MFLAGS=
599 MAKEFLAGS=
600
601 # Identity of this package.
602 PACKAGE_NAME='itk'
603 PACKAGE_TARNAME='itk'
604 PACKAGE_VERSION='4.2.7'
605 PACKAGE_STRING='itk 4.2.7'
606 PACKAGE_BUGREPORT=''
607 PACKAGE_URL=''
608
609 # Factoring default headers for most tests.
610 ac_includes_default="\
611 #include <stddef.h>
612 #ifdef HAVE_STDIO_H
613 # include <stdio.h>
614 #endif
615 #ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 #endif
618 #ifdef HAVE_STRING_H
619 # include <string.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_SYS_TYPES_H
631 # include <sys/types.h>
632 #endif
633 #ifdef HAVE_SYS_STAT_H
634 # include <sys/stat.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_header_c_list=
641 ac_subst_vars='LTLIBOBJS
642 itk_STUB_LIB_FILE
643 itk_LIB_FILE
644 itk_SRC_DIR
645 ITCL_VERSION
646 PATCHLEVEL
647 MINOR_VERSION
648 MAJOR_VERSION
649 itk_STUB_LIB_PATH
650 itk_BUILD_STUB_LIB_PATH
651 itk_STUB_LIB_SPEC
652 itk_BUILD_STUB_LIB_SPEC
653 itk_LIB_SPEC
654 itk_BUILD_LIB_SPEC
655 WISH_PROG
656 TCLSH_PROG
657 VC_MANIFEST_EMBED_EXE
658 VC_MANIFEST_EMBED_DLL
659 RANLIB_STUB
660 PKG_STUB_LIB_FILE
661 MAKE_STUB_LIB
662 MAKE_STATIC_LIB
663 MAKE_SHARED_LIB
664 MAKE_LIB
665 LDFLAGS_DEFAULT
666 CFLAGS_DEFAULT
667 LD_LIBRARY_PATH_VAR
668 SHLIB_CFLAGS
669 SHLIB_LD_LIBS
670 SHLIB_LD
671 STLIB_LD
672 LDFLAGS_OPTIMIZE
673 LDFLAGS_DEBUG
674 CFLAGS_WARNING
675 CFLAGS_OPTIMIZE
676 CFLAGS_DEBUG
677 LIBOBJS
678 RC
679 AR
680 STUBS_BUILD
681 SHARED_BUILD
682 XMKMF
683 TK_INCLUDES
684 TCL_TOP_DIR_NATIVE
685 TCL_INCLUDES
686 PKG_OBJECTS
687 PKG_SOURCES
688 RANLIB
689 SET_MAKE
690 CPP
691 itcl_STUB_LIB_PATH
692 itcl_STUB_LIB_SPEC
693 itcl_STUB_LIB_FILE
694 itcl_LIB_SPEC
695 itcl_LIB_FILE
696 itcl_SRC_DIR
697 itcl_BIN_DIR
698 itcl_VERSION
699 TK_XINCLUDES
700 TK_LIBS
701 TK_STUB_LIB_SPEC
702 TK_STUB_LIB_FLAG
703 TK_STUB_LIB_FILE
704 TK_LIB_SPEC
705 TK_LIB_FLAG
706 TK_LIB_FILE
707 TK_SRC_DIR
708 TK_BIN_DIR
709 TK_VERSION
710 TCL_SHLIB_LD_LIBS
711 TCL_LD_FLAGS
712 TCL_EXTRA_CFLAGS
713 TCL_DEFS
714 TCL_LIBS
715 CLEANFILES
716 OBJEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
721 CC
722 TCL_STUB_LIB_SPEC
723 TCL_STUB_LIB_FLAG
724 TCL_STUB_LIB_FILE
725 TCL_LIB_SPEC
726 TCL_LIB_FLAG
727 TCL_LIB_FILE
728 TCL_SRC_DIR
729 TCL_BIN_DIR
730 TCL_PATCH_LEVEL
731 TCL_VERSION
732 CONFIG_CLEAN_FILES
733 LN_S
734 INSTALL_LIBRARY
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 INSTALL_DATA
738 INSTALL_DATA_DIR
739 INSTALL
740 PKG_CFLAGS
741 PKG_LIBS
742 PKG_INCLUDES
743 PKG_HEADERS
744 PKG_TCL_SOURCES
745 PKG_STUB_OBJECTS
746 PKG_STUB_SOURCES
747 PKG_LIB_FILE9
748 PKG_LIB_FILE8
749 PKG_LIB_FILE
750 EXEEXT
751 CYGPATH
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 runstatedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 with_tcl
795 with_tcl8
796 with_tk
797 with_itcl
798 with_tclinclude
799 with_tkinclude
800 with_x
801 enable_shared
802 enable_stubs
803 enable_64bit
804 enable_64bit_vis
805 enable_rpath
806 enable_symbols
807 '
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 CPP
817 XMKMF'
818
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 ac_unrecognized_opts=
824 ac_unrecognized_sep=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 runstatedir='${localstatedir}/run'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
910 -datadir | --datadir | --datadi | --datad)
911 ac_prev=datadir ;;
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
914
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: '$ac_useropt'"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=no ;;
937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
947
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: '$ac_useropt'"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=\$ac_optarg ;;
963
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
972
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
976
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
983
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
988
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
994
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1001
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1006
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1011
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1018
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1023
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1030
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1035
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1039
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1042 no_create=yes ;;
1043
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1047
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1056
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1061
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1068
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1075
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1092
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1097
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1102
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1106
1107 -runstatedir | --runstatedir | --runstatedi | --runstated \
1108 | --runstate | --runstat | --runsta | --runst | --runs \
1109 | --run | --ru | --r)
1110 ac_prev=runstatedir ;;
1111 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1112 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1113 | --run=* | --ru=* | --r=*)
1114 runstatedir=$ac_optarg ;;
1115
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
1120 sbindir=$ac_optarg ;;
1121
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
1131 sharedstatedir=$ac_optarg ;;
1132
1133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
1136 site=$ac_optarg ;;
1137
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1142
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1149
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1154
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1157
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1160
1161 -with-* | --with-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: '$ac_useropt'"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1169 *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=\$ac_optarg ;;
1176
1177 -without-* | --without-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: '$ac_useropt'"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=no ;;
1192
1193 --x)
1194 # Obsolete; use --with-x.
1195 with_x=yes ;;
1196
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1203
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1210
1211 -*) as_fn_error $? "unrecognized option: '$ac_option'
1212 Try '$0 --help' for more information"
1213 ;;
1214
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1221 esac
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1224
1225 *)
1226 # FIXME: should be removed in autoconf 3.0.
1227 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231 ;;
1232
1233 esac
1234 done
1235
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 as_fn_error $? "missing argument to $ac_option"
1239 fi
1240
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
1244 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 esac
1247 fi
1248
1249 # Check all directory arguments for consistency.
1250 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir runstatedir
1254 do
1255 eval ac_val=\$$ac_var
1256 # Remove trailing slashes.
1257 case $ac_val in
1258 */ )
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1261 esac
1262 # Be sure to have absolute directory names.
1263 case $ac_val in
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266 esac
1267 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268 done
1269
1270 # There might be people who depend on the old broken behavior: '$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1276
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 elif test "x$build_alias" != "x$host_alias"; then
1282 cross_compiling=yes
1283 fi
1284 fi
1285
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289 test "$silent" = yes && exec 6>/dev/null
1290
1291
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error $? "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error $? "pwd does not report name of working directory"
1298
1299
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 printf "%s\n" X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\).*/{
1323 s//\1/
1324 q
1325 }
1326 s/.*/./; q'`
1327 srcdir=$ac_confdir
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 srcdir=..
1330 fi
1331 else
1332 ac_srcdir_defaulted=no
1333 fi
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337 fi
1338 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1339 ac_abs_confdir=`(
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341 pwd)`
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 srcdir=.
1345 fi
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1349 case $srcdir in
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 esac
1352 for ac_var in $ac_precious_vars; do
1353 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_env_${ac_var}_value=\$${ac_var}
1355 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 done
1358
1359 #
1360 # Report the --help message.
1361 #
1362 if test "$ac_init_help" = "long"; then
1363 # Omit some internal or obsolete options to make the list less imposing.
1364 # This message is too long to be a string in the A/UX 3.1 sh.
1365 cat <<_ACEOF
1366 'configure' configures itk 4.2.7 to adapt to many kinds of systems.
1367
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1369
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE. See below for descriptions of some of the useful variables.
1372
1373 Defaults for the options are specified in brackets.
1374
1375 Configuration:
1376 -h, --help display this help and exit
1377 --help=short display options specific to this package
1378 --help=recursive display the short help of all the included packages
1379 -V, --version display version information and exit
1380 -q, --quiet, --silent do not print 'checking ...' messages
1381 --cache-file=FILE cache test results in FILE [disabled]
1382 -C, --config-cache alias for '--cache-file=config.cache'
1383 -n, --no-create do not create output files
1384 --srcdir=DIR find the sources in DIR [configure dir or '..']
1385
1386 Installation directories:
1387 --prefix=PREFIX install architecture-independent files in PREFIX
1388 [$ac_default_prefix]
1389 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1390 [PREFIX]
1391
1392 By default, 'make install' will install all the files in
1393 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1394 an installation prefix other than '$ac_default_prefix' using '--prefix',
1395 for instance '--prefix=\$HOME'.
1396
1397 For better control, use the options below.
1398
1399 Fine tuning of the installation directories:
1400 --bindir=DIR user executables [EPREFIX/bin]
1401 --sbindir=DIR system admin executables [EPREFIX/sbin]
1402 --libexecdir=DIR program executables [EPREFIX/libexec]
1403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1405 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1406 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/itk]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
1420 _ACEOF
1421
1422 cat <<\_ACEOF
1423
1424 X features:
1425 --x-includes=DIR X include files are in DIR
1426 --x-libraries=DIR X library files are in DIR
1427 _ACEOF
1428 fi
1429
1430 if test -n "$ac_init_help"; then
1431 case $ac_init_help in
1432 short | recursive ) echo "Configuration of itk 4.2.7:";;
1433 esac
1434 cat <<\_ACEOF
1435
1436 Optional Features:
1437 --disable-option-checking ignore unrecognized --enable/--with options
1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1440 --enable-shared build and link with shared libraries (default: on)
1441 --enable-stubs build and link with stub libraries. Always true for
1442 shared builds (default: on)
1443 --enable-64bit enable 64bit support (default: off)
1444 --enable-64bit-vis enable 64bit Sparc VIS support (default: off)
1445 --disable-rpath disable rpath support (default: on)
1446 --enable-symbols build with debugging symbols (default: off)
1447
1448 Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-tcl directory containing tcl configuration
1452 (tclConfig.sh)
1453 --with-tcl8 Compile for Tcl8 in Tcl9 environment
1454 --with-tk directory containing tk configuration (tkConfig.sh)
1455 --with-itcl directory containing itcl configuration (itclConfig.sh)
1456 --with-tclinclude directory containing the public Tcl header files
1457 --with-tkinclude directory containing the public Tk header files
1458 --with-x use the X Window System
1459
1460 Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 LIBS libraries to pass to the linker, e.g. -l<library>
1466 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CPP C preprocessor
1469 XMKMF Path to xmkmf, Makefile generator for X Window System
1470
1471 Use these variables to override the choices made by 'configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to the package provider.
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
1485 ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for configure.gnu first; this name is used for a wrapper for
1521 # Metaconfig's "Configure" on case-insensitive file systems.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537 cat <<\_ACEOF
1538 itk configure 4.2.7
1539 generated by GNU Autoconf 2.72
1540
1541 Copyright (C) 2023 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545 exit
1546 fi
1547
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1551
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext conftest.beam
1559 if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 printf "%s\n" "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext
1578 then :
1579 ac_retval=0
1580 else case e in #(
1581 e) printf "%s\n" "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1 ;;
1585 esac
1586 fi
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1589
1590 } # ac_fn_c_try_compile
1591
1592 # ac_fn_c_try_cpp LINENO
1593 # ----------------------
1594 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_cpp ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 if { { ac_try="$ac_cpp conftest.$ac_ext"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 printf "%s\n" "$ac_try_echo"; } >&5
1605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } > conftest.i && {
1614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 }
1617 then :
1618 ac_retval=0
1619 else case e in #(
1620 e) printf "%s\n" "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623 ac_retval=1 ;;
1624 esac
1625 fi
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1628
1629 } # ac_fn_c_try_cpp
1630
1631 # ac_fn_c_try_link LINENO
1632 # -----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_link ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1638 if { { ac_try="$ac_link"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 printf "%s\n" "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest$ac_exeext && {
1657 test "$cross_compiling" = yes ||
1658 test -x conftest$ac_exeext
1659 }
1660 then :
1661 ac_retval=0
1662 else case e in #(
1663 e) printf "%s\n" "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1 ;;
1667 esac
1668 fi
1669 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1670 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1671 # interfere with the next link command; also delete a directory that is
1672 # left behind by Apple's compiler. We do this before executing the actions.
1673 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1676
1677 } # ac_fn_c_try_link
1678
1679 # ac_fn_c_try_run LINENO
1680 # ----------------------
1681 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1682 # executables *can* be run.
1683 ac_fn_c_try_run ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 printf "%s\n" "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>&5
1694 ac_status=$?
1695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697 { { case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 printf "%s\n" "$ac_try_echo"; } >&5
1703 (eval "$ac_try") 2>&5
1704 ac_status=$?
1705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; }; }
1707 then :
1708 ac_retval=0
1709 else case e in #(
1710 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1711 printf "%s\n" "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=$ac_status ;;
1715 esac
1716 fi
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_run
1722
1723 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724 # -------------------------------------------------------
1725 # Tests whether HEADER exists and can be compiled using the include files in
1726 # INCLUDES, setting the cache variable VAR accordingly.
1727 ac_fn_c_check_header_compile ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 printf %s "checking for $2... " >&6; }
1732 if eval test \${$3+y}
1733 then :
1734 printf %s "(cached) " >&6
1735 else case e in #(
1736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 $4
1739 #include <$2>
1740 _ACEOF
1741 if ac_fn_c_try_compile "$LINENO"
1742 then :
1743 eval "$3=yes"
1744 else case e in #(
1745 e) eval "$3=no" ;;
1746 esac
1747 fi
1748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1749 esac
1750 fi
1751 eval ac_res=\$$3
1752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 printf "%s\n" "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755
1756 } # ac_fn_c_check_header_compile
1757
1758 # ac_fn_c_check_func LINENO FUNC VAR
1759 # ----------------------------------
1760 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1761 ac_fn_c_check_func ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 printf %s "checking for $2... " >&6; }
1766 if eval test \${$3+y}
1767 then :
1768 printf %s "(cached) " >&6
1769 else case e in #(
1770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1772 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1774 #define $2 innocuous_$2
1775
1776 /* System header to define __stub macros and hopefully few prototypes,
1777 which can conflict with char $2 (void); below. */
1778
1779 #include <limits.h>
1780 #undef $2
1781
1782 /* Override any GCC internal prototype to avoid an error.
1783 Use char because int might match the return type of a GCC
1784 builtin and then its argument prototype would still apply. */
1785 #ifdef __cplusplus
1786 extern "C"
1787 #endif
1788 char $2 (void);
1789 /* The GNU C library defines this for functions which it implements
1790 to always fail with ENOSYS. Some functions are actually named
1791 something starting with __ and the normal name is an alias. */
1792 #if defined __stub_$2 || defined __stub___$2
1793 choke me
1794 #endif
1795
1796 int
1797 main (void)
1798 {
1799 return $2 ();
1800 ;
1801 return 0;
1802 }
1803 _ACEOF
1804 if ac_fn_c_try_link "$LINENO"
1805 then :
1806 eval "$3=yes"
1807 else case e in #(
1808 e) eval "$3=no" ;;
1809 esac
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1812 conftest$ac_exeext conftest.$ac_ext ;;
1813 esac
1814 fi
1815 eval ac_res=\$$3
1816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 printf "%s\n" "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
1820 } # ac_fn_c_check_func
1821 ac_configure_args_raw=
1822 for ac_arg
1823 do
1824 case $ac_arg in
1825 *\'*)
1826 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1827 esac
1828 as_fn_append ac_configure_args_raw " '$ac_arg'"
1829 done
1830
1831 case $ac_configure_args_raw in
1832 *$as_nl*)
1833 ac_safe_unquote= ;;
1834 *)
1835 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1836 ac_unsafe_a="$ac_unsafe_z#~"
1837 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1838 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1839 esac
1840
1841 cat >config.log <<_ACEOF
1842 This file contains any messages produced by compilers while
1843 running configure, to aid debugging if configure makes a mistake.
1844
1845 It was created by itk $as_me 4.2.7, which was
1846 generated by GNU Autoconf 2.72. Invocation command line was
1847
1848 $ $0$ac_configure_args_raw
1849
1850 _ACEOF
1851 exec 5>>config.log
1852 {
1853 cat <<_ASUNAME
1854 ## --------- ##
1855 ## Platform. ##
1856 ## --------- ##
1857
1858 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1859 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1860 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1861 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1862 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1863
1864 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1865 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1866
1867 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1868 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1869 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1870 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1871 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1872 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1873 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1874
1875 _ASUNAME
1876
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1879 do
1880 IFS=$as_save_IFS
1881 case $as_dir in #(((
1882 '') as_dir=./ ;;
1883 */) ;;
1884 *) as_dir=$as_dir/ ;;
1885 esac
1886 printf "%s\n" "PATH: $as_dir"
1887 done
1888 IFS=$as_save_IFS
1889
1890 } >&5
1891
1892 cat >&5 <<_ACEOF
1893
1894
1895 ## ----------- ##
1896 ## Core tests. ##
1897 ## ----------- ##
1898
1899 _ACEOF
1900
1901
1902 # Keep a trace of the command line.
1903 # Strip out --no-create and --no-recursion so they do not pile up.
1904 # Strip out --silent because we don't want to record it for future runs.
1905 # Also quote any args containing shell meta-characters.
1906 # Make two passes to allow for proper duplicate-argument suppression.
1907 ac_configure_args=
1908 ac_configure_args0=
1909 ac_configure_args1=
1910 ac_must_keep_next=false
1911 for ac_pass in 1 2
1912 do
1913 for ac_arg
1914 do
1915 case $ac_arg in
1916 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1917 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1918 | -silent | --silent | --silen | --sile | --sil)
1919 continue ;;
1920 *\'*)
1921 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1922 esac
1923 case $ac_pass in
1924 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1925 2)
1926 as_fn_append ac_configure_args1 " '$ac_arg'"
1927 if test $ac_must_keep_next = true; then
1928 ac_must_keep_next=false # Got value, back to normal.
1929 else
1930 case $ac_arg in
1931 *=* | --config-cache | -C | -disable-* | --disable-* \
1932 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1933 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1934 | -with-* | --with-* | -without-* | --without-* | --x)
1935 case "$ac_configure_args0 " in
1936 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1937 esac
1938 ;;
1939 -* ) ac_must_keep_next=true ;;
1940 esac
1941 fi
1942 as_fn_append ac_configure_args " '$ac_arg'"
1943 ;;
1944 esac
1945 done
1946 done
1947 { ac_configure_args0=; unset ac_configure_args0;}
1948 { ac_configure_args1=; unset ac_configure_args1;}
1949
1950 # When interrupted or exit'd, cleanup temporary files, and complete
1951 # config.log. We remove comments because anyway the quotes in there
1952 # would cause problems or look ugly.
1953 # WARNING: Use '\'' to represent an apostrophe within the trap.
1954 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1955 trap 'exit_status=$?
1956 # Sanitize IFS.
1957 IFS=" "" $as_nl"
1958 # Save into config.log some information that might help in debugging.
1959 {
1960 echo
1961
1962 printf "%s\n" "## ---------------- ##
1963 ## Cache variables. ##
1964 ## ---------------- ##"
1965 echo
1966 # The following way of writing the cache mishandles newlines in values,
1967 (
1968 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1969 eval ac_val=\$$ac_var
1970 case $ac_val in #(
1971 *${as_nl}*)
1972 case $ac_var in #(
1973 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1974 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1975 esac
1976 case $ac_var in #(
1977 _ | IFS | as_nl) ;; #(
1978 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1979 *) { eval $ac_var=; unset $ac_var;} ;;
1980 esac ;;
1981 esac
1982 done
1983 (set) 2>&1 |
1984 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985 *${as_nl}ac_space=\ *)
1986 sed -n \
1987 "s/'\''/'\''\\\\'\'''\''/g;
1988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1989 ;; #(
1990 *)
1991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1992 ;;
1993 esac |
1994 sort
1995 )
1996 echo
1997
1998 printf "%s\n" "## ----------------- ##
1999 ## Output variables. ##
2000 ## ----------------- ##"
2001 echo
2002 for ac_var in $ac_subst_vars
2003 do
2004 eval ac_val=\$$ac_var
2005 case $ac_val in
2006 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007 esac
2008 printf "%s\n" "$ac_var='\''$ac_val'\''"
2009 done | sort
2010 echo
2011
2012 if test -n "$ac_subst_files"; then
2013 printf "%s\n" "## ------------------- ##
2014 ## File substitutions. ##
2015 ## ------------------- ##"
2016 echo
2017 for ac_var in $ac_subst_files
2018 do
2019 eval ac_val=\$$ac_var
2020 case $ac_val in
2021 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022 esac
2023 printf "%s\n" "$ac_var='\''$ac_val'\''"
2024 done | sort
2025 echo
2026 fi
2027
2028 if test -s confdefs.h; then
2029 printf "%s\n" "## ----------- ##
2030 ## confdefs.h. ##
2031 ## ----------- ##"
2032 echo
2033 cat confdefs.h
2034 echo
2035 fi
2036 test "$ac_signal" != 0 &&
2037 printf "%s\n" "$as_me: caught signal $ac_signal"
2038 printf "%s\n" "$as_me: exit $exit_status"
2039 } >&5
2040 rm -f core *.core core.conftest.* &&
2041 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2042 exit $exit_status
2043 ' 0
2044 for ac_signal in 1 2 13 15; do
2045 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2046 done
2047 ac_signal=0
2048
2049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2050 rm -f -r conftest* confdefs.h
2051
2052 printf "%s\n" "/* confdefs.h */" > confdefs.h
2053
2054 # Predefined preprocessor variables.
2055
2056 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2057
2058 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2059
2060 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2061
2062 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2063
2064 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2065
2066 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2067
2068
2069 # Let the site file select an alternate cache file if it wants to.
2070 # Prefer an explicitly selected file to automatically selected ones.
2071 if test -n "$CONFIG_SITE"; then
2072 ac_site_files="$CONFIG_SITE"
2073 elif test "x$prefix" != xNONE; then
2074 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2075 else
2076 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2077 fi
2078
2079 for ac_site_file in $ac_site_files
2080 do
2081 case $ac_site_file in #(
2082 */*) :
2083 ;; #(
2084 *) :
2085 ac_site_file=./$ac_site_file ;;
2086 esac
2087 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2089 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2090 sed 's/^/| /' "$ac_site_file" >&5
2091 . "$ac_site_file" \
2092 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2093 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2094 as_fn_error $? "failed to load site script $ac_site_file
2095 See 'config.log' for more details" "$LINENO" 5; }
2096 fi
2097 done
2098
2099 if test -r "$cache_file"; then
2100 # Some versions of bash will fail to source /dev/null (special files
2101 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2102 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2104 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2105 case $cache_file in
2106 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2107 *) . "./$cache_file";;
2108 esac
2109 fi
2110 else
2111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2112 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2113 >$cache_file
2114 fi
2115
2116 # Test code for whether the C compiler supports C89 (global declarations)
2117 ac_c_conftest_c89_globals='
2118 /* Does the compiler advertise C89 conformance?
2119 Do not test the value of __STDC__, because some compilers set it to 0
2120 while being otherwise adequately conformant. */
2121 #if !defined __STDC__
2122 # error "Compiler does not advertise C89 conformance"
2123 #endif
2124
2125 #include <stddef.h>
2126 #include <stdarg.h>
2127 struct stat;
2128 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2129 struct buf { int x; };
2130 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2131 static char *e (char **p, int i)
2132 {
2133 return p[i];
2134 }
2135 static char *f (char * (*g) (char **, int), char **p, ...)
2136 {
2137 char *s;
2138 va_list v;
2139 va_start (v,p);
2140 s = g (p, va_arg (v,int));
2141 va_end (v);
2142 return s;
2143 }
2144
2145 /* C89 style stringification. */
2146 #define noexpand_stringify(a) #a
2147 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2148
2149 /* C89 style token pasting. Exercises some of the corner cases that
2150 e.g. old MSVC gets wrong, but not very hard. */
2151 #define noexpand_concat(a,b) a##b
2152 #define expand_concat(a,b) noexpand_concat(a,b)
2153 extern int vA;
2154 extern int vbee;
2155 #define aye A
2156 #define bee B
2157 int *pvA = &expand_concat(v,aye);
2158 int *pvbee = &noexpand_concat(v,bee);
2159
2160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2161 function prototypes and stuff, but not \xHH hex character constants.
2162 These do not provoke an error unfortunately, instead are silently treated
2163 as an "x". The following induces an error, until -std is added to get
2164 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2165 array size at least. It is necessary to write \x00 == 0 to get something
2166 that is true only with -std. */
2167 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2168
2169 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2170 inside strings and character constants. */
2171 #define FOO(x) '\''x'\''
2172 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2173
2174 int test (int i, double x);
2175 struct s1 {int (*f) (int a);};
2176 struct s2 {int (*f) (double a);};
2177 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2178 int, int);'
2179
2180 # Test code for whether the C compiler supports C89 (body of main).
2181 ac_c_conftest_c89_main='
2182 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2183 '
2184
2185 # Test code for whether the C compiler supports C99 (global declarations)
2186 ac_c_conftest_c99_globals='
2187 /* Does the compiler advertise C99 conformance? */
2188 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2189 # error "Compiler does not advertise C99 conformance"
2190 #endif
2191
2192 // See if C++-style comments work.
2193
2194 #include <stdbool.h>
2195 extern int puts (const char *);
2196 extern int printf (const char *, ...);
2197 extern int dprintf (int, const char *, ...);
2198 extern void *malloc (size_t);
2199 extern void free (void *);
2200
2201 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2202 // dprintf is used instead of fprintf to avoid needing to declare
2203 // FILE and stderr.
2204 #define debug(...) dprintf (2, __VA_ARGS__)
2205 #define showlist(...) puts (#__VA_ARGS__)
2206 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2207 static void
2208 test_varargs_macros (void)
2209 {
2210 int x = 1234;
2211 int y = 5678;
2212 debug ("Flag");
2213 debug ("X = %d\n", x);
2214 showlist (The first, second, and third items.);
2215 report (x>y, "x is %d but y is %d", x, y);
2216 }
2217
2218 // Check long long types.
2219 #define BIG64 18446744073709551615ull
2220 #define BIG32 4294967295ul
2221 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2222 #if !BIG_OK
2223 #error "your preprocessor is broken"
2224 #endif
2225 #if BIG_OK
2226 #else
2227 #error "your preprocessor is broken"
2228 #endif
2229 static long long int bignum = -9223372036854775807LL;
2230 static unsigned long long int ubignum = BIG64;
2231
2232 struct incomplete_array
2233 {
2234 int datasize;
2235 double data[];
2236 };
2237
2238 struct named_init {
2239 int number;
2240 const wchar_t *name;
2241 double average;
2242 };
2243
2244 typedef const char *ccp;
2245
2246 static inline int
2247 test_restrict (ccp restrict text)
2248 {
2249 // Iterate through items via the restricted pointer.
2250 // Also check for declarations in for loops.
2251 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2252 continue;
2253 return 0;
2254 }
2255
2256 // Check varargs and va_copy.
2257 static bool
2258 test_varargs (const char *format, ...)
2259 {
2260 va_list args;
2261 va_start (args, format);
2262 va_list args_copy;
2263 va_copy (args_copy, args);
2264
2265 const char *str = "";
2266 int number = 0;
2267 float fnumber = 0;
2268
2269 while (*format)
2270 {
2271 switch (*format++)
2272 {
2273 case '\''s'\'': // string
2274 str = va_arg (args_copy, const char *);
2275 break;
2276 case '\''d'\'': // int
2277 number = va_arg (args_copy, int);
2278 break;
2279 case '\''f'\'': // float
2280 fnumber = va_arg (args_copy, double);
2281 break;
2282 default:
2283 break;
2284 }
2285 }
2286 va_end (args_copy);
2287 va_end (args);
2288
2289 return *str && number && fnumber;
2290 }
2291 '
2292
2293 # Test code for whether the C compiler supports C99 (body of main).
2294 ac_c_conftest_c99_main='
2295 // Check bool.
2296 _Bool success = false;
2297 success |= (argc != 0);
2298
2299 // Check restrict.
2300 if (test_restrict ("String literal") == 0)
2301 success = true;
2302 char *restrict newvar = "Another string";
2303
2304 // Check varargs.
2305 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2306 test_varargs_macros ();
2307
2308 // Check flexible array members.
2309 struct incomplete_array *ia =
2310 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2311 ia->datasize = 10;
2312 for (int i = 0; i < ia->datasize; ++i)
2313 ia->data[i] = i * 1.234;
2314 // Work around memory leak warnings.
2315 free (ia);
2316
2317 // Check named initializers.
2318 struct named_init ni = {
2319 .number = 34,
2320 .name = L"Test wide string",
2321 .average = 543.34343,
2322 };
2323
2324 ni.number = 58;
2325
2326 int dynamic_array[ni.number];
2327 dynamic_array[0] = argv[0][0];
2328 dynamic_array[ni.number - 1] = 543;
2329
2330 // work around unused variable warnings
2331 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2332 || dynamic_array[ni.number - 1] != 543);
2333 '
2334
2335 # Test code for whether the C compiler supports C11 (global declarations)
2336 ac_c_conftest_c11_globals='
2337 /* Does the compiler advertise C11 conformance? */
2338 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2339 # error "Compiler does not advertise C11 conformance"
2340 #endif
2341
2342 // Check _Alignas.
2343 char _Alignas (double) aligned_as_double;
2344 char _Alignas (0) no_special_alignment;
2345 extern char aligned_as_int;
2346 char _Alignas (0) _Alignas (int) aligned_as_int;
2347
2348 // Check _Alignof.
2349 enum
2350 {
2351 int_alignment = _Alignof (int),
2352 int_array_alignment = _Alignof (int[100]),
2353 char_alignment = _Alignof (char)
2354 };
2355 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2356
2357 // Check _Noreturn.
2358 int _Noreturn does_not_return (void) { for (;;) continue; }
2359
2360 // Check _Static_assert.
2361 struct test_static_assert
2362 {
2363 int x;
2364 _Static_assert (sizeof (int) <= sizeof (long int),
2365 "_Static_assert does not work in struct");
2366 long int y;
2367 };
2368
2369 // Check UTF-8 literals.
2370 #define u8 syntax error!
2371 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2372
2373 // Check duplicate typedefs.
2374 typedef long *long_ptr;
2375 typedef long int *long_ptr;
2376 typedef long_ptr long_ptr;
2377
2378 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2379 struct anonymous
2380 {
2381 union {
2382 struct { int i; int j; };
2383 struct { int k; long int l; } w;
2384 };
2385 int m;
2386 } v1;
2387 '
2388
2389 # Test code for whether the C compiler supports C11 (body of main).
2390 ac_c_conftest_c11_main='
2391 _Static_assert ((offsetof (struct anonymous, i)
2392 == offsetof (struct anonymous, w.k)),
2393 "Anonymous union alignment botch");
2394 v1.i = 2;
2395 v1.w.k = 5;
2396 ok |= v1.i != 5;
2397 '
2398
2399 # Test code for whether the C compiler supports C11 (complete).
2400 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2401 ${ac_c_conftest_c99_globals}
2402 ${ac_c_conftest_c11_globals}
2403
2404 int
2405 main (int argc, char **argv)
2406 {
2407 int ok = 0;
2408 ${ac_c_conftest_c89_main}
2409 ${ac_c_conftest_c99_main}
2410 ${ac_c_conftest_c11_main}
2411 return ok;
2412 }
2413 "
2414
2415 # Test code for whether the C compiler supports C99 (complete).
2416 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2417 ${ac_c_conftest_c99_globals}
2418
2419 int
2420 main (int argc, char **argv)
2421 {
2422 int ok = 0;
2423 ${ac_c_conftest_c89_main}
2424 ${ac_c_conftest_c99_main}
2425 return ok;
2426 }
2427 "
2428
2429 # Test code for whether the C compiler supports C89 (complete).
2430 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2431
2432 int
2433 main (int argc, char **argv)
2434 {
2435 int ok = 0;
2436 ${ac_c_conftest_c89_main}
2437 return ok;
2438 }
2439 "
2440
2441 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2442 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2443 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2444 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2445 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2446 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2447 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2448 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2449 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2450 # Check that the precious variables saved in the cache have kept the same
2451 # value.
2452 ac_cache_corrupted=false
2453 for ac_var in $ac_precious_vars; do
2454 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2455 eval ac_new_set=\$ac_env_${ac_var}_set
2456 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2457 eval ac_new_val=\$ac_env_${ac_var}_value
2458 case $ac_old_set,$ac_new_set in
2459 set,)
2460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2461 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2462 ac_cache_corrupted=: ;;
2463 ,set)
2464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2465 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2466 ac_cache_corrupted=: ;;
2467 ,);;
2468 *)
2469 if test "x$ac_old_val" != "x$ac_new_val"; then
2470 # differences in whitespace do not lead to failure.
2471 ac_old_val_w=`echo x $ac_old_val`
2472 ac_new_val_w=`echo x $ac_new_val`
2473 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2475 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2476 ac_cache_corrupted=:
2477 else
2478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2479 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2480 eval $ac_var=\$ac_old_val
2481 fi
2482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2483 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2485 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2486 fi;;
2487 esac
2488 # Pass precious variables to config.status.
2489 if test "$ac_new_set" = set; then
2490 case $ac_new_val in
2491 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2492 *) ac_arg=$ac_var=$ac_new_val ;;
2493 esac
2494 case " $ac_configure_args " in
2495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2496 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2497 esac
2498 fi
2499 done
2500 if $ac_cache_corrupted; then
2501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2502 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2504 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2505 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2506 and start over" "$LINENO" 5
2507 fi
2508 ## -------------------- ##
2509 ## Main body of script. ##
2510 ## -------------------- ##
2511
2512 ac_ext=c
2513 ac_cpp='$CPP $CPPFLAGS'
2514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2517
2518
2519
2520 #--------------------------------------------------------------------
2521 # Call TEA_INIT as the first TEA_ macro to set up initial vars.
2522 # This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
2523 # as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
2524 #--------------------------------------------------------------------
2525
2526
2527 TEA_VERSION="3.13"
2528
2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TEA configuration" >&5
2530 printf %s "checking TEA configuration... " >&6; }
2531 if test x"${PACKAGE_NAME}" = x ; then
2532 as_fn_error $? "
2533 The PACKAGE_NAME variable must be defined by your TEA configure.ac" "$LINENO" 5
2534 fi
2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
2536 printf "%s\n" "ok (TEA ${TEA_VERSION})" >&6; }
2537
2538 # If the user did not set CFLAGS, set it now to keep macros
2539 # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2".
2540 if test "${CFLAGS+set}" != "set" ; then
2541 CFLAGS=""
2542 fi
2543
2544 case "`uname -s`" in
2545 *win32*|*WIN32*|*MINGW32_*|*MINGW64_*|*MSYS_*)
2546 # Extract the first word of "cygpath", so it can be a program name with args.
2547 set dummy cygpath; ac_word=$2
2548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 printf %s "checking for $ac_word... " >&6; }
2550 if test ${ac_cv_prog_CYGPATH+y}
2551 then :
2552 printf %s "(cached) " >&6
2553 else case e in #(
2554 e) if test -n "$CYGPATH"; then
2555 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2559 do
2560 IFS=$as_save_IFS
2561 case $as_dir in #(((
2562 '') as_dir=./ ;;
2563 */) ;;
2564 *) as_dir=$as_dir/ ;;
2565 esac
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2568 ac_cv_prog_CYGPATH="cygpath -m"
2569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
2577 fi ;;
2578 esac
2579 fi
2580 CYGPATH=$ac_cv_prog_CYGPATH
2581 if test -n "$CYGPATH"; then
2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
2583 printf "%s\n" "$CYGPATH" >&6; }
2584 else
2585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586 printf "%s\n" "no" >&6; }
2587 fi
2588
2589
2590 EXEEXT=".exe"
2591 TEA_PLATFORM="windows"
2592 ;;
2593 *CYGWIN_*)
2594 EXEEXT=".exe"
2595 # CYGPATH and TEA_PLATFORM are determined later in LOAD_TCLCONFIG
2596 ;;
2597 *)
2598 CYGPATH=echo
2599 # Maybe we are cross-compiling....
2600 case ${host_alias} in
2601 *mingw32*)
2602 EXEEXT=".exe"
2603 TEA_PLATFORM="windows"
2604 ;;
2605 *)
2606 EXEEXT=""
2607 TEA_PLATFORM="unix"
2608 ;;
2609 esac
2610 ;;
2611 esac
2612
2613 # Check if exec_prefix is set. If not use fall back to prefix.
2614 # Note when adjusted, so that TEA_PREFIX can correct for this.
2615 # This is needed for recursive configures, since autoconf propagates
2616 # $prefix, but not $exec_prefix (doh!).
2617 if test x$exec_prefix = xNONE ; then
2618 exec_prefix_default=yes
2619 exec_prefix=$prefix
2620 fi
2621
2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5
2623 printf "%s\n" "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;}
2624
2625
2626
2627
2628 # This package name must be replaced statically for AC_SUBST to work
2629
2630
2631
2632
2633 # We AC_SUBST these here to ensure they are subst'ed,
2634 # in case the user doesn't call TEA_ADD_...
2635
2636
2637
2638
2639
2640
2641
2642
2643 # Configure the installer.
2644
2645 INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c'
2646 INSTALL_DATA_DIR='${INSTALL} -d -m 755'
2647 INSTALL_DATA='${INSTALL} -m 644'
2648 INSTALL_PROGRAM='${INSTALL} -m 755'
2649 INSTALL_SCRIPT='${INSTALL} -m 755'
2650
2651
2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
2653 printf %s "checking system version... " >&6; }
2654 if test ${tcl_cv_sys_version+y}
2655 then :
2656 printf %s "(cached) " >&6
2657 else case e in #(
2658 e)
2659 # TEA specific:
2660 if test "${TEA_PLATFORM}" = "windows" ; then
2661 tcl_cv_sys_version=windows
2662 else
2663 tcl_cv_sys_version=`uname -s`-`uname -r`
2664 if test "$?" -ne 0 ; then
2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
2666 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
2667 tcl_cv_sys_version=unknown
2668 else
2669 if test "`uname -s`" = "AIX" ; then
2670 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
2671 fi
2672 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
2673 tcl_cv_sys_version=NetBSD-Debian
2674 fi
2675 fi
2676 fi
2677 ;;
2678 esac
2679 fi
2680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
2681 printf "%s\n" "$tcl_cv_sys_version" >&6; }
2682 system=$tcl_cv_sys_version
2683
2684 case $system in
2685 HP-UX-*) INSTALL_LIBRARY='${INSTALL} -m 755' ;;
2686 *) INSTALL_LIBRARY='${INSTALL} -m 644' ;;
2687 esac
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698 #--------------------------------------------------------------------
2699 # Try to ensure the existence of a tclconfig directory in either
2700 # $srcdir or the current dir, if one can't be found in $srcdir.
2701 # If this package is being built as part of a bundle then a tclconfig
2702 # directory might exist in $srcdir's parent directory.
2703 #--------------------------------------------------------------------
2704
2705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2706 printf %s "checking whether ln -s works... " >&6; }
2707 LN_S=$as_ln_s
2708 if test "$LN_S" = "ln -s"; then
2709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2710 printf "%s\n" "yes" >&6; }
2711 else
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2713 printf "%s\n" "no, using $LN_S" >&6; }
2714 fi
2715
2716 CONFIG_CLEAN_FILES=
2717 if test ! -d $srcdir/tclconfig ; then
2718 if test -d $srcdir/../tclconfig ; then
2719 $LN_S $srcdir/../tclconfig tclconfig
2720 CONFIG_CLEAN_FILES=tclconfig
2721 fi
2722 fi
2723
2724
2725 #--------------------------------------------------------------------
2726 # Tell autoconf where to find tcl.m4 and install.sh.
2727 #--------------------------------------------------------------------
2728
2729
2730
2731 #--------------------------------------------------------------------
2732 # Load the tclConfig.sh file
2733 #--------------------------------------------------------------------
2734
2735
2736
2737 #
2738 # Ok, lets find the tcl configuration
2739 # First, look for one uninstalled.
2740 # the alternative search directory is invoked by --with-tcl
2741 #
2742
2743 if test x"${no_tcl}" = x ; then
2744 # we reset no_tcl in case something fails here
2745 no_tcl=true
2746
2747 # Check whether --with-tcl was given.
2748 if test ${with_tcl+y}
2749 then :
2750 withval=$with_tcl; with_tclconfig="${withval}"
2751 fi
2752
2753
2754 # Check whether --with-tcl8 was given.
2755 if test ${with_tcl8+y}
2756 then :
2757 withval=$with_tcl8; with_tcl8="${withval}"
2758 fi
2759
2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
2761 printf %s "checking for Tcl configuration... " >&6; }
2762 if test ${ac_cv_c_tclconfig+y}
2763 then :
2764 printf %s "(cached) " >&6
2765 else case e in #(
2766 e)
2767
2768 # First check to see if --with-tcl was specified.
2769 if test x"${with_tclconfig}" != x ; then
2770 case "${with_tclconfig}" in
2771 */tclConfig.sh )
2772 if test -f "${with_tclconfig}"; then
2773 { 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
2774 printf "%s\n" "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
2775 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
2776 fi ;;
2777 esac
2778 if test -f "${with_tclconfig}/tclConfig.sh" ; then
2779 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
2780 else
2781 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
2782 fi
2783 fi
2784
2785 # then check for a private Tcl installation
2786 if test x"${ac_cv_c_tclconfig}" = x ; then
2787 for i in \
2788 ../tcl \
2789 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2790 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
2791 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
2792 ../../tcl \
2793 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2794 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
2795 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2796 ../../../tcl \
2797 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2798 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
2799 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2800 if test "${TEA_PLATFORM}" = "windows" \
2801 -a -f "$i/win/tclConfig.sh" ; then
2802 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2803 break
2804 fi
2805 if test -f "$i/unix/tclConfig.sh" ; then
2806 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2807 break
2808 fi
2809 done
2810 fi
2811
2812 # on Darwin, check in Framework installation locations
2813 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
2814 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
2815 `ls -d /Library/Frameworks 2>/dev/null` \
2816 `ls -d /Network/Library/Frameworks 2>/dev/null` \
2817 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks/Tcl.framework 2>/dev/null` \
2818 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Network/Library/Frameworks/Tcl.framework 2>/dev/null` \
2819 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Tcl.framework 2>/dev/null` \
2820 ; do
2821 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
2822 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
2823 break
2824 fi
2825 done
2826 fi
2827
2828 # TEA specific: on Windows, check in common installation locations
2829 if test "${TEA_PLATFORM}" = "windows" \
2830 -a x"${ac_cv_c_tclconfig}" = x ; then
2831 for i in `ls -d C:/Tcl/lib 2>/dev/null` \
2832 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
2833 ; do
2834 if test -f "$i/tclConfig.sh" ; then
2835 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2836 break
2837 fi
2838 done
2839 fi
2840
2841 # check in a few common install locations
2842 if test x"${ac_cv_c_tclconfig}" = x ; then
2843 for i in `ls -d ${libdir} 2>/dev/null` \
2844 `ls -d ${exec_prefix}/lib 2>/dev/null` \
2845 `ls -d ${prefix}/lib 2>/dev/null` \
2846 `ls -d /usr/local/lib 2>/dev/null` \
2847 `ls -d /usr/contrib/lib 2>/dev/null` \
2848 `ls -d /usr/pkg/lib 2>/dev/null` \
2849 `ls -d /usr/lib 2>/dev/null` \
2850 `ls -d /usr/lib64 2>/dev/null` \
2851 `ls -d /usr/lib/tcl9.1 2>/dev/null` \
2852 `ls -d /usr/lib/tcl9.0 2>/dev/null` \
2853 `ls -d /usr/lib/tcl8.6 2>/dev/null` \
2854 `ls -d /usr/lib/tcl8.5 2>/dev/null` \
2855 `ls -d /usr/local/lib/tcl9.1 2>/dev/null` \
2856 `ls -d /usr/local/lib/tcl9.0 2>/dev/null` \
2857 `ls -d /usr/local/lib/tcl8.6 2>/dev/null` \
2858 `ls -d /usr/local/lib/tcl8.5 2>/dev/null` \
2859 `ls -d /usr/local/lib/tcl/tcl9.1 2>/dev/null` \
2860 `ls -d /usr/local/lib/tcl/tcl9.0 2>/dev/null` \
2861 `ls -d /usr/local/lib/tcl/tcl8.6 2>/dev/null` \
2862 `ls -d /usr/local/lib/tcl/tcl8.5 2>/dev/null` \
2863 ; do
2864 if test -f "$i/tclConfig.sh" ; then
2865 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2866 break
2867 fi
2868 done
2869 fi
2870
2871 # check in a few other private locations
2872 if test x"${ac_cv_c_tclconfig}" = x ; then
2873 for i in \
2874 ${srcdir}/../tcl \
2875 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2876 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2877 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2878 if test "${TEA_PLATFORM}" = "windows" \
2879 -a -f "$i/win/tclConfig.sh" ; then
2880 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2881 break
2882 fi
2883 if test -f "$i/unix/tclConfig.sh" ; then
2884 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2885 break
2886 fi
2887 done
2888 fi
2889 ;;
2890 esac
2891 fi
2892
2893
2894 if test x"${ac_cv_c_tclconfig}" = x ; then
2895 TCL_BIN_DIR="# no Tcl configs found"
2896 as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
2897 else
2898 no_tcl=
2899 TCL_BIN_DIR="${ac_cv_c_tclconfig}"
2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2901 printf "%s\n" "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2902 fi
2903 fi
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914 ac_ext=c
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 if test -n "$ac_tool_prefix"; then
2920 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 printf %s "checking for $ac_word... " >&6; }
2924 if test ${ac_cv_prog_CC+y}
2925 then :
2926 printf %s "(cached) " >&6
2927 else case e in #(
2928 e) if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934 IFS=$as_save_IFS
2935 case $as_dir in #(((
2936 '') as_dir=./ ;;
2937 */) ;;
2938 *) as_dir=$as_dir/ ;;
2939 esac
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2942 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946 done
2947 done
2948 IFS=$as_save_IFS
2949
2950 fi ;;
2951 esac
2952 fi
2953 CC=$ac_cv_prog_CC
2954 if test -n "$CC"; then
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 printf "%s\n" "$CC" >&6; }
2957 else
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 printf "%s\n" "no" >&6; }
2960 fi
2961
2962
2963 fi
2964 if test -z "$ac_cv_prog_CC"; then
2965 ac_ct_CC=$CC
2966 # Extract the first word of "gcc", so it can be a program name with args.
2967 set dummy gcc; ac_word=$2
2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 printf %s "checking for $ac_word... " >&6; }
2970 if test ${ac_cv_prog_ac_ct_CC+y}
2971 then :
2972 printf %s "(cached) " >&6
2973 else case e in #(
2974 e) if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980 IFS=$as_save_IFS
2981 case $as_dir in #(((
2982 '') as_dir=./ ;;
2983 */) ;;
2984 *) as_dir=$as_dir/ ;;
2985 esac
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_ac_ct_CC="gcc"
2989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2990 break 2
2991 fi
2992 done
2993 done
2994 IFS=$as_save_IFS
2995
2996 fi ;;
2997 esac
2998 fi
2999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3000 if test -n "$ac_ct_CC"; then
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3002 printf "%s\n" "$ac_ct_CC" >&6; }
3003 else
3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 printf "%s\n" "no" >&6; }
3006 fi
3007
3008 if test "x$ac_ct_CC" = x; then
3009 CC=""
3010 else
3011 case $cross_compiling:$ac_tool_warned in
3012 yes:)
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015 ac_tool_warned=yes ;;
3016 esac
3017 CC=$ac_ct_CC
3018 fi
3019 else
3020 CC="$ac_cv_prog_CC"
3021 fi
3022
3023 if test -z "$CC"; then
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}cc; ac_word=$2
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 printf %s "checking for $ac_word... " >&6; }
3029 if test ${ac_cv_prog_CC+y}
3030 then :
3031 printf %s "(cached) " >&6
3032 else case e in #(
3033 e) if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039 IFS=$as_save_IFS
3040 case $as_dir in #(((
3041 '') as_dir=./ ;;
3042 */) ;;
3043 *) as_dir=$as_dir/ ;;
3044 esac
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_CC="${ac_tool_prefix}cc"
3048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051 done
3052 done
3053 IFS=$as_save_IFS
3054
3055 fi ;;
3056 esac
3057 fi
3058 CC=$ac_cv_prog_CC
3059 if test -n "$CC"; then
3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 printf "%s\n" "$CC" >&6; }
3062 else
3063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 printf "%s\n" "no" >&6; }
3065 fi
3066
3067
3068 fi
3069 fi
3070 if test -z "$CC"; then
3071 # Extract the first word of "cc", so it can be a program name with args.
3072 set dummy cc; ac_word=$2
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 printf %s "checking for $ac_word... " >&6; }
3075 if test ${ac_cv_prog_CC+y}
3076 then :
3077 printf %s "(cached) " >&6
3078 else case e in #(
3079 e) if test -n "$CC"; then
3080 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 else
3082 ac_prog_rejected=no
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086 IFS=$as_save_IFS
3087 case $as_dir in #(((
3088 '') as_dir=./ ;;
3089 */) ;;
3090 *) as_dir=$as_dir/ ;;
3091 esac
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3094 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3095 ac_prog_rejected=yes
3096 continue
3097 fi
3098 ac_cv_prog_CC="cc"
3099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 if test $ac_prog_rejected = yes; then
3107 # We found a bogon in the path, so make sure we never use it.
3108 set dummy $ac_cv_prog_CC
3109 shift
3110 if test $# != 0; then
3111 # We chose a different compiler from the bogus one.
3112 # However, it has the same basename, so the bogon will be chosen
3113 # first if we set CC to just the basename; use the full file name.
3114 shift
3115 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3116 fi
3117 fi
3118 fi ;;
3119 esac
3120 fi
3121 CC=$ac_cv_prog_CC
3122 if test -n "$CC"; then
3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 printf "%s\n" "$CC" >&6; }
3125 else
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 printf "%s\n" "no" >&6; }
3128 fi
3129
3130
3131 fi
3132 if test -z "$CC"; then
3133 if test -n "$ac_tool_prefix"; then
3134 for ac_prog in cl.exe
3135 do
3136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139 printf %s "checking for $ac_word... " >&6; }
3140 if test ${ac_cv_prog_CC+y}
3141 then :
3142 printf %s "(cached) " >&6
3143 else case e in #(
3144 e) if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150 IFS=$as_save_IFS
3151 case $as_dir in #(((
3152 '') as_dir=./ ;;
3153 */) ;;
3154 *) as_dir=$as_dir/ ;;
3155 esac
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3160 break 2
3161 fi
3162 done
3163 done
3164 IFS=$as_save_IFS
3165
3166 fi ;;
3167 esac
3168 fi
3169 CC=$ac_cv_prog_CC
3170 if test -n "$CC"; then
3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3172 printf "%s\n" "$CC" >&6; }
3173 else
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 printf "%s\n" "no" >&6; }
3176 fi
3177
3178
3179 test -n "$CC" && break
3180 done
3181 fi
3182 if test -z "$CC"; then
3183 ac_ct_CC=$CC
3184 for ac_prog in cl.exe
3185 do
3186 # Extract the first word of "$ac_prog", so it can be a program name with args.
3187 set dummy $ac_prog; ac_word=$2
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 printf %s "checking for $ac_word... " >&6; }
3190 if test ${ac_cv_prog_ac_ct_CC+y}
3191 then :
3192 printf %s "(cached) " >&6
3193 else case e in #(
3194 e) if test -n "$ac_ct_CC"; then
3195 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200 IFS=$as_save_IFS
3201 case $as_dir in #(((
3202 '') as_dir=./ ;;
3203 */) ;;
3204 *) as_dir=$as_dir/ ;;
3205 esac
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3208 ac_cv_prog_ac_ct_CC="$ac_prog"
3209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3210 break 2
3211 fi
3212 done
3213 done
3214 IFS=$as_save_IFS
3215
3216 fi ;;
3217 esac
3218 fi
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 printf "%s\n" "$ac_ct_CC" >&6; }
3223 else
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 printf "%s\n" "no" >&6; }
3226 fi
3227
3228
3229 test -n "$ac_ct_CC" && break
3230 done
3231
3232 if test "x$ac_ct_CC" = x; then
3233 CC=""
3234 else
3235 case $cross_compiling:$ac_tool_warned in
3236 yes:)
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239 ac_tool_warned=yes ;;
3240 esac
3241 CC=$ac_ct_CC
3242 fi
3243 fi
3244
3245 fi
3246 if test -z "$CC"; then
3247 if test -n "$ac_tool_prefix"; then
3248 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3249 set dummy ${ac_tool_prefix}clang; ac_word=$2
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 printf %s "checking for $ac_word... " >&6; }
3252 if test ${ac_cv_prog_CC+y}
3253 then :
3254 printf %s "(cached) " >&6
3255 else case e in #(
3256 e) if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262 IFS=$as_save_IFS
3263 case $as_dir in #(((
3264 '') as_dir=./ ;;
3265 */) ;;
3266 *) as_dir=$as_dir/ ;;
3267 esac
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3270 ac_cv_prog_CC="${ac_tool_prefix}clang"
3271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274 done
3275 done
3276 IFS=$as_save_IFS
3277
3278 fi ;;
3279 esac
3280 fi
3281 CC=$ac_cv_prog_CC
3282 if test -n "$CC"; then
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284 printf "%s\n" "$CC" >&6; }
3285 else
3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 printf "%s\n" "no" >&6; }
3288 fi
3289
3290
3291 fi
3292 if test -z "$ac_cv_prog_CC"; then
3293 ac_ct_CC=$CC
3294 # Extract the first word of "clang", so it can be a program name with args.
3295 set dummy clang; ac_word=$2
3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 printf %s "checking for $ac_word... " >&6; }
3298 if test ${ac_cv_prog_ac_ct_CC+y}
3299 then :
3300 printf %s "(cached) " >&6
3301 else case e in #(
3302 e) if test -n "$ac_ct_CC"; then
3303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3304 else
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308 IFS=$as_save_IFS
3309 case $as_dir in #(((
3310 '') as_dir=./ ;;
3311 */) ;;
3312 *) as_dir=$as_dir/ ;;
3313 esac
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3316 ac_cv_prog_ac_ct_CC="clang"
3317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320 done
3321 done
3322 IFS=$as_save_IFS
3323
3324 fi ;;
3325 esac
3326 fi
3327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3328 if test -n "$ac_ct_CC"; then
3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3330 printf "%s\n" "$ac_ct_CC" >&6; }
3331 else
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 printf "%s\n" "no" >&6; }
3334 fi
3335
3336 if test "x$ac_ct_CC" = x; then
3337 CC=""
3338 else
3339 case $cross_compiling:$ac_tool_warned in
3340 yes:)
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3342 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3343 ac_tool_warned=yes ;;
3344 esac
3345 CC=$ac_ct_CC
3346 fi
3347 else
3348 CC="$ac_cv_prog_CC"
3349 fi
3350
3351 fi
3352
3353
3354 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3355 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3356 as_fn_error $? "no acceptable C compiler found in \$PATH
3357 See 'config.log' for more details" "$LINENO" 5; }
3358
3359 # Provide some information about the compiler.
3360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3361 set X $ac_compile
3362 ac_compiler=$2
3363 for ac_option in --version -v -V -qversion -version; do
3364 { { ac_try="$ac_compiler $ac_option >&5"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 printf "%s\n" "$ac_try_echo"; } >&5
3371 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3372 ac_status=$?
3373 if test -s conftest.err; then
3374 sed '10a\
3375 ... rest of stderr output deleted ...
3376 10q' conftest.err >conftest.er1
3377 cat conftest.er1 >&5
3378 fi
3379 rm -f conftest.er1 conftest.err
3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }
3382 done
3383
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3386
3387 int
3388 main (void)
3389 {
3390
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 ac_clean_files_save=$ac_clean_files
3396 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3397 # Try to create an executable without -o first, disregard a.out.
3398 # It will help us diagnose broken compilers, and finding out an intuition
3399 # of exeext.
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3401 printf %s "checking whether the C compiler works... " >&6; }
3402 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3403
3404 # The possible output files:
3405 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3406
3407 ac_rmfiles=
3408 for ac_file in $ac_files
3409 do
3410 case $ac_file in
3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3413 esac
3414 done
3415 rm -f $ac_rmfiles
3416
3417 if { { ac_try="$ac_link_default"
3418 case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 printf "%s\n" "$ac_try_echo"; } >&5
3424 (eval "$ac_link_default") 2>&5
3425 ac_status=$?
3426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }
3428 then :
3429 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3430 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3431 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3432 # so that the user can short-circuit this test for compilers unknown to
3433 # Autoconf.
3434 for ac_file in $ac_files ''
3435 do
3436 test -f "$ac_file" || continue
3437 case $ac_file in
3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3439 ;;
3440 [ab].out )
3441 # We found the default executable, but exeext='' is most
3442 # certainly right.
3443 break;;
3444 *.* )
3445 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3446 then :; else
3447 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3448 fi
3449 # We set ac_cv_exeext here because the later test for it is not
3450 # safe: cross compilers may not add the suffix if given an '-o'
3451 # argument, so we may need to know it at that point already.
3452 # Even if this section looks crufty: it has the advantage of
3453 # actually working.
3454 break;;
3455 * )
3456 break;;
3457 esac
3458 done
3459 test "$ac_cv_exeext" = no && ac_cv_exeext=
3460
3461 else case e in #(
3462 e) ac_file='' ;;
3463 esac
3464 fi
3465 if test -z "$ac_file"
3466 then :
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 printf "%s\n" "no" >&6; }
3469 printf "%s\n" "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3473 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3474 as_fn_error 77 "C compiler cannot create executables
3475 See 'config.log' for more details" "$LINENO" 5; }
3476 else case e in #(
3477 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3478 printf "%s\n" "yes" >&6; } ;;
3479 esac
3480 fi
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3482 printf %s "checking for C compiler default output file name... " >&6; }
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3484 printf "%s\n" "$ac_file" >&6; }
3485 ac_exeext=$ac_cv_exeext
3486
3487 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3488 ac_clean_files=$ac_clean_files_save
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3490 printf %s "checking for suffix of executables... " >&6; }
3491 if { { ac_try="$ac_link"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497 printf "%s\n" "$ac_try_echo"; } >&5
3498 (eval "$ac_link") 2>&5
3499 ac_status=$?
3500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501 test $ac_status = 0; }
3502 then :
3503 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3504 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3505 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3506 # 'rm'.
3507 for ac_file in conftest.exe conftest conftest.*; do
3508 test -f "$ac_file" || continue
3509 case $ac_file in
3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3511 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3512 break;;
3513 * ) break;;
3514 esac
3515 done
3516 else case e in #(
3517 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3518 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3519 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3520 See 'config.log' for more details" "$LINENO" 5; } ;;
3521 esac
3522 fi
3523 rm -f conftest conftest$ac_cv_exeext
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3525 printf "%s\n" "$ac_cv_exeext" >&6; }
3526
3527 rm -f conftest.$ac_ext
3528 EXEEXT=$ac_cv_exeext
3529 ac_exeext=$EXEEXT
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3532 #include <stdio.h>
3533 int
3534 main (void)
3535 {
3536 FILE *f = fopen ("conftest.out", "w");
3537 if (!f)
3538 return 1;
3539 return ferror (f) || fclose (f) != 0;
3540
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 ac_clean_files="$ac_clean_files conftest.out"
3546 # Check that the compiler produces executables we can run. If not, either
3547 # the compiler is broken, or we cross compile.
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3549 printf %s "checking whether we are cross compiling... " >&6; }
3550 if test "$cross_compiling" != yes; then
3551 { { ac_try="$ac_link"
3552 case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 printf "%s\n" "$ac_try_echo"; } >&5
3558 (eval "$ac_link") 2>&5
3559 ac_status=$?
3560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }
3562 if { ac_try='./conftest$ac_cv_exeext'
3563 { { case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 printf "%s\n" "$ac_try_echo"; } >&5
3569 (eval "$ac_try") 2>&5
3570 ac_status=$?
3571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }; }; then
3573 cross_compiling=no
3574 else
3575 if test "$cross_compiling" = maybe; then
3576 cross_compiling=yes
3577 else
3578 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3579 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3580 as_fn_error 77 "cannot run C compiled programs.
3581 If you meant to cross compile, use '--host'.
3582 See 'config.log' for more details" "$LINENO" 5; }
3583 fi
3584 fi
3585 fi
3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3587 printf "%s\n" "$cross_compiling" >&6; }
3588
3589 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3590 conftest.o conftest.obj conftest.out
3591 ac_clean_files=$ac_clean_files_save
3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3593 printf %s "checking for suffix of object files... " >&6; }
3594 if test ${ac_cv_objext+y}
3595 then :
3596 printf %s "(cached) " >&6
3597 else case e in #(
3598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3600
3601 int
3602 main (void)
3603 {
3604
3605 ;
3606 return 0;
3607 }
3608 _ACEOF
3609 rm -f conftest.o conftest.obj
3610 if { { ac_try="$ac_compile"
3611 case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616 printf "%s\n" "$ac_try_echo"; } >&5
3617 (eval "$ac_compile") 2>&5
3618 ac_status=$?
3619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620 test $ac_status = 0; }
3621 then :
3622 for ac_file in conftest.o conftest.obj conftest.*; do
3623 test -f "$ac_file" || continue;
3624 case $ac_file in
3625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3626 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3627 break;;
3628 esac
3629 done
3630 else case e in #(
3631 e) printf "%s\n" "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3633
3634 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3635 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3636 as_fn_error $? "cannot compute suffix of object files: cannot compile
3637 See 'config.log' for more details" "$LINENO" 5; } ;;
3638 esac
3639 fi
3640 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3641 esac
3642 fi
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3644 printf "%s\n" "$ac_cv_objext" >&6; }
3645 OBJEXT=$ac_cv_objext
3646 ac_objext=$OBJEXT
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3648 printf %s "checking whether the compiler supports GNU C... " >&6; }
3649 if test ${ac_cv_c_compiler_gnu+y}
3650 then :
3651 printf %s "(cached) " >&6
3652 else case e in #(
3653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3655
3656 int
3657 main (void)
3658 {
3659 #ifndef __GNUC__
3660 choke me
3661 #endif
3662
3663 ;
3664 return 0;
3665 }
3666 _ACEOF
3667 if ac_fn_c_try_compile "$LINENO"
3668 then :
3669 ac_compiler_gnu=yes
3670 else case e in #(
3671 e) ac_compiler_gnu=no ;;
3672 esac
3673 fi
3674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3676 ;;
3677 esac
3678 fi
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3680 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3682
3683 if test $ac_compiler_gnu = yes; then
3684 GCC=yes
3685 else
3686 GCC=
3687 fi
3688 ac_test_CFLAGS=${CFLAGS+y}
3689 ac_save_CFLAGS=$CFLAGS
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3691 printf %s "checking whether $CC accepts -g... " >&6; }
3692 if test ${ac_cv_prog_cc_g+y}
3693 then :
3694 printf %s "(cached) " >&6
3695 else case e in #(
3696 e) ac_save_c_werror_flag=$ac_c_werror_flag
3697 ac_c_werror_flag=yes
3698 ac_cv_prog_cc_g=no
3699 CFLAGS="-g"
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3702
3703 int
3704 main (void)
3705 {
3706
3707 ;
3708 return 0;
3709 }
3710 _ACEOF
3711 if ac_fn_c_try_compile "$LINENO"
3712 then :
3713 ac_cv_prog_cc_g=yes
3714 else case e in #(
3715 e) CFLAGS=""
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3718
3719 int
3720 main (void)
3721 {
3722
3723 ;
3724 return 0;
3725 }
3726 _ACEOF
3727 if ac_fn_c_try_compile "$LINENO"
3728 then :
3729
3730 else case e in #(
3731 e) ac_c_werror_flag=$ac_save_c_werror_flag
3732 CFLAGS="-g"
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735
3736 int
3737 main (void)
3738 {
3739
3740 ;
3741 return 0;
3742 }
3743 _ACEOF
3744 if ac_fn_c_try_compile "$LINENO"
3745 then :
3746 ac_cv_prog_cc_g=yes
3747 fi
3748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3749 esac
3750 fi
3751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3752 esac
3753 fi
3754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3755 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3756 esac
3757 fi
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3759 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3760 if test $ac_test_CFLAGS; then
3761 CFLAGS=$ac_save_CFLAGS
3762 elif test $ac_cv_prog_cc_g = yes; then
3763 if test "$GCC" = yes; then
3764 CFLAGS="-g -O2"
3765 else
3766 CFLAGS="-g"
3767 fi
3768 else
3769 if test "$GCC" = yes; then
3770 CFLAGS="-O2"
3771 else
3772 CFLAGS=
3773 fi
3774 fi
3775 ac_prog_cc_stdc=no
3776 if test x$ac_prog_cc_stdc = xno
3777 then :
3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3779 printf %s "checking for $CC option to enable C11 features... " >&6; }
3780 if test ${ac_cv_prog_cc_c11+y}
3781 then :
3782 printf %s "(cached) " >&6
3783 else case e in #(
3784 e) ac_cv_prog_cc_c11=no
3785 ac_save_CC=$CC
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788 $ac_c_conftest_c11_program
3789 _ACEOF
3790 for ac_arg in '' -std=gnu11
3791 do
3792 CC="$ac_save_CC $ac_arg"
3793 if ac_fn_c_try_compile "$LINENO"
3794 then :
3795 ac_cv_prog_cc_c11=$ac_arg
3796 fi
3797 rm -f core conftest.err conftest.$ac_objext conftest.beam
3798 test "x$ac_cv_prog_cc_c11" != "xno" && break
3799 done
3800 rm -f conftest.$ac_ext
3801 CC=$ac_save_CC ;;
3802 esac
3803 fi
3804
3805 if test "x$ac_cv_prog_cc_c11" = xno
3806 then :
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3808 printf "%s\n" "unsupported" >&6; }
3809 else case e in #(
3810 e) if test "x$ac_cv_prog_cc_c11" = x
3811 then :
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3813 printf "%s\n" "none needed" >&6; }
3814 else case e in #(
3815 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3816 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3817 CC="$CC $ac_cv_prog_cc_c11" ;;
3818 esac
3819 fi
3820 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3821 ac_prog_cc_stdc=c11 ;;
3822 esac
3823 fi
3824 fi
3825 if test x$ac_prog_cc_stdc = xno
3826 then :
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3828 printf %s "checking for $CC option to enable C99 features... " >&6; }
3829 if test ${ac_cv_prog_cc_c99+y}
3830 then :
3831 printf %s "(cached) " >&6
3832 else case e in #(
3833 e) ac_cv_prog_cc_c99=no
3834 ac_save_CC=$CC
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837 $ac_c_conftest_c99_program
3838 _ACEOF
3839 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3840 do
3841 CC="$ac_save_CC $ac_arg"
3842 if ac_fn_c_try_compile "$LINENO"
3843 then :
3844 ac_cv_prog_cc_c99=$ac_arg
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext conftest.beam
3847 test "x$ac_cv_prog_cc_c99" != "xno" && break
3848 done
3849 rm -f conftest.$ac_ext
3850 CC=$ac_save_CC ;;
3851 esac
3852 fi
3853
3854 if test "x$ac_cv_prog_cc_c99" = xno
3855 then :
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3857 printf "%s\n" "unsupported" >&6; }
3858 else case e in #(
3859 e) if test "x$ac_cv_prog_cc_c99" = x
3860 then :
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3862 printf "%s\n" "none needed" >&6; }
3863 else case e in #(
3864 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3865 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3866 CC="$CC $ac_cv_prog_cc_c99" ;;
3867 esac
3868 fi
3869 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3870 ac_prog_cc_stdc=c99 ;;
3871 esac
3872 fi
3873 fi
3874 if test x$ac_prog_cc_stdc = xno
3875 then :
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3877 printf %s "checking for $CC option to enable C89 features... " >&6; }
3878 if test ${ac_cv_prog_cc_c89+y}
3879 then :
3880 printf %s "(cached) " >&6
3881 else case e in #(
3882 e) ac_cv_prog_cc_c89=no
3883 ac_save_CC=$CC
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886 $ac_c_conftest_c89_program
3887 _ACEOF
3888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3889 do
3890 CC="$ac_save_CC $ac_arg"
3891 if ac_fn_c_try_compile "$LINENO"
3892 then :
3893 ac_cv_prog_cc_c89=$ac_arg
3894 fi
3895 rm -f core conftest.err conftest.$ac_objext conftest.beam
3896 test "x$ac_cv_prog_cc_c89" != "xno" && break
3897 done
3898 rm -f conftest.$ac_ext
3899 CC=$ac_save_CC ;;
3900 esac
3901 fi
3902
3903 if test "x$ac_cv_prog_cc_c89" = xno
3904 then :
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3906 printf "%s\n" "unsupported" >&6; }
3907 else case e in #(
3908 e) if test "x$ac_cv_prog_cc_c89" = x
3909 then :
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3911 printf "%s\n" "none needed" >&6; }
3912 else case e in #(
3913 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3914 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3915 CC="$CC $ac_cv_prog_cc_c89" ;;
3916 esac
3917 fi
3918 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3919 ac_prog_cc_stdc=c89 ;;
3920 esac
3921 fi
3922 fi
3923
3924 ac_ext=c
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929
3930
3931
3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
3933 printf %s "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
3934
3935 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
3937 printf "%s\n" "loading" >&6; }
3938 . "${TCL_BIN_DIR}/tclConfig.sh"
3939 else
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
3941 printf "%s\n" "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
3942 fi
3943
3944 # If the TCL_BIN_DIR is the build directory (not the install directory),
3945 # then set the common variable name to the value of the build variables.
3946 # For example, the variable TCL_LIB_SPEC will be set to the value
3947 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
3948 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
3949 # installed and uninstalled version of Tcl.
3950 if test -f "${TCL_BIN_DIR}/Makefile" ; then
3951 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
3952 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
3953 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
3954 elif test "`uname -s`" = "Darwin"; then
3955 # If Tcl was built as a framework, attempt to use the libraries
3956 # from the framework at the given location so that linking works
3957 # against Tcl.framework installed in an arbitrary location.
3958 case ${TCL_DEFS} in
3959 *TCL_FRAMEWORK*)
3960 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
3961 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
3962 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
3963 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
3964 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
3965 break
3966 fi
3967 done
3968 fi
3969 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
3970 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
3971 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
3972 fi
3973 ;;
3974 esac
3975 fi
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking platform" >&5
3991 printf %s "checking platform... " >&6; }
3992 hold_cc=$CC; CC="$TCL_CC"
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995
3996 int
3997 main (void)
3998 {
3999
4000 #ifdef _WIN32
4001 #error win32
4002 #endif
4003
4004 ;
4005 return 0;
4006 }
4007 _ACEOF
4008 if ac_fn_c_try_compile "$LINENO"
4009 then :
4010
4011 # first test we've already retrieved platform (cross-compile), fallback to unix otherwise:
4012 TEA_PLATFORM="${TEA_PLATFORM-unix}"
4013 CYGPATH=echo
4014
4015 else case e in #(
4016 e)
4017 TEA_PLATFORM="windows"
4018 # Extract the first word of "cygpath", so it can be a program name with args.
4019 set dummy cygpath; ac_word=$2
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 printf %s "checking for $ac_word... " >&6; }
4022 if test ${ac_cv_prog_CYGPATH+y}
4023 then :
4024 printf %s "(cached) " >&6
4025 else case e in #(
4026 e) if test -n "$CYGPATH"; then
4027 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032 IFS=$as_save_IFS
4033 case $as_dir in #(((
4034 '') as_dir=./ ;;
4035 */) ;;
4036 *) as_dir=$as_dir/ ;;
4037 esac
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_CYGPATH="cygpath -m"
4041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044 done
4045 done
4046 IFS=$as_save_IFS
4047
4048 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
4049 fi ;;
4050 esac
4051 fi
4052 CYGPATH=$ac_cv_prog_CYGPATH
4053 if test -n "$CYGPATH"; then
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
4055 printf "%s\n" "$CYGPATH" >&6; }
4056 else
4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 printf "%s\n" "no" >&6; }
4059 fi
4060
4061
4062 ;;
4063 esac
4064 fi
4065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4066 CC=$hold_cc
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5
4068 printf "%s\n" "$TEA_PLATFORM" >&6; }
4069
4070 # The BUILD_$pkg is to define the correct extern storage class
4071 # handling when making this package
4072 # To be able to sefely use the package name in a #define, it must not
4073 # contain anything other than alphanumeric characters and underscores
4074 SAFE_PKG_NAME=itk
4075
4076 printf "%s\n" "#define BUILD_${SAFE_PKG_NAME} /**/" >>confdefs.h
4077
4078 # Do this here as we have fully defined TEA_PLATFORM now
4079 if test "${TEA_PLATFORM}" = "windows" ; then
4080 EXEEXT=".exe"
4081 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
4082 fi
4083
4084 # TEA specific:
4085
4086
4087
4088
4089
4090
4091
4092
4093 #--------------------------------------------------------------------
4094 # Load the tkConfig.sh file if necessary (Tk extension)
4095 #--------------------------------------------------------------------
4096
4097
4098 #
4099 # Ok, lets find the tk configuration
4100 # First, look for one uninstalled.
4101 # the alternative search directory is invoked by --with-tk
4102 #
4103
4104 if test x"${no_tk}" = x ; then
4105 # we reset no_tk in case something fails here
4106 no_tk=true
4107
4108 # Check whether --with-tk was given.
4109 if test ${with_tk+y}
4110 then :
4111 withval=$with_tk; with_tkconfig="${withval}"
4112 fi
4113
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
4115 printf %s "checking for Tk configuration... " >&6; }
4116 if test ${ac_cv_c_tkconfig+y}
4117 then :
4118 printf %s "(cached) " >&6
4119 else case e in #(
4120 e)
4121
4122 # First check to see if --with-tkconfig was specified.
4123 if test x"${with_tkconfig}" != x ; then
4124 case "${with_tkconfig}" in
4125 */tkConfig.sh )
4126 if test -f "${with_tkconfig}"; then
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5
4128 printf "%s\n" "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;}
4129 with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`"
4130 fi ;;
4131 esac
4132 if test -f "${with_tkconfig}/tkConfig.sh" ; then
4133 ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`"
4134 else
4135 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
4136 fi
4137 fi
4138
4139 # then check for a private Tk library
4140 if test x"${ac_cv_c_tkconfig}" = x ; then
4141 for i in \
4142 ../tk \
4143 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4144 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
4145 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
4146 ../../tk \
4147 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4148 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
4149 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
4150 ../../../tk \
4151 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4152 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
4153 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
4154 if test "${TEA_PLATFORM}" = "windows" \
4155 -a -f "$i/win/tkConfig.sh" ; then
4156 ac_cv_c_tkconfig="`(cd $i/win; pwd)`"
4157 break
4158 fi
4159 if test -f "$i/unix/tkConfig.sh" ; then
4160 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`"
4161 break
4162 fi
4163 done
4164 fi
4165
4166 # on Darwin, check in Framework installation locations
4167 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
4168 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
4169 `ls -d /Library/Frameworks 2>/dev/null` \
4170 `ls -d /Network/Library/Frameworks 2>/dev/null` \
4171 ; do
4172 if test -f "$i/Tk.framework/tkConfig.sh" ; then
4173 ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`"
4174 break
4175 fi
4176 done
4177 fi
4178
4179 # check in a few common install locations
4180 if test x"${ac_cv_c_tkconfig}" = x ; then
4181 for i in `ls -d ${libdir} 2>/dev/null` \
4182 `ls -d ${exec_prefix}/lib 2>/dev/null` \
4183 `ls -d ${prefix}/lib 2>/dev/null` \
4184 `ls -d /usr/local/lib 2>/dev/null` \
4185 `ls -d /usr/contrib/lib 2>/dev/null` \
4186 `ls -d /usr/pkg/lib 2>/dev/null` \
4187 `ls -d /usr/lib/tk9.1 2>/dev/null` \
4188 `ls -d /usr/lib/tk9.0 2>/dev/null` \
4189 `ls -d /usr/lib/tk8.6 2>/dev/null` \
4190 `ls -d /usr/lib/tk8.5 2>/dev/null` \
4191 `ls -d /usr/lib 2>/dev/null` \
4192 `ls -d /usr/lib64 2>/dev/null` \
4193 `ls -d /usr/local/lib/tk9.1 2>/dev/null` \
4194 `ls -d /usr/local/lib/tk9.0 2>/dev/null` \
4195 `ls -d /usr/local/lib/tk8.6 2>/dev/null` \
4196 `ls -d /usr/local/lib/tk8.5 2>/dev/null` \
4197 `ls -d /usr/local/lib/tcl/tk9.1 2>/dev/null` \
4198 `ls -d /usr/local/lib/tcl/tk9.0 2>/dev/null` \
4199 `ls -d /usr/local/lib/tcl/tk8.6 2>/dev/null` \
4200 `ls -d /usr/local/lib/tcl/tk8.5 2>/dev/null` \
4201 ; do
4202 if test -f "$i/tkConfig.sh" ; then
4203 ac_cv_c_tkconfig="`(cd $i; pwd)`"
4204 break
4205 fi
4206 done
4207 fi
4208
4209 # TEA specific: on Windows, check in common installation locations
4210 if test "${TEA_PLATFORM}" = "windows" \
4211 -a x"${ac_cv_c_tkconfig}" = x ; then
4212 for i in `ls -d C:/Tcl/lib 2>/dev/null` \
4213 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
4214 ; do
4215 if test -f "$i/tkConfig.sh" ; then
4216 ac_cv_c_tkconfig="`(cd $i; pwd)`"
4217 break
4218 fi
4219 done
4220 fi
4221
4222 # check in a few other private locations
4223 if test x"${ac_cv_c_tkconfig}" = x ; then
4224 for i in \
4225 ${srcdir}/../tk \
4226 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4227 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
4228 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
4229 if test "${TEA_PLATFORM}" = "windows" \
4230 -a -f "$i/win/tkConfig.sh" ; then
4231 ac_cv_c_tkconfig="`(cd $i/win; pwd)`"
4232 break
4233 fi
4234 if test -f "$i/unix/tkConfig.sh" ; then
4235 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`"
4236 break
4237 fi
4238 done
4239 fi
4240 ;;
4241 esac
4242 fi
4243
4244
4245 if test x"${ac_cv_c_tkconfig}" = x ; then
4246 TK_BIN_DIR="# no Tk configs found"
4247 as_fn_error $? "Can't find Tk configuration definitions. Use --with-tk to specify a directory containing tkConfig.sh" "$LINENO" 5
4248 else
4249 no_tk=
4250 TK_BIN_DIR="${ac_cv_c_tkconfig}"
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
4252 printf "%s\n" "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
4253 fi
4254 fi
4255
4256
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
4258 printf %s "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
4259
4260 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
4262 printf "%s\n" "loading" >&6; }
4263 . "${TK_BIN_DIR}/tkConfig.sh"
4264 else
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
4266 printf "%s\n" "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
4267 fi
4268
4269 # If the TK_BIN_DIR is the build directory (not the install directory),
4270 # then set the common variable name to the value of the build variables.
4271 # For example, the variable TK_LIB_SPEC will be set to the value
4272 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
4273 # instead of TK_BUILD_LIB_SPEC since it will work with both an
4274 # installed and uninstalled version of Tcl.
4275 if test -f "${TK_BIN_DIR}/Makefile" ; then
4276 TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}"
4277 TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}"
4278 TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}"
4279 elif test "`uname -s`" = "Darwin"; then
4280 # If Tk was built as a framework, attempt to use the libraries
4281 # from the framework at the given location so that linking works
4282 # against Tk.framework installed in an arbitrary location.
4283 case ${TK_DEFS} in
4284 *TK_FRAMEWORK*)
4285 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
4286 for i in "`cd "${TK_BIN_DIR}"; pwd`" \
4287 "`cd "${TK_BIN_DIR}"/../..; pwd`"; do
4288 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
4289 TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}"
4290 break
4291 fi
4292 done
4293 fi
4294 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
4295 TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}"
4296 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
4297 fi
4298 ;;
4299 esac
4300 fi
4301
4302 # TEA specific: Ensure windowingsystem is defined
4303 if test "${TEA_PLATFORM}" = "unix" ; then
4304 case ${TK_DEFS} in
4305 *MAC_OSX_TK*)
4306
4307 printf "%s\n" "#define MAC_OSX_TK 1" >>confdefs.h
4308
4309 TEA_WINDOWINGSYSTEM="aqua"
4310 ;;
4311 *)
4312 TEA_WINDOWINGSYSTEM="x11"
4313 ;;
4314 esac
4315 elif test "${TEA_PLATFORM}" = "windows" ; then
4316 TEA_WINDOWINGSYSTEM="win32"
4317 fi
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331 # TEA specific:
4332
4333
4334
4335
4336 #--------------------------------------------------------------------
4337 # Load the itclConfig.sh file
4338 #--------------------------------------------------------------------
4339
4340
4341 #
4342 # Ok, lets find the itcl configuration
4343 # First, look for one uninstalled.
4344 # the alternative search directory is invoked by --with-itcl
4345 #
4346
4347 if test x"${no_itcl}" = x ; then
4348 # we reset no_itcl in case something fails here
4349 no_itcl=true
4350
4351 # Check whether --with-itcl was given.
4352 if test ${with_itcl+y}
4353 then :
4354 withval=$with_itcl; with_itclconfig=${withval}
4355 fi
4356
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for itcl configuration" >&5
4358 printf %s "checking for itcl configuration... " >&6; }
4359 if test ${ac_cv_c_itclconfig+y}
4360 then :
4361 printf %s "(cached) " >&6
4362 else case e in #(
4363 e)
4364
4365 # First check to see if --with-itcl was specified.
4366 if test x"${with_itclconfig}" != x ; then
4367 case ${with_itclconfig} in
4368 */itclConfig.sh )
4369 if test -f ${with_itclconfig}; then
4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-itcl argument should refer to directory containing itclConfig.sh, not to itclConfig.sh itself" >&5
4371 printf "%s\n" "$as_me: WARNING: --with-itcl argument should refer to directory containing itclConfig.sh, not to itclConfig.sh itself" >&2;}
4372 with_itclconfig=`echo ${with_itclconfig} | sed 's!/itclConfig\.sh$!!'`
4373 fi;;
4374 esac
4375 if test -f "${with_itclconfig}/itclConfig.sh" ; then
4376 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
4377 else
4378 as_fn_error $? "${with_itclconfig} directory doesn't contain itclConfig.sh" "$LINENO" 5
4379 fi
4380 fi
4381
4382 # then check for a private itcl installation
4383 if test x"${ac_cv_c_itclconfig}" = x ; then
4384 for i in \
4385 ../itcl \
4386 `ls -dr ../itcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
4387 `ls -dr ../itcl*[0-9].[0-9][0-9] 2>/dev/null` \
4388 `ls -dr ../itcl*[0-9].[0-9] 2>/dev/null` \
4389 `ls -dr ../itcl*[0-9].[0-9]* 2>/dev/null` \
4390 ../../itcl \
4391 `ls -dr ../../itcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
4392 `ls -dr ../../itcl*[0-9].[0-9][0-9] 2>/dev/null` \
4393 `ls -dr ../../itcl*[0-9].[0-9] 2>/dev/null` \
4394 `ls -dr ../../itcl*[0-9].[0-9]* 2>/dev/null` \
4395 ../../../itcl \
4396 `ls -dr ../../../itcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
4397 `ls -dr ../../../itcl*[0-9].[0-9][0-9] 2>/dev/null` \
4398 `ls -dr ../../../itcl*[0-9].[0-9] 2>/dev/null` \
4399 `ls -dr ../../../itcl*[0-9].[0-9]* 2>/dev/null` \
4400 ${srcdir}/../itcl \
4401 `ls -dr ${srcdir}/../itcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
4402 `ls -dr ${srcdir}/../itcl*[0-9].[0-9][0-9] 2>/dev/null` \
4403 `ls -dr ${srcdir}/../itcl*[0-9].[0-9] 2>/dev/null` \
4404 `ls -dr ${srcdir}/../itcl*[0-9].[0-9]* 2>/dev/null` \
4405 ; do
4406 if test -f "$i/itclConfig.sh" ; then
4407 ac_cv_c_itclconfig=`(cd $i; pwd)`
4408 break
4409 fi
4410 if test -f "$i/unix/itclConfig.sh" ; then
4411 ac_cv_c_itclconfig=`(cd $i/unix; pwd)`
4412 break
4413 fi
4414 done
4415 fi
4416
4417 # check in a few common install locations
4418 if test x"${ac_cv_c_itclconfig}" = x ; then
4419 for i in `ls -d ${libdir} 2>/dev/null` \
4420 `ls -d ${exec_prefix}/lib 2>/dev/null` \
4421 `ls -d ${prefix}/lib 2>/dev/null` \
4422 `ls -d /usr/local/lib 2>/dev/null` \
4423 `ls -d /usr/contrib/lib 2>/dev/null` \
4424 `ls -d /usr/pkg/lib 2>/dev/null` \
4425 `ls -d /usr/lib 2>/dev/null` \
4426 `ls -d /usr/lib64 2>/dev/null` \
4427 ; do
4428 if test -f "$i/itclConfig.sh" ; then
4429 ac_cv_c_itclconfig=`(cd $i; pwd)`
4430 break
4431 fi
4432 done
4433 fi
4434 ;;
4435 esac
4436 fi
4437
4438
4439 if test x"${ac_cv_c_itclconfig}" = x ; then
4440 itcl_BIN_DIR="# no itcl configs found"
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find itcl configuration definitions" >&5
4442 printf "%s\n" "$as_me: WARNING: Cannot find itcl configuration definitions" >&2;}
4443 exit 0
4444 else
4445 no_itcl=
4446 itcl_BIN_DIR=${ac_cv_c_itclconfig}
4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $itcl_BIN_DIR/itclConfig.sh" >&5
4448 printf "%s\n" "found $itcl_BIN_DIR/itclConfig.sh" >&6; }
4449 fi
4450 fi
4451
4452
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${itcl_BIN_DIR}/itclConfig.sh" >&5
4454 printf %s "checking for existence of ${itcl_BIN_DIR}/itclConfig.sh... " >&6; }
4455
4456 if test -f "${itcl_BIN_DIR}/itclConfig.sh" ; then
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
4458 printf "%s\n" "loading" >&6; }
4459 . "${itcl_BIN_DIR}/itclConfig.sh"
4460 else
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
4462 printf "%s\n" "file not found" >&6; }
4463 fi
4464
4465 #
4466 # If the itcl_BIN_DIR is the build directory (not the install directory),
4467 # then set the common variable name to the value of the build variables.
4468 # For example, the variable itcl_LIB_SPEC will be set to the value
4469 # of itcl_BUILD_LIB_SPEC. An extension should make use of itcl_LIB_SPEC
4470 # instead of itcl_BUILD_LIB_SPEC since it will work with both an
4471 # installed and uninstalled version of Tcl.
4472 #
4473
4474 if test -f "${itcl_BIN_DIR}/Makefile" ; then
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found Makefile - using build library specs for itcl" >&5
4476 printf "%s\n" "$as_me: WARNING: Found Makefile - using build library specs for itcl" >&2;}
4477 itcl_LIB_SPEC=${itcl_BUILD_LIB_SPEC}
4478 itcl_STUB_LIB_SPEC=${itcl_BUILD_STUB_LIB_SPEC}
4479 itcl_STUB_LIB_PATH=${itcl_BUILD_STUB_LIB_PATH}
4480 itcl_INCLUDE_SPEC=${itcl_BUILD_INCLUDE_SPEC}
4481 itcl_LIBRARY_PATH=${itcl_LIBRARY_PATH}
4482 fi
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495 # Allow the caller to prevent this auto-check by specifying any 2nd arg
4496 if test "x" = x
4497 then :
4498
4499 # Check both upper and lower-case variants
4500 # If a dev wanted non-stubs libs, this function could take an option
4501 # to not use _STUB in the paths below
4502 if test "x${itcl_STUB_LIB_SPEC}" = x
4503 then :
4504
4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For ITCL_STUB library for LIBS" >&5
4506 printf %s "checking For ITCL_STUB library for LIBS... " >&6; }
4507 # This simplifies the use of stub libraries by automatically adding
4508 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
4509 # but this is called before CONFIG_CFLAGS. More importantly, this adds
4510 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
4511 if test "x${ITCL_STUB_LIB_SPEC}" != "x" ; then
4512 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
4513
4514 vars="\"`${CYGPATH} ${ITCL_STUB_LIB_PATH}`\""
4515 for i in $vars; do
4516 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
4517 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
4518 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
4519 fi
4520 PKG_LIBS="$PKG_LIBS $i"
4521 done
4522
4523
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using ITCL_STUB_LIB_PATH ${ITCL_STUB_LIB_PATH}" >&5
4525 printf "%s\n" "using ITCL_STUB_LIB_PATH ${ITCL_STUB_LIB_PATH}" >&6; }
4526 else
4527
4528 vars="${ITCL_STUB_LIB_SPEC}"
4529 for i in $vars; do
4530 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
4531 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
4532 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
4533 fi
4534 PKG_LIBS="$PKG_LIBS $i"
4535 done
4536
4537
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using ITCL_STUB_LIB_SPEC ${ITCL_STUB_LIB_SPEC}" >&5
4539 printf "%s\n" "using ITCL_STUB_LIB_SPEC ${ITCL_STUB_LIB_SPEC}" >&6; }
4540 fi
4541 else
4542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
4543 printf "%s\n" "file not found" >&6; }
4544 fi
4545
4546 else case e in #(
4547 e)
4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For itcl_STUB library for LIBS" >&5
4549 printf %s "checking For itcl_STUB library for LIBS... " >&6; }
4550 # This simplifies the use of stub libraries by automatically adding
4551 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
4552 # but this is called before CONFIG_CFLAGS. More importantly, this adds
4553 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
4554 if test "x${itcl_STUB_LIB_SPEC}" != "x" ; then
4555 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
4556
4557 vars="\"`${CYGPATH} ${itcl_STUB_LIB_PATH}`\""
4558 for i in $vars; do
4559 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
4560 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
4561 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
4562 fi
4563 PKG_LIBS="$PKG_LIBS $i"
4564 done
4565
4566
4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using itcl_STUB_LIB_PATH ${itcl_STUB_LIB_PATH}" >&5
4568 printf "%s\n" "using itcl_STUB_LIB_PATH ${itcl_STUB_LIB_PATH}" >&6; }
4569 else
4570
4571 vars="${itcl_STUB_LIB_SPEC}"
4572 for i in $vars; do
4573 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
4574 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
4575 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
4576 fi
4577 PKG_LIBS="$PKG_LIBS $i"
4578 done
4579
4580
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using itcl_STUB_LIB_SPEC ${itcl_STUB_LIB_SPEC}" >&5
4582 printf "%s\n" "using itcl_STUB_LIB_SPEC ${itcl_STUB_LIB_SPEC}" >&6; }
4583 fi
4584 else
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
4586 printf "%s\n" "file not found" >&6; }
4587 fi
4588 ;;
4589 esac
4590 fi
4591
4592 fi
4593
4594
4595 ITCL_INCLUDES="-I\"`${CYGPATH} ${itcl_SRC_DIR}/generic`\""
4596
4597 #-----------------------------------------------------------------------
4598 # Handle the --prefix=... option by defaulting to what Tcl gave.
4599 # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
4600 #-----------------------------------------------------------------------
4601
4602
4603 if test "${prefix}" = "NONE"; then
4604 prefix_default=yes
4605 if test x"${TCL_PREFIX}" != x; then
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
4607 printf "%s\n" "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
4608 prefix=${TCL_PREFIX}
4609 else
4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5
4611 printf "%s\n" "$as_me: --prefix defaulting to /usr/local" >&6;}
4612 prefix=/usr/local
4613 fi
4614 fi
4615 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
4616 -o x"${exec_prefix_default}" = x"yes" ; then
4617 if test x"${TCL_EXEC_PREFIX}" != x; then
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
4619 printf "%s\n" "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
4620 exec_prefix=${TCL_EXEC_PREFIX}
4621 else
4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5
4623 printf "%s\n" "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
4624 exec_prefix=$prefix
4625 fi
4626 fi
4627
4628
4629 #-----------------------------------------------------------------------
4630 # Standard compiler checks.
4631 # This sets up CC by using the CC env var, or looks for gcc otherwise.
4632 # This also calls AC_PROG_CC and a few others to create the basic setup
4633 # necessary to compile executables.
4634 #-----------------------------------------------------------------------
4635
4636
4637 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
4638 # in this macro, they need to go into TEA_SETUP_COMPILER instead.
4639
4640 ac_ext=c
4641 ac_cpp='$CPP $CPPFLAGS'
4642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4645 if test -n "$ac_tool_prefix"; then
4646 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4647 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 printf %s "checking for $ac_word... " >&6; }
4650 if test ${ac_cv_prog_CC+y}
4651 then :
4652 printf %s "(cached) " >&6
4653 else case e in #(
4654 e) if test -n "$CC"; then
4655 ac_cv_prog_CC="$CC" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660 IFS=$as_save_IFS
4661 case $as_dir in #(((
4662 '') as_dir=./ ;;
4663 */) ;;
4664 *) as_dir=$as_dir/ ;;
4665 esac
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672 done
4673 done
4674 IFS=$as_save_IFS
4675
4676 fi ;;
4677 esac
4678 fi
4679 CC=$ac_cv_prog_CC
4680 if test -n "$CC"; then
4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4682 printf "%s\n" "$CC" >&6; }
4683 else
4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 printf "%s\n" "no" >&6; }
4686 fi
4687
4688
4689 fi
4690 if test -z "$ac_cv_prog_CC"; then
4691 ac_ct_CC=$CC
4692 # Extract the first word of "gcc", so it can be a program name with args.
4693 set dummy gcc; ac_word=$2
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 printf %s "checking for $ac_word... " >&6; }
4696 if test ${ac_cv_prog_ac_ct_CC+y}
4697 then :
4698 printf %s "(cached) " >&6
4699 else case e in #(
4700 e) if test -n "$ac_ct_CC"; then
4701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706 IFS=$as_save_IFS
4707 case $as_dir in #(((
4708 '') as_dir=./ ;;
4709 */) ;;
4710 *) as_dir=$as_dir/ ;;
4711 esac
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4714 ac_cv_prog_ac_ct_CC="gcc"
4715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722 fi ;;
4723 esac
4724 fi
4725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4726 if test -n "$ac_ct_CC"; then
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4728 printf "%s\n" "$ac_ct_CC" >&6; }
4729 else
4730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4731 printf "%s\n" "no" >&6; }
4732 fi
4733
4734 if test "x$ac_ct_CC" = x; then
4735 CC=""
4736 else
4737 case $cross_compiling:$ac_tool_warned in
4738 yes:)
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4740 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4741 ac_tool_warned=yes ;;
4742 esac
4743 CC=$ac_ct_CC
4744 fi
4745 else
4746 CC="$ac_cv_prog_CC"
4747 fi
4748
4749 if test -z "$CC"; then
4750 if test -n "$ac_tool_prefix"; then
4751 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4752 set dummy ${ac_tool_prefix}cc; ac_word=$2
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 printf %s "checking for $ac_word... " >&6; }
4755 if test ${ac_cv_prog_CC+y}
4756 then :
4757 printf %s "(cached) " >&6
4758 else case e in #(
4759 e) if test -n "$CC"; then
4760 ac_cv_prog_CC="$CC" # Let the user override the test.
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765 IFS=$as_save_IFS
4766 case $as_dir in #(((
4767 '') as_dir=./ ;;
4768 */) ;;
4769 *) as_dir=$as_dir/ ;;
4770 esac
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4773 ac_cv_prog_CC="${ac_tool_prefix}cc"
4774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777 done
4778 done
4779 IFS=$as_save_IFS
4780
4781 fi ;;
4782 esac
4783 fi
4784 CC=$ac_cv_prog_CC
4785 if test -n "$CC"; then
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4787 printf "%s\n" "$CC" >&6; }
4788 else
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 printf "%s\n" "no" >&6; }
4791 fi
4792
4793
4794 fi
4795 fi
4796 if test -z "$CC"; then
4797 # Extract the first word of "cc", so it can be a program name with args.
4798 set dummy cc; ac_word=$2
4799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 printf %s "checking for $ac_word... " >&6; }
4801 if test ${ac_cv_prog_CC+y}
4802 then :
4803 printf %s "(cached) " >&6
4804 else case e in #(
4805 e) if test -n "$CC"; then
4806 ac_cv_prog_CC="$CC" # Let the user override the test.
4807 else
4808 ac_prog_rejected=no
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812 IFS=$as_save_IFS
4813 case $as_dir in #(((
4814 '') as_dir=./ ;;
4815 */) ;;
4816 *) as_dir=$as_dir/ ;;
4817 esac
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4820 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4821 ac_prog_rejected=yes
4822 continue
4823 fi
4824 ac_cv_prog_CC="cc"
4825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4826 break 2
4827 fi
4828 done
4829 done
4830 IFS=$as_save_IFS
4831
4832 if test $ac_prog_rejected = yes; then
4833 # We found a bogon in the path, so make sure we never use it.
4834 set dummy $ac_cv_prog_CC
4835 shift
4836 if test $# != 0; then
4837 # We chose a different compiler from the bogus one.
4838 # However, it has the same basename, so the bogon will be chosen
4839 # first if we set CC to just the basename; use the full file name.
4840 shift
4841 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4842 fi
4843 fi
4844 fi ;;
4845 esac
4846 fi
4847 CC=$ac_cv_prog_CC
4848 if test -n "$CC"; then
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4850 printf "%s\n" "$CC" >&6; }
4851 else
4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 printf "%s\n" "no" >&6; }
4854 fi
4855
4856
4857 fi
4858 if test -z "$CC"; then
4859 if test -n "$ac_tool_prefix"; then
4860 for ac_prog in cl.exe
4861 do
4862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 printf %s "checking for $ac_word... " >&6; }
4866 if test ${ac_cv_prog_CC+y}
4867 then :
4868 printf %s "(cached) " >&6
4869 else case e in #(
4870 e) if test -n "$CC"; then
4871 ac_cv_prog_CC="$CC" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876 IFS=$as_save_IFS
4877 case $as_dir in #(((
4878 '') as_dir=./ ;;
4879 */) ;;
4880 *) as_dir=$as_dir/ ;;
4881 esac
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4886 break 2
4887 fi
4888 done
4889 done
4890 IFS=$as_save_IFS
4891
4892 fi ;;
4893 esac
4894 fi
4895 CC=$ac_cv_prog_CC
4896 if test -n "$CC"; then
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4898 printf "%s\n" "$CC" >&6; }
4899 else
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 printf "%s\n" "no" >&6; }
4902 fi
4903
4904
4905 test -n "$CC" && break
4906 done
4907 fi
4908 if test -z "$CC"; then
4909 ac_ct_CC=$CC
4910 for ac_prog in cl.exe
4911 do
4912 # Extract the first word of "$ac_prog", so it can be a program name with args.
4913 set dummy $ac_prog; ac_word=$2
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 printf %s "checking for $ac_word... " >&6; }
4916 if test ${ac_cv_prog_ac_ct_CC+y}
4917 then :
4918 printf %s "(cached) " >&6
4919 else case e in #(
4920 e) if test -n "$ac_ct_CC"; then
4921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4925 do
4926 IFS=$as_save_IFS
4927 case $as_dir in #(((
4928 '') as_dir=./ ;;
4929 */) ;;
4930 *) as_dir=$as_dir/ ;;
4931 esac
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4934 ac_cv_prog_ac_ct_CC="$ac_prog"
4935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4936 break 2
4937 fi
4938 done
4939 done
4940 IFS=$as_save_IFS
4941
4942 fi ;;
4943 esac
4944 fi
4945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4946 if test -n "$ac_ct_CC"; then
4947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4948 printf "%s\n" "$ac_ct_CC" >&6; }
4949 else
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 printf "%s\n" "no" >&6; }
4952 fi
4953
4954
4955 test -n "$ac_ct_CC" && break
4956 done
4957
4958 if test "x$ac_ct_CC" = x; then
4959 CC=""
4960 else
4961 case $cross_compiling:$ac_tool_warned in
4962 yes:)
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4964 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965 ac_tool_warned=yes ;;
4966 esac
4967 CC=$ac_ct_CC
4968 fi
4969 fi
4970
4971 fi
4972 if test -z "$CC"; then
4973 if test -n "$ac_tool_prefix"; then
4974 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4975 set dummy ${ac_tool_prefix}clang; ac_word=$2
4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 printf %s "checking for $ac_word... " >&6; }
4978 if test ${ac_cv_prog_CC+y}
4979 then :
4980 printf %s "(cached) " >&6
4981 else case e in #(
4982 e) if test -n "$CC"; then
4983 ac_cv_prog_CC="$CC" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988 IFS=$as_save_IFS
4989 case $as_dir in #(((
4990 '') as_dir=./ ;;
4991 */) ;;
4992 *) as_dir=$as_dir/ ;;
4993 esac
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_CC="${ac_tool_prefix}clang"
4997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000 done
5001 done
5002 IFS=$as_save_IFS
5003
5004 fi ;;
5005 esac
5006 fi
5007 CC=$ac_cv_prog_CC
5008 if test -n "$CC"; then
5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5010 printf "%s\n" "$CC" >&6; }
5011 else
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 printf "%s\n" "no" >&6; }
5014 fi
5015
5016
5017 fi
5018 if test -z "$ac_cv_prog_CC"; then
5019 ac_ct_CC=$CC
5020 # Extract the first word of "clang", so it can be a program name with args.
5021 set dummy clang; ac_word=$2
5022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 printf %s "checking for $ac_word... " >&6; }
5024 if test ${ac_cv_prog_ac_ct_CC+y}
5025 then :
5026 printf %s "(cached) " >&6
5027 else case e in #(
5028 e) if test -n "$ac_ct_CC"; then
5029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034 IFS=$as_save_IFS
5035 case $as_dir in #(((
5036 '') as_dir=./ ;;
5037 */) ;;
5038 *) as_dir=$as_dir/ ;;
5039 esac
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5042 ac_cv_prog_ac_ct_CC="clang"
5043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5044 break 2
5045 fi
5046 done
5047 done
5048 IFS=$as_save_IFS
5049
5050 fi ;;
5051 esac
5052 fi
5053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5054 if test -n "$ac_ct_CC"; then
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5056 printf "%s\n" "$ac_ct_CC" >&6; }
5057 else
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 printf "%s\n" "no" >&6; }
5060 fi
5061
5062 if test "x$ac_ct_CC" = x; then
5063 CC=""
5064 else
5065 case $cross_compiling:$ac_tool_warned in
5066 yes:)
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5068 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5069 ac_tool_warned=yes ;;
5070 esac
5071 CC=$ac_ct_CC
5072 fi
5073 else
5074 CC="$ac_cv_prog_CC"
5075 fi
5076
5077 fi
5078
5079
5080 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5081 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5082 as_fn_error $? "no acceptable C compiler found in \$PATH
5083 See 'config.log' for more details" "$LINENO" 5; }
5084
5085 # Provide some information about the compiler.
5086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5087 set X $ac_compile
5088 ac_compiler=$2
5089 for ac_option in --version -v -V -qversion -version; do
5090 { { ac_try="$ac_compiler $ac_option >&5"
5091 case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094 esac
5095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5096 printf "%s\n" "$ac_try_echo"; } >&5
5097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5098 ac_status=$?
5099 if test -s conftest.err; then
5100 sed '10a\
5101 ... rest of stderr output deleted ...
5102 10q' conftest.err >conftest.er1
5103 cat conftest.er1 >&5
5104 fi
5105 rm -f conftest.er1 conftest.err
5106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5107 test $ac_status = 0; }
5108 done
5109
5110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5111 printf %s "checking whether the compiler supports GNU C... " >&6; }
5112 if test ${ac_cv_c_compiler_gnu+y}
5113 then :
5114 printf %s "(cached) " >&6
5115 else case e in #(
5116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118
5119 int
5120 main (void)
5121 {
5122 #ifndef __GNUC__
5123 choke me
5124 #endif
5125
5126 ;
5127 return 0;
5128 }
5129 _ACEOF
5130 if ac_fn_c_try_compile "$LINENO"
5131 then :
5132 ac_compiler_gnu=yes
5133 else case e in #(
5134 e) ac_compiler_gnu=no ;;
5135 esac
5136 fi
5137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5138 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5139 ;;
5140 esac
5141 fi
5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5143 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145
5146 if test $ac_compiler_gnu = yes; then
5147 GCC=yes
5148 else
5149 GCC=
5150 fi
5151 ac_test_CFLAGS=${CFLAGS+y}
5152 ac_save_CFLAGS=$CFLAGS
5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5154 printf %s "checking whether $CC accepts -g... " >&6; }
5155 if test ${ac_cv_prog_cc_g+y}
5156 then :
5157 printf %s "(cached) " >&6
5158 else case e in #(
5159 e) ac_save_c_werror_flag=$ac_c_werror_flag
5160 ac_c_werror_flag=yes
5161 ac_cv_prog_cc_g=no
5162 CFLAGS="-g"
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5165
5166 int
5167 main (void)
5168 {
5169
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 if ac_fn_c_try_compile "$LINENO"
5175 then :
5176 ac_cv_prog_cc_g=yes
5177 else case e in #(
5178 e) CFLAGS=""
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181
5182 int
5183 main (void)
5184 {
5185
5186 ;
5187 return 0;
5188 }
5189 _ACEOF
5190 if ac_fn_c_try_compile "$LINENO"
5191 then :
5192
5193 else case e in #(
5194 e) ac_c_werror_flag=$ac_save_c_werror_flag
5195 CFLAGS="-g"
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198
5199 int
5200 main (void)
5201 {
5202
5203 ;
5204 return 0;
5205 }
5206 _ACEOF
5207 if ac_fn_c_try_compile "$LINENO"
5208 then :
5209 ac_cv_prog_cc_g=yes
5210 fi
5211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5212 esac
5213 fi
5214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5215 esac
5216 fi
5217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5218 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5219 esac
5220 fi
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5222 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5223 if test $ac_test_CFLAGS; then
5224 CFLAGS=$ac_save_CFLAGS
5225 elif test $ac_cv_prog_cc_g = yes; then
5226 if test "$GCC" = yes; then
5227 CFLAGS="-g -O2"
5228 else
5229 CFLAGS="-g"
5230 fi
5231 else
5232 if test "$GCC" = yes; then
5233 CFLAGS="-O2"
5234 else
5235 CFLAGS=
5236 fi
5237 fi
5238 ac_prog_cc_stdc=no
5239 if test x$ac_prog_cc_stdc = xno
5240 then :
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5242 printf %s "checking for $CC option to enable C11 features... " >&6; }
5243 if test ${ac_cv_prog_cc_c11+y}
5244 then :
5245 printf %s "(cached) " >&6
5246 else case e in #(
5247 e) ac_cv_prog_cc_c11=no
5248 ac_save_CC=$CC
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 $ac_c_conftest_c11_program
5252 _ACEOF
5253 for ac_arg in '' -std=gnu11
5254 do
5255 CC="$ac_save_CC $ac_arg"
5256 if ac_fn_c_try_compile "$LINENO"
5257 then :
5258 ac_cv_prog_cc_c11=$ac_arg
5259 fi
5260 rm -f core conftest.err conftest.$ac_objext conftest.beam
5261 test "x$ac_cv_prog_cc_c11" != "xno" && break
5262 done
5263 rm -f conftest.$ac_ext
5264 CC=$ac_save_CC ;;
5265 esac
5266 fi
5267
5268 if test "x$ac_cv_prog_cc_c11" = xno
5269 then :
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5271 printf "%s\n" "unsupported" >&6; }
5272 else case e in #(
5273 e) if test "x$ac_cv_prog_cc_c11" = x
5274 then :
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5276 printf "%s\n" "none needed" >&6; }
5277 else case e in #(
5278 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5279 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5280 CC="$CC $ac_cv_prog_cc_c11" ;;
5281 esac
5282 fi
5283 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5284 ac_prog_cc_stdc=c11 ;;
5285 esac
5286 fi
5287 fi
5288 if test x$ac_prog_cc_stdc = xno
5289 then :
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5291 printf %s "checking for $CC option to enable C99 features... " >&6; }
5292 if test ${ac_cv_prog_cc_c99+y}
5293 then :
5294 printf %s "(cached) " >&6
5295 else case e in #(
5296 e) ac_cv_prog_cc_c99=no
5297 ac_save_CC=$CC
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300 $ac_c_conftest_c99_program
5301 _ACEOF
5302 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5303 do
5304 CC="$ac_save_CC $ac_arg"
5305 if ac_fn_c_try_compile "$LINENO"
5306 then :
5307 ac_cv_prog_cc_c99=$ac_arg
5308 fi
5309 rm -f core conftest.err conftest.$ac_objext conftest.beam
5310 test "x$ac_cv_prog_cc_c99" != "xno" && break
5311 done
5312 rm -f conftest.$ac_ext
5313 CC=$ac_save_CC ;;
5314 esac
5315 fi
5316
5317 if test "x$ac_cv_prog_cc_c99" = xno
5318 then :
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5320 printf "%s\n" "unsupported" >&6; }
5321 else case e in #(
5322 e) if test "x$ac_cv_prog_cc_c99" = x
5323 then :
5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5325 printf "%s\n" "none needed" >&6; }
5326 else case e in #(
5327 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5328 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5329 CC="$CC $ac_cv_prog_cc_c99" ;;
5330 esac
5331 fi
5332 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5333 ac_prog_cc_stdc=c99 ;;
5334 esac
5335 fi
5336 fi
5337 if test x$ac_prog_cc_stdc = xno
5338 then :
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5340 printf %s "checking for $CC option to enable C89 features... " >&6; }
5341 if test ${ac_cv_prog_cc_c89+y}
5342 then :
5343 printf %s "(cached) " >&6
5344 else case e in #(
5345 e) ac_cv_prog_cc_c89=no
5346 ac_save_CC=$CC
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 $ac_c_conftest_c89_program
5350 _ACEOF
5351 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5352 do
5353 CC="$ac_save_CC $ac_arg"
5354 if ac_fn_c_try_compile "$LINENO"
5355 then :
5356 ac_cv_prog_cc_c89=$ac_arg
5357 fi
5358 rm -f core conftest.err conftest.$ac_objext conftest.beam
5359 test "x$ac_cv_prog_cc_c89" != "xno" && break
5360 done
5361 rm -f conftest.$ac_ext
5362 CC=$ac_save_CC ;;
5363 esac
5364 fi
5365
5366 if test "x$ac_cv_prog_cc_c89" = xno
5367 then :
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5369 printf "%s\n" "unsupported" >&6; }
5370 else case e in #(
5371 e) if test "x$ac_cv_prog_cc_c89" = x
5372 then :
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5374 printf "%s\n" "none needed" >&6; }
5375 else case e in #(
5376 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5377 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5378 CC="$CC $ac_cv_prog_cc_c89" ;;
5379 esac
5380 fi
5381 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5382 ac_prog_cc_stdc=c89 ;;
5383 esac
5384 fi
5385 fi
5386
5387 ac_ext=c
5388 ac_cpp='$CPP $CPPFLAGS'
5389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5392
5393 ac_ext=c
5394 ac_cpp='$CPP $CPPFLAGS'
5395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5399 printf %s "checking how to run the C preprocessor... " >&6; }
5400 # On Suns, sometimes $CPP names a directory.
5401 if test -n "$CPP" && test -d "$CPP"; then
5402 CPP=
5403 fi
5404 if test -z "$CPP"; then
5405 if test ${ac_cv_prog_CPP+y}
5406 then :
5407 printf %s "(cached) " >&6
5408 else case e in #(
5409 e) # Double quotes because $CC needs to be expanded
5410 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5411 do
5412 ac_preproc_ok=false
5413 for ac_c_preproc_warn_flag in '' yes
5414 do
5415 # Use a header file that comes with gcc, so configuring glibc
5416 # with a fresh cross-compiler works.
5417 # On the NeXT, cc -E runs the code through the compiler's parser,
5418 # not just through cpp. "Syntax error" is here to catch this case.
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5421 #include <limits.h>
5422 Syntax error
5423 _ACEOF
5424 if ac_fn_c_try_cpp "$LINENO"
5425 then :
5426
5427 else case e in #(
5428 e) # Broken: fails on valid input.
5429 continue ;;
5430 esac
5431 fi
5432 rm -f conftest.err conftest.i conftest.$ac_ext
5433
5434 # OK, works on sane cases. Now check whether nonexistent headers
5435 # can be detected and how.
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 #include <ac_nonexistent.h>
5439 _ACEOF
5440 if ac_fn_c_try_cpp "$LINENO"
5441 then :
5442 # Broken: success on invalid input.
5443 continue
5444 else case e in #(
5445 e) # Passes both tests.
5446 ac_preproc_ok=:
5447 break ;;
5448 esac
5449 fi
5450 rm -f conftest.err conftest.i conftest.$ac_ext
5451
5452 done
5453 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5454 rm -f conftest.i conftest.err conftest.$ac_ext
5455 if $ac_preproc_ok
5456 then :
5457 break
5458 fi
5459
5460 done
5461 ac_cv_prog_CPP=$CPP
5462 ;;
5463 esac
5464 fi
5465 CPP=$ac_cv_prog_CPP
5466 else
5467 ac_cv_prog_CPP=$CPP
5468 fi
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5470 printf "%s\n" "$CPP" >&6; }
5471 ac_preproc_ok=false
5472 for ac_c_preproc_warn_flag in '' yes
5473 do
5474 # Use a header file that comes with gcc, so configuring glibc
5475 # with a fresh cross-compiler works.
5476 # On the NeXT, cc -E runs the code through the compiler's parser,
5477 # not just through cpp. "Syntax error" is here to catch this case.
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 #include <limits.h>
5481 Syntax error
5482 _ACEOF
5483 if ac_fn_c_try_cpp "$LINENO"
5484 then :
5485
5486 else case e in #(
5487 e) # Broken: fails on valid input.
5488 continue ;;
5489 esac
5490 fi
5491 rm -f conftest.err conftest.i conftest.$ac_ext
5492
5493 # OK, works on sane cases. Now check whether nonexistent headers
5494 # can be detected and how.
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5497 #include <ac_nonexistent.h>
5498 _ACEOF
5499 if ac_fn_c_try_cpp "$LINENO"
5500 then :
5501 # Broken: success on invalid input.
5502 continue
5503 else case e in #(
5504 e) # Passes both tests.
5505 ac_preproc_ok=:
5506 break ;;
5507 esac
5508 fi
5509 rm -f conftest.err conftest.i conftest.$ac_ext
5510
5511 done
5512 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5513 rm -f conftest.i conftest.err conftest.$ac_ext
5514 if $ac_preproc_ok
5515 then :
5516
5517 else case e in #(
5518 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5519 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5520 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5521 See 'config.log' for more details" "$LINENO" 5; } ;;
5522 esac
5523 fi
5524
5525 ac_ext=c
5526 ac_cpp='$CPP $CPPFLAGS'
5527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5530
5531
5532 #--------------------------------------------------------------------
5533 # Checks to see if the make program sets the $MAKE variable.
5534 #--------------------------------------------------------------------
5535
5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5537 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5538 set x ${MAKE-make}
5539 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5540 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5541 then :
5542 printf %s "(cached) " >&6
5543 else case e in #(
5544 e) cat >conftest.make <<\_ACEOF
5545 SHELL = /bin/sh
5546 all:
5547 @echo '@@@%%%=$(MAKE)=@@@%%%'
5548 _ACEOF
5549 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5550 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5551 *@@@%%%=?*=@@@%%%*)
5552 eval ac_cv_prog_make_${ac_make}_set=yes;;
5553 *)
5554 eval ac_cv_prog_make_${ac_make}_set=no;;
5555 esac
5556 rm -f conftest.make ;;
5557 esac
5558 fi
5559 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5561 printf "%s\n" "yes" >&6; }
5562 SET_MAKE=
5563 else
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 printf "%s\n" "no" >&6; }
5566 SET_MAKE="MAKE=${MAKE-make}"
5567 fi
5568
5569
5570 #--------------------------------------------------------------------
5571 # Find ranlib
5572 #--------------------------------------------------------------------
5573
5574 if test -n "$ac_tool_prefix"; then
5575 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5576 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 printf %s "checking for $ac_word... " >&6; }
5579 if test ${ac_cv_prog_RANLIB+y}
5580 then :
5581 printf %s "(cached) " >&6
5582 else case e in #(
5583 e) if test -n "$RANLIB"; then
5584 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589 IFS=$as_save_IFS
5590 case $as_dir in #(((
5591 '') as_dir=./ ;;
5592 */) ;;
5593 *) as_dir=$as_dir/ ;;
5594 esac
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5599 break 2
5600 fi
5601 done
5602 done
5603 IFS=$as_save_IFS
5604
5605 fi ;;
5606 esac
5607 fi
5608 RANLIB=$ac_cv_prog_RANLIB
5609 if test -n "$RANLIB"; then
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5611 printf "%s\n" "$RANLIB" >&6; }
5612 else
5613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 printf "%s\n" "no" >&6; }
5615 fi
5616
5617
5618 fi
5619 if test -z "$ac_cv_prog_RANLIB"; then
5620 ac_ct_RANLIB=$RANLIB
5621 # Extract the first word of "ranlib", so it can be a program name with args.
5622 set dummy ranlib; ac_word=$2
5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 printf %s "checking for $ac_word... " >&6; }
5625 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5626 then :
5627 printf %s "(cached) " >&6
5628 else case e in #(
5629 e) if test -n "$ac_ct_RANLIB"; then
5630 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635 IFS=$as_save_IFS
5636 case $as_dir in #(((
5637 '') as_dir=./ ;;
5638 */) ;;
5639 *) as_dir=$as_dir/ ;;
5640 esac
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5643 ac_cv_prog_ac_ct_RANLIB="ranlib"
5644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5645 break 2
5646 fi
5647 done
5648 done
5649 IFS=$as_save_IFS
5650
5651 fi ;;
5652 esac
5653 fi
5654 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5655 if test -n "$ac_ct_RANLIB"; then
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5657 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5658 else
5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 printf "%s\n" "no" >&6; }
5661 fi
5662
5663 if test "x$ac_ct_RANLIB" = x; then
5664 RANLIB=""
5665 else
5666 case $cross_compiling:$ac_tool_warned in
5667 yes:)
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5669 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5670 ac_tool_warned=yes ;;
5671 esac
5672 RANLIB=$ac_ct_RANLIB
5673 fi
5674 else
5675 RANLIB="$ac_cv_prog_RANLIB"
5676 fi
5677
5678
5679 #--------------------------------------------------------------------
5680 # Determines the correct binary file extension (.o, .obj, .exe etc.)
5681 #--------------------------------------------------------------------
5682
5683
5684
5685
5686 ac_header= ac_cache=
5687 for ac_item in $ac_header_c_list
5688 do
5689 if test $ac_cache; then
5690 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5691 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5692 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5693 fi
5694 ac_header= ac_cache=
5695 elif test $ac_header; then
5696 ac_cache=$ac_item
5697 else
5698 ac_header=$ac_item
5699 fi
5700 done
5701
5702
5703
5704
5705
5706
5707
5708
5709 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5710 then :
5711
5712 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5713
5714 fi
5715
5716 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
5717
5718
5719 #------------------------------------------------------------------------
5720 # If we're using GCC, see if the compiler understands -pipe. If so, use it.
5721 # It makes compiling go faster. (This is only a performance feature.)
5722 #------------------------------------------------------------------------
5723
5724 if test -z "$no_pipe" -a -n "$GCC"; then
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
5726 printf %s "checking if the compiler understands -pipe... " >&6; }
5727 if test ${tcl_cv_cc_pipe+y}
5728 then :
5729 printf %s "(cached) " >&6
5730 else case e in #(
5731 e)
5732 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735
5736 int
5737 main (void)
5738 {
5739
5740 ;
5741 return 0;
5742 }
5743 _ACEOF
5744 if ac_fn_c_try_compile "$LINENO"
5745 then :
5746 tcl_cv_cc_pipe=yes
5747 else case e in #(
5748 e) tcl_cv_cc_pipe=no ;;
5749 esac
5750 fi
5751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5752 CFLAGS=$hold_cflags ;;
5753 esac
5754 fi
5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
5756 printf "%s\n" "$tcl_cv_cc_pipe" >&6; }
5757 if test $tcl_cv_cc_pipe = yes; then
5758 CFLAGS="$CFLAGS -pipe"
5759 fi
5760 fi
5761
5762 if test "${TCL_MAJOR_VERSION}" -lt 9 -a "${TCL_MINOR_VERSION}" -lt 7; then
5763
5764 printf "%s\n" "#define Tcl_Size int" >>confdefs.h
5765
5766 fi
5767
5768 #--------------------------------------------------------------------
5769 # Common compiler flag setup
5770 #--------------------------------------------------------------------
5771
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5773 printf %s "checking whether byte ordering is bigendian... " >&6; }
5774 if test ${ac_cv_c_bigendian+y}
5775 then :
5776 printf %s "(cached) " >&6
5777 else case e in #(
5778 e) ac_cv_c_bigendian=unknown
5779 # See if we're dealing with a universal compiler.
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5782 #ifndef __APPLE_CC__
5783 not a universal capable compiler
5784 #endif
5785 typedef int dummy;
5786
5787 _ACEOF
5788 if ac_fn_c_try_compile "$LINENO"
5789 then :
5790
5791 # Check for potential -arch flags. It is not universal unless
5792 # there are at least two -arch flags with different values.
5793 ac_arch=
5794 ac_prev=
5795 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5796 if test -n "$ac_prev"; then
5797 case $ac_word in
5798 i?86 | x86_64 | ppc | ppc64)
5799 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5800 ac_arch=$ac_word
5801 else
5802 ac_cv_c_bigendian=universal
5803 break
5804 fi
5805 ;;
5806 esac
5807 ac_prev=
5808 elif test "x$ac_word" = "x-arch"; then
5809 ac_prev=arch
5810 fi
5811 done
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5814 if test $ac_cv_c_bigendian = unknown; then
5815 # See if sys/param.h defines the BYTE_ORDER macro.
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818 #include <sys/types.h>
5819 #include <sys/param.h>
5820
5821 int
5822 main (void)
5823 {
5824 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
5825 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
5826 && LITTLE_ENDIAN)
5827 bogus endian macros
5828 #endif
5829
5830 ;
5831 return 0;
5832 }
5833 _ACEOF
5834 if ac_fn_c_try_compile "$LINENO"
5835 then :
5836 # It does; now see whether it defined to BIG_ENDIAN or not.
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839 #include <sys/types.h>
5840 #include <sys/param.h>
5841
5842 int
5843 main (void)
5844 {
5845 #if BYTE_ORDER != BIG_ENDIAN
5846 not big endian
5847 #endif
5848
5849 ;
5850 return 0;
5851 }
5852 _ACEOF
5853 if ac_fn_c_try_compile "$LINENO"
5854 then :
5855 ac_cv_c_bigendian=yes
5856 else case e in #(
5857 e) ac_cv_c_bigendian=no ;;
5858 esac
5859 fi
5860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5861 fi
5862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5863 fi
5864 if test $ac_cv_c_bigendian = unknown; then
5865 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5868 #include <limits.h>
5869
5870 int
5871 main (void)
5872 {
5873 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5874 bogus endian macros
5875 #endif
5876
5877 ;
5878 return 0;
5879 }
5880 _ACEOF
5881 if ac_fn_c_try_compile "$LINENO"
5882 then :
5883 # It does; now see whether it defined to _BIG_ENDIAN or not.
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 #include <limits.h>
5887
5888 int
5889 main (void)
5890 {
5891 #ifndef _BIG_ENDIAN
5892 not big endian
5893 #endif
5894
5895 ;
5896 return 0;
5897 }
5898 _ACEOF
5899 if ac_fn_c_try_compile "$LINENO"
5900 then :
5901 ac_cv_c_bigendian=yes
5902 else case e in #(
5903 e) ac_cv_c_bigendian=no ;;
5904 esac
5905 fi
5906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5909 fi
5910 if test $ac_cv_c_bigendian = unknown; then
5911 # Compile a test program.
5912 if test "$cross_compiling" = yes
5913 then :
5914 # Try to guess by grepping values from an object file.
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 unsigned short int ascii_mm[] =
5918 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5919 unsigned short int ascii_ii[] =
5920 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5921 int use_ascii (int i) {
5922 return ascii_mm[i] + ascii_ii[i];
5923 }
5924 unsigned short int ebcdic_ii[] =
5925 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5926 unsigned short int ebcdic_mm[] =
5927 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5928 int use_ebcdic (int i) {
5929 return ebcdic_mm[i] + ebcdic_ii[i];
5930 }
5931 int
5932 main (int argc, char **argv)
5933 {
5934 /* Intimidate the compiler so that it does not
5935 optimize the arrays away. */
5936 char *p = argv[0];
5937 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
5938 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
5939 return use_ascii (argc) == use_ebcdic (*p);
5940 }
5941 _ACEOF
5942 if ac_fn_c_try_link "$LINENO"
5943 then :
5944 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
5945 ac_cv_c_bigendian=yes
5946 fi
5947 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
5948 if test "$ac_cv_c_bigendian" = unknown; then
5949 ac_cv_c_bigendian=no
5950 else
5951 # finding both strings is unlikely to happen, but who knows?
5952 ac_cv_c_bigendian=unknown
5953 fi
5954 fi
5955 fi
5956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5957 conftest$ac_exeext conftest.$ac_ext
5958 else case e in #(
5959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961 $ac_includes_default
5962 int
5963 main (void)
5964 {
5965
5966 /* Are we little or big endian? From Harbison&Steele. */
5967 union
5968 {
5969 long int l;
5970 char c[sizeof (long int)];
5971 } u;
5972 u.l = 1;
5973 return u.c[sizeof (long int) - 1] == 1;
5974
5975 ;
5976 return 0;
5977 }
5978 _ACEOF
5979 if ac_fn_c_try_run "$LINENO"
5980 then :
5981 ac_cv_c_bigendian=no
5982 else case e in #(
5983 e) ac_cv_c_bigendian=yes ;;
5984 esac
5985 fi
5986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5987 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5988 esac
5989 fi
5990
5991 fi ;;
5992 esac
5993 fi
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5995 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5996 case $ac_cv_c_bigendian in #(
5997 yes)
5998 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5999 ;; #(
6000 no)
6001 ;; #(
6002 universal)
6003 #
6004 ;; #(
6005 *)
6006 as_fn_error $? "unknown endianness
6007 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6008 esac
6009
6010
6011
6012 #-----------------------------------------------------------------------
6013 # __CHANGE__
6014 # Specify the C source files to compile in TEA_ADD_SOURCES,
6015 # public headers that need to be installed in TEA_ADD_HEADERS,
6016 # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
6017 # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
6018 # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
6019 # and PKG_TCL_SOURCES.
6020 #-----------------------------------------------------------------------
6021
6022
6023 vars="
6024 itkArchBase.c
6025 itkArchetype.c
6026 itkBase.c
6027 itkCmd.c
6028 itkHelpers.c
6029 itkOption.c
6030 itkUtil.c
6031 itkStubInit.c
6032 "
6033 for i in $vars; do
6034 case $i in
6035 \$*)
6036 # allow $-var names
6037 PKG_SOURCES="$PKG_SOURCES $i"
6038 PKG_OBJECTS="$PKG_OBJECTS $i"
6039 ;;
6040 *)
6041 # check for existence - allows for generic/win/unix VPATH
6042 # To add more dirs here (like 'src'), you have to update VPATH
6043 # in Makefile.in as well
6044 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6045 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6046 -a ! -f "${srcdir}/macosx/$i" \
6047 ; then
6048 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
6049 fi
6050 PKG_SOURCES="$PKG_SOURCES $i"
6051 # this assumes it is in a VPATH dir
6052 i=`basename $i`
6053 # handle user calling this before or after TEA_SETUP_COMPILER
6054 if test x"${OBJEXT}" != x ; then
6055 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6056 else
6057 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6058 fi
6059 PKG_OBJECTS="$PKG_OBJECTS $j"
6060 ;;
6061 esac
6062 done
6063
6064
6065
6066
6067 vars="generic/itk.h generic/itkInt.h"
6068 for i in $vars; do
6069 # check for existence, be strict because it is installed
6070 if test ! -f "${srcdir}/$i" ; then
6071 as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5
6072 fi
6073 PKG_HEADERS="$PKG_HEADERS $i"
6074 done
6075
6076
6077
6078 vars="${ITCL_INCLUDES} -I\"`${CYGPATH} ${srcdir}/generic`\""
6079 for i in $vars; do
6080 PKG_INCLUDES="$PKG_INCLUDES $i"
6081 done
6082
6083
6084
6085 vars=""
6086 for i in $vars; do
6087 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6088 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6089 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6090 fi
6091 PKG_LIBS="$PKG_LIBS $i"
6092 done
6093
6094
6095
6096 PKG_CFLAGS="$PKG_CFLAGS "
6097
6098
6099
6100 vars="itkStubLib.c"
6101 for i in $vars; do
6102 # check for existence - allows for generic/win/unix VPATH
6103 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6104 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6105 -a ! -f "${srcdir}/macosx/$i" \
6106 ; then
6107 as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5
6108 fi
6109 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
6110 # this assumes it is in a VPATH dir
6111 i=`basename $i`
6112 # handle user calling this before or after TEA_SETUP_COMPILER
6113 if test x"${OBJEXT}" != x ; then
6114 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6115 else
6116 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6117 fi
6118 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
6119 done
6120
6121
6122
6123
6124 vars="library/Archetype.itk
6125 library/Toplevel.itk
6126 library/Widget.itk
6127 library/itk.tcl
6128 library/tclIndex"
6129 for i in $vars; do
6130 # check for existence, be strict because it is installed
6131 if test ! -f "${srcdir}/$i" ; then
6132 as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5
6133 fi
6134 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
6135 done
6136
6137
6138
6139 #--------------------------------------------------------------------
6140 # __CHANGE__
6141 #
6142 # You can add more files to clean if your extension creates any extra
6143 # files by extending CLEANFILES.
6144 # Add pkgIndex.tcl if it is generated in the Makefile instead of ./configure
6145 # and change Makefile.in to move it from CONFIG_CLEAN_FILES to BINARIES var.
6146 #
6147 # A few miscellaneous platform-specific items:
6148 # TEA_ADD_* any platform specific compiler/build info here.
6149 #--------------------------------------------------------------------
6150
6151 #CLEANFILES="$CLEANFILES pkgIndex.tcl"
6152 if test "${TEA_PLATFORM}" = "windows" ; then
6153 # Ensure no empty if clauses
6154 :
6155 #TEA_ADD_SOURCES([win/winFile.c])
6156 #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"])
6157
6158 vars="dllEntryPoint.c"
6159 for i in $vars; do
6160 case $i in
6161 \$*)
6162 # allow $-var names
6163 PKG_SOURCES="$PKG_SOURCES $i"
6164 PKG_OBJECTS="$PKG_OBJECTS $i"
6165 ;;
6166 *)
6167 # check for existence - allows for generic/win/unix VPATH
6168 # To add more dirs here (like 'src'), you have to update VPATH
6169 # in Makefile.in as well
6170 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6171 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6172 -a ! -f "${srcdir}/macosx/$i" \
6173 ; then
6174 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
6175 fi
6176 PKG_SOURCES="$PKG_SOURCES $i"
6177 # this assumes it is in a VPATH dir
6178 i=`basename $i`
6179 # handle user calling this before or after TEA_SETUP_COMPILER
6180 if test x"${OBJEXT}" != x ; then
6181 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6182 else
6183 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6184 fi
6185 PKG_OBJECTS="$PKG_OBJECTS $j"
6186 ;;
6187 esac
6188 done
6189
6190
6191
6192 else
6193 # Ensure no empty else clauses
6194 :
6195 #TEA_ADD_SOURCES([unix/unixFile.c])
6196 #TEA_ADD_LIBS([-lsuperfly])
6197 fi
6198
6199 #--------------------------------------------------------------------
6200 # __CHANGE__
6201 # Choose which headers you need. Extension authors should try very
6202 # hard to only rely on the Tcl public header files. Internal headers
6203 # contain private data structures and are subject to change without
6204 # notice.
6205 # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
6206 #--------------------------------------------------------------------
6207
6208 #TEA_PUBLIC_TCL_HEADERS
6209
6210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
6211 printf %s "checking for Tcl public headers... " >&6; }
6212
6213
6214 # Check whether --with-tclinclude was given.
6215 if test ${with_tclinclude+y}
6216 then :
6217 withval=$with_tclinclude; with_tclinclude=${withval}
6218 fi
6219
6220
6221 if test ${ac_cv_c_tclh+y}
6222 then :
6223 printf %s "(cached) " >&6
6224 else case e in #(
6225 e)
6226 # Use the value from --with-tclinclude, if it was given
6227
6228 if test x"${with_tclinclude}" != x ; then
6229 if test -f "${with_tclinclude}/tcl.h" ; then
6230 ac_cv_c_tclh=${with_tclinclude}
6231 else
6232 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5
6233 fi
6234 else
6235 list=""
6236 if test "`uname -s`" = "Darwin"; then
6237 # If Tcl was built as a framework, attempt to use
6238 # the framework's Headers directory
6239 case ${TCL_DEFS} in
6240 *TCL_FRAMEWORK*)
6241 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
6242 ;;
6243 esac
6244 fi
6245
6246 # Look in the source dir only if Tcl is not installed,
6247 # and in that situation, look there before installed locations.
6248 if test -f "${TCL_BIN_DIR}/Makefile" ; then
6249 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
6250 fi
6251
6252 # Check order: pkg --prefix location, Tcl's --prefix location,
6253 # relative to directory of tclConfig.sh.
6254
6255 eval "temp_includedir=${includedir}"
6256 list="$list \
6257 `ls -d ${temp_includedir} 2>/dev/null` \
6258 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
6259 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
6260 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
6261 list="$list /usr/local/include /usr/include"
6262 if test x"${TCL_INCLUDE_SPEC}" != x ; then
6263 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
6264 list="$list `ls -d ${d} 2>/dev/null`"
6265 fi
6266 fi
6267 for i in $list ; do
6268 if test -f "$i/tcl.h" ; then
6269 ac_cv_c_tclh=$i
6270 break
6271 fi
6272 done
6273 fi
6274 ;;
6275 esac
6276 fi
6277
6278
6279 # Print a message based on how we determined the include path
6280
6281 if test x"${ac_cv_c_tclh}" = x ; then
6282 as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5
6283 else
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
6285 printf "%s\n" "${ac_cv_c_tclh}" >&6; }
6286 fi
6287
6288 # Convert to a native path and substitute into the output files.
6289
6290 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
6291
6292 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6293
6294
6295
6296
6297 # Allow for --with-tclinclude to take effect and define ${ac_cv_c_tclh}
6298
6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl private include files" >&5
6300 printf %s "checking for Tcl private include files... " >&6; }
6301
6302 TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}`
6303 TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\"
6304
6305 # Check to see if tcl<Plat>Port.h isn't already with the public headers
6306 # Don't look for tclInt.h because that resides with tcl.h in the core
6307 # sources, but the <plat>Port headers are in a different directory
6308 if test "${TEA_PLATFORM}" = "windows" -a \
6309 -f "${ac_cv_c_tclh}/tclWinPort.h"; then
6310 result="private headers found with public headers"
6311 elif test "${TEA_PLATFORM}" = "unix" -a \
6312 -f "${ac_cv_c_tclh}/tclUnixPort.h"; then
6313 result="private headers found with public headers"
6314 else
6315 TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\"
6316 if test "${TEA_PLATFORM}" = "windows"; then
6317 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\"
6318 else
6319 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\"
6320 fi
6321 # Overwrite the previous TCL_INCLUDES as this should capture both
6322 # public and private headers in the same set.
6323 # We want to ensure these are substituted so as not to require
6324 # any *_NATIVE vars be defined in the Makefile
6325 TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}"
6326 if test "`uname -s`" = "Darwin"; then
6327 # If Tcl was built as a framework, attempt to use
6328 # the framework's Headers and PrivateHeaders directories
6329 case ${TCL_DEFS} in
6330 *TCL_FRAMEWORK*)
6331 if test -d "${TCL_BIN_DIR}/Headers" -a \
6332 -d "${TCL_BIN_DIR}/PrivateHeaders"; then
6333 TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}"
6334 else
6335 TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`"
6336 fi
6337 ;;
6338 esac
6339 result="Using ${TCL_INCLUDES}"
6340 else
6341 if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then
6342 as_fn_error $? "Cannot find private header tclInt.h in ${TCL_SRC_DIR}" "$LINENO" 5
6343 fi
6344 result="Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}"
6345 fi
6346 fi
6347
6348
6349
6350
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${result}" >&5
6352 printf "%s\n" "${result}" >&6; }
6353
6354
6355
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tk public headers" >&5
6357 printf %s "checking for Tk public headers... " >&6; }
6358
6359
6360 # Check whether --with-tkinclude was given.
6361 if test ${with_tkinclude+y}
6362 then :
6363 withval=$with_tkinclude; with_tkinclude=${withval}
6364 fi
6365
6366
6367 if test ${ac_cv_c_tkh+y}
6368 then :
6369 printf %s "(cached) " >&6
6370 else case e in #(
6371 e)
6372 # Use the value from --with-tkinclude, if it was given
6373
6374 if test x"${with_tkinclude}" != x ; then
6375 if test -f "${with_tkinclude}/tk.h" ; then
6376 ac_cv_c_tkh=${with_tkinclude}
6377 else
6378 as_fn_error $? "${with_tkinclude} directory does not contain tk.h" "$LINENO" 5
6379 fi
6380 else
6381 list=""
6382 if test "`uname -s`" = "Darwin"; then
6383 # If Tk was built as a framework, attempt to use
6384 # the framework's Headers directory.
6385 case ${TK_DEFS} in
6386 *TK_FRAMEWORK*)
6387 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`"
6388 ;;
6389 esac
6390 fi
6391
6392 # Look in the source dir only if Tk is not installed,
6393 # and in that situation, look there before installed locations.
6394 if test -f "${TK_BIN_DIR}/Makefile" ; then
6395 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`"
6396 fi
6397
6398 # Check order: pkg --prefix location, Tk's --prefix location,
6399 # relative to directory of tkConfig.sh, Tcl's --prefix location,
6400 # relative to directory of tclConfig.sh.
6401
6402 eval "temp_includedir=${includedir}"
6403 list="$list \
6404 `ls -d ${temp_includedir} 2>/dev/null` \
6405 `ls -d ${TK_PREFIX}/include 2>/dev/null` \
6406 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \
6407 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
6408 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
6409 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
6410 list="$list /usr/local/include /usr/include"
6411 if test x"${TK_INCLUDE_SPEC}" != x ; then
6412 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'`
6413 list="$list `ls -d ${d} 2>/dev/null`"
6414 fi
6415 fi
6416 for i in $list ; do
6417 if test -f "$i/tk.h" ; then
6418 ac_cv_c_tkh=$i
6419 break
6420 fi
6421 done
6422 fi
6423 ;;
6424 esac
6425 fi
6426
6427
6428 # Print a message based on how we determined the include path
6429
6430 if test x"${ac_cv_c_tkh}" = x ; then
6431 as_fn_error $? "tk.h not found. Please specify its location with --with-tkinclude" "$LINENO" 5
6432 else
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tkh}" >&5
6434 printf "%s\n" "${ac_cv_c_tkh}" >&6; }
6435 fi
6436
6437 # Convert to a native path and substitute into the output files.
6438
6439 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}`
6440
6441 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6442
6443
6444
6445 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then
6446 # On Windows and Aqua, we need the X compat headers
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5
6448 printf %s "checking for X11 header files... " >&6; }
6449 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then
6450 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`"
6451 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6452
6453 fi
6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${INCLUDE_DIR_NATIVE}" >&5
6455 printf "%s\n" "${INCLUDE_DIR_NATIVE}" >&6; }
6456 fi
6457
6458 #TEA_PRIVATE_TK_HEADERS
6459
6460
6461 if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then
6462
6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6464 printf %s "checking for X... " >&6; }
6465
6466
6467 # Check whether --with-x was given.
6468 if test ${with_x+y}
6469 then :
6470 withval=$with_x;
6471 fi
6472
6473 # $have_x is 'yes', 'no', 'disabled', or empty when we do not yet know.
6474 if test "x$with_x" = xno; then
6475 # The user explicitly disabled X.
6476 have_x=disabled
6477 else
6478 case $x_includes,$x_libraries in #(
6479 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
6480 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
6481 then :
6482 printf %s "(cached) " >&6
6483 else case e in #(
6484 e) # One or both of the vars are not set, and there is no cached value.
6485 ac_x_includes=no
6486 ac_x_libraries=no
6487 # Do we need to do anything special at all?
6488 ac_save_LIBS=$LIBS
6489 LIBS="-lX11 $LIBS"
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492 #include <X11/Xlib.h>
6493 int
6494 main (void)
6495 {
6496 XrmInitialize ()
6497 ;
6498 return 0;
6499 }
6500 _ACEOF
6501 if ac_fn_c_try_link "$LINENO"
6502 then :
6503 # We can compile and link X programs with no special options.
6504 ac_x_includes=
6505 ac_x_libraries=
6506 fi
6507 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6508 conftest$ac_exeext conftest.$ac_ext
6509 LIBS="$ac_save_LIBS"
6510 # If that didn't work, only try xmkmf and file system searches
6511 # for native compilation.
6512 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
6513 then :
6514 rm -f -r conftest.dir
6515 if mkdir conftest.dir; then
6516 cd conftest.dir
6517 cat >Imakefile <<'_ACEOF'
6518 incroot:
6519 @echo incroot='${INCROOT}'
6520 usrlibdir:
6521 @echo usrlibdir='${USRLIBDIR}'
6522 libdir:
6523 @echo libdir='${LIBDIR}'
6524 _ACEOF
6525 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6526 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6527 for ac_var in incroot usrlibdir libdir; do
6528 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6529 done
6530 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6531 for ac_extension in a so sl dylib la dll; do
6532 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6533 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6534 ac_im_usrlibdir=$ac_im_libdir; break
6535 fi
6536 done
6537 # Screen out bogus values from the imake configuration. They are
6538 # bogus both because they are the default anyway, and because
6539 # using them would break gcc on systems where it needs fixed includes.
6540 case $ac_im_incroot in
6541 /usr/include) ac_x_includes= ;;
6542 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6543 esac
6544 case $ac_im_usrlibdir in
6545 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6546 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6547 esac
6548 fi
6549 cd ..
6550 rm -f -r conftest.dir
6551 fi
6552
6553 # Standard set of common directories for X headers.
6554 # Check X11 before X11Rn because it is often a symlink to the current release.
6555 ac_x_header_dirs='
6556 /usr/X11/include
6557 /usr/X11R7/include
6558 /usr/X11R6/include
6559 /usr/X11R5/include
6560 /usr/X11R4/include
6561
6562 /usr/include/X11
6563 /usr/include/X11R7
6564 /usr/include/X11R6
6565 /usr/include/X11R5
6566 /usr/include/X11R4
6567
6568 /usr/local/X11/include
6569 /usr/local/X11R7/include
6570 /usr/local/X11R6/include
6571 /usr/local/X11R5/include
6572 /usr/local/X11R4/include
6573
6574 /usr/local/include/X11
6575 /usr/local/include/X11R7
6576 /usr/local/include/X11R6
6577 /usr/local/include/X11R5
6578 /usr/local/include/X11R4
6579
6580 /opt/X11/include
6581
6582 /usr/X386/include
6583 /usr/x386/include
6584 /usr/XFree86/include/X11
6585
6586 /usr/include
6587 /usr/local/include
6588 /usr/unsupported/include
6589 /usr/athena/include
6590 /usr/local/x11r5/include
6591 /usr/lpp/Xamples/include
6592
6593 /usr/openwin/include
6594 /usr/openwin/share/include'
6595
6596 if test "$ac_x_includes" = no; then
6597 # Guess where to find include files, by looking for Xlib.h.
6598 # First, try using that file with no special directory specified.
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601 #include <X11/Xlib.h>
6602 _ACEOF
6603 if ac_fn_c_try_cpp "$LINENO"
6604 then :
6605 # We can compile using X headers with no special include directory.
6606 ac_x_includes=
6607 else case e in #(
6608 e) for ac_dir in $ac_x_header_dirs; do
6609 if test -r "$ac_dir/X11/Xlib.h"; then
6610 ac_x_includes=$ac_dir
6611 break
6612 fi
6613 done ;;
6614 esac
6615 fi
6616 rm -f conftest.err conftest.i conftest.$ac_ext
6617 fi # $ac_x_includes = no
6618
6619 if test "$ac_x_libraries" = no; then
6620 # Check for the libraries.
6621 # See if we find them without any special options.
6622 # Don't add to $LIBS permanently.
6623 ac_save_LIBS=$LIBS
6624 LIBS="-lX11 $LIBS"
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6627 #include <X11/Xlib.h>
6628 int
6629 main (void)
6630 {
6631 XrmInitialize ()
6632 ;
6633 return 0;
6634 }
6635 _ACEOF
6636 if ac_fn_c_try_link "$LINENO"
6637 then :
6638 LIBS=$ac_save_LIBS
6639 # We can link X programs with no special library path.
6640 ac_x_libraries=
6641 else case e in #(
6642 e) LIBS=$ac_save_LIBS
6643 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6644 do
6645 # Don't even attempt the hair of trying to link an X program!
6646 for ac_extension in a so sl dylib la dll; do
6647 if test -r "$ac_dir/libX11.$ac_extension"; then
6648 ac_x_libraries=$ac_dir
6649 break 2
6650 fi
6651 done
6652 done ;;
6653 esac
6654 fi
6655 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6656 conftest$ac_exeext conftest.$ac_ext
6657 fi # $ac_x_libraries = no
6658
6659 fi
6660 # Record the results.
6661 case $ac_x_includes,$ac_x_libraries in #(
6662 no,* | *,no | *\'*) :
6663 # Didn't find X, or a directory has "'" in its name.
6664 ac_cv_have_x="have_x=no" ;; #(
6665 *) :
6666 # Record where we found X for the cache.
6667 ac_cv_have_x="have_x=yes\
6668 ac_x_includes='$ac_x_includes'\
6669 ac_x_libraries='$ac_x_libraries'" ;;
6670 esac ;;
6671 esac
6672 fi
6673 ;; #(
6674 *) have_x=yes;;
6675 esac
6676 eval "$ac_cv_have_x"
6677 fi # $with_x != no
6678
6679 if test "$have_x" != yes; then
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6681 printf "%s\n" "$have_x" >&6; }
6682 no_x=yes
6683 else
6684 # If each of the values was on the command line, it overrides each guess.
6685 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6686 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6687 # Update the cache value to reflect the command line values.
6688 ac_cv_have_x="have_x=yes\
6689 ac_x_includes='$x_includes'\
6690 ac_x_libraries='$x_libraries'"
6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6692 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
6693 fi
6694
6695 not_really_there=""
6696 if test "$no_x" = ""; then
6697 if test "$x_includes" = ""; then
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6700 #include <X11/Xlib.h>
6701 _ACEOF
6702 if ac_fn_c_try_cpp "$LINENO"
6703 then :
6704
6705 else case e in #(
6706 e) not_really_there="yes" ;;
6707 esac
6708 fi
6709 rm -f conftest.err conftest.i conftest.$ac_ext
6710 else
6711 if test ! -r $x_includes/X11/Xlib.h; then
6712 not_really_there="yes"
6713 fi
6714 fi
6715 fi
6716 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5
6718 printf %s "checking for X11 header files... " >&6; }
6719 found_xincludes="no"
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6722 #include <X11/Xlib.h>
6723 _ACEOF
6724 if ac_fn_c_try_cpp "$LINENO"
6725 then :
6726 found_xincludes="yes"
6727 else case e in #(
6728 e) found_xincludes="no" ;;
6729 esac
6730 fi
6731 rm -f conftest.err conftest.i conftest.$ac_ext
6732 if test "$found_xincludes" = "no"; then
6733 dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include"
6734 for i in $dirs ; do
6735 if test -r $i/X11/Xlib.h; then
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $i" >&5
6737 printf "%s\n" "$i" >&6; }
6738 XINCLUDES=" -I$i"
6739 found_xincludes="yes"
6740 break
6741 fi
6742 done
6743 fi
6744 else
6745 if test "$x_includes" != ""; then
6746 XINCLUDES="-I$x_includes"
6747 found_xincludes="yes"
6748 fi
6749 fi
6750 if test "$found_xincludes" = "no"; then
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: couldn't find any!" >&5
6752 printf "%s\n" "couldn't find any!" >&6; }
6753 fi
6754
6755 if test "$no_x" = yes; then
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 libraries" >&5
6757 printf %s "checking for X11 libraries... " >&6; }
6758 XLIBSW=nope
6759 dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/X11R6/lib /usr/X11R5/lib /usr/lib/X11R5 /usr/lib/X11R4 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib"
6760 for i in $dirs ; do
6761 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then
6762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $i" >&5
6763 printf "%s\n" "$i" >&6; }
6764 XLIBSW="-L$i -lX11"
6765 x_libraries="$i"
6766 break
6767 fi
6768 done
6769 else
6770 if test "$x_libraries" = ""; then
6771 XLIBSW=-lX11
6772 else
6773 XLIBSW="-L$x_libraries -lX11"
6774 fi
6775 fi
6776 if test "$XLIBSW" = nope ; then
6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCreateWindow in -lXwindow" >&5
6778 printf %s "checking for XCreateWindow in -lXwindow... " >&6; }
6779 if test ${ac_cv_lib_Xwindow_XCreateWindow+y}
6780 then :
6781 printf %s "(cached) " >&6
6782 else case e in #(
6783 e) ac_check_lib_save_LIBS=$LIBS
6784 LIBS="-lXwindow $LIBS"
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787
6788 /* Override any GCC internal prototype to avoid an error.
6789 Use char because int might match the return type of a GCC
6790 builtin and then its argument prototype would still apply.
6791 The 'extern "C"' is for builds by C++ compilers;
6792 although this is not generally supported in C code supporting it here
6793 has little cost and some practical benefit (sr 110532). */
6794 #ifdef __cplusplus
6795 extern "C"
6796 #endif
6797 char XCreateWindow (void);
6798 int
6799 main (void)
6800 {
6801 return XCreateWindow ();
6802 ;
6803 return 0;
6804 }
6805 _ACEOF
6806 if ac_fn_c_try_link "$LINENO"
6807 then :
6808 ac_cv_lib_Xwindow_XCreateWindow=yes
6809 else case e in #(
6810 e) ac_cv_lib_Xwindow_XCreateWindow=no ;;
6811 esac
6812 fi
6813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6814 conftest$ac_exeext conftest.$ac_ext
6815 LIBS=$ac_check_lib_save_LIBS ;;
6816 esac
6817 fi
6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5
6819 printf "%s\n" "$ac_cv_lib_Xwindow_XCreateWindow" >&6; }
6820 if test "x$ac_cv_lib_Xwindow_XCreateWindow" = xyes
6821 then :
6822 XLIBSW=-lXwindow
6823 fi
6824
6825 fi
6826 if test "$XLIBSW" = nope ; then
6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find any! Using -lX11." >&5
6828 printf "%s\n" "could not find any! Using -lX11." >&6; }
6829 XLIBSW=-lX11
6830 fi
6831 # TEA specific:
6832 if test x"${XLIBSW}" != x ; then
6833 PKG_LIBS="${PKG_LIBS} ${XLIBSW}"
6834 fi
6835
6836 fi
6837
6838
6839 #--------------------------------------------------------------------
6840 # We need to enable the threading macros found in tcl.h and tclInt.h.
6841 # The use of the threading features is determined by the core the
6842 # extension is loaded into, but we need to compile with these macros
6843 # turned on.
6844 #--------------------------------------------------------------------
6845
6846 printf "%s\n" "#define TCL_THREADS 1" >>confdefs.h
6847
6848
6849 #--------------------------------------------------------------------
6850 # Check whether --enable-threads or --disable-threads was given.
6851 # This auto-enables if Tcl was compiled threaded.
6852 #--------------------------------------------------------------------
6853
6854 #TEA_ENABLE_THREADS
6855
6856 #--------------------------------------------------------------------
6857 # The statement below defines a collection of symbols related to
6858 # building as a shared library instead of a static library.
6859 #--------------------------------------------------------------------
6860
6861
6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
6863 printf %s "checking how to build libraries... " >&6; }
6864 # Check whether --enable-shared was given.
6865 if test ${enable_shared+y}
6866 then :
6867 enableval=$enable_shared; shared_ok=$enableval
6868 else case e in #(
6869 e) shared_ok=yes ;;
6870 esac
6871 fi
6872
6873
6874 if test "${enable_shared+set}" = set; then
6875 enableval="$enable_shared"
6876 shared_ok=$enableval
6877 else
6878 shared_ok=yes
6879 fi
6880
6881 # Check whether --enable-stubs was given.
6882 if test ${enable_stubs+y}
6883 then :
6884 enableval=$enable_stubs; stubs_ok=$enableval
6885 else case e in #(
6886 e) stubs_ok=yes ;;
6887 esac
6888 fi
6889
6890
6891 if test "${enable_stubs+set}" = set; then
6892 enableval="$enable_stubs"
6893 stubs_ok=$enableval
6894 else
6895 stubs_ok=yes
6896 fi
6897
6898 # Stubs are always enabled for shared builds
6899 if test "$shared_ok" = "yes" ; then
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared" >&5
6901 printf "%s\n" "shared" >&6; }
6902 SHARED_BUILD=1
6903 STUBS_BUILD=1
6904 else
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
6906 printf "%s\n" "static" >&6; }
6907 SHARED_BUILD=0
6908
6909 printf "%s\n" "#define STATIC_BUILD 1" >>confdefs.h
6910
6911 if test "$stubs_ok" = "yes" ; then
6912 STUBS_BUILD=1
6913 else
6914 STUBS_BUILD=0
6915 fi
6916 fi
6917 if test "${STUBS_BUILD}" = "1" ; then
6918
6919 printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h
6920
6921
6922 printf "%s\n" "#define USE_TCLOO_STUBS 1" >>confdefs.h
6923
6924 if test "${TEA_WINDOWINGSYSTEM}" != ""; then
6925
6926 printf "%s\n" "#define USE_TK_STUBS 1" >>confdefs.h
6927
6928 fi
6929 fi
6930
6931
6932
6933
6934
6935 #--------------------------------------------------------------------
6936 # This macro figures out what flags to use with the compiler/linker
6937 # when building shared/static debug/optimized objects. This information
6938 # can be taken from the tclConfig.sh file, but this figures it all out.
6939 #--------------------------------------------------------------------
6940
6941 if test -n "$ac_tool_prefix"; then
6942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 printf %s "checking for $ac_word... " >&6; }
6946 if test ${ac_cv_prog_RANLIB+y}
6947 then :
6948 printf %s "(cached) " >&6
6949 else case e in #(
6950 e) if test -n "$RANLIB"; then
6951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956 IFS=$as_save_IFS
6957 case $as_dir in #(((
6958 '') as_dir=./ ;;
6959 */) ;;
6960 *) as_dir=$as_dir/ ;;
6961 esac
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6964 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6966 break 2
6967 fi
6968 done
6969 done
6970 IFS=$as_save_IFS
6971
6972 fi ;;
6973 esac
6974 fi
6975 RANLIB=$ac_cv_prog_RANLIB
6976 if test -n "$RANLIB"; then
6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6978 printf "%s\n" "$RANLIB" >&6; }
6979 else
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 printf "%s\n" "no" >&6; }
6982 fi
6983
6984
6985 fi
6986 if test -z "$ac_cv_prog_RANLIB"; then
6987 ac_ct_RANLIB=$RANLIB
6988 # Extract the first word of "ranlib", so it can be a program name with args.
6989 set dummy ranlib; ac_word=$2
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 printf %s "checking for $ac_word... " >&6; }
6992 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6993 then :
6994 printf %s "(cached) " >&6
6995 else case e in #(
6996 e) if test -n "$ac_ct_RANLIB"; then
6997 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002 IFS=$as_save_IFS
7003 case $as_dir in #(((
7004 '') as_dir=./ ;;
7005 */) ;;
7006 *) as_dir=$as_dir/ ;;
7007 esac
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7010 ac_cv_prog_ac_ct_RANLIB="ranlib"
7011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014 done
7015 done
7016 IFS=$as_save_IFS
7017
7018 fi ;;
7019 esac
7020 fi
7021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7022 if test -n "$ac_ct_RANLIB"; then
7023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7024 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7025 else
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 printf "%s\n" "no" >&6; }
7028 fi
7029
7030 if test "x$ac_ct_RANLIB" = x; then
7031 RANLIB=":"
7032 else
7033 case $cross_compiling:$ac_tool_warned in
7034 yes:)
7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7036 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7037 ac_tool_warned=yes ;;
7038 esac
7039 RANLIB=$ac_ct_RANLIB
7040 fi
7041 else
7042 RANLIB="$ac_cv_prog_RANLIB"
7043 fi
7044
7045
7046
7047
7048 # Step 0.a: Enable 64 bit support?
7049
7050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
7051 printf %s "checking if 64bit support is requested... " >&6; }
7052 # Check whether --enable-64bit was given.
7053 if test ${enable_64bit+y}
7054 then :
7055 enableval=$enable_64bit; do64bit=$enableval
7056 else case e in #(
7057 e) do64bit=no ;;
7058 esac
7059 fi
7060
7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
7062 printf "%s\n" "$do64bit" >&6; }
7063
7064 # Step 0.b: Enable Solaris 64 bit VIS support?
7065
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
7067 printf %s "checking if 64bit Sparc VIS support is requested... " >&6; }
7068 # Check whether --enable-64bit-vis was given.
7069 if test ${enable_64bit_vis+y}
7070 then :
7071 enableval=$enable_64bit_vis; do64bitVIS=$enableval
7072 else case e in #(
7073 e) do64bitVIS=no ;;
7074 esac
7075 fi
7076
7077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
7078 printf "%s\n" "$do64bitVIS" >&6; }
7079 # Force 64bit on with VIS
7080 if test "$do64bitVIS" = "yes"
7081 then :
7082 do64bit=yes
7083 fi
7084
7085 # Step 0.c: Check if visibility support is available. Do this here so
7086 # that platform specific alternatives can be used below if this fails.
7087
7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
7089 printf %s "checking if compiler supports visibility \"hidden\"... " >&6; }
7090 if test ${tcl_cv_cc_visibility_hidden+y}
7091 then :
7092 printf %s "(cached) " >&6
7093 else case e in #(
7094 e)
7095 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7098
7099 extern __attribute__((__visibility__("hidden"))) void f(void);
7100 void f(void) {}
7101 int
7102 main (void)
7103 {
7104 f();
7105 ;
7106 return 0;
7107 }
7108 _ACEOF
7109 if ac_fn_c_try_link "$LINENO"
7110 then :
7111 tcl_cv_cc_visibility_hidden=yes
7112 else case e in #(
7113 e) tcl_cv_cc_visibility_hidden=no ;;
7114 esac
7115 fi
7116 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7117 conftest$ac_exeext conftest.$ac_ext
7118 CFLAGS=$hold_cflags ;;
7119 esac
7120 fi
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
7122 printf "%s\n" "$tcl_cv_cc_visibility_hidden" >&6; }
7123 if test $tcl_cv_cc_visibility_hidden = yes
7124 then :
7125
7126
7127 printf "%s\n" "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
7128
7129
7130 printf "%s\n" "#define HAVE_HIDDEN 1" >>confdefs.h
7131
7132
7133 fi
7134
7135 # Step 0.d: Disable -rpath support?
7136
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
7138 printf %s "checking if rpath support is requested... " >&6; }
7139 # Check whether --enable-rpath was given.
7140 if test ${enable_rpath+y}
7141 then :
7142 enableval=$enable_rpath; doRpath=$enableval
7143 else case e in #(
7144 e) doRpath=yes ;;
7145 esac
7146 fi
7147
7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
7149 printf "%s\n" "$doRpath" >&6; }
7150
7151 # Set the variable "system" to hold the name and version number
7152 # for the system.
7153
7154
7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
7156 printf %s "checking system version... " >&6; }
7157 if test ${tcl_cv_sys_version+y}
7158 then :
7159 printf %s "(cached) " >&6
7160 else case e in #(
7161 e)
7162 # TEA specific:
7163 if test "${TEA_PLATFORM}" = "windows" ; then
7164 tcl_cv_sys_version=windows
7165 else
7166 tcl_cv_sys_version=`uname -s`-`uname -r`
7167 if test "$?" -ne 0 ; then
7168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
7169 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
7170 tcl_cv_sys_version=unknown
7171 else
7172 if test "`uname -s`" = "AIX" ; then
7173 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
7174 fi
7175 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
7176 tcl_cv_sys_version=NetBSD-Debian
7177 fi
7178 fi
7179 fi
7180 ;;
7181 esac
7182 fi
7183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
7184 printf "%s\n" "$tcl_cv_sys_version" >&6; }
7185 system=$tcl_cv_sys_version
7186
7187
7188 # Require ranlib early so we can override it in special cases below.
7189
7190
7191
7192 # Set configuration options based on system name and version.
7193 # This is similar to Tcl's unix/tcl.m4 except that we've added a
7194 # "windows" case and removed some core-only vars.
7195
7196 do64bit_ok=no
7197 # default to '{$LIBS}' and set to "" on per-platform necessary basis
7198 SHLIB_LD_LIBS='${LIBS}'
7199 # When ld needs options to work in 64-bit mode, put them in
7200 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
7201 # is disabled by the user. [Bug 1016796]
7202 LDFLAGS_ARCH=""
7203 UNSHARED_LIB_SUFFIX=""
7204 # TEA specific: use PACKAGE_VERSION instead of VERSION
7205 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
7206 ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
7207 TCL_LIB_VERSIONS_OK=ok
7208 CFLAGS_DEBUG=-g
7209 if test "$GCC" = yes
7210 then :
7211
7212 CFLAGS_OPTIMIZE=-O2
7213 CFLAGS_WARNING="-Wall"
7214
7215 else case e in #(
7216 e)
7217 CFLAGS_OPTIMIZE=-O
7218 CFLAGS_WARNING=""
7219 ;;
7220 esac
7221 fi
7222 if test -n "$ac_tool_prefix"; then
7223 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7224 set dummy ${ac_tool_prefix}ar; ac_word=$2
7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 printf %s "checking for $ac_word... " >&6; }
7227 if test ${ac_cv_prog_AR+y}
7228 then :
7229 printf %s "(cached) " >&6
7230 else case e in #(
7231 e) if test -n "$AR"; then
7232 ac_cv_prog_AR="$AR" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237 IFS=$as_save_IFS
7238 case $as_dir in #(((
7239 '') as_dir=./ ;;
7240 */) ;;
7241 *) as_dir=$as_dir/ ;;
7242 esac
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7245 ac_cv_prog_AR="${ac_tool_prefix}ar"
7246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253 fi ;;
7254 esac
7255 fi
7256 AR=$ac_cv_prog_AR
7257 if test -n "$AR"; then
7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7259 printf "%s\n" "$AR" >&6; }
7260 else
7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 printf "%s\n" "no" >&6; }
7263 fi
7264
7265
7266 fi
7267 if test -z "$ac_cv_prog_AR"; then
7268 ac_ct_AR=$AR
7269 # Extract the first word of "ar", so it can be a program name with args.
7270 set dummy ar; ac_word=$2
7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272 printf %s "checking for $ac_word... " >&6; }
7273 if test ${ac_cv_prog_ac_ct_AR+y}
7274 then :
7275 printf %s "(cached) " >&6
7276 else case e in #(
7277 e) if test -n "$ac_ct_AR"; then
7278 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283 IFS=$as_save_IFS
7284 case $as_dir in #(((
7285 '') as_dir=./ ;;
7286 */) ;;
7287 *) as_dir=$as_dir/ ;;
7288 esac
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7291 ac_cv_prog_ac_ct_AR="ar"
7292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7293 break 2
7294 fi
7295 done
7296 done
7297 IFS=$as_save_IFS
7298
7299 fi ;;
7300 esac
7301 fi
7302 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7303 if test -n "$ac_ct_AR"; then
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7305 printf "%s\n" "$ac_ct_AR" >&6; }
7306 else
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 printf "%s\n" "no" >&6; }
7309 fi
7310
7311 if test "x$ac_ct_AR" = x; then
7312 AR=""
7313 else
7314 case $cross_compiling:$ac_tool_warned in
7315 yes:)
7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7317 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7318 ac_tool_warned=yes ;;
7319 esac
7320 AR=$ac_ct_AR
7321 fi
7322 else
7323 AR="$ac_cv_prog_AR"
7324 fi
7325
7326 STLIB_LD='${AR} cr'
7327 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
7328 if test "x$SHLIB_VERSION" = x
7329 then :
7330 SHLIB_VERSION=""
7331 else case e in #(
7332 e) SHLIB_VERSION=".$SHLIB_VERSION" ;;
7333 esac
7334 fi
7335 case $system in
7336 # TEA specific:
7337 windows)
7338 MACHINE="X86"
7339 if test "$do64bit" != "no" ; then
7340 case "$do64bit" in
7341 amd64|x64|yes)
7342 MACHINE="AMD64" ; # default to AMD64 64-bit build
7343 ;;
7344 arm64|aarch64)
7345 MACHINE="ARM64"
7346 ;;
7347 ia64)
7348 MACHINE="IA64"
7349 ;;
7350 esac
7351 do64bit_ok=yes
7352 fi
7353
7354 if test "$GCC" != "yes" ; then
7355 if test "${SHARED_BUILD}" = "0" ; then
7356 runtime=-MT
7357 else
7358 runtime=-MD
7359 fi
7360 case "x`echo \${VisualStudioVersion}`" in
7361 x1[4-9]*)
7362 lflags="${lflags} -nodefaultlib:ucrt.lib"
7363
7364 vars="ucrt.lib"
7365 for i in $vars; do
7366 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
7367 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
7368 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
7369 fi
7370 PKG_LIBS="$PKG_LIBS $i"
7371 done
7372
7373
7374 ;;
7375 *)
7376 ;;
7377 esac
7378
7379 if test "$do64bit" != "no" ; then
7380 CC="cl.exe"
7381 RC="rc.exe"
7382 lflags="${lflags} -nologo -MACHINE:${MACHINE} "
7383 LINKBIN="link.exe"
7384 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
7385 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7386 # Avoid 'unresolved external symbol __security_cookie'
7387 # errors, c.f. http://support.microsoft.com/?id=894573
7388
7389 vars="bufferoverflowU.lib"
7390 for i in $vars; do
7391 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
7392 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
7393 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
7394 fi
7395 PKG_LIBS="$PKG_LIBS $i"
7396 done
7397
7398
7399 else
7400 RC="rc"
7401 lflags="${lflags} -nologo"
7402 LINKBIN="link"
7403 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
7404 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7405 fi
7406 fi
7407
7408 if test "$GCC" = "yes"; then
7409 # mingw gcc mode
7410 if test -n "$ac_tool_prefix"; then
7411 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7412 set dummy ${ac_tool_prefix}windres; ac_word=$2
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 printf %s "checking for $ac_word... " >&6; }
7415 if test ${ac_cv_prog_RC+y}
7416 then :
7417 printf %s "(cached) " >&6
7418 else case e in #(
7419 e) if test -n "$RC"; then
7420 ac_cv_prog_RC="$RC" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425 IFS=$as_save_IFS
7426 case $as_dir in #(((
7427 '') as_dir=./ ;;
7428 */) ;;
7429 *) as_dir=$as_dir/ ;;
7430 esac
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7433 ac_cv_prog_RC="${ac_tool_prefix}windres"
7434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7435 break 2
7436 fi
7437 done
7438 done
7439 IFS=$as_save_IFS
7440
7441 fi ;;
7442 esac
7443 fi
7444 RC=$ac_cv_prog_RC
7445 if test -n "$RC"; then
7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
7447 printf "%s\n" "$RC" >&6; }
7448 else
7449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 printf "%s\n" "no" >&6; }
7451 fi
7452
7453
7454 fi
7455 if test -z "$ac_cv_prog_RC"; then
7456 ac_ct_RC=$RC
7457 # Extract the first word of "windres", so it can be a program name with args.
7458 set dummy windres; ac_word=$2
7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460 printf %s "checking for $ac_word... " >&6; }
7461 if test ${ac_cv_prog_ac_ct_RC+y}
7462 then :
7463 printf %s "(cached) " >&6
7464 else case e in #(
7465 e) if test -n "$ac_ct_RC"; then
7466 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
7467 else
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471 IFS=$as_save_IFS
7472 case $as_dir in #(((
7473 '') as_dir=./ ;;
7474 */) ;;
7475 *) as_dir=$as_dir/ ;;
7476 esac
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7479 ac_cv_prog_ac_ct_RC="windres"
7480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7481 break 2
7482 fi
7483 done
7484 done
7485 IFS=$as_save_IFS
7486
7487 fi ;;
7488 esac
7489 fi
7490 ac_ct_RC=$ac_cv_prog_ac_ct_RC
7491 if test -n "$ac_ct_RC"; then
7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
7493 printf "%s\n" "$ac_ct_RC" >&6; }
7494 else
7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 printf "%s\n" "no" >&6; }
7497 fi
7498
7499 if test "x$ac_ct_RC" = x; then
7500 RC=""
7501 else
7502 case $cross_compiling:$ac_tool_warned in
7503 yes:)
7504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7505 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7506 ac_tool_warned=yes ;;
7507 esac
7508 RC=$ac_ct_RC
7509 fi
7510 else
7511 RC="$ac_cv_prog_RC"
7512 fi
7513
7514 CFLAGS_DEBUG="-g"
7515 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7516 SHLIB_LD='${CC} -shared'
7517 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7518 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
7519 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
7520
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5
7522 printf %s "checking for cross-compile version of gcc... " >&6; }
7523 if test ${ac_cv_cross+y}
7524 then :
7525 printf %s "(cached) " >&6
7526 else case e in #(
7527 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7529
7530 #ifdef _WIN32
7531 #error cross-compiler
7532 #endif
7533
7534 int
7535 main (void)
7536 {
7537
7538 ;
7539 return 0;
7540 }
7541 _ACEOF
7542 if ac_fn_c_try_compile "$LINENO"
7543 then :
7544 ac_cv_cross=yes
7545 else case e in #(
7546 e) ac_cv_cross=no ;;
7547 esac
7548 fi
7549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7550 ;;
7551 esac
7552 fi
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5
7554 printf "%s\n" "$ac_cv_cross" >&6; }
7555 if test "$ac_cv_cross" = "yes"; then
7556 case "$do64bit" in
7557 amd64|x64|yes)
7558 CC="x86_64-w64-mingw32-${CC}"
7559 LD="x86_64-w64-mingw32-ld"
7560 AR="x86_64-w64-mingw32-ar"
7561 RANLIB="x86_64-w64-mingw32-ranlib"
7562 RC="x86_64-w64-mingw32-windres"
7563 ;;
7564 arm64|aarch64)
7565 CC="aarch64-w64-mingw32-clang"
7566 LD="aarch64-w64-mingw32-ld"
7567 AR="aarch64-w64-mingw32-ar"
7568 RANLIB="aarch64-w64-mingw32-ranlib"
7569 RC="aarch64-w64-mingw32-windres"
7570 ;;
7571 *)
7572 CC="i686-w64-mingw32-${CC}"
7573 LD="i686-w64-mingw32-ld"
7574 AR="i686-w64-mingw32-ar"
7575 RANLIB="i686-w64-mingw32-ranlib"
7576 RC="i686-w64-mingw32-windres"
7577 ;;
7578 esac
7579 fi
7580
7581 else
7582 SHLIB_LD="${LINKBIN} -dll ${lflags}"
7583 # link -lib only works when -lib is the first arg
7584 STLIB_LD="${LINKBIN} -lib ${lflags}"
7585 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
7586 PATHTYPE=-w
7587 # For information on what debugtype is most useful, see:
7588 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
7589 # and also
7590 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
7591 # This essentially turns it all on.
7592 LDFLAGS_DEBUG="-debug -debugtype:cv"
7593 LDFLAGS_OPTIMIZE="-release"
7594 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
7595 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
7596 fi
7597
7598 SHLIB_SUFFIX=".dll"
7599 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
7600
7601 TCL_LIB_VERSIONS_OK=nodots
7602 ;;
7603 AIX-*)
7604 if test "$GCC" != "yes"
7605 then :
7606
7607 # AIX requires the _r compiler when gcc isn't being used
7608 case "${CC}" in
7609 *_r|*_r\ *)
7610 # ok ...
7611 ;;
7612 *)
7613 # Make sure only first arg gets _r
7614 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
7615 ;;
7616 esac
7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
7618 printf "%s\n" "Using $CC for compiling with threads" >&6; }
7619
7620 fi
7621 LIBS="$LIBS -lc"
7622 SHLIB_CFLAGS=""
7623 SHLIB_SUFFIX=".so"
7624
7625 LD_LIBRARY_PATH_VAR="LIBPATH"
7626
7627 # Check to enable 64-bit flags for compiler/linker
7628 if test "$do64bit" = yes
7629 then :
7630
7631 if test "$GCC" = yes
7632 then :
7633
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7635 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7636
7637 else case e in #(
7638 e)
7639 do64bit_ok=yes
7640 CFLAGS="$CFLAGS -q64"
7641 LDFLAGS_ARCH="-q64"
7642 RANLIB="${RANLIB} -X64"
7643 AR="${AR} -X64"
7644 SHLIB_LD_FLAGS="-b64"
7645 ;;
7646 esac
7647 fi
7648
7649 fi
7650
7651 if test "`uname -m`" = ia64
7652 then :
7653
7654 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
7655 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7656 if test "$GCC" = yes
7657 then :
7658
7659 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
7660
7661 else case e in #(
7662 e)
7663 CC_SEARCH_FLAGS='"-R${LIB_RUNTIME_DIR}"'
7664 ;;
7665 esac
7666 fi
7667 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
7668
7669 else case e in #(
7670 e)
7671 if test "$GCC" = yes
7672 then :
7673
7674 SHLIB_LD='${CC} -shared -Wl,-bexpall'
7675
7676 else case e in #(
7677 e)
7678 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
7679 LDFLAGS="$LDFLAGS -brtl"
7680 ;;
7681 esac
7682 fi
7683 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
7684 CC_SEARCH_FLAGS='"-L${LIB_RUNTIME_DIR}"'
7685 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7686 ;;
7687 esac
7688 fi
7689 ;;
7690 BeOS*)
7691 SHLIB_CFLAGS="-fPIC"
7692 SHLIB_LD='${CC} -nostart'
7693 SHLIB_SUFFIX=".so"
7694
7695 #-----------------------------------------------------------
7696 # Check for inet_ntoa in -lbind, for BeOS (which also needs
7697 # -lsocket, even if the network functions are in -lnet which
7698 # is always linked to, for compatibility.
7699 #-----------------------------------------------------------
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
7701 printf %s "checking for inet_ntoa in -lbind... " >&6; }
7702 if test ${ac_cv_lib_bind_inet_ntoa+y}
7703 then :
7704 printf %s "(cached) " >&6
7705 else case e in #(
7706 e) ac_check_lib_save_LIBS=$LIBS
7707 LIBS="-lbind $LIBS"
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7710
7711 /* Override any GCC internal prototype to avoid an error.
7712 Use char because int might match the return type of a GCC
7713 builtin and then its argument prototype would still apply.
7714 The 'extern "C"' is for builds by C++ compilers;
7715 although this is not generally supported in C code supporting it here
7716 has little cost and some practical benefit (sr 110532). */
7717 #ifdef __cplusplus
7718 extern "C"
7719 #endif
7720 char inet_ntoa (void);
7721 int
7722 main (void)
7723 {
7724 return inet_ntoa ();
7725 ;
7726 return 0;
7727 }
7728 _ACEOF
7729 if ac_fn_c_try_link "$LINENO"
7730 then :
7731 ac_cv_lib_bind_inet_ntoa=yes
7732 else case e in #(
7733 e) ac_cv_lib_bind_inet_ntoa=no ;;
7734 esac
7735 fi
7736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7737 conftest$ac_exeext conftest.$ac_ext
7738 LIBS=$ac_check_lib_save_LIBS ;;
7739 esac
7740 fi
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
7742 printf "%s\n" "$ac_cv_lib_bind_inet_ntoa" >&6; }
7743 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes
7744 then :
7745 LIBS="$LIBS -lbind -lsocket"
7746 fi
7747
7748 ;;
7749 BSD/OS-2.1*|BSD/OS-3*)
7750 SHLIB_CFLAGS=""
7751 SHLIB_LD="shlicc -r"
7752 SHLIB_SUFFIX=".so"
7753 CC_SEARCH_FLAGS=""
7754 LD_SEARCH_FLAGS=""
7755 ;;
7756 BSD/OS-4.*)
7757 SHLIB_CFLAGS="-export-dynamic -fPIC"
7758 SHLIB_LD='${CC} -shared'
7759 SHLIB_SUFFIX=".so"
7760 LDFLAGS="$LDFLAGS -export-dynamic"
7761 CC_SEARCH_FLAGS=""
7762 LD_SEARCH_FLAGS=""
7763 ;;
7764 CYGWIN_*|MINGW32_*|MINGW64_*|MSYS_*)
7765 SHLIB_CFLAGS=""
7766 SHLIB_LD='${CC} -shared'
7767 SHLIB_SUFFIX=".dll"
7768 if test "${TEA_PLATFORM}" = "unix" -a "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
7769 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\$(patsubst cyg%.dll,lib%.dll,\$@).a"
7770 else
7771 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\[email protected]"
7772 fi
7773 EXEEXT=".exe"
7774 do64bit_ok=yes
7775 CC_SEARCH_FLAGS=""
7776 LD_SEARCH_FLAGS=""
7777 ;;
7778 dgux*)
7779 SHLIB_CFLAGS="-K PIC"
7780 SHLIB_LD='${CC} -G'
7781 SHLIB_LD_LIBS=""
7782 SHLIB_SUFFIX=".so"
7783 CC_SEARCH_FLAGS=""
7784 LD_SEARCH_FLAGS=""
7785 ;;
7786 Haiku*)
7787 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7788 SHLIB_CFLAGS="-fPIC"
7789 SHLIB_SUFFIX=".so"
7790 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
7792 printf %s "checking for inet_ntoa in -lnetwork... " >&6; }
7793 if test ${ac_cv_lib_network_inet_ntoa+y}
7794 then :
7795 printf %s "(cached) " >&6
7796 else case e in #(
7797 e) ac_check_lib_save_LIBS=$LIBS
7798 LIBS="-lnetwork $LIBS"
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7801
7802 /* Override any GCC internal prototype to avoid an error.
7803 Use char because int might match the return type of a GCC
7804 builtin and then its argument prototype would still apply.
7805 The 'extern "C"' is for builds by C++ compilers;
7806 although this is not generally supported in C code supporting it here
7807 has little cost and some practical benefit (sr 110532). */
7808 #ifdef __cplusplus
7809 extern "C"
7810 #endif
7811 char inet_ntoa (void);
7812 int
7813 main (void)
7814 {
7815 return inet_ntoa ();
7816 ;
7817 return 0;
7818 }
7819 _ACEOF
7820 if ac_fn_c_try_link "$LINENO"
7821 then :
7822 ac_cv_lib_network_inet_ntoa=yes
7823 else case e in #(
7824 e) ac_cv_lib_network_inet_ntoa=no ;;
7825 esac
7826 fi
7827 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7828 conftest$ac_exeext conftest.$ac_ext
7829 LIBS=$ac_check_lib_save_LIBS ;;
7830 esac
7831 fi
7832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5
7833 printf "%s\n" "$ac_cv_lib_network_inet_ntoa" >&6; }
7834 if test "x$ac_cv_lib_network_inet_ntoa" = xyes
7835 then :
7836 LIBS="$LIBS -lnetwork"
7837 fi
7838
7839 ;;
7840 HP-UX-*.11.*)
7841 # Use updated header definitions where possible
7842
7843 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
7844
7845 # TEA specific: Needed by Tcl, but not most extensions
7846 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
7847 #LIBS="$LIBS -lxnet" # Use the XOPEN network library
7848
7849 if test "`uname -m`" = ia64
7850 then :
7851
7852 SHLIB_SUFFIX=".so"
7853
7854 else case e in #(
7855 e)
7856 SHLIB_SUFFIX=".sl"
7857 ;;
7858 esac
7859 fi
7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7861 printf %s "checking for shl_load in -ldld... " >&6; }
7862 if test ${ac_cv_lib_dld_shl_load+y}
7863 then :
7864 printf %s "(cached) " >&6
7865 else case e in #(
7866 e) ac_check_lib_save_LIBS=$LIBS
7867 LIBS="-ldld $LIBS"
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7870
7871 /* Override any GCC internal prototype to avoid an error.
7872 Use char because int might match the return type of a GCC
7873 builtin and then its argument prototype would still apply.
7874 The 'extern "C"' is for builds by C++ compilers;
7875 although this is not generally supported in C code supporting it here
7876 has little cost and some practical benefit (sr 110532). */
7877 #ifdef __cplusplus
7878 extern "C"
7879 #endif
7880 char shl_load (void);
7881 int
7882 main (void)
7883 {
7884 return shl_load ();
7885 ;
7886 return 0;
7887 }
7888 _ACEOF
7889 if ac_fn_c_try_link "$LINENO"
7890 then :
7891 ac_cv_lib_dld_shl_load=yes
7892 else case e in #(
7893 e) ac_cv_lib_dld_shl_load=no ;;
7894 esac
7895 fi
7896 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7897 conftest$ac_exeext conftest.$ac_ext
7898 LIBS=$ac_check_lib_save_LIBS ;;
7899 esac
7900 fi
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7902 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
7903 if test "x$ac_cv_lib_dld_shl_load" = xyes
7904 then :
7905 tcl_ok=yes
7906 else case e in #(
7907 e) tcl_ok=no ;;
7908 esac
7909 fi
7910
7911 if test "$tcl_ok" = yes
7912 then :
7913
7914 SHLIB_CFLAGS="+z"
7915 SHLIB_LD="ld -b"
7916 LDFLAGS="$LDFLAGS -Wl,-E"
7917 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
7918 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
7919 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7920
7921 fi
7922 if test "$GCC" = yes
7923 then :
7924
7925 SHLIB_LD='${CC} -shared'
7926 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7927
7928 else case e in #(
7929 e)
7930 CFLAGS="$CFLAGS -z"
7931 ;;
7932 esac
7933 fi
7934
7935 # Check to enable 64-bit flags for compiler/linker
7936 if test "$do64bit" = "yes"
7937 then :
7938
7939 if test "$GCC" = yes
7940 then :
7941
7942 case `${CC} -dumpmachine` in
7943 hppa64*)
7944 # 64-bit gcc in use. Fix flags for GNU ld.
7945 do64bit_ok=yes
7946 SHLIB_LD='${CC} -shared'
7947 if test $doRpath = yes
7948 then :
7949
7950 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7951 fi
7952 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7953 ;;
7954 *)
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7956 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7957 ;;
7958 esac
7959
7960 else case e in #(
7961 e)
7962 do64bit_ok=yes
7963 CFLAGS="$CFLAGS +DD64"
7964 LDFLAGS_ARCH="+DD64"
7965 ;;
7966 esac
7967 fi
7968
7969 fi ;;
7970 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
7971 SHLIB_SUFFIX=".sl"
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7973 printf %s "checking for shl_load in -ldld... " >&6; }
7974 if test ${ac_cv_lib_dld_shl_load+y}
7975 then :
7976 printf %s "(cached) " >&6
7977 else case e in #(
7978 e) ac_check_lib_save_LIBS=$LIBS
7979 LIBS="-ldld $LIBS"
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982
7983 /* Override any GCC internal prototype to avoid an error.
7984 Use char because int might match the return type of a GCC
7985 builtin and then its argument prototype would still apply.
7986 The 'extern "C"' is for builds by C++ compilers;
7987 although this is not generally supported in C code supporting it here
7988 has little cost and some practical benefit (sr 110532). */
7989 #ifdef __cplusplus
7990 extern "C"
7991 #endif
7992 char shl_load (void);
7993 int
7994 main (void)
7995 {
7996 return shl_load ();
7997 ;
7998 return 0;
7999 }
8000 _ACEOF
8001 if ac_fn_c_try_link "$LINENO"
8002 then :
8003 ac_cv_lib_dld_shl_load=yes
8004 else case e in #(
8005 e) ac_cv_lib_dld_shl_load=no ;;
8006 esac
8007 fi
8008 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8009 conftest$ac_exeext conftest.$ac_ext
8010 LIBS=$ac_check_lib_save_LIBS ;;
8011 esac
8012 fi
8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8014 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
8015 if test "x$ac_cv_lib_dld_shl_load" = xyes
8016 then :
8017 tcl_ok=yes
8018 else case e in #(
8019 e) tcl_ok=no ;;
8020 esac
8021 fi
8022
8023 if test "$tcl_ok" = yes
8024 then :
8025
8026 SHLIB_CFLAGS="+z"
8027 SHLIB_LD="ld -b"
8028 SHLIB_LD_LIBS=""
8029 LDFLAGS="$LDFLAGS -Wl,-E"
8030 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
8031 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
8032 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
8033
8034 fi ;;
8035 IRIX-5.*)
8036 SHLIB_CFLAGS=""
8037 SHLIB_LD="ld -shared -rdata_shared"
8038 SHLIB_SUFFIX=".so"
8039 case " $LIBOBJS " in
8040 *" mkstemp.$ac_objext "* ) ;;
8041 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
8042 ;;
8043 esac
8044
8045 if test $doRpath = yes
8046 then :
8047
8048 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8049 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
8050 fi
8051 ;;
8052 IRIX-6.*)
8053 SHLIB_CFLAGS=""
8054 SHLIB_LD="ld -n32 -shared -rdata_shared"
8055 SHLIB_SUFFIX=".so"
8056 if test $doRpath = yes
8057 then :
8058
8059 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8060 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
8061 fi
8062 if test "$GCC" = yes
8063 then :
8064
8065 CFLAGS="$CFLAGS -mabi=n32"
8066 LDFLAGS="$LDFLAGS -mabi=n32"
8067
8068 else case e in #(
8069 e)
8070 case $system in
8071 IRIX-6.3)
8072 # Use to build 6.2 compatible binaries on 6.3.
8073 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
8074 ;;
8075 *)
8076 CFLAGS="$CFLAGS -n32"
8077 ;;
8078 esac
8079 LDFLAGS="$LDFLAGS -n32"
8080 ;;
8081 esac
8082 fi
8083 ;;
8084 IRIX64-6.*)
8085 SHLIB_CFLAGS=""
8086 SHLIB_LD="ld -n32 -shared -rdata_shared"
8087 SHLIB_SUFFIX=".so"
8088 if test $doRpath = yes
8089 then :
8090
8091 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8092 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
8093 fi
8094
8095 # Check to enable 64-bit flags for compiler/linker
8096
8097 if test "$do64bit" = yes
8098 then :
8099
8100 if test "$GCC" = yes
8101 then :
8102
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
8104 printf "%s\n" "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
8105
8106 else case e in #(
8107 e)
8108 do64bit_ok=yes
8109 SHLIB_LD="ld -64 -shared -rdata_shared"
8110 CFLAGS="$CFLAGS -64"
8111 LDFLAGS_ARCH="-64"
8112 ;;
8113 esac
8114 fi
8115
8116 fi
8117 ;;
8118 Linux*|GNU*|NetBSD-Debian|DragonFly-*|FreeBSD-*)
8119 SHLIB_CFLAGS="-fPIC"
8120 SHLIB_SUFFIX=".so"
8121
8122 # TEA specific:
8123 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
8124
8125 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8126 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS_DEFAULT} -shared'
8127 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
8128
8129 case $system in
8130 DragonFly-*|FreeBSD-*)
8131 if test "${TCL_THREADS}" = "1"
8132 then :
8133
8134 # The -pthread needs to go in the LDFLAGS, not LIBS
8135 LIBS=`echo $LIBS | sed s/-pthread//`
8136 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8137 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
8138 fi
8139 ;;
8140 esac
8141
8142 if test $doRpath = yes
8143 then :
8144
8145 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8146 fi
8147 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8148 if test "`uname -m`" = "alpha"
8149 then :
8150 CFLAGS="$CFLAGS -mieee"
8151 fi
8152 if test $do64bit = yes
8153 then :
8154
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
8156 printf %s "checking if compiler accepts -m64 flag... " >&6; }
8157 if test ${tcl_cv_cc_m64+y}
8158 then :
8159 printf %s "(cached) " >&6
8160 else case e in #(
8161 e)
8162 hold_cflags=$CFLAGS
8163 CFLAGS="$CFLAGS -m64"
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166
8167 int
8168 main (void)
8169 {
8170
8171 ;
8172 return 0;
8173 }
8174 _ACEOF
8175 if ac_fn_c_try_link "$LINENO"
8176 then :
8177 tcl_cv_cc_m64=yes
8178 else case e in #(
8179 e) tcl_cv_cc_m64=no ;;
8180 esac
8181 fi
8182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8183 conftest$ac_exeext conftest.$ac_ext
8184 CFLAGS=$hold_cflags ;;
8185 esac
8186 fi
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
8188 printf "%s\n" "$tcl_cv_cc_m64" >&6; }
8189 if test $tcl_cv_cc_m64 = yes
8190 then :
8191
8192 CFLAGS="$CFLAGS -m64"
8193 do64bit_ok=yes
8194
8195 fi
8196
8197 fi
8198
8199 # The combo of gcc + glibc has a bug related to inlining of
8200 # functions like strtod(). The -fno-builtin flag should address
8201 # this problem but it does not work. The -fno-inline flag is kind
8202 # of overkill but it works. Disable inlining only when one of the
8203 # files in compat/*.c is being linked in.
8204
8205 if test x"${USE_COMPAT}" != x
8206 then :
8207 CFLAGS="$CFLAGS -fno-inline"
8208 fi
8209 ;;
8210 Lynx*)
8211 SHLIB_CFLAGS="-fPIC"
8212 SHLIB_SUFFIX=".so"
8213 CFLAGS_OPTIMIZE=-02
8214 SHLIB_LD='${CC} -shared'
8215 LD_FLAGS="-Wl,--export-dynamic"
8216 if test $doRpath = yes
8217 then :
8218
8219 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8220 LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8221 fi
8222 ;;
8223 OpenBSD-*)
8224 arch=`arch -s`
8225 case "$arch" in
8226 alpha|sparc64)
8227 SHLIB_CFLAGS="-fPIC"
8228 ;;
8229 *)
8230 SHLIB_CFLAGS="-fpic"
8231 ;;
8232 esac
8233 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
8234 SHLIB_SUFFIX=".so"
8235 if test $doRpath = yes
8236 then :
8237
8238 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8239 fi
8240 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8241 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
8242 LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
8243 CFLAGS_OPTIMIZE="-O2"
8244 # On OpenBSD: Compile with -pthread
8245 # Don't link with -lpthread
8246 LIBS=`echo $LIBS | sed s/-lpthread//`
8247 CFLAGS="$CFLAGS -pthread"
8248 # OpenBSD doesn't do version numbers with dots.
8249 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8250 TCL_LIB_VERSIONS_OK=nodots
8251 ;;
8252 NetBSD-*)
8253 # NetBSD has ELF and can use 'cc -shared' to build shared libs
8254 SHLIB_CFLAGS="-fPIC"
8255 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
8256 SHLIB_SUFFIX=".so"
8257 LDFLAGS="$LDFLAGS -export-dynamic"
8258 if test $doRpath = yes
8259 then :
8260
8261 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8262 fi
8263 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8264 # The -pthread needs to go in the CFLAGS, not LIBS
8265 LIBS=`echo $LIBS | sed s/-pthread//`
8266 CFLAGS="$CFLAGS -pthread"
8267 LDFLAGS="$LDFLAGS -pthread"
8268 ;;
8269 Darwin-*)
8270 CFLAGS_OPTIMIZE="-Os"
8271 SHLIB_CFLAGS="-fno-common"
8272 # To avoid discrepancies between what headers configure sees during
8273 # preprocessing tests and compiling tests, move any -isysroot and
8274 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
8275 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
8276 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8277 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
8278 CFLAGS="`echo " ${CFLAGS}" | \
8279 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8280 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
8281 if test $do64bit = yes
8282 then :
8283
8284 case `arch` in
8285 ppc)
8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
8287 printf %s "checking if compiler accepts -arch ppc64 flag... " >&6; }
8288 if test ${tcl_cv_cc_arch_ppc64+y}
8289 then :
8290 printf %s "(cached) " >&6
8291 else case e in #(
8292 e)
8293 hold_cflags=$CFLAGS
8294 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h. */
8297
8298 int
8299 main (void)
8300 {
8301
8302 ;
8303 return 0;
8304 }
8305 _ACEOF
8306 if ac_fn_c_try_link "$LINENO"
8307 then :
8308 tcl_cv_cc_arch_ppc64=yes
8309 else case e in #(
8310 e) tcl_cv_cc_arch_ppc64=no ;;
8311 esac
8312 fi
8313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8314 conftest$ac_exeext conftest.$ac_ext
8315 CFLAGS=$hold_cflags ;;
8316 esac
8317 fi
8318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
8319 printf "%s\n" "$tcl_cv_cc_arch_ppc64" >&6; }
8320 if test $tcl_cv_cc_arch_ppc64 = yes
8321 then :
8322
8323 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8324 do64bit_ok=yes
8325
8326 fi;;
8327 i386)
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
8329 printf %s "checking if compiler accepts -arch x86_64 flag... " >&6; }
8330 if test ${tcl_cv_cc_arch_x86_64+y}
8331 then :
8332 printf %s "(cached) " >&6
8333 else case e in #(
8334 e)
8335 hold_cflags=$CFLAGS
8336 CFLAGS="$CFLAGS -arch x86_64"
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8339
8340 int
8341 main (void)
8342 {
8343
8344 ;
8345 return 0;
8346 }
8347 _ACEOF
8348 if ac_fn_c_try_link "$LINENO"
8349 then :
8350 tcl_cv_cc_arch_x86_64=yes
8351 else case e in #(
8352 e) tcl_cv_cc_arch_x86_64=no ;;
8353 esac
8354 fi
8355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8356 conftest$ac_exeext conftest.$ac_ext
8357 CFLAGS=$hold_cflags ;;
8358 esac
8359 fi
8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
8361 printf "%s\n" "$tcl_cv_cc_arch_x86_64" >&6; }
8362 if test $tcl_cv_cc_arch_x86_64 = yes
8363 then :
8364
8365 CFLAGS="$CFLAGS -arch x86_64"
8366 do64bit_ok=yes
8367
8368 fi;;
8369 *)
8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
8371 printf "%s\n" "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
8372 esac
8373
8374 else case e in #(
8375 e)
8376 # Check for combined 32-bit and 64-bit fat build
8377 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
8378 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '
8379 then :
8380
8381 fat_32_64=yes
8382 fi
8383 ;;
8384 esac
8385 fi
8386 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8387 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
8388 # TEA specific: link shlib with current and compatibility version flags
8389 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
8390 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
8391 SHLIB_SUFFIX=".dylib"
8392 LDFLAGS="$LDFLAGS -headerpad_max_install_names"
8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
8394 printf %s "checking if ld accepts -search_paths_first flag... " >&6; }
8395 if test ${tcl_cv_ld_search_paths_first+y}
8396 then :
8397 printf %s "(cached) " >&6
8398 else case e in #(
8399 e)
8400 hold_ldflags=$LDFLAGS
8401 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h. */
8404
8405 int
8406 main (void)
8407 {
8408 int i;
8409 ;
8410 return 0;
8411 }
8412 _ACEOF
8413 if ac_fn_c_try_link "$LINENO"
8414 then :
8415 tcl_cv_ld_search_paths_first=yes
8416 else case e in #(
8417 e) tcl_cv_ld_search_paths_first=no ;;
8418 esac
8419 fi
8420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8421 conftest$ac_exeext conftest.$ac_ext
8422 LDFLAGS=$hold_ldflags ;;
8423 esac
8424 fi
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
8426 printf "%s\n" "$tcl_cv_ld_search_paths_first" >&6; }
8427 if test $tcl_cv_ld_search_paths_first = yes
8428 then :
8429
8430 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8431
8432 fi
8433 if test "$tcl_cv_cc_visibility_hidden" != yes
8434 then :
8435
8436
8437 printf "%s\n" "#define MODULE_SCOPE __private_extern__" >>confdefs.h
8438
8439 tcl_cv_cc_visibility_hidden=yes
8440
8441 fi
8442 CC_SEARCH_FLAGS=""
8443 LD_SEARCH_FLAGS=""
8444 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
8445 # TEA specific: for combined 32 & 64 bit fat builds of Tk
8446 # extensions, verify that 64-bit build is possible.
8447 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"
8448 then :
8449
8450 if test "${TEA_WINDOWINGSYSTEM}" = x11
8451 then :
8452
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
8454 printf %s "checking for 64-bit X11... " >&6; }
8455 if test ${tcl_cv_lib_x11_64+y}
8456 then :
8457 printf %s "(cached) " >&6
8458 else case e in #(
8459 e)
8460 for v in CFLAGS CPPFLAGS LDFLAGS; do
8461 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8462 done
8463 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
8464 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 #include <X11/Xlib.h>
8468 int
8469 main (void)
8470 {
8471 XrmInitialize();
8472 ;
8473 return 0;
8474 }
8475 _ACEOF
8476 if ac_fn_c_try_link "$LINENO"
8477 then :
8478 tcl_cv_lib_x11_64=yes
8479 else case e in #(
8480 e) tcl_cv_lib_x11_64=no ;;
8481 esac
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8484 conftest$ac_exeext conftest.$ac_ext
8485 for v in CFLAGS CPPFLAGS LDFLAGS; do
8486 eval $v'="$hold_'$v'"'
8487 done ;;
8488 esac
8489 fi
8490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
8491 printf "%s\n" "$tcl_cv_lib_x11_64" >&6; }
8492
8493 fi
8494 if test "${TEA_WINDOWINGSYSTEM}" = aqua
8495 then :
8496
8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5
8498 printf %s "checking for 64-bit Tk... " >&6; }
8499 if test ${tcl_cv_lib_tk_64+y}
8500 then :
8501 printf %s "(cached) " >&6
8502 else case e in #(
8503 e)
8504 for v in CFLAGS CPPFLAGS LDFLAGS; do
8505 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8506 done
8507 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
8508 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511 #include <tk.h>
8512 int
8513 main (void)
8514 {
8515 Tk_InitStubs(NULL, "", 0);
8516 ;
8517 return 0;
8518 }
8519 _ACEOF
8520 if ac_fn_c_try_link "$LINENO"
8521 then :
8522 tcl_cv_lib_tk_64=yes
8523 else case e in #(
8524 e) tcl_cv_lib_tk_64=no ;;
8525 esac
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8528 conftest$ac_exeext conftest.$ac_ext
8529 for v in CFLAGS CPPFLAGS LDFLAGS; do
8530 eval $v'="$hold_'$v'"'
8531 done ;;
8532 esac
8533 fi
8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5
8535 printf "%s\n" "$tcl_cv_lib_tk_64" >&6; }
8536
8537 fi
8538 # remove 64-bit arch flags from CFLAGS et al. if configuration
8539 # does not support 64-bit.
8540 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no
8541 then :
8542
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
8544 printf "%s\n" "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
8545 for v in CFLAGS CPPFLAGS LDFLAGS; do
8546 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
8547 done
8548 fi
8549
8550 fi
8551 ;;
8552 OS/390-*)
8553 CFLAGS_OPTIMIZE="" # Optimizer is buggy
8554
8555 printf "%s\n" "#define _OE_SOCKETS 1" >>confdefs.h
8556
8557 ;;
8558 OSF1-V*)
8559 # Digital OSF/1
8560 SHLIB_CFLAGS=""
8561 if test "$SHARED_BUILD" = 1
8562 then :
8563
8564 SHLIB_LD='ld -shared -expect_unresolved "*"'
8565
8566 else case e in #(
8567 e)
8568 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
8569 ;;
8570 esac
8571 fi
8572 SHLIB_SUFFIX=".so"
8573 if test $doRpath = yes
8574 then :
8575
8576 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8577 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8578 fi
8579 if test "$GCC" = yes
8580 then :
8581 CFLAGS="$CFLAGS -mieee"
8582 else case e in #(
8583 e)
8584 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" ;;
8585 esac
8586 fi
8587 # see pthread_intro(3) for pthread support on osf1, k.furukawa
8588 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
8589 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
8590 LIBS=`echo $LIBS | sed s/-lpthreads//`
8591 if test "$GCC" = yes
8592 then :
8593
8594 LIBS="$LIBS -lpthread -lmach -lexc"
8595
8596 else case e in #(
8597 e)
8598 CFLAGS="$CFLAGS -pthread"
8599 LDFLAGS="$LDFLAGS -pthread"
8600 ;;
8601 esac
8602 fi
8603 ;;
8604 QNX-6*)
8605 # QNX RTP
8606 # This may work for all QNX, but it was only reported for v6.
8607 SHLIB_CFLAGS="-fPIC"
8608 SHLIB_LD="ld -Bshareable -x"
8609 SHLIB_LD_LIBS=""
8610 SHLIB_SUFFIX=".so"
8611 CC_SEARCH_FLAGS=""
8612 LD_SEARCH_FLAGS=""
8613 ;;
8614 SCO_SV-3.2*)
8615 if test "$GCC" = yes
8616 then :
8617
8618 SHLIB_CFLAGS="-fPIC -melf"
8619 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
8620
8621 else case e in #(
8622 e)
8623 SHLIB_CFLAGS="-Kpic -belf"
8624 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
8625 ;;
8626 esac
8627 fi
8628 SHLIB_LD="ld -G"
8629 SHLIB_LD_LIBS=""
8630 SHLIB_SUFFIX=".so"
8631 CC_SEARCH_FLAGS=""
8632 LD_SEARCH_FLAGS=""
8633 ;;
8634 SunOS-5.[0-6])
8635 # Careful to not let 5.10+ fall into this case
8636
8637 # Note: If _REENTRANT isn't defined, then Solaris
8638 # won't define thread-safe library routines.
8639
8640
8641 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
8642
8643
8644 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
8645
8646
8647 SHLIB_CFLAGS="-KPIC"
8648 SHLIB_SUFFIX=".so"
8649 if test "$GCC" = yes
8650 then :
8651
8652 SHLIB_LD='${CC} -shared'
8653 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8654 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8655
8656 else case e in #(
8657 e)
8658 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
8659 CC_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
8660 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8661 ;;
8662 esac
8663 fi
8664 ;;
8665 SunOS-5*)
8666 # Note: If _REENTRANT isn't defined, then Solaris
8667 # won't define thread-safe library routines.
8668
8669
8670 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
8671
8672
8673 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
8674
8675
8676 SHLIB_CFLAGS="-KPIC"
8677
8678 # Check to enable 64-bit flags for compiler/linker
8679 if test "$do64bit" = yes
8680 then :
8681
8682 arch=`isainfo`
8683 if test "$arch" = "sparcv9 sparc"
8684 then :
8685
8686 if test "$GCC" = yes
8687 then :
8688
8689 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3
8690 then :
8691
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
8693 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
8694
8695 else case e in #(
8696 e)
8697 do64bit_ok=yes
8698 CFLAGS="$CFLAGS -m64 -mcpu=v9"
8699 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
8700 SHLIB_CFLAGS="-fPIC"
8701 ;;
8702 esac
8703 fi
8704
8705 else case e in #(
8706 e)
8707 do64bit_ok=yes
8708 if test "$do64bitVIS" = yes
8709 then :
8710
8711 CFLAGS="$CFLAGS -xarch=v9a"
8712 LDFLAGS_ARCH="-xarch=v9a"
8713
8714 else case e in #(
8715 e)
8716 CFLAGS="$CFLAGS -xarch=v9"
8717 LDFLAGS_ARCH="-xarch=v9"
8718 ;;
8719 esac
8720 fi
8721 # Solaris 64 uses this as well
8722 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
8723 ;;
8724 esac
8725 fi
8726
8727 else case e in #(
8728 e) if test "$arch" = "amd64 i386"
8729 then :
8730
8731 if test "$GCC" = yes
8732 then :
8733
8734 case $system in
8735 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8736 do64bit_ok=yes
8737 CFLAGS="$CFLAGS -m64"
8738 LDFLAGS="$LDFLAGS -m64";;
8739 *)
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
8741 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
8742 esac
8743
8744 else case e in #(
8745 e)
8746 do64bit_ok=yes
8747 case $system in
8748 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8749 CFLAGS="$CFLAGS -m64"
8750 LDFLAGS="$LDFLAGS -m64";;
8751 *)
8752 CFLAGS="$CFLAGS -xarch=amd64"
8753 LDFLAGS="$LDFLAGS -xarch=amd64";;
8754 esac
8755 ;;
8756 esac
8757 fi
8758
8759 else case e in #(
8760 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
8761 printf "%s\n" "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} ;;
8762 esac
8763 fi ;;
8764 esac
8765 fi
8766
8767 fi
8768
8769 SHLIB_SUFFIX=".so"
8770 if test "$GCC" = yes
8771 then :
8772
8773 SHLIB_LD='${CC} -shared'
8774 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8775 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8776 if test "$do64bit_ok" = yes
8777 then :
8778
8779 if test "$arch" = "sparcv9 sparc"
8780 then :
8781
8782 # We need to specify -static-libgcc or we need to
8783 # add the path to the sparv9 libgcc.
8784 # JH: static-libgcc is necessary for core Tcl, but may
8785 # not be necessary for extensions.
8786 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
8787 # for finding sparcv9 libgcc, get the regular libgcc
8788 # path, remove so name and append 'sparcv9'
8789 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
8790 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
8791
8792 else case e in #(
8793 e) if test "$arch" = "amd64 i386"
8794 then :
8795
8796 # JH: static-libgcc is necessary for core Tcl, but may
8797 # not be necessary for extensions.
8798 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
8799
8800 fi ;;
8801 esac
8802 fi
8803
8804 fi
8805
8806 else case e in #(
8807 e)
8808 case $system in
8809 SunOS-5.[1-9][0-9]*)
8810 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8811 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
8812 *)
8813 SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
8814 esac
8815 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8816 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
8817 ;;
8818 esac
8819 fi
8820 ;;
8821 UNIX_SV* | UnixWare-5*)
8822 SHLIB_CFLAGS="-KPIC"
8823 SHLIB_LD='${CC} -G'
8824 SHLIB_LD_LIBS=""
8825 SHLIB_SUFFIX=".so"
8826 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
8827 # that don't grok the -Bexport option. Test that it does.
8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
8829 printf %s "checking for ld accepts -Bexport flag... " >&6; }
8830 if test ${tcl_cv_ld_Bexport+y}
8831 then :
8832 printf %s "(cached) " >&6
8833 else case e in #(
8834 e)
8835 hold_ldflags=$LDFLAGS
8836 LDFLAGS="$LDFLAGS -Wl,-Bexport"
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h. */
8839
8840 int
8841 main (void)
8842 {
8843 int i;
8844 ;
8845 return 0;
8846 }
8847 _ACEOF
8848 if ac_fn_c_try_link "$LINENO"
8849 then :
8850 tcl_cv_ld_Bexport=yes
8851 else case e in #(
8852 e) tcl_cv_ld_Bexport=no ;;
8853 esac
8854 fi
8855 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8856 conftest$ac_exeext conftest.$ac_ext
8857 LDFLAGS=$hold_ldflags ;;
8858 esac
8859 fi
8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
8861 printf "%s\n" "$tcl_cv_ld_Bexport" >&6; }
8862 if test $tcl_cv_ld_Bexport = yes
8863 then :
8864
8865 LDFLAGS="$LDFLAGS -Wl,-Bexport"
8866
8867 fi
8868 CC_SEARCH_FLAGS=""
8869 LD_SEARCH_FLAGS=""
8870 ;;
8871 esac
8872
8873 if test "$do64bit" = yes -a "$do64bit_ok" = no
8874 then :
8875
8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
8877 printf "%s\n" "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
8878
8879 fi
8880
8881
8882
8883 # Add in the arch flags late to ensure it wasn't removed.
8884 # Not necessary in TEA, but this is aligned with core
8885 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
8886
8887 # If we're running gcc, then change the C flags for compiling shared
8888 # libraries to the right flags for gcc, instead of those for the
8889 # standard manufacturer compiler.
8890
8891 if test "$GCC" = yes
8892 then :
8893
8894 case $system in
8895 AIX-*) ;;
8896 BSD/OS*) ;;
8897 CYGWIN_*|MINGW32_*|MINGW64_*|MSYS_*) ;;
8898 IRIX*) ;;
8899 NetBSD-*|DragonFly-*|FreeBSD-*|OpenBSD-*) ;;
8900 Darwin-*) ;;
8901 SCO_SV-3.2*) ;;
8902 windows) ;;
8903 *) SHLIB_CFLAGS="-fPIC" ;;
8904 esac
8905 fi
8906
8907 if test "$tcl_cv_cc_visibility_hidden" != yes
8908 then :
8909
8910
8911 printf "%s\n" "#define MODULE_SCOPE extern" >>confdefs.h
8912
8913
8914 fi
8915
8916 if test "$SHARED_LIB_SUFFIX" = ""
8917 then :
8918
8919 # TEA specific: use PACKAGE_VERSION instead of VERSION
8920 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
8921 fi
8922 if test "$UNSHARED_LIB_SUFFIX" = ""
8923 then :
8924
8925 # TEA specific: use PACKAGE_VERSION instead of VERSION
8926 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
8927 fi
8928
8929 if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5
8931 printf %s "checking for SEH support in compiler... " >&6; }
8932 if test ${tcl_cv_seh+y}
8933 then :
8934 printf %s "(cached) " >&6
8935 else case e in #(
8936 e) if test "$cross_compiling" = yes
8937 then :
8938 tcl_cv_seh=no
8939 else case e in #(
8940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942
8943 #define WIN32_LEAN_AND_MEAN
8944 #include <windows.h>
8945 #undef WIN32_LEAN_AND_MEAN
8946
8947 int main(int argc, char** argv) {
8948 int a, b = 0;
8949 __try {
8950 a = 666 / b;
8951 }
8952 __except (EXCEPTION_EXECUTE_HANDLER) {
8953 return 0;
8954 }
8955 return 1;
8956 }
8957
8958 _ACEOF
8959 if ac_fn_c_try_run "$LINENO"
8960 then :
8961 tcl_cv_seh=yes
8962 else case e in #(
8963 e) tcl_cv_seh=no ;;
8964 esac
8965 fi
8966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8967 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8968 esac
8969 fi
8970
8971 ;;
8972 esac
8973 fi
8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5
8975 printf "%s\n" "$tcl_cv_seh" >&6; }
8976 if test "$tcl_cv_seh" = "no" ; then
8977
8978 printf "%s\n" "#define HAVE_NO_SEH 1" >>confdefs.h
8979
8980 fi
8981
8982 #
8983 # Check to see if the excpt.h include file provided contains the
8984 # definition for EXCEPTION_DISPOSITION; if not, which is the case
8985 # with Cygwin's version as of 2002-04-10, define it to be int,
8986 # sufficient for getting the current code to work.
8987 #
8988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5
8989 printf %s "checking for EXCEPTION_DISPOSITION support in include files... " >&6; }
8990 if test ${tcl_cv_eh_disposition+y}
8991 then :
8992 printf %s "(cached) " >&6
8993 else case e in #(
8994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996
8997 # define WIN32_LEAN_AND_MEAN
8998 # include <windows.h>
8999 # undef WIN32_LEAN_AND_MEAN
9000
9001 int
9002 main (void)
9003 {
9004
9005 EXCEPTION_DISPOSITION x;
9006
9007 ;
9008 return 0;
9009 }
9010 _ACEOF
9011 if ac_fn_c_try_compile "$LINENO"
9012 then :
9013 tcl_cv_eh_disposition=yes
9014 else case e in #(
9015 e) tcl_cv_eh_disposition=no ;;
9016 esac
9017 fi
9018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9019 ;;
9020 esac
9021 fi
9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5
9023 printf "%s\n" "$tcl_cv_eh_disposition" >&6; }
9024 if test "$tcl_cv_eh_disposition" = "no" ; then
9025
9026 printf "%s\n" "#define EXCEPTION_DISPOSITION int" >>confdefs.h
9027
9028 fi
9029
9030 # Check to see if winnt.h defines CHAR, SHORT, and LONG
9031 # even if VOID has already been #defined. The win32api
9032 # used by mingw and cygwin is known to do this.
9033
9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5
9035 printf %s "checking for winnt.h that ignores VOID define... " >&6; }
9036 if test ${tcl_cv_winnt_ignore_void+y}
9037 then :
9038 printf %s "(cached) " >&6
9039 else case e in #(
9040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042
9043 #define VOID void
9044 #define WIN32_LEAN_AND_MEAN
9045 #include <windows.h>
9046 #undef WIN32_LEAN_AND_MEAN
9047
9048 int
9049 main (void)
9050 {
9051
9052 CHAR c;
9053 SHORT s;
9054 LONG l;
9055
9056 ;
9057 return 0;
9058 }
9059 _ACEOF
9060 if ac_fn_c_try_compile "$LINENO"
9061 then :
9062 tcl_cv_winnt_ignore_void=yes
9063 else case e in #(
9064 e) tcl_cv_winnt_ignore_void=no ;;
9065 esac
9066 fi
9067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9068 ;;
9069 esac
9070 fi
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5
9072 printf "%s\n" "$tcl_cv_winnt_ignore_void" >&6; }
9073 if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
9074
9075 printf "%s\n" "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h
9076
9077 fi
9078 fi
9079
9080 # See if the compiler supports casting to a union type.
9081 # This is used to stop gcc from printing a compiler
9082 # warning when initializing a union member.
9083
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5
9085 printf %s "checking for cast to union support... " >&6; }
9086 if test ${tcl_cv_cast_to_union+y}
9087 then :
9088 printf %s "(cached) " >&6
9089 else case e in #(
9090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h. */
9092
9093 int
9094 main (void)
9095 {
9096
9097 union foo { int i; double d; };
9098 union foo f = (union foo) (int) 0;
9099
9100 ;
9101 return 0;
9102 }
9103 _ACEOF
9104 if ac_fn_c_try_compile "$LINENO"
9105 then :
9106 tcl_cv_cast_to_union=yes
9107 else case e in #(
9108 e) tcl_cv_cast_to_union=no ;;
9109 esac
9110 fi
9111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9112 ;;
9113 esac
9114 fi
9115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5
9116 printf "%s\n" "$tcl_cv_cast_to_union" >&6; }
9117 if test "$tcl_cv_cast_to_union" = "yes"; then
9118
9119 printf "%s\n" "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
9120
9121 fi
9122
9123 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
9124 if test "x$ac_cv_header_stdbool_h" = xyes
9125 then :
9126
9127 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
9128
9129 fi
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146 # These must be called after we do the basic CFLAGS checks and
9147 # verify any possible 64-bit or similar switches are necessary
9148
9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
9150 printf %s "checking for required early compiler flags... " >&6; }
9151 tcl_flags=""
9152
9153 if test ${tcl_cv_flag__isoc99_source+y}
9154 then :
9155 printf %s "(cached) " >&6
9156 else case e in #(
9157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9159 #include <stdlib.h>
9160 int
9161 main (void)
9162 {
9163 char *p = (char *)strtoll; char *q = (char *)strtoull;
9164 ;
9165 return 0;
9166 }
9167 _ACEOF
9168 if ac_fn_c_try_compile "$LINENO"
9169 then :
9170 tcl_cv_flag__isoc99_source=no
9171 else case e in #(
9172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 #define _ISOC99_SOURCE 1
9175 #include <stdlib.h>
9176 int
9177 main (void)
9178 {
9179 char *p = (char *)strtoll; char *q = (char *)strtoull;
9180 ;
9181 return 0;
9182 }
9183 _ACEOF
9184 if ac_fn_c_try_compile "$LINENO"
9185 then :
9186 tcl_cv_flag__isoc99_source=yes
9187 else case e in #(
9188 e) tcl_cv_flag__isoc99_source=no ;;
9189 esac
9190 fi
9191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9192 esac
9193 fi
9194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9195 esac
9196 fi
9197
9198 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
9199
9200 printf "%s\n" "#define _ISOC99_SOURCE 1" >>confdefs.h
9201
9202 tcl_flags="$tcl_flags _ISOC99_SOURCE"
9203 fi
9204
9205 if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
9206
9207 if test ${tcl_cv_flag__file_offset_bits+y}
9208 then :
9209 printf %s "(cached) " >&6
9210 else case e in #(
9211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9213 #include <sys/stat.h>
9214 int
9215 main (void)
9216 {
9217 switch (0) { case 0: case (sizeof(off_t)==sizeof(long long)): ; }
9218 ;
9219 return 0;
9220 }
9221 _ACEOF
9222 if ac_fn_c_try_compile "$LINENO"
9223 then :
9224 tcl_cv_flag__file_offset_bits=no
9225 else case e in #(
9226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9228 #define _FILE_OFFSET_BITS 64
9229 #include <sys/stat.h>
9230 int
9231 main (void)
9232 {
9233 switch (0) { case 0: case (sizeof(off_t)==sizeof(long long)): ; }
9234 ;
9235 return 0;
9236 }
9237 _ACEOF
9238 if ac_fn_c_try_compile "$LINENO"
9239 then :
9240 tcl_cv_flag__file_offset_bits=yes
9241 else case e in #(
9242 e) tcl_cv_flag__file_offset_bits=no ;;
9243 esac
9244 fi
9245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9246 esac
9247 fi
9248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9249 esac
9250 fi
9251
9252 if test "x${tcl_cv_flag__file_offset_bits}" = "xyes" ; then
9253
9254 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9255
9256 tcl_flags="$tcl_flags _FILE_OFFSET_BITS"
9257 fi
9258
9259 fi
9260 if test "x${tcl_flags}" = "x" ; then
9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9262 printf "%s\n" "none" >&6; }
9263 else
9264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
9265 printf "%s\n" "${tcl_flags}" >&6; }
9266 fi
9267
9268
9269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
9270 printf %s "checking for 64-bit integer type... " >&6; }
9271 if test ${tcl_cv_type_64bit+y}
9272 then :
9273 printf %s "(cached) " >&6
9274 else case e in #(
9275 e)
9276 tcl_cv_type_64bit=none
9277 # See if the compiler knows natively about __int64
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280
9281 int
9282 main (void)
9283 {
9284 __int64 value = (__int64) 0;
9285 ;
9286 return 0;
9287 }
9288 _ACEOF
9289 if ac_fn_c_try_compile "$LINENO"
9290 then :
9291 tcl_type_64bit=__int64
9292 else case e in #(
9293 e) tcl_type_64bit="long long" ;;
9294 esac
9295 fi
9296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9297 # See if we could use long anyway Note that we substitute in the
9298 # type that is our current guess for a 64-bit type inside this check
9299 # program, so it should be modified only carefully...
9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9302
9303 int
9304 main (void)
9305 {
9306 switch (0) {
9307 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
9308 }
9309 ;
9310 return 0;
9311 }
9312 _ACEOF
9313 if ac_fn_c_try_compile "$LINENO"
9314 then :
9315 tcl_cv_type_64bit=${tcl_type_64bit}
9316 fi
9317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9318 esac
9319 fi
9320
9321 if test "${tcl_cv_type_64bit}" = none ; then
9322
9323 printf "%s\n" "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
9324
9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9326 printf "%s\n" "yes" >&6; }
9327 elif test "${tcl_cv_type_64bit}" = "__int64" \
9328 -a "${TEA_PLATFORM}" = "windows" ; then
9329 # TEA specific: We actually want to use the default tcl.h checks in
9330 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
9332 printf "%s\n" "using Tcl header defaults" >&6; }
9333 else
9334
9335 printf "%s\n" "#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}" >>confdefs.h
9336
9337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
9338 printf "%s\n" "${tcl_cv_type_64bit}" >&6; }
9339
9340 # Now check for auxiliary declarations
9341 if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t" >&5
9343 printf %s "checking for 64-bit time_t... " >&6; }
9344 if test ${tcl_cv_time_t_64+y}
9345 then :
9346 printf %s "(cached) " >&6
9347 else case e in #(
9348 e)
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9351 #include <sys/types.h>
9352 int
9353 main (void)
9354 {
9355 switch (0) {case 0: case (sizeof(time_t)==sizeof(long long)): ;}
9356 ;
9357 return 0;
9358 }
9359 _ACEOF
9360 if ac_fn_c_try_compile "$LINENO"
9361 then :
9362 tcl_cv_time_t_64=yes
9363 else case e in #(
9364 e) tcl_cv_time_t_64=no ;;
9365 esac
9366 fi
9367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9368 esac
9369 fi
9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_time_t_64" >&5
9371 printf "%s\n" "$tcl_cv_time_t_64" >&6; }
9372 if test "x${tcl_cv_time_t_64}" = "xno" ; then
9373 # Note that _TIME_BITS=64 requires _FILE_OFFSET_BITS=64
9374 # which SC_TCL_EARLY_FLAGS has defined if necessary.
9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _TIME_BITS=64 enables 64-bit time_t" >&5
9376 printf %s "checking if _TIME_BITS=64 enables 64-bit time_t... " >&6; }
9377 if test ${tcl_cv__time_bits+y}
9378 then :
9379 printf %s "(cached) " >&6
9380 else case e in #(
9381 e)
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9384 #define _TIME_BITS 64
9385 #include <sys/types.h>
9386 int
9387 main (void)
9388 {
9389 switch (0) {case 0: case (sizeof(time_t)==sizeof(long long)): ;}
9390 ;
9391 return 0;
9392 }
9393 _ACEOF
9394 if ac_fn_c_try_compile "$LINENO"
9395 then :
9396 tcl_cv__time_bits=yes
9397 else case e in #(
9398 e) tcl_cv__time_bits=no ;;
9399 esac
9400 fi
9401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9402 esac
9403 fi
9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv__time_bits" >&5
9405 printf "%s\n" "$tcl_cv__time_bits" >&6; }
9406 if test "x${tcl_cv__time_bits}" = "xyes" ; then
9407
9408 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
9409
9410 fi
9411 fi
9412 fi
9413
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
9415 printf %s "checking for struct dirent64... " >&6; }
9416 if test ${tcl_cv_struct_dirent64+y}
9417 then :
9418 printf %s "(cached) " >&6
9419 else case e in #(
9420 e)
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9423 #include <sys/types.h>
9424 #include <dirent.h>
9425 int
9426 main (void)
9427 {
9428 struct dirent64 p;
9429 ;
9430 return 0;
9431 }
9432 _ACEOF
9433 if ac_fn_c_try_compile "$LINENO"
9434 then :
9435 tcl_cv_struct_dirent64=yes
9436 else case e in #(
9437 e) tcl_cv_struct_dirent64=no ;;
9438 esac
9439 fi
9440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9441 esac
9442 fi
9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
9444 printf "%s\n" "$tcl_cv_struct_dirent64" >&6; }
9445 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
9446
9447 printf "%s\n" "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
9448
9449 fi
9450
9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DIR64" >&5
9452 printf %s "checking for DIR64... " >&6; }
9453 if test ${tcl_cv_DIR64+y}
9454 then :
9455 printf %s "(cached) " >&6
9456 else case e in #(
9457 e)
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460 #include <sys/types.h>
9461 #include <dirent.h>
9462 int
9463 main (void)
9464 {
9465 struct dirent64 *p; DIR64 d = opendir64(".");
9466 p = readdir64(d); rewinddir64(d); closedir64(d);
9467 ;
9468 return 0;
9469 }
9470 _ACEOF
9471 if ac_fn_c_try_compile "$LINENO"
9472 then :
9473 tcl_cv_DIR64=yes
9474 else case e in #(
9475 e) tcl_cv_DIR64=no ;;
9476 esac
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9479 esac
9480 fi
9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_DIR64" >&5
9482 printf "%s\n" "$tcl_cv_DIR64" >&6; }
9483 if test "x${tcl_cv_DIR64}" = "xyes" ; then
9484
9485 printf "%s\n" "#define HAVE_DIR64 1" >>confdefs.h
9486
9487 fi
9488
9489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
9490 printf %s "checking for struct stat64... " >&6; }
9491 if test ${tcl_cv_struct_stat64+y}
9492 then :
9493 printf %s "(cached) " >&6
9494 else case e in #(
9495 e)
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 #include <sys/stat.h>
9499 int
9500 main (void)
9501 {
9502 struct stat64 p;
9503
9504 ;
9505 return 0;
9506 }
9507 _ACEOF
9508 if ac_fn_c_try_compile "$LINENO"
9509 then :
9510 tcl_cv_struct_stat64=yes
9511 else case e in #(
9512 e) tcl_cv_struct_stat64=no ;;
9513 esac
9514 fi
9515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9516 esac
9517 fi
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
9519 printf "%s\n" "$tcl_cv_struct_stat64" >&6; }
9520 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
9521
9522 printf "%s\n" "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
9523
9524 fi
9525
9526 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
9527 if test "x$ac_cv_func_open64" = xyes
9528 then :
9529 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
9530
9531 fi
9532 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
9533 if test "x$ac_cv_func_lseek64" = xyes
9534 then :
9535 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
9536
9537 fi
9538
9539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
9540 printf %s "checking for off64_t... " >&6; }
9541 if test ${tcl_cv_type_off64_t+y}
9542 then :
9543 printf %s "(cached) " >&6
9544 else case e in #(
9545 e)
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9548 #include <sys/types.h>
9549 int
9550 main (void)
9551 {
9552 off64_t offset;
9553
9554 ;
9555 return 0;
9556 }
9557 _ACEOF
9558 if ac_fn_c_try_compile "$LINENO"
9559 then :
9560 tcl_cv_type_off64_t=yes
9561 else case e in #(
9562 e) tcl_cv_type_off64_t=no ;;
9563 esac
9564 fi
9565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9566 esac
9567 fi
9568
9569 if test "x${tcl_cv_type_off64_t}" = "xyes" && \
9570 test "x${ac_cv_func_lseek64}" = "xyes" && \
9571 test "x${ac_cv_func_open64}" = "xyes" ; then
9572
9573 printf "%s\n" "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
9574
9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9576 printf "%s\n" "yes" >&6; }
9577 else
9578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9579 printf "%s\n" "no" >&6; }
9580 fi
9581 fi
9582
9583
9584
9585 #--------------------------------------------------------------------
9586 # Set the default compiler switches based on the --enable-symbols option.
9587 #--------------------------------------------------------------------
9588
9589
9590
9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
9592 printf %s "checking for build with symbols... " >&6; }
9593 # Check whether --enable-symbols was given.
9594 if test ${enable_symbols+y}
9595 then :
9596 enableval=$enable_symbols; tcl_ok=$enableval
9597 else case e in #(
9598 e) tcl_ok=no ;;
9599 esac
9600 fi
9601
9602 if test "$tcl_ok" = "no"; then
9603 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG"
9604 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9606 printf "%s\n" "no" >&6; }
9607
9608 printf "%s\n" "#define TCL_CFG_OPTIMIZED 1" >>confdefs.h
9609
9610 else
9611 CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
9612 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
9613 if test "$tcl_ok" = "yes"; then
9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
9615 printf "%s\n" "yes (standard debugging)" >&6; }
9616 fi
9617 fi
9618
9619
9620
9621 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
9622
9623 printf "%s\n" "#define TCL_MEM_DEBUG 1" >>confdefs.h
9624
9625 fi
9626
9627 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
9628 if test "$tcl_ok" = "all"; then
9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
9630 printf "%s\n" "enabled symbols mem debugging" >&6; }
9631 else
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
9633 printf "%s\n" "enabled $tcl_ok debugging" >&6; }
9634 fi
9635 fi
9636
9637
9638 #--------------------------------------------------------------------
9639 # Itcl stubs
9640 #--------------------------------------------------------------------
9641
9642 if test "${SHARED_BUILD}" = "1" ; then
9643 printf "%s\n" "#define USE_ITCL_STUBS 1" >>confdefs.h
9644
9645 fi
9646
9647 #--------------------------------------------------------------------
9648 # This macro generates a line to use when building a library. It
9649 # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
9650 # and TEA_LOAD_TCLCONFIG macros above.
9651 #--------------------------------------------------------------------
9652
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
9654 printf %s "checking for egrep -e... " >&6; }
9655 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
9656 then :
9657 printf %s "(cached) " >&6
9658 else case e in #(
9659 e) if test -z "$EGREP_TRADITIONAL"; then
9660 ac_path_EGREP_TRADITIONAL_found=false
9661 # Loop through the user's path and test for each of PROGNAME-LIST
9662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9664 do
9665 IFS=$as_save_IFS
9666 case $as_dir in #(((
9667 '') as_dir=./ ;;
9668 */) ;;
9669 *) as_dir=$as_dir/ ;;
9670 esac
9671 for ac_prog in grep ggrep
9672 do
9673 for ac_exec_ext in '' $ac_executable_extensions; do
9674 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
9675 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
9676 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
9677 # Check for GNU $ac_path_EGREP_TRADITIONAL
9678 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
9679 *GNU*)
9680 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
9681 #(
9682 *)
9683 ac_count=0
9684 printf %s 0123456789 >"conftest.in"
9685 while :
9686 do
9687 cat "conftest.in" "conftest.in" >"conftest.tmp"
9688 mv "conftest.tmp" "conftest.in"
9689 cp "conftest.in" "conftest.nl"
9690 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
9691 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9693 as_fn_arith $ac_count + 1 && ac_count=$as_val
9694 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
9695 # Best one so far, save it but keep looking for a better one
9696 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
9697 ac_path_EGREP_TRADITIONAL_max=$ac_count
9698 fi
9699 # 10*(2^10) chars as input seems more than enough
9700 test $ac_count -gt 10 && break
9701 done
9702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9703 esac
9704
9705 $ac_path_EGREP_TRADITIONAL_found && break 3
9706 done
9707 done
9708 done
9709 IFS=$as_save_IFS
9710 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
9711 :
9712 fi
9713 else
9714 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
9715 fi
9716
9717 if test "$ac_cv_path_EGREP_TRADITIONAL"
9718 then :
9719 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
9720 else case e in #(
9721 e) if test -z "$EGREP_TRADITIONAL"; then
9722 ac_path_EGREP_TRADITIONAL_found=false
9723 # Loop through the user's path and test for each of PROGNAME-LIST
9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9726 do
9727 IFS=$as_save_IFS
9728 case $as_dir in #(((
9729 '') as_dir=./ ;;
9730 */) ;;
9731 *) as_dir=$as_dir/ ;;
9732 esac
9733 for ac_prog in egrep
9734 do
9735 for ac_exec_ext in '' $ac_executable_extensions; do
9736 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
9737 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
9738 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
9739 # Check for GNU $ac_path_EGREP_TRADITIONAL
9740 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
9741 *GNU*)
9742 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
9743 #(
9744 *)
9745 ac_count=0
9746 printf %s 0123456789 >"conftest.in"
9747 while :
9748 do
9749 cat "conftest.in" "conftest.in" >"conftest.tmp"
9750 mv "conftest.tmp" "conftest.in"
9751 cp "conftest.in" "conftest.nl"
9752 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
9753 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9755 as_fn_arith $ac_count + 1 && ac_count=$as_val
9756 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
9757 # Best one so far, save it but keep looking for a better one
9758 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
9759 ac_path_EGREP_TRADITIONAL_max=$ac_count
9760 fi
9761 # 10*(2^10) chars as input seems more than enough
9762 test $ac_count -gt 10 && break
9763 done
9764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9765 esac
9766
9767 $ac_path_EGREP_TRADITIONAL_found && break 3
9768 done
9769 done
9770 done
9771 IFS=$as_save_IFS
9772 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
9773 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9774 fi
9775 else
9776 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
9777 fi
9778 ;;
9779 esac
9780 fi ;;
9781 esac
9782 fi
9783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
9784 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
9785 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
9786
9787
9788 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
9789 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
9790 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
9791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9792 /* end confdefs.h. */
9793
9794 #if defined(_MSC_VER) && _MSC_VER >= 1400
9795 print("manifest needed")
9796 #endif
9797
9798 _ACEOF
9799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9800 $EGREP_TRADITIONAL "manifest needed" >/dev/null 2>&1
9801 then :
9802
9803 # Could do a CHECK_PROG for mt, but should always be with MSVC8+
9804 VC_MANIFEST_EMBED_DLL="if test -f \[email protected] ; then mt.exe -nologo -manifest \[email protected] -outputresource:\$@\;2 ; fi"
9805 VC_MANIFEST_EMBED_EXE="if test -f \[email protected] ; then mt.exe -nologo -manifest \[email protected] -outputresource:\$@\;1 ; fi"
9806 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
9807
9808 CLEANFILES="$CLEANFILES *.manifest"
9809
9810
9811 fi
9812 rm -rf conftest*
9813
9814 MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)"
9815 else
9816 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
9817 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
9818 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
9819 fi
9820
9821 if test "${SHARED_BUILD}" = "1" ; then
9822 MAKE_LIB="${MAKE_SHARED_LIB} "
9823 else
9824 MAKE_LIB="${MAKE_STATIC_LIB} "
9825 fi
9826
9827 #--------------------------------------------------------------------
9828 # Shared libraries and static libraries have different names.
9829 # Use the double eval to make sure any variables in the suffix is
9830 # substituted. (@@@ Might not be necessary anymore)
9831 #--------------------------------------------------------------------
9832
9833 if test "$TEA_PLATFORM" = "unix"; then
9834 PACKAGE_LIB_PREFIX8="lib"
9835 if test "$EXEEXT" = ".exe" -a "$SHARED_BUILD" != "0"; then
9836 PACKAGE_LIB_PREFIX9="cygtcl9"
9837 else
9838 PACKAGE_LIB_PREFIX9="libtcl9"
9839 fi
9840 else
9841 PACKAGE_LIB_PREFIX8=""
9842 PACKAGE_LIB_PREFIX9="tcl9"
9843 fi
9844 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
9845 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX9}"
9846 else
9847 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX8}"
9848
9849 printf "%s\n" "#define TCL_MAJOR_VERSION 8" >>confdefs.h
9850
9851
9852 printf "%s\n" "#define TK_MAJOR_VERSION 8" >>confdefs.h
9853
9854 fi
9855 if test "${TEA_PLATFORM}" = "windows" ; then
9856 if test "${SHARED_BUILD}" = "1" ; then
9857 # We force the unresolved linking of symbols that are really in
9858 # the private libraries of Tcl and Tk.
9859 if test x"${TK_BIN_DIR}" != x ; then
9860 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
9861 fi
9862 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
9863 if test "$GCC" = "yes"; then
9864 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc"
9865 fi
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker understands --disable-high-entropy-va" >&5
9867 printf %s "checking if the linker understands --disable-high-entropy-va... " >&6; }
9868 if test ${tcl_cv_ld_high_entropy+y}
9869 then :
9870 printf %s "(cached) " >&6
9871 else case e in #(
9872 e)
9873 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Wl,--disable-high-entropy-va"
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9876
9877 int
9878 main (void)
9879 {
9880
9881 ;
9882 return 0;
9883 }
9884 _ACEOF
9885 if ac_fn_c_try_link "$LINENO"
9886 then :
9887 tcl_cv_ld_high_entropy=yes
9888 else case e in #(
9889 e) tcl_cv_ld_high_entropy=no ;;
9890 esac
9891 fi
9892 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9893 conftest$ac_exeext conftest.$ac_ext
9894 CFLAGS=$hold_cflags ;;
9895 esac
9896 fi
9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_high_entropy" >&5
9898 printf "%s\n" "$tcl_cv_ld_high_entropy" >&6; }
9899 if test $tcl_cv_ld_high_entropy = yes; then
9900 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--disable-high-entropy-va"
9901 fi
9902 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9903 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9904 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9905 else
9906 if test "$GCC" = "yes"; then
9907 PACKAGE_LIB_PREFIX=lib${PACKAGE_LIB_PREFIX}
9908 fi
9909 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9910 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9911 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9912 fi
9913 # Some packages build their own stubs libraries
9914 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
9915 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub.a"
9916 else
9917 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
9918 fi
9919 if test "$GCC" = "yes"; then
9920 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
9921 fi
9922 # These aren't needed on Windows (either MSVC or gcc)
9923 RANLIB=:
9924 RANLIB_STUB=:
9925 else
9926 RANLIB_STUB="${RANLIB}"
9927 if test "${SHARED_BUILD}" = "1" ; then
9928 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
9929 if test x"${TK_BIN_DIR}" != x ; then
9930 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
9931 fi
9932 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9933 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9934 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9935 RANLIB=:
9936 else
9937 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9938 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9939 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9940 fi
9941 # Some packages build their own stubs libraries
9942 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
9943 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub.a"
9944 else
9945 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
9946 fi
9947 fi
9948
9949 # These are escaped so that only CFLAGS is picked up at configure time.
9950 # The other values will be substituted at make time.
9951 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
9952 if test "${SHARED_BUILD}" = "1" ; then
9953 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
9954 fi
9955
9956
9957
9958
9959
9960 # Substitute STUB_LIB_FILE in case package creates a stub library too.
9961
9962
9963
9964
9965
9966
9967 #--------------------------------------------------------------------
9968 # Determine the name of the tclsh and/or wish executables in the
9969 # Tcl and Tk build directories or the location they were installed
9970 # into. These paths are used to support running test cases only,
9971 # the Makefile should not be making use of these paths to generate
9972 # a pkgIndex.tcl file or anything else at extension build time.
9973 #--------------------------------------------------------------------
9974
9975
9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
9977 printf %s "checking for tclsh... " >&6; }
9978 if test -f "${TCL_BIN_DIR}/Makefile" ; then
9979 # tclConfig.sh is in Tcl build directory
9980 if test "${TEA_PLATFORM}" = "windows"; then
9981 if test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}" ; then
9982 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
9983 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}" ; then
9984 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}"
9985 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}" ; then
9986 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}"
9987 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}" ; then
9988 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}"
9989 fi
9990 else
9991 TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
9992 fi
9993 else
9994 # tclConfig.sh is in install location
9995 if test "${TEA_PLATFORM}" = "windows"; then
9996 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
9997 else
9998 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
9999 fi
10000 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
10001 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \
10002 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`"
10003 for i in $list ; do
10004 if test -f "$i/${TCLSH_PROG}" ; then
10005 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
10006 break
10007 fi
10008 done
10009 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
10010 fi
10011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
10012 printf "%s\n" "${TCLSH_PROG}" >&6; }
10013
10014
10015
10016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wish" >&5
10017 printf %s "checking for wish... " >&6; }
10018 if test -f "${TK_BIN_DIR}/Makefile" ; then
10019 # tkConfig.sh is in Tk build directory
10020 if test "${TEA_PLATFORM}" = "windows"; then
10021 if test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${EXEEXT}" ; then
10022 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${EXEEXT}"
10023 elif test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}s${EXEEXT}" ; then
10024 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}$s{EXEEXT}"
10025 elif test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}t${EXEEXT}" ; then
10026 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}t${EXEEXT}"
10027 elif test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}st${EXEEXT}" ; then
10028 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}st${EXEEXT}"
10029 fi
10030 else
10031 WISH_PROG="${TK_BIN_DIR}/wish"
10032 fi
10033 else
10034 # tkConfig.sh is in install location
10035 if test "${TEA_PLATFORM}" = "windows"; then
10036 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${EXEEXT}"
10037 else
10038 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}"
10039 fi
10040 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \
10041 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \
10042 `ls -d ${TK_PREFIX}/bin 2>/dev/null`"
10043 for i in $list ; do
10044 if test -f "$i/${WISH_PROG}" ; then
10045 REAL_TK_BIN_DIR="`cd "$i"; pwd`/"
10046 break
10047 fi
10048 done
10049 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}"
10050 fi
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${WISH_PROG}" >&5
10052 printf "%s\n" "${WISH_PROG}" >&6; }
10053
10054
10055
10056 #--------------------------------------------------------------------
10057 # Setup a *Config.sh.in configuration file.
10058 #--------------------------------------------------------------------
10059
10060 # itk_SRC_DIR must be a fully qualified path
10061 eval itk_SRC_DIR="$srcdir"
10062 itk_SRC_DIR="`(cd "${itk_SRC_DIR}"; pwd)`"
10063
10064 itk_LIB_FILE="${PKG_LIB_FILE}"
10065 itk_STUB_LIB_FILE="${PKG_STUB_LIB_FILE}"
10066
10067
10068 #--------------------------------------------------------------------
10069 # These are for itkConfig.sh
10070 #--------------------------------------------------------------------
10071
10072 # pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib)
10073 eval pkglibdir="${libdir}/itk${PACKAGE_VERSION}"
10074 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
10075 eval itk_LIB_FLAG="-litk${PACKAGE_VERSION}"
10076 eval itk_STUB_LIB_FLAG="-litkstub${PACKAGE_VERSION}"
10077 else
10078 eval itk_LIB_FLAG="-litk`echo ${PACKAGE_VERSION} | tr -d .`"
10079 eval itk_STUB_LIB_FLAG="-litkstub`echo ${PACKAGE_VERSION} | tr -d .`"
10080 fi
10081 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
10082 eval itk_STUB_LIB_FLAG="-litkstub"
10083 fi
10084
10085 itk_BUILD_LIB_SPEC="-L`$CYGPATH $(pwd)` ${itk_LIB_FLAG}"
10086 itk_LIB_SPEC="-L`$CYGPATH ${pkglibdir}` ${itk_LIB_FLAG}"
10087 itk_BUILD_STUB_LIB_SPEC="-L`$CYGPATH $(pwd)` ${itk_STUB_LIB_FLAG}"
10088 itk_STUB_LIB_SPEC="-L`$CYGPATH ${pkglibdir}` ${itk_STUB_LIB_FLAG}"
10089 itk_BUILD_STUB_LIB_PATH="`$CYGPATH $(pwd)`/${PKG_STUB_LIB_FILE}"
10090 itk_STUB_LIB_PATH="`$CYGPATH ${pkglibdir}`/${PKG_STUB_LIB_FILE}"
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108 #--------------------------------------------------------------------
10109 # Specify files to substitute AC variables in. You may alternatively
10110 # have a special pkgIndex.tcl.in or other files which require
10111 # substituting the AC variables in. Include these here.
10112 #--------------------------------------------------------------------
10113
10114 ac_config_files="$ac_config_files Makefile pkgIndex.tcl"
10115
10116 ac_config_files="$ac_config_files itkConfig.sh"
10117
10118
10119 #--------------------------------------------------------------------
10120 # Finally, substitute all of the various values into the files
10121 # specified with AC_CONFIG_FILES.
10122 #--------------------------------------------------------------------
10123
10124 cat >confcache <<\_ACEOF
10125 # This file is a shell script that caches the results of configure
10126 # tests run on this system so they can be shared between configure
10127 # scripts and configure runs, see configure's option --config-cache.
10128 # It is not useful on other systems. If it contains results you don't
10129 # want to keep, you may remove or edit it.
10130 #
10131 # config.status only pays attention to the cache file if you give it
10132 # the --recheck option to rerun configure.
10133 #
10134 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
10135 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
10136 # following values.
10137
10138 _ACEOF
10139
10140 # The following way of writing the cache mishandles newlines in values,
10141 # but we know of no workaround that is simple, portable, and efficient.
10142 # So, we kill variables containing newlines.
10143 # Ultrix sh set writes to stderr and can't be redirected directly,
10144 # and sets the high bit in the cache file unless we assign to the vars.
10145 (
10146 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10147 eval ac_val=\$$ac_var
10148 case $ac_val in #(
10149 *${as_nl}*)
10150 case $ac_var in #(
10151 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10152 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10153 esac
10154 case $ac_var in #(
10155 _ | IFS | as_nl) ;; #(
10156 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10157 *) { eval $ac_var=; unset $ac_var;} ;;
10158 esac ;;
10159 esac
10160 done
10161
10162 (set) 2>&1 |
10163 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10164 *${as_nl}ac_space=\ *)
10165 # 'set' does not quote correctly, so add quotes: double-quote
10166 # substitution turns \\\\ into \\, and sed turns \\ into \.
10167 sed -n \
10168 "s/'/'\\\\''/g;
10169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10170 ;; #(
10171 *)
10172 # 'set' quotes correctly as required by POSIX, so do not add quotes.
10173 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10174 ;;
10175 esac |
10176 sort
10177 ) |
10178 sed '
10179 /^ac_cv_env_/b end
10180 t clear
10181 :clear
10182 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
10183 t end
10184 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10185 :end' >>confcache
10186 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10187 if test -w "$cache_file"; then
10188 if test "x$cache_file" != "x/dev/null"; then
10189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10190 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
10191 if test ! -f "$cache_file" || test -h "$cache_file"; then
10192 cat confcache >"$cache_file"
10193 else
10194 case $cache_file in #(
10195 */* | ?:*)
10196 mv -f confcache "$cache_file"$$ &&
10197 mv -f "$cache_file"$$ "$cache_file" ;; #(
10198 *)
10199 mv -f confcache "$cache_file" ;;
10200 esac
10201 fi
10202 fi
10203 else
10204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10205 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
10206 fi
10207 fi
10208 rm -f confcache
10209
10210 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10211 # Let make expand exec_prefix.
10212 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10213
10214 # Transform confdefs.h into DEFS.
10215 # Protect against shell expansion while executing Makefile rules.
10216 # Protect against Makefile macro expansion.
10217 #
10218 # If the first sed substitution is executed (which looks for macros that
10219 # take arguments), then branch to the quote section. Otherwise,
10220 # look for a macro that doesn't take arguments.
10221 ac_script='
10222 :mline
10223 /\\$/{
10224 N
10225 s,\\\n,,
10226 b mline
10227 }
10228 t clear
10229 :clear
10230 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10231 t quote
10232 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10233 t quote
10234 b any
10235 :quote
10236 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10237 s/\$/$$/g
10238 H
10239 :any
10240 ${
10241 g
10242 s/^\n//
10243 s/\n/ /g
10244 p
10245 }
10246 '
10247 DEFS=`sed -n "$ac_script" confdefs.h`
10248
10249
10250 ac_libobjs=
10251 ac_ltlibobjs=
10252 U=
10253 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10254 # 1. Remove the extension, and $U if already installed.
10255 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10256 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
10257 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10258 # will be set to the directory where LIBOBJS objects are built.
10259 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10260 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10261 done
10262 LIBOBJS=$ac_libobjs
10263
10264 LTLIBOBJS=$ac_ltlibobjs
10265
10266
10267 CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
10268
10269 : "${CONFIG_STATUS=./config.status}"
10270 ac_write_fail=0
10271 ac_clean_files_save=$ac_clean_files
10272 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10274 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
10275 as_write_fail=0
10276 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10277 #! $SHELL
10278 # Generated by $as_me.
10279 # Run this file to recreate the current configuration.
10280 # Compiler output produced by configure, useful for debugging
10281 # configure, is in config.log if it exists.
10282
10283 debug=false
10284 ac_cs_recheck=false
10285 ac_cs_silent=false
10286
10287 SHELL=\${CONFIG_SHELL-$SHELL}
10288 export SHELL
10289 _ASEOF
10290 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10291 ## -------------------- ##
10292 ## M4sh Initialization. ##
10293 ## -------------------- ##
10294
10295 # Be more Bourne compatible
10296 DUALCASE=1; export DUALCASE # for MKS sh
10297 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
10298 then :
10299 emulate sh
10300 NULLCMD=:
10301 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10302 # is contrary to our usage. Disable this feature.
10303 alias -g '${1+"$@"}'='"$@"'
10304 setopt NO_GLOB_SUBST
10305 else case e in #(
10306 e) case `(set -o) 2>/dev/null` in #(
10307 *posix*) :
10308 set -o posix ;; #(
10309 *) :
10310 ;;
10311 esac ;;
10312 esac
10313 fi
10314
10315
10316
10317 # Reset variables that may have inherited troublesome values from
10318 # the environment.
10319
10320 # IFS needs to be set, to space, tab, and newline, in precisely that order.
10321 # (If _AS_PATH_WALK were called with IFS unset, it would have the
10322 # side effect of setting IFS to empty, thus disabling word splitting.)
10323 # Quoting is to prevent editors from complaining about space-tab.
10324 as_nl='
10325 '
10326 export as_nl
10327 IFS=" "" $as_nl"
10328
10329 PS1='$ '
10330 PS2='> '
10331 PS4='+ '
10332
10333 # Ensure predictable behavior from utilities with locale-dependent output.
10334 LC_ALL=C
10335 export LC_ALL
10336 LANGUAGE=C
10337 export LANGUAGE
10338
10339 # We cannot yet rely on "unset" to work, but we need these variables
10340 # to be unset--not just set to an empty or harmless value--now, to
10341 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
10342 # also avoids known problems related to "unset" and subshell syntax
10343 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
10344 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
10345 do eval test \${$as_var+y} \
10346 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10347 done
10348
10349 # Ensure that fds 0, 1, and 2 are open.
10350 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
10351 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
10352 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
10353
10354 # The user is always right.
10355 if ${PATH_SEPARATOR+false} :; then
10356 PATH_SEPARATOR=:
10357 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10358 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10359 PATH_SEPARATOR=';'
10360 }
10361 fi
10362
10363
10364 # Find who we are. Look in the path if we contain no directory separator.
10365 as_myself=
10366 case $0 in #((
10367 *[\\/]* ) as_myself=$0 ;;
10368 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369 for as_dir in $PATH
10370 do
10371 IFS=$as_save_IFS
10372 case $as_dir in #(((
10373 '') as_dir=./ ;;
10374 */) ;;
10375 *) as_dir=$as_dir/ ;;
10376 esac
10377 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10378 done
10379 IFS=$as_save_IFS
10380
10381 ;;
10382 esac
10383 # We did not find ourselves, most probably we were run as 'sh COMMAND'
10384 # in which case we are not to be found in the path.
10385 if test "x$as_myself" = x; then
10386 as_myself=$0
10387 fi
10388 if test ! -f "$as_myself"; then
10389 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10390 exit 1
10391 fi
10392
10393
10394
10395 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10396 # ----------------------------------------
10397 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10398 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10399 # script with STATUS, using 1 if that was 0.
10400 as_fn_error ()
10401 {
10402 as_status=$1; test $as_status -eq 0 && as_status=1
10403 if test "$4"; then
10404 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10406 fi
10407 printf "%s\n" "$as_me: error: $2" >&2
10408 as_fn_exit $as_status
10409 } # as_fn_error
10410
10411
10412 # as_fn_set_status STATUS
10413 # -----------------------
10414 # Set $? to STATUS, without forking.
10415 as_fn_set_status ()
10416 {
10417 return $1
10418 } # as_fn_set_status
10419
10420 # as_fn_exit STATUS
10421 # -----------------
10422 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10423 as_fn_exit ()
10424 {
10425 set +e
10426 as_fn_set_status $1
10427 exit $1
10428 } # as_fn_exit
10429
10430 # as_fn_unset VAR
10431 # ---------------
10432 # Portably unset VAR.
10433 as_fn_unset ()
10434 {
10435 { eval $1=; unset $1;}
10436 }
10437 as_unset=as_fn_unset
10438
10439 # as_fn_append VAR VALUE
10440 # ----------------------
10441 # Append the text in VALUE to the end of the definition contained in VAR. Take
10442 # advantage of any shell optimizations that allow amortized linear growth over
10443 # repeated appends, instead of the typical quadratic growth present in naive
10444 # implementations.
10445 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
10446 then :
10447 eval 'as_fn_append ()
10448 {
10449 eval $1+=\$2
10450 }'
10451 else case e in #(
10452 e) as_fn_append ()
10453 {
10454 eval $1=\$$1\$2
10455 } ;;
10456 esac
10457 fi # as_fn_append
10458
10459 # as_fn_arith ARG...
10460 # ------------------
10461 # Perform arithmetic evaluation on the ARGs, and store the result in the
10462 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10463 # must be portable across $(()) and expr.
10464 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
10465 then :
10466 eval 'as_fn_arith ()
10467 {
10468 as_val=$(( $* ))
10469 }'
10470 else case e in #(
10471 e) as_fn_arith ()
10472 {
10473 as_val=`expr "$@" || test $? -eq 1`
10474 } ;;
10475 esac
10476 fi # as_fn_arith
10477
10478
10479 if expr a : '\(a\)' >/dev/null 2>&1 &&
10480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10481 as_expr=expr
10482 else
10483 as_expr=false
10484 fi
10485
10486 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10487 as_basename=basename
10488 else
10489 as_basename=false
10490 fi
10491
10492 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10493 as_dirname=dirname
10494 else
10495 as_dirname=false
10496 fi
10497
10498 as_me=`$as_basename -- "$0" ||
10499 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10500 X"$0" : 'X\(//\)$' \| \
10501 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10502 printf "%s\n" X/"$0" |
10503 sed '/^.*\/\([^/][^/]*\)\/*$/{
10504 s//\1/
10505 q
10506 }
10507 /^X\/\(\/\/\)$/{
10508 s//\1/
10509 q
10510 }
10511 /^X\/\(\/\).*/{
10512 s//\1/
10513 q
10514 }
10515 s/.*/./; q'`
10516
10517 # Avoid depending upon Character Ranges.
10518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10521 as_cr_digits='0123456789'
10522 as_cr_alnum=$as_cr_Letters$as_cr_digits
10523
10524
10525 # Determine whether it's possible to make 'echo' print without a newline.
10526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
10527 # for compatibility with existing Makefiles.
10528 ECHO_C= ECHO_N= ECHO_T=
10529 case `echo -n x` in #(((((
10530 -n*)
10531 case `echo 'xy\c'` in
10532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10533 xy) ECHO_C='\c';;
10534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10535 ECHO_T=' ';;
10536 esac;;
10537 *)
10538 ECHO_N='-n';;
10539 esac
10540
10541 # For backward compatibility with old third-party macros, we provide
10542 # the shell variables $as_echo and $as_echo_n. New code should use
10543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
10544 as_echo='printf %s\n'
10545 as_echo_n='printf %s'
10546
10547 rm -f conf$$ conf$$.exe conf$$.file
10548 if test -d conf$$.dir; then
10549 rm -f conf$$.dir/conf$$.file
10550 else
10551 rm -f conf$$.dir
10552 mkdir conf$$.dir 2>/dev/null
10553 fi
10554 if (echo >conf$$.file) 2>/dev/null; then
10555 if ln -s conf$$.file conf$$ 2>/dev/null; then
10556 as_ln_s='ln -s'
10557 # ... but there are two gotchas:
10558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
10559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
10560 # In both cases, we have to default to 'cp -pR'.
10561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10562 as_ln_s='cp -pR'
10563 elif ln conf$$.file conf$$ 2>/dev/null; then
10564 as_ln_s=ln
10565 else
10566 as_ln_s='cp -pR'
10567 fi
10568 else
10569 as_ln_s='cp -pR'
10570 fi
10571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10572 rmdir conf$$.dir 2>/dev/null
10573
10574
10575 # as_fn_mkdir_p
10576 # -------------
10577 # Create "$as_dir" as a directory, including parents if necessary.
10578 as_fn_mkdir_p ()
10579 {
10580
10581 case $as_dir in #(
10582 -*) as_dir=./$as_dir;;
10583 esac
10584 test -d "$as_dir" || eval $as_mkdir_p || {
10585 as_dirs=
10586 while :; do
10587 case $as_dir in #(
10588 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10589 *) as_qdir=$as_dir;;
10590 esac
10591 as_dirs="'$as_qdir' $as_dirs"
10592 as_dir=`$as_dirname -- "$as_dir" ||
10593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10594 X"$as_dir" : 'X\(//\)[^/]' \| \
10595 X"$as_dir" : 'X\(//\)$' \| \
10596 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10597 printf "%s\n" X"$as_dir" |
10598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10599 s//\1/
10600 q
10601 }
10602 /^X\(\/\/\)[^/].*/{
10603 s//\1/
10604 q
10605 }
10606 /^X\(\/\/\)$/{
10607 s//\1/
10608 q
10609 }
10610 /^X\(\/\).*/{
10611 s//\1/
10612 q
10613 }
10614 s/.*/./; q'`
10615 test -d "$as_dir" && break
10616 done
10617 test -z "$as_dirs" || eval "mkdir $as_dirs"
10618 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10619
10620
10621 } # as_fn_mkdir_p
10622 if mkdir -p . 2>/dev/null; then
10623 as_mkdir_p='mkdir -p "$as_dir"'
10624 else
10625 test -d ./-p && rmdir ./-p
10626 as_mkdir_p=false
10627 fi
10628
10629
10630 # as_fn_executable_p FILE
10631 # -----------------------
10632 # Test if FILE is an executable regular file.
10633 as_fn_executable_p ()
10634 {
10635 test -f "$1" && test -x "$1"
10636 } # as_fn_executable_p
10637 as_test_x='test -x'
10638 as_executable_p=as_fn_executable_p
10639
10640 # Sed expression to map a string onto a valid CPP name.
10641 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10642 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
10643
10644 # Sed expression to map a string onto a valid variable name.
10645 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10646 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
10647
10648
10649 exec 6>&1
10650 ## ----------------------------------- ##
10651 ## Main body of $CONFIG_STATUS script. ##
10652 ## ----------------------------------- ##
10653 _ASEOF
10654 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10655
10656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10657 # Save the log message, to keep $0 and so on meaningful, and to
10658 # report actual input values of CONFIG_FILES etc. instead of their
10659 # values after options handling.
10660 ac_log="
10661 This file was extended by itk $as_me 4.2.7, which was
10662 generated by GNU Autoconf 2.72. Invocation command line was
10663
10664 CONFIG_FILES = $CONFIG_FILES
10665 CONFIG_HEADERS = $CONFIG_HEADERS
10666 CONFIG_LINKS = $CONFIG_LINKS
10667 CONFIG_COMMANDS = $CONFIG_COMMANDS
10668 $ $0 $@
10669
10670 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10671 "
10672
10673 _ACEOF
10674
10675 case $ac_config_files in *"
10676 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10677 esac
10678
10679
10680
10681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10682 # Files that config.status was made for.
10683 config_files="$ac_config_files"
10684
10685 _ACEOF
10686
10687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10688 ac_cs_usage="\
10689 '$as_me' instantiates files and other configuration actions
10690 from templates according to the current configuration. Unless the files
10691 and actions are specified as TAGs, all are instantiated by default.
10692
10693 Usage: $0 [OPTION]... [TAG]...
10694
10695 -h, --help print this help, then exit
10696 -V, --version print version number and configuration settings, then exit
10697 --config print configuration, then exit
10698 -q, --quiet, --silent
10699 do not print progress messages
10700 -d, --debug don't remove temporary files
10701 --recheck update $as_me by reconfiguring in the same conditions
10702 --file=FILE[:TEMPLATE]
10703 instantiate the configuration file FILE
10704
10705 Configuration files:
10706 $config_files
10707
10708 Report bugs to the package provider."
10709
10710 _ACEOF
10711 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10712 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
10713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10714 ac_cs_config='$ac_cs_config_escaped'
10715 ac_cs_version="\\
10716 itk config.status 4.2.7
10717 configured by $0, generated by GNU Autoconf 2.72,
10718 with options \\"\$ac_cs_config\\"
10719
10720 Copyright (C) 2023 Free Software Foundation, Inc.
10721 This config.status script is free software; the Free Software Foundation
10722 gives unlimited permission to copy, distribute and modify it."
10723
10724 ac_pwd='$ac_pwd'
10725 srcdir='$srcdir'
10726 test -n "\$AWK" || AWK=awk
10727 _ACEOF
10728
10729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10730 # The default lists apply if the user does not specify any file.
10731 ac_need_defaults=:
10732 while test $# != 0
10733 do
10734 case $1 in
10735 --*=?*)
10736 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10737 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10738 ac_shift=:
10739 ;;
10740 --*=)
10741 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10742 ac_optarg=
10743 ac_shift=:
10744 ;;
10745 *)
10746 ac_option=$1
10747 ac_optarg=$2
10748 ac_shift=shift
10749 ;;
10750 esac
10751
10752 case $ac_option in
10753 # Handling of the options.
10754 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10755 ac_cs_recheck=: ;;
10756 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10757 printf "%s\n" "$ac_cs_version"; exit ;;
10758 --config | --confi | --conf | --con | --co | --c )
10759 printf "%s\n" "$ac_cs_config"; exit ;;
10760 --debug | --debu | --deb | --de | --d | -d )
10761 debug=: ;;
10762 --file | --fil | --fi | --f )
10763 $ac_shift
10764 case $ac_optarg in
10765 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10766 '') as_fn_error $? "missing file argument" ;;
10767 esac
10768 as_fn_append CONFIG_FILES " '$ac_optarg'"
10769 ac_need_defaults=false;;
10770 --he | --h | --help | --hel | -h )
10771 printf "%s\n" "$ac_cs_usage"; exit ;;
10772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10774 ac_cs_silent=: ;;
10775
10776 # This is an error.
10777 -*) as_fn_error $? "unrecognized option: '$1'
10778 Try '$0 --help' for more information." ;;
10779
10780 *) as_fn_append ac_config_targets " $1"
10781 ac_need_defaults=false ;;
10782
10783 esac
10784 shift
10785 done
10786
10787 ac_configure_extra_args=
10788
10789 if $ac_cs_silent; then
10790 exec 6>/dev/null
10791 ac_configure_extra_args="$ac_configure_extra_args --silent"
10792 fi
10793
10794 _ACEOF
10795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10796 if \$ac_cs_recheck; then
10797 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10798 shift
10799 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10800 CONFIG_SHELL='$SHELL'
10801 export CONFIG_SHELL
10802 exec "\$@"
10803 fi
10804
10805 _ACEOF
10806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10807 exec 5>>config.log
10808 {
10809 echo
10810 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10811 ## Running $as_me. ##
10812 _ASBOX
10813 printf "%s\n" "$ac_log"
10814 } >&5
10815
10816 _ACEOF
10817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10818 _ACEOF
10819
10820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10821
10822 # Handling of arguments.
10823 for ac_config_target in $ac_config_targets
10824 do
10825 case $ac_config_target in
10826 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10827 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
10828 "itkConfig.sh") CONFIG_FILES="$CONFIG_FILES itkConfig.sh" ;;
10829
10830 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
10831 esac
10832 done
10833
10834
10835 # If the user did not use the arguments to specify the items to instantiate,
10836 # then the envvar interface is used. Set only those that are not.
10837 # We use the long form for the default assignment because of an extremely
10838 # bizarre bug on SunOS 4.1.3.
10839 if $ac_need_defaults; then
10840 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
10841 fi
10842
10843 # Have a temporary directory for convenience. Make it in the build tree
10844 # simply because there is no reason against having it here, and in addition,
10845 # creating and moving files from /tmp can sometimes cause problems.
10846 # Hook for its removal unless debugging.
10847 # Note that there is a small window in which the directory will not be cleaned:
10848 # after its creation but before its name has been assigned to '$tmp'.
10849 $debug ||
10850 {
10851 tmp= ac_tmp=
10852 trap 'exit_status=$?
10853 : "${ac_tmp:=$tmp}"
10854 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10855 ' 0
10856 trap 'as_fn_exit 1' 1 2 13 15
10857 }
10858 # Create a (secure) tmp directory for tmp files.
10859
10860 {
10861 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10862 test -d "$tmp"
10863 } ||
10864 {
10865 tmp=./conf$$-$RANDOM
10866 (umask 077 && mkdir "$tmp")
10867 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10868 ac_tmp=$tmp
10869
10870 # Set up the scripts for CONFIG_FILES section.
10871 # No need to generate them if there are no CONFIG_FILES.
10872 # This happens for instance with './config.status config.h'.
10873 if test -n "$CONFIG_FILES"; then
10874
10875
10876 ac_cr=`echo X | tr X '\015'`
10877 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10878 # But we know of no other shell where ac_cr would be empty at this
10879 # point, so we can use a bashism as a fallback.
10880 if test "x$ac_cr" = x; then
10881 eval ac_cr=\$\'\\r\'
10882 fi
10883 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10884 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10885 ac_cs_awk_cr='\\r'
10886 else
10887 ac_cs_awk_cr=$ac_cr
10888 fi
10889
10890 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10891 _ACEOF
10892
10893
10894 {
10895 echo "cat >conf$$subs.awk <<_ACEOF" &&
10896 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10897 echo "_ACEOF"
10898 } >conf$$subs.sh ||
10899 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10900 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10901 ac_delim='%!_!# '
10902 for ac_last_try in false false false false false :; do
10903 . ./conf$$subs.sh ||
10904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10905
10906 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10907 if test $ac_delim_n = $ac_delim_num; then
10908 break
10909 elif $ac_last_try; then
10910 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10911 else
10912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10913 fi
10914 done
10915 rm -f conf$$subs.sh
10916
10917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10918 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10919 _ACEOF
10920 sed -n '
10921 h
10922 s/^/S["/; s/!.*/"]=/
10923 p
10924 g
10925 s/^[^!]*!//
10926 :repl
10927 t repl
10928 s/'"$ac_delim"'$//
10929 t delim
10930 :nl
10931 h
10932 s/\(.\{148\}\)..*/\1/
10933 t more1
10934 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10935 p
10936 n
10937 b repl
10938 :more1
10939 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10940 p
10941 g
10942 s/.\{148\}//
10943 t nl
10944 :delim
10945 h
10946 s/\(.\{148\}\)..*/\1/
10947 t more2
10948 s/["\\]/\\&/g; s/^/"/; s/$/"/
10949 p
10950 b
10951 :more2
10952 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10953 p
10954 g
10955 s/.\{148\}//
10956 t delim
10957 ' <conf$$subs.awk | sed '
10958 /^[^""]/{
10959 N
10960 s/\n//
10961 }
10962 ' >>$CONFIG_STATUS || ac_write_fail=1
10963 rm -f conf$$subs.awk
10964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10965 _ACAWK
10966 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10967 for (key in S) S_is_set[key] = 1
10968 FS = ""
10969
10970 }
10971 {
10972 line = $ 0
10973 nfields = split(line, field, "@")
10974 substed = 0
10975 len = length(field[1])
10976 for (i = 2; i < nfields; i++) {
10977 key = field[i]
10978 keylen = length(key)
10979 if (S_is_set[key]) {
10980 value = S[key]
10981 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10982 len += length(value) + length(field[++i])
10983 substed = 1
10984 } else
10985 len += 1 + keylen
10986 }
10987
10988 print line
10989 }
10990
10991 _ACAWK
10992 _ACEOF
10993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10994 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10995 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10996 else
10997 cat
10998 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10999 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11000 _ACEOF
11001
11002 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11003 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11004 # trailing colons and then remove the whole line if VPATH becomes empty
11005 # (actually we leave an empty line to preserve line numbers).
11006 if test "x$srcdir" = x.; then
11007 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11008 h
11009 s///
11010 s/^/:/
11011 s/[ ]*$/:/
11012 s/:\$(srcdir):/:/g
11013 s/:\${srcdir}:/:/g
11014 s/:@srcdir@:/:/g
11015 s/^:*//
11016 s/:*$//
11017 x
11018 s/\(=[ ]*\).*/\1/
11019 G
11020 s/\n//
11021 s/^[^=]*=[ ]*$//
11022 }'
11023 fi
11024
11025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11026 fi # test -n "$CONFIG_FILES"
11027
11028
11029 eval set X " :F $CONFIG_FILES "
11030 shift
11031 for ac_tag
11032 do
11033 case $ac_tag in
11034 :[FHLC]) ac_mode=$ac_tag; continue;;
11035 esac
11036 case $ac_mode$ac_tag in
11037 :[FHL]*:*);;
11038 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
11039 :[FH]-) ac_tag=-:-;;
11040 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11041 esac
11042 ac_save_IFS=$IFS
11043 IFS=:
11044 set x $ac_tag
11045 IFS=$ac_save_IFS
11046 shift
11047 ac_file=$1
11048 shift
11049
11050 case $ac_mode in
11051 :L) ac_source=$1;;
11052 :[FH])
11053 ac_file_inputs=
11054 for ac_f
11055 do
11056 case $ac_f in
11057 -) ac_f="$ac_tmp/stdin";;
11058 *) # Look for the file first in the build tree, then in the source tree
11059 # (if the path is not absolute). The absolute path cannot be DOS-style,
11060 # because $ac_f cannot contain ':'.
11061 test -f "$ac_f" ||
11062 case $ac_f in
11063 [\\/$]*) false;;
11064 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11065 esac ||
11066 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
11067 esac
11068 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11069 as_fn_append ac_file_inputs " '$ac_f'"
11070 done
11071
11072 # Let's still pretend it is 'configure' which instantiates (i.e., don't
11073 # use $as_me), people would be surprised to read:
11074 # /* config.h. Generated by config.status. */
11075 configure_input='Generated from '`
11076 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11077 `' by configure.'
11078 if test x"$ac_file" != x-; then
11079 configure_input="$ac_file. $configure_input"
11080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11081 printf "%s\n" "$as_me: creating $ac_file" >&6;}
11082 fi
11083 # Neutralize special characters interpreted by sed in replacement strings.
11084 case $configure_input in #(
11085 *\&* | *\|* | *\\* )
11086 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
11087 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11088 *) ac_sed_conf_input=$configure_input;;
11089 esac
11090
11091 case $ac_tag in
11092 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11094 esac
11095 ;;
11096 esac
11097
11098 ac_dir=`$as_dirname -- "$ac_file" ||
11099 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11100 X"$ac_file" : 'X\(//\)[^/]' \| \
11101 X"$ac_file" : 'X\(//\)$' \| \
11102 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11103 printf "%s\n" X"$ac_file" |
11104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11105 s//\1/
11106 q
11107 }
11108 /^X\(\/\/\)[^/].*/{
11109 s//\1/
11110 q
11111 }
11112 /^X\(\/\/\)$/{
11113 s//\1/
11114 q
11115 }
11116 /^X\(\/\).*/{
11117 s//\1/
11118 q
11119 }
11120 s/.*/./; q'`
11121 as_dir="$ac_dir"; as_fn_mkdir_p
11122 ac_builddir=.
11123
11124 case "$ac_dir" in
11125 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11126 *)
11127 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
11128 # A ".." for each directory in $ac_dir_suffix.
11129 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11130 case $ac_top_builddir_sub in
11131 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11132 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11133 esac ;;
11134 esac
11135 ac_abs_top_builddir=$ac_pwd
11136 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11137 # for backward compatibility:
11138 ac_top_builddir=$ac_top_build_prefix
11139
11140 case $srcdir in
11141 .) # We are building in place.
11142 ac_srcdir=.
11143 ac_top_srcdir=$ac_top_builddir_sub
11144 ac_abs_top_srcdir=$ac_pwd ;;
11145 [\\/]* | ?:[\\/]* ) # Absolute name.
11146 ac_srcdir=$srcdir$ac_dir_suffix;
11147 ac_top_srcdir=$srcdir
11148 ac_abs_top_srcdir=$srcdir ;;
11149 *) # Relative name.
11150 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11151 ac_top_srcdir=$ac_top_build_prefix$srcdir
11152 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11153 esac
11154 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11155
11156
11157 case $ac_mode in
11158 :F)
11159 #
11160 # CONFIG_FILE
11161 #
11162
11163 _ACEOF
11164
11165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11166 # If the template does not know about datarootdir, expand it.
11167 # FIXME: This hack should be removed a few years after 2.60.
11168 ac_datarootdir_hack=; ac_datarootdir_seen=
11169 ac_sed_dataroot='
11170 /datarootdir/ {
11171 p
11172 q
11173 }
11174 /@datadir@/p
11175 /@docdir@/p
11176 /@infodir@/p
11177 /@localedir@/p
11178 /@mandir@/p'
11179 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11180 *datarootdir*) ac_datarootdir_seen=yes;;
11181 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11183 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11184 _ACEOF
11185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11186 ac_datarootdir_hack='
11187 s&@datadir@&$datadir&g
11188 s&@docdir@&$docdir&g
11189 s&@infodir@&$infodir&g
11190 s&@localedir@&$localedir&g
11191 s&@mandir@&$mandir&g
11192 s&\\\${datarootdir}&$datarootdir&g' ;;
11193 esac
11194 _ACEOF
11195
11196 # Neutralize VPATH when '$srcdir' = '.'.
11197 # Shell code in configure.ac might set extrasub.
11198 # FIXME: do we really want to maintain this feature?
11199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11200 ac_sed_extra="$ac_vpsub
11201 $extrasub
11202 _ACEOF
11203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11204 :t
11205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11206 s|@configure_input@|$ac_sed_conf_input|;t t
11207 s&@top_builddir@&$ac_top_builddir_sub&;t t
11208 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11209 s&@srcdir@&$ac_srcdir&;t t
11210 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11211 s&@top_srcdir@&$ac_top_srcdir&;t t
11212 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11213 s&@builddir@&$ac_builddir&;t t
11214 s&@abs_builddir@&$ac_abs_builddir&;t t
11215 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11216 $ac_datarootdir_hack
11217 "
11218 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11219 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11220
11221 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11222 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11223 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11224 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
11226 which seems to be undefined. Please make sure it is defined" >&5
11227 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
11228 which seems to be undefined. Please make sure it is defined" >&2;}
11229
11230 rm -f "$ac_tmp/stdin"
11231 case $ac_file in
11232 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11233 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11234 esac \
11235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11236 ;;
11237
11238
11239
11240 esac
11241
11242 done # for ac_tag
11243
11244
11245 as_fn_exit 0
11246 _ACEOF
11247 ac_clean_files=$ac_clean_files_save
11248
11249 test $ac_write_fail = 0 ||
11250 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11251
11252
11253 # configure is writing to config.log, and then calls config.status.
11254 # config.status does its own redirection, appending to config.log.
11255 # Unfortunately, on DOS this fails, as config.log is still kept open
11256 # by configure, so config.status won't be able to write to it; its
11257 # output is simply discarded. So we exec the FD to /dev/null,
11258 # effectively closing config.log, so it can be properly (re)opened and
11259 # appended to by config.status. When coming back to configure, we
11260 # need to make the FD available again.
11261 if test "$no_create" != yes; then
11262 ac_cs_success=:
11263 ac_config_status_args=
11264 test "$silent" = yes &&
11265 ac_config_status_args="$ac_config_status_args --quiet"
11266 exec 5>/dev/null
11267 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11268 exec 5>>config.log
11269 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11270 # would make configure fail if this is the last instruction.
11271 $ac_cs_success || as_fn_exit 1
11272 fi
11273 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11275 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11276 fi
11277
11278