Debian Codegraph @

lib/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for Envmodules 1.4.3.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell [email protected] and
274 $0: [email protected] about your
275 $0: system, including any error possibly output before this
276 $0: message. Then install a modern shell, or manually run
277 $0: the script under such a shell if you do have one."
278 fi
279 exit 1
280 fi ;;
281 esac
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302
303 # as_fn_set_status STATUS
304 # -----------------------
305 # Set $? to STATUS, without forking.
306 as_fn_set_status ()
307 {
308 return $1
309 } # as_fn_set_status
310
311 # as_fn_exit STATUS
312 # -----------------
313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 as_fn_exit ()
315 {
316 set +e
317 as_fn_set_status $1
318 exit $1
319 } # as_fn_exit
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else case e in #(
389 e) as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 } ;;
393 esac
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else case e in #(
408 e) as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 } ;;
412 esac
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 printf "%s\n" "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 printf "%s\n" X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 t clear
489 :clear
490 s/[$]LINENO.*/&-/
491 t lineno
492 b
493 :lineno
494 N
495 :loop
496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 t loop
498 s/-\n.*//
499 ' >$as_me.lineno &&
500 chmod +x "$as_me.lineno" ||
501 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
502
503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
504 # already done that, so ensure we don't try to do so again and fall
505 # in an infinite loop. This has already happened in practice.
506 _as_can_reexec=no; export _as_can_reexec
507 # Don't try to exec as it changes $[0], causing all sort of problems
508 # (the dirname of $[0] is not the place where we might find the
509 # original and so on. Autoconf is especially sensitive to this).
510 . "./$as_me.lineno"
511 # Exit status is that of the last command.
512 exit
513 }
514
515
516 # Determine whether it's possible to make 'echo' print without a newline.
517 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
518 # for compatibility with existing Makefiles.
519 ECHO_C= ECHO_N= ECHO_T=
520 case `echo -n x` in #(((((
521 -n*)
522 case `echo 'xy\c'` in
523 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
524 xy) ECHO_C='\c';;
525 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
526 ECHO_T=' ';;
527 esac;;
528 *)
529 ECHO_N='-n';;
530 esac
531
532 # For backward compatibility with old third-party macros, we provide
533 # the shell variables $as_echo and $as_echo_n. New code should use
534 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
535 as_echo='printf %s\n'
536 as_echo_n='printf %s'
537
538 rm -f conf$$ conf$$.exe conf$$.file
539 if test -d conf$$.dir; then
540 rm -f conf$$.dir/conf$$.file
541 else
542 rm -f conf$$.dir
543 mkdir conf$$.dir 2>/dev/null
544 fi
545 if (echo >conf$$.file) 2>/dev/null; then
546 if ln -s conf$$.file conf$$ 2>/dev/null; then
547 as_ln_s='ln -s'
548 # ... but there are two gotchas:
549 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
550 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
551 # In both cases, we have to default to 'cp -pR'.
552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
553 as_ln_s='cp -pR'
554 elif ln conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s=ln
556 else
557 as_ln_s='cp -pR'
558 fi
559 else
560 as_ln_s='cp -pR'
561 fi
562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
563 rmdir conf$$.dir 2>/dev/null
564
565 if mkdir -p . 2>/dev/null; then
566 as_mkdir_p='mkdir -p "$as_dir"'
567 else
568 test -d ./-p && rmdir ./-p
569 as_mkdir_p=false
570 fi
571
572 as_test_x='test -x'
573 as_executable_p=as_fn_executable_p
574
575 # Sed expression to map a string onto a valid CPP name.
576 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
578
579 # Sed expression to map a string onto a valid variable name.
580 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
581 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
582
583
584 test -n "$DJDIR" || exec 7<&0 </dev/null
585 exec 6>&1
586
587 # Name of the host.
588 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
589 # so uname gets run too.
590 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
591
592 #
593 # Initializations.
594 #
595 ac_default_prefix=/usr/local
596 ac_clean_files=
597 ac_config_libobj_dir=.
598 LIBOBJS=
599 cross_compiling=no
600 subdirs=
601 MFLAGS=
602 MAKEFLAGS=
603
604 # Identity of this package.
605 PACKAGE_NAME='Envmodules'
606 PACKAGE_TARNAME='envmodules'
607 PACKAGE_VERSION='1.4.3'
608 PACKAGE_STRING='Envmodules 1.4.3'
609 PACKAGE_BUGREPORT='[email protected]'
610 PACKAGE_URL='https://envmodules.io'
611
612 ac_unique_file="envmodules.c"
613 # Factoring default headers for most tests.
614 ac_includes_default="\
615 #include <stddef.h>
616 #ifdef HAVE_STDIO_H
617 # include <stdio.h>
618 #endif
619 #ifdef HAVE_STDLIB_H
620 # include <stdlib.h>
621 #endif
622 #ifdef HAVE_STRING_H
623 # include <string.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_STRINGS_H
632 # include <strings.h>
633 #endif
634 #ifdef HAVE_SYS_TYPES_H
635 # include <sys/types.h>
636 #endif
637 #ifdef HAVE_SYS_STAT_H
638 # include <sys/stat.h>
639 #endif
640 #ifdef HAVE_UNISTD_H
641 # include <unistd.h>
642 #endif"
643
644 ac_header_c_list=
645 ac_subst_vars='LTLIBOBJS
646 SHLIB_SUFFIX
647 TCL_SHLIB_SUFFIX
648 TCL_SHLIB_LD
649 TCL_SHLIB_CFLAGS
650 TCL_INCLUDE_SPEC
651 TCL_CC
652 STUBS_BUILD
653 SHARED_BUILD
654 VC_MANIFEST_EMBED_EXE
655 VC_MANIFEST_EMBED_DLL
656 RANLIB_STUB
657 PKG_STUB_LIB_FILE
658 MAKE_STUB_LIB
659 MAKE_STATIC_LIB
660 MAKE_SHARED_LIB
661 MAKE_LIB
662 LDFLAGS_DEFAULT
663 CFLAGS_DEFAULT
664 LD_LIBRARY_PATH_VAR
665 SHLIB_CFLAGS
666 SHLIB_LD_LIBS
667 SHLIB_LD
668 STLIB_LD
669 LDFLAGS_OPTIMIZE
670 LDFLAGS_DEBUG
671 CFLAGS_WARNING
672 CFLAGS_OPTIMIZE
673 CFLAGS_DEBUG
674 LIBOBJS
675 RC
676 AR
677 TCL_INCLUDES
678 RANLIB
679 SET_MAKE
680 CPP
681 GETGROUPS_LIB
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 TCL_SHLIB_LD_LIBS
691 TCL_LD_FLAGS
692 TCL_EXTRA_CFLAGS
693 TCL_DEFS
694 TCL_LIBS
695 CLEANFILES
696 OBJEXT
697 ac_ct_CC
698 CPPFLAGS
699 LDFLAGS
700 CFLAGS
701 CC
702 TCL_STUB_LIB_SPEC
703 TCL_STUB_LIB_FLAG
704 TCL_STUB_LIB_FILE
705 TCL_LIB_SPEC
706 TCL_LIB_FLAG
707 TCL_LIB_FILE
708 TCL_SRC_DIR
709 TCL_BIN_DIR
710 TCL_PATCH_LEVEL
711 TCL_VERSION
712 INSTALL_LIBRARY
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 INSTALL_DATA
716 INSTALL_DATA_DIR
717 INSTALL
718 PKG_CFLAGS
719 PKG_LIBS
720 PKG_INCLUDES
721 PKG_HEADERS
722 PKG_TCL_SOURCES
723 PKG_STUB_OBJECTS
724 PKG_STUB_SOURCES
725 PKG_LIB_FILE9
726 PKG_LIB_FILE8
727 PKG_LIB_FILE
728 EXEEXT
729 CYGPATH
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 runstatedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 with_tcl
773 with_tcl8
774 with_tclinclude
775 enable_64bit
776 enable_64bit_vis
777 enable_rpath
778 enable_symbols
779 enable_shared
780 enable_stubs
781 '
782 ac_precious_vars='build_alias
783 host_alias
784 target_alias
785 CC
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
790 CPP'
791
792
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 ac_unrecognized_opts=
797 ac_unrecognized_sep=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
814
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 runstatedir='${localstatedir}/run'
830 includedir='${prefix}/include'
831 oldincludedir='/usr/include'
832 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833 infodir='${datarootdir}/info'
834 htmldir='${docdir}'
835 dvidir='${docdir}'
836 pdfdir='${docdir}'
837 psdir='${docdir}'
838 libdir='${exec_prefix}/lib'
839 localedir='${datarootdir}/locale'
840 mandir='${datarootdir}/man'
841
842 ac_prev=
843 ac_dashdash=
844 for ac_option
845 do
846 # If the previous option needs an argument, assign it.
847 if test -n "$ac_prev"; then
848 eval $ac_prev=\$ac_option
849 ac_prev=
850 continue
851 fi
852
853 case $ac_option in
854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 *=) ac_optarg= ;;
856 *) ac_optarg=yes ;;
857 esac
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: '$ac_useropt'"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: '$ac_useropt'"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -runstatedir | --runstatedir | --runstatedi | --runstated \
1081 | --runstate | --runstat | --runsta | --runst | --runs \
1082 | --run | --ru | --r)
1083 ac_prev=runstatedir ;;
1084 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1085 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1086 | --run=* | --ru=* | --r=*)
1087 runstatedir=$ac_optarg ;;
1088
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1094
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1105
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1110
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1115
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1122
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1127
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1130
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1133
1134 -with-* | --with-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: '$ac_useropt'"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=\$ac_optarg ;;
1149
1150 -without-* | --without-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: '$ac_useropt'"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1158 *"
1159 "with_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=no ;;
1165
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1169
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1176
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1183
1184 -*) as_fn_error $? "unrecognized option: '$ac_option'
1185 Try '$0 --help' for more information"
1186 ;;
1187
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 case $ac_envvar in #(
1192 '' | [0-9]* | *[!_$as_cr_alnum]* )
1193 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1194 esac
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1197
1198 *)
1199 # FIXME: should be removed in autoconf 3.0.
1200 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1204 ;;
1205
1206 esac
1207 done
1208
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 as_fn_error $? "missing argument to $ac_option"
1212 fi
1213
1214 if test -n "$ac_unrecognized_opts"; then
1215 case $enable_option_checking in
1216 no) ;;
1217 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1218 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219 esac
1220 fi
1221
1222 # Check all directory arguments for consistency.
1223 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir runstatedir
1227 do
1228 eval ac_val=\$$ac_var
1229 # Remove trailing slashes.
1230 case $ac_val in
1231 */ )
1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233 eval $ac_var=\$ac_val;;
1234 esac
1235 # Be sure to have absolute directory names.
1236 case $ac_val in
1237 [\\/$]* | ?:[\\/]* ) continue;;
1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 esac
1240 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 done
1242
1243 # There might be people who depend on the old broken behavior: '$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1246 build=$build_alias
1247 host=$host_alias
1248 target=$target_alias
1249
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
1254 elif test "x$build_alias" != "x$host_alias"; then
1255 cross_compiling=yes
1256 fi
1257 fi
1258
1259 ac_tool_prefix=
1260 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261
1262 test "$silent" = yes && exec 6>/dev/null
1263
1264
1265 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266 ac_ls_di=`ls -di .` &&
1267 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268 as_fn_error $? "working directory cannot be determined"
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270 as_fn_error $? "pwd does not report name of working directory"
1271
1272
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$as_myself" ||
1278 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$as_myself" : 'X\(//\)[^/]' \| \
1280 X"$as_myself" : 'X\(//\)$' \| \
1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282 printf "%s\n" X"$as_myself" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\/\)[^/].*/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\).*/{
1296 s//\1/
1297 q
1298 }
1299 s/.*/./; q'`
1300 srcdir=$ac_confdir
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 srcdir=..
1303 fi
1304 else
1305 ac_srcdir_defaulted=no
1306 fi
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1310 fi
1311 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1312 ac_abs_confdir=`(
1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1314 pwd)`
1315 # When building in place, set srcdir=.
1316 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 srcdir=.
1318 fi
1319 # Remove unnecessary trailing slashes from srcdir.
1320 # Double slashes in file names in object file debugging info
1321 # mess up M-x gdb in Emacs.
1322 case $srcdir in
1323 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 esac
1325 for ac_var in $ac_precious_vars; do
1326 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_${ac_var}_value=\$${ac_var}
1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 done
1331
1332 #
1333 # Report the --help message.
1334 #
1335 if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1338 cat <<_ACEOF
1339 'configure' configures Envmodules 1.4.3 to adapt to many kinds of systems.
1340
1341 Usage: $0 [OPTION]... [VAR=VALUE]...
1342
1343 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344 VAR=VALUE. See below for descriptions of some of the useful variables.
1345
1346 Defaults for the options are specified in brackets.
1347
1348 Configuration:
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
1353 -q, --quiet, --silent do not print 'checking ...' messages
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for '--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or '..']
1358
1359 Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
1361 [$ac_default_prefix]
1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 [PREFIX]
1364
1365 By default, 'make install' will install all the files in
1366 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1367 an installation prefix other than '$ac_default_prefix' using '--prefix',
1368 for instance '--prefix=\$HOME'.
1369
1370 For better control, use the options below.
1371
1372 Fine tuning of the installation directories:
1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/envmodules]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1394
1395 cat <<\_ACEOF
1396
1397 System types:
1398 --build=BUILD configure for building on BUILD [guessed]
1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1400 _ACEOF
1401 fi
1402
1403 if test -n "$ac_init_help"; then
1404 case $ac_init_help in
1405 short | recursive ) echo "Configuration of Envmodules 1.4.3:";;
1406 esac
1407 cat <<\_ACEOF
1408
1409 Optional Features:
1410 --disable-option-checking ignore unrecognized --enable/--with options
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --enable-64bit enable 64bit support (default: off)
1414 --enable-64bit-vis enable 64bit Sparc VIS support (default: off)
1415 --disable-rpath disable rpath support (default: on)
1416 --enable-symbols build with debugging symbols (default: off)
1417 --enable-shared build and link with shared libraries (default: on)
1418 --enable-stubs build and link with stub libraries. Always true for
1419 shared builds (default: on)
1420
1421 Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-tcl directory containing tcl configuration
1425 (tclConfig.sh)
1426 --with-tcl8 Compile for Tcl8 in Tcl9 environment
1427 --with-tclinclude directory containing the public Tcl header files
1428
1429 Some influential environment variables:
1430 CC C compiler command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1433 nonstandard directory <lib dir>
1434 LIBS libraries to pass to the linker, e.g. -l<library>
1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1436 you have headers in a nonstandard directory <include dir>
1437 CPP C preprocessor
1438
1439 Use these variables to override the choices made by 'configure' or to help
1440 it to find libraries and programs with nonstandard names/locations.
1441
1442 Report bugs to <[email protected]>.
1443 Envmodules home page: <https://envmodules.io>.
1444 _ACEOF
1445 ac_status=$?
1446 fi
1447
1448 if test "$ac_init_help" = "recursive"; then
1449 # If there are subdirs, report their specific --help.
1450 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1451 test -d "$ac_dir" ||
1452 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1453 continue
1454 ac_builddir=.
1455
1456 case "$ac_dir" in
1457 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *)
1459 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1460 # A ".." for each directory in $ac_dir_suffix.
1461 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1462 case $ac_top_builddir_sub in
1463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1465 esac ;;
1466 esac
1467 ac_abs_top_builddir=$ac_pwd
1468 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1469 # for backward compatibility:
1470 ac_top_builddir=$ac_top_build_prefix
1471
1472 case $srcdir in
1473 .) # We are building in place.
1474 ac_srcdir=.
1475 ac_top_srcdir=$ac_top_builddir_sub
1476 ac_abs_top_srcdir=$ac_pwd ;;
1477 [\\/]* | ?:[\\/]* ) # Absolute name.
1478 ac_srcdir=$srcdir$ac_dir_suffix;
1479 ac_top_srcdir=$srcdir
1480 ac_abs_top_srcdir=$srcdir ;;
1481 *) # Relative name.
1482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1483 ac_top_srcdir=$ac_top_build_prefix$srcdir
1484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1485 esac
1486 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1487
1488 cd "$ac_dir" || { ac_status=$?; continue; }
1489 # Check for configure.gnu first; this name is used for a wrapper for
1490 # Metaconfig's "Configure" on case-insensitive file systems.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
1498 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1502 fi
1503
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506 cat <<\_ACEOF
1507 Envmodules configure 1.4.3
1508 generated by GNU Autoconf 2.72
1509
1510 Copyright (C) 2023 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1513 _ACEOF
1514 exit
1515 fi
1516
1517 ## ------------------------ ##
1518 ## Autoconf initialization. ##
1519 ## ------------------------ ##
1520
1521 # ac_fn_c_try_compile LINENO
1522 # --------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_compile ()
1525 {
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext conftest.beam
1528 if { { ac_try="$ac_compile"
1529 case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 printf "%s\n" "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1541 fi
1542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext
1547 then :
1548 ac_retval=0
1549 else case e in #(
1550 e) printf "%s\n" "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1552
1553 ac_retval=1 ;;
1554 esac
1555 fi
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1558
1559 } # ac_fn_c_try_compile
1560
1561 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1562 # -------------------------------------------------------
1563 # Tests whether HEADER exists and can be compiled using the include files in
1564 # INCLUDES, setting the cache variable VAR accordingly.
1565 ac_fn_c_check_header_compile ()
1566 {
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1569 printf %s "checking for $2... " >&6; }
1570 if eval test \${$3+y}
1571 then :
1572 printf %s "(cached) " >&6
1573 else case e in #(
1574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1575 /* end confdefs.h. */
1576 $4
1577 #include <$2>
1578 _ACEOF
1579 if ac_fn_c_try_compile "$LINENO"
1580 then :
1581 eval "$3=yes"
1582 else case e in #(
1583 e) eval "$3=no" ;;
1584 esac
1585 fi
1586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1587 esac
1588 fi
1589 eval ac_res=\$$3
1590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591 printf "%s\n" "$ac_res" >&6; }
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593
1594 } # ac_fn_c_check_header_compile
1595
1596 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1597 # -------------------------------------------
1598 # Tests whether TYPE exists after having included INCLUDES, setting cache
1599 # variable VAR accordingly.
1600 ac_fn_c_check_type ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 printf %s "checking for $2... " >&6; }
1605 if eval test \${$3+y}
1606 then :
1607 printf %s "(cached) " >&6
1608 else case e in #(
1609 e) eval "$3=no"
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1612 $4
1613 int
1614 main (void)
1615 {
1616 if (sizeof ($2))
1617 return 0;
1618 ;
1619 return 0;
1620 }
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"
1623 then :
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1626 $4
1627 int
1628 main (void)
1629 {
1630 if (sizeof (($2)))
1631 return 0;
1632 ;
1633 return 0;
1634 }
1635 _ACEOF
1636 if ac_fn_c_try_compile "$LINENO"
1637 then :
1638
1639 else case e in #(
1640 e) eval "$3=yes" ;;
1641 esac
1642 fi
1643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1644 fi
1645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1646 esac
1647 fi
1648 eval ac_res=\$$3
1649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650 printf "%s\n" "$ac_res" >&6; }
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652
1653 } # ac_fn_c_check_type
1654
1655 # ac_fn_c_try_link LINENO
1656 # -----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_link ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1662 if { { ac_try="$ac_link"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 printf "%s\n" "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest$ac_exeext && {
1681 test "$cross_compiling" = yes ||
1682 test -x conftest$ac_exeext
1683 }
1684 then :
1685 ac_retval=0
1686 else case e in #(
1687 e) printf "%s\n" "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 ac_retval=1 ;;
1691 esac
1692 fi
1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695 # interfere with the next link command; also delete a directory that is
1696 # left behind by Apple's compiler. We do this before executing the actions.
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_link
1702
1703 # ac_fn_c_try_cpp LINENO
1704 # ----------------------
1705 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_cpp ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_cpp conftest.$ac_ext"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 printf "%s\n" "$ac_try_echo"; } >&5
1716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } > conftest.i && {
1725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 }
1728 then :
1729 ac_retval=0
1730 else case e in #(
1731 e) printf "%s\n" "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=1 ;;
1735 esac
1736 fi
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_cpp
1741
1742 # ac_fn_c_try_run LINENO
1743 # ----------------------
1744 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1745 # executables *can* be run.
1746 ac_fn_c_try_run ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { { ac_try="$ac_link"
1750 case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 printf "%s\n" "$ac_try_echo"; } >&5
1756 (eval "$ac_link") 2>&5
1757 ac_status=$?
1758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1760 { { case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 printf "%s\n" "$ac_try_echo"; } >&5
1766 (eval "$ac_try") 2>&5
1767 ac_status=$?
1768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; }; }
1770 then :
1771 ac_retval=0
1772 else case e in #(
1773 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1774 printf "%s\n" "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=$ac_status ;;
1778 esac
1779 fi
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1783
1784 } # ac_fn_c_try_run
1785
1786 # ac_fn_c_check_func LINENO FUNC VAR
1787 # ----------------------------------
1788 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1789 ac_fn_c_check_func ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 printf %s "checking for $2... " >&6; }
1794 if eval test \${$3+y}
1795 then :
1796 printf %s "(cached) " >&6
1797 else case e in #(
1798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1802 #define $2 innocuous_$2
1803
1804 /* System header to define __stub macros and hopefully few prototypes,
1805 which can conflict with char $2 (void); below. */
1806
1807 #include <limits.h>
1808 #undef $2
1809
1810 /* Override any GCC internal prototype to avoid an error.
1811 Use char because int might match the return type of a GCC
1812 builtin and then its argument prototype would still apply. */
1813 #ifdef __cplusplus
1814 extern "C"
1815 #endif
1816 char $2 (void);
1817 /* The GNU C library defines this for functions which it implements
1818 to always fail with ENOSYS. Some functions are actually named
1819 something starting with __ and the normal name is an alias. */
1820 #if defined __stub_$2 || defined __stub___$2
1821 choke me
1822 #endif
1823
1824 int
1825 main (void)
1826 {
1827 return $2 ();
1828 ;
1829 return 0;
1830 }
1831 _ACEOF
1832 if ac_fn_c_try_link "$LINENO"
1833 then :
1834 eval "$3=yes"
1835 else case e in #(
1836 e) eval "$3=no" ;;
1837 esac
1838 fi
1839 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1840 conftest$ac_exeext conftest.$ac_ext ;;
1841 esac
1842 fi
1843 eval ac_res=\$$3
1844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 printf "%s\n" "$ac_res" >&6; }
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847
1848 } # ac_fn_c_check_func
1849 ac_configure_args_raw=
1850 for ac_arg
1851 do
1852 case $ac_arg in
1853 *\'*)
1854 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 esac
1856 as_fn_append ac_configure_args_raw " '$ac_arg'"
1857 done
1858
1859 case $ac_configure_args_raw in
1860 *$as_nl*)
1861 ac_safe_unquote= ;;
1862 *)
1863 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1864 ac_unsafe_a="$ac_unsafe_z#~"
1865 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1866 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1867 esac
1868
1869 cat >config.log <<_ACEOF
1870 This file contains any messages produced by compilers while
1871 running configure, to aid debugging if configure makes a mistake.
1872
1873 It was created by Envmodules $as_me 1.4.3, which was
1874 generated by GNU Autoconf 2.72. Invocation command line was
1875
1876 $ $0$ac_configure_args_raw
1877
1878 _ACEOF
1879 exec 5>>config.log
1880 {
1881 cat <<_ASUNAME
1882 ## --------- ##
1883 ## Platform. ##
1884 ## --------- ##
1885
1886 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1887 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1888 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1889 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1890 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1891
1892 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1893 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1894
1895 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1896 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1897 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1898 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1899 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1900 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1901 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1902
1903 _ASUNAME
1904
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908 IFS=$as_save_IFS
1909 case $as_dir in #(((
1910 '') as_dir=./ ;;
1911 */) ;;
1912 *) as_dir=$as_dir/ ;;
1913 esac
1914 printf "%s\n" "PATH: $as_dir"
1915 done
1916 IFS=$as_save_IFS
1917
1918 } >&5
1919
1920 cat >&5 <<_ACEOF
1921
1922
1923 ## ----------- ##
1924 ## Core tests. ##
1925 ## ----------- ##
1926
1927 _ACEOF
1928
1929
1930 # Keep a trace of the command line.
1931 # Strip out --no-create and --no-recursion so they do not pile up.
1932 # Strip out --silent because we don't want to record it for future runs.
1933 # Also quote any args containing shell meta-characters.
1934 # Make two passes to allow for proper duplicate-argument suppression.
1935 ac_configure_args=
1936 ac_configure_args0=
1937 ac_configure_args1=
1938 ac_must_keep_next=false
1939 for ac_pass in 1 2
1940 do
1941 for ac_arg
1942 do
1943 case $ac_arg in
1944 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1946 | -silent | --silent | --silen | --sile | --sil)
1947 continue ;;
1948 *\'*)
1949 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1950 esac
1951 case $ac_pass in
1952 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1953 2)
1954 as_fn_append ac_configure_args1 " '$ac_arg'"
1955 if test $ac_must_keep_next = true; then
1956 ac_must_keep_next=false # Got value, back to normal.
1957 else
1958 case $ac_arg in
1959 *=* | --config-cache | -C | -disable-* | --disable-* \
1960 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1961 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1962 | -with-* | --with-* | -without-* | --without-* | --x)
1963 case "$ac_configure_args0 " in
1964 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1965 esac
1966 ;;
1967 -* ) ac_must_keep_next=true ;;
1968 esac
1969 fi
1970 as_fn_append ac_configure_args " '$ac_arg'"
1971 ;;
1972 esac
1973 done
1974 done
1975 { ac_configure_args0=; unset ac_configure_args0;}
1976 { ac_configure_args1=; unset ac_configure_args1;}
1977
1978 # When interrupted or exit'd, cleanup temporary files, and complete
1979 # config.log. We remove comments because anyway the quotes in there
1980 # would cause problems or look ugly.
1981 # WARNING: Use '\'' to represent an apostrophe within the trap.
1982 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1983 trap 'exit_status=$?
1984 # Sanitize IFS.
1985 IFS=" "" $as_nl"
1986 # Save into config.log some information that might help in debugging.
1987 {
1988 echo
1989
1990 printf "%s\n" "## ---------------- ##
1991 ## Cache variables. ##
1992 ## ---------------- ##"
1993 echo
1994 # The following way of writing the cache mishandles newlines in values,
1995 (
1996 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in #(
1999 *${as_nl}*)
2000 case $ac_var in #(
2001 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2002 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2003 esac
2004 case $ac_var in #(
2005 _ | IFS | as_nl) ;; #(
2006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007 *) { eval $ac_var=; unset $ac_var;} ;;
2008 esac ;;
2009 esac
2010 done
2011 (set) 2>&1 |
2012 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2013 *${as_nl}ac_space=\ *)
2014 sed -n \
2015 "s/'\''/'\''\\\\'\'''\''/g;
2016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2017 ;; #(
2018 *)
2019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2020 ;;
2021 esac |
2022 sort
2023 )
2024 echo
2025
2026 printf "%s\n" "## ----------------- ##
2027 ## Output variables. ##
2028 ## ----------------- ##"
2029 echo
2030 for ac_var in $ac_subst_vars
2031 do
2032 eval ac_val=\$$ac_var
2033 case $ac_val in
2034 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035 esac
2036 printf "%s\n" "$ac_var='\''$ac_val'\''"
2037 done | sort
2038 echo
2039
2040 if test -n "$ac_subst_files"; then
2041 printf "%s\n" "## ------------------- ##
2042 ## File substitutions. ##
2043 ## ------------------- ##"
2044 echo
2045 for ac_var in $ac_subst_files
2046 do
2047 eval ac_val=\$$ac_var
2048 case $ac_val in
2049 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050 esac
2051 printf "%s\n" "$ac_var='\''$ac_val'\''"
2052 done | sort
2053 echo
2054 fi
2055
2056 if test -s confdefs.h; then
2057 printf "%s\n" "## ----------- ##
2058 ## confdefs.h. ##
2059 ## ----------- ##"
2060 echo
2061 cat confdefs.h
2062 echo
2063 fi
2064 test "$ac_signal" != 0 &&
2065 printf "%s\n" "$as_me: caught signal $ac_signal"
2066 printf "%s\n" "$as_me: exit $exit_status"
2067 } >&5
2068 rm -f core *.core core.conftest.* &&
2069 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2070 exit $exit_status
2071 ' 0
2072 for ac_signal in 1 2 13 15; do
2073 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2074 done
2075 ac_signal=0
2076
2077 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2078 rm -f -r conftest* confdefs.h
2079
2080 printf "%s\n" "/* confdefs.h */" > confdefs.h
2081
2082 # Predefined preprocessor variables.
2083
2084 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2085
2086 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2087
2088 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2089
2090 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2091
2092 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2093
2094 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2095
2096
2097 # Let the site file select an alternate cache file if it wants to.
2098 # Prefer an explicitly selected file to automatically selected ones.
2099 if test -n "$CONFIG_SITE"; then
2100 ac_site_files="$CONFIG_SITE"
2101 elif test "x$prefix" != xNONE; then
2102 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2103 else
2104 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2105 fi
2106
2107 for ac_site_file in $ac_site_files
2108 do
2109 case $ac_site_file in #(
2110 */*) :
2111 ;; #(
2112 *) :
2113 ac_site_file=./$ac_site_file ;;
2114 esac
2115 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2117 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2118 sed 's/^/| /' "$ac_site_file" >&5
2119 . "$ac_site_file" \
2120 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2121 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2122 as_fn_error $? "failed to load site script $ac_site_file
2123 See 'config.log' for more details" "$LINENO" 5; }
2124 fi
2125 done
2126
2127 if test -r "$cache_file"; then
2128 # Some versions of bash will fail to source /dev/null (special files
2129 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2130 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2132 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2133 case $cache_file in
2134 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2135 *) . "./$cache_file";;
2136 esac
2137 fi
2138 else
2139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2140 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2141 >$cache_file
2142 fi
2143
2144 # Test code for whether the C compiler supports C89 (global declarations)
2145 ac_c_conftest_c89_globals='
2146 /* Does the compiler advertise C89 conformance?
2147 Do not test the value of __STDC__, because some compilers set it to 0
2148 while being otherwise adequately conformant. */
2149 #if !defined __STDC__
2150 # error "Compiler does not advertise C89 conformance"
2151 #endif
2152
2153 #include <stddef.h>
2154 #include <stdarg.h>
2155 struct stat;
2156 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2157 struct buf { int x; };
2158 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2159 static char *e (char **p, int i)
2160 {
2161 return p[i];
2162 }
2163 static char *f (char * (*g) (char **, int), char **p, ...)
2164 {
2165 char *s;
2166 va_list v;
2167 va_start (v,p);
2168 s = g (p, va_arg (v,int));
2169 va_end (v);
2170 return s;
2171 }
2172
2173 /* C89 style stringification. */
2174 #define noexpand_stringify(a) #a
2175 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2176
2177 /* C89 style token pasting. Exercises some of the corner cases that
2178 e.g. old MSVC gets wrong, but not very hard. */
2179 #define noexpand_concat(a,b) a##b
2180 #define expand_concat(a,b) noexpand_concat(a,b)
2181 extern int vA;
2182 extern int vbee;
2183 #define aye A
2184 #define bee B
2185 int *pvA = &expand_concat(v,aye);
2186 int *pvbee = &noexpand_concat(v,bee);
2187
2188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2189 function prototypes and stuff, but not \xHH hex character constants.
2190 These do not provoke an error unfortunately, instead are silently treated
2191 as an "x". The following induces an error, until -std is added to get
2192 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2193 array size at least. It is necessary to write \x00 == 0 to get something
2194 that is true only with -std. */
2195 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2196
2197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2198 inside strings and character constants. */
2199 #define FOO(x) '\''x'\''
2200 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2201
2202 int test (int i, double x);
2203 struct s1 {int (*f) (int a);};
2204 struct s2 {int (*f) (double a);};
2205 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2206 int, int);'
2207
2208 # Test code for whether the C compiler supports C89 (body of main).
2209 ac_c_conftest_c89_main='
2210 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2211 '
2212
2213 # Test code for whether the C compiler supports C99 (global declarations)
2214 ac_c_conftest_c99_globals='
2215 /* Does the compiler advertise C99 conformance? */
2216 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2217 # error "Compiler does not advertise C99 conformance"
2218 #endif
2219
2220 // See if C++-style comments work.
2221
2222 #include <stdbool.h>
2223 extern int puts (const char *);
2224 extern int printf (const char *, ...);
2225 extern int dprintf (int, const char *, ...);
2226 extern void *malloc (size_t);
2227 extern void free (void *);
2228
2229 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2230 // dprintf is used instead of fprintf to avoid needing to declare
2231 // FILE and stderr.
2232 #define debug(...) dprintf (2, __VA_ARGS__)
2233 #define showlist(...) puts (#__VA_ARGS__)
2234 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2235 static void
2236 test_varargs_macros (void)
2237 {
2238 int x = 1234;
2239 int y = 5678;
2240 debug ("Flag");
2241 debug ("X = %d\n", x);
2242 showlist (The first, second, and third items.);
2243 report (x>y, "x is %d but y is %d", x, y);
2244 }
2245
2246 // Check long long types.
2247 #define BIG64 18446744073709551615ull
2248 #define BIG32 4294967295ul
2249 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2250 #if !BIG_OK
2251 #error "your preprocessor is broken"
2252 #endif
2253 #if BIG_OK
2254 #else
2255 #error "your preprocessor is broken"
2256 #endif
2257 static long long int bignum = -9223372036854775807LL;
2258 static unsigned long long int ubignum = BIG64;
2259
2260 struct incomplete_array
2261 {
2262 int datasize;
2263 double data[];
2264 };
2265
2266 struct named_init {
2267 int number;
2268 const wchar_t *name;
2269 double average;
2270 };
2271
2272 typedef const char *ccp;
2273
2274 static inline int
2275 test_restrict (ccp restrict text)
2276 {
2277 // Iterate through items via the restricted pointer.
2278 // Also check for declarations in for loops.
2279 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2280 continue;
2281 return 0;
2282 }
2283
2284 // Check varargs and va_copy.
2285 static bool
2286 test_varargs (const char *format, ...)
2287 {
2288 va_list args;
2289 va_start (args, format);
2290 va_list args_copy;
2291 va_copy (args_copy, args);
2292
2293 const char *str = "";
2294 int number = 0;
2295 float fnumber = 0;
2296
2297 while (*format)
2298 {
2299 switch (*format++)
2300 {
2301 case '\''s'\'': // string
2302 str = va_arg (args_copy, const char *);
2303 break;
2304 case '\''d'\'': // int
2305 number = va_arg (args_copy, int);
2306 break;
2307 case '\''f'\'': // float
2308 fnumber = va_arg (args_copy, double);
2309 break;
2310 default:
2311 break;
2312 }
2313 }
2314 va_end (args_copy);
2315 va_end (args);
2316
2317 return *str && number && fnumber;
2318 }
2319 '
2320
2321 # Test code for whether the C compiler supports C99 (body of main).
2322 ac_c_conftest_c99_main='
2323 // Check bool.
2324 _Bool success = false;
2325 success |= (argc != 0);
2326
2327 // Check restrict.
2328 if (test_restrict ("String literal") == 0)
2329 success = true;
2330 char *restrict newvar = "Another string";
2331
2332 // Check varargs.
2333 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2334 test_varargs_macros ();
2335
2336 // Check flexible array members.
2337 struct incomplete_array *ia =
2338 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2339 ia->datasize = 10;
2340 for (int i = 0; i < ia->datasize; ++i)
2341 ia->data[i] = i * 1.234;
2342 // Work around memory leak warnings.
2343 free (ia);
2344
2345 // Check named initializers.
2346 struct named_init ni = {
2347 .number = 34,
2348 .name = L"Test wide string",
2349 .average = 543.34343,
2350 };
2351
2352 ni.number = 58;
2353
2354 int dynamic_array[ni.number];
2355 dynamic_array[0] = argv[0][0];
2356 dynamic_array[ni.number - 1] = 543;
2357
2358 // work around unused variable warnings
2359 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2360 || dynamic_array[ni.number - 1] != 543);
2361 '
2362
2363 # Test code for whether the C compiler supports C11 (global declarations)
2364 ac_c_conftest_c11_globals='
2365 /* Does the compiler advertise C11 conformance? */
2366 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2367 # error "Compiler does not advertise C11 conformance"
2368 #endif
2369
2370 // Check _Alignas.
2371 char _Alignas (double) aligned_as_double;
2372 char _Alignas (0) no_special_alignment;
2373 extern char aligned_as_int;
2374 char _Alignas (0) _Alignas (int) aligned_as_int;
2375
2376 // Check _Alignof.
2377 enum
2378 {
2379 int_alignment = _Alignof (int),
2380 int_array_alignment = _Alignof (int[100]),
2381 char_alignment = _Alignof (char)
2382 };
2383 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2384
2385 // Check _Noreturn.
2386 int _Noreturn does_not_return (void) { for (;;) continue; }
2387
2388 // Check _Static_assert.
2389 struct test_static_assert
2390 {
2391 int x;
2392 _Static_assert (sizeof (int) <= sizeof (long int),
2393 "_Static_assert does not work in struct");
2394 long int y;
2395 };
2396
2397 // Check UTF-8 literals.
2398 #define u8 syntax error!
2399 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2400
2401 // Check duplicate typedefs.
2402 typedef long *long_ptr;
2403 typedef long int *long_ptr;
2404 typedef long_ptr long_ptr;
2405
2406 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2407 struct anonymous
2408 {
2409 union {
2410 struct { int i; int j; };
2411 struct { int k; long int l; } w;
2412 };
2413 int m;
2414 } v1;
2415 '
2416
2417 # Test code for whether the C compiler supports C11 (body of main).
2418 ac_c_conftest_c11_main='
2419 _Static_assert ((offsetof (struct anonymous, i)
2420 == offsetof (struct anonymous, w.k)),
2421 "Anonymous union alignment botch");
2422 v1.i = 2;
2423 v1.w.k = 5;
2424 ok |= v1.i != 5;
2425 '
2426
2427 # Test code for whether the C compiler supports C11 (complete).
2428 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2429 ${ac_c_conftest_c99_globals}
2430 ${ac_c_conftest_c11_globals}
2431
2432 int
2433 main (int argc, char **argv)
2434 {
2435 int ok = 0;
2436 ${ac_c_conftest_c89_main}
2437 ${ac_c_conftest_c99_main}
2438 ${ac_c_conftest_c11_main}
2439 return ok;
2440 }
2441 "
2442
2443 # Test code for whether the C compiler supports C99 (complete).
2444 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2445 ${ac_c_conftest_c99_globals}
2446
2447 int
2448 main (int argc, char **argv)
2449 {
2450 int ok = 0;
2451 ${ac_c_conftest_c89_main}
2452 ${ac_c_conftest_c99_main}
2453 return ok;
2454 }
2455 "
2456
2457 # Test code for whether the C compiler supports C89 (complete).
2458 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2459
2460 int
2461 main (int argc, char **argv)
2462 {
2463 int ok = 0;
2464 ${ac_c_conftest_c89_main}
2465 return ok;
2466 }
2467 "
2468
2469 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2470 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2471 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2472 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2473 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2474 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2475 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2476 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2477 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2478
2479 # Auxiliary files required by this configure script.
2480 ac_aux_files="config.guess config.sub"
2481
2482 # Locations in which to look for auxiliary files.
2483 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2484
2485 # Search for a directory containing all of the required auxiliary files,
2486 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2487 # If we don't find one directory that contains all the files we need,
2488 # we report the set of missing files from the *first* directory in
2489 # $ac_aux_dir_candidates and give up.
2490 ac_missing_aux_files=""
2491 ac_first_candidate=:
2492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 as_found=false
2495 for as_dir in $ac_aux_dir_candidates
2496 do
2497 IFS=$as_save_IFS
2498 case $as_dir in #(((
2499 '') as_dir=./ ;;
2500 */) ;;
2501 *) as_dir=$as_dir/ ;;
2502 esac
2503 as_found=:
2504
2505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2506 ac_aux_dir_found=yes
2507 ac_install_sh=
2508 for ac_aux in $ac_aux_files
2509 do
2510 # As a special case, if "install-sh" is required, that requirement
2511 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2512 # and $ac_install_sh is set appropriately for whichever one is found.
2513 if test x"$ac_aux" = x"install-sh"
2514 then
2515 if test -f "${as_dir}install-sh"; then
2516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2517 ac_install_sh="${as_dir}install-sh -c"
2518 elif test -f "${as_dir}install.sh"; then
2519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2520 ac_install_sh="${as_dir}install.sh -c"
2521 elif test -f "${as_dir}shtool"; then
2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2523 ac_install_sh="${as_dir}shtool install -c"
2524 else
2525 ac_aux_dir_found=no
2526 if $ac_first_candidate; then
2527 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2528 else
2529 break
2530 fi
2531 fi
2532 else
2533 if test -f "${as_dir}${ac_aux}"; then
2534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2535 else
2536 ac_aux_dir_found=no
2537 if $ac_first_candidate; then
2538 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2539 else
2540 break
2541 fi
2542 fi
2543 fi
2544 done
2545 if test "$ac_aux_dir_found" = yes; then
2546 ac_aux_dir="$as_dir"
2547 break
2548 fi
2549 ac_first_candidate=false
2550
2551 as_found=false
2552 done
2553 IFS=$as_save_IFS
2554 if $as_found
2555 then :
2556
2557 else case e in #(
2558 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2559 esac
2560 fi
2561
2562
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 if test -f "${ac_aux_dir}config.guess"; then
2568 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2569 fi
2570 if test -f "${ac_aux_dir}config.sub"; then
2571 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2572 fi
2573 if test -f "$ac_aux_dir/configure"; then
2574 ac_configure="$SHELL ${ac_aux_dir}configure"
2575 fi
2576
2577 # Check that the precious variables saved in the cache have kept the same
2578 # value.
2579 ac_cache_corrupted=false
2580 for ac_var in $ac_precious_vars; do
2581 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2582 eval ac_new_set=\$ac_env_${ac_var}_set
2583 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2584 eval ac_new_val=\$ac_env_${ac_var}_value
2585 case $ac_old_set,$ac_new_set in
2586 set,)
2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2588 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2589 ac_cache_corrupted=: ;;
2590 ,set)
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2592 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2593 ac_cache_corrupted=: ;;
2594 ,);;
2595 *)
2596 if test "x$ac_old_val" != "x$ac_new_val"; then
2597 # differences in whitespace do not lead to failure.
2598 ac_old_val_w=`echo x $ac_old_val`
2599 ac_new_val_w=`echo x $ac_new_val`
2600 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2602 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2603 ac_cache_corrupted=:
2604 else
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2606 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2607 eval $ac_var=\$ac_old_val
2608 fi
2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2610 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2612 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2613 fi;;
2614 esac
2615 # Pass precious variables to config.status.
2616 if test "$ac_new_set" = set; then
2617 case $ac_new_val in
2618 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619 *) ac_arg=$ac_var=$ac_new_val ;;
2620 esac
2621 case " $ac_configure_args " in
2622 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2623 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2624 esac
2625 fi
2626 done
2627 if $ac_cache_corrupted; then
2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2629 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2632 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2633 and start over" "$LINENO" 5
2634 fi
2635 ## -------------------- ##
2636 ## Main body of script. ##
2637 ## -------------------- ##
2638
2639 ac_ext=c
2640 ac_cpp='$CPP $CPPFLAGS'
2641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644
2645
2646
2647 ac_config_headers="$ac_config_headers config.h"
2648
2649
2650 # Setup TEA_ macros.
2651
2652 TEA_VERSION="3.13"
2653
2654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TEA configuration" >&5
2655 printf %s "checking TEA configuration... " >&6; }
2656 if test x"${PACKAGE_NAME}" = x ; then
2657 as_fn_error $? "
2658 The PACKAGE_NAME variable must be defined by your TEA configure.ac" "$LINENO" 5
2659 fi
2660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
2661 printf "%s\n" "ok (TEA ${TEA_VERSION})" >&6; }
2662
2663 # If the user did not set CFLAGS, set it now to keep macros
2664 # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2".
2665 if test "${CFLAGS+set}" != "set" ; then
2666 CFLAGS=""
2667 fi
2668
2669 case "`uname -s`" in
2670 *win32*|*WIN32*|*MINGW32_*|*MINGW64_*|*MSYS_*)
2671 # Extract the first word of "cygpath", so it can be a program name with args.
2672 set dummy cygpath; ac_word=$2
2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 printf %s "checking for $ac_word... " >&6; }
2675 if test ${ac_cv_prog_CYGPATH+y}
2676 then :
2677 printf %s "(cached) " >&6
2678 else case e in #(
2679 e) if test -n "$CYGPATH"; then
2680 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685 IFS=$as_save_IFS
2686 case $as_dir in #(((
2687 '') as_dir=./ ;;
2688 */) ;;
2689 *) as_dir=$as_dir/ ;;
2690 esac
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_CYGPATH="cygpath -m"
2694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
2702 fi ;;
2703 esac
2704 fi
2705 CYGPATH=$ac_cv_prog_CYGPATH
2706 if test -n "$CYGPATH"; then
2707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
2708 printf "%s\n" "$CYGPATH" >&6; }
2709 else
2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 printf "%s\n" "no" >&6; }
2712 fi
2713
2714
2715 EXEEXT=".exe"
2716 TEA_PLATFORM="windows"
2717 ;;
2718 *CYGWIN_*)
2719 EXEEXT=".exe"
2720 # CYGPATH and TEA_PLATFORM are determined later in LOAD_TCLCONFIG
2721 ;;
2722 *)
2723 CYGPATH=echo
2724 # Maybe we are cross-compiling....
2725 case ${host_alias} in
2726 *mingw32*)
2727 EXEEXT=".exe"
2728 TEA_PLATFORM="windows"
2729 ;;
2730 *)
2731 EXEEXT=""
2732 TEA_PLATFORM="unix"
2733 ;;
2734 esac
2735 ;;
2736 esac
2737
2738 # Check if exec_prefix is set. If not use fall back to prefix.
2739 # Note when adjusted, so that TEA_PREFIX can correct for this.
2740 # This is needed for recursive configures, since autoconf propagates
2741 # $prefix, but not $exec_prefix (doh!).
2742 if test x$exec_prefix = xNONE ; then
2743 exec_prefix_default=yes
2744 exec_prefix=$prefix
2745 fi
2746
2747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5
2748 printf "%s\n" "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;}
2749
2750
2751
2752
2753 # This package name must be replaced statically for AC_SUBST to work
2754
2755
2756
2757
2758 # We AC_SUBST these here to ensure they are subst'ed,
2759 # in case the user doesn't call TEA_ADD_...
2760
2761
2762
2763
2764
2765
2766
2767
2768 # Configure the installer.
2769
2770 INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c'
2771 INSTALL_DATA_DIR='${INSTALL} -d -m 755'
2772 INSTALL_DATA='${INSTALL} -m 644'
2773 INSTALL_PROGRAM='${INSTALL} -m 755'
2774 INSTALL_SCRIPT='${INSTALL} -m 755'
2775
2776
2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
2778 printf %s "checking system version... " >&6; }
2779 if test ${tcl_cv_sys_version+y}
2780 then :
2781 printf %s "(cached) " >&6
2782 else case e in #(
2783 e)
2784 # TEA specific:
2785 if test "${TEA_PLATFORM}" = "windows" ; then
2786 tcl_cv_sys_version=windows
2787 else
2788 tcl_cv_sys_version=`uname -s`-`uname -r`
2789 if test "$?" -ne 0 ; then
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
2791 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
2792 tcl_cv_sys_version=unknown
2793 else
2794 if test "`uname -s`" = "AIX" ; then
2795 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
2796 fi
2797 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
2798 tcl_cv_sys_version=NetBSD-Debian
2799 fi
2800 fi
2801 fi
2802 ;;
2803 esac
2804 fi
2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
2806 printf "%s\n" "$tcl_cv_sys_version" >&6; }
2807 system=$tcl_cv_sys_version
2808
2809 case $system in
2810 HP-UX-*) INSTALL_LIBRARY='${INSTALL} -m 755' ;;
2811 *) INSTALL_LIBRARY='${INSTALL} -m 644' ;;
2812 esac
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823 # Load the tclConfig.sh file.
2824
2825
2826 #
2827 # Ok, lets find the tcl configuration
2828 # First, look for one uninstalled.
2829 # the alternative search directory is invoked by --with-tcl
2830 #
2831
2832 if test x"${no_tcl}" = x ; then
2833 # we reset no_tcl in case something fails here
2834 no_tcl=true
2835
2836 # Check whether --with-tcl was given.
2837 if test ${with_tcl+y}
2838 then :
2839 withval=$with_tcl; with_tclconfig="${withval}"
2840 fi
2841
2842
2843 # Check whether --with-tcl8 was given.
2844 if test ${with_tcl8+y}
2845 then :
2846 withval=$with_tcl8; with_tcl8="${withval}"
2847 fi
2848
2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
2850 printf %s "checking for Tcl configuration... " >&6; }
2851 if test ${ac_cv_c_tclconfig+y}
2852 then :
2853 printf %s "(cached) " >&6
2854 else case e in #(
2855 e)
2856
2857 # First check to see if --with-tcl was specified.
2858 if test x"${with_tclconfig}" != x ; then
2859 case "${with_tclconfig}" in
2860 */tclConfig.sh )
2861 if test -f "${with_tclconfig}"; then
2862 { 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
2863 printf "%s\n" "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
2864 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
2865 fi ;;
2866 esac
2867 if test -f "${with_tclconfig}/tclConfig.sh" ; then
2868 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
2869 else
2870 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
2871 fi
2872 fi
2873
2874 # then check for a private Tcl installation
2875 if test x"${ac_cv_c_tclconfig}" = x ; then
2876 for i in \
2877 ../tcl \
2878 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2879 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
2880 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
2881 ../../tcl \
2882 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2883 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
2884 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2885 ../../../tcl \
2886 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2887 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
2888 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2889 if test "${TEA_PLATFORM}" = "windows" \
2890 -a -f "$i/win/tclConfig.sh" ; then
2891 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2892 break
2893 fi
2894 if test -f "$i/unix/tclConfig.sh" ; then
2895 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2896 break
2897 fi
2898 done
2899 fi
2900
2901 # on Darwin, check in Framework installation locations
2902 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
2903 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
2904 `ls -d /Library/Frameworks 2>/dev/null` \
2905 `ls -d /Network/Library/Frameworks 2>/dev/null` \
2906 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks/Tcl.framework 2>/dev/null` \
2907 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Network/Library/Frameworks/Tcl.framework 2>/dev/null` \
2908 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Tcl.framework 2>/dev/null` \
2909 ; do
2910 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
2911 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
2912 break
2913 fi
2914 done
2915 fi
2916
2917 # TEA specific: on Windows, check in common installation locations
2918 if test "${TEA_PLATFORM}" = "windows" \
2919 -a x"${ac_cv_c_tclconfig}" = x ; then
2920 for i in `ls -d C:/Tcl/lib 2>/dev/null` \
2921 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
2922 ; do
2923 if test -f "$i/tclConfig.sh" ; then
2924 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2925 break
2926 fi
2927 done
2928 fi
2929
2930 # check in a few common install locations
2931 if test x"${ac_cv_c_tclconfig}" = x ; then
2932 for i in `ls -d ${libdir} 2>/dev/null` \
2933 `ls -d ${exec_prefix}/lib 2>/dev/null` \
2934 `ls -d ${prefix}/lib 2>/dev/null` \
2935 `ls -d /usr/local/lib 2>/dev/null` \
2936 `ls -d /usr/contrib/lib 2>/dev/null` \
2937 `ls -d /usr/pkg/lib 2>/dev/null` \
2938 `ls -d /usr/lib 2>/dev/null` \
2939 `ls -d /usr/lib64 2>/dev/null` \
2940 `ls -d /usr/lib/tcl8.6 2>/dev/null` \
2941 `ls -d /usr/lib/tcl8.5 2>/dev/null` \
2942 `ls -d /usr/local/lib/tcl8.6 2>/dev/null` \
2943 `ls -d /usr/local/lib/tcl8.5 2>/dev/null` \
2944 `ls -d /usr/local/lib/tcl/tcl8.6 2>/dev/null` \
2945 `ls -d /usr/local/lib/tcl/tcl8.5 2>/dev/null` \
2946 ; do
2947 if test -f "$i/tclConfig.sh" ; then
2948 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2949 break
2950 fi
2951 done
2952 fi
2953
2954 # check in a few other private locations
2955 if test x"${ac_cv_c_tclconfig}" = x ; then
2956 for i in \
2957 ${srcdir}/../tcl \
2958 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2959 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2960 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2961 if test "${TEA_PLATFORM}" = "windows" \
2962 -a -f "$i/win/tclConfig.sh" ; then
2963 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2964 break
2965 fi
2966 if test -f "$i/unix/tclConfig.sh" ; then
2967 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2968 break
2969 fi
2970 done
2971 fi
2972 ;;
2973 esac
2974 fi
2975
2976
2977 if test x"${ac_cv_c_tclconfig}" = x ; then
2978 TCL_BIN_DIR="# no Tcl configs found"
2979 as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
2980 else
2981 no_tcl=
2982 TCL_BIN_DIR="${ac_cv_c_tclconfig}"
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2984 printf "%s\n" "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2985 fi
2986 fi
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997 ac_ext=c
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002 if test -n "$ac_tool_prefix"; then
3003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 printf %s "checking for $ac_word... " >&6; }
3007 if test ${ac_cv_prog_CC+y}
3008 then :
3009 printf %s "(cached) " >&6
3010 else case e in #(
3011 e) if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017 IFS=$as_save_IFS
3018 case $as_dir in #(((
3019 '') as_dir=./ ;;
3020 */) ;;
3021 *) as_dir=$as_dir/ ;;
3022 esac
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi ;;
3034 esac
3035 fi
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039 printf "%s\n" "$CC" >&6; }
3040 else
3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 printf "%s\n" "no" >&6; }
3043 fi
3044
3045
3046 fi
3047 if test -z "$ac_cv_prog_CC"; then
3048 ac_ct_CC=$CC
3049 # Extract the first word of "gcc", so it can be a program name with args.
3050 set dummy gcc; ac_word=$2
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 printf %s "checking for $ac_word... " >&6; }
3053 if test ${ac_cv_prog_ac_ct_CC+y}
3054 then :
3055 printf %s "(cached) " >&6
3056 else case e in #(
3057 e) if test -n "$ac_ct_CC"; then
3058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063 IFS=$as_save_IFS
3064 case $as_dir in #(((
3065 '') as_dir=./ ;;
3066 */) ;;
3067 *) as_dir=$as_dir/ ;;
3068 esac
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3071 ac_cv_prog_ac_ct_CC="gcc"
3072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 fi ;;
3080 esac
3081 fi
3082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3083 if test -n "$ac_ct_CC"; then
3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3085 printf "%s\n" "$ac_ct_CC" >&6; }
3086 else
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 printf "%s\n" "no" >&6; }
3089 fi
3090
3091 if test "x$ac_ct_CC" = x; then
3092 CC=""
3093 else
3094 case $cross_compiling:$ac_tool_warned in
3095 yes:)
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3097 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3098 ac_tool_warned=yes ;;
3099 esac
3100 CC=$ac_ct_CC
3101 fi
3102 else
3103 CC="$ac_cv_prog_CC"
3104 fi
3105
3106 if test -z "$CC"; then
3107 if test -n "$ac_tool_prefix"; then
3108 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3109 set dummy ${ac_tool_prefix}cc; ac_word=$2
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111 printf %s "checking for $ac_word... " >&6; }
3112 if test ${ac_cv_prog_CC+y}
3113 then :
3114 printf %s "(cached) " >&6
3115 else case e in #(
3116 e) if test -n "$CC"; then
3117 ac_cv_prog_CC="$CC" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122 IFS=$as_save_IFS
3123 case $as_dir in #(((
3124 '') as_dir=./ ;;
3125 */) ;;
3126 *) as_dir=$as_dir/ ;;
3127 esac
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3130 ac_cv_prog_CC="${ac_tool_prefix}cc"
3131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3132 break 2
3133 fi
3134 done
3135 done
3136 IFS=$as_save_IFS
3137
3138 fi ;;
3139 esac
3140 fi
3141 CC=$ac_cv_prog_CC
3142 if test -n "$CC"; then
3143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 printf "%s\n" "$CC" >&6; }
3145 else
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 printf "%s\n" "no" >&6; }
3148 fi
3149
3150
3151 fi
3152 fi
3153 if test -z "$CC"; then
3154 # Extract the first word of "cc", so it can be a program name with args.
3155 set dummy cc; ac_word=$2
3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 printf %s "checking for $ac_word... " >&6; }
3158 if test ${ac_cv_prog_CC+y}
3159 then :
3160 printf %s "(cached) " >&6
3161 else case e in #(
3162 e) if test -n "$CC"; then
3163 ac_cv_prog_CC="$CC" # Let the user override the test.
3164 else
3165 ac_prog_rejected=no
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169 IFS=$as_save_IFS
3170 case $as_dir in #(((
3171 '') as_dir=./ ;;
3172 */) ;;
3173 *) as_dir=$as_dir/ ;;
3174 esac
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3177 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3178 ac_prog_rejected=yes
3179 continue
3180 fi
3181 ac_cv_prog_CC="cc"
3182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 if test $ac_prog_rejected = yes; then
3190 # We found a bogon in the path, so make sure we never use it.
3191 set dummy $ac_cv_prog_CC
3192 shift
3193 if test $# != 0; then
3194 # We chose a different compiler from the bogus one.
3195 # However, it has the same basename, so the bogon will be chosen
3196 # first if we set CC to just the basename; use the full file name.
3197 shift
3198 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3199 fi
3200 fi
3201 fi ;;
3202 esac
3203 fi
3204 CC=$ac_cv_prog_CC
3205 if test -n "$CC"; then
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3207 printf "%s\n" "$CC" >&6; }
3208 else
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 printf "%s\n" "no" >&6; }
3211 fi
3212
3213
3214 fi
3215 if test -z "$CC"; then
3216 if test -n "$ac_tool_prefix"; then
3217 for ac_prog in cl.exe
3218 do
3219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 printf %s "checking for $ac_word... " >&6; }
3223 if test ${ac_cv_prog_CC+y}
3224 then :
3225 printf %s "(cached) " >&6
3226 else case e in #(
3227 e) if test -n "$CC"; then
3228 ac_cv_prog_CC="$CC" # Let the user override the test.
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233 IFS=$as_save_IFS
3234 case $as_dir in #(((
3235 '') as_dir=./ ;;
3236 */) ;;
3237 *) as_dir=$as_dir/ ;;
3238 esac
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3243 break 2
3244 fi
3245 done
3246 done
3247 IFS=$as_save_IFS
3248
3249 fi ;;
3250 esac
3251 fi
3252 CC=$ac_cv_prog_CC
3253 if test -n "$CC"; then
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3255 printf "%s\n" "$CC" >&6; }
3256 else
3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 printf "%s\n" "no" >&6; }
3259 fi
3260
3261
3262 test -n "$CC" && break
3263 done
3264 fi
3265 if test -z "$CC"; then
3266 ac_ct_CC=$CC
3267 for ac_prog in cl.exe
3268 do
3269 # Extract the first word of "$ac_prog", so it can be a program name with args.
3270 set dummy $ac_prog; ac_word=$2
3271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 printf %s "checking for $ac_word... " >&6; }
3273 if test ${ac_cv_prog_ac_ct_CC+y}
3274 then :
3275 printf %s "(cached) " >&6
3276 else case e in #(
3277 e) if test -n "$ac_ct_CC"; then
3278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283 IFS=$as_save_IFS
3284 case $as_dir in #(((
3285 '') as_dir=./ ;;
3286 */) ;;
3287 *) as_dir=$as_dir/ ;;
3288 esac
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_ac_ct_CC="$ac_prog"
3292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3293 break 2
3294 fi
3295 done
3296 done
3297 IFS=$as_save_IFS
3298
3299 fi ;;
3300 esac
3301 fi
3302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3303 if test -n "$ac_ct_CC"; then
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3305 printf "%s\n" "$ac_ct_CC" >&6; }
3306 else
3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 printf "%s\n" "no" >&6; }
3309 fi
3310
3311
3312 test -n "$ac_ct_CC" && break
3313 done
3314
3315 if test "x$ac_ct_CC" = x; then
3316 CC=""
3317 else
3318 case $cross_compiling:$ac_tool_warned in
3319 yes:)
3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3321 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3322 ac_tool_warned=yes ;;
3323 esac
3324 CC=$ac_ct_CC
3325 fi
3326 fi
3327
3328 fi
3329 if test -z "$CC"; then
3330 if test -n "$ac_tool_prefix"; then
3331 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3332 set dummy ${ac_tool_prefix}clang; ac_word=$2
3333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334 printf %s "checking for $ac_word... " >&6; }
3335 if test ${ac_cv_prog_CC+y}
3336 then :
3337 printf %s "(cached) " >&6
3338 else case e in #(
3339 e) if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345 IFS=$as_save_IFS
3346 case $as_dir in #(((
3347 '') as_dir=./ ;;
3348 */) ;;
3349 *) as_dir=$as_dir/ ;;
3350 esac
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3353 ac_cv_prog_CC="${ac_tool_prefix}clang"
3354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3355 break 2
3356 fi
3357 done
3358 done
3359 IFS=$as_save_IFS
3360
3361 fi ;;
3362 esac
3363 fi
3364 CC=$ac_cv_prog_CC
3365 if test -n "$CC"; then
3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3367 printf "%s\n" "$CC" >&6; }
3368 else
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 printf "%s\n" "no" >&6; }
3371 fi
3372
3373
3374 fi
3375 if test -z "$ac_cv_prog_CC"; then
3376 ac_ct_CC=$CC
3377 # Extract the first word of "clang", so it can be a program name with args.
3378 set dummy clang; ac_word=$2
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 printf %s "checking for $ac_word... " >&6; }
3381 if test ${ac_cv_prog_ac_ct_CC+y}
3382 then :
3383 printf %s "(cached) " >&6
3384 else case e in #(
3385 e) if test -n "$ac_ct_CC"; then
3386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391 IFS=$as_save_IFS
3392 case $as_dir in #(((
3393 '') as_dir=./ ;;
3394 */) ;;
3395 *) as_dir=$as_dir/ ;;
3396 esac
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3399 ac_cv_prog_ac_ct_CC="clang"
3400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3401 break 2
3402 fi
3403 done
3404 done
3405 IFS=$as_save_IFS
3406
3407 fi ;;
3408 esac
3409 fi
3410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3411 if test -n "$ac_ct_CC"; then
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3413 printf "%s\n" "$ac_ct_CC" >&6; }
3414 else
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 printf "%s\n" "no" >&6; }
3417 fi
3418
3419 if test "x$ac_ct_CC" = x; then
3420 CC=""
3421 else
3422 case $cross_compiling:$ac_tool_warned in
3423 yes:)
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3425 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3426 ac_tool_warned=yes ;;
3427 esac
3428 CC=$ac_ct_CC
3429 fi
3430 else
3431 CC="$ac_cv_prog_CC"
3432 fi
3433
3434 fi
3435
3436
3437 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3438 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3439 as_fn_error $? "no acceptable C compiler found in \$PATH
3440 See 'config.log' for more details" "$LINENO" 5; }
3441
3442 # Provide some information about the compiler.
3443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3444 set X $ac_compile
3445 ac_compiler=$2
3446 for ac_option in --version -v -V -qversion -version; do
3447 { { ac_try="$ac_compiler $ac_option >&5"
3448 case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451 esac
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 printf "%s\n" "$ac_try_echo"; } >&5
3454 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3455 ac_status=$?
3456 if test -s conftest.err; then
3457 sed '10a\
3458 ... rest of stderr output deleted ...
3459 10q' conftest.err >conftest.er1
3460 cat conftest.er1 >&5
3461 fi
3462 rm -f conftest.er1 conftest.err
3463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }
3465 done
3466
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3469
3470 int
3471 main (void)
3472 {
3473
3474 ;
3475 return 0;
3476 }
3477 _ACEOF
3478 ac_clean_files_save=$ac_clean_files
3479 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3480 # Try to create an executable without -o first, disregard a.out.
3481 # It will help us diagnose broken compilers, and finding out an intuition
3482 # of exeext.
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3484 printf %s "checking whether the C compiler works... " >&6; }
3485 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3486
3487 # The possible output files:
3488 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3489
3490 ac_rmfiles=
3491 for ac_file in $ac_files
3492 do
3493 case $ac_file in
3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3495 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3496 esac
3497 done
3498 rm -f $ac_rmfiles
3499
3500 if { { ac_try="$ac_link_default"
3501 case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 printf "%s\n" "$ac_try_echo"; } >&5
3507 (eval "$ac_link_default") 2>&5
3508 ac_status=$?
3509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }
3511 then :
3512 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3513 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3514 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3515 # so that the user can short-circuit this test for compilers unknown to
3516 # Autoconf.
3517 for ac_file in $ac_files ''
3518 do
3519 test -f "$ac_file" || continue
3520 case $ac_file in
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3522 ;;
3523 [ab].out )
3524 # We found the default executable, but exeext='' is most
3525 # certainly right.
3526 break;;
3527 *.* )
3528 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3529 then :; else
3530 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3531 fi
3532 # We set ac_cv_exeext here because the later test for it is not
3533 # safe: cross compilers may not add the suffix if given an '-o'
3534 # argument, so we may need to know it at that point already.
3535 # Even if this section looks crufty: it has the advantage of
3536 # actually working.
3537 break;;
3538 * )
3539 break;;
3540 esac
3541 done
3542 test "$ac_cv_exeext" = no && ac_cv_exeext=
3543
3544 else case e in #(
3545 e) ac_file='' ;;
3546 esac
3547 fi
3548 if test -z "$ac_file"
3549 then :
3550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 printf "%s\n" "no" >&6; }
3552 printf "%s\n" "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3554
3555 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3556 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3557 as_fn_error 77 "C compiler cannot create executables
3558 See 'config.log' for more details" "$LINENO" 5; }
3559 else case e in #(
3560 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3561 printf "%s\n" "yes" >&6; } ;;
3562 esac
3563 fi
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3565 printf %s "checking for C compiler default output file name... " >&6; }
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3567 printf "%s\n" "$ac_file" >&6; }
3568 ac_exeext=$ac_cv_exeext
3569
3570 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3571 ac_clean_files=$ac_clean_files_save
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3573 printf %s "checking for suffix of executables... " >&6; }
3574 if { { ac_try="$ac_link"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 printf "%s\n" "$ac_try_echo"; } >&5
3581 (eval "$ac_link") 2>&5
3582 ac_status=$?
3583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }
3585 then :
3586 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3587 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3588 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3589 # 'rm'.
3590 for ac_file in conftest.exe conftest conftest.*; do
3591 test -f "$ac_file" || continue
3592 case $ac_file in
3593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3594 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3595 break;;
3596 * ) break;;
3597 esac
3598 done
3599 else case e in #(
3600 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3601 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3602 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3603 See 'config.log' for more details" "$LINENO" 5; } ;;
3604 esac
3605 fi
3606 rm -f conftest conftest$ac_cv_exeext
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3608 printf "%s\n" "$ac_cv_exeext" >&6; }
3609
3610 rm -f conftest.$ac_ext
3611 EXEEXT=$ac_cv_exeext
3612 ac_exeext=$EXEEXT
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615 #include <stdio.h>
3616 int
3617 main (void)
3618 {
3619 FILE *f = fopen ("conftest.out", "w");
3620 if (!f)
3621 return 1;
3622 return ferror (f) || fclose (f) != 0;
3623
3624 ;
3625 return 0;
3626 }
3627 _ACEOF
3628 ac_clean_files="$ac_clean_files conftest.out"
3629 # Check that the compiler produces executables we can run. If not, either
3630 # the compiler is broken, or we cross compile.
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3632 printf %s "checking whether we are cross compiling... " >&6; }
3633 if test "$cross_compiling" != yes; then
3634 { { ac_try="$ac_link"
3635 case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638 esac
3639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640 printf "%s\n" "$ac_try_echo"; } >&5
3641 (eval "$ac_link") 2>&5
3642 ac_status=$?
3643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644 test $ac_status = 0; }
3645 if { ac_try='./conftest$ac_cv_exeext'
3646 { { case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3649 esac
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 printf "%s\n" "$ac_try_echo"; } >&5
3652 (eval "$ac_try") 2>&5
3653 ac_status=$?
3654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655 test $ac_status = 0; }; }; then
3656 cross_compiling=no
3657 else
3658 if test "$cross_compiling" = maybe; then
3659 cross_compiling=yes
3660 else
3661 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3662 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3663 as_fn_error 77 "cannot run C compiled programs.
3664 If you meant to cross compile, use '--host'.
3665 See 'config.log' for more details" "$LINENO" 5; }
3666 fi
3667 fi
3668 fi
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3670 printf "%s\n" "$cross_compiling" >&6; }
3671
3672 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3673 conftest.o conftest.obj conftest.out
3674 ac_clean_files=$ac_clean_files_save
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3676 printf %s "checking for suffix of object files... " >&6; }
3677 if test ${ac_cv_objext+y}
3678 then :
3679 printf %s "(cached) " >&6
3680 else case e in #(
3681 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683
3684 int
3685 main (void)
3686 {
3687
3688 ;
3689 return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.o conftest.obj
3693 if { { ac_try="$ac_compile"
3694 case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 printf "%s\n" "$ac_try_echo"; } >&5
3700 (eval "$ac_compile") 2>&5
3701 ac_status=$?
3702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }
3704 then :
3705 for ac_file in conftest.o conftest.obj conftest.*; do
3706 test -f "$ac_file" || continue;
3707 case $ac_file in
3708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3709 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3710 break;;
3711 esac
3712 done
3713 else case e in #(
3714 e) printf "%s\n" "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3716
3717 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3718 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3719 as_fn_error $? "cannot compute suffix of object files: cannot compile
3720 See 'config.log' for more details" "$LINENO" 5; } ;;
3721 esac
3722 fi
3723 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3724 esac
3725 fi
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3727 printf "%s\n" "$ac_cv_objext" >&6; }
3728 OBJEXT=$ac_cv_objext
3729 ac_objext=$OBJEXT
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3731 printf %s "checking whether the compiler supports GNU C... " >&6; }
3732 if test ${ac_cv_c_compiler_gnu+y}
3733 then :
3734 printf %s "(cached) " >&6
3735 else case e in #(
3736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738
3739 int
3740 main (void)
3741 {
3742 #ifndef __GNUC__
3743 choke me
3744 #endif
3745
3746 ;
3747 return 0;
3748 }
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"
3751 then :
3752 ac_compiler_gnu=yes
3753 else case e in #(
3754 e) ac_compiler_gnu=no ;;
3755 esac
3756 fi
3757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3759 ;;
3760 esac
3761 fi
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3763 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765
3766 if test $ac_compiler_gnu = yes; then
3767 GCC=yes
3768 else
3769 GCC=
3770 fi
3771 ac_test_CFLAGS=${CFLAGS+y}
3772 ac_save_CFLAGS=$CFLAGS
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3774 printf %s "checking whether $CC accepts -g... " >&6; }
3775 if test ${ac_cv_prog_cc_g+y}
3776 then :
3777 printf %s "(cached) " >&6
3778 else case e in #(
3779 e) ac_save_c_werror_flag=$ac_c_werror_flag
3780 ac_c_werror_flag=yes
3781 ac_cv_prog_cc_g=no
3782 CFLAGS="-g"
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3785
3786 int
3787 main (void)
3788 {
3789
3790 ;
3791 return 0;
3792 }
3793 _ACEOF
3794 if ac_fn_c_try_compile "$LINENO"
3795 then :
3796 ac_cv_prog_cc_g=yes
3797 else case e in #(
3798 e) CFLAGS=""
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3801
3802 int
3803 main (void)
3804 {
3805
3806 ;
3807 return 0;
3808 }
3809 _ACEOF
3810 if ac_fn_c_try_compile "$LINENO"
3811 then :
3812
3813 else case e in #(
3814 e) ac_c_werror_flag=$ac_save_c_werror_flag
3815 CFLAGS="-g"
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818
3819 int
3820 main (void)
3821 {
3822
3823 ;
3824 return 0;
3825 }
3826 _ACEOF
3827 if ac_fn_c_try_compile "$LINENO"
3828 then :
3829 ac_cv_prog_cc_g=yes
3830 fi
3831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3832 esac
3833 fi
3834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3835 esac
3836 fi
3837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3838 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3839 esac
3840 fi
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3842 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3843 if test $ac_test_CFLAGS; then
3844 CFLAGS=$ac_save_CFLAGS
3845 elif test $ac_cv_prog_cc_g = yes; then
3846 if test "$GCC" = yes; then
3847 CFLAGS="-g -O2"
3848 else
3849 CFLAGS="-g"
3850 fi
3851 else
3852 if test "$GCC" = yes; then
3853 CFLAGS="-O2"
3854 else
3855 CFLAGS=
3856 fi
3857 fi
3858 ac_prog_cc_stdc=no
3859 if test x$ac_prog_cc_stdc = xno
3860 then :
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3862 printf %s "checking for $CC option to enable C11 features... " >&6; }
3863 if test ${ac_cv_prog_cc_c11+y}
3864 then :
3865 printf %s "(cached) " >&6
3866 else case e in #(
3867 e) ac_cv_prog_cc_c11=no
3868 ac_save_CC=$CC
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3871 $ac_c_conftest_c11_program
3872 _ACEOF
3873 for ac_arg in '' -std=gnu11
3874 do
3875 CC="$ac_save_CC $ac_arg"
3876 if ac_fn_c_try_compile "$LINENO"
3877 then :
3878 ac_cv_prog_cc_c11=$ac_arg
3879 fi
3880 rm -f core conftest.err conftest.$ac_objext conftest.beam
3881 test "x$ac_cv_prog_cc_c11" != "xno" && break
3882 done
3883 rm -f conftest.$ac_ext
3884 CC=$ac_save_CC ;;
3885 esac
3886 fi
3887
3888 if test "x$ac_cv_prog_cc_c11" = xno
3889 then :
3890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3891 printf "%s\n" "unsupported" >&6; }
3892 else case e in #(
3893 e) if test "x$ac_cv_prog_cc_c11" = x
3894 then :
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3896 printf "%s\n" "none needed" >&6; }
3897 else case e in #(
3898 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3899 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3900 CC="$CC $ac_cv_prog_cc_c11" ;;
3901 esac
3902 fi
3903 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3904 ac_prog_cc_stdc=c11 ;;
3905 esac
3906 fi
3907 fi
3908 if test x$ac_prog_cc_stdc = xno
3909 then :
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3911 printf %s "checking for $CC option to enable C99 features... " >&6; }
3912 if test ${ac_cv_prog_cc_c99+y}
3913 then :
3914 printf %s "(cached) " >&6
3915 else case e in #(
3916 e) ac_cv_prog_cc_c99=no
3917 ac_save_CC=$CC
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920 $ac_c_conftest_c99_program
3921 _ACEOF
3922 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3923 do
3924 CC="$ac_save_CC $ac_arg"
3925 if ac_fn_c_try_compile "$LINENO"
3926 then :
3927 ac_cv_prog_cc_c99=$ac_arg
3928 fi
3929 rm -f core conftest.err conftest.$ac_objext conftest.beam
3930 test "x$ac_cv_prog_cc_c99" != "xno" && break
3931 done
3932 rm -f conftest.$ac_ext
3933 CC=$ac_save_CC ;;
3934 esac
3935 fi
3936
3937 if test "x$ac_cv_prog_cc_c99" = xno
3938 then :
3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3940 printf "%s\n" "unsupported" >&6; }
3941 else case e in #(
3942 e) if test "x$ac_cv_prog_cc_c99" = x
3943 then :
3944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3945 printf "%s\n" "none needed" >&6; }
3946 else case e in #(
3947 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3948 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3949 CC="$CC $ac_cv_prog_cc_c99" ;;
3950 esac
3951 fi
3952 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3953 ac_prog_cc_stdc=c99 ;;
3954 esac
3955 fi
3956 fi
3957 if test x$ac_prog_cc_stdc = xno
3958 then :
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3960 printf %s "checking for $CC option to enable C89 features... " >&6; }
3961 if test ${ac_cv_prog_cc_c89+y}
3962 then :
3963 printf %s "(cached) " >&6
3964 else case e in #(
3965 e) ac_cv_prog_cc_c89=no
3966 ac_save_CC=$CC
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3969 $ac_c_conftest_c89_program
3970 _ACEOF
3971 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3972 do
3973 CC="$ac_save_CC $ac_arg"
3974 if ac_fn_c_try_compile "$LINENO"
3975 then :
3976 ac_cv_prog_cc_c89=$ac_arg
3977 fi
3978 rm -f core conftest.err conftest.$ac_objext conftest.beam
3979 test "x$ac_cv_prog_cc_c89" != "xno" && break
3980 done
3981 rm -f conftest.$ac_ext
3982 CC=$ac_save_CC ;;
3983 esac
3984 fi
3985
3986 if test "x$ac_cv_prog_cc_c89" = xno
3987 then :
3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3989 printf "%s\n" "unsupported" >&6; }
3990 else case e in #(
3991 e) if test "x$ac_cv_prog_cc_c89" = x
3992 then :
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3994 printf "%s\n" "none needed" >&6; }
3995 else case e in #(
3996 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3997 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3998 CC="$CC $ac_cv_prog_cc_c89" ;;
3999 esac
4000 fi
4001 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4002 ac_prog_cc_stdc=c89 ;;
4003 esac
4004 fi
4005 fi
4006
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012
4013
4014
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
4016 printf %s "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
4017
4018 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
4020 printf "%s\n" "loading" >&6; }
4021 . "${TCL_BIN_DIR}/tclConfig.sh"
4022 else
4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
4024 printf "%s\n" "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
4025 fi
4026
4027 # If the TCL_BIN_DIR is the build directory (not the install directory),
4028 # then set the common variable name to the value of the build variables.
4029 # For example, the variable TCL_LIB_SPEC will be set to the value
4030 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
4031 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
4032 # installed and uninstalled version of Tcl.
4033 if test -f "${TCL_BIN_DIR}/Makefile" ; then
4034 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
4035 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
4036 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
4037 elif test "`uname -s`" = "Darwin"; then
4038 # If Tcl was built as a framework, attempt to use the libraries
4039 # from the framework at the given location so that linking works
4040 # against Tcl.framework installed in an arbitrary location.
4041 case ${TCL_DEFS} in
4042 *TCL_FRAMEWORK*)
4043 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
4044 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
4045 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
4046 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
4047 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
4048 break
4049 fi
4050 done
4051 fi
4052 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
4053 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
4054 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
4055 fi
4056 ;;
4057 esac
4058 fi
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking platform" >&5
4074 printf %s "checking platform... " >&6; }
4075 hold_cc=$CC; CC="$TCL_CC"
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4078
4079 int
4080 main (void)
4081 {
4082
4083 #ifdef _WIN32
4084 #error win32
4085 #endif
4086
4087 ;
4088 return 0;
4089 }
4090 _ACEOF
4091 if ac_fn_c_try_compile "$LINENO"
4092 then :
4093
4094 # first test we've already retrieved platform (cross-compile), fallback to unix otherwise:
4095 TEA_PLATFORM="${TEA_PLATFORM-unix}"
4096 CYGPATH=echo
4097
4098 else case e in #(
4099 e)
4100 TEA_PLATFORM="windows"
4101 # Extract the first word of "cygpath", so it can be a program name with args.
4102 set dummy cygpath; ac_word=$2
4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104 printf %s "checking for $ac_word... " >&6; }
4105 if test ${ac_cv_prog_CYGPATH+y}
4106 then :
4107 printf %s "(cached) " >&6
4108 else case e in #(
4109 e) if test -n "$CYGPATH"; then
4110 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
4111 else
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH
4114 do
4115 IFS=$as_save_IFS
4116 case $as_dir in #(((
4117 '') as_dir=./ ;;
4118 */) ;;
4119 *) as_dir=$as_dir/ ;;
4120 esac
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4123 ac_cv_prog_CYGPATH="cygpath -m"
4124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4125 break 2
4126 fi
4127 done
4128 done
4129 IFS=$as_save_IFS
4130
4131 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
4132 fi ;;
4133 esac
4134 fi
4135 CYGPATH=$ac_cv_prog_CYGPATH
4136 if test -n "$CYGPATH"; then
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
4138 printf "%s\n" "$CYGPATH" >&6; }
4139 else
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 printf "%s\n" "no" >&6; }
4142 fi
4143
4144
4145 ;;
4146 esac
4147 fi
4148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4149 CC=$hold_cc
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5
4151 printf "%s\n" "$TEA_PLATFORM" >&6; }
4152
4153 # The BUILD_$pkg is to define the correct extern storage class
4154 # handling when making this package
4155
4156 printf "%s\n" "#define BUILD_${PACKAGE_NAME} /**/" >>confdefs.h
4157
4158 # Do this here as we have fully defined TEA_PLATFORM now
4159 if test "${TEA_PLATFORM}" = "windows" ; then
4160 EXEEXT=".exe"
4161 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
4162 fi
4163
4164 # TEA specific:
4165
4166
4167
4168
4169
4170
4171
4172
4173 # Checks for programs.
4174
4175 # Checks for libraries.
4176
4177 # Checks for header files.
4178 ac_header= ac_cache=
4179 for ac_item in $ac_header_c_list
4180 do
4181 if test $ac_cache; then
4182 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4183 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4184 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4185 fi
4186 ac_header= ac_cache=
4187 elif test $ac_header; then
4188 ac_cache=$ac_item
4189 else
4190 ac_header=$ac_item
4191 fi
4192 done
4193
4194
4195
4196
4197
4198
4199
4200
4201 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4202 then :
4203
4204 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4205
4206 fi
4207 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4208 if test "x$ac_cv_header_fcntl_h" = xyes
4209 then :
4210 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
4211
4212 fi
4213 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4214 if test "x$ac_cv_header_unistd_h" = xyes
4215 then :
4216 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
4217
4218 fi
4219 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4220 if test "x$ac_cv_header_errno_h" = xyes
4221 then :
4222 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
4223
4224 fi
4225 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4226 if test "x$ac_cv_header_limits_h" = xyes
4227 then :
4228 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
4229
4230 fi
4231 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4232 if test "x$ac_cv_header_sys_types_h" = xyes
4233 then :
4234 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
4235
4236 fi
4237 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
4238 if test "x$ac_cv_header_pwd_h" = xyes
4239 then :
4240 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
4241
4242 fi
4243 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
4244 if test "x$ac_cv_header_grp_h" = xyes
4245 then :
4246 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
4247
4248 fi
4249 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4250 if test "x$ac_cv_header_stdlib_h" = xyes
4251 then :
4252 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
4253
4254 fi
4255 ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4256 if test "x$ac_cv_header_stdio_h" = xyes
4257 then :
4258 printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
4259
4260 fi
4261 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
4262 if test "x$ac_cv_header_dirent_h" = xyes
4263 then :
4264 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
4265
4266 fi
4267 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
4268 if test "x$ac_cv_header_time_h" = xyes
4269 then :
4270 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
4271
4272 fi
4273
4274
4275 # Checks for typedefs, structures, and compiler characteristics.
4276 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4277 if test "x$ac_cv_type_ssize_t" = xyes
4278 then :
4279
4280 else case e in #(
4281 e)
4282 printf "%s\n" "#define ssize_t int" >>confdefs.h
4283 ;;
4284 esac
4285 fi
4286
4287
4288 # Checks for library functions.
4289
4290
4291
4292 # Make sure we can run config.sub.
4293 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4294 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4295
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4297 printf %s "checking build system type... " >&6; }
4298 if test ${ac_cv_build+y}
4299 then :
4300 printf %s "(cached) " >&6
4301 else case e in #(
4302 e) ac_build_alias=$build_alias
4303 test "x$ac_build_alias" = x &&
4304 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4305 test "x$ac_build_alias" = x &&
4306 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4307 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4308 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4309 ;;
4310 esac
4311 fi
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4313 printf "%s\n" "$ac_cv_build" >&6; }
4314 case $ac_cv_build in
4315 *-*-*) ;;
4316 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4317 esac
4318 build=$ac_cv_build
4319 ac_save_IFS=$IFS; IFS='-'
4320 set x $ac_cv_build
4321 shift
4322 build_cpu=$1
4323 build_vendor=$2
4324 shift; shift
4325 # Remember, the first character of IFS is used to create $*,
4326 # except with old shells:
4327 build_os=$*
4328 IFS=$ac_save_IFS
4329 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4330
4331
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4333 printf %s "checking host system type... " >&6; }
4334 if test ${ac_cv_host+y}
4335 then :
4336 printf %s "(cached) " >&6
4337 else case e in #(
4338 e) if test "x$host_alias" = x; then
4339 ac_cv_host=$ac_cv_build
4340 else
4341 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4342 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4343 fi
4344 ;;
4345 esac
4346 fi
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4348 printf "%s\n" "$ac_cv_host" >&6; }
4349 case $ac_cv_host in
4350 *-*-*) ;;
4351 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4352 esac
4353 host=$ac_cv_host
4354 ac_save_IFS=$IFS; IFS='-'
4355 set x $ac_cv_host
4356 shift
4357 host_cpu=$1
4358 host_vendor=$2
4359 shift; shift
4360 # Remember, the first character of IFS is used to create $*,
4361 # except with old shells:
4362 host_os=$*
4363 IFS=$ac_save_IFS
4364 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4365
4366
4367 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
4368 if test "x$ac_cv_type_uid_t" = xyes
4369 then :
4370
4371 else case e in #(
4372 e)
4373 printf "%s\n" "#define uid_t int" >>confdefs.h
4374 ;;
4375 esac
4376 fi
4377
4378 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
4379 if test "x$ac_cv_type_gid_t" = xyes
4380 then :
4381
4382 else case e in #(
4383 e)
4384 printf "%s\n" "#define gid_t int" >>confdefs.h
4385 ;;
4386 esac
4387 fi
4388
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
4390 printf %s "checking type of array argument to getgroups... " >&6; }
4391 if test ${ac_cv_type_getgroups+y}
4392 then :
4393 printf %s "(cached) " >&6
4394 else case e in #(
4395 e) # If AC_TYPE_UID_T says there isn't any gid_t typedef, then we can skip
4396 # everything below.
4397 if test $ac_cv_type_gid_t = no
4398 then :
4399 ac_cv_type_getgroups=int
4400 else case e in #(
4401 e) # Test programs below rely on strict type checking of extern declarations:
4402 # 'extern int getgroups(int, int *); extern int getgroups(int, pid_t *);'
4403 # is valid in C89 if and only if pid_t is a typedef for int. Unlike
4404 # anything involving either an assignment or a function call, compilers
4405 # tend to make this kind of type mismatch a hard error, not just an
4406 # "incompatible pointer types" warning.
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4409 $ac_includes_default
4410 extern int getgroups(int, gid_t *);
4411 int
4412 main (void)
4413 {
4414 return !(getgroups(0, 0) >= 0);
4415 ;
4416 return 0;
4417 }
4418 _ACEOF
4419 if ac_fn_c_try_compile "$LINENO"
4420 then :
4421 ac_getgroups_gidarray=yes
4422 else case e in #(
4423 e) ac_getgroups_gidarray=no ;;
4424 esac
4425 fi
4426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429 $ac_includes_default
4430 extern int getgroups(int, int *);
4431 int
4432 main (void)
4433 {
4434 return !(getgroups(0, 0) >= 0);
4435 ;
4436 return 0;
4437 }
4438 _ACEOF
4439 if ac_fn_c_try_compile "$LINENO"
4440 then :
4441 ac_getgroups_intarray=yes
4442 else case e in #(
4443 e) ac_getgroups_intarray=no ;;
4444 esac
4445 fi
4446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4447
4448 case int:$ac_getgroups_intarray,gid:$ac_getgroups_gidarray in #(
4449 int:yes,gid:no) :
4450 ac_cv_type_getgroups=int ;; #(
4451 int:no,gid:yes) :
4452 ac_cv_type_getgroups=gid_t ;; #(
4453 int:yes,gid:yes) :
4454
4455 # Both programs compiled - this means *either* that getgroups
4456 # was declared with no prototype, in which case we should use int,
4457 # or that it was declared prototyped but gid_t is a typedef for int,
4458 # in which case we should use gid_t. Distinguish the two cases
4459 # by testing if the compiler catches a blatantly incorrect function
4460 # signature for getgroups.
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4463 $ac_includes_default
4464 extern int getgroups(int, float);
4465 int
4466 main (void)
4467 {
4468 return !(getgroups(0, 0) >= 0);
4469 ;
4470 return 0;
4471 }
4472 _ACEOF
4473 if ac_fn_c_try_compile "$LINENO"
4474 then :
4475
4476 # Compiler did not catch incorrect argument list;
4477 # getgroups is unprototyped.
4478 ac_cv_type_getgroups=int
4479
4480 else case e in #(
4481 e)
4482 # Compiler caught incorrect argument list;
4483 # gid_t is a typedef for int.
4484 ac_cv_type_getgroups=gid_t
4485 ;;
4486 esac
4487 fi
4488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4489 ;; #(
4490 *) :
4491
4492 # Both programs failed to compile - this probably means getgroups
4493 # wasn't declared at all. Use 'int', as this is probably a very
4494 # old system where the type _would have been_ int.
4495 ac_cv_type_getgroups=int
4496 ;;
4497 esac
4498 ;;
4499 esac
4500 fi
4501 ;;
4502 esac
4503 fi
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
4505 printf "%s\n" "$ac_cv_type_getgroups" >&6; }
4506 printf "%s\n" "#define GETGROUPS_T $ac_cv_type_getgroups" >>confdefs.h
4507
4508
4509
4510 # On older systems getgroups might be in -lbsd.
4511 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
4512 ac_save_LIBS=$LIBS
4513 LIBS=
4514 GETGROUPS_LIB=
4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getgroups" >&5
4516 printf %s "checking for library containing getgroups... " >&6; }
4517 if test ${ac_cv_search_getgroups+y}
4518 then :
4519 printf %s "(cached) " >&6
4520 else case e in #(
4521 e) ac_func_search_save_LIBS=$LIBS
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524
4525 /* Override any GCC internal prototype to avoid an error.
4526 Use char because int might match the return type of a GCC
4527 builtin and then its argument prototype would still apply.
4528 The 'extern "C"' is for builds by C++ compilers;
4529 although this is not generally supported in C code supporting it here
4530 has little cost and some practical benefit (sr 110532). */
4531 #ifdef __cplusplus
4532 extern "C"
4533 #endif
4534 char getgroups (void);
4535 int
4536 main (void)
4537 {
4538 return getgroups ();
4539 ;
4540 return 0;
4541 }
4542 _ACEOF
4543 for ac_lib in '' bsd
4544 do
4545 if test -z "$ac_lib"; then
4546 ac_res="none required"
4547 else
4548 ac_res=-l$ac_lib
4549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4550 fi
4551 if ac_fn_c_try_link "$LINENO"
4552 then :
4553 ac_cv_search_getgroups=$ac_res
4554 fi
4555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4556 conftest$ac_exeext
4557 if test ${ac_cv_search_getgroups+y}
4558 then :
4559 break
4560 fi
4561 done
4562 if test ${ac_cv_search_getgroups+y}
4563 then :
4564
4565 else case e in #(
4566 e) ac_cv_search_getgroups=no ;;
4567 esac
4568 fi
4569 rm conftest.$ac_ext
4570 LIBS=$ac_func_search_save_LIBS ;;
4571 esac
4572 fi
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getgroups" >&5
4574 printf "%s\n" "$ac_cv_search_getgroups" >&6; }
4575 ac_res=$ac_cv_search_getgroups
4576 if test "$ac_res" != no
4577 then :
4578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4579 test "$ac_res" = "none required" || GETGROUPS_LIB="$ac_res"
4580 ac_cv_func_getgroups=yes
4581 else case e in #(
4582 e) ac_cv_func_getgroups=no ;;
4583 esac
4584 fi
4585
4586 LIBS=$ac_save_LIBS
4587
4588
4589 # Known severe bugs in getgroups on particular systems.
4590 # - On Ultrix 4.3 and NextSTEP 3.2, getgroups (0, 0) is reported to
4591 # fail, rather than returning the number of supplementary groups as
4592 # it ought to. We do not know the exact range of releases affected
4593 # in either case.
4594 # We currently reject all versions of the systems with known bugs, and
4595 # no other systems. Please send corrections to [email protected].
4596 if test $ac_cv_func_getgroups = yes; then
4597 # This AC_CACHE_CHECK exists so that one may override an incorrect
4598 # guess by setting ac_cv_func_getgroups_works in a config.site file.
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
4600 printf %s "checking for working getgroups... " >&6; }
4601 if test ${ac_cv_func_getgroups_works+y}
4602 then :
4603 printf %s "(cached) " >&6
4604 else case e in #(
4605 e) case $host_os in #(
4606 ultrix* | nextstep*) :
4607 ac_cv_func_getgroups_works=no # getgroups(0,0) fails
4608 ;; #(
4609 *) :
4610 ac_cv_func_getgroups_works=yes ;;
4611 esac ;;
4612 esac
4613 fi
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
4615 printf "%s\n" "$ac_cv_func_getgroups_works" >&6; }
4616 else
4617 ac_cv_func_getgroups_works=no
4618 fi
4619 if test $ac_cv_func_getgroups_works = yes; then
4620
4621 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
4622
4623 fi
4624
4625
4626 # TEA-specific setup
4627
4628 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
4629 # in this macro, they need to go into TEA_SETUP_COMPILER instead.
4630
4631 ac_ext=c
4632 ac_cpp='$CPP $CPPFLAGS'
4633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4638 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 printf %s "checking for $ac_word... " >&6; }
4641 if test ${ac_cv_prog_CC+y}
4642 then :
4643 printf %s "(cached) " >&6
4644 else case e in #(
4645 e) if test -n "$CC"; then
4646 ac_cv_prog_CC="$CC" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4650 do
4651 IFS=$as_save_IFS
4652 case $as_dir in #(((
4653 '') as_dir=./ ;;
4654 */) ;;
4655 *) as_dir=$as_dir/ ;;
4656 esac
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4659 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667 fi ;;
4668 esac
4669 fi
4670 CC=$ac_cv_prog_CC
4671 if test -n "$CC"; then
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4673 printf "%s\n" "$CC" >&6; }
4674 else
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 printf "%s\n" "no" >&6; }
4677 fi
4678
4679
4680 fi
4681 if test -z "$ac_cv_prog_CC"; then
4682 ac_ct_CC=$CC
4683 # Extract the first word of "gcc", so it can be a program name with args.
4684 set dummy gcc; ac_word=$2
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 printf %s "checking for $ac_word... " >&6; }
4687 if test ${ac_cv_prog_ac_ct_CC+y}
4688 then :
4689 printf %s "(cached) " >&6
4690 else case e in #(
4691 e) if test -n "$ac_ct_CC"; then
4692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697 IFS=$as_save_IFS
4698 case $as_dir in #(((
4699 '') as_dir=./ ;;
4700 */) ;;
4701 *) as_dir=$as_dir/ ;;
4702 esac
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4705 ac_cv_prog_ac_ct_CC="gcc"
4706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709 done
4710 done
4711 IFS=$as_save_IFS
4712
4713 fi ;;
4714 esac
4715 fi
4716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4717 if test -n "$ac_ct_CC"; then
4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4719 printf "%s\n" "$ac_ct_CC" >&6; }
4720 else
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 printf "%s\n" "no" >&6; }
4723 fi
4724
4725 if test "x$ac_ct_CC" = x; then
4726 CC=""
4727 else
4728 case $cross_compiling:$ac_tool_warned in
4729 yes:)
4730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4731 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4732 ac_tool_warned=yes ;;
4733 esac
4734 CC=$ac_ct_CC
4735 fi
4736 else
4737 CC="$ac_cv_prog_CC"
4738 fi
4739
4740 if test -z "$CC"; then
4741 if test -n "$ac_tool_prefix"; then
4742 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4743 set dummy ${ac_tool_prefix}cc; ac_word=$2
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 printf %s "checking for $ac_word... " >&6; }
4746 if test ${ac_cv_prog_CC+y}
4747 then :
4748 printf %s "(cached) " >&6
4749 else case e in #(
4750 e) if test -n "$CC"; then
4751 ac_cv_prog_CC="$CC" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756 IFS=$as_save_IFS
4757 case $as_dir in #(((
4758 '') as_dir=./ ;;
4759 */) ;;
4760 *) as_dir=$as_dir/ ;;
4761 esac
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4764 ac_cv_prog_CC="${ac_tool_prefix}cc"
4765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4766 break 2
4767 fi
4768 done
4769 done
4770 IFS=$as_save_IFS
4771
4772 fi ;;
4773 esac
4774 fi
4775 CC=$ac_cv_prog_CC
4776 if test -n "$CC"; then
4777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4778 printf "%s\n" "$CC" >&6; }
4779 else
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 printf "%s\n" "no" >&6; }
4782 fi
4783
4784
4785 fi
4786 fi
4787 if test -z "$CC"; then
4788 # Extract the first word of "cc", so it can be a program name with args.
4789 set dummy cc; ac_word=$2
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4791 printf %s "checking for $ac_word... " >&6; }
4792 if test ${ac_cv_prog_CC+y}
4793 then :
4794 printf %s "(cached) " >&6
4795 else case e in #(
4796 e) if test -n "$CC"; then
4797 ac_cv_prog_CC="$CC" # Let the user override the test.
4798 else
4799 ac_prog_rejected=no
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 case $as_dir in #(((
4805 '') as_dir=./ ;;
4806 */) ;;
4807 *) as_dir=$as_dir/ ;;
4808 esac
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4811 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4812 ac_prog_rejected=yes
4813 continue
4814 fi
4815 ac_cv_prog_CC="cc"
4816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4817 break 2
4818 fi
4819 done
4820 done
4821 IFS=$as_save_IFS
4822
4823 if test $ac_prog_rejected = yes; then
4824 # We found a bogon in the path, so make sure we never use it.
4825 set dummy $ac_cv_prog_CC
4826 shift
4827 if test $# != 0; then
4828 # We chose a different compiler from the bogus one.
4829 # However, it has the same basename, so the bogon will be chosen
4830 # first if we set CC to just the basename; use the full file name.
4831 shift
4832 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4833 fi
4834 fi
4835 fi ;;
4836 esac
4837 fi
4838 CC=$ac_cv_prog_CC
4839 if test -n "$CC"; then
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4841 printf "%s\n" "$CC" >&6; }
4842 else
4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 printf "%s\n" "no" >&6; }
4845 fi
4846
4847
4848 fi
4849 if test -z "$CC"; then
4850 if test -n "$ac_tool_prefix"; then
4851 for ac_prog in cl.exe
4852 do
4853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 printf %s "checking for $ac_word... " >&6; }
4857 if test ${ac_cv_prog_CC+y}
4858 then :
4859 printf %s "(cached) " >&6
4860 else case e in #(
4861 e) if test -n "$CC"; then
4862 ac_cv_prog_CC="$CC" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867 IFS=$as_save_IFS
4868 case $as_dir in #(((
4869 '') as_dir=./ ;;
4870 */) ;;
4871 *) as_dir=$as_dir/ ;;
4872 esac
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879 done
4880 done
4881 IFS=$as_save_IFS
4882
4883 fi ;;
4884 esac
4885 fi
4886 CC=$ac_cv_prog_CC
4887 if test -n "$CC"; then
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4889 printf "%s\n" "$CC" >&6; }
4890 else
4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 printf "%s\n" "no" >&6; }
4893 fi
4894
4895
4896 test -n "$CC" && break
4897 done
4898 fi
4899 if test -z "$CC"; then
4900 ac_ct_CC=$CC
4901 for ac_prog in cl.exe
4902 do
4903 # Extract the first word of "$ac_prog", so it can be a program name with args.
4904 set dummy $ac_prog; ac_word=$2
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 printf %s "checking for $ac_word... " >&6; }
4907 if test ${ac_cv_prog_ac_ct_CC+y}
4908 then :
4909 printf %s "(cached) " >&6
4910 else case e in #(
4911 e) if test -n "$ac_ct_CC"; then
4912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917 IFS=$as_save_IFS
4918 case $as_dir in #(((
4919 '') as_dir=./ ;;
4920 */) ;;
4921 *) as_dir=$as_dir/ ;;
4922 esac
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4925 ac_cv_prog_ac_ct_CC="$ac_prog"
4926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4927 break 2
4928 fi
4929 done
4930 done
4931 IFS=$as_save_IFS
4932
4933 fi ;;
4934 esac
4935 fi
4936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4937 if test -n "$ac_ct_CC"; then
4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4939 printf "%s\n" "$ac_ct_CC" >&6; }
4940 else
4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 printf "%s\n" "no" >&6; }
4943 fi
4944
4945
4946 test -n "$ac_ct_CC" && break
4947 done
4948
4949 if test "x$ac_ct_CC" = x; then
4950 CC=""
4951 else
4952 case $cross_compiling:$ac_tool_warned in
4953 yes:)
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4955 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4956 ac_tool_warned=yes ;;
4957 esac
4958 CC=$ac_ct_CC
4959 fi
4960 fi
4961
4962 fi
4963 if test -z "$CC"; then
4964 if test -n "$ac_tool_prefix"; then
4965 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4966 set dummy ${ac_tool_prefix}clang; ac_word=$2
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 printf %s "checking for $ac_word... " >&6; }
4969 if test ${ac_cv_prog_CC+y}
4970 then :
4971 printf %s "(cached) " >&6
4972 else case e in #(
4973 e) if test -n "$CC"; then
4974 ac_cv_prog_CC="$CC" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979 IFS=$as_save_IFS
4980 case $as_dir in #(((
4981 '') as_dir=./ ;;
4982 */) ;;
4983 *) as_dir=$as_dir/ ;;
4984 esac
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_CC="${ac_tool_prefix}clang"
4988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4989 break 2
4990 fi
4991 done
4992 done
4993 IFS=$as_save_IFS
4994
4995 fi ;;
4996 esac
4997 fi
4998 CC=$ac_cv_prog_CC
4999 if test -n "$CC"; then
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5001 printf "%s\n" "$CC" >&6; }
5002 else
5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 printf "%s\n" "no" >&6; }
5005 fi
5006
5007
5008 fi
5009 if test -z "$ac_cv_prog_CC"; then
5010 ac_ct_CC=$CC
5011 # Extract the first word of "clang", so it can be a program name with args.
5012 set dummy clang; ac_word=$2
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 printf %s "checking for $ac_word... " >&6; }
5015 if test ${ac_cv_prog_ac_ct_CC+y}
5016 then :
5017 printf %s "(cached) " >&6
5018 else case e in #(
5019 e) if test -n "$ac_ct_CC"; then
5020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025 IFS=$as_save_IFS
5026 case $as_dir in #(((
5027 '') as_dir=./ ;;
5028 */) ;;
5029 *) as_dir=$as_dir/ ;;
5030 esac
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5033 ac_cv_prog_ac_ct_CC="clang"
5034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5035 break 2
5036 fi
5037 done
5038 done
5039 IFS=$as_save_IFS
5040
5041 fi ;;
5042 esac
5043 fi
5044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5045 if test -n "$ac_ct_CC"; then
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5047 printf "%s\n" "$ac_ct_CC" >&6; }
5048 else
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 printf "%s\n" "no" >&6; }
5051 fi
5052
5053 if test "x$ac_ct_CC" = x; then
5054 CC=""
5055 else
5056 case $cross_compiling:$ac_tool_warned in
5057 yes:)
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5059 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5060 ac_tool_warned=yes ;;
5061 esac
5062 CC=$ac_ct_CC
5063 fi
5064 else
5065 CC="$ac_cv_prog_CC"
5066 fi
5067
5068 fi
5069
5070
5071 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5072 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5073 as_fn_error $? "no acceptable C compiler found in \$PATH
5074 See 'config.log' for more details" "$LINENO" 5; }
5075
5076 # Provide some information about the compiler.
5077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5078 set X $ac_compile
5079 ac_compiler=$2
5080 for ac_option in --version -v -V -qversion -version; do
5081 { { ac_try="$ac_compiler $ac_option >&5"
5082 case "(($ac_try" in
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5085 esac
5086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5087 printf "%s\n" "$ac_try_echo"; } >&5
5088 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5089 ac_status=$?
5090 if test -s conftest.err; then
5091 sed '10a\
5092 ... rest of stderr output deleted ...
5093 10q' conftest.err >conftest.er1
5094 cat conftest.er1 >&5
5095 fi
5096 rm -f conftest.er1 conftest.err
5097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5098 test $ac_status = 0; }
5099 done
5100
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5102 printf %s "checking whether the compiler supports GNU C... " >&6; }
5103 if test ${ac_cv_c_compiler_gnu+y}
5104 then :
5105 printf %s "(cached) " >&6
5106 else case e in #(
5107 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h. */
5109
5110 int
5111 main (void)
5112 {
5113 #ifndef __GNUC__
5114 choke me
5115 #endif
5116
5117 ;
5118 return 0;
5119 }
5120 _ACEOF
5121 if ac_fn_c_try_compile "$LINENO"
5122 then :
5123 ac_compiler_gnu=yes
5124 else case e in #(
5125 e) ac_compiler_gnu=no ;;
5126 esac
5127 fi
5128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5129 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5130 ;;
5131 esac
5132 fi
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5134 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136
5137 if test $ac_compiler_gnu = yes; then
5138 GCC=yes
5139 else
5140 GCC=
5141 fi
5142 ac_test_CFLAGS=${CFLAGS+y}
5143 ac_save_CFLAGS=$CFLAGS
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5145 printf %s "checking whether $CC accepts -g... " >&6; }
5146 if test ${ac_cv_prog_cc_g+y}
5147 then :
5148 printf %s "(cached) " >&6
5149 else case e in #(
5150 e) ac_save_c_werror_flag=$ac_c_werror_flag
5151 ac_c_werror_flag=yes
5152 ac_cv_prog_cc_g=no
5153 CFLAGS="-g"
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5156
5157 int
5158 main (void)
5159 {
5160
5161 ;
5162 return 0;
5163 }
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"
5166 then :
5167 ac_cv_prog_cc_g=yes
5168 else case e in #(
5169 e) CFLAGS=""
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172
5173 int
5174 main (void)
5175 {
5176
5177 ;
5178 return 0;
5179 }
5180 _ACEOF
5181 if ac_fn_c_try_compile "$LINENO"
5182 then :
5183
5184 else case e in #(
5185 e) ac_c_werror_flag=$ac_save_c_werror_flag
5186 CFLAGS="-g"
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189
5190 int
5191 main (void)
5192 {
5193
5194 ;
5195 return 0;
5196 }
5197 _ACEOF
5198 if ac_fn_c_try_compile "$LINENO"
5199 then :
5200 ac_cv_prog_cc_g=yes
5201 fi
5202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5203 esac
5204 fi
5205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5206 esac
5207 fi
5208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5209 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5210 esac
5211 fi
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5213 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5214 if test $ac_test_CFLAGS; then
5215 CFLAGS=$ac_save_CFLAGS
5216 elif test $ac_cv_prog_cc_g = yes; then
5217 if test "$GCC" = yes; then
5218 CFLAGS="-g -O2"
5219 else
5220 CFLAGS="-g"
5221 fi
5222 else
5223 if test "$GCC" = yes; then
5224 CFLAGS="-O2"
5225 else
5226 CFLAGS=
5227 fi
5228 fi
5229 ac_prog_cc_stdc=no
5230 if test x$ac_prog_cc_stdc = xno
5231 then :
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5233 printf %s "checking for $CC option to enable C11 features... " >&6; }
5234 if test ${ac_cv_prog_cc_c11+y}
5235 then :
5236 printf %s "(cached) " >&6
5237 else case e in #(
5238 e) ac_cv_prog_cc_c11=no
5239 ac_save_CC=$CC
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5242 $ac_c_conftest_c11_program
5243 _ACEOF
5244 for ac_arg in '' -std=gnu11
5245 do
5246 CC="$ac_save_CC $ac_arg"
5247 if ac_fn_c_try_compile "$LINENO"
5248 then :
5249 ac_cv_prog_cc_c11=$ac_arg
5250 fi
5251 rm -f core conftest.err conftest.$ac_objext conftest.beam
5252 test "x$ac_cv_prog_cc_c11" != "xno" && break
5253 done
5254 rm -f conftest.$ac_ext
5255 CC=$ac_save_CC ;;
5256 esac
5257 fi
5258
5259 if test "x$ac_cv_prog_cc_c11" = xno
5260 then :
5261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5262 printf "%s\n" "unsupported" >&6; }
5263 else case e in #(
5264 e) if test "x$ac_cv_prog_cc_c11" = x
5265 then :
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5267 printf "%s\n" "none needed" >&6; }
5268 else case e in #(
5269 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5270 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5271 CC="$CC $ac_cv_prog_cc_c11" ;;
5272 esac
5273 fi
5274 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5275 ac_prog_cc_stdc=c11 ;;
5276 esac
5277 fi
5278 fi
5279 if test x$ac_prog_cc_stdc = xno
5280 then :
5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5282 printf %s "checking for $CC option to enable C99 features... " >&6; }
5283 if test ${ac_cv_prog_cc_c99+y}
5284 then :
5285 printf %s "(cached) " >&6
5286 else case e in #(
5287 e) ac_cv_prog_cc_c99=no
5288 ac_save_CC=$CC
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5291 $ac_c_conftest_c99_program
5292 _ACEOF
5293 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5294 do
5295 CC="$ac_save_CC $ac_arg"
5296 if ac_fn_c_try_compile "$LINENO"
5297 then :
5298 ac_cv_prog_cc_c99=$ac_arg
5299 fi
5300 rm -f core conftest.err conftest.$ac_objext conftest.beam
5301 test "x$ac_cv_prog_cc_c99" != "xno" && break
5302 done
5303 rm -f conftest.$ac_ext
5304 CC=$ac_save_CC ;;
5305 esac
5306 fi
5307
5308 if test "x$ac_cv_prog_cc_c99" = xno
5309 then :
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5311 printf "%s\n" "unsupported" >&6; }
5312 else case e in #(
5313 e) if test "x$ac_cv_prog_cc_c99" = x
5314 then :
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5316 printf "%s\n" "none needed" >&6; }
5317 else case e in #(
5318 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5319 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5320 CC="$CC $ac_cv_prog_cc_c99" ;;
5321 esac
5322 fi
5323 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5324 ac_prog_cc_stdc=c99 ;;
5325 esac
5326 fi
5327 fi
5328 if test x$ac_prog_cc_stdc = xno
5329 then :
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5331 printf %s "checking for $CC option to enable C89 features... " >&6; }
5332 if test ${ac_cv_prog_cc_c89+y}
5333 then :
5334 printf %s "(cached) " >&6
5335 else case e in #(
5336 e) ac_cv_prog_cc_c89=no
5337 ac_save_CC=$CC
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5340 $ac_c_conftest_c89_program
5341 _ACEOF
5342 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5343 do
5344 CC="$ac_save_CC $ac_arg"
5345 if ac_fn_c_try_compile "$LINENO"
5346 then :
5347 ac_cv_prog_cc_c89=$ac_arg
5348 fi
5349 rm -f core conftest.err conftest.$ac_objext conftest.beam
5350 test "x$ac_cv_prog_cc_c89" != "xno" && break
5351 done
5352 rm -f conftest.$ac_ext
5353 CC=$ac_save_CC ;;
5354 esac
5355 fi
5356
5357 if test "x$ac_cv_prog_cc_c89" = xno
5358 then :
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5360 printf "%s\n" "unsupported" >&6; }
5361 else case e in #(
5362 e) if test "x$ac_cv_prog_cc_c89" = x
5363 then :
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5365 printf "%s\n" "none needed" >&6; }
5366 else case e in #(
5367 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5368 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5369 CC="$CC $ac_cv_prog_cc_c89" ;;
5370 esac
5371 fi
5372 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5373 ac_prog_cc_stdc=c89 ;;
5374 esac
5375 fi
5376 fi
5377
5378 ac_ext=c
5379 ac_cpp='$CPP $CPPFLAGS'
5380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5383
5384 ac_ext=c
5385 ac_cpp='$CPP $CPPFLAGS'
5386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5390 printf %s "checking how to run the C preprocessor... " >&6; }
5391 # On Suns, sometimes $CPP names a directory.
5392 if test -n "$CPP" && test -d "$CPP"; then
5393 CPP=
5394 fi
5395 if test -z "$CPP"; then
5396 if test ${ac_cv_prog_CPP+y}
5397 then :
5398 printf %s "(cached) " >&6
5399 else case e in #(
5400 e) # Double quotes because $CC needs to be expanded
5401 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5402 do
5403 ac_preproc_ok=false
5404 for ac_c_preproc_warn_flag in '' yes
5405 do
5406 # Use a header file that comes with gcc, so configuring glibc
5407 # with a fresh cross-compiler works.
5408 # On the NeXT, cc -E runs the code through the compiler's parser,
5409 # not just through cpp. "Syntax error" is here to catch this case.
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5412 #include <limits.h>
5413 Syntax error
5414 _ACEOF
5415 if ac_fn_c_try_cpp "$LINENO"
5416 then :
5417
5418 else case e in #(
5419 e) # Broken: fails on valid input.
5420 continue ;;
5421 esac
5422 fi
5423 rm -f conftest.err conftest.i conftest.$ac_ext
5424
5425 # OK, works on sane cases. Now check whether nonexistent headers
5426 # can be detected and how.
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 #include <ac_nonexistent.h>
5430 _ACEOF
5431 if ac_fn_c_try_cpp "$LINENO"
5432 then :
5433 # Broken: success on invalid input.
5434 continue
5435 else case e in #(
5436 e) # Passes both tests.
5437 ac_preproc_ok=:
5438 break ;;
5439 esac
5440 fi
5441 rm -f conftest.err conftest.i conftest.$ac_ext
5442
5443 done
5444 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5445 rm -f conftest.i conftest.err conftest.$ac_ext
5446 if $ac_preproc_ok
5447 then :
5448 break
5449 fi
5450
5451 done
5452 ac_cv_prog_CPP=$CPP
5453 ;;
5454 esac
5455 fi
5456 CPP=$ac_cv_prog_CPP
5457 else
5458 ac_cv_prog_CPP=$CPP
5459 fi
5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5461 printf "%s\n" "$CPP" >&6; }
5462 ac_preproc_ok=false
5463 for ac_c_preproc_warn_flag in '' yes
5464 do
5465 # Use a header file that comes with gcc, so configuring glibc
5466 # with a fresh cross-compiler works.
5467 # On the NeXT, cc -E runs the code through the compiler's parser,
5468 # not just through cpp. "Syntax error" is here to catch this case.
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <limits.h>
5472 Syntax error
5473 _ACEOF
5474 if ac_fn_c_try_cpp "$LINENO"
5475 then :
5476
5477 else case e in #(
5478 e) # Broken: fails on valid input.
5479 continue ;;
5480 esac
5481 fi
5482 rm -f conftest.err conftest.i conftest.$ac_ext
5483
5484 # OK, works on sane cases. Now check whether nonexistent headers
5485 # can be detected and how.
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488 #include <ac_nonexistent.h>
5489 _ACEOF
5490 if ac_fn_c_try_cpp "$LINENO"
5491 then :
5492 # Broken: success on invalid input.
5493 continue
5494 else case e in #(
5495 e) # Passes both tests.
5496 ac_preproc_ok=:
5497 break ;;
5498 esac
5499 fi
5500 rm -f conftest.err conftest.i conftest.$ac_ext
5501
5502 done
5503 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5504 rm -f conftest.i conftest.err conftest.$ac_ext
5505 if $ac_preproc_ok
5506 then :
5507
5508 else case e in #(
5509 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5510 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5511 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5512 See 'config.log' for more details" "$LINENO" 5; } ;;
5513 esac
5514 fi
5515
5516 ac_ext=c
5517 ac_cpp='$CPP $CPPFLAGS'
5518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5521
5522
5523 #--------------------------------------------------------------------
5524 # Checks to see if the make program sets the $MAKE variable.
5525 #--------------------------------------------------------------------
5526
5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5528 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5529 set x ${MAKE-make}
5530 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5531 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5532 then :
5533 printf %s "(cached) " >&6
5534 else case e in #(
5535 e) cat >conftest.make <<\_ACEOF
5536 SHELL = /bin/sh
5537 all:
5538 @echo '@@@%%%=$(MAKE)=@@@%%%'
5539 _ACEOF
5540 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5541 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5542 *@@@%%%=?*=@@@%%%*)
5543 eval ac_cv_prog_make_${ac_make}_set=yes;;
5544 *)
5545 eval ac_cv_prog_make_${ac_make}_set=no;;
5546 esac
5547 rm -f conftest.make ;;
5548 esac
5549 fi
5550 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5552 printf "%s\n" "yes" >&6; }
5553 SET_MAKE=
5554 else
5555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 printf "%s\n" "no" >&6; }
5557 SET_MAKE="MAKE=${MAKE-make}"
5558 fi
5559
5560
5561 #--------------------------------------------------------------------
5562 # Find ranlib
5563 #--------------------------------------------------------------------
5564
5565 if test -n "$ac_tool_prefix"; then
5566 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5567 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 printf %s "checking for $ac_word... " >&6; }
5570 if test ${ac_cv_prog_RANLIB+y}
5571 then :
5572 printf %s "(cached) " >&6
5573 else case e in #(
5574 e) if test -n "$RANLIB"; then
5575 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580 IFS=$as_save_IFS
5581 case $as_dir in #(((
5582 '') as_dir=./ ;;
5583 */) ;;
5584 *) as_dir=$as_dir/ ;;
5585 esac
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5590 break 2
5591 fi
5592 done
5593 done
5594 IFS=$as_save_IFS
5595
5596 fi ;;
5597 esac
5598 fi
5599 RANLIB=$ac_cv_prog_RANLIB
5600 if test -n "$RANLIB"; then
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5602 printf "%s\n" "$RANLIB" >&6; }
5603 else
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 printf "%s\n" "no" >&6; }
5606 fi
5607
5608
5609 fi
5610 if test -z "$ac_cv_prog_RANLIB"; then
5611 ac_ct_RANLIB=$RANLIB
5612 # Extract the first word of "ranlib", so it can be a program name with args.
5613 set dummy ranlib; ac_word=$2
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 printf %s "checking for $ac_word... " >&6; }
5616 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5617 then :
5618 printf %s "(cached) " >&6
5619 else case e in #(
5620 e) if test -n "$ac_ct_RANLIB"; then
5621 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5622 else
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5625 do
5626 IFS=$as_save_IFS
5627 case $as_dir in #(((
5628 '') as_dir=./ ;;
5629 */) ;;
5630 *) as_dir=$as_dir/ ;;
5631 esac
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_ac_ct_RANLIB="ranlib"
5635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5636 break 2
5637 fi
5638 done
5639 done
5640 IFS=$as_save_IFS
5641
5642 fi ;;
5643 esac
5644 fi
5645 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5646 if test -n "$ac_ct_RANLIB"; then
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5648 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5649 else
5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 printf "%s\n" "no" >&6; }
5652 fi
5653
5654 if test "x$ac_ct_RANLIB" = x; then
5655 RANLIB=""
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658 yes:)
5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661 ac_tool_warned=yes ;;
5662 esac
5663 RANLIB=$ac_ct_RANLIB
5664 fi
5665 else
5666 RANLIB="$ac_cv_prog_RANLIB"
5667 fi
5668
5669
5670 #--------------------------------------------------------------------
5671 # Determines the correct binary file extension (.o, .obj, .exe etc.)
5672 #--------------------------------------------------------------------
5673
5674
5675
5676
5677
5678 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
5679
5680
5681 #------------------------------------------------------------------------
5682 # If we're using GCC, see if the compiler understands -pipe. If so, use it.
5683 # It makes compiling go faster. (This is only a performance feature.)
5684 #------------------------------------------------------------------------
5685
5686 if test -z "$no_pipe" -a -n "$GCC"; then
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
5688 printf %s "checking if the compiler understands -pipe... " >&6; }
5689 if test ${tcl_cv_cc_pipe+y}
5690 then :
5691 printf %s "(cached) " >&6
5692 else case e in #(
5693 e)
5694 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697
5698 int
5699 main (void)
5700 {
5701
5702 ;
5703 return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_c_try_compile "$LINENO"
5707 then :
5708 tcl_cv_cc_pipe=yes
5709 else case e in #(
5710 e) tcl_cv_cc_pipe=no ;;
5711 esac
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5714 CFLAGS=$hold_cflags ;;
5715 esac
5716 fi
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
5718 printf "%s\n" "$tcl_cv_cc_pipe" >&6; }
5719 if test $tcl_cv_cc_pipe = yes; then
5720 CFLAGS="$CFLAGS -pipe"
5721 fi
5722 fi
5723
5724 if test "${TCL_MAJOR_VERSION}" -lt 9 -a "${TCL_MINOR_VERSION}" -lt 8; then
5725
5726 printf "%s\n" "#define Tcl_Size int" >>confdefs.h
5727
5728 fi
5729
5730 #--------------------------------------------------------------------
5731 # Common compiler flag setup
5732 #--------------------------------------------------------------------
5733
5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5735 printf %s "checking whether byte ordering is bigendian... " >&6; }
5736 if test ${ac_cv_c_bigendian+y}
5737 then :
5738 printf %s "(cached) " >&6
5739 else case e in #(
5740 e) ac_cv_c_bigendian=unknown
5741 # See if we're dealing with a universal compiler.
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 #ifndef __APPLE_CC__
5745 not a universal capable compiler
5746 #endif
5747 typedef int dummy;
5748
5749 _ACEOF
5750 if ac_fn_c_try_compile "$LINENO"
5751 then :
5752
5753 # Check for potential -arch flags. It is not universal unless
5754 # there are at least two -arch flags with different values.
5755 ac_arch=
5756 ac_prev=
5757 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5758 if test -n "$ac_prev"; then
5759 case $ac_word in
5760 i?86 | x86_64 | ppc | ppc64)
5761 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5762 ac_arch=$ac_word
5763 else
5764 ac_cv_c_bigendian=universal
5765 break
5766 fi
5767 ;;
5768 esac
5769 ac_prev=
5770 elif test "x$ac_word" = "x-arch"; then
5771 ac_prev=arch
5772 fi
5773 done
5774 fi
5775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5776 if test $ac_cv_c_bigendian = unknown; then
5777 # See if sys/param.h defines the BYTE_ORDER macro.
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 #include <sys/types.h>
5781 #include <sys/param.h>
5782
5783 int
5784 main (void)
5785 {
5786 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
5787 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
5788 && LITTLE_ENDIAN)
5789 bogus endian macros
5790 #endif
5791
5792 ;
5793 return 0;
5794 }
5795 _ACEOF
5796 if ac_fn_c_try_compile "$LINENO"
5797 then :
5798 # It does; now see whether it defined to BIG_ENDIAN or not.
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 #include <sys/types.h>
5802 #include <sys/param.h>
5803
5804 int
5805 main (void)
5806 {
5807 #if BYTE_ORDER != BIG_ENDIAN
5808 not big endian
5809 #endif
5810
5811 ;
5812 return 0;
5813 }
5814 _ACEOF
5815 if ac_fn_c_try_compile "$LINENO"
5816 then :
5817 ac_cv_c_bigendian=yes
5818 else case e in #(
5819 e) ac_cv_c_bigendian=no ;;
5820 esac
5821 fi
5822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5825 fi
5826 if test $ac_cv_c_bigendian = unknown; then
5827 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 #include <limits.h>
5831
5832 int
5833 main (void)
5834 {
5835 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5836 bogus endian macros
5837 #endif
5838
5839 ;
5840 return 0;
5841 }
5842 _ACEOF
5843 if ac_fn_c_try_compile "$LINENO"
5844 then :
5845 # It does; now see whether it defined to _BIG_ENDIAN or not.
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848 #include <limits.h>
5849
5850 int
5851 main (void)
5852 {
5853 #ifndef _BIG_ENDIAN
5854 not big endian
5855 #endif
5856
5857 ;
5858 return 0;
5859 }
5860 _ACEOF
5861 if ac_fn_c_try_compile "$LINENO"
5862 then :
5863 ac_cv_c_bigendian=yes
5864 else case e in #(
5865 e) ac_cv_c_bigendian=no ;;
5866 esac
5867 fi
5868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5869 fi
5870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5871 fi
5872 if test $ac_cv_c_bigendian = unknown; then
5873 # Compile a test program.
5874 if test "$cross_compiling" = yes
5875 then :
5876 # Try to guess by grepping values from an object file.
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 unsigned short int ascii_mm[] =
5880 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5881 unsigned short int ascii_ii[] =
5882 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5883 int use_ascii (int i) {
5884 return ascii_mm[i] + ascii_ii[i];
5885 }
5886 unsigned short int ebcdic_ii[] =
5887 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5888 unsigned short int ebcdic_mm[] =
5889 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5890 int use_ebcdic (int i) {
5891 return ebcdic_mm[i] + ebcdic_ii[i];
5892 }
5893 int
5894 main (int argc, char **argv)
5895 {
5896 /* Intimidate the compiler so that it does not
5897 optimize the arrays away. */
5898 char *p = argv[0];
5899 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
5900 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
5901 return use_ascii (argc) == use_ebcdic (*p);
5902 }
5903 _ACEOF
5904 if ac_fn_c_try_link "$LINENO"
5905 then :
5906 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
5907 ac_cv_c_bigendian=yes
5908 fi
5909 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
5910 if test "$ac_cv_c_bigendian" = unknown; then
5911 ac_cv_c_bigendian=no
5912 else
5913 # finding both strings is unlikely to happen, but who knows?
5914 ac_cv_c_bigendian=unknown
5915 fi
5916 fi
5917 fi
5918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5919 conftest$ac_exeext conftest.$ac_ext
5920 else case e in #(
5921 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5923 $ac_includes_default
5924 int
5925 main (void)
5926 {
5927
5928 /* Are we little or big endian? From Harbison&Steele. */
5929 union
5930 {
5931 long int l;
5932 char c[sizeof (long int)];
5933 } u;
5934 u.l = 1;
5935 return u.c[sizeof (long int) - 1] == 1;
5936
5937 ;
5938 return 0;
5939 }
5940 _ACEOF
5941 if ac_fn_c_try_run "$LINENO"
5942 then :
5943 ac_cv_c_bigendian=no
5944 else case e in #(
5945 e) ac_cv_c_bigendian=yes ;;
5946 esac
5947 fi
5948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5949 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5950 esac
5951 fi
5952
5953 fi ;;
5954 esac
5955 fi
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5957 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5958 case $ac_cv_c_bigendian in #(
5959 yes)
5960 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5961 ;; #(
5962 no)
5963 ;; #(
5964 universal)
5965 #
5966 ;; #(
5967 *)
5968 as_fn_error $? "unknown endianness
5969 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5970 esac
5971
5972
5973
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
5975 printf %s "checking for Tcl public headers... " >&6; }
5976
5977
5978 # Check whether --with-tclinclude was given.
5979 if test ${with_tclinclude+y}
5980 then :
5981 withval=$with_tclinclude; with_tclinclude=${withval}
5982 fi
5983
5984
5985 if test ${ac_cv_c_tclh+y}
5986 then :
5987 printf %s "(cached) " >&6
5988 else case e in #(
5989 e)
5990 # Use the value from --with-tclinclude, if it was given
5991
5992 if test x"${with_tclinclude}" != x ; then
5993 if test -f "${with_tclinclude}/tcl.h" ; then
5994 ac_cv_c_tclh=${with_tclinclude}
5995 else
5996 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5
5997 fi
5998 else
5999 list=""
6000 if test "`uname -s`" = "Darwin"; then
6001 # If Tcl was built as a framework, attempt to use
6002 # the framework's Headers directory
6003 case ${TCL_DEFS} in
6004 *TCL_FRAMEWORK*)
6005 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
6006 ;;
6007 esac
6008 fi
6009
6010 # Look in the source dir only if Tcl is not installed,
6011 # and in that situation, look there before installed locations.
6012 if test -f "${TCL_BIN_DIR}/Makefile" ; then
6013 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
6014 fi
6015
6016 # Check order: pkg --prefix location, Tcl's --prefix location,
6017 # relative to directory of tclConfig.sh.
6018
6019 eval "temp_includedir=${includedir}"
6020 list="$list \
6021 `ls -d ${temp_includedir} 2>/dev/null` \
6022 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
6023 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
6024 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
6025 list="$list /usr/local/include /usr/include"
6026 if test x"${TCL_INCLUDE_SPEC}" != x ; then
6027 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
6028 list="$list `ls -d ${d} 2>/dev/null`"
6029 fi
6030 fi
6031 for i in $list ; do
6032 if test -f "$i/tcl.h" ; then
6033 ac_cv_c_tclh=$i
6034 break
6035 fi
6036 done
6037 fi
6038 ;;
6039 esac
6040 fi
6041
6042
6043 # Print a message based on how we determined the include path
6044
6045 if test x"${ac_cv_c_tclh}" = x ; then
6046 as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5
6047 else
6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
6049 printf "%s\n" "${ac_cv_c_tclh}" >&6; }
6050 fi
6051
6052 # Convert to a native path and substitute into the output files.
6053
6054 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
6055
6056 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6057
6058
6059
6060 if test -n "$ac_tool_prefix"; then
6061 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6062 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064 printf %s "checking for $ac_word... " >&6; }
6065 if test ${ac_cv_prog_RANLIB+y}
6066 then :
6067 printf %s "(cached) " >&6
6068 else case e in #(
6069 e) if test -n "$RANLIB"; then
6070 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075 IFS=$as_save_IFS
6076 case $as_dir in #(((
6077 '') as_dir=./ ;;
6078 */) ;;
6079 *) as_dir=$as_dir/ ;;
6080 esac
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6085 break 2
6086 fi
6087 done
6088 done
6089 IFS=$as_save_IFS
6090
6091 fi ;;
6092 esac
6093 fi
6094 RANLIB=$ac_cv_prog_RANLIB
6095 if test -n "$RANLIB"; then
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6097 printf "%s\n" "$RANLIB" >&6; }
6098 else
6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 printf "%s\n" "no" >&6; }
6101 fi
6102
6103
6104 fi
6105 if test -z "$ac_cv_prog_RANLIB"; then
6106 ac_ct_RANLIB=$RANLIB
6107 # Extract the first word of "ranlib", so it can be a program name with args.
6108 set dummy ranlib; ac_word=$2
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 printf %s "checking for $ac_word... " >&6; }
6111 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6112 then :
6113 printf %s "(cached) " >&6
6114 else case e in #(
6115 e) if test -n "$ac_ct_RANLIB"; then
6116 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121 IFS=$as_save_IFS
6122 case $as_dir in #(((
6123 '') as_dir=./ ;;
6124 */) ;;
6125 *) as_dir=$as_dir/ ;;
6126 esac
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6129 ac_cv_prog_ac_ct_RANLIB="ranlib"
6130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6131 break 2
6132 fi
6133 done
6134 done
6135 IFS=$as_save_IFS
6136
6137 fi ;;
6138 esac
6139 fi
6140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6141 if test -n "$ac_ct_RANLIB"; then
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6143 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6144 else
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 printf "%s\n" "no" >&6; }
6147 fi
6148
6149 if test "x$ac_ct_RANLIB" = x; then
6150 RANLIB=":"
6151 else
6152 case $cross_compiling:$ac_tool_warned in
6153 yes:)
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6155 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6156 ac_tool_warned=yes ;;
6157 esac
6158 RANLIB=$ac_ct_RANLIB
6159 fi
6160 else
6161 RANLIB="$ac_cv_prog_RANLIB"
6162 fi
6163
6164
6165
6166
6167 # Step 0.a: Enable 64 bit support?
6168
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
6170 printf %s "checking if 64bit support is requested... " >&6; }
6171 # Check whether --enable-64bit was given.
6172 if test ${enable_64bit+y}
6173 then :
6174 enableval=$enable_64bit; do64bit=$enableval
6175 else case e in #(
6176 e) do64bit=no ;;
6177 esac
6178 fi
6179
6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
6181 printf "%s\n" "$do64bit" >&6; }
6182
6183 # Step 0.b: Enable Solaris 64 bit VIS support?
6184
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
6186 printf %s "checking if 64bit Sparc VIS support is requested... " >&6; }
6187 # Check whether --enable-64bit-vis was given.
6188 if test ${enable_64bit_vis+y}
6189 then :
6190 enableval=$enable_64bit_vis; do64bitVIS=$enableval
6191 else case e in #(
6192 e) do64bitVIS=no ;;
6193 esac
6194 fi
6195
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
6197 printf "%s\n" "$do64bitVIS" >&6; }
6198 # Force 64bit on with VIS
6199 if test "$do64bitVIS" = "yes"
6200 then :
6201 do64bit=yes
6202 fi
6203
6204 # Step 0.c: Check if visibility support is available. Do this here so
6205 # that platform specific alternatives can be used below if this fails.
6206
6207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
6208 printf %s "checking if compiler supports visibility \"hidden\"... " >&6; }
6209 if test ${tcl_cv_cc_visibility_hidden+y}
6210 then :
6211 printf %s "(cached) " >&6
6212 else case e in #(
6213 e)
6214 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6217
6218 extern __attribute__((__visibility__("hidden"))) void f(void);
6219 void f(void) {}
6220 int
6221 main (void)
6222 {
6223 f();
6224 ;
6225 return 0;
6226 }
6227 _ACEOF
6228 if ac_fn_c_try_link "$LINENO"
6229 then :
6230 tcl_cv_cc_visibility_hidden=yes
6231 else case e in #(
6232 e) tcl_cv_cc_visibility_hidden=no ;;
6233 esac
6234 fi
6235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6236 conftest$ac_exeext conftest.$ac_ext
6237 CFLAGS=$hold_cflags ;;
6238 esac
6239 fi
6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
6241 printf "%s\n" "$tcl_cv_cc_visibility_hidden" >&6; }
6242 if test $tcl_cv_cc_visibility_hidden = yes
6243 then :
6244
6245
6246 printf "%s\n" "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
6247
6248
6249 printf "%s\n" "#define HAVE_HIDDEN 1" >>confdefs.h
6250
6251
6252 fi
6253
6254 # Step 0.d: Disable -rpath support?
6255
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
6257 printf %s "checking if rpath support is requested... " >&6; }
6258 # Check whether --enable-rpath was given.
6259 if test ${enable_rpath+y}
6260 then :
6261 enableval=$enable_rpath; doRpath=$enableval
6262 else case e in #(
6263 e) doRpath=yes ;;
6264 esac
6265 fi
6266
6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
6268 printf "%s\n" "$doRpath" >&6; }
6269
6270 # Set the variable "system" to hold the name and version number
6271 # for the system.
6272
6273
6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
6275 printf %s "checking system version... " >&6; }
6276 if test ${tcl_cv_sys_version+y}
6277 then :
6278 printf %s "(cached) " >&6
6279 else case e in #(
6280 e)
6281 # TEA specific:
6282 if test "${TEA_PLATFORM}" = "windows" ; then
6283 tcl_cv_sys_version=windows
6284 else
6285 tcl_cv_sys_version=`uname -s`-`uname -r`
6286 if test "$?" -ne 0 ; then
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
6288 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
6289 tcl_cv_sys_version=unknown
6290 else
6291 if test "`uname -s`" = "AIX" ; then
6292 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
6293 fi
6294 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
6295 tcl_cv_sys_version=NetBSD-Debian
6296 fi
6297 fi
6298 fi
6299 ;;
6300 esac
6301 fi
6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
6303 printf "%s\n" "$tcl_cv_sys_version" >&6; }
6304 system=$tcl_cv_sys_version
6305
6306
6307 # Require ranlib early so we can override it in special cases below.
6308
6309
6310
6311 # Set configuration options based on system name and version.
6312 # This is similar to Tcl's unix/tcl.m4 except that we've added a
6313 # "windows" case and removed some core-only vars.
6314
6315 do64bit_ok=no
6316 # default to '{$LIBS}' and set to "" on per-platform necessary basis
6317 SHLIB_LD_LIBS='${LIBS}'
6318 # When ld needs options to work in 64-bit mode, put them in
6319 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
6320 # is disabled by the user. [Bug 1016796]
6321 LDFLAGS_ARCH=""
6322 UNSHARED_LIB_SUFFIX=""
6323 # TEA specific: use PACKAGE_VERSION instead of VERSION
6324 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
6325 ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
6326 TCL_LIB_VERSIONS_OK=ok
6327 CFLAGS_DEBUG=-g
6328 if test "$GCC" = yes
6329 then :
6330
6331 CFLAGS_OPTIMIZE=-O2
6332 CFLAGS_WARNING="-Wall"
6333
6334 else case e in #(
6335 e)
6336 CFLAGS_OPTIMIZE=-O
6337 CFLAGS_WARNING=""
6338 ;;
6339 esac
6340 fi
6341 if test -n "$ac_tool_prefix"; then
6342 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6343 set dummy ${ac_tool_prefix}ar; ac_word=$2
6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 printf %s "checking for $ac_word... " >&6; }
6346 if test ${ac_cv_prog_AR+y}
6347 then :
6348 printf %s "(cached) " >&6
6349 else case e in #(
6350 e) if test -n "$AR"; then
6351 ac_cv_prog_AR="$AR" # Let the user override the test.
6352 else
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6355 do
6356 IFS=$as_save_IFS
6357 case $as_dir in #(((
6358 '') as_dir=./ ;;
6359 */) ;;
6360 *) as_dir=$as_dir/ ;;
6361 esac
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6364 ac_cv_prog_AR="${ac_tool_prefix}ar"
6365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6366 break 2
6367 fi
6368 done
6369 done
6370 IFS=$as_save_IFS
6371
6372 fi ;;
6373 esac
6374 fi
6375 AR=$ac_cv_prog_AR
6376 if test -n "$AR"; then
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6378 printf "%s\n" "$AR" >&6; }
6379 else
6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 printf "%s\n" "no" >&6; }
6382 fi
6383
6384
6385 fi
6386 if test -z "$ac_cv_prog_AR"; then
6387 ac_ct_AR=$AR
6388 # Extract the first word of "ar", so it can be a program name with args.
6389 set dummy ar; ac_word=$2
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 printf %s "checking for $ac_word... " >&6; }
6392 if test ${ac_cv_prog_ac_ct_AR+y}
6393 then :
6394 printf %s "(cached) " >&6
6395 else case e in #(
6396 e) if test -n "$ac_ct_AR"; then
6397 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6398 else
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6401 do
6402 IFS=$as_save_IFS
6403 case $as_dir in #(((
6404 '') as_dir=./ ;;
6405 */) ;;
6406 *) as_dir=$as_dir/ ;;
6407 esac
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6410 ac_cv_prog_ac_ct_AR="ar"
6411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414 done
6415 done
6416 IFS=$as_save_IFS
6417
6418 fi ;;
6419 esac
6420 fi
6421 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6422 if test -n "$ac_ct_AR"; then
6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6424 printf "%s\n" "$ac_ct_AR" >&6; }
6425 else
6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 printf "%s\n" "no" >&6; }
6428 fi
6429
6430 if test "x$ac_ct_AR" = x; then
6431 AR=""
6432 else
6433 case $cross_compiling:$ac_tool_warned in
6434 yes:)
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6436 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6437 ac_tool_warned=yes ;;
6438 esac
6439 AR=$ac_ct_AR
6440 fi
6441 else
6442 AR="$ac_cv_prog_AR"
6443 fi
6444
6445 STLIB_LD='${AR} cr'
6446 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
6447 if test "x$SHLIB_VERSION" = x
6448 then :
6449 SHLIB_VERSION=""
6450 else case e in #(
6451 e) SHLIB_VERSION=".$SHLIB_VERSION" ;;
6452 esac
6453 fi
6454 case $system in
6455 # TEA specific:
6456 windows)
6457 MACHINE="X86"
6458 if test "$do64bit" != "no" ; then
6459 case "$do64bit" in
6460 amd64|x64|yes)
6461 MACHINE="AMD64" ; # default to AMD64 64-bit build
6462 ;;
6463 arm64|aarch64)
6464 MACHINE="ARM64"
6465 ;;
6466 ia64)
6467 MACHINE="IA64"
6468 ;;
6469 esac
6470 fi
6471
6472 if test "$GCC" != "yes" ; then
6473 if test "${SHARED_BUILD}" = "0" ; then
6474 runtime=-MT
6475 else
6476 runtime=-MD
6477 fi
6478 case "x`echo \${VisualStudioVersion}`" in
6479 x1[4-9]*)
6480 lflags="${lflags} -nodefaultlib:libucrt.lib"
6481
6482 vars="ucrt.lib"
6483 for i in $vars; do
6484 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6485 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6486 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6487 fi
6488 PKG_LIBS="$PKG_LIBS $i"
6489 done
6490
6491
6492 ;;
6493 *)
6494 ;;
6495 esac
6496
6497 if test "$do64bit" != "no" ; then
6498 CC="cl.exe"
6499 RC="rc.exe"
6500 lflags="${lflags} -nologo -MACHINE:${MACHINE} "
6501 LINKBIN="link.exe"
6502 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
6503 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
6504 # Avoid 'unresolved external symbol __security_cookie'
6505 # errors, c.f. http://support.microsoft.com/?id=894573
6506
6507 vars="bufferoverflowU.lib"
6508 for i in $vars; do
6509 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6510 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6511 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6512 fi
6513 PKG_LIBS="$PKG_LIBS $i"
6514 done
6515
6516
6517 else
6518 RC="rc"
6519 lflags="${lflags} -nologo"
6520 LINKBIN="link"
6521 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
6522 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
6523 fi
6524 fi
6525
6526 if test "$GCC" = "yes"; then
6527 # mingw gcc mode
6528 if test -n "$ac_tool_prefix"; then
6529 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6530 set dummy ${ac_tool_prefix}windres; ac_word=$2
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532 printf %s "checking for $ac_word... " >&6; }
6533 if test ${ac_cv_prog_RC+y}
6534 then :
6535 printf %s "(cached) " >&6
6536 else case e in #(
6537 e) if test -n "$RC"; then
6538 ac_cv_prog_RC="$RC" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543 IFS=$as_save_IFS
6544 case $as_dir in #(((
6545 '') as_dir=./ ;;
6546 */) ;;
6547 *) as_dir=$as_dir/ ;;
6548 esac
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6551 ac_cv_prog_RC="${ac_tool_prefix}windres"
6552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6553 break 2
6554 fi
6555 done
6556 done
6557 IFS=$as_save_IFS
6558
6559 fi ;;
6560 esac
6561 fi
6562 RC=$ac_cv_prog_RC
6563 if test -n "$RC"; then
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
6565 printf "%s\n" "$RC" >&6; }
6566 else
6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 printf "%s\n" "no" >&6; }
6569 fi
6570
6571
6572 fi
6573 if test -z "$ac_cv_prog_RC"; then
6574 ac_ct_RC=$RC
6575 # Extract the first word of "windres", so it can be a program name with args.
6576 set dummy windres; ac_word=$2
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 printf %s "checking for $ac_word... " >&6; }
6579 if test ${ac_cv_prog_ac_ct_RC+y}
6580 then :
6581 printf %s "(cached) " >&6
6582 else case e in #(
6583 e) if test -n "$ac_ct_RC"; then
6584 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
6585 else
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 for as_dir in $PATH
6588 do
6589 IFS=$as_save_IFS
6590 case $as_dir in #(((
6591 '') as_dir=./ ;;
6592 */) ;;
6593 *) as_dir=$as_dir/ ;;
6594 esac
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6597 ac_cv_prog_ac_ct_RC="windres"
6598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6604
6605 fi ;;
6606 esac
6607 fi
6608 ac_ct_RC=$ac_cv_prog_ac_ct_RC
6609 if test -n "$ac_ct_RC"; then
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
6611 printf "%s\n" "$ac_ct_RC" >&6; }
6612 else
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 printf "%s\n" "no" >&6; }
6615 fi
6616
6617 if test "x$ac_ct_RC" = x; then
6618 RC=""
6619 else
6620 case $cross_compiling:$ac_tool_warned in
6621 yes:)
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6623 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6624 ac_tool_warned=yes ;;
6625 esac
6626 RC=$ac_ct_RC
6627 fi
6628 else
6629 RC="$ac_cv_prog_RC"
6630 fi
6631
6632 CFLAGS_DEBUG="-g"
6633 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
6634 SHLIB_LD='${CC} -shared'
6635 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
6636 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
6637 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
6638
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5
6640 printf %s "checking for cross-compile version of gcc... " >&6; }
6641 if test ${ac_cv_cross+y}
6642 then :
6643 printf %s "(cached) " >&6
6644 else case e in #(
6645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6647
6648 #ifdef _WIN32
6649 #error cross-compiler
6650 #endif
6651
6652 int
6653 main (void)
6654 {
6655
6656 ;
6657 return 0;
6658 }
6659 _ACEOF
6660 if ac_fn_c_try_compile "$LINENO"
6661 then :
6662 ac_cv_cross=yes
6663 else case e in #(
6664 e) ac_cv_cross=no ;;
6665 esac
6666 fi
6667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6668 ;;
6669 esac
6670 fi
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5
6672 printf "%s\n" "$ac_cv_cross" >&6; }
6673 if test "$ac_cv_cross" = "yes"; then
6674 case "$do64bit" in
6675 amd64|x64|yes)
6676 CC="x86_64-w64-mingw32-${CC}"
6677 LD="x86_64-w64-mingw32-ld"
6678 AR="x86_64-w64-mingw32-ar"
6679 RANLIB="x86_64-w64-mingw32-ranlib"
6680 RC="x86_64-w64-mingw32-windres"
6681 ;;
6682 arm64|aarch64)
6683 CC="aarch64-w64-mingw32-clang"
6684 LD="aarch64-w64-mingw32-ld"
6685 AR="aarch64-w64-mingw32-ar"
6686 RANLIB="aarch64-w64-mingw32-ranlib"
6687 RC="aarch64-w64-mingw32-windres"
6688 ;;
6689 *)
6690 CC="i686-w64-mingw32-${CC}"
6691 LD="i686-w64-mingw32-ld"
6692 AR="i686-w64-mingw32-ar"
6693 RANLIB="i686-w64-mingw32-ranlib"
6694 RC="i686-w64-mingw32-windres"
6695 ;;
6696 esac
6697 fi
6698
6699 else
6700 SHLIB_LD="${LINKBIN} -dll ${lflags}"
6701 # link -lib only works when -lib is the first arg
6702 STLIB_LD="${LINKBIN} -lib ${lflags}"
6703 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
6704 PATHTYPE=-w
6705 # For information on what debugtype is most useful, see:
6706 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
6707 # and also
6708 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
6709 # This essentially turns it all on.
6710 LDFLAGS_DEBUG="-debug -debugtype:cv"
6711 LDFLAGS_OPTIMIZE="-release"
6712 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
6713 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
6714 fi
6715
6716 SHLIB_SUFFIX=".dll"
6717 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
6718
6719 TCL_LIB_VERSIONS_OK=nodots
6720 ;;
6721 AIX-*)
6722 if test "$GCC" != "yes"
6723 then :
6724
6725 # AIX requires the _r compiler when gcc isn't being used
6726 case "${CC}" in
6727 *_r|*_r\ *)
6728 # ok ...
6729 ;;
6730 *)
6731 # Make sure only first arg gets _r
6732 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
6733 ;;
6734 esac
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
6736 printf "%s\n" "Using $CC for compiling with threads" >&6; }
6737
6738 fi
6739 LIBS="$LIBS -lc"
6740 SHLIB_CFLAGS=""
6741 SHLIB_SUFFIX=".so"
6742
6743 LD_LIBRARY_PATH_VAR="LIBPATH"
6744
6745 # Check to enable 64-bit flags for compiler/linker
6746 if test "$do64bit" = yes
6747 then :
6748
6749 if test "$GCC" = yes
6750 then :
6751
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
6753 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
6754
6755 else case e in #(
6756 e)
6757 do64bit_ok=yes
6758 CFLAGS="$CFLAGS -q64"
6759 LDFLAGS_ARCH="-q64"
6760 RANLIB="${RANLIB} -X64"
6761 AR="${AR} -X64"
6762 SHLIB_LD_FLAGS="-b64"
6763 ;;
6764 esac
6765 fi
6766
6767 fi
6768
6769 if test "`uname -m`" = ia64
6770 then :
6771
6772 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
6773 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
6774 if test "$GCC" = yes
6775 then :
6776
6777 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
6778
6779 else case e in #(
6780 e)
6781 CC_SEARCH_FLAGS='"-R${LIB_RUNTIME_DIR}"'
6782 ;;
6783 esac
6784 fi
6785 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
6786
6787 else case e in #(
6788 e)
6789 if test "$GCC" = yes
6790 then :
6791
6792 SHLIB_LD='${CC} -shared -Wl,-bexpall'
6793
6794 else case e in #(
6795 e)
6796 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
6797 LDFLAGS="$LDFLAGS -brtl"
6798 ;;
6799 esac
6800 fi
6801 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
6802 CC_SEARCH_FLAGS='"-L${LIB_RUNTIME_DIR}"'
6803 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6804 ;;
6805 esac
6806 fi
6807 ;;
6808 BeOS*)
6809 SHLIB_CFLAGS="-fPIC"
6810 SHLIB_LD='${CC} -nostart'
6811 SHLIB_SUFFIX=".so"
6812
6813 #-----------------------------------------------------------
6814 # Check for inet_ntoa in -lbind, for BeOS (which also needs
6815 # -lsocket, even if the network functions are in -lnet which
6816 # is always linked to, for compatibility.
6817 #-----------------------------------------------------------
6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
6819 printf %s "checking for inet_ntoa in -lbind... " >&6; }
6820 if test ${ac_cv_lib_bind_inet_ntoa+y}
6821 then :
6822 printf %s "(cached) " >&6
6823 else case e in #(
6824 e) ac_check_lib_save_LIBS=$LIBS
6825 LIBS="-lbind $LIBS"
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828
6829 /* Override any GCC internal prototype to avoid an error.
6830 Use char because int might match the return type of a GCC
6831 builtin and then its argument prototype would still apply.
6832 The 'extern "C"' is for builds by C++ compilers;
6833 although this is not generally supported in C code supporting it here
6834 has little cost and some practical benefit (sr 110532). */
6835 #ifdef __cplusplus
6836 extern "C"
6837 #endif
6838 char inet_ntoa (void);
6839 int
6840 main (void)
6841 {
6842 return inet_ntoa ();
6843 ;
6844 return 0;
6845 }
6846 _ACEOF
6847 if ac_fn_c_try_link "$LINENO"
6848 then :
6849 ac_cv_lib_bind_inet_ntoa=yes
6850 else case e in #(
6851 e) ac_cv_lib_bind_inet_ntoa=no ;;
6852 esac
6853 fi
6854 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6855 conftest$ac_exeext conftest.$ac_ext
6856 LIBS=$ac_check_lib_save_LIBS ;;
6857 esac
6858 fi
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
6860 printf "%s\n" "$ac_cv_lib_bind_inet_ntoa" >&6; }
6861 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes
6862 then :
6863 LIBS="$LIBS -lbind -lsocket"
6864 fi
6865
6866 ;;
6867 BSD/OS-2.1*|BSD/OS-3*)
6868 SHLIB_CFLAGS=""
6869 SHLIB_LD="shlicc -r"
6870 SHLIB_SUFFIX=".so"
6871 CC_SEARCH_FLAGS=""
6872 LD_SEARCH_FLAGS=""
6873 ;;
6874 BSD/OS-4.*)
6875 SHLIB_CFLAGS="-export-dynamic -fPIC"
6876 SHLIB_LD='${CC} -shared'
6877 SHLIB_SUFFIX=".so"
6878 LDFLAGS="$LDFLAGS -export-dynamic"
6879 CC_SEARCH_FLAGS=""
6880 LD_SEARCH_FLAGS=""
6881 ;;
6882 CYGWIN_*)
6883 SHLIB_CFLAGS=""
6884 SHLIB_LD='${CC} -shared'
6885 SHLIB_SUFFIX=".dll"
6886 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\[email protected]"
6887 EXEEXT=".exe"
6888 do64bit_ok=yes
6889 CC_SEARCH_FLAGS=""
6890 LD_SEARCH_FLAGS=""
6891 ;;
6892 dgux*)
6893 SHLIB_CFLAGS="-K PIC"
6894 SHLIB_LD='${CC} -G'
6895 SHLIB_LD_LIBS=""
6896 SHLIB_SUFFIX=".so"
6897 CC_SEARCH_FLAGS=""
6898 LD_SEARCH_FLAGS=""
6899 ;;
6900 Haiku*)
6901 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
6902 SHLIB_CFLAGS="-fPIC"
6903 SHLIB_SUFFIX=".so"
6904 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
6906 printf %s "checking for inet_ntoa in -lnetwork... " >&6; }
6907 if test ${ac_cv_lib_network_inet_ntoa+y}
6908 then :
6909 printf %s "(cached) " >&6
6910 else case e in #(
6911 e) ac_check_lib_save_LIBS=$LIBS
6912 LIBS="-lnetwork $LIBS"
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6915
6916 /* Override any GCC internal prototype to avoid an error.
6917 Use char because int might match the return type of a GCC
6918 builtin and then its argument prototype would still apply.
6919 The 'extern "C"' is for builds by C++ compilers;
6920 although this is not generally supported in C code supporting it here
6921 has little cost and some practical benefit (sr 110532). */
6922 #ifdef __cplusplus
6923 extern "C"
6924 #endif
6925 char inet_ntoa (void);
6926 int
6927 main (void)
6928 {
6929 return inet_ntoa ();
6930 ;
6931 return 0;
6932 }
6933 _ACEOF
6934 if ac_fn_c_try_link "$LINENO"
6935 then :
6936 ac_cv_lib_network_inet_ntoa=yes
6937 else case e in #(
6938 e) ac_cv_lib_network_inet_ntoa=no ;;
6939 esac
6940 fi
6941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6942 conftest$ac_exeext conftest.$ac_ext
6943 LIBS=$ac_check_lib_save_LIBS ;;
6944 esac
6945 fi
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5
6947 printf "%s\n" "$ac_cv_lib_network_inet_ntoa" >&6; }
6948 if test "x$ac_cv_lib_network_inet_ntoa" = xyes
6949 then :
6950 LIBS="$LIBS -lnetwork"
6951 fi
6952
6953 ;;
6954 HP-UX-*.11.*)
6955 # Use updated header definitions where possible
6956
6957 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
6958
6959 # TEA specific: Needed by Tcl, but not most extensions
6960 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
6961 #LIBS="$LIBS -lxnet" # Use the XOPEN network library
6962
6963 if test "`uname -m`" = ia64
6964 then :
6965
6966 SHLIB_SUFFIX=".so"
6967
6968 else case e in #(
6969 e)
6970 SHLIB_SUFFIX=".sl"
6971 ;;
6972 esac
6973 fi
6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6975 printf %s "checking for shl_load in -ldld... " >&6; }
6976 if test ${ac_cv_lib_dld_shl_load+y}
6977 then :
6978 printf %s "(cached) " >&6
6979 else case e in #(
6980 e) ac_check_lib_save_LIBS=$LIBS
6981 LIBS="-ldld $LIBS"
6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6984
6985 /* Override any GCC internal prototype to avoid an error.
6986 Use char because int might match the return type of a GCC
6987 builtin and then its argument prototype would still apply.
6988 The 'extern "C"' is for builds by C++ compilers;
6989 although this is not generally supported in C code supporting it here
6990 has little cost and some practical benefit (sr 110532). */
6991 #ifdef __cplusplus
6992 extern "C"
6993 #endif
6994 char shl_load (void);
6995 int
6996 main (void)
6997 {
6998 return shl_load ();
6999 ;
7000 return 0;
7001 }
7002 _ACEOF
7003 if ac_fn_c_try_link "$LINENO"
7004 then :
7005 ac_cv_lib_dld_shl_load=yes
7006 else case e in #(
7007 e) ac_cv_lib_dld_shl_load=no ;;
7008 esac
7009 fi
7010 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7011 conftest$ac_exeext conftest.$ac_ext
7012 LIBS=$ac_check_lib_save_LIBS ;;
7013 esac
7014 fi
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7016 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
7017 if test "x$ac_cv_lib_dld_shl_load" = xyes
7018 then :
7019 tcl_ok=yes
7020 else case e in #(
7021 e) tcl_ok=no ;;
7022 esac
7023 fi
7024
7025 if test "$tcl_ok" = yes
7026 then :
7027
7028 SHLIB_CFLAGS="+z"
7029 SHLIB_LD="ld -b"
7030 LDFLAGS="$LDFLAGS -Wl,-E"
7031 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
7032 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
7033 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7034
7035 fi
7036 if test "$GCC" = yes
7037 then :
7038
7039 SHLIB_LD='${CC} -shared'
7040 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7041
7042 else case e in #(
7043 e)
7044 CFLAGS="$CFLAGS -z"
7045 ;;
7046 esac
7047 fi
7048
7049 # Check to enable 64-bit flags for compiler/linker
7050 if test "$do64bit" = "yes"
7051 then :
7052
7053 if test "$GCC" = yes
7054 then :
7055
7056 case `${CC} -dumpmachine` in
7057 hppa64*)
7058 # 64-bit gcc in use. Fix flags for GNU ld.
7059 do64bit_ok=yes
7060 SHLIB_LD='${CC} -shared'
7061 if test $doRpath = yes
7062 then :
7063
7064 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7065 fi
7066 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7067 ;;
7068 *)
7069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7070 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7071 ;;
7072 esac
7073
7074 else case e in #(
7075 e)
7076 do64bit_ok=yes
7077 CFLAGS="$CFLAGS +DD64"
7078 LDFLAGS_ARCH="+DD64"
7079 ;;
7080 esac
7081 fi
7082
7083 fi ;;
7084 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
7085 SHLIB_SUFFIX=".sl"
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7087 printf %s "checking for shl_load in -ldld... " >&6; }
7088 if test ${ac_cv_lib_dld_shl_load+y}
7089 then :
7090 printf %s "(cached) " >&6
7091 else case e in #(
7092 e) ac_check_lib_save_LIBS=$LIBS
7093 LIBS="-ldld $LIBS"
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7096
7097 /* Override any GCC internal prototype to avoid an error.
7098 Use char because int might match the return type of a GCC
7099 builtin and then its argument prototype would still apply.
7100 The 'extern "C"' is for builds by C++ compilers;
7101 although this is not generally supported in C code supporting it here
7102 has little cost and some practical benefit (sr 110532). */
7103 #ifdef __cplusplus
7104 extern "C"
7105 #endif
7106 char shl_load (void);
7107 int
7108 main (void)
7109 {
7110 return shl_load ();
7111 ;
7112 return 0;
7113 }
7114 _ACEOF
7115 if ac_fn_c_try_link "$LINENO"
7116 then :
7117 ac_cv_lib_dld_shl_load=yes
7118 else case e in #(
7119 e) ac_cv_lib_dld_shl_load=no ;;
7120 esac
7121 fi
7122 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7123 conftest$ac_exeext conftest.$ac_ext
7124 LIBS=$ac_check_lib_save_LIBS ;;
7125 esac
7126 fi
7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7128 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
7129 if test "x$ac_cv_lib_dld_shl_load" = xyes
7130 then :
7131 tcl_ok=yes
7132 else case e in #(
7133 e) tcl_ok=no ;;
7134 esac
7135 fi
7136
7137 if test "$tcl_ok" = yes
7138 then :
7139
7140 SHLIB_CFLAGS="+z"
7141 SHLIB_LD="ld -b"
7142 SHLIB_LD_LIBS=""
7143 LDFLAGS="$LDFLAGS -Wl,-E"
7144 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
7145 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
7146 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7147
7148 fi ;;
7149 IRIX-5.*)
7150 SHLIB_CFLAGS=""
7151 SHLIB_LD="ld -shared -rdata_shared"
7152 SHLIB_SUFFIX=".so"
7153 case " $LIBOBJS " in
7154 *" mkstemp.$ac_objext "* ) ;;
7155 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
7156 ;;
7157 esac
7158
7159 if test $doRpath = yes
7160 then :
7161
7162 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7163 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7164 fi
7165 ;;
7166 IRIX-6.*)
7167 SHLIB_CFLAGS=""
7168 SHLIB_LD="ld -n32 -shared -rdata_shared"
7169 SHLIB_SUFFIX=".so"
7170 if test $doRpath = yes
7171 then :
7172
7173 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7174 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7175 fi
7176 if test "$GCC" = yes
7177 then :
7178
7179 CFLAGS="$CFLAGS -mabi=n32"
7180 LDFLAGS="$LDFLAGS -mabi=n32"
7181
7182 else case e in #(
7183 e)
7184 case $system in
7185 IRIX-6.3)
7186 # Use to build 6.2 compatible binaries on 6.3.
7187 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
7188 ;;
7189 *)
7190 CFLAGS="$CFLAGS -n32"
7191 ;;
7192 esac
7193 LDFLAGS="$LDFLAGS -n32"
7194 ;;
7195 esac
7196 fi
7197 ;;
7198 IRIX64-6.*)
7199 SHLIB_CFLAGS=""
7200 SHLIB_LD="ld -n32 -shared -rdata_shared"
7201 SHLIB_SUFFIX=".so"
7202 if test $doRpath = yes
7203 then :
7204
7205 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7206 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7207 fi
7208
7209 # Check to enable 64-bit flags for compiler/linker
7210
7211 if test "$do64bit" = yes
7212 then :
7213
7214 if test "$GCC" = yes
7215 then :
7216
7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
7218 printf "%s\n" "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
7219
7220 else case e in #(
7221 e)
7222 do64bit_ok=yes
7223 SHLIB_LD="ld -64 -shared -rdata_shared"
7224 CFLAGS="$CFLAGS -64"
7225 LDFLAGS_ARCH="-64"
7226 ;;
7227 esac
7228 fi
7229
7230 fi
7231 ;;
7232 Linux*|GNU*|NetBSD-Debian|DragonFly-*|FreeBSD-*)
7233 SHLIB_CFLAGS="-fPIC"
7234 SHLIB_SUFFIX=".so"
7235
7236 # TEA specific:
7237 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7238
7239 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7240 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS_DEFAULT} -shared'
7241 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7242
7243 case $system in
7244 DragonFly-*|FreeBSD-*)
7245 if test "${TCL_THREADS}" = "1"
7246 then :
7247
7248 # The -pthread needs to go in the LDFLAGS, not LIBS
7249 LIBS=`echo $LIBS | sed s/-pthread//`
7250 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7251 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
7252 fi
7253 ;;
7254 esac
7255
7256 if test $doRpath = yes
7257 then :
7258
7259 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7260 fi
7261 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7262 if test "`uname -m`" = "alpha"
7263 then :
7264 CFLAGS="$CFLAGS -mieee"
7265 fi
7266 if test $do64bit = yes
7267 then :
7268
7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
7270 printf %s "checking if compiler accepts -m64 flag... " >&6; }
7271 if test ${tcl_cv_cc_m64+y}
7272 then :
7273 printf %s "(cached) " >&6
7274 else case e in #(
7275 e)
7276 hold_cflags=$CFLAGS
7277 CFLAGS="$CFLAGS -m64"
7278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h. */
7280
7281 int
7282 main (void)
7283 {
7284
7285 ;
7286 return 0;
7287 }
7288 _ACEOF
7289 if ac_fn_c_try_link "$LINENO"
7290 then :
7291 tcl_cv_cc_m64=yes
7292 else case e in #(
7293 e) tcl_cv_cc_m64=no ;;
7294 esac
7295 fi
7296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7297 conftest$ac_exeext conftest.$ac_ext
7298 CFLAGS=$hold_cflags ;;
7299 esac
7300 fi
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
7302 printf "%s\n" "$tcl_cv_cc_m64" >&6; }
7303 if test $tcl_cv_cc_m64 = yes
7304 then :
7305
7306 CFLAGS="$CFLAGS -m64"
7307 do64bit_ok=yes
7308
7309 fi
7310
7311 fi
7312
7313 # The combo of gcc + glibc has a bug related to inlining of
7314 # functions like strtod(). The -fno-builtin flag should address
7315 # this problem but it does not work. The -fno-inline flag is kind
7316 # of overkill but it works. Disable inlining only when one of the
7317 # files in compat/*.c is being linked in.
7318
7319 if test x"${USE_COMPAT}" != x
7320 then :
7321 CFLAGS="$CFLAGS -fno-inline"
7322 fi
7323 ;;
7324 Lynx*)
7325 SHLIB_CFLAGS="-fPIC"
7326 SHLIB_SUFFIX=".so"
7327 CFLAGS_OPTIMIZE=-02
7328 SHLIB_LD='${CC} -shared'
7329 LD_FLAGS="-Wl,--export-dynamic"
7330 if test $doRpath = yes
7331 then :
7332
7333 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7334 LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7335 fi
7336 ;;
7337 OpenBSD-*)
7338 arch=`arch -s`
7339 case "$arch" in
7340 alpha|sparc64)
7341 SHLIB_CFLAGS="-fPIC"
7342 ;;
7343 *)
7344 SHLIB_CFLAGS="-fpic"
7345 ;;
7346 esac
7347 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
7348 SHLIB_SUFFIX=".so"
7349 if test $doRpath = yes
7350 then :
7351
7352 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7353 fi
7354 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7355 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
7356 LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
7357 CFLAGS_OPTIMIZE="-O2"
7358 # On OpenBSD: Compile with -pthread
7359 # Don't link with -lpthread
7360 LIBS=`echo $LIBS | sed s/-lpthread//`
7361 CFLAGS="$CFLAGS -pthread"
7362 # OpenBSD doesn't do version numbers with dots.
7363 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7364 TCL_LIB_VERSIONS_OK=nodots
7365 ;;
7366 NetBSD-*)
7367 # NetBSD has ELF and can use 'cc -shared' to build shared libs
7368 SHLIB_CFLAGS="-fPIC"
7369 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
7370 SHLIB_SUFFIX=".so"
7371 LDFLAGS="$LDFLAGS -export-dynamic"
7372 if test $doRpath = yes
7373 then :
7374
7375 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7376 fi
7377 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7378 # The -pthread needs to go in the CFLAGS, not LIBS
7379 LIBS=`echo $LIBS | sed s/-pthread//`
7380 CFLAGS="$CFLAGS -pthread"
7381 LDFLAGS="$LDFLAGS -pthread"
7382 ;;
7383 Darwin-*)
7384 CFLAGS_OPTIMIZE="-Os"
7385 SHLIB_CFLAGS="-fno-common"
7386 # To avoid discrepancies between what headers configure sees during
7387 # preprocessing tests and compiling tests, move any -isysroot and
7388 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
7389 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
7390 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7391 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
7392 CFLAGS="`echo " ${CFLAGS}" | \
7393 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7394 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
7395 if test $do64bit = yes
7396 then :
7397
7398 case `arch` in
7399 ppc)
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
7401 printf %s "checking if compiler accepts -arch ppc64 flag... " >&6; }
7402 if test ${tcl_cv_cc_arch_ppc64+y}
7403 then :
7404 printf %s "(cached) " >&6
7405 else case e in #(
7406 e)
7407 hold_cflags=$CFLAGS
7408 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7411
7412 int
7413 main (void)
7414 {
7415
7416 ;
7417 return 0;
7418 }
7419 _ACEOF
7420 if ac_fn_c_try_link "$LINENO"
7421 then :
7422 tcl_cv_cc_arch_ppc64=yes
7423 else case e in #(
7424 e) tcl_cv_cc_arch_ppc64=no ;;
7425 esac
7426 fi
7427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7428 conftest$ac_exeext conftest.$ac_ext
7429 CFLAGS=$hold_cflags ;;
7430 esac
7431 fi
7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
7433 printf "%s\n" "$tcl_cv_cc_arch_ppc64" >&6; }
7434 if test $tcl_cv_cc_arch_ppc64 = yes
7435 then :
7436
7437 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
7438 do64bit_ok=yes
7439
7440 fi;;
7441 i386)
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
7443 printf %s "checking if compiler accepts -arch x86_64 flag... " >&6; }
7444 if test ${tcl_cv_cc_arch_x86_64+y}
7445 then :
7446 printf %s "(cached) " >&6
7447 else case e in #(
7448 e)
7449 hold_cflags=$CFLAGS
7450 CFLAGS="$CFLAGS -arch x86_64"
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7453
7454 int
7455 main (void)
7456 {
7457
7458 ;
7459 return 0;
7460 }
7461 _ACEOF
7462 if ac_fn_c_try_link "$LINENO"
7463 then :
7464 tcl_cv_cc_arch_x86_64=yes
7465 else case e in #(
7466 e) tcl_cv_cc_arch_x86_64=no ;;
7467 esac
7468 fi
7469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7470 conftest$ac_exeext conftest.$ac_ext
7471 CFLAGS=$hold_cflags ;;
7472 esac
7473 fi
7474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
7475 printf "%s\n" "$tcl_cv_cc_arch_x86_64" >&6; }
7476 if test $tcl_cv_cc_arch_x86_64 = yes
7477 then :
7478
7479 CFLAGS="$CFLAGS -arch x86_64"
7480 do64bit_ok=yes
7481
7482 fi;;
7483 *)
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
7485 printf "%s\n" "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
7486 esac
7487
7488 else case e in #(
7489 e)
7490 # Check for combined 32-bit and 64-bit fat build
7491 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
7492 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '
7493 then :
7494
7495 fat_32_64=yes
7496 fi
7497 ;;
7498 esac
7499 fi
7500 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7501 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
7503 printf %s "checking if ld accepts -single_module flag... " >&6; }
7504 if test ${tcl_cv_ld_single_module+y}
7505 then :
7506 printf %s "(cached) " >&6
7507 else case e in #(
7508 e)
7509 hold_ldflags=$LDFLAGS
7510 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7513
7514 int
7515 main (void)
7516 {
7517 int i;
7518 ;
7519 return 0;
7520 }
7521 _ACEOF
7522 if ac_fn_c_try_link "$LINENO"
7523 then :
7524 tcl_cv_ld_single_module=yes
7525 else case e in #(
7526 e) tcl_cv_ld_single_module=no ;;
7527 esac
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7530 conftest$ac_exeext conftest.$ac_ext
7531 LDFLAGS=$hold_ldflags ;;
7532 esac
7533 fi
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
7535 printf "%s\n" "$tcl_cv_ld_single_module" >&6; }
7536 if test $tcl_cv_ld_single_module = yes
7537 then :
7538
7539 SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
7540
7541 fi
7542 # TEA specific: link shlib with current and compatibility version flags
7543 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
7544 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
7545 SHLIB_SUFFIX=".dylib"
7546 LDFLAGS="$LDFLAGS -headerpad_max_install_names"
7547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
7548 printf %s "checking if ld accepts -search_paths_first flag... " >&6; }
7549 if test ${tcl_cv_ld_search_paths_first+y}
7550 then :
7551 printf %s "(cached) " >&6
7552 else case e in #(
7553 e)
7554 hold_ldflags=$LDFLAGS
7555 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558
7559 int
7560 main (void)
7561 {
7562 int i;
7563 ;
7564 return 0;
7565 }
7566 _ACEOF
7567 if ac_fn_c_try_link "$LINENO"
7568 then :
7569 tcl_cv_ld_search_paths_first=yes
7570 else case e in #(
7571 e) tcl_cv_ld_search_paths_first=no ;;
7572 esac
7573 fi
7574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7575 conftest$ac_exeext conftest.$ac_ext
7576 LDFLAGS=$hold_ldflags ;;
7577 esac
7578 fi
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
7580 printf "%s\n" "$tcl_cv_ld_search_paths_first" >&6; }
7581 if test $tcl_cv_ld_search_paths_first = yes
7582 then :
7583
7584 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7585
7586 fi
7587 if test "$tcl_cv_cc_visibility_hidden" != yes
7588 then :
7589
7590
7591 printf "%s\n" "#define MODULE_SCOPE __private_extern__" >>confdefs.h
7592
7593 tcl_cv_cc_visibility_hidden=yes
7594
7595 fi
7596 CC_SEARCH_FLAGS=""
7597 LD_SEARCH_FLAGS=""
7598 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
7599 # TEA specific: for combined 32 & 64 bit fat builds of Tk
7600 # extensions, verify that 64-bit build is possible.
7601 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"
7602 then :
7603
7604 if test "${TEA_WINDOWINGSYSTEM}" = x11
7605 then :
7606
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
7608 printf %s "checking for 64-bit X11... " >&6; }
7609 if test ${tcl_cv_lib_x11_64+y}
7610 then :
7611 printf %s "(cached) " >&6
7612 else case e in #(
7613 e)
7614 for v in CFLAGS CPPFLAGS LDFLAGS; do
7615 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
7616 done
7617 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
7618 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7621 #include <X11/Xlib.h>
7622 int
7623 main (void)
7624 {
7625 XrmInitialize();
7626 ;
7627 return 0;
7628 }
7629 _ACEOF
7630 if ac_fn_c_try_link "$LINENO"
7631 then :
7632 tcl_cv_lib_x11_64=yes
7633 else case e in #(
7634 e) tcl_cv_lib_x11_64=no ;;
7635 esac
7636 fi
7637 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7638 conftest$ac_exeext conftest.$ac_ext
7639 for v in CFLAGS CPPFLAGS LDFLAGS; do
7640 eval $v'="$hold_'$v'"'
7641 done ;;
7642 esac
7643 fi
7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
7645 printf "%s\n" "$tcl_cv_lib_x11_64" >&6; }
7646
7647 fi
7648 if test "${TEA_WINDOWINGSYSTEM}" = aqua
7649 then :
7650
7651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5
7652 printf %s "checking for 64-bit Tk... " >&6; }
7653 if test ${tcl_cv_lib_tk_64+y}
7654 then :
7655 printf %s "(cached) " >&6
7656 else case e in #(
7657 e)
7658 for v in CFLAGS CPPFLAGS LDFLAGS; do
7659 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
7660 done
7661 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
7662 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7665 #include <tk.h>
7666 int
7667 main (void)
7668 {
7669 Tk_InitStubs(NULL, "", 0);
7670 ;
7671 return 0;
7672 }
7673 _ACEOF
7674 if ac_fn_c_try_link "$LINENO"
7675 then :
7676 tcl_cv_lib_tk_64=yes
7677 else case e in #(
7678 e) tcl_cv_lib_tk_64=no ;;
7679 esac
7680 fi
7681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7682 conftest$ac_exeext conftest.$ac_ext
7683 for v in CFLAGS CPPFLAGS LDFLAGS; do
7684 eval $v'="$hold_'$v'"'
7685 done ;;
7686 esac
7687 fi
7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5
7689 printf "%s\n" "$tcl_cv_lib_tk_64" >&6; }
7690
7691 fi
7692 # remove 64-bit arch flags from CFLAGS et al. if configuration
7693 # does not support 64-bit.
7694 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no
7695 then :
7696
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
7698 printf "%s\n" "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
7699 for v in CFLAGS CPPFLAGS LDFLAGS; do
7700 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
7701 done
7702 fi
7703
7704 fi
7705 ;;
7706 OS/390-*)
7707 CFLAGS_OPTIMIZE="" # Optimizer is buggy
7708
7709 printf "%s\n" "#define _OE_SOCKETS 1" >>confdefs.h
7710
7711 ;;
7712 OSF1-V*)
7713 # Digital OSF/1
7714 SHLIB_CFLAGS=""
7715 if test "$SHARED_BUILD" = 1
7716 then :
7717
7718 SHLIB_LD='ld -shared -expect_unresolved "*"'
7719
7720 else case e in #(
7721 e)
7722 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
7723 ;;
7724 esac
7725 fi
7726 SHLIB_SUFFIX=".so"
7727 if test $doRpath = yes
7728 then :
7729
7730 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7731 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7732 fi
7733 if test "$GCC" = yes
7734 then :
7735 CFLAGS="$CFLAGS -mieee"
7736 else case e in #(
7737 e)
7738 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" ;;
7739 esac
7740 fi
7741 # see pthread_intro(3) for pthread support on osf1, k.furukawa
7742 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
7743 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
7744 LIBS=`echo $LIBS | sed s/-lpthreads//`
7745 if test "$GCC" = yes
7746 then :
7747
7748 LIBS="$LIBS -lpthread -lmach -lexc"
7749
7750 else case e in #(
7751 e)
7752 CFLAGS="$CFLAGS -pthread"
7753 LDFLAGS="$LDFLAGS -pthread"
7754 ;;
7755 esac
7756 fi
7757 ;;
7758 QNX-6*)
7759 # QNX RTP
7760 # This may work for all QNX, but it was only reported for v6.
7761 SHLIB_CFLAGS="-fPIC"
7762 SHLIB_LD="ld -Bshareable -x"
7763 SHLIB_LD_LIBS=""
7764 SHLIB_SUFFIX=".so"
7765 CC_SEARCH_FLAGS=""
7766 LD_SEARCH_FLAGS=""
7767 ;;
7768 SCO_SV-3.2*)
7769 if test "$GCC" = yes
7770 then :
7771
7772 SHLIB_CFLAGS="-fPIC -melf"
7773 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
7774
7775 else case e in #(
7776 e)
7777 SHLIB_CFLAGS="-Kpic -belf"
7778 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
7779 ;;
7780 esac
7781 fi
7782 SHLIB_LD="ld -G"
7783 SHLIB_LD_LIBS=""
7784 SHLIB_SUFFIX=".so"
7785 CC_SEARCH_FLAGS=""
7786 LD_SEARCH_FLAGS=""
7787 ;;
7788 SunOS-5.[0-6])
7789 # Careful to not let 5.10+ fall into this case
7790
7791 # Note: If _REENTRANT isn't defined, then Solaris
7792 # won't define thread-safe library routines.
7793
7794
7795 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
7796
7797
7798 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7799
7800
7801 SHLIB_CFLAGS="-KPIC"
7802 SHLIB_SUFFIX=".so"
7803 if test "$GCC" = yes
7804 then :
7805
7806 SHLIB_LD='${CC} -shared'
7807 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
7808 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7809
7810 else case e in #(
7811 e)
7812 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7813 CC_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
7814 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7815 ;;
7816 esac
7817 fi
7818 ;;
7819 SunOS-5*)
7820 # Note: If _REENTRANT isn't defined, then Solaris
7821 # won't define thread-safe library routines.
7822
7823
7824 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
7825
7826
7827 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7828
7829
7830 SHLIB_CFLAGS="-KPIC"
7831
7832 # Check to enable 64-bit flags for compiler/linker
7833 if test "$do64bit" = yes
7834 then :
7835
7836 arch=`isainfo`
7837 if test "$arch" = "sparcv9 sparc"
7838 then :
7839
7840 if test "$GCC" = yes
7841 then :
7842
7843 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3
7844 then :
7845
7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
7847 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
7848
7849 else case e in #(
7850 e)
7851 do64bit_ok=yes
7852 CFLAGS="$CFLAGS -m64 -mcpu=v9"
7853 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
7854 SHLIB_CFLAGS="-fPIC"
7855 ;;
7856 esac
7857 fi
7858
7859 else case e in #(
7860 e)
7861 do64bit_ok=yes
7862 if test "$do64bitVIS" = yes
7863 then :
7864
7865 CFLAGS="$CFLAGS -xarch=v9a"
7866 LDFLAGS_ARCH="-xarch=v9a"
7867
7868 else case e in #(
7869 e)
7870 CFLAGS="$CFLAGS -xarch=v9"
7871 LDFLAGS_ARCH="-xarch=v9"
7872 ;;
7873 esac
7874 fi
7875 # Solaris 64 uses this as well
7876 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
7877 ;;
7878 esac
7879 fi
7880
7881 else case e in #(
7882 e) if test "$arch" = "amd64 i386"
7883 then :
7884
7885 if test "$GCC" = yes
7886 then :
7887
7888 case $system in
7889 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
7890 do64bit_ok=yes
7891 CFLAGS="$CFLAGS -m64"
7892 LDFLAGS="$LDFLAGS -m64";;
7893 *)
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7895 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
7896 esac
7897
7898 else case e in #(
7899 e)
7900 do64bit_ok=yes
7901 case $system in
7902 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
7903 CFLAGS="$CFLAGS -m64"
7904 LDFLAGS="$LDFLAGS -m64";;
7905 *)
7906 CFLAGS="$CFLAGS -xarch=amd64"
7907 LDFLAGS="$LDFLAGS -xarch=amd64";;
7908 esac
7909 ;;
7910 esac
7911 fi
7912
7913 else case e in #(
7914 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
7915 printf "%s\n" "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} ;;
7916 esac
7917 fi ;;
7918 esac
7919 fi
7920
7921 fi
7922
7923 SHLIB_SUFFIX=".so"
7924 if test "$GCC" = yes
7925 then :
7926
7927 SHLIB_LD='${CC} -shared'
7928 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
7929 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7930 if test "$do64bit_ok" = yes
7931 then :
7932
7933 if test "$arch" = "sparcv9 sparc"
7934 then :
7935
7936 # We need to specify -static-libgcc or we need to
7937 # add the path to the sparv9 libgcc.
7938 # JH: static-libgcc is necessary for core Tcl, but may
7939 # not be necessary for extensions.
7940 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
7941 # for finding sparcv9 libgcc, get the regular libgcc
7942 # path, remove so name and append 'sparcv9'
7943 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
7944 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
7945
7946 else case e in #(
7947 e) if test "$arch" = "amd64 i386"
7948 then :
7949
7950 # JH: static-libgcc is necessary for core Tcl, but may
7951 # not be necessary for extensions.
7952 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
7953
7954 fi ;;
7955 esac
7956 fi
7957
7958 fi
7959
7960 else case e in #(
7961 e)
7962 case $system in
7963 SunOS-5.[1-9][0-9]*)
7964 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7965 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
7966 *)
7967 SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
7968 esac
7969 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
7970 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
7971 ;;
7972 esac
7973 fi
7974 ;;
7975 UNIX_SV* | UnixWare-5*)
7976 SHLIB_CFLAGS="-KPIC"
7977 SHLIB_LD='${CC} -G'
7978 SHLIB_LD_LIBS=""
7979 SHLIB_SUFFIX=".so"
7980 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
7981 # that don't grok the -Bexport option. Test that it does.
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
7983 printf %s "checking for ld accepts -Bexport flag... " >&6; }
7984 if test ${tcl_cv_ld_Bexport+y}
7985 then :
7986 printf %s "(cached) " >&6
7987 else case e in #(
7988 e)
7989 hold_ldflags=$LDFLAGS
7990 LDFLAGS="$LDFLAGS -Wl,-Bexport"
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7993
7994 int
7995 main (void)
7996 {
7997 int i;
7998 ;
7999 return 0;
8000 }
8001 _ACEOF
8002 if ac_fn_c_try_link "$LINENO"
8003 then :
8004 tcl_cv_ld_Bexport=yes
8005 else case e in #(
8006 e) tcl_cv_ld_Bexport=no ;;
8007 esac
8008 fi
8009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8010 conftest$ac_exeext conftest.$ac_ext
8011 LDFLAGS=$hold_ldflags ;;
8012 esac
8013 fi
8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
8015 printf "%s\n" "$tcl_cv_ld_Bexport" >&6; }
8016 if test $tcl_cv_ld_Bexport = yes
8017 then :
8018
8019 LDFLAGS="$LDFLAGS -Wl,-Bexport"
8020
8021 fi
8022 CC_SEARCH_FLAGS=""
8023 LD_SEARCH_FLAGS=""
8024 ;;
8025 esac
8026
8027 if test "$do64bit" = yes -a "$do64bit_ok" = no
8028 then :
8029
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
8031 printf "%s\n" "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
8032
8033 fi
8034
8035
8036
8037 # Add in the arch flags late to ensure it wasn't removed.
8038 # Not necessary in TEA, but this is aligned with core
8039 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
8040
8041 # If we're running gcc, then change the C flags for compiling shared
8042 # libraries to the right flags for gcc, instead of those for the
8043 # standard manufacturer compiler.
8044
8045 if test "$GCC" = yes
8046 then :
8047
8048 case $system in
8049 AIX-*) ;;
8050 BSD/OS*) ;;
8051 CYGWIN_*|MINGW32_*|MINGW64_*|MSYS_*) ;;
8052 IRIX*) ;;
8053 NetBSD-*|DragonFly-*|FreeBSD-*|OpenBSD-*) ;;
8054 Darwin-*) ;;
8055 SCO_SV-3.2*) ;;
8056 windows) ;;
8057 *) SHLIB_CFLAGS="-fPIC" ;;
8058 esac
8059 fi
8060
8061 if test "$tcl_cv_cc_visibility_hidden" != yes
8062 then :
8063
8064
8065 printf "%s\n" "#define MODULE_SCOPE extern" >>confdefs.h
8066
8067
8068 fi
8069
8070 if test "$SHARED_LIB_SUFFIX" = ""
8071 then :
8072
8073 # TEA specific: use PACKAGE_VERSION instead of VERSION
8074 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
8075 fi
8076 if test "$UNSHARED_LIB_SUFFIX" = ""
8077 then :
8078
8079 # TEA specific: use PACKAGE_VERSION instead of VERSION
8080 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
8081 fi
8082
8083 if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then
8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5
8085 printf %s "checking for SEH support in compiler... " >&6; }
8086 if test ${tcl_cv_seh+y}
8087 then :
8088 printf %s "(cached) " >&6
8089 else case e in #(
8090 e) if test "$cross_compiling" = yes
8091 then :
8092 tcl_cv_seh=no
8093 else case e in #(
8094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8096
8097 #define WIN32_LEAN_AND_MEAN
8098 #include <windows.h>
8099 #undef WIN32_LEAN_AND_MEAN
8100
8101 int main(int argc, char** argv) {
8102 int a, b = 0;
8103 __try {
8104 a = 666 / b;
8105 }
8106 __except (EXCEPTION_EXECUTE_HANDLER) {
8107 return 0;
8108 }
8109 return 1;
8110 }
8111
8112 _ACEOF
8113 if ac_fn_c_try_run "$LINENO"
8114 then :
8115 tcl_cv_seh=yes
8116 else case e in #(
8117 e) tcl_cv_seh=no ;;
8118 esac
8119 fi
8120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8121 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8122 esac
8123 fi
8124
8125 ;;
8126 esac
8127 fi
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5
8129 printf "%s\n" "$tcl_cv_seh" >&6; }
8130 if test "$tcl_cv_seh" = "no" ; then
8131
8132 printf "%s\n" "#define HAVE_NO_SEH 1" >>confdefs.h
8133
8134 fi
8135
8136 #
8137 # Check to see if the excpt.h include file provided contains the
8138 # definition for EXCEPTION_DISPOSITION; if not, which is the case
8139 # with Cygwin's version as of 2002-04-10, define it to be int,
8140 # sufficient for getting the current code to work.
8141 #
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5
8143 printf %s "checking for EXCEPTION_DISPOSITION support in include files... " >&6; }
8144 if test ${tcl_cv_eh_disposition+y}
8145 then :
8146 printf %s "(cached) " >&6
8147 else case e in #(
8148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150
8151 # define WIN32_LEAN_AND_MEAN
8152 # include <windows.h>
8153 # undef WIN32_LEAN_AND_MEAN
8154
8155 int
8156 main (void)
8157 {
8158
8159 EXCEPTION_DISPOSITION x;
8160
8161 ;
8162 return 0;
8163 }
8164 _ACEOF
8165 if ac_fn_c_try_compile "$LINENO"
8166 then :
8167 tcl_cv_eh_disposition=yes
8168 else case e in #(
8169 e) tcl_cv_eh_disposition=no ;;
8170 esac
8171 fi
8172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8173 ;;
8174 esac
8175 fi
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5
8177 printf "%s\n" "$tcl_cv_eh_disposition" >&6; }
8178 if test "$tcl_cv_eh_disposition" = "no" ; then
8179
8180 printf "%s\n" "#define EXCEPTION_DISPOSITION int" >>confdefs.h
8181
8182 fi
8183
8184 # Check to see if winnt.h defines CHAR, SHORT, and LONG
8185 # even if VOID has already been #defined. The win32api
8186 # used by mingw and cygwin is known to do this.
8187
8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5
8189 printf %s "checking for winnt.h that ignores VOID define... " >&6; }
8190 if test ${tcl_cv_winnt_ignore_void+y}
8191 then :
8192 printf %s "(cached) " >&6
8193 else case e in #(
8194 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196
8197 #define VOID void
8198 #define WIN32_LEAN_AND_MEAN
8199 #include <windows.h>
8200 #undef WIN32_LEAN_AND_MEAN
8201
8202 int
8203 main (void)
8204 {
8205
8206 CHAR c;
8207 SHORT s;
8208 LONG l;
8209
8210 ;
8211 return 0;
8212 }
8213 _ACEOF
8214 if ac_fn_c_try_compile "$LINENO"
8215 then :
8216 tcl_cv_winnt_ignore_void=yes
8217 else case e in #(
8218 e) tcl_cv_winnt_ignore_void=no ;;
8219 esac
8220 fi
8221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8222 ;;
8223 esac
8224 fi
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5
8226 printf "%s\n" "$tcl_cv_winnt_ignore_void" >&6; }
8227 if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
8228
8229 printf "%s\n" "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h
8230
8231 fi
8232 fi
8233
8234 # See if the compiler supports casting to a union type.
8235 # This is used to stop gcc from printing a compiler
8236 # warning when initializing a union member.
8237
8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5
8239 printf %s "checking for cast to union support... " >&6; }
8240 if test ${tcl_cv_cast_to_union+y}
8241 then :
8242 printf %s "(cached) " >&6
8243 else case e in #(
8244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8246
8247 int
8248 main (void)
8249 {
8250
8251 union foo { int i; double d; };
8252 union foo f = (union foo) (int) 0;
8253
8254 ;
8255 return 0;
8256 }
8257 _ACEOF
8258 if ac_fn_c_try_compile "$LINENO"
8259 then :
8260 tcl_cv_cast_to_union=yes
8261 else case e in #(
8262 e) tcl_cv_cast_to_union=no ;;
8263 esac
8264 fi
8265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8266 ;;
8267 esac
8268 fi
8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5
8270 printf "%s\n" "$tcl_cv_cast_to_union" >&6; }
8271 if test "$tcl_cv_cast_to_union" = "yes"; then
8272
8273 printf "%s\n" "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
8274
8275 fi
8276
8277 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
8278 if test "x$ac_cv_header_stdbool_h" = xyes
8279 then :
8280
8281 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
8282
8283 fi
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300 # These must be called after we do the basic CFLAGS checks and
8301 # verify any possible 64-bit or similar switches are necessary
8302
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
8304 printf %s "checking for required early compiler flags... " >&6; }
8305 tcl_flags=""
8306
8307 if test ${tcl_cv_flag__isoc99_source+y}
8308 then :
8309 printf %s "(cached) " >&6
8310 else case e in #(
8311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8313 #include <stdlib.h>
8314 int
8315 main (void)
8316 {
8317 char *p = (char *)strtoll; char *q = (char *)strtoull;
8318 ;
8319 return 0;
8320 }
8321 _ACEOF
8322 if ac_fn_c_try_compile "$LINENO"
8323 then :
8324 tcl_cv_flag__isoc99_source=no
8325 else case e in #(
8326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 #define _ISOC99_SOURCE 1
8329 #include <stdlib.h>
8330 int
8331 main (void)
8332 {
8333 char *p = (char *)strtoll; char *q = (char *)strtoull;
8334 ;
8335 return 0;
8336 }
8337 _ACEOF
8338 if ac_fn_c_try_compile "$LINENO"
8339 then :
8340 tcl_cv_flag__isoc99_source=yes
8341 else case e in #(
8342 e) tcl_cv_flag__isoc99_source=no ;;
8343 esac
8344 fi
8345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8346 esac
8347 fi
8348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8349 esac
8350 fi
8351
8352 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
8353
8354 printf "%s\n" "#define _ISOC99_SOURCE 1" >>confdefs.h
8355
8356 tcl_flags="$tcl_flags _ISOC99_SOURCE"
8357 fi
8358
8359 if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
8360
8361 if test ${tcl_cv_flag__file_offset_bits+y}
8362 then :
8363 printf %s "(cached) " >&6
8364 else case e in #(
8365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8367 #include <sys/stat.h>
8368 int
8369 main (void)
8370 {
8371 switch (0) { case 0: case (sizeof(off_t)==sizeof(long long)): ; }
8372 ;
8373 return 0;
8374 }
8375 _ACEOF
8376 if ac_fn_c_try_compile "$LINENO"
8377 then :
8378 tcl_cv_flag__file_offset_bits=no
8379 else case e in #(
8380 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8382 #define _FILE_OFFSET_BITS 64
8383 #include <sys/stat.h>
8384 int
8385 main (void)
8386 {
8387 switch (0) { case 0: case (sizeof(off_t)==sizeof(long long)): ; }
8388 ;
8389 return 0;
8390 }
8391 _ACEOF
8392 if ac_fn_c_try_compile "$LINENO"
8393 then :
8394 tcl_cv_flag__file_offset_bits=yes
8395 else case e in #(
8396 e) tcl_cv_flag__file_offset_bits=no ;;
8397 esac
8398 fi
8399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8400 esac
8401 fi
8402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8403 esac
8404 fi
8405
8406 if test "x${tcl_cv_flag__file_offset_bits}" = "xyes" ; then
8407
8408 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
8409
8410 tcl_flags="$tcl_flags _FILE_OFFSET_BITS"
8411 fi
8412
8413 fi
8414 if test "x${tcl_flags}" = "x" ; then
8415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8416 printf "%s\n" "none" >&6; }
8417 else
8418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
8419 printf "%s\n" "${tcl_flags}" >&6; }
8420 fi
8421
8422
8423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
8424 printf %s "checking for 64-bit integer type... " >&6; }
8425 if test ${tcl_cv_type_64bit+y}
8426 then :
8427 printf %s "(cached) " >&6
8428 else case e in #(
8429 e)
8430 tcl_cv_type_64bit=none
8431 # See if the compiler knows natively about __int64
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8434
8435 int
8436 main (void)
8437 {
8438 __int64 value = (__int64) 0;
8439 ;
8440 return 0;
8441 }
8442 _ACEOF
8443 if ac_fn_c_try_compile "$LINENO"
8444 then :
8445 tcl_type_64bit=__int64
8446 else case e in #(
8447 e) tcl_type_64bit="long long" ;;
8448 esac
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8451 # See if we could use long anyway Note that we substitute in the
8452 # type that is our current guess for a 64-bit type inside this check
8453 # program, so it should be modified only carefully...
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8456
8457 int
8458 main (void)
8459 {
8460 switch (0) {
8461 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
8462 }
8463 ;
8464 return 0;
8465 }
8466 _ACEOF
8467 if ac_fn_c_try_compile "$LINENO"
8468 then :
8469 tcl_cv_type_64bit=${tcl_type_64bit}
8470 fi
8471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8472 esac
8473 fi
8474
8475 if test "${tcl_cv_type_64bit}" = none ; then
8476
8477 printf "%s\n" "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
8478
8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8480 printf "%s\n" "yes" >&6; }
8481 elif test "${tcl_cv_type_64bit}" = "__int64" \
8482 -a "${TEA_PLATFORM}" = "windows" ; then
8483 # TEA specific: We actually want to use the default tcl.h checks in
8484 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
8486 printf "%s\n" "using Tcl header defaults" >&6; }
8487 else
8488
8489 printf "%s\n" "#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}" >>confdefs.h
8490
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
8492 printf "%s\n" "${tcl_cv_type_64bit}" >&6; }
8493
8494 # Now check for auxiliary declarations
8495 if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t" >&5
8497 printf %s "checking for 64-bit time_t... " >&6; }
8498 if test ${tcl_cv_time_t_64+y}
8499 then :
8500 printf %s "(cached) " >&6
8501 else case e in #(
8502 e)
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 #include <sys/types.h>
8506 int
8507 main (void)
8508 {
8509 switch (0) {case 0: case (sizeof(time_t)==sizeof(long long)): ;}
8510 ;
8511 return 0;
8512 }
8513 _ACEOF
8514 if ac_fn_c_try_compile "$LINENO"
8515 then :
8516 tcl_cv_time_t_64=yes
8517 else case e in #(
8518 e) tcl_cv_time_t_64=no ;;
8519 esac
8520 fi
8521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8522 esac
8523 fi
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_time_t_64" >&5
8525 printf "%s\n" "$tcl_cv_time_t_64" >&6; }
8526 if test "x${tcl_cv_time_t_64}" = "xno" ; then
8527 # Note that _TIME_BITS=64 requires _FILE_OFFSET_BITS=64
8528 # which SC_TCL_EARLY_FLAGS has defined if necessary.
8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _TIME_BITS=64 enables 64-bit time_t" >&5
8530 printf %s "checking if _TIME_BITS=64 enables 64-bit time_t... " >&6; }
8531 if test ${tcl_cv__time_bits+y}
8532 then :
8533 printf %s "(cached) " >&6
8534 else case e in #(
8535 e)
8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h. */
8538 #define _TIME_BITS 64
8539 #include <sys/types.h>
8540 int
8541 main (void)
8542 {
8543 switch (0) {case 0: case (sizeof(time_t)==sizeof(long long)): ;}
8544 ;
8545 return 0;
8546 }
8547 _ACEOF
8548 if ac_fn_c_try_compile "$LINENO"
8549 then :
8550 tcl_cv__time_bits=yes
8551 else case e in #(
8552 e) tcl_cv__time_bits=no ;;
8553 esac
8554 fi
8555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8556 esac
8557 fi
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv__time_bits" >&5
8559 printf "%s\n" "$tcl_cv__time_bits" >&6; }
8560 if test "x${tcl_cv__time_bits}" = "xyes" ; then
8561
8562 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
8563
8564 fi
8565 fi
8566 fi
8567
8568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
8569 printf %s "checking for struct dirent64... " >&6; }
8570 if test ${tcl_cv_struct_dirent64+y}
8571 then :
8572 printf %s "(cached) " >&6
8573 else case e in #(
8574 e)
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 #include <sys/types.h>
8578 #include <dirent.h>
8579 int
8580 main (void)
8581 {
8582 struct dirent64 p;
8583 ;
8584 return 0;
8585 }
8586 _ACEOF
8587 if ac_fn_c_try_compile "$LINENO"
8588 then :
8589 tcl_cv_struct_dirent64=yes
8590 else case e in #(
8591 e) tcl_cv_struct_dirent64=no ;;
8592 esac
8593 fi
8594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8595 esac
8596 fi
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
8598 printf "%s\n" "$tcl_cv_struct_dirent64" >&6; }
8599 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
8600
8601 printf "%s\n" "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
8602
8603 fi
8604
8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DIR64" >&5
8606 printf %s "checking for DIR64... " >&6; }
8607 if test ${tcl_cv_DIR64+y}
8608 then :
8609 printf %s "(cached) " >&6
8610 else case e in #(
8611 e)
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8614 #include <sys/types.h>
8615 #include <dirent.h>
8616 int
8617 main (void)
8618 {
8619 struct dirent64 *p; DIR64 d = opendir64(".");
8620 p = readdir64(d); rewinddir64(d); closedir64(d);
8621 ;
8622 return 0;
8623 }
8624 _ACEOF
8625 if ac_fn_c_try_compile "$LINENO"
8626 then :
8627 tcl_cv_DIR64=yes
8628 else case e in #(
8629 e) tcl_cv_DIR64=no ;;
8630 esac
8631 fi
8632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8633 esac
8634 fi
8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_DIR64" >&5
8636 printf "%s\n" "$tcl_cv_DIR64" >&6; }
8637 if test "x${tcl_cv_DIR64}" = "xyes" ; then
8638
8639 printf "%s\n" "#define HAVE_DIR64 1" >>confdefs.h
8640
8641 fi
8642
8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
8644 printf %s "checking for struct stat64... " >&6; }
8645 if test ${tcl_cv_struct_stat64+y}
8646 then :
8647 printf %s "(cached) " >&6
8648 else case e in #(
8649 e)
8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8652 #include <sys/stat.h>
8653 int
8654 main (void)
8655 {
8656 struct stat64 p;
8657
8658 ;
8659 return 0;
8660 }
8661 _ACEOF
8662 if ac_fn_c_try_compile "$LINENO"
8663 then :
8664 tcl_cv_struct_stat64=yes
8665 else case e in #(
8666 e) tcl_cv_struct_stat64=no ;;
8667 esac
8668 fi
8669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8670 esac
8671 fi
8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
8673 printf "%s\n" "$tcl_cv_struct_stat64" >&6; }
8674 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
8675
8676 printf "%s\n" "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
8677
8678 fi
8679
8680 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
8681 if test "x$ac_cv_func_open64" = xyes
8682 then :
8683 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
8684
8685 fi
8686 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
8687 if test "x$ac_cv_func_lseek64" = xyes
8688 then :
8689 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
8690
8691 fi
8692
8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
8694 printf %s "checking for off64_t... " >&6; }
8695 if test ${tcl_cv_type_off64_t+y}
8696 then :
8697 printf %s "(cached) " >&6
8698 else case e in #(
8699 e)
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8702 #include <sys/types.h>
8703 int
8704 main (void)
8705 {
8706 off64_t offset;
8707
8708 ;
8709 return 0;
8710 }
8711 _ACEOF
8712 if ac_fn_c_try_compile "$LINENO"
8713 then :
8714 tcl_cv_type_off64_t=yes
8715 else case e in #(
8716 e) tcl_cv_type_off64_t=no ;;
8717 esac
8718 fi
8719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8720 esac
8721 fi
8722
8723 if test "x${tcl_cv_type_off64_t}" = "xyes" && \
8724 test "x${ac_cv_func_lseek64}" = "xyes" && \
8725 test "x${ac_cv_func_open64}" = "xyes" ; then
8726
8727 printf "%s\n" "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
8728
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8730 printf "%s\n" "yes" >&6; }
8731 else
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733 printf "%s\n" "no" >&6; }
8734 fi
8735 fi
8736
8737
8738
8739
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
8741 printf %s "checking for build with symbols... " >&6; }
8742 # Check whether --enable-symbols was given.
8743 if test ${enable_symbols+y}
8744 then :
8745 enableval=$enable_symbols; tcl_ok=$enableval
8746 else case e in #(
8747 e) tcl_ok=no ;;
8748 esac
8749 fi
8750
8751 if test "$tcl_ok" = "no"; then
8752 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG"
8753 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
8754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 printf "%s\n" "no" >&6; }
8756
8757 printf "%s\n" "#define TCL_CFG_OPTIMIZED 1" >>confdefs.h
8758
8759 else
8760 CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
8761 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
8762 if test "$tcl_ok" = "yes"; then
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
8764 printf "%s\n" "yes (standard debugging)" >&6; }
8765 fi
8766 fi
8767
8768
8769
8770 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
8771
8772 printf "%s\n" "#define TCL_MEM_DEBUG 1" >>confdefs.h
8773
8774 fi
8775
8776 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
8777 if test "$tcl_ok" = "all"; then
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
8779 printf "%s\n" "enabled symbols mem debugging" >&6; }
8780 else
8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
8782 printf "%s\n" "enabled $tcl_ok debugging" >&6; }
8783 fi
8784 fi
8785
8786
8787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
8788 printf %s "checking for egrep -e... " >&6; }
8789 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
8790 then :
8791 printf %s "(cached) " >&6
8792 else case e in #(
8793 e) if test -z "$EGREP_TRADITIONAL"; then
8794 ac_path_EGREP_TRADITIONAL_found=false
8795 # Loop through the user's path and test for each of PROGNAME-LIST
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8798 do
8799 IFS=$as_save_IFS
8800 case $as_dir in #(((
8801 '') as_dir=./ ;;
8802 */) ;;
8803 *) as_dir=$as_dir/ ;;
8804 esac
8805 for ac_prog in grep ggrep
8806 do
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
8809 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
8810 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
8811 # Check for GNU $ac_path_EGREP_TRADITIONAL
8812 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
8813 *GNU*)
8814 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
8815 #(
8816 *)
8817 ac_count=0
8818 printf %s 0123456789 >"conftest.in"
8819 while :
8820 do
8821 cat "conftest.in" "conftest.in" >"conftest.tmp"
8822 mv "conftest.tmp" "conftest.in"
8823 cp "conftest.in" "conftest.nl"
8824 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
8825 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8827 as_fn_arith $ac_count + 1 && ac_count=$as_val
8828 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
8829 # Best one so far, save it but keep looking for a better one
8830 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
8831 ac_path_EGREP_TRADITIONAL_max=$ac_count
8832 fi
8833 # 10*(2^10) chars as input seems more than enough
8834 test $ac_count -gt 10 && break
8835 done
8836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8837 esac
8838
8839 $ac_path_EGREP_TRADITIONAL_found && break 3
8840 done
8841 done
8842 done
8843 IFS=$as_save_IFS
8844 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
8845 :
8846 fi
8847 else
8848 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
8849 fi
8850
8851 if test "$ac_cv_path_EGREP_TRADITIONAL"
8852 then :
8853 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
8854 else case e in #(
8855 e) if test -z "$EGREP_TRADITIONAL"; then
8856 ac_path_EGREP_TRADITIONAL_found=false
8857 # Loop through the user's path and test for each of PROGNAME-LIST
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8860 do
8861 IFS=$as_save_IFS
8862 case $as_dir in #(((
8863 '') as_dir=./ ;;
8864 */) ;;
8865 *) as_dir=$as_dir/ ;;
8866 esac
8867 for ac_prog in egrep
8868 do
8869 for ac_exec_ext in '' $ac_executable_extensions; do
8870 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
8871 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
8872 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
8873 # Check for GNU $ac_path_EGREP_TRADITIONAL
8874 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
8875 *GNU*)
8876 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
8877 #(
8878 *)
8879 ac_count=0
8880 printf %s 0123456789 >"conftest.in"
8881 while :
8882 do
8883 cat "conftest.in" "conftest.in" >"conftest.tmp"
8884 mv "conftest.tmp" "conftest.in"
8885 cp "conftest.in" "conftest.nl"
8886 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
8887 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8889 as_fn_arith $ac_count + 1 && ac_count=$as_val
8890 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
8891 # Best one so far, save it but keep looking for a better one
8892 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
8893 ac_path_EGREP_TRADITIONAL_max=$ac_count
8894 fi
8895 # 10*(2^10) chars as input seems more than enough
8896 test $ac_count -gt 10 && break
8897 done
8898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8899 esac
8900
8901 $ac_path_EGREP_TRADITIONAL_found && break 3
8902 done
8903 done
8904 done
8905 IFS=$as_save_IFS
8906 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
8907 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8908 fi
8909 else
8910 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
8911 fi
8912 ;;
8913 esac
8914 fi ;;
8915 esac
8916 fi
8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
8918 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
8919 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
8920
8921
8922 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
8923 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
8924 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927
8928 #if defined(_MSC_VER) && _MSC_VER >= 1400
8929 print("manifest needed")
8930 #endif
8931
8932 _ACEOF
8933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8934 $EGREP_TRADITIONAL "manifest needed" >/dev/null 2>&1
8935 then :
8936
8937 # Could do a CHECK_PROG for mt, but should always be with MSVC8+
8938 VC_MANIFEST_EMBED_DLL="if test -f \[email protected] ; then mt.exe -nologo -manifest \[email protected] -outputresource:\$@\;2 ; fi"
8939 VC_MANIFEST_EMBED_EXE="if test -f \[email protected] ; then mt.exe -nologo -manifest \[email protected] -outputresource:\$@\;1 ; fi"
8940 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
8941
8942 CLEANFILES="$CLEANFILES *.manifest"
8943
8944
8945 fi
8946 rm -rf conftest*
8947
8948 MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)"
8949 else
8950 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
8951 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
8952 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
8953 fi
8954
8955 if test "${SHARED_BUILD}" = "1" ; then
8956 MAKE_LIB="${MAKE_SHARED_LIB} "
8957 else
8958 MAKE_LIB="${MAKE_STATIC_LIB} "
8959 fi
8960
8961 #--------------------------------------------------------------------
8962 # Shared libraries and static libraries have different names.
8963 # Use the double eval to make sure any variables in the suffix is
8964 # substituted. (@@@ Might not be necessary anymore)
8965 #--------------------------------------------------------------------
8966
8967 PACKAGE_LIB_PREFIX8="${PACKAGE_LIB_PREFIX}"
8968 PACKAGE_LIB_PREFIX9="${PACKAGE_LIB_PREFIX}tcl9"
8969 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" == x; then
8970 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX9}"
8971 else
8972 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX8}"
8973
8974 printf "%s\n" "#define TCL_MAJOR_VERSION 8" >>confdefs.h
8975
8976 fi
8977 if test "${TEA_PLATFORM}" = "windows" ; then
8978 if test "${SHARED_BUILD}" = "1" ; then
8979 # We force the unresolved linking of symbols that are really in
8980 # the private libraries of Tcl and Tk.
8981 if test x"${TK_BIN_DIR}" != x ; then
8982 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
8983 fi
8984 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
8985 if test "$GCC" = "yes"; then
8986 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc"
8987 fi
8988 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
8989 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
8990 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
8991 else
8992 if test "$GCC" = "yes"; then
8993 PACKAGE_LIB_PREFIX=lib${PACKAGE_LIB_PREFIX}
8994 fi
8995 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
8996 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
8997 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
8998 fi
8999 # Some packages build their own stubs libraries
9000 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" == x; then
9001 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub.a"
9002 else
9003 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
9004 fi
9005 if test "$GCC" = "yes"; then
9006 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
9007 fi
9008 # These aren't needed on Windows (either MSVC or gcc)
9009 RANLIB=:
9010 RANLIB_STUB=:
9011 else
9012 RANLIB_STUB="${RANLIB}"
9013 if test "${SHARED_BUILD}" = "1" ; then
9014 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
9015 if test x"${TK_BIN_DIR}" != x ; then
9016 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
9017 fi
9018 eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9019 eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9020 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9021 RANLIB=:
9022 else
9023 eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9024 eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9025 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9026 fi
9027 # Some packages build their own stubs libraries
9028 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" == x; then
9029 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub.a"
9030 else
9031 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
9032 fi
9033 fi
9034
9035 # These are escaped so that only CFLAGS is picked up at configure time.
9036 # The other values will be substituted at make time.
9037 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
9038 if test "${SHARED_BUILD}" = "1" ; then
9039 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
9040 fi
9041
9042
9043
9044
9045
9046 # Substitute STUB_LIB_FILE in case package creates a stub library too.
9047
9048
9049
9050
9051
9052
9053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
9054 printf %s "checking how to build libraries... " >&6; }
9055 # Check whether --enable-shared was given.
9056 if test ${enable_shared+y}
9057 then :
9058 enableval=$enable_shared; shared_ok=$enableval
9059 else case e in #(
9060 e) shared_ok=yes ;;
9061 esac
9062 fi
9063
9064
9065 if test "${enable_shared+set}" = set; then
9066 enableval="$enable_shared"
9067 shared_ok=$enableval
9068 else
9069 shared_ok=yes
9070 fi
9071
9072 # Check whether --enable-stubs was given.
9073 if test ${enable_stubs+y}
9074 then :
9075 enableval=$enable_stubs; stubs_ok=$enableval
9076 else case e in #(
9077 e) stubs_ok=yes ;;
9078 esac
9079 fi
9080
9081
9082 if test "${enable_stubs+set}" = set; then
9083 enableval="$enable_stubs"
9084 stubs_ok=$enableval
9085 else
9086 stubs_ok=yes
9087 fi
9088
9089 # Stubs are always enabled for shared builds
9090 if test "$shared_ok" = "yes" ; then
9091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared" >&5
9092 printf "%s\n" "shared" >&6; }
9093 SHARED_BUILD=1
9094 STUBS_BUILD=1
9095 else
9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
9097 printf "%s\n" "static" >&6; }
9098 SHARED_BUILD=0
9099
9100 printf "%s\n" "#define STATIC_BUILD 1" >>confdefs.h
9101
9102 if test "$stubs_ok" = "yes" ; then
9103 STUBS_BUILD=1
9104 else
9105 STUBS_BUILD=0
9106 fi
9107 fi
9108 if test "${STUBS_BUILD}" = "1" ; then
9109
9110 printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h
9111
9112
9113 printf "%s\n" "#define USE_TCLOO_STUBS 1" >>confdefs.h
9114
9115 if test "${TEA_WINDOWINGSYSTEM}" != ""; then
9116
9117 printf "%s\n" "#define USE_TK_STUBS 1" >>confdefs.h
9118
9119 fi
9120 fi
9121
9122
9123
9124
9125
9126 # Perform substitutions from the Tcl configuration
9127
9128
9129
9130
9131
9132
9133
9134
9135 ac_config_files="$ac_config_files Makefile"
9136
9137 cat >confcache <<\_ACEOF
9138 # This file is a shell script that caches the results of configure
9139 # tests run on this system so they can be shared between configure
9140 # scripts and configure runs, see configure's option --config-cache.
9141 # It is not useful on other systems. If it contains results you don't
9142 # want to keep, you may remove or edit it.
9143 #
9144 # config.status only pays attention to the cache file if you give it
9145 # the --recheck option to rerun configure.
9146 #
9147 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
9148 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
9149 # following values.
9150
9151 _ACEOF
9152
9153 # The following way of writing the cache mishandles newlines in values,
9154 # but we know of no workaround that is simple, portable, and efficient.
9155 # So, we kill variables containing newlines.
9156 # Ultrix sh set writes to stderr and can't be redirected directly,
9157 # and sets the high bit in the cache file unless we assign to the vars.
9158 (
9159 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9160 eval ac_val=\$$ac_var
9161 case $ac_val in #(
9162 *${as_nl}*)
9163 case $ac_var in #(
9164 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9165 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9166 esac
9167 case $ac_var in #(
9168 _ | IFS | as_nl) ;; #(
9169 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9170 *) { eval $ac_var=; unset $ac_var;} ;;
9171 esac ;;
9172 esac
9173 done
9174
9175 (set) 2>&1 |
9176 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9177 *${as_nl}ac_space=\ *)
9178 # 'set' does not quote correctly, so add quotes: double-quote
9179 # substitution turns \\\\ into \\, and sed turns \\ into \.
9180 sed -n \
9181 "s/'/'\\\\''/g;
9182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9183 ;; #(
9184 *)
9185 # 'set' quotes correctly as required by POSIX, so do not add quotes.
9186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9187 ;;
9188 esac |
9189 sort
9190 ) |
9191 sed '
9192 /^ac_cv_env_/b end
9193 t clear
9194 :clear
9195 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9196 t end
9197 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9198 :end' >>confcache
9199 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9200 if test -w "$cache_file"; then
9201 if test "x$cache_file" != "x/dev/null"; then
9202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9203 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9204 if test ! -f "$cache_file" || test -h "$cache_file"; then
9205 cat confcache >"$cache_file"
9206 else
9207 case $cache_file in #(
9208 */* | ?:*)
9209 mv -f confcache "$cache_file"$$ &&
9210 mv -f "$cache_file"$$ "$cache_file" ;; #(
9211 *)
9212 mv -f confcache "$cache_file" ;;
9213 esac
9214 fi
9215 fi
9216 else
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9218 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9219 fi
9220 fi
9221 rm -f confcache
9222
9223 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9224 # Let make expand exec_prefix.
9225 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9226
9227 DEFS=-DHAVE_CONFIG_H
9228
9229 ac_libobjs=
9230 ac_ltlibobjs=
9231 U=
9232 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9233 # 1. Remove the extension, and $U if already installed.
9234 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9235 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9236 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9237 # will be set to the directory where LIBOBJS objects are built.
9238 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9239 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9240 done
9241 LIBOBJS=$ac_libobjs
9242
9243 LTLIBOBJS=$ac_ltlibobjs
9244
9245
9246 CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
9247
9248 : "${CONFIG_STATUS=./config.status}"
9249 ac_write_fail=0
9250 ac_clean_files_save=$ac_clean_files
9251 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9253 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9254 as_write_fail=0
9255 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9256 #! $SHELL
9257 # Generated by $as_me.
9258 # Run this file to recreate the current configuration.
9259 # Compiler output produced by configure, useful for debugging
9260 # configure, is in config.log if it exists.
9261
9262 debug=false
9263 ac_cs_recheck=false
9264 ac_cs_silent=false
9265
9266 SHELL=\${CONFIG_SHELL-$SHELL}
9267 export SHELL
9268 _ASEOF
9269 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9270 ## -------------------- ##
9271 ## M4sh Initialization. ##
9272 ## -------------------- ##
9273
9274 # Be more Bourne compatible
9275 DUALCASE=1; export DUALCASE # for MKS sh
9276 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9277 then :
9278 emulate sh
9279 NULLCMD=:
9280 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9281 # is contrary to our usage. Disable this feature.
9282 alias -g '${1+"$@"}'='"$@"'
9283 setopt NO_GLOB_SUBST
9284 else case e in #(
9285 e) case `(set -o) 2>/dev/null` in #(
9286 *posix*) :
9287 set -o posix ;; #(
9288 *) :
9289 ;;
9290 esac ;;
9291 esac
9292 fi
9293
9294
9295
9296 # Reset variables that may have inherited troublesome values from
9297 # the environment.
9298
9299 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9300 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9301 # side effect of setting IFS to empty, thus disabling word splitting.)
9302 # Quoting is to prevent editors from complaining about space-tab.
9303 as_nl='
9304 '
9305 export as_nl
9306 IFS=" "" $as_nl"
9307
9308 PS1='$ '
9309 PS2='> '
9310 PS4='+ '
9311
9312 # Ensure predictable behavior from utilities with locale-dependent output.
9313 LC_ALL=C
9314 export LC_ALL
9315 LANGUAGE=C
9316 export LANGUAGE
9317
9318 # We cannot yet rely on "unset" to work, but we need these variables
9319 # to be unset--not just set to an empty or harmless value--now, to
9320 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
9321 # also avoids known problems related to "unset" and subshell syntax
9322 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9323 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
9324 do eval test \${$as_var+y} \
9325 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9326 done
9327
9328 # Ensure that fds 0, 1, and 2 are open.
9329 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
9330 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
9331 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
9332
9333 # The user is always right.
9334 if ${PATH_SEPARATOR+false} :; then
9335 PATH_SEPARATOR=:
9336 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9337 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9338 PATH_SEPARATOR=';'
9339 }
9340 fi
9341
9342
9343 # Find who we are. Look in the path if we contain no directory separator.
9344 as_myself=
9345 case $0 in #((
9346 *[\\/]* ) as_myself=$0 ;;
9347 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9348 for as_dir in $PATH
9349 do
9350 IFS=$as_save_IFS
9351 case $as_dir in #(((
9352 '') as_dir=./ ;;
9353 */) ;;
9354 *) as_dir=$as_dir/ ;;
9355 esac
9356 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
9357 done
9358 IFS=$as_save_IFS
9359
9360 ;;
9361 esac
9362 # We did not find ourselves, most probably we were run as 'sh COMMAND'
9363 # in which case we are not to be found in the path.
9364 if test "x$as_myself" = x; then
9365 as_myself=$0
9366 fi
9367 if test ! -f "$as_myself"; then
9368 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9369 exit 1
9370 fi
9371
9372
9373
9374 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9375 # ----------------------------------------
9376 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9377 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9378 # script with STATUS, using 1 if that was 0.
9379 as_fn_error ()
9380 {
9381 as_status=$1; test $as_status -eq 0 && as_status=1
9382 if test "$4"; then
9383 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9385 fi
9386 printf "%s\n" "$as_me: error: $2" >&2
9387 as_fn_exit $as_status
9388 } # as_fn_error
9389
9390
9391 # as_fn_set_status STATUS
9392 # -----------------------
9393 # Set $? to STATUS, without forking.
9394 as_fn_set_status ()
9395 {
9396 return $1
9397 } # as_fn_set_status
9398
9399 # as_fn_exit STATUS
9400 # -----------------
9401 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9402 as_fn_exit ()
9403 {
9404 set +e
9405 as_fn_set_status $1
9406 exit $1
9407 } # as_fn_exit
9408
9409 # as_fn_unset VAR
9410 # ---------------
9411 # Portably unset VAR.
9412 as_fn_unset ()
9413 {
9414 { eval $1=; unset $1;}
9415 }
9416 as_unset=as_fn_unset
9417
9418 # as_fn_append VAR VALUE
9419 # ----------------------
9420 # Append the text in VALUE to the end of the definition contained in VAR. Take
9421 # advantage of any shell optimizations that allow amortized linear growth over
9422 # repeated appends, instead of the typical quadratic growth present in naive
9423 # implementations.
9424 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
9425 then :
9426 eval 'as_fn_append ()
9427 {
9428 eval $1+=\$2
9429 }'
9430 else case e in #(
9431 e) as_fn_append ()
9432 {
9433 eval $1=\$$1\$2
9434 } ;;
9435 esac
9436 fi # as_fn_append
9437
9438 # as_fn_arith ARG...
9439 # ------------------
9440 # Perform arithmetic evaluation on the ARGs, and store the result in the
9441 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9442 # must be portable across $(()) and expr.
9443 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
9444 then :
9445 eval 'as_fn_arith ()
9446 {
9447 as_val=$(( $* ))
9448 }'
9449 else case e in #(
9450 e) as_fn_arith ()
9451 {
9452 as_val=`expr "$@" || test $? -eq 1`
9453 } ;;
9454 esac
9455 fi # as_fn_arith
9456
9457
9458 if expr a : '\(a\)' >/dev/null 2>&1 &&
9459 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9460 as_expr=expr
9461 else
9462 as_expr=false
9463 fi
9464
9465 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9466 as_basename=basename
9467 else
9468 as_basename=false
9469 fi
9470
9471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9472 as_dirname=dirname
9473 else
9474 as_dirname=false
9475 fi
9476
9477 as_me=`$as_basename -- "$0" ||
9478 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9479 X"$0" : 'X\(//\)$' \| \
9480 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9481 printf "%s\n" X/"$0" |
9482 sed '/^.*\/\([^/][^/]*\)\/*$/{
9483 s//\1/
9484 q
9485 }
9486 /^X\/\(\/\/\)$/{
9487 s//\1/
9488 q
9489 }
9490 /^X\/\(\/\).*/{
9491 s//\1/
9492 q
9493 }
9494 s/.*/./; q'`
9495
9496 # Avoid depending upon Character Ranges.
9497 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9498 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9499 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9500 as_cr_digits='0123456789'
9501 as_cr_alnum=$as_cr_Letters$as_cr_digits
9502
9503
9504 # Determine whether it's possible to make 'echo' print without a newline.
9505 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
9506 # for compatibility with existing Makefiles.
9507 ECHO_C= ECHO_N= ECHO_T=
9508 case `echo -n x` in #(((((
9509 -n*)
9510 case `echo 'xy\c'` in
9511 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9512 xy) ECHO_C='\c';;
9513 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9514 ECHO_T=' ';;
9515 esac;;
9516 *)
9517 ECHO_N='-n';;
9518 esac
9519
9520 # For backward compatibility with old third-party macros, we provide
9521 # the shell variables $as_echo and $as_echo_n. New code should use
9522 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
9523 as_echo='printf %s\n'
9524 as_echo_n='printf %s'
9525
9526 rm -f conf$$ conf$$.exe conf$$.file
9527 if test -d conf$$.dir; then
9528 rm -f conf$$.dir/conf$$.file
9529 else
9530 rm -f conf$$.dir
9531 mkdir conf$$.dir 2>/dev/null
9532 fi
9533 if (echo >conf$$.file) 2>/dev/null; then
9534 if ln -s conf$$.file conf$$ 2>/dev/null; then
9535 as_ln_s='ln -s'
9536 # ... but there are two gotchas:
9537 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
9538 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
9539 # In both cases, we have to default to 'cp -pR'.
9540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9541 as_ln_s='cp -pR'
9542 elif ln conf$$.file conf$$ 2>/dev/null; then
9543 as_ln_s=ln
9544 else
9545 as_ln_s='cp -pR'
9546 fi
9547 else
9548 as_ln_s='cp -pR'
9549 fi
9550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9551 rmdir conf$$.dir 2>/dev/null
9552
9553
9554 # as_fn_mkdir_p
9555 # -------------
9556 # Create "$as_dir" as a directory, including parents if necessary.
9557 as_fn_mkdir_p ()
9558 {
9559
9560 case $as_dir in #(
9561 -*) as_dir=./$as_dir;;
9562 esac
9563 test -d "$as_dir" || eval $as_mkdir_p || {
9564 as_dirs=
9565 while :; do
9566 case $as_dir in #(
9567 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9568 *) as_qdir=$as_dir;;
9569 esac
9570 as_dirs="'$as_qdir' $as_dirs"
9571 as_dir=`$as_dirname -- "$as_dir" ||
9572 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9573 X"$as_dir" : 'X\(//\)[^/]' \| \
9574 X"$as_dir" : 'X\(//\)$' \| \
9575 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9576 printf "%s\n" X"$as_dir" |
9577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9578 s//\1/
9579 q
9580 }
9581 /^X\(\/\/\)[^/].*/{
9582 s//\1/
9583 q
9584 }
9585 /^X\(\/\/\)$/{
9586 s//\1/
9587 q
9588 }
9589 /^X\(\/\).*/{
9590 s//\1/
9591 q
9592 }
9593 s/.*/./; q'`
9594 test -d "$as_dir" && break
9595 done
9596 test -z "$as_dirs" || eval "mkdir $as_dirs"
9597 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9598
9599
9600 } # as_fn_mkdir_p
9601 if mkdir -p . 2>/dev/null; then
9602 as_mkdir_p='mkdir -p "$as_dir"'
9603 else
9604 test -d ./-p && rmdir ./-p
9605 as_mkdir_p=false
9606 fi
9607
9608
9609 # as_fn_executable_p FILE
9610 # -----------------------
9611 # Test if FILE is an executable regular file.
9612 as_fn_executable_p ()
9613 {
9614 test -f "$1" && test -x "$1"
9615 } # as_fn_executable_p
9616 as_test_x='test -x'
9617 as_executable_p=as_fn_executable_p
9618
9619 # Sed expression to map a string onto a valid CPP name.
9620 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9621 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
9622
9623 # Sed expression to map a string onto a valid variable name.
9624 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9625 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
9626
9627
9628 exec 6>&1
9629 ## ----------------------------------- ##
9630 ## Main body of $CONFIG_STATUS script. ##
9631 ## ----------------------------------- ##
9632 _ASEOF
9633 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9634
9635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9636 # Save the log message, to keep $0 and so on meaningful, and to
9637 # report actual input values of CONFIG_FILES etc. instead of their
9638 # values after options handling.
9639 ac_log="
9640 This file was extended by Envmodules $as_me 1.4.3, which was
9641 generated by GNU Autoconf 2.72. Invocation command line was
9642
9643 CONFIG_FILES = $CONFIG_FILES
9644 CONFIG_HEADERS = $CONFIG_HEADERS
9645 CONFIG_LINKS = $CONFIG_LINKS
9646 CONFIG_COMMANDS = $CONFIG_COMMANDS
9647 $ $0 $@
9648
9649 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9650 "
9651
9652 _ACEOF
9653
9654 case $ac_config_files in *"
9655 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9656 esac
9657
9658 case $ac_config_headers in *"
9659 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9660 esac
9661
9662
9663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9664 # Files that config.status was made for.
9665 config_files="$ac_config_files"
9666 config_headers="$ac_config_headers"
9667
9668 _ACEOF
9669
9670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9671 ac_cs_usage="\
9672 '$as_me' instantiates files and other configuration actions
9673 from templates according to the current configuration. Unless the files
9674 and actions are specified as TAGs, all are instantiated by default.
9675
9676 Usage: $0 [OPTION]... [TAG]...
9677
9678 -h, --help print this help, then exit
9679 -V, --version print version number and configuration settings, then exit
9680 --config print configuration, then exit
9681 -q, --quiet, --silent
9682 do not print progress messages
9683 -d, --debug don't remove temporary files
9684 --recheck update $as_me by reconfiguring in the same conditions
9685 --file=FILE[:TEMPLATE]
9686 instantiate the configuration file FILE
9687 --header=FILE[:TEMPLATE]
9688 instantiate the configuration header FILE
9689
9690 Configuration files:
9691 $config_files
9692
9693 Configuration headers:
9694 $config_headers
9695
9696 Report bugs to <[email protected]>.
9697 Envmodules home page: <https://envmodules.io>."
9698
9699 _ACEOF
9700 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
9701 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
9702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9703 ac_cs_config='$ac_cs_config_escaped'
9704 ac_cs_version="\\
9705 Envmodules config.status 1.4.3
9706 configured by $0, generated by GNU Autoconf 2.72,
9707 with options \\"\$ac_cs_config\\"
9708
9709 Copyright (C) 2023 Free Software Foundation, Inc.
9710 This config.status script is free software; the Free Software Foundation
9711 gives unlimited permission to copy, distribute and modify it."
9712
9713 ac_pwd='$ac_pwd'
9714 srcdir='$srcdir'
9715 test -n "\$AWK" || AWK=awk
9716 _ACEOF
9717
9718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9719 # The default lists apply if the user does not specify any file.
9720 ac_need_defaults=:
9721 while test $# != 0
9722 do
9723 case $1 in
9724 --*=?*)
9725 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9726 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9727 ac_shift=:
9728 ;;
9729 --*=)
9730 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9731 ac_optarg=
9732 ac_shift=:
9733 ;;
9734 *)
9735 ac_option=$1
9736 ac_optarg=$2
9737 ac_shift=shift
9738 ;;
9739 esac
9740
9741 case $ac_option in
9742 # Handling of the options.
9743 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9744 ac_cs_recheck=: ;;
9745 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9746 printf "%s\n" "$ac_cs_version"; exit ;;
9747 --config | --confi | --conf | --con | --co | --c )
9748 printf "%s\n" "$ac_cs_config"; exit ;;
9749 --debug | --debu | --deb | --de | --d | -d )
9750 debug=: ;;
9751 --file | --fil | --fi | --f )
9752 $ac_shift
9753 case $ac_optarg in
9754 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9755 '') as_fn_error $? "missing file argument" ;;
9756 esac
9757 as_fn_append CONFIG_FILES " '$ac_optarg'"
9758 ac_need_defaults=false;;
9759 --header | --heade | --head | --hea )
9760 $ac_shift
9761 case $ac_optarg in
9762 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9763 esac
9764 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9765 ac_need_defaults=false;;
9766 --he | --h)
9767 # Conflict between --help and --header
9768 as_fn_error $? "ambiguous option: '$1'
9769 Try '$0 --help' for more information.";;
9770 --help | --hel | -h )
9771 printf "%s\n" "$ac_cs_usage"; exit ;;
9772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9774 ac_cs_silent=: ;;
9775
9776 # This is an error.
9777 -*) as_fn_error $? "unrecognized option: '$1'
9778 Try '$0 --help' for more information." ;;
9779
9780 *) as_fn_append ac_config_targets " $1"
9781 ac_need_defaults=false ;;
9782
9783 esac
9784 shift
9785 done
9786
9787 ac_configure_extra_args=
9788
9789 if $ac_cs_silent; then
9790 exec 6>/dev/null
9791 ac_configure_extra_args="$ac_configure_extra_args --silent"
9792 fi
9793
9794 _ACEOF
9795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9796 if \$ac_cs_recheck; then
9797 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9798 shift
9799 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
9800 CONFIG_SHELL='$SHELL'
9801 export CONFIG_SHELL
9802 exec "\$@"
9803 fi
9804
9805 _ACEOF
9806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9807 exec 5>>config.log
9808 {
9809 echo
9810 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9811 ## Running $as_me. ##
9812 _ASBOX
9813 printf "%s\n" "$ac_log"
9814 } >&5
9815
9816 _ACEOF
9817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9818 _ACEOF
9819
9820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9821
9822 # Handling of arguments.
9823 for ac_config_target in $ac_config_targets
9824 do
9825 case $ac_config_target in
9826 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9827 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9828
9829 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
9830 esac
9831 done
9832
9833
9834 # If the user did not use the arguments to specify the items to instantiate,
9835 # then the envvar interface is used. Set only those that are not.
9836 # We use the long form for the default assignment because of an extremely
9837 # bizarre bug on SunOS 4.1.3.
9838 if $ac_need_defaults; then
9839 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
9840 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
9841 fi
9842
9843 # Have a temporary directory for convenience. Make it in the build tree
9844 # simply because there is no reason against having it here, and in addition,
9845 # creating and moving files from /tmp can sometimes cause problems.
9846 # Hook for its removal unless debugging.
9847 # Note that there is a small window in which the directory will not be cleaned:
9848 # after its creation but before its name has been assigned to '$tmp'.
9849 $debug ||
9850 {
9851 tmp= ac_tmp=
9852 trap 'exit_status=$?
9853 : "${ac_tmp:=$tmp}"
9854 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9855 ' 0
9856 trap 'as_fn_exit 1' 1 2 13 15
9857 }
9858 # Create a (secure) tmp directory for tmp files.
9859
9860 {
9861 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9862 test -d "$tmp"
9863 } ||
9864 {
9865 tmp=./conf$$-$RANDOM
9866 (umask 077 && mkdir "$tmp")
9867 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9868 ac_tmp=$tmp
9869
9870 # Set up the scripts for CONFIG_FILES section.
9871 # No need to generate them if there are no CONFIG_FILES.
9872 # This happens for instance with './config.status config.h'.
9873 if test -n "$CONFIG_FILES"; then
9874
9875
9876 ac_cr=`echo X | tr X '\015'`
9877 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9878 # But we know of no other shell where ac_cr would be empty at this
9879 # point, so we can use a bashism as a fallback.
9880 if test "x$ac_cr" = x; then
9881 eval ac_cr=\$\'\\r\'
9882 fi
9883 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9884 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9885 ac_cs_awk_cr='\\r'
9886 else
9887 ac_cs_awk_cr=$ac_cr
9888 fi
9889
9890 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9891 _ACEOF
9892
9893
9894 {
9895 echo "cat >conf$$subs.awk <<_ACEOF" &&
9896 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9897 echo "_ACEOF"
9898 } >conf$$subs.sh ||
9899 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9900 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9901 ac_delim='%!_!# '
9902 for ac_last_try in false false false false false :; do
9903 . ./conf$$subs.sh ||
9904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9905
9906 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9907 if test $ac_delim_n = $ac_delim_num; then
9908 break
9909 elif $ac_last_try; then
9910 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9911 else
9912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9913 fi
9914 done
9915 rm -f conf$$subs.sh
9916
9917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9918 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9919 _ACEOF
9920 sed -n '
9921 h
9922 s/^/S["/; s/!.*/"]=/
9923 p
9924 g
9925 s/^[^!]*!//
9926 :repl
9927 t repl
9928 s/'"$ac_delim"'$//
9929 t delim
9930 :nl
9931 h
9932 s/\(.\{148\}\)..*/\1/
9933 t more1
9934 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9935 p
9936 n
9937 b repl
9938 :more1
9939 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9940 p
9941 g
9942 s/.\{148\}//
9943 t nl
9944 :delim
9945 h
9946 s/\(.\{148\}\)..*/\1/
9947 t more2
9948 s/["\\]/\\&/g; s/^/"/; s/$/"/
9949 p
9950 b
9951 :more2
9952 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9953 p
9954 g
9955 s/.\{148\}//
9956 t delim
9957 ' <conf$$subs.awk | sed '
9958 /^[^""]/{
9959 N
9960 s/\n//
9961 }
9962 ' >>$CONFIG_STATUS || ac_write_fail=1
9963 rm -f conf$$subs.awk
9964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9965 _ACAWK
9966 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9967 for (key in S) S_is_set[key] = 1
9968 FS = ""
9969
9970 }
9971 {
9972 line = $ 0
9973 nfields = split(line, field, "@")
9974 substed = 0
9975 len = length(field[1])
9976 for (i = 2; i < nfields; i++) {
9977 key = field[i]
9978 keylen = length(key)
9979 if (S_is_set[key]) {
9980 value = S[key]
9981 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9982 len += length(value) + length(field[++i])
9983 substed = 1
9984 } else
9985 len += 1 + keylen
9986 }
9987
9988 print line
9989 }
9990
9991 _ACAWK
9992 _ACEOF
9993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9994 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9995 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9996 else
9997 cat
9998 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9999 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10000 _ACEOF
10001
10002 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10003 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10004 # trailing colons and then remove the whole line if VPATH becomes empty
10005 # (actually we leave an empty line to preserve line numbers).
10006 if test "x$srcdir" = x.; then
10007 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10008 h
10009 s///
10010 s/^/:/
10011 s/[ ]*$/:/
10012 s/:\$(srcdir):/:/g
10013 s/:\${srcdir}:/:/g
10014 s/:@srcdir@:/:/g
10015 s/^:*//
10016 s/:*$//
10017 x
10018 s/\(=[ ]*\).*/\1/
10019 G
10020 s/\n//
10021 s/^[^=]*=[ ]*$//
10022 }'
10023 fi
10024
10025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10026 fi # test -n "$CONFIG_FILES"
10027
10028 # Set up the scripts for CONFIG_HEADERS section.
10029 # No need to generate them if there are no CONFIG_HEADERS.
10030 # This happens for instance with './config.status Makefile'.
10031 if test -n "$CONFIG_HEADERS"; then
10032 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10033 BEGIN {
10034 _ACEOF
10035
10036 # Transform confdefs.h into an awk script 'defines.awk', embedded as
10037 # here-document in config.status, that substitutes the proper values into
10038 # config.h.in to produce config.h.
10039
10040 # Create a delimiter string that does not exist in confdefs.h, to ease
10041 # handling of long lines.
10042 ac_delim='%!_!# '
10043 for ac_last_try in false false :; do
10044 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10045 if test -z "$ac_tt"; then
10046 break
10047 elif $ac_last_try; then
10048 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10049 else
10050 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10051 fi
10052 done
10053
10054 # For the awk script, D is an array of macro values keyed by name,
10055 # likewise P contains macro parameters if any. Preserve backslash
10056 # newline sequences.
10057
10058 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10059 sed -n '
10060 s/.\{148\}/&'"$ac_delim"'/g
10061 t rset
10062 :rset
10063 s/^[ ]*#[ ]*define[ ][ ]*/ /
10064 t def
10065 d
10066 :def
10067 s/\\$//
10068 t bsnl
10069 s/["\\]/\\&/g
10070 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10071 D["\1"]=" \3"/p
10072 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10073 d
10074 :bsnl
10075 s/["\\]/\\&/g
10076 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10077 D["\1"]=" \3\\\\\\n"\\/p
10078 t cont
10079 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10080 t cont
10081 d
10082 :cont
10083 n
10084 s/.\{148\}/&'"$ac_delim"'/g
10085 t clear
10086 :clear
10087 s/\\$//
10088 t bsnlc
10089 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10090 d
10091 :bsnlc
10092 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10093 b cont
10094 ' <confdefs.h | sed '
10095 s/'"$ac_delim"'/"\\\
10096 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10097
10098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10099 for (key in D) D_is_set[key] = 1
10100 FS = ""
10101 }
10102 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10103 line = \$ 0
10104 split(line, arg, " ")
10105 if (arg[1] == "#") {
10106 defundef = arg[2]
10107 mac1 = arg[3]
10108 } else {
10109 defundef = substr(arg[1], 2)
10110 mac1 = arg[2]
10111 }
10112 split(mac1, mac2, "(") #)
10113 macro = mac2[1]
10114 prefix = substr(line, 1, index(line, defundef) - 1)
10115 if (D_is_set[macro]) {
10116 # Preserve the white space surrounding the "#".
10117 print prefix "define", macro P[macro] D[macro]
10118 next
10119 } else {
10120 # Replace #undef with comments. This is necessary, for example,
10121 # in the case of _POSIX_SOURCE, which is predefined and required
10122 # on some systems where configure will not decide to define it.
10123 if (defundef == "undef") {
10124 print "/*", prefix defundef, macro, "*/"
10125 next
10126 }
10127 }
10128 }
10129 { print }
10130 _ACAWK
10131 _ACEOF
10132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10133 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10134 fi # test -n "$CONFIG_HEADERS"
10135
10136
10137 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
10138 shift
10139 for ac_tag
10140 do
10141 case $ac_tag in
10142 :[FHLC]) ac_mode=$ac_tag; continue;;
10143 esac
10144 case $ac_mode$ac_tag in
10145 :[FHL]*:*);;
10146 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
10147 :[FH]-) ac_tag=-:-;;
10148 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10149 esac
10150 ac_save_IFS=$IFS
10151 IFS=:
10152 set x $ac_tag
10153 IFS=$ac_save_IFS
10154 shift
10155 ac_file=$1
10156 shift
10157
10158 case $ac_mode in
10159 :L) ac_source=$1;;
10160 :[FH])
10161 ac_file_inputs=
10162 for ac_f
10163 do
10164 case $ac_f in
10165 -) ac_f="$ac_tmp/stdin";;
10166 *) # Look for the file first in the build tree, then in the source tree
10167 # (if the path is not absolute). The absolute path cannot be DOS-style,
10168 # because $ac_f cannot contain ':'.
10169 test -f "$ac_f" ||
10170 case $ac_f in
10171 [\\/$]*) false;;
10172 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10173 esac ||
10174 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
10175 esac
10176 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10177 as_fn_append ac_file_inputs " '$ac_f'"
10178 done
10179
10180 # Let's still pretend it is 'configure' which instantiates (i.e., don't
10181 # use $as_me), people would be surprised to read:
10182 # /* config.h. Generated by config.status. */
10183 configure_input='Generated from '`
10184 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10185 `' by configure.'
10186 if test x"$ac_file" != x-; then
10187 configure_input="$ac_file. $configure_input"
10188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10189 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10190 fi
10191 # Neutralize special characters interpreted by sed in replacement strings.
10192 case $configure_input in #(
10193 *\&* | *\|* | *\\* )
10194 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10195 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10196 *) ac_sed_conf_input=$configure_input;;
10197 esac
10198
10199 case $ac_tag in
10200 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10202 esac
10203 ;;
10204 esac
10205
10206 ac_dir=`$as_dirname -- "$ac_file" ||
10207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10208 X"$ac_file" : 'X\(//\)[^/]' \| \
10209 X"$ac_file" : 'X\(//\)$' \| \
10210 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10211 printf "%s\n" X"$ac_file" |
10212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10213 s//\1/
10214 q
10215 }
10216 /^X\(\/\/\)[^/].*/{
10217 s//\1/
10218 q
10219 }
10220 /^X\(\/\/\)$/{
10221 s//\1/
10222 q
10223 }
10224 /^X\(\/\).*/{
10225 s//\1/
10226 q
10227 }
10228 s/.*/./; q'`
10229 as_dir="$ac_dir"; as_fn_mkdir_p
10230 ac_builddir=.
10231
10232 case "$ac_dir" in
10233 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10234 *)
10235 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10236 # A ".." for each directory in $ac_dir_suffix.
10237 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10238 case $ac_top_builddir_sub in
10239 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10240 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10241 esac ;;
10242 esac
10243 ac_abs_top_builddir=$ac_pwd
10244 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10245 # for backward compatibility:
10246 ac_top_builddir=$ac_top_build_prefix
10247
10248 case $srcdir in
10249 .) # We are building in place.
10250 ac_srcdir=.
10251 ac_top_srcdir=$ac_top_builddir_sub
10252 ac_abs_top_srcdir=$ac_pwd ;;
10253 [\\/]* | ?:[\\/]* ) # Absolute name.
10254 ac_srcdir=$srcdir$ac_dir_suffix;
10255 ac_top_srcdir=$srcdir
10256 ac_abs_top_srcdir=$srcdir ;;
10257 *) # Relative name.
10258 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10259 ac_top_srcdir=$ac_top_build_prefix$srcdir
10260 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10261 esac
10262 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10263
10264
10265 case $ac_mode in
10266 :F)
10267 #
10268 # CONFIG_FILE
10269 #
10270
10271 _ACEOF
10272
10273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10274 # If the template does not know about datarootdir, expand it.
10275 # FIXME: This hack should be removed a few years after 2.60.
10276 ac_datarootdir_hack=; ac_datarootdir_seen=
10277 ac_sed_dataroot='
10278 /datarootdir/ {
10279 p
10280 q
10281 }
10282 /@datadir@/p
10283 /@docdir@/p
10284 /@infodir@/p
10285 /@localedir@/p
10286 /@mandir@/p'
10287 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10288 *datarootdir*) ac_datarootdir_seen=yes;;
10289 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10291 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10292 _ACEOF
10293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10294 ac_datarootdir_hack='
10295 s&@datadir@&$datadir&g
10296 s&@docdir@&$docdir&g
10297 s&@infodir@&$infodir&g
10298 s&@localedir@&$localedir&g
10299 s&@mandir@&$mandir&g
10300 s&\\\${datarootdir}&$datarootdir&g' ;;
10301 esac
10302 _ACEOF
10303
10304 # Neutralize VPATH when '$srcdir' = '.'.
10305 # Shell code in configure.ac might set extrasub.
10306 # FIXME: do we really want to maintain this feature?
10307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10308 ac_sed_extra="$ac_vpsub
10309 $extrasub
10310 _ACEOF
10311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10312 :t
10313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10314 s|@configure_input@|$ac_sed_conf_input|;t t
10315 s&@top_builddir@&$ac_top_builddir_sub&;t t
10316 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10317 s&@srcdir@&$ac_srcdir&;t t
10318 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10319 s&@top_srcdir@&$ac_top_srcdir&;t t
10320 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10321 s&@builddir@&$ac_builddir&;t t
10322 s&@abs_builddir@&$ac_abs_builddir&;t t
10323 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10324 $ac_datarootdir_hack
10325 "
10326 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10327 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10328
10329 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10330 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10331 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10332 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
10334 which seems to be undefined. Please make sure it is defined" >&5
10335 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
10336 which seems to be undefined. Please make sure it is defined" >&2;}
10337
10338 rm -f "$ac_tmp/stdin"
10339 case $ac_file in
10340 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10341 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10342 esac \
10343 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10344 ;;
10345 :H)
10346 #
10347 # CONFIG_HEADER
10348 #
10349 if test x"$ac_file" != x-; then
10350 {
10351 printf "%s\n" "/* $configure_input */" >&1 \
10352 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10353 } >"$ac_tmp/config.h" \
10354 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10355 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10357 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
10358 else
10359 rm -f "$ac_file"
10360 mv "$ac_tmp/config.h" "$ac_file" \
10361 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10362 fi
10363 else
10364 printf "%s\n" "/* $configure_input */" >&1 \
10365 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10366 || as_fn_error $? "could not create -" "$LINENO" 5
10367 fi
10368 ;;
10369
10370
10371 esac
10372
10373 done # for ac_tag
10374
10375
10376 as_fn_exit 0
10377 _ACEOF
10378 ac_clean_files=$ac_clean_files_save
10379
10380 test $ac_write_fail = 0 ||
10381 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10382
10383
10384 # configure is writing to config.log, and then calls config.status.
10385 # config.status does its own redirection, appending to config.log.
10386 # Unfortunately, on DOS this fails, as config.log is still kept open
10387 # by configure, so config.status won't be able to write to it; its
10388 # output is simply discarded. So we exec the FD to /dev/null,
10389 # effectively closing config.log, so it can be properly (re)opened and
10390 # appended to by config.status. When coming back to configure, we
10391 # need to make the FD available again.
10392 if test "$no_create" != yes; then
10393 ac_cs_success=:
10394 ac_config_status_args=
10395 test "$silent" = yes &&
10396 ac_config_status_args="$ac_config_status_args --quiet"
10397 exec 5>/dev/null
10398 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10399 exec 5>>config.log
10400 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10401 # would make configure fail if this is the last instruction.
10402 $ac_cs_success || as_fn_exit 1
10403 fi
10404 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10406 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10407 fi
10408
10409