Debian Codegraph @

jpeg/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for tkimgjpeg 2.1.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null
187 then :
188 as_have_required=yes
189 else case e in #(
190 e) as_have_required=no ;;
191 esac
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else case e in #(
197 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else case e in #(
231 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi ;;
236 esac
237 fi
238
239
240 if test "x$CONFIG_SHELL" != x
241 then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255 esac
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed 'exec'.
259 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
261 fi
262
263 if test x$as_have_required = xno
264 then :
265 printf "%s\n" "$0: This script requires a shell more modern than all"
266 printf "%s\n" "$0: the shells that I found on your system."
267 if test ${ZSH_VERSION+y} ; then
268 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 else
271 printf "%s\n" "$0: Please tell [email protected] about your system,
272 $0: including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
275 fi
276 exit 1
277 fi ;;
278 esac
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317
318 # as_fn_mkdir_p
319 # -------------
320 # Create "$as_dir" as a directory, including parents if necessary.
321 as_fn_mkdir_p ()
322 {
323
324 case $as_dir in #(
325 -*) as_dir=./$as_dir;;
326 esac
327 test -d "$as_dir" || eval $as_mkdir_p || {
328 as_dirs=
329 while :; do
330 case $as_dir in #(
331 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332 *) as_qdir=$as_dir;;
333 esac
334 as_dirs="'$as_qdir' $as_dirs"
335 as_dir=`$as_dirname -- "$as_dir" ||
336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
337 X"$as_dir" : 'X\(//\)[^/]' \| \
338 X"$as_dir" : 'X\(//\)$' \| \
339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
340 printf "%s\n" X"$as_dir" |
341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)[^/].*/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\).*/{
354 s//\1/
355 q
356 }
357 s/.*/./; q'`
358 test -d "$as_dir" && break
359 done
360 test -z "$as_dirs" || eval "mkdir $as_dirs"
361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
362
363
364 } # as_fn_mkdir_p
365
366 # as_fn_executable_p FILE
367 # -----------------------
368 # Test if FILE is an executable regular file.
369 as_fn_executable_p ()
370 {
371 test -f "$1" && test -x "$1"
372 } # as_fn_executable_p
373 # as_fn_append VAR VALUE
374 # ----------------------
375 # Append the text in VALUE to the end of the definition contained in VAR. Take
376 # advantage of any shell optimizations that allow amortized linear growth over
377 # repeated appends, instead of the typical quadratic growth present in naive
378 # implementations.
379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
380 then :
381 eval 'as_fn_append ()
382 {
383 eval $1+=\$2
384 }'
385 else case e in #(
386 e) as_fn_append ()
387 {
388 eval $1=\$$1\$2
389 } ;;
390 esac
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
399 then :
400 eval 'as_fn_arith ()
401 {
402 as_val=$(( $* ))
403 }'
404 else case e in #(
405 e) as_fn_arith ()
406 {
407 as_val=`expr "$@" || test $? -eq 1`
408 } ;;
409 esac
410 fi # as_fn_arith
411
412
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
419 {
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424 fi
425 printf "%s\n" "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
428
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432 else
433 as_expr=false
434 fi
435
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
440 fi
441
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444 else
445 as_dirname=false
446 fi
447
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 printf "%s\n" X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 t clear
486 :clear
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512
513 # Determine whether it's possible to make 'echo' print without a newline.
514 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
515 # for compatibility with existing Makefiles.
516 ECHO_C= ECHO_N= ECHO_T=
517 case `echo -n x` in #(((((
518 -n*)
519 case `echo 'xy\c'` in
520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
521 xy) ECHO_C='\c';;
522 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
523 ECHO_T=' ';;
524 esac;;
525 *)
526 ECHO_N='-n';;
527 esac
528
529 # For backward compatibility with old third-party macros, we provide
530 # the shell variables $as_echo and $as_echo_n. New code should use
531 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
532 as_echo='printf %s\n'
533 as_echo_n='printf %s'
534
535 rm -f conf$$ conf$$.exe conf$$.file
536 if test -d conf$$.dir; then
537 rm -f conf$$.dir/conf$$.file
538 else
539 rm -f conf$$.dir
540 mkdir conf$$.dir 2>/dev/null
541 fi
542 if (echo >conf$$.file) 2>/dev/null; then
543 if ln -s conf$$.file conf$$ 2>/dev/null; then
544 as_ln_s='ln -s'
545 # ... but there are two gotchas:
546 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
547 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
548 # In both cases, we have to default to 'cp -pR'.
549 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
550 as_ln_s='cp -pR'
551 elif ln conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s=ln
553 else
554 as_ln_s='cp -pR'
555 fi
556 else
557 as_ln_s='cp -pR'
558 fi
559 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
560 rmdir conf$$.dir 2>/dev/null
561
562 if mkdir -p . 2>/dev/null; then
563 as_mkdir_p='mkdir -p "$as_dir"'
564 else
565 test -d ./-p && rmdir ./-p
566 as_mkdir_p=false
567 fi
568
569 as_test_x='test -x'
570 as_executable_p=as_fn_executable_p
571
572 # Sed expression to map a string onto a valid CPP name.
573 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
574 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
575
576 # Sed expression to map a string onto a valid variable name.
577 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
579
580
581 test -n "$DJDIR" || exec 7<&0 </dev/null
582 exec 6>&1
583
584 # Name of the host.
585 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
586 # so uname gets run too.
587 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588
589 #
590 # Initializations.
591 #
592 ac_default_prefix=/usr/local
593 ac_clean_files=
594 ac_config_libobj_dir=.
595 LIBOBJS=
596 cross_compiling=no
597 subdirs=
598 MFLAGS=
599 MAKEFLAGS=
600
601 # Identity of this package.
602 PACKAGE_NAME='tkimgjpeg'
603 PACKAGE_TARNAME='tkimgjpeg'
604 PACKAGE_VERSION='2.1.1'
605 PACKAGE_STRING='tkimgjpeg 2.1.1'
606 PACKAGE_BUGREPORT=''
607 PACKAGE_URL=''
608
609 # Factoring default headers for most tests.
610 ac_includes_default="\
611 #include <stddef.h>
612 #ifdef HAVE_STDIO_H
613 # include <stdio.h>
614 #endif
615 #ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 #endif
618 #ifdef HAVE_STRING_H
619 # include <string.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_SYS_TYPES_H
631 # include <sys/types.h>
632 #endif
633 #ifdef HAVE_SYS_STAT_H
634 # include <sys/stat.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_header_c_list=
641 ac_subst_vars='LTLIBOBJS
642 WISH_PROG
643 TCLSH_PROG
644 VC_MANIFEST_EMBED_EXE
645 VC_MANIFEST_EMBED_DLL
646 RANLIB_STUB
647 PKG_STUB_LIB_FILE
648 MAKE_STUB_LIB
649 MAKE_STATIC_LIB
650 MAKE_SHARED_LIB
651 MAKE_LIB
652 XMKMF
653 LDFLAGS_DEFAULT
654 CFLAGS_DEFAULT
655 LD_LIBRARY_PATH_VAR
656 SHLIB_CFLAGS
657 SHLIB_LD_LIBS
658 SHLIB_LD
659 STLIB_LD
660 LDFLAGS_OPTIMIZE
661 LDFLAGS_DEBUG
662 CFLAGS_WARNING
663 CFLAGS_OPTIMIZE
664 CFLAGS_DEBUG
665 LIBOBJS
666 RC
667 AR
668 STUBS_BUILD
669 SHARED_BUILD
670 TCL_THREADS
671 TK_INCLUDES
672 TCL_INCLUDES
673 PKG_OBJECTS
674 PKG_SOURCES
675 jpegtcl_BUILD_PATH
676 jpegtcl_SRC_PATH
677 tkimg_BUILD_PATH
678 tkimg_SRC_PATH
679 jpegtcl_STUB_LIB_PATH
680 jpegtcl_STUB_LIB_SPEC
681 jpegtcl_STUB_LIB_FILE
682 jpegtcl_LIB_SPEC
683 jpegtcl_LIB_FILE
684 jpegtcl_SRC_DIR
685 jpegtcl_BIN_DIR
686 jpegtcl_VERSION
687 tkimg_STUB_LIB_PATH
688 tkimg_STUB_LIB_SPEC
689 tkimg_STUB_LIB_FILE
690 tkimg_LIB_SPEC
691 tkimg_LIB_FILE
692 tkimg_SRC_DIR
693 tkimg_BIN_DIR
694 tkimg_VERSION
695 RANLIB
696 SET_MAKE
697 CPP
698 TK_XINCLUDES
699 TK_LIBS
700 TK_STUB_LIB_SPEC
701 TK_STUB_LIB_FLAG
702 TK_STUB_LIB_FILE
703 TK_LIB_SPEC
704 TK_LIB_FLAG
705 TK_LIB_FILE
706 TK_SRC_DIR
707 TK_BIN_DIR
708 TK_VERSION
709 TCL_SHLIB_LD_LIBS
710 TCL_LD_FLAGS
711 TCL_EXTRA_CFLAGS
712 TCL_DEFS
713 TCL_LIBS
714 CLEANFILES
715 OBJEXT
716 ac_ct_CC
717 CPPFLAGS
718 LDFLAGS
719 CFLAGS
720 CC
721 TCL_STUB_LIB_SPEC
722 TCL_STUB_LIB_FLAG
723 TCL_STUB_LIB_FILE
724 TCL_LIB_SPEC
725 TCL_LIB_FLAG
726 TCL_LIB_FILE
727 TCL_SRC_DIR
728 TCL_BIN_DIR
729 TCL_PATCH_LEVEL
730 TCL_VERSION
731 PACKAGE_TCLNAME
732 PHIMGTYPE
733 INSTALL_LIBRARY
734 INSTALL_SCRIPT
735 INSTALL_PROGRAM
736 INSTALL_DATA
737 INSTALL_DATA_DIR
738 INSTALL
739 PKG_CFLAGS
740 PKG_LIBS
741 PKG_INCLUDES
742 PKG_HEADERS
743 PKG_TCL_SOURCES
744 PKG_STUB_OBJECTS
745 PKG_STUB_SOURCES
746 PKG_LIB_FILE9
747 PKG_LIB_FILE8
748 PKG_LIB_FILE
749 EXEEXT
750 CYGPATH
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 runstatedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 with_tcl
794 with_tcl8
795 with_tk
796 with_tk8
797 with_tkimg
798 with_jpegtcl
799 with_tclinclude
800 with_tkinclude
801 enable_threads
802 enable_shared
803 enable_stubs
804 enable_64bit
805 enable_64bit_vis
806 enable_rpath
807 enable_symbols
808 with_x
809 '
810 ac_precious_vars='build_alias
811 host_alias
812 target_alias
813 CC
814 CFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
818 CPP
819 XMKMF'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 runstatedir='${localstatedir}/run'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
878 ac_prev=
879 continue
880 fi
881
882 case $ac_option in
883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *=) ac_optarg= ;;
885 *) ac_optarg=yes ;;
886 esac
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: '$ac_useropt'"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: '$ac_useropt'"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -runstatedir | --runstatedir | --runstatedi | --runstated \
1110 | --runstate | --runstat | --runsta | --runst | --runs \
1111 | --run | --ru | --r)
1112 ac_prev=runstatedir ;;
1113 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1114 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1115 | --run=* | --ru=* | --r=*)
1116 runstatedir=$ac_optarg ;;
1117
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 ac_prev=sbindir ;;
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 | --sbi=* | --sb=*)
1122 sbindir=$ac_optarg ;;
1123
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1127 | --sha | --sh)
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
1133 sharedstatedir=$ac_optarg ;;
1134
1135 -site | --site | --sit)
1136 ac_prev=site ;;
1137 -site=* | --site=* | --sit=*)
1138 site=$ac_optarg ;;
1139
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 ac_prev=srcdir ;;
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143 srcdir=$ac_optarg ;;
1144
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150 sysconfdir=$ac_optarg ;;
1151
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
1153 ac_prev=target_alias ;;
1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155 target_alias=$ac_optarg ;;
1156
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 verbose=yes ;;
1159
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
1162
1163 -with-* | --with-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: '$ac_useropt'"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=\$ac_optarg ;;
1178
1179 -without-* | --without-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid package name: '$ac_useropt'"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
1194
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1198
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204 x_includes=$ac_optarg ;;
1205
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211 x_libraries=$ac_optarg ;;
1212
1213 -*) as_fn_error $? "unrecognized option: '$ac_option'
1214 Try '$0 --help' for more information"
1215 ;;
1216
1217 *=*)
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1223 esac
1224 eval $ac_envvar=\$ac_optarg
1225 export $ac_envvar ;;
1226
1227 *)
1228 # FIXME: should be removed in autoconf 3.0.
1229 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1232 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233 ;;
1234
1235 esac
1236 done
1237
1238 if test -n "$ac_prev"; then
1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240 as_fn_error $? "missing argument to $ac_option"
1241 fi
1242
1243 if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1245 no) ;;
1246 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248 esac
1249 fi
1250
1251 # Check all directory arguments for consistency.
1252 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir runstatedir
1256 do
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1259 case $ac_val in
1260 */ )
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1263 esac
1264 # Be sure to have absolute directory names.
1265 case $ac_val in
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268 esac
1269 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1270 done
1271
1272 # There might be people who depend on the old broken behavior: '$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1278
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1285 fi
1286 fi
1287
1288 ac_tool_prefix=
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291 test "$silent" = yes && exec 6>/dev/null
1292
1293
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 as_fn_error $? "working directory cannot be determined"
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 as_fn_error $? "pwd does not report name of working directory"
1300
1301
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304 ac_srcdir_defaulted=yes
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir=`$as_dirname -- "$as_myself" ||
1307 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311 printf "%s\n" X"$as_myself" |
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\/\)[^/].*/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\).*/{
1325 s//\1/
1326 q
1327 }
1328 s/.*/./; q'`
1329 srcdir=$ac_confdir
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 srcdir=..
1332 fi
1333 else
1334 ac_srcdir_defaulted=no
1335 fi
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339 fi
1340 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1341 ac_abs_confdir=`(
1342 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1343 pwd)`
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 srcdir=.
1347 fi
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1351 case $srcdir in
1352 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 esac
1354 for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359 done
1360
1361 #
1362 # Report the --help message.
1363 #
1364 if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1367 cat <<_ACEOF
1368 'configure' configures tkimgjpeg 2.1.1 to adapt to many kinds of systems.
1369
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE. See below for descriptions of some of the useful variables.
1374
1375 Defaults for the options are specified in brackets.
1376
1377 Configuration:
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print 'checking ...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for '--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or '..']
1387
1388 Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
1390 [$ac_default_prefix]
1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1392 [PREFIX]
1393
1394 By default, 'make install' will install all the files in
1395 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1396 an installation prefix other than '$ac_default_prefix' using '--prefix',
1397 for instance '--prefix=\$HOME'.
1398
1399 For better control, use the options below.
1400
1401 Fine tuning of the installation directories:
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/tkimgjpeg]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1423
1424 cat <<\_ACEOF
1425
1426 X features:
1427 --x-includes=DIR X include files are in DIR
1428 --x-libraries=DIR X library files are in DIR
1429 _ACEOF
1430 fi
1431
1432 if test -n "$ac_init_help"; then
1433 case $ac_init_help in
1434 short | recursive ) echo "Configuration of tkimgjpeg 2.1.1:";;
1435 esac
1436 cat <<\_ACEOF
1437
1438 Optional Features:
1439 --disable-option-checking ignore unrecognized --enable/--with options
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --enable-threads build with threads (default: on)
1443 --enable-shared build and link with shared libraries (default: on)
1444 --enable-stubs build and link with stub libraries. Always true for
1445 shared builds (default: on)
1446 --enable-64bit enable 64bit support (default: off)
1447 --enable-64bit-vis enable 64bit Sparc VIS support (default: off)
1448 --disable-rpath disable rpath support (default: on)
1449 --enable-symbols build with debugging symbols (default: off)
1450
1451 Optional Packages:
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454 --with-tcl directory containing tcl configuration
1455 (tclConfig.sh)
1456 --with-tcl8 Compile for Tcl8 in Tcl9 environment
1457 --with-tk directory containing tk configuration (tkConfig.sh)
1458 --with-tk8 Compile for Tk8 in Tk9 environment
1459 --with-tkimg directory containing tkimg configuration (tkimgConfig.sh)
1460 --with-jpegtcl directory containing jpegtcl configuration (jpegtclConfig.sh)
1461 --with-tclinclude directory containing the public Tcl header files
1462 --with-tkinclude directory containing the public Tk header files
1463 --with-x use the X Window System
1464
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CPP C preprocessor
1474 XMKMF Path to xmkmf, Makefile generator for X Window System
1475
1476 Use these variables to override the choices made by 'configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1478
1479 Report bugs to the package provider.
1480 _ACEOF
1481 ac_status=$?
1482 fi
1483
1484 if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 continue
1490 ac_builddir=.
1491
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *)
1495 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1507
1508 case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for configure.gnu first; this name is used for a wrapper for
1526 # Metaconfig's "Configure" on case-insensitive file systems.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1533 else
1534 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1537 done
1538 fi
1539
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1542 cat <<\_ACEOF
1543 tkimgjpeg configure 2.1.1
1544 generated by GNU Autoconf 2.72
1545
1546 Copyright (C) 2023 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549 _ACEOF
1550 exit
1551 fi
1552
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1556
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext conftest.beam
1564 if { { ac_try="$ac_compile"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 printf "%s\n" "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext
1583 then :
1584 ac_retval=0
1585 else case e in #(
1586 e) printf "%s\n" "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=1 ;;
1590 esac
1591 fi
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1594
1595 } # ac_fn_c_try_compile
1596
1597 # ac_fn_c_try_cpp LINENO
1598 # ----------------------
1599 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_cpp ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 if { { ac_try="$ac_cpp conftest.$ac_ext"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 printf "%s\n" "$ac_try_echo"; } >&5
1610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1616 fi
1617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } > conftest.i && {
1619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 }
1622 then :
1623 ac_retval=0
1624 else case e in #(
1625 e) printf "%s\n" "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 ac_retval=1 ;;
1629 esac
1630 fi
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_cpp
1635
1636 # ac_fn_c_try_link LINENO
1637 # -----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_link ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1643 if { { ac_try="$ac_link"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 printf "%s\n" "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest$ac_exeext && {
1662 test "$cross_compiling" = yes ||
1663 test -x conftest$ac_exeext
1664 }
1665 then :
1666 ac_retval=0
1667 else case e in #(
1668 e) printf "%s\n" "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1 ;;
1672 esac
1673 fi
1674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1676 # interfere with the next link command; also delete a directory that is
1677 # left behind by Apple's compiler. We do this before executing the actions.
1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_link
1683
1684 # ac_fn_c_try_run LINENO
1685 # ----------------------
1686 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1687 # executables *can* be run.
1688 ac_fn_c_try_run ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_link"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 printf "%s\n" "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>&5
1699 ac_status=$?
1700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702 { { case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 printf "%s\n" "$ac_try_echo"; } >&5
1708 (eval "$ac_try") 2>&5
1709 ac_status=$?
1710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; }; }
1712 then :
1713 ac_retval=0
1714 else case e in #(
1715 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1716 printf "%s\n" "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=$ac_status ;;
1720 esac
1721 fi
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_run
1727
1728 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729 # -------------------------------------------------------
1730 # Tests whether HEADER exists and can be compiled using the include files in
1731 # INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_c_check_header_compile ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 printf %s "checking for $2... " >&6; }
1737 if eval test \${$3+y}
1738 then :
1739 printf %s "(cached) " >&6
1740 else case e in #(
1741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 $4
1744 #include <$2>
1745 _ACEOF
1746 if ac_fn_c_try_compile "$LINENO"
1747 then :
1748 eval "$3=yes"
1749 else case e in #(
1750 e) eval "$3=no" ;;
1751 esac
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1754 esac
1755 fi
1756 eval ac_res=\$$3
1757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 printf "%s\n" "$ac_res" >&6; }
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
1761 } # ac_fn_c_check_header_compile
1762
1763 # ac_fn_c_check_func LINENO FUNC VAR
1764 # ----------------------------------
1765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1766 ac_fn_c_check_func ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 printf %s "checking for $2... " >&6; }
1771 if eval test \${$3+y}
1772 then :
1773 printf %s "(cached) " >&6
1774 else case e in #(
1775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1779 #define $2 innocuous_$2
1780
1781 /* System header to define __stub macros and hopefully few prototypes,
1782 which can conflict with char $2 (void); below. */
1783
1784 #include <limits.h>
1785 #undef $2
1786
1787 /* Override any GCC internal prototype to avoid an error.
1788 Use char because int might match the return type of a GCC
1789 builtin and then its argument prototype would still apply. */
1790 #ifdef __cplusplus
1791 extern "C"
1792 #endif
1793 char $2 (void);
1794 /* The GNU C library defines this for functions which it implements
1795 to always fail with ENOSYS. Some functions are actually named
1796 something starting with __ and the normal name is an alias. */
1797 #if defined __stub_$2 || defined __stub___$2
1798 choke me
1799 #endif
1800
1801 int
1802 main (void)
1803 {
1804 return $2 ();
1805 ;
1806 return 0;
1807 }
1808 _ACEOF
1809 if ac_fn_c_try_link "$LINENO"
1810 then :
1811 eval "$3=yes"
1812 else case e in #(
1813 e) eval "$3=no" ;;
1814 esac
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1817 conftest$ac_exeext conftest.$ac_ext ;;
1818 esac
1819 fi
1820 eval ac_res=\$$3
1821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 printf "%s\n" "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825 } # ac_fn_c_check_func
1826 ac_configure_args_raw=
1827 for ac_arg
1828 do
1829 case $ac_arg in
1830 *\'*)
1831 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1832 esac
1833 as_fn_append ac_configure_args_raw " '$ac_arg'"
1834 done
1835
1836 case $ac_configure_args_raw in
1837 *$as_nl*)
1838 ac_safe_unquote= ;;
1839 *)
1840 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1841 ac_unsafe_a="$ac_unsafe_z#~"
1842 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1843 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1844 esac
1845
1846 cat >config.log <<_ACEOF
1847 This file contains any messages produced by compilers while
1848 running configure, to aid debugging if configure makes a mistake.
1849
1850 It was created by tkimgjpeg $as_me 2.1.1, which was
1851 generated by GNU Autoconf 2.72. Invocation command line was
1852
1853 $ $0$ac_configure_args_raw
1854
1855 _ACEOF
1856 exec 5>>config.log
1857 {
1858 cat <<_ASUNAME
1859 ## --------- ##
1860 ## Platform. ##
1861 ## --------- ##
1862
1863 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1868
1869 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1871
1872 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1873 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1874 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1876 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1877 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1878 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1879
1880 _ASUNAME
1881
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885 IFS=$as_save_IFS
1886 case $as_dir in #(((
1887 '') as_dir=./ ;;
1888 */) ;;
1889 *) as_dir=$as_dir/ ;;
1890 esac
1891 printf "%s\n" "PATH: $as_dir"
1892 done
1893 IFS=$as_save_IFS
1894
1895 } >&5
1896
1897 cat >&5 <<_ACEOF
1898
1899
1900 ## ----------- ##
1901 ## Core tests. ##
1902 ## ----------- ##
1903
1904 _ACEOF
1905
1906
1907 # Keep a trace of the command line.
1908 # Strip out --no-create and --no-recursion so they do not pile up.
1909 # Strip out --silent because we don't want to record it for future runs.
1910 # Also quote any args containing shell meta-characters.
1911 # Make two passes to allow for proper duplicate-argument suppression.
1912 ac_configure_args=
1913 ac_configure_args0=
1914 ac_configure_args1=
1915 ac_must_keep_next=false
1916 for ac_pass in 1 2
1917 do
1918 for ac_arg
1919 do
1920 case $ac_arg in
1921 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923 | -silent | --silent | --silen | --sile | --sil)
1924 continue ;;
1925 *\'*)
1926 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927 esac
1928 case $ac_pass in
1929 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1930 2)
1931 as_fn_append ac_configure_args1 " '$ac_arg'"
1932 if test $ac_must_keep_next = true; then
1933 ac_must_keep_next=false # Got value, back to normal.
1934 else
1935 case $ac_arg in
1936 *=* | --config-cache | -C | -disable-* | --disable-* \
1937 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939 | -with-* | --with-* | -without-* | --without-* | --x)
1940 case "$ac_configure_args0 " in
1941 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942 esac
1943 ;;
1944 -* ) ac_must_keep_next=true ;;
1945 esac
1946 fi
1947 as_fn_append ac_configure_args " '$ac_arg'"
1948 ;;
1949 esac
1950 done
1951 done
1952 { ac_configure_args0=; unset ac_configure_args0;}
1953 { ac_configure_args1=; unset ac_configure_args1;}
1954
1955 # When interrupted or exit'd, cleanup temporary files, and complete
1956 # config.log. We remove comments because anyway the quotes in there
1957 # would cause problems or look ugly.
1958 # WARNING: Use '\'' to represent an apostrophe within the trap.
1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960 trap 'exit_status=$?
1961 # Sanitize IFS.
1962 IFS=" "" $as_nl"
1963 # Save into config.log some information that might help in debugging.
1964 {
1965 echo
1966
1967 printf "%s\n" "## ---------------- ##
1968 ## Cache variables. ##
1969 ## ---------------- ##"
1970 echo
1971 # The following way of writing the cache mishandles newlines in values,
1972 (
1973 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1974 eval ac_val=\$$ac_var
1975 case $ac_val in #(
1976 *${as_nl}*)
1977 case $ac_var in #(
1978 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1979 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1980 esac
1981 case $ac_var in #(
1982 _ | IFS | as_nl) ;; #(
1983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1984 *) { eval $ac_var=; unset $ac_var;} ;;
1985 esac ;;
1986 esac
1987 done
1988 (set) 2>&1 |
1989 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1990 *${as_nl}ac_space=\ *)
1991 sed -n \
1992 "s/'\''/'\''\\\\'\'''\''/g;
1993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1994 ;; #(
1995 *)
1996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1997 ;;
1998 esac |
1999 sort
2000 )
2001 echo
2002
2003 printf "%s\n" "## ----------------- ##
2004 ## Output variables. ##
2005 ## ----------------- ##"
2006 echo
2007 for ac_var in $ac_subst_vars
2008 do
2009 eval ac_val=\$$ac_var
2010 case $ac_val in
2011 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012 esac
2013 printf "%s\n" "$ac_var='\''$ac_val'\''"
2014 done | sort
2015 echo
2016
2017 if test -n "$ac_subst_files"; then
2018 printf "%s\n" "## ------------------- ##
2019 ## File substitutions. ##
2020 ## ------------------- ##"
2021 echo
2022 for ac_var in $ac_subst_files
2023 do
2024 eval ac_val=\$$ac_var
2025 case $ac_val in
2026 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027 esac
2028 printf "%s\n" "$ac_var='\''$ac_val'\''"
2029 done | sort
2030 echo
2031 fi
2032
2033 if test -s confdefs.h; then
2034 printf "%s\n" "## ----------- ##
2035 ## confdefs.h. ##
2036 ## ----------- ##"
2037 echo
2038 cat confdefs.h
2039 echo
2040 fi
2041 test "$ac_signal" != 0 &&
2042 printf "%s\n" "$as_me: caught signal $ac_signal"
2043 printf "%s\n" "$as_me: exit $exit_status"
2044 } >&5
2045 rm -f core *.core core.conftest.* &&
2046 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2047 exit $exit_status
2048 ' 0
2049 for ac_signal in 1 2 13 15; do
2050 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2051 done
2052 ac_signal=0
2053
2054 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2055 rm -f -r conftest* confdefs.h
2056
2057 printf "%s\n" "/* confdefs.h */" > confdefs.h
2058
2059 # Predefined preprocessor variables.
2060
2061 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2062
2063 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2064
2065 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2066
2067 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2068
2069 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2070
2071 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2072
2073
2074 # Let the site file select an alternate cache file if it wants to.
2075 # Prefer an explicitly selected file to automatically selected ones.
2076 if test -n "$CONFIG_SITE"; then
2077 ac_site_files="$CONFIG_SITE"
2078 elif test "x$prefix" != xNONE; then
2079 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2080 else
2081 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2082 fi
2083
2084 for ac_site_file in $ac_site_files
2085 do
2086 case $ac_site_file in #(
2087 */*) :
2088 ;; #(
2089 *) :
2090 ac_site_file=./$ac_site_file ;;
2091 esac
2092 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2094 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2095 sed 's/^/| /' "$ac_site_file" >&5
2096 . "$ac_site_file" \
2097 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2098 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2099 as_fn_error $? "failed to load site script $ac_site_file
2100 See 'config.log' for more details" "$LINENO" 5; }
2101 fi
2102 done
2103
2104 if test -r "$cache_file"; then
2105 # Some versions of bash will fail to source /dev/null (special files
2106 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2107 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2109 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2110 case $cache_file in
2111 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2112 *) . "./$cache_file";;
2113 esac
2114 fi
2115 else
2116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2117 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2118 >$cache_file
2119 fi
2120
2121 # Test code for whether the C compiler supports C89 (global declarations)
2122 ac_c_conftest_c89_globals='
2123 /* Does the compiler advertise C89 conformance?
2124 Do not test the value of __STDC__, because some compilers set it to 0
2125 while being otherwise adequately conformant. */
2126 #if !defined __STDC__
2127 # error "Compiler does not advertise C89 conformance"
2128 #endif
2129
2130 #include <stddef.h>
2131 #include <stdarg.h>
2132 struct stat;
2133 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2134 struct buf { int x; };
2135 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2136 static char *e (char **p, int i)
2137 {
2138 return p[i];
2139 }
2140 static char *f (char * (*g) (char **, int), char **p, ...)
2141 {
2142 char *s;
2143 va_list v;
2144 va_start (v,p);
2145 s = g (p, va_arg (v,int));
2146 va_end (v);
2147 return s;
2148 }
2149
2150 /* C89 style stringification. */
2151 #define noexpand_stringify(a) #a
2152 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2153
2154 /* C89 style token pasting. Exercises some of the corner cases that
2155 e.g. old MSVC gets wrong, but not very hard. */
2156 #define noexpand_concat(a,b) a##b
2157 #define expand_concat(a,b) noexpand_concat(a,b)
2158 extern int vA;
2159 extern int vbee;
2160 #define aye A
2161 #define bee B
2162 int *pvA = &expand_concat(v,aye);
2163 int *pvbee = &noexpand_concat(v,bee);
2164
2165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2166 function prototypes and stuff, but not \xHH hex character constants.
2167 These do not provoke an error unfortunately, instead are silently treated
2168 as an "x". The following induces an error, until -std is added to get
2169 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2170 array size at least. It is necessary to write \x00 == 0 to get something
2171 that is true only with -std. */
2172 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2173
2174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2175 inside strings and character constants. */
2176 #define FOO(x) '\''x'\''
2177 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2178
2179 int test (int i, double x);
2180 struct s1 {int (*f) (int a);};
2181 struct s2 {int (*f) (double a);};
2182 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2183 int, int);'
2184
2185 # Test code for whether the C compiler supports C89 (body of main).
2186 ac_c_conftest_c89_main='
2187 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2188 '
2189
2190 # Test code for whether the C compiler supports C99 (global declarations)
2191 ac_c_conftest_c99_globals='
2192 /* Does the compiler advertise C99 conformance? */
2193 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2194 # error "Compiler does not advertise C99 conformance"
2195 #endif
2196
2197 // See if C++-style comments work.
2198
2199 #include <stdbool.h>
2200 extern int puts (const char *);
2201 extern int printf (const char *, ...);
2202 extern int dprintf (int, const char *, ...);
2203 extern void *malloc (size_t);
2204 extern void free (void *);
2205
2206 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2207 // dprintf is used instead of fprintf to avoid needing to declare
2208 // FILE and stderr.
2209 #define debug(...) dprintf (2, __VA_ARGS__)
2210 #define showlist(...) puts (#__VA_ARGS__)
2211 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2212 static void
2213 test_varargs_macros (void)
2214 {
2215 int x = 1234;
2216 int y = 5678;
2217 debug ("Flag");
2218 debug ("X = %d\n", x);
2219 showlist (The first, second, and third items.);
2220 report (x>y, "x is %d but y is %d", x, y);
2221 }
2222
2223 // Check long long types.
2224 #define BIG64 18446744073709551615ull
2225 #define BIG32 4294967295ul
2226 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2227 #if !BIG_OK
2228 #error "your preprocessor is broken"
2229 #endif
2230 #if BIG_OK
2231 #else
2232 #error "your preprocessor is broken"
2233 #endif
2234 static long long int bignum = -9223372036854775807LL;
2235 static unsigned long long int ubignum = BIG64;
2236
2237 struct incomplete_array
2238 {
2239 int datasize;
2240 double data[];
2241 };
2242
2243 struct named_init {
2244 int number;
2245 const wchar_t *name;
2246 double average;
2247 };
2248
2249 typedef const char *ccp;
2250
2251 static inline int
2252 test_restrict (ccp restrict text)
2253 {
2254 // Iterate through items via the restricted pointer.
2255 // Also check for declarations in for loops.
2256 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2257 continue;
2258 return 0;
2259 }
2260
2261 // Check varargs and va_copy.
2262 static bool
2263 test_varargs (const char *format, ...)
2264 {
2265 va_list args;
2266 va_start (args, format);
2267 va_list args_copy;
2268 va_copy (args_copy, args);
2269
2270 const char *str = "";
2271 int number = 0;
2272 float fnumber = 0;
2273
2274 while (*format)
2275 {
2276 switch (*format++)
2277 {
2278 case '\''s'\'': // string
2279 str = va_arg (args_copy, const char *);
2280 break;
2281 case '\''d'\'': // int
2282 number = va_arg (args_copy, int);
2283 break;
2284 case '\''f'\'': // float
2285 fnumber = va_arg (args_copy, double);
2286 break;
2287 default:
2288 break;
2289 }
2290 }
2291 va_end (args_copy);
2292 va_end (args);
2293
2294 return *str && number && fnumber;
2295 }
2296 '
2297
2298 # Test code for whether the C compiler supports C99 (body of main).
2299 ac_c_conftest_c99_main='
2300 // Check bool.
2301 _Bool success = false;
2302 success |= (argc != 0);
2303
2304 // Check restrict.
2305 if (test_restrict ("String literal") == 0)
2306 success = true;
2307 char *restrict newvar = "Another string";
2308
2309 // Check varargs.
2310 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2311 test_varargs_macros ();
2312
2313 // Check flexible array members.
2314 struct incomplete_array *ia =
2315 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2316 ia->datasize = 10;
2317 for (int i = 0; i < ia->datasize; ++i)
2318 ia->data[i] = i * 1.234;
2319 // Work around memory leak warnings.
2320 free (ia);
2321
2322 // Check named initializers.
2323 struct named_init ni = {
2324 .number = 34,
2325 .name = L"Test wide string",
2326 .average = 543.34343,
2327 };
2328
2329 ni.number = 58;
2330
2331 int dynamic_array[ni.number];
2332 dynamic_array[0] = argv[0][0];
2333 dynamic_array[ni.number - 1] = 543;
2334
2335 // work around unused variable warnings
2336 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2337 || dynamic_array[ni.number - 1] != 543);
2338 '
2339
2340 # Test code for whether the C compiler supports C11 (global declarations)
2341 ac_c_conftest_c11_globals='
2342 /* Does the compiler advertise C11 conformance? */
2343 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2344 # error "Compiler does not advertise C11 conformance"
2345 #endif
2346
2347 // Check _Alignas.
2348 char _Alignas (double) aligned_as_double;
2349 char _Alignas (0) no_special_alignment;
2350 extern char aligned_as_int;
2351 char _Alignas (0) _Alignas (int) aligned_as_int;
2352
2353 // Check _Alignof.
2354 enum
2355 {
2356 int_alignment = _Alignof (int),
2357 int_array_alignment = _Alignof (int[100]),
2358 char_alignment = _Alignof (char)
2359 };
2360 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2361
2362 // Check _Noreturn.
2363 int _Noreturn does_not_return (void) { for (;;) continue; }
2364
2365 // Check _Static_assert.
2366 struct test_static_assert
2367 {
2368 int x;
2369 _Static_assert (sizeof (int) <= sizeof (long int),
2370 "_Static_assert does not work in struct");
2371 long int y;
2372 };
2373
2374 // Check UTF-8 literals.
2375 #define u8 syntax error!
2376 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2377
2378 // Check duplicate typedefs.
2379 typedef long *long_ptr;
2380 typedef long int *long_ptr;
2381 typedef long_ptr long_ptr;
2382
2383 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2384 struct anonymous
2385 {
2386 union {
2387 struct { int i; int j; };
2388 struct { int k; long int l; } w;
2389 };
2390 int m;
2391 } v1;
2392 '
2393
2394 # Test code for whether the C compiler supports C11 (body of main).
2395 ac_c_conftest_c11_main='
2396 _Static_assert ((offsetof (struct anonymous, i)
2397 == offsetof (struct anonymous, w.k)),
2398 "Anonymous union alignment botch");
2399 v1.i = 2;
2400 v1.w.k = 5;
2401 ok |= v1.i != 5;
2402 '
2403
2404 # Test code for whether the C compiler supports C11 (complete).
2405 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2406 ${ac_c_conftest_c99_globals}
2407 ${ac_c_conftest_c11_globals}
2408
2409 int
2410 main (int argc, char **argv)
2411 {
2412 int ok = 0;
2413 ${ac_c_conftest_c89_main}
2414 ${ac_c_conftest_c99_main}
2415 ${ac_c_conftest_c11_main}
2416 return ok;
2417 }
2418 "
2419
2420 # Test code for whether the C compiler supports C99 (complete).
2421 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2422 ${ac_c_conftest_c99_globals}
2423
2424 int
2425 main (int argc, char **argv)
2426 {
2427 int ok = 0;
2428 ${ac_c_conftest_c89_main}
2429 ${ac_c_conftest_c99_main}
2430 return ok;
2431 }
2432 "
2433
2434 # Test code for whether the C compiler supports C89 (complete).
2435 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2436
2437 int
2438 main (int argc, char **argv)
2439 {
2440 int ok = 0;
2441 ${ac_c_conftest_c89_main}
2442 return ok;
2443 }
2444 "
2445
2446 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2447 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2448 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2449 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2450 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2451 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2452 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2453 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2454 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2455 # Check that the precious variables saved in the cache have kept the same
2456 # value.
2457 ac_cache_corrupted=false
2458 for ac_var in $ac_precious_vars; do
2459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2460 eval ac_new_set=\$ac_env_${ac_var}_set
2461 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2462 eval ac_new_val=\$ac_env_${ac_var}_value
2463 case $ac_old_set,$ac_new_set in
2464 set,)
2465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2466 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2468 ,set)
2469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2470 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2472 ,);;
2473 *)
2474 if test "x$ac_old_val" != "x$ac_new_val"; then
2475 # differences in whitespace do not lead to failure.
2476 ac_old_val_w=`echo x $ac_old_val`
2477 ac_new_val_w=`echo x $ac_new_val`
2478 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2480 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2481 ac_cache_corrupted=:
2482 else
2483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2484 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2485 eval $ac_var=\$ac_old_val
2486 fi
2487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2488 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2490 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2491 fi;;
2492 esac
2493 # Pass precious variables to config.status.
2494 if test "$ac_new_set" = set; then
2495 case $ac_new_val in
2496 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2497 *) ac_arg=$ac_var=$ac_new_val ;;
2498 esac
2499 case " $ac_configure_args " in
2500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2501 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2502 esac
2503 fi
2504 done
2505 if $ac_cache_corrupted; then
2506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2507 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2510 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2511 and start over" "$LINENO" 5
2512 fi
2513 ## -------------------- ##
2514 ## Main body of script. ##
2515 ## -------------------- ##
2516
2517 ac_ext=c
2518 ac_cpp='$CPP $CPPFLAGS'
2519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522
2523
2524
2525
2526 TEA_VERSION="3.13"
2527
2528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TEA configuration" >&5
2529 printf %s "checking TEA configuration... " >&6; }
2530 if test x"${PACKAGE_NAME}" = x ; then
2531 as_fn_error $? "
2532 The PACKAGE_NAME variable must be defined by your TEA configure.ac" "$LINENO" 5
2533 fi
2534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
2535 printf "%s\n" "ok (TEA ${TEA_VERSION})" >&6; }
2536
2537 # If the user did not set CFLAGS, set it now to keep macros
2538 # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2".
2539 if test "${CFLAGS+set}" != "set" ; then
2540 CFLAGS=""
2541 fi
2542
2543 case "`uname -s`" in
2544 *win32*|*WIN32*|*MINGW32_*|*MINGW64_*|*MSYS_*)
2545 # Extract the first word of "cygpath", so it can be a program name with args.
2546 set dummy cygpath; ac_word=$2
2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 printf %s "checking for $ac_word... " >&6; }
2549 if test ${ac_cv_prog_CYGPATH+y}
2550 then :
2551 printf %s "(cached) " >&6
2552 else case e in #(
2553 e) if test -n "$CYGPATH"; then
2554 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559 IFS=$as_save_IFS
2560 case $as_dir in #(((
2561 '') as_dir=./ ;;
2562 */) ;;
2563 *) as_dir=$as_dir/ ;;
2564 esac
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2567 ac_cv_prog_CYGPATH="cygpath -m"
2568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2569 break 2
2570 fi
2571 done
2572 done
2573 IFS=$as_save_IFS
2574
2575 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
2576 fi ;;
2577 esac
2578 fi
2579 CYGPATH=$ac_cv_prog_CYGPATH
2580 if test -n "$CYGPATH"; then
2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
2582 printf "%s\n" "$CYGPATH" >&6; }
2583 else
2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 printf "%s\n" "no" >&6; }
2586 fi
2587
2588
2589 EXEEXT=".exe"
2590 TEA_PLATFORM="windows"
2591 ;;
2592 *CYGWIN_*)
2593 EXEEXT=".exe"
2594 # CYGPATH and TEA_PLATFORM are determined later in LOAD_TCLCONFIG
2595 ;;
2596 *)
2597 CYGPATH=echo
2598 # Maybe we are cross-compiling....
2599 case ${host_alias} in
2600 *mingw32*)
2601 EXEEXT=".exe"
2602 TEA_PLATFORM="windows"
2603 ;;
2604 *)
2605 EXEEXT=""
2606 TEA_PLATFORM="unix"
2607 ;;
2608 esac
2609 ;;
2610 esac
2611
2612 # Check if exec_prefix is set. If not use fall back to prefix.
2613 # Note when adjusted, so that TEA_PREFIX can correct for this.
2614 # This is needed for recursive configures, since autoconf propagates
2615 # $prefix, but not $exec_prefix (doh!).
2616 if test x$exec_prefix = xNONE ; then
2617 exec_prefix_default=yes
2618 exec_prefix=$prefix
2619 fi
2620
2621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5
2622 printf "%s\n" "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;}
2623
2624
2625
2626
2627 # This package name must be replaced statically for AC_SUBST to work
2628
2629
2630
2631
2632 # We AC_SUBST these here to ensure they are subst'ed,
2633 # in case the user doesn't call TEA_ADD_...
2634
2635
2636
2637
2638
2639
2640
2641
2642 # Configure the installer.
2643
2644 INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c'
2645 INSTALL_DATA_DIR='${INSTALL} -d -m 755'
2646 INSTALL_DATA='${INSTALL} -m 644'
2647 INSTALL_PROGRAM='${INSTALL} -m 755'
2648 INSTALL_SCRIPT='${INSTALL} -m 755'
2649
2650
2651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
2652 printf %s "checking system version... " >&6; }
2653 if test ${tcl_cv_sys_version+y}
2654 then :
2655 printf %s "(cached) " >&6
2656 else case e in #(
2657 e)
2658 # TEA specific:
2659 if test "${TEA_PLATFORM}" = "windows" ; then
2660 tcl_cv_sys_version=windows
2661 else
2662 tcl_cv_sys_version=`uname -s`-`uname -r`
2663 if test "$?" -ne 0 ; then
2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
2665 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
2666 tcl_cv_sys_version=unknown
2667 else
2668 if test "`uname -s`" = "AIX" ; then
2669 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
2670 fi
2671 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
2672 tcl_cv_sys_version=NetBSD-Debian
2673 fi
2674 fi
2675 fi
2676 ;;
2677 esac
2678 fi
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
2680 printf "%s\n" "$tcl_cv_sys_version" >&6; }
2681 system=$tcl_cv_sys_version
2682
2683 case $system in
2684 HP-UX-*) INSTALL_LIBRARY='${INSTALL} -m 755' ;;
2685 *) INSTALL_LIBRARY='${INSTALL} -m 644' ;;
2686 esac
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699 PHIMGTYPE="jpeg"
2700 CPACKAGE="Tkimgjpeg"
2701 PACKAGE_TCLNAME="img::jpeg"
2702
2703
2704
2705 #--------------------------------------------------------------------
2706 # Load the tclConfig.sh file
2707 # Load the tkConfig.sh file
2708 #--------------------------------------------------------------------
2709
2710
2711
2712 #
2713 # Ok, lets find the tcl configuration
2714 # First, look for one uninstalled.
2715 # the alternative search directory is invoked by --with-tcl
2716 #
2717
2718 if test x"${no_tcl}" = x ; then
2719 # we reset no_tcl in case something fails here
2720 no_tcl=true
2721
2722 # Check whether --with-tcl was given.
2723 if test ${with_tcl+y}
2724 then :
2725 withval=$with_tcl; with_tclconfig="${withval}"
2726 fi
2727
2728
2729 # Check whether --with-tcl8 was given.
2730 if test ${with_tcl8+y}
2731 then :
2732 withval=$with_tcl8; with_tcl8="${withval}"
2733 fi
2734
2735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
2736 printf %s "checking for Tcl configuration... " >&6; }
2737 if test ${ac_cv_c_tclconfig+y}
2738 then :
2739 printf %s "(cached) " >&6
2740 else case e in #(
2741 e)
2742
2743 # First check to see if --with-tcl was specified.
2744 if test x"${with_tclconfig}" != x ; then
2745 case "${with_tclconfig}" in
2746 */tclConfig.sh )
2747 if test -f "${with_tclconfig}"; then
2748 { 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
2749 printf "%s\n" "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
2750 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
2751 fi ;;
2752 esac
2753 if test -f "${with_tclconfig}/tclConfig.sh" ; then
2754 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
2755 else
2756 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
2757 fi
2758 fi
2759
2760 # then check for a private Tcl installation
2761 if test x"${ac_cv_c_tclconfig}" = x ; then
2762 for i in \
2763 ../tcl \
2764 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2765 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
2766 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
2767 ../../tcl \
2768 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2769 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
2770 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2771 ../../../tcl \
2772 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2773 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
2774 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2775 if test "${TEA_PLATFORM}" = "windows" \
2776 -a -f "$i/win/tclConfig.sh" ; then
2777 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2778 break
2779 fi
2780 if test -f "$i/unix/tclConfig.sh" ; then
2781 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2782 break
2783 fi
2784 done
2785 fi
2786
2787 # on Darwin, check in Framework installation locations
2788 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
2789 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
2790 `ls -d /Library/Frameworks 2>/dev/null` \
2791 `ls -d /Network/Library/Frameworks 2>/dev/null` \
2792 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks/Tcl.framework 2>/dev/null` \
2793 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Network/Library/Frameworks/Tcl.framework 2>/dev/null` \
2794 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Tcl.framework 2>/dev/null` \
2795 ; do
2796 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
2797 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
2798 break
2799 fi
2800 done
2801 fi
2802
2803 # TEA specific: on Windows, check in common installation locations
2804 if test "${TEA_PLATFORM}" = "windows" \
2805 -a x"${ac_cv_c_tclconfig}" = x ; then
2806 for i in `ls -d C:/Tcl/lib 2>/dev/null` \
2807 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
2808 ; do
2809 if test -f "$i/tclConfig.sh" ; then
2810 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2811 break
2812 fi
2813 done
2814 fi
2815
2816 # check in a few common install locations
2817 if test x"${ac_cv_c_tclconfig}" = x ; then
2818 for i in `ls -d ${libdir} 2>/dev/null` \
2819 `ls -d ${exec_prefix}/lib 2>/dev/null` \
2820 `ls -d ${prefix}/lib 2>/dev/null` \
2821 `ls -d /usr/local/lib 2>/dev/null` \
2822 `ls -d /usr/contrib/lib 2>/dev/null` \
2823 `ls -d /usr/pkg/lib 2>/dev/null` \
2824 `ls -d /usr/lib 2>/dev/null` \
2825 `ls -d /usr/lib64 2>/dev/null` \
2826 `ls -d /usr/lib/tcl9.0 2>/dev/null` \
2827 `ls -d /usr/lib/tcl8.7 2>/dev/null` \
2828 `ls -d /usr/lib/tcl8.6 2>/dev/null` \
2829 `ls -d /usr/lib/tcl8.5 2>/dev/null` \
2830 `ls -d /usr/local/lib/tcl9.0 2>/dev/null` \
2831 `ls -d /usr/local/lib/tcl8.7 2>/dev/null` \
2832 `ls -d /usr/local/lib/tcl8.6 2>/dev/null` \
2833 `ls -d /usr/local/lib/tcl8.5 2>/dev/null` \
2834 `ls -d /usr/local/lib/tcl/tcl9.0 2>/dev/null` \
2835 `ls -d /usr/local/lib/tcl/tcl8.7 2>/dev/null` \
2836 `ls -d /usr/local/lib/tcl/tcl8.6 2>/dev/null` \
2837 `ls -d /usr/local/lib/tcl/tcl8.5 2>/dev/null` \
2838 ; do
2839 if test -f "$i/tclConfig.sh" ; then
2840 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2841 break
2842 fi
2843 done
2844 fi
2845
2846 # check in a few other private locations
2847 if test x"${ac_cv_c_tclconfig}" = x ; then
2848 for i in \
2849 ${srcdir}/../tcl \
2850 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2851 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2852 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2853 if test "${TEA_PLATFORM}" = "windows" \
2854 -a -f "$i/win/tclConfig.sh" ; then
2855 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2856 break
2857 fi
2858 if test -f "$i/unix/tclConfig.sh" ; then
2859 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2860 break
2861 fi
2862 done
2863 fi
2864 ;;
2865 esac
2866 fi
2867
2868
2869 if test x"${ac_cv_c_tclconfig}" = x ; then
2870 TCL_BIN_DIR="# no Tcl configs found"
2871 as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
2872 else
2873 no_tcl=
2874 TCL_BIN_DIR="${ac_cv_c_tclconfig}"
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2876 printf "%s\n" "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2877 fi
2878 fi
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889 ac_ext=c
2890 ac_cpp='$CPP $CPPFLAGS'
2891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 printf %s "checking for $ac_word... " >&6; }
2899 if test ${ac_cv_prog_CC+y}
2900 then :
2901 printf %s "(cached) " >&6
2902 else case e in #(
2903 e) if test -n "$CC"; then
2904 ac_cv_prog_CC="$CC" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909 IFS=$as_save_IFS
2910 case $as_dir in #(((
2911 '') as_dir=./ ;;
2912 */) ;;
2913 *) as_dir=$as_dir/ ;;
2914 esac
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925 fi ;;
2926 esac
2927 fi
2928 CC=$ac_cv_prog_CC
2929 if test -n "$CC"; then
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931 printf "%s\n" "$CC" >&6; }
2932 else
2933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 printf "%s\n" "no" >&6; }
2935 fi
2936
2937
2938 fi
2939 if test -z "$ac_cv_prog_CC"; then
2940 ac_ct_CC=$CC
2941 # Extract the first word of "gcc", so it can be a program name with args.
2942 set dummy gcc; ac_word=$2
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 printf %s "checking for $ac_word... " >&6; }
2945 if test ${ac_cv_prog_ac_ct_CC+y}
2946 then :
2947 printf %s "(cached) " >&6
2948 else case e in #(
2949 e) if test -n "$ac_ct_CC"; then
2950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 case $as_dir in #(((
2957 '') as_dir=./ ;;
2958 */) ;;
2959 *) as_dir=$as_dir/ ;;
2960 esac
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_ac_ct_CC="gcc"
2964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967 done
2968 done
2969 IFS=$as_save_IFS
2970
2971 fi ;;
2972 esac
2973 fi
2974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2975 if test -n "$ac_ct_CC"; then
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2977 printf "%s\n" "$ac_ct_CC" >&6; }
2978 else
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 printf "%s\n" "no" >&6; }
2981 fi
2982
2983 if test "x$ac_ct_CC" = x; then
2984 CC=""
2985 else
2986 case $cross_compiling:$ac_tool_warned in
2987 yes:)
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2989 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2990 ac_tool_warned=yes ;;
2991 esac
2992 CC=$ac_ct_CC
2993 fi
2994 else
2995 CC="$ac_cv_prog_CC"
2996 fi
2997
2998 if test -z "$CC"; then
2999 if test -n "$ac_tool_prefix"; then
3000 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3001 set dummy ${ac_tool_prefix}cc; ac_word=$2
3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 printf %s "checking for $ac_word... " >&6; }
3004 if test ${ac_cv_prog_CC+y}
3005 then :
3006 printf %s "(cached) " >&6
3007 else case e in #(
3008 e) if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014 IFS=$as_save_IFS
3015 case $as_dir in #(((
3016 '') as_dir=./ ;;
3017 */) ;;
3018 *) as_dir=$as_dir/ ;;
3019 esac
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3022 ac_cv_prog_CC="${ac_tool_prefix}cc"
3023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3024 break 2
3025 fi
3026 done
3027 done
3028 IFS=$as_save_IFS
3029
3030 fi ;;
3031 esac
3032 fi
3033 CC=$ac_cv_prog_CC
3034 if test -n "$CC"; then
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3036 printf "%s\n" "$CC" >&6; }
3037 else
3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 printf "%s\n" "no" >&6; }
3040 fi
3041
3042
3043 fi
3044 fi
3045 if test -z "$CC"; then
3046 # Extract the first word of "cc", so it can be a program name with args.
3047 set dummy cc; ac_word=$2
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 printf %s "checking for $ac_word... " >&6; }
3050 if test ${ac_cv_prog_CC+y}
3051 then :
3052 printf %s "(cached) " >&6
3053 else case e in #(
3054 e) if test -n "$CC"; then
3055 ac_cv_prog_CC="$CC" # Let the user override the test.
3056 else
3057 ac_prog_rejected=no
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061 IFS=$as_save_IFS
3062 case $as_dir in #(((
3063 '') as_dir=./ ;;
3064 */) ;;
3065 *) as_dir=$as_dir/ ;;
3066 esac
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3069 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3070 ac_prog_rejected=yes
3071 continue
3072 fi
3073 ac_cv_prog_CC="cc"
3074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3075 break 2
3076 fi
3077 done
3078 done
3079 IFS=$as_save_IFS
3080
3081 if test $ac_prog_rejected = yes; then
3082 # We found a bogon in the path, so make sure we never use it.
3083 set dummy $ac_cv_prog_CC
3084 shift
3085 if test $# != 0; then
3086 # We chose a different compiler from the bogus one.
3087 # However, it has the same basename, so the bogon will be chosen
3088 # first if we set CC to just the basename; use the full file name.
3089 shift
3090 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3091 fi
3092 fi
3093 fi ;;
3094 esac
3095 fi
3096 CC=$ac_cv_prog_CC
3097 if test -n "$CC"; then
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3099 printf "%s\n" "$CC" >&6; }
3100 else
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 printf "%s\n" "no" >&6; }
3103 fi
3104
3105
3106 fi
3107 if test -z "$CC"; then
3108 if test -n "$ac_tool_prefix"; then
3109 for ac_prog in cl.exe
3110 do
3111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 printf %s "checking for $ac_word... " >&6; }
3115 if test ${ac_cv_prog_CC+y}
3116 then :
3117 printf %s "(cached) " >&6
3118 else case e in #(
3119 e) if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125 IFS=$as_save_IFS
3126 case $as_dir in #(((
3127 '') as_dir=./ ;;
3128 */) ;;
3129 *) as_dir=$as_dir/ ;;
3130 esac
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137 done
3138 done
3139 IFS=$as_save_IFS
3140
3141 fi ;;
3142 esac
3143 fi
3144 CC=$ac_cv_prog_CC
3145 if test -n "$CC"; then
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147 printf "%s\n" "$CC" >&6; }
3148 else
3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 printf "%s\n" "no" >&6; }
3151 fi
3152
3153
3154 test -n "$CC" && break
3155 done
3156 fi
3157 if test -z "$CC"; then
3158 ac_ct_CC=$CC
3159 for ac_prog in cl.exe
3160 do
3161 # Extract the first word of "$ac_prog", so it can be a program name with args.
3162 set dummy $ac_prog; ac_word=$2
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 printf %s "checking for $ac_word... " >&6; }
3165 if test ${ac_cv_prog_ac_ct_CC+y}
3166 then :
3167 printf %s "(cached) " >&6
3168 else case e in #(
3169 e) if test -n "$ac_ct_CC"; then
3170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175 IFS=$as_save_IFS
3176 case $as_dir in #(((
3177 '') as_dir=./ ;;
3178 */) ;;
3179 *) as_dir=$as_dir/ ;;
3180 esac
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_ac_ct_CC="$ac_prog"
3184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3185 break 2
3186 fi
3187 done
3188 done
3189 IFS=$as_save_IFS
3190
3191 fi ;;
3192 esac
3193 fi
3194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3195 if test -n "$ac_ct_CC"; then
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3197 printf "%s\n" "$ac_ct_CC" >&6; }
3198 else
3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 printf "%s\n" "no" >&6; }
3201 fi
3202
3203
3204 test -n "$ac_ct_CC" && break
3205 done
3206
3207 if test "x$ac_ct_CC" = x; then
3208 CC=""
3209 else
3210 case $cross_compiling:$ac_tool_warned in
3211 yes:)
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214 ac_tool_warned=yes ;;
3215 esac
3216 CC=$ac_ct_CC
3217 fi
3218 fi
3219
3220 fi
3221 if test -z "$CC"; then
3222 if test -n "$ac_tool_prefix"; then
3223 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3224 set dummy ${ac_tool_prefix}clang; ac_word=$2
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 printf %s "checking for $ac_word... " >&6; }
3227 if test ${ac_cv_prog_CC+y}
3228 then :
3229 printf %s "(cached) " >&6
3230 else case e in #(
3231 e) if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237 IFS=$as_save_IFS
3238 case $as_dir in #(((
3239 '') as_dir=./ ;;
3240 */) ;;
3241 *) as_dir=$as_dir/ ;;
3242 esac
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3245 ac_cv_prog_CC="${ac_tool_prefix}clang"
3246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3247 break 2
3248 fi
3249 done
3250 done
3251 IFS=$as_save_IFS
3252
3253 fi ;;
3254 esac
3255 fi
3256 CC=$ac_cv_prog_CC
3257 if test -n "$CC"; then
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259 printf "%s\n" "$CC" >&6; }
3260 else
3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 printf "%s\n" "no" >&6; }
3263 fi
3264
3265
3266 fi
3267 if test -z "$ac_cv_prog_CC"; then
3268 ac_ct_CC=$CC
3269 # Extract the first word of "clang", so it can be a program name with args.
3270 set dummy clang; 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="clang"
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 if test "x$ac_ct_CC" = x; then
3312 CC=""
3313 else
3314 case $cross_compiling:$ac_tool_warned in
3315 yes:)
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3317 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3318 ac_tool_warned=yes ;;
3319 esac
3320 CC=$ac_ct_CC
3321 fi
3322 else
3323 CC="$ac_cv_prog_CC"
3324 fi
3325
3326 fi
3327
3328
3329 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3330 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3331 as_fn_error $? "no acceptable C compiler found in \$PATH
3332 See 'config.log' for more details" "$LINENO" 5; }
3333
3334 # Provide some information about the compiler.
3335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3336 set X $ac_compile
3337 ac_compiler=$2
3338 for ac_option in --version -v -V -qversion -version; do
3339 { { ac_try="$ac_compiler $ac_option >&5"
3340 case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 printf "%s\n" "$ac_try_echo"; } >&5
3346 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3347 ac_status=$?
3348 if test -s conftest.err; then
3349 sed '10a\
3350 ... rest of stderr output deleted ...
3351 10q' conftest.err >conftest.er1
3352 cat conftest.er1 >&5
3353 fi
3354 rm -f conftest.er1 conftest.err
3355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }
3357 done
3358
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3361
3362 int
3363 main (void)
3364 {
3365
3366 ;
3367 return 0;
3368 }
3369 _ACEOF
3370 ac_clean_files_save=$ac_clean_files
3371 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3372 # Try to create an executable without -o first, disregard a.out.
3373 # It will help us diagnose broken compilers, and finding out an intuition
3374 # of exeext.
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3376 printf %s "checking whether the C compiler works... " >&6; }
3377 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3378
3379 # The possible output files:
3380 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3381
3382 ac_rmfiles=
3383 for ac_file in $ac_files
3384 do
3385 case $ac_file in
3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3387 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3388 esac
3389 done
3390 rm -f $ac_rmfiles
3391
3392 if { { ac_try="$ac_link_default"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 printf "%s\n" "$ac_try_echo"; } >&5
3399 (eval "$ac_link_default") 2>&5
3400 ac_status=$?
3401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }
3403 then :
3404 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3405 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3406 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3407 # so that the user can short-circuit this test for compilers unknown to
3408 # Autoconf.
3409 for ac_file in $ac_files ''
3410 do
3411 test -f "$ac_file" || continue
3412 case $ac_file in
3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3414 ;;
3415 [ab].out )
3416 # We found the default executable, but exeext='' is most
3417 # certainly right.
3418 break;;
3419 *.* )
3420 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3421 then :; else
3422 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3423 fi
3424 # We set ac_cv_exeext here because the later test for it is not
3425 # safe: cross compilers may not add the suffix if given an '-o'
3426 # argument, so we may need to know it at that point already.
3427 # Even if this section looks crufty: it has the advantage of
3428 # actually working.
3429 break;;
3430 * )
3431 break;;
3432 esac
3433 done
3434 test "$ac_cv_exeext" = no && ac_cv_exeext=
3435
3436 else case e in #(
3437 e) ac_file='' ;;
3438 esac
3439 fi
3440 if test -z "$ac_file"
3441 then :
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 printf "%s\n" "no" >&6; }
3444 printf "%s\n" "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3448 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3449 as_fn_error 77 "C compiler cannot create executables
3450 See 'config.log' for more details" "$LINENO" 5; }
3451 else case e in #(
3452 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3453 printf "%s\n" "yes" >&6; } ;;
3454 esac
3455 fi
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3457 printf %s "checking for C compiler default output file name... " >&6; }
3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3459 printf "%s\n" "$ac_file" >&6; }
3460 ac_exeext=$ac_cv_exeext
3461
3462 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3463 ac_clean_files=$ac_clean_files_save
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3465 printf %s "checking for suffix of executables... " >&6; }
3466 if { { ac_try="$ac_link"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 printf "%s\n" "$ac_try_echo"; } >&5
3473 (eval "$ac_link") 2>&5
3474 ac_status=$?
3475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }
3477 then :
3478 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3479 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3480 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3481 # 'rm'.
3482 for ac_file in conftest.exe conftest conftest.*; do
3483 test -f "$ac_file" || continue
3484 case $ac_file in
3485 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3486 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3487 break;;
3488 * ) break;;
3489 esac
3490 done
3491 else case e in #(
3492 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3493 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3494 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3495 See 'config.log' for more details" "$LINENO" 5; } ;;
3496 esac
3497 fi
3498 rm -f conftest conftest$ac_cv_exeext
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3500 printf "%s\n" "$ac_cv_exeext" >&6; }
3501
3502 rm -f conftest.$ac_ext
3503 EXEEXT=$ac_cv_exeext
3504 ac_exeext=$EXEEXT
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507 #include <stdio.h>
3508 int
3509 main (void)
3510 {
3511 FILE *f = fopen ("conftest.out", "w");
3512 if (!f)
3513 return 1;
3514 return ferror (f) || fclose (f) != 0;
3515
3516 ;
3517 return 0;
3518 }
3519 _ACEOF
3520 ac_clean_files="$ac_clean_files conftest.out"
3521 # Check that the compiler produces executables we can run. If not, either
3522 # the compiler is broken, or we cross compile.
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3524 printf %s "checking whether we are cross compiling... " >&6; }
3525 if test "$cross_compiling" != yes; then
3526 { { ac_try="$ac_link"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 printf "%s\n" "$ac_try_echo"; } >&5
3533 (eval "$ac_link") 2>&5
3534 ac_status=$?
3535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }
3537 if { ac_try='./conftest$ac_cv_exeext'
3538 { { case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541 esac
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 printf "%s\n" "$ac_try_echo"; } >&5
3544 (eval "$ac_try") 2>&5
3545 ac_status=$?
3546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547 test $ac_status = 0; }; }; then
3548 cross_compiling=no
3549 else
3550 if test "$cross_compiling" = maybe; then
3551 cross_compiling=yes
3552 else
3553 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3554 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3555 as_fn_error 77 "cannot run C compiled programs.
3556 If you meant to cross compile, use '--host'.
3557 See 'config.log' for more details" "$LINENO" 5; }
3558 fi
3559 fi
3560 fi
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3562 printf "%s\n" "$cross_compiling" >&6; }
3563
3564 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3565 conftest.o conftest.obj conftest.out
3566 ac_clean_files=$ac_clean_files_save
3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3568 printf %s "checking for suffix of object files... " >&6; }
3569 if test ${ac_cv_objext+y}
3570 then :
3571 printf %s "(cached) " >&6
3572 else case e in #(
3573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3575
3576 int
3577 main (void)
3578 {
3579
3580 ;
3581 return 0;
3582 }
3583 _ACEOF
3584 rm -f conftest.o conftest.obj
3585 if { { ac_try="$ac_compile"
3586 case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 printf "%s\n" "$ac_try_echo"; } >&5
3592 (eval "$ac_compile") 2>&5
3593 ac_status=$?
3594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }
3596 then :
3597 for ac_file in conftest.o conftest.obj conftest.*; do
3598 test -f "$ac_file" || continue;
3599 case $ac_file in
3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3602 break;;
3603 esac
3604 done
3605 else case e in #(
3606 e) printf "%s\n" "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608
3609 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3610 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3611 as_fn_error $? "cannot compute suffix of object files: cannot compile
3612 See 'config.log' for more details" "$LINENO" 5; } ;;
3613 esac
3614 fi
3615 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3616 esac
3617 fi
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3619 printf "%s\n" "$ac_cv_objext" >&6; }
3620 OBJEXT=$ac_cv_objext
3621 ac_objext=$OBJEXT
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3623 printf %s "checking whether the compiler supports GNU C... " >&6; }
3624 if test ${ac_cv_c_compiler_gnu+y}
3625 then :
3626 printf %s "(cached) " >&6
3627 else case e in #(
3628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3630
3631 int
3632 main (void)
3633 {
3634 #ifndef __GNUC__
3635 choke me
3636 #endif
3637
3638 ;
3639 return 0;
3640 }
3641 _ACEOF
3642 if ac_fn_c_try_compile "$LINENO"
3643 then :
3644 ac_compiler_gnu=yes
3645 else case e in #(
3646 e) ac_compiler_gnu=no ;;
3647 esac
3648 fi
3649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3650 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3651 ;;
3652 esac
3653 fi
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3655 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657
3658 if test $ac_compiler_gnu = yes; then
3659 GCC=yes
3660 else
3661 GCC=
3662 fi
3663 ac_test_CFLAGS=${CFLAGS+y}
3664 ac_save_CFLAGS=$CFLAGS
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3666 printf %s "checking whether $CC accepts -g... " >&6; }
3667 if test ${ac_cv_prog_cc_g+y}
3668 then :
3669 printf %s "(cached) " >&6
3670 else case e in #(
3671 e) ac_save_c_werror_flag=$ac_c_werror_flag
3672 ac_c_werror_flag=yes
3673 ac_cv_prog_cc_g=no
3674 CFLAGS="-g"
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3677
3678 int
3679 main (void)
3680 {
3681
3682 ;
3683 return 0;
3684 }
3685 _ACEOF
3686 if ac_fn_c_try_compile "$LINENO"
3687 then :
3688 ac_cv_prog_cc_g=yes
3689 else case e in #(
3690 e) CFLAGS=""
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3693
3694 int
3695 main (void)
3696 {
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 if ac_fn_c_try_compile "$LINENO"
3703 then :
3704
3705 else case e in #(
3706 e) ac_c_werror_flag=$ac_save_c_werror_flag
3707 CFLAGS="-g"
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710
3711 int
3712 main (void)
3713 {
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"
3720 then :
3721 ac_cv_prog_cc_g=yes
3722 fi
3723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3724 esac
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3727 esac
3728 fi
3729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3730 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3731 esac
3732 fi
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3734 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3735 if test $ac_test_CFLAGS; then
3736 CFLAGS=$ac_save_CFLAGS
3737 elif test $ac_cv_prog_cc_g = yes; then
3738 if test "$GCC" = yes; then
3739 CFLAGS="-g -O2"
3740 else
3741 CFLAGS="-g"
3742 fi
3743 else
3744 if test "$GCC" = yes; then
3745 CFLAGS="-O2"
3746 else
3747 CFLAGS=
3748 fi
3749 fi
3750 ac_prog_cc_stdc=no
3751 if test x$ac_prog_cc_stdc = xno
3752 then :
3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3754 printf %s "checking for $CC option to enable C11 features... " >&6; }
3755 if test ${ac_cv_prog_cc_c11+y}
3756 then :
3757 printf %s "(cached) " >&6
3758 else case e in #(
3759 e) ac_cv_prog_cc_c11=no
3760 ac_save_CC=$CC
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763 $ac_c_conftest_c11_program
3764 _ACEOF
3765 for ac_arg in '' -std=gnu11
3766 do
3767 CC="$ac_save_CC $ac_arg"
3768 if ac_fn_c_try_compile "$LINENO"
3769 then :
3770 ac_cv_prog_cc_c11=$ac_arg
3771 fi
3772 rm -f core conftest.err conftest.$ac_objext conftest.beam
3773 test "x$ac_cv_prog_cc_c11" != "xno" && break
3774 done
3775 rm -f conftest.$ac_ext
3776 CC=$ac_save_CC ;;
3777 esac
3778 fi
3779
3780 if test "x$ac_cv_prog_cc_c11" = xno
3781 then :
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3783 printf "%s\n" "unsupported" >&6; }
3784 else case e in #(
3785 e) if test "x$ac_cv_prog_cc_c11" = x
3786 then :
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3788 printf "%s\n" "none needed" >&6; }
3789 else case e in #(
3790 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3791 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3792 CC="$CC $ac_cv_prog_cc_c11" ;;
3793 esac
3794 fi
3795 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3796 ac_prog_cc_stdc=c11 ;;
3797 esac
3798 fi
3799 fi
3800 if test x$ac_prog_cc_stdc = xno
3801 then :
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3803 printf %s "checking for $CC option to enable C99 features... " >&6; }
3804 if test ${ac_cv_prog_cc_c99+y}
3805 then :
3806 printf %s "(cached) " >&6
3807 else case e in #(
3808 e) ac_cv_prog_cc_c99=no
3809 ac_save_CC=$CC
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812 $ac_c_conftest_c99_program
3813 _ACEOF
3814 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3815 do
3816 CC="$ac_save_CC $ac_arg"
3817 if ac_fn_c_try_compile "$LINENO"
3818 then :
3819 ac_cv_prog_cc_c99=$ac_arg
3820 fi
3821 rm -f core conftest.err conftest.$ac_objext conftest.beam
3822 test "x$ac_cv_prog_cc_c99" != "xno" && break
3823 done
3824 rm -f conftest.$ac_ext
3825 CC=$ac_save_CC ;;
3826 esac
3827 fi
3828
3829 if test "x$ac_cv_prog_cc_c99" = xno
3830 then :
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3832 printf "%s\n" "unsupported" >&6; }
3833 else case e in #(
3834 e) if test "x$ac_cv_prog_cc_c99" = x
3835 then :
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3837 printf "%s\n" "none needed" >&6; }
3838 else case e in #(
3839 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3840 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3841 CC="$CC $ac_cv_prog_cc_c99" ;;
3842 esac
3843 fi
3844 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3845 ac_prog_cc_stdc=c99 ;;
3846 esac
3847 fi
3848 fi
3849 if test x$ac_prog_cc_stdc = xno
3850 then :
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3852 printf %s "checking for $CC option to enable C89 features... " >&6; }
3853 if test ${ac_cv_prog_cc_c89+y}
3854 then :
3855 printf %s "(cached) " >&6
3856 else case e in #(
3857 e) ac_cv_prog_cc_c89=no
3858 ac_save_CC=$CC
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861 $ac_c_conftest_c89_program
3862 _ACEOF
3863 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3864 do
3865 CC="$ac_save_CC $ac_arg"
3866 if ac_fn_c_try_compile "$LINENO"
3867 then :
3868 ac_cv_prog_cc_c89=$ac_arg
3869 fi
3870 rm -f core conftest.err conftest.$ac_objext conftest.beam
3871 test "x$ac_cv_prog_cc_c89" != "xno" && break
3872 done
3873 rm -f conftest.$ac_ext
3874 CC=$ac_save_CC ;;
3875 esac
3876 fi
3877
3878 if test "x$ac_cv_prog_cc_c89" = xno
3879 then :
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3881 printf "%s\n" "unsupported" >&6; }
3882 else case e in #(
3883 e) if test "x$ac_cv_prog_cc_c89" = x
3884 then :
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3886 printf "%s\n" "none needed" >&6; }
3887 else case e in #(
3888 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3889 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3890 CC="$CC $ac_cv_prog_cc_c89" ;;
3891 esac
3892 fi
3893 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3894 ac_prog_cc_stdc=c89 ;;
3895 esac
3896 fi
3897 fi
3898
3899 ac_ext=c
3900 ac_cpp='$CPP $CPPFLAGS'
3901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904
3905
3906
3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
3908 printf %s "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
3909
3910 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
3912 printf "%s\n" "loading" >&6; }
3913 . "${TCL_BIN_DIR}/tclConfig.sh"
3914 else
3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
3916 printf "%s\n" "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
3917 fi
3918
3919 # If the TCL_BIN_DIR is the build directory (not the install directory),
3920 # then set the common variable name to the value of the build variables.
3921 # For example, the variable TCL_LIB_SPEC will be set to the value
3922 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
3923 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
3924 # installed and uninstalled version of Tcl.
3925 if test -f "${TCL_BIN_DIR}/Makefile" ; then
3926 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
3927 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
3928 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
3929 elif test "`uname -s`" = "Darwin"; then
3930 # If Tcl was built as a framework, attempt to use the libraries
3931 # from the framework at the given location so that linking works
3932 # against Tcl.framework installed in an arbitrary location.
3933 case ${TCL_DEFS} in
3934 *TCL_FRAMEWORK*)
3935 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
3936 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
3937 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
3938 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
3939 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
3940 break
3941 fi
3942 done
3943 fi
3944 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
3945 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
3946 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
3947 fi
3948 ;;
3949 esac
3950 fi
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking platform" >&5
3966 printf %s "checking platform... " >&6; }
3967 hold_cc=$CC; CC="$TCL_CC"
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970
3971 int
3972 main (void)
3973 {
3974
3975 #ifdef _WIN32
3976 #error win32
3977 #endif
3978
3979 ;
3980 return 0;
3981 }
3982 _ACEOF
3983 if ac_fn_c_try_compile "$LINENO"
3984 then :
3985
3986 # first test we've already retrieved platform (cross-compile), fallback to unix otherwise:
3987 TEA_PLATFORM="${TEA_PLATFORM-unix}"
3988 CYGPATH=echo
3989
3990 else case e in #(
3991 e)
3992 TEA_PLATFORM="windows"
3993 # Extract the first word of "cygpath", so it can be a program name with args.
3994 set dummy cygpath; ac_word=$2
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 printf %s "checking for $ac_word... " >&6; }
3997 if test ${ac_cv_prog_CYGPATH+y}
3998 then :
3999 printf %s "(cached) " >&6
4000 else case e in #(
4001 e) if test -n "$CYGPATH"; then
4002 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
4003 else
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH
4006 do
4007 IFS=$as_save_IFS
4008 case $as_dir in #(((
4009 '') as_dir=./ ;;
4010 */) ;;
4011 *) as_dir=$as_dir/ ;;
4012 esac
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4015 ac_cv_prog_CYGPATH="cygpath -m"
4016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4017 break 2
4018 fi
4019 done
4020 done
4021 IFS=$as_save_IFS
4022
4023 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
4024 fi ;;
4025 esac
4026 fi
4027 CYGPATH=$ac_cv_prog_CYGPATH
4028 if test -n "$CYGPATH"; then
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
4030 printf "%s\n" "$CYGPATH" >&6; }
4031 else
4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 printf "%s\n" "no" >&6; }
4034 fi
4035
4036
4037 ;;
4038 esac
4039 fi
4040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4041 CC=$hold_cc
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5
4043 printf "%s\n" "$TEA_PLATFORM" >&6; }
4044
4045 # The BUILD_$pkg is to define the correct extern storage class
4046 # handling when making this package
4047
4048 printf "%s\n" "#define BUILD_${PACKAGE_NAME} /**/" >>confdefs.h
4049
4050 # Do this here as we have fully defined TEA_PLATFORM now
4051 if test "${TEA_PLATFORM}" = "windows" ; then
4052 EXEEXT=".exe"
4053 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
4054 fi
4055
4056 # TEA specific:
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066 #
4067 # Ok, lets find the tk configuration
4068 # First, look for one uninstalled.
4069 # the alternative search directory is invoked by --with-tk
4070 #
4071
4072 if test x"${no_tk}" = x ; then
4073 # we reset no_tk in case something fails here
4074 no_tk=true
4075
4076 # Check whether --with-tk was given.
4077 if test ${with_tk+y}
4078 then :
4079 withval=$with_tk; with_tkconfig="${withval}"
4080 fi
4081
4082
4083 # Check whether --with-tk8 was given.
4084 if test ${with_tk8+y}
4085 then :
4086 withval=$with_tk8; with_tk8="${withval}"
4087 fi
4088
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
4090 printf %s "checking for Tk configuration... " >&6; }
4091 if test ${ac_cv_c_tkconfig+y}
4092 then :
4093 printf %s "(cached) " >&6
4094 else case e in #(
4095 e)
4096
4097 # First check to see if --with-tkconfig was specified.
4098 if test x"${with_tkconfig}" != x ; then
4099 case "${with_tkconfig}" in
4100 */tkConfig.sh )
4101 if test -f "${with_tkconfig}"; then
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5
4103 printf "%s\n" "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;}
4104 with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`"
4105 fi ;;
4106 esac
4107 if test -f "${with_tkconfig}/tkConfig.sh" ; then
4108 ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`"
4109 else
4110 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
4111 fi
4112 fi
4113
4114 # then check for a private Tk library
4115 if test x"${ac_cv_c_tkconfig}" = x ; then
4116 for i in \
4117 ../tk \
4118 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4119 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
4120 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
4121 ../../tk \
4122 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4123 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
4124 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
4125 ../../../tk \
4126 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4127 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
4128 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
4129 if test "${TEA_PLATFORM}" = "windows" \
4130 -a -f "$i/win/tkConfig.sh" ; then
4131 ac_cv_c_tkconfig="`(cd $i/win; pwd)`"
4132 break
4133 fi
4134 if test -f "$i/unix/tkConfig.sh" ; then
4135 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`"
4136 break
4137 fi
4138 done
4139 fi
4140
4141 # on Darwin, check in Framework installation locations
4142 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
4143 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
4144 `ls -d /Library/Frameworks 2>/dev/null` \
4145 `ls -d /Network/Library/Frameworks 2>/dev/null` \
4146 ; do
4147 if test -f "$i/Tk.framework/tkConfig.sh" ; then
4148 ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`"
4149 break
4150 fi
4151 done
4152 fi
4153
4154 # check in a few common install locations
4155 if test x"${ac_cv_c_tkconfig}" = x ; then
4156 for i in `ls -d ${libdir} 2>/dev/null` \
4157 `ls -d ${exec_prefix}/lib 2>/dev/null` \
4158 `ls -d ${prefix}/lib 2>/dev/null` \
4159 `ls -d /usr/local/lib 2>/dev/null` \
4160 `ls -d /usr/contrib/lib 2>/dev/null` \
4161 `ls -d /usr/pkg/lib 2>/dev/null` \
4162 `ls -d /usr/lib/tk9.0 2>/dev/null` \
4163 `ls -d /usr/lib/tk8.7 2>/dev/null` \
4164 `ls -d /usr/lib/tk8.6 2>/dev/null` \
4165 `ls -d /usr/lib/tk8.5 2>/dev/null` \
4166 `ls -d /usr/lib 2>/dev/null` \
4167 `ls -d /usr/lib64 2>/dev/null` \
4168 `ls -d /usr/local/lib/tk9.0 2>/dev/null` \
4169 `ls -d /usr/local/lib/tk8.7 2>/dev/null` \
4170 `ls -d /usr/local/lib/tk8.6 2>/dev/null` \
4171 `ls -d /usr/local/lib/tk8.5 2>/dev/null` \
4172 `ls -d /usr/local/lib/tcl/tk9.0 2>/dev/null` \
4173 `ls -d /usr/local/lib/tcl/tk8.7 2>/dev/null` \
4174 `ls -d /usr/local/lib/tcl/tk8.6 2>/dev/null` \
4175 `ls -d /usr/local/lib/tcl/tk8.5 2>/dev/null` \
4176 ; do
4177 if test -f "$i/tkConfig.sh" ; then
4178 ac_cv_c_tkconfig="`(cd $i; pwd)`"
4179 break
4180 fi
4181 done
4182 fi
4183
4184 # TEA specific: on Windows, check in common installation locations
4185 if test "${TEA_PLATFORM}" = "windows" \
4186 -a x"${ac_cv_c_tkconfig}" = x ; then
4187 for i in `ls -d C:/Tcl/lib 2>/dev/null` \
4188 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
4189 ; do
4190 if test -f "$i/tkConfig.sh" ; then
4191 ac_cv_c_tkconfig="`(cd $i; pwd)`"
4192 break
4193 fi
4194 done
4195 fi
4196
4197 # check in a few other private locations
4198 if test x"${ac_cv_c_tkconfig}" = x ; then
4199 for i in \
4200 ${srcdir}/../tk \
4201 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4202 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
4203 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
4204 if test "${TEA_PLATFORM}" = "windows" \
4205 -a -f "$i/win/tkConfig.sh" ; then
4206 ac_cv_c_tkconfig="`(cd $i/win; pwd)`"
4207 break
4208 fi
4209 if test -f "$i/unix/tkConfig.sh" ; then
4210 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`"
4211 break
4212 fi
4213 done
4214 fi
4215 ;;
4216 esac
4217 fi
4218
4219
4220 if test x"${ac_cv_c_tkconfig}" = x ; then
4221 TK_BIN_DIR="# no Tk configs found"
4222 as_fn_error $? "Can't find Tk configuration definitions. Use --with-tk to specify a directory containing tkConfig.sh" "$LINENO" 5
4223 else
4224 no_tk=
4225 TK_BIN_DIR="${ac_cv_c_tkconfig}"
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
4227 printf "%s\n" "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
4228 fi
4229 fi
4230
4231
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
4233 printf %s "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
4234
4235 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
4237 printf "%s\n" "loading" >&6; }
4238 . "${TK_BIN_DIR}/tkConfig.sh"
4239 else
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
4241 printf "%s\n" "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
4242 fi
4243
4244 # If the TK_BIN_DIR is the build directory (not the install directory),
4245 # then set the common variable name to the value of the build variables.
4246 # For example, the variable TK_LIB_SPEC will be set to the value
4247 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
4248 # instead of TK_BUILD_LIB_SPEC since it will work with both an
4249 # installed and uninstalled version of Tcl.
4250 if test -f "${TK_BIN_DIR}/Makefile" ; then
4251 TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}"
4252 TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}"
4253 TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}"
4254 elif test "`uname -s`" = "Darwin"; then
4255 # If Tk was built as a framework, attempt to use the libraries
4256 # from the framework at the given location so that linking works
4257 # against Tk.framework installed in an arbitrary location.
4258 case ${TK_DEFS} in
4259 *TK_FRAMEWORK*)
4260 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
4261 for i in "`cd "${TK_BIN_DIR}"; pwd`" \
4262 "`cd "${TK_BIN_DIR}"/../..; pwd`"; do
4263 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
4264 TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}"
4265 break
4266 fi
4267 done
4268 fi
4269 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
4270 TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}"
4271 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
4272 fi
4273 ;;
4274 esac
4275 fi
4276
4277 # TEA specific: Ensure windowingsystem is defined
4278 if test "${TEA_PLATFORM}" = "unix" ; then
4279 case ${TK_DEFS} in
4280 *MAC_OSX_TK*)
4281
4282 printf "%s\n" "#define MAC_OSX_TK 1" >>confdefs.h
4283
4284 TEA_WINDOWINGSYSTEM="aqua"
4285 ;;
4286 *)
4287 TEA_WINDOWINGSYSTEM="x11"
4288 ;;
4289 esac
4290 elif test "${TEA_PLATFORM}" = "windows" ; then
4291 TEA_WINDOWINGSYSTEM="win32"
4292 fi
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306 # TEA specific:
4307
4308
4309
4310
4311 #-----------------------------------------------------------------------
4312 # Handle the --prefix=... option by defaulting to what Tcl gave.
4313 # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
4314 #-----------------------------------------------------------------------
4315
4316
4317 if test "${prefix}" = "NONE"; then
4318 prefix_default=yes
4319 if test x"${TCL_PREFIX}" != x; then
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
4321 printf "%s\n" "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
4322 prefix=${TCL_PREFIX}
4323 else
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5
4325 printf "%s\n" "$as_me: --prefix defaulting to /usr/local" >&6;}
4326 prefix=/usr/local
4327 fi
4328 fi
4329 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
4330 -o x"${exec_prefix_default}" = x"yes" ; then
4331 if test x"${TCL_EXEC_PREFIX}" != x; then
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
4333 printf "%s\n" "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
4334 exec_prefix=${TCL_EXEC_PREFIX}
4335 else
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5
4337 printf "%s\n" "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
4338 exec_prefix=$prefix
4339 fi
4340 fi
4341
4342
4343 #-----------------------------------------------------------------------
4344 # Standard compiler checks.
4345 # This sets up CC by using the CC env var, or looks for gcc otherwise.
4346 # This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
4347 # the basic setup necessary to compile executables.
4348 #-----------------------------------------------------------------------
4349
4350
4351 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
4352 # in this macro, they need to go into TEA_SETUP_COMPILER instead.
4353
4354 ac_ext=c
4355 ac_cpp='$CPP $CPPFLAGS'
4356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4359 if test -n "$ac_tool_prefix"; then
4360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4363 printf %s "checking for $ac_word... " >&6; }
4364 if test ${ac_cv_prog_CC+y}
4365 then :
4366 printf %s "(cached) " >&6
4367 else case e in #(
4368 e) if test -n "$CC"; then
4369 ac_cv_prog_CC="$CC" # Let the user override the test.
4370 else
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 for as_dir in $PATH
4373 do
4374 IFS=$as_save_IFS
4375 case $as_dir in #(((
4376 '') as_dir=./ ;;
4377 */) ;;
4378 *) as_dir=$as_dir/ ;;
4379 esac
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4382 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4384 break 2
4385 fi
4386 done
4387 done
4388 IFS=$as_save_IFS
4389
4390 fi ;;
4391 esac
4392 fi
4393 CC=$ac_cv_prog_CC
4394 if test -n "$CC"; then
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4396 printf "%s\n" "$CC" >&6; }
4397 else
4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 printf "%s\n" "no" >&6; }
4400 fi
4401
4402
4403 fi
4404 if test -z "$ac_cv_prog_CC"; then
4405 ac_ct_CC=$CC
4406 # Extract the first word of "gcc", so it can be a program name with args.
4407 set dummy gcc; ac_word=$2
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 printf %s "checking for $ac_word... " >&6; }
4410 if test ${ac_cv_prog_ac_ct_CC+y}
4411 then :
4412 printf %s "(cached) " >&6
4413 else case e in #(
4414 e) if test -n "$ac_ct_CC"; then
4415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420 IFS=$as_save_IFS
4421 case $as_dir in #(((
4422 '') as_dir=./ ;;
4423 */) ;;
4424 *) as_dir=$as_dir/ ;;
4425 esac
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4428 ac_cv_prog_ac_ct_CC="gcc"
4429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432 done
4433 done
4434 IFS=$as_save_IFS
4435
4436 fi ;;
4437 esac
4438 fi
4439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4440 if test -n "$ac_ct_CC"; then
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4442 printf "%s\n" "$ac_ct_CC" >&6; }
4443 else
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 printf "%s\n" "no" >&6; }
4446 fi
4447
4448 if test "x$ac_ct_CC" = x; then
4449 CC=""
4450 else
4451 case $cross_compiling:$ac_tool_warned in
4452 yes:)
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4454 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4455 ac_tool_warned=yes ;;
4456 esac
4457 CC=$ac_ct_CC
4458 fi
4459 else
4460 CC="$ac_cv_prog_CC"
4461 fi
4462
4463 if test -z "$CC"; then
4464 if test -n "$ac_tool_prefix"; then
4465 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4466 set dummy ${ac_tool_prefix}cc; ac_word=$2
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468 printf %s "checking for $ac_word... " >&6; }
4469 if test ${ac_cv_prog_CC+y}
4470 then :
4471 printf %s "(cached) " >&6
4472 else case e in #(
4473 e) if test -n "$CC"; then
4474 ac_cv_prog_CC="$CC" # Let the user override the test.
4475 else
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4478 do
4479 IFS=$as_save_IFS
4480 case $as_dir in #(((
4481 '') as_dir=./ ;;
4482 */) ;;
4483 *) as_dir=$as_dir/ ;;
4484 esac
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4487 ac_cv_prog_CC="${ac_tool_prefix}cc"
4488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4489 break 2
4490 fi
4491 done
4492 done
4493 IFS=$as_save_IFS
4494
4495 fi ;;
4496 esac
4497 fi
4498 CC=$ac_cv_prog_CC
4499 if test -n "$CC"; then
4500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4501 printf "%s\n" "$CC" >&6; }
4502 else
4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 printf "%s\n" "no" >&6; }
4505 fi
4506
4507
4508 fi
4509 fi
4510 if test -z "$CC"; then
4511 # Extract the first word of "cc", so it can be a program name with args.
4512 set dummy cc; ac_word=$2
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 printf %s "checking for $ac_word... " >&6; }
4515 if test ${ac_cv_prog_CC+y}
4516 then :
4517 printf %s "(cached) " >&6
4518 else case e in #(
4519 e) if test -n "$CC"; then
4520 ac_cv_prog_CC="$CC" # Let the user override the test.
4521 else
4522 ac_prog_rejected=no
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526 IFS=$as_save_IFS
4527 case $as_dir in #(((
4528 '') as_dir=./ ;;
4529 */) ;;
4530 *) as_dir=$as_dir/ ;;
4531 esac
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4534 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4535 ac_prog_rejected=yes
4536 continue
4537 fi
4538 ac_cv_prog_CC="cc"
4539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4540 break 2
4541 fi
4542 done
4543 done
4544 IFS=$as_save_IFS
4545
4546 if test $ac_prog_rejected = yes; then
4547 # We found a bogon in the path, so make sure we never use it.
4548 set dummy $ac_cv_prog_CC
4549 shift
4550 if test $# != 0; then
4551 # We chose a different compiler from the bogus one.
4552 # However, it has the same basename, so the bogon will be chosen
4553 # first if we set CC to just the basename; use the full file name.
4554 shift
4555 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4556 fi
4557 fi
4558 fi ;;
4559 esac
4560 fi
4561 CC=$ac_cv_prog_CC
4562 if test -n "$CC"; then
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4564 printf "%s\n" "$CC" >&6; }
4565 else
4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 printf "%s\n" "no" >&6; }
4568 fi
4569
4570
4571 fi
4572 if test -z "$CC"; then
4573 if test -n "$ac_tool_prefix"; then
4574 for ac_prog in cl.exe
4575 do
4576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 printf %s "checking for $ac_word... " >&6; }
4580 if test ${ac_cv_prog_CC+y}
4581 then :
4582 printf %s "(cached) " >&6
4583 else case e in #(
4584 e) if test -n "$CC"; then
4585 ac_cv_prog_CC="$CC" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590 IFS=$as_save_IFS
4591 case $as_dir in #(((
4592 '') as_dir=./ ;;
4593 */) ;;
4594 *) as_dir=$as_dir/ ;;
4595 esac
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4598 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4600 break 2
4601 fi
4602 done
4603 done
4604 IFS=$as_save_IFS
4605
4606 fi ;;
4607 esac
4608 fi
4609 CC=$ac_cv_prog_CC
4610 if test -n "$CC"; then
4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4612 printf "%s\n" "$CC" >&6; }
4613 else
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 printf "%s\n" "no" >&6; }
4616 fi
4617
4618
4619 test -n "$CC" && break
4620 done
4621 fi
4622 if test -z "$CC"; then
4623 ac_ct_CC=$CC
4624 for ac_prog in cl.exe
4625 do
4626 # Extract the first word of "$ac_prog", so it can be a program name with args.
4627 set dummy $ac_prog; ac_word=$2
4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4629 printf %s "checking for $ac_word... " >&6; }
4630 if test ${ac_cv_prog_ac_ct_CC+y}
4631 then :
4632 printf %s "(cached) " >&6
4633 else case e in #(
4634 e) if test -n "$ac_ct_CC"; then
4635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640 IFS=$as_save_IFS
4641 case $as_dir in #(((
4642 '') as_dir=./ ;;
4643 */) ;;
4644 *) as_dir=$as_dir/ ;;
4645 esac
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_ac_ct_CC="$ac_prog"
4649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4650 break 2
4651 fi
4652 done
4653 done
4654 IFS=$as_save_IFS
4655
4656 fi ;;
4657 esac
4658 fi
4659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4660 if test -n "$ac_ct_CC"; then
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4662 printf "%s\n" "$ac_ct_CC" >&6; }
4663 else
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 printf "%s\n" "no" >&6; }
4666 fi
4667
4668
4669 test -n "$ac_ct_CC" && break
4670 done
4671
4672 if test "x$ac_ct_CC" = x; then
4673 CC=""
4674 else
4675 case $cross_compiling:$ac_tool_warned in
4676 yes:)
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4678 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4679 ac_tool_warned=yes ;;
4680 esac
4681 CC=$ac_ct_CC
4682 fi
4683 fi
4684
4685 fi
4686 if test -z "$CC"; then
4687 if test -n "$ac_tool_prefix"; then
4688 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4689 set dummy ${ac_tool_prefix}clang; ac_word=$2
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 printf %s "checking for $ac_word... " >&6; }
4692 if test ${ac_cv_prog_CC+y}
4693 then :
4694 printf %s "(cached) " >&6
4695 else case e in #(
4696 e) if test -n "$CC"; then
4697 ac_cv_prog_CC="$CC" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702 IFS=$as_save_IFS
4703 case $as_dir in #(((
4704 '') as_dir=./ ;;
4705 */) ;;
4706 *) as_dir=$as_dir/ ;;
4707 esac
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4710 ac_cv_prog_CC="${ac_tool_prefix}clang"
4711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4712 break 2
4713 fi
4714 done
4715 done
4716 IFS=$as_save_IFS
4717
4718 fi ;;
4719 esac
4720 fi
4721 CC=$ac_cv_prog_CC
4722 if test -n "$CC"; then
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4724 printf "%s\n" "$CC" >&6; }
4725 else
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 printf "%s\n" "no" >&6; }
4728 fi
4729
4730
4731 fi
4732 if test -z "$ac_cv_prog_CC"; then
4733 ac_ct_CC=$CC
4734 # Extract the first word of "clang", so it can be a program name with args.
4735 set dummy clang; ac_word=$2
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 printf %s "checking for $ac_word... " >&6; }
4738 if test ${ac_cv_prog_ac_ct_CC+y}
4739 then :
4740 printf %s "(cached) " >&6
4741 else case e in #(
4742 e) if test -n "$ac_ct_CC"; then
4743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748 IFS=$as_save_IFS
4749 case $as_dir in #(((
4750 '') as_dir=./ ;;
4751 */) ;;
4752 *) as_dir=$as_dir/ ;;
4753 esac
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_ac_ct_CC="clang"
4757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760 done
4761 done
4762 IFS=$as_save_IFS
4763
4764 fi ;;
4765 esac
4766 fi
4767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4768 if test -n "$ac_ct_CC"; then
4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4770 printf "%s\n" "$ac_ct_CC" >&6; }
4771 else
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 printf "%s\n" "no" >&6; }
4774 fi
4775
4776 if test "x$ac_ct_CC" = x; then
4777 CC=""
4778 else
4779 case $cross_compiling:$ac_tool_warned in
4780 yes:)
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4782 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4783 ac_tool_warned=yes ;;
4784 esac
4785 CC=$ac_ct_CC
4786 fi
4787 else
4788 CC="$ac_cv_prog_CC"
4789 fi
4790
4791 fi
4792
4793
4794 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4795 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4796 as_fn_error $? "no acceptable C compiler found in \$PATH
4797 See 'config.log' for more details" "$LINENO" 5; }
4798
4799 # Provide some information about the compiler.
4800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4801 set X $ac_compile
4802 ac_compiler=$2
4803 for ac_option in --version -v -V -qversion -version; do
4804 { { ac_try="$ac_compiler $ac_option >&5"
4805 case "(($ac_try" in
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4808 esac
4809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4810 printf "%s\n" "$ac_try_echo"; } >&5
4811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4812 ac_status=$?
4813 if test -s conftest.err; then
4814 sed '10a\
4815 ... rest of stderr output deleted ...
4816 10q' conftest.err >conftest.er1
4817 cat conftest.er1 >&5
4818 fi
4819 rm -f conftest.er1 conftest.err
4820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4821 test $ac_status = 0; }
4822 done
4823
4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4825 printf %s "checking whether the compiler supports GNU C... " >&6; }
4826 if test ${ac_cv_c_compiler_gnu+y}
4827 then :
4828 printf %s "(cached) " >&6
4829 else case e in #(
4830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832
4833 int
4834 main (void)
4835 {
4836 #ifndef __GNUC__
4837 choke me
4838 #endif
4839
4840 ;
4841 return 0;
4842 }
4843 _ACEOF
4844 if ac_fn_c_try_compile "$LINENO"
4845 then :
4846 ac_compiler_gnu=yes
4847 else case e in #(
4848 e) ac_compiler_gnu=no ;;
4849 esac
4850 fi
4851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4852 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4853 ;;
4854 esac
4855 fi
4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4857 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859
4860 if test $ac_compiler_gnu = yes; then
4861 GCC=yes
4862 else
4863 GCC=
4864 fi
4865 ac_test_CFLAGS=${CFLAGS+y}
4866 ac_save_CFLAGS=$CFLAGS
4867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4868 printf %s "checking whether $CC accepts -g... " >&6; }
4869 if test ${ac_cv_prog_cc_g+y}
4870 then :
4871 printf %s "(cached) " >&6
4872 else case e in #(
4873 e) ac_save_c_werror_flag=$ac_c_werror_flag
4874 ac_c_werror_flag=yes
4875 ac_cv_prog_cc_g=no
4876 CFLAGS="-g"
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879
4880 int
4881 main (void)
4882 {
4883
4884 ;
4885 return 0;
4886 }
4887 _ACEOF
4888 if ac_fn_c_try_compile "$LINENO"
4889 then :
4890 ac_cv_prog_cc_g=yes
4891 else case e in #(
4892 e) CFLAGS=""
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4895
4896 int
4897 main (void)
4898 {
4899
4900 ;
4901 return 0;
4902 }
4903 _ACEOF
4904 if ac_fn_c_try_compile "$LINENO"
4905 then :
4906
4907 else case e in #(
4908 e) ac_c_werror_flag=$ac_save_c_werror_flag
4909 CFLAGS="-g"
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912
4913 int
4914 main (void)
4915 {
4916
4917 ;
4918 return 0;
4919 }
4920 _ACEOF
4921 if ac_fn_c_try_compile "$LINENO"
4922 then :
4923 ac_cv_prog_cc_g=yes
4924 fi
4925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4926 esac
4927 fi
4928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4929 esac
4930 fi
4931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4932 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4933 esac
4934 fi
4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4936 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4937 if test $ac_test_CFLAGS; then
4938 CFLAGS=$ac_save_CFLAGS
4939 elif test $ac_cv_prog_cc_g = yes; then
4940 if test "$GCC" = yes; then
4941 CFLAGS="-g -O2"
4942 else
4943 CFLAGS="-g"
4944 fi
4945 else
4946 if test "$GCC" = yes; then
4947 CFLAGS="-O2"
4948 else
4949 CFLAGS=
4950 fi
4951 fi
4952 ac_prog_cc_stdc=no
4953 if test x$ac_prog_cc_stdc = xno
4954 then :
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4956 printf %s "checking for $CC option to enable C11 features... " >&6; }
4957 if test ${ac_cv_prog_cc_c11+y}
4958 then :
4959 printf %s "(cached) " >&6
4960 else case e in #(
4961 e) ac_cv_prog_cc_c11=no
4962 ac_save_CC=$CC
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4965 $ac_c_conftest_c11_program
4966 _ACEOF
4967 for ac_arg in '' -std=gnu11
4968 do
4969 CC="$ac_save_CC $ac_arg"
4970 if ac_fn_c_try_compile "$LINENO"
4971 then :
4972 ac_cv_prog_cc_c11=$ac_arg
4973 fi
4974 rm -f core conftest.err conftest.$ac_objext conftest.beam
4975 test "x$ac_cv_prog_cc_c11" != "xno" && break
4976 done
4977 rm -f conftest.$ac_ext
4978 CC=$ac_save_CC ;;
4979 esac
4980 fi
4981
4982 if test "x$ac_cv_prog_cc_c11" = xno
4983 then :
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4985 printf "%s\n" "unsupported" >&6; }
4986 else case e in #(
4987 e) if test "x$ac_cv_prog_cc_c11" = x
4988 then :
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4990 printf "%s\n" "none needed" >&6; }
4991 else case e in #(
4992 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4993 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4994 CC="$CC $ac_cv_prog_cc_c11" ;;
4995 esac
4996 fi
4997 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4998 ac_prog_cc_stdc=c11 ;;
4999 esac
5000 fi
5001 fi
5002 if test x$ac_prog_cc_stdc = xno
5003 then :
5004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5005 printf %s "checking for $CC option to enable C99 features... " >&6; }
5006 if test ${ac_cv_prog_cc_c99+y}
5007 then :
5008 printf %s "(cached) " >&6
5009 else case e in #(
5010 e) ac_cv_prog_cc_c99=no
5011 ac_save_CC=$CC
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5014 $ac_c_conftest_c99_program
5015 _ACEOF
5016 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5017 do
5018 CC="$ac_save_CC $ac_arg"
5019 if ac_fn_c_try_compile "$LINENO"
5020 then :
5021 ac_cv_prog_cc_c99=$ac_arg
5022 fi
5023 rm -f core conftest.err conftest.$ac_objext conftest.beam
5024 test "x$ac_cv_prog_cc_c99" != "xno" && break
5025 done
5026 rm -f conftest.$ac_ext
5027 CC=$ac_save_CC ;;
5028 esac
5029 fi
5030
5031 if test "x$ac_cv_prog_cc_c99" = xno
5032 then :
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5034 printf "%s\n" "unsupported" >&6; }
5035 else case e in #(
5036 e) if test "x$ac_cv_prog_cc_c99" = x
5037 then :
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5039 printf "%s\n" "none needed" >&6; }
5040 else case e in #(
5041 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5042 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5043 CC="$CC $ac_cv_prog_cc_c99" ;;
5044 esac
5045 fi
5046 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5047 ac_prog_cc_stdc=c99 ;;
5048 esac
5049 fi
5050 fi
5051 if test x$ac_prog_cc_stdc = xno
5052 then :
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5054 printf %s "checking for $CC option to enable C89 features... " >&6; }
5055 if test ${ac_cv_prog_cc_c89+y}
5056 then :
5057 printf %s "(cached) " >&6
5058 else case e in #(
5059 e) ac_cv_prog_cc_c89=no
5060 ac_save_CC=$CC
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5063 $ac_c_conftest_c89_program
5064 _ACEOF
5065 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5066 do
5067 CC="$ac_save_CC $ac_arg"
5068 if ac_fn_c_try_compile "$LINENO"
5069 then :
5070 ac_cv_prog_cc_c89=$ac_arg
5071 fi
5072 rm -f core conftest.err conftest.$ac_objext conftest.beam
5073 test "x$ac_cv_prog_cc_c89" != "xno" && break
5074 done
5075 rm -f conftest.$ac_ext
5076 CC=$ac_save_CC ;;
5077 esac
5078 fi
5079
5080 if test "x$ac_cv_prog_cc_c89" = xno
5081 then :
5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5083 printf "%s\n" "unsupported" >&6; }
5084 else case e in #(
5085 e) if test "x$ac_cv_prog_cc_c89" = x
5086 then :
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5088 printf "%s\n" "none needed" >&6; }
5089 else case e in #(
5090 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5091 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5092 CC="$CC $ac_cv_prog_cc_c89" ;;
5093 esac
5094 fi
5095 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5096 ac_prog_cc_stdc=c89 ;;
5097 esac
5098 fi
5099 fi
5100
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106
5107 ac_ext=c
5108 ac_cpp='$CPP $CPPFLAGS'
5109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5113 printf %s "checking how to run the C preprocessor... " >&6; }
5114 # On Suns, sometimes $CPP names a directory.
5115 if test -n "$CPP" && test -d "$CPP"; then
5116 CPP=
5117 fi
5118 if test -z "$CPP"; then
5119 if test ${ac_cv_prog_CPP+y}
5120 then :
5121 printf %s "(cached) " >&6
5122 else case e in #(
5123 e) # Double quotes because $CC needs to be expanded
5124 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5125 do
5126 ac_preproc_ok=false
5127 for ac_c_preproc_warn_flag in '' yes
5128 do
5129 # Use a header file that comes with gcc, so configuring glibc
5130 # with a fresh cross-compiler works.
5131 # On the NeXT, cc -E runs the code through the compiler's parser,
5132 # not just through cpp. "Syntax error" is here to catch this case.
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5135 #include <limits.h>
5136 Syntax error
5137 _ACEOF
5138 if ac_fn_c_try_cpp "$LINENO"
5139 then :
5140
5141 else case e in #(
5142 e) # Broken: fails on valid input.
5143 continue ;;
5144 esac
5145 fi
5146 rm -f conftest.err conftest.i conftest.$ac_ext
5147
5148 # OK, works on sane cases. Now check whether nonexistent headers
5149 # can be detected and how.
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5152 #include <ac_nonexistent.h>
5153 _ACEOF
5154 if ac_fn_c_try_cpp "$LINENO"
5155 then :
5156 # Broken: success on invalid input.
5157 continue
5158 else case e in #(
5159 e) # Passes both tests.
5160 ac_preproc_ok=:
5161 break ;;
5162 esac
5163 fi
5164 rm -f conftest.err conftest.i conftest.$ac_ext
5165
5166 done
5167 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168 rm -f conftest.i conftest.err conftest.$ac_ext
5169 if $ac_preproc_ok
5170 then :
5171 break
5172 fi
5173
5174 done
5175 ac_cv_prog_CPP=$CPP
5176 ;;
5177 esac
5178 fi
5179 CPP=$ac_cv_prog_CPP
5180 else
5181 ac_cv_prog_CPP=$CPP
5182 fi
5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5184 printf "%s\n" "$CPP" >&6; }
5185 ac_preproc_ok=false
5186 for ac_c_preproc_warn_flag in '' yes
5187 do
5188 # Use a header file that comes with gcc, so configuring glibc
5189 # with a fresh cross-compiler works.
5190 # On the NeXT, cc -E runs the code through the compiler's parser,
5191 # not just through cpp. "Syntax error" is here to catch this case.
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5194 #include <limits.h>
5195 Syntax error
5196 _ACEOF
5197 if ac_fn_c_try_cpp "$LINENO"
5198 then :
5199
5200 else case e in #(
5201 e) # Broken: fails on valid input.
5202 continue ;;
5203 esac
5204 fi
5205 rm -f conftest.err conftest.i conftest.$ac_ext
5206
5207 # OK, works on sane cases. Now check whether nonexistent headers
5208 # can be detected and how.
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5211 #include <ac_nonexistent.h>
5212 _ACEOF
5213 if ac_fn_c_try_cpp "$LINENO"
5214 then :
5215 # Broken: success on invalid input.
5216 continue
5217 else case e in #(
5218 e) # Passes both tests.
5219 ac_preproc_ok=:
5220 break ;;
5221 esac
5222 fi
5223 rm -f conftest.err conftest.i conftest.$ac_ext
5224
5225 done
5226 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5227 rm -f conftest.i conftest.err conftest.$ac_ext
5228 if $ac_preproc_ok
5229 then :
5230
5231 else case e in #(
5232 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5233 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5234 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5235 See 'config.log' for more details" "$LINENO" 5; } ;;
5236 esac
5237 fi
5238
5239 ac_ext=c
5240 ac_cpp='$CPP $CPPFLAGS'
5241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5244
5245
5246 #--------------------------------------------------------------------
5247 # Checks to see if the make program sets the $MAKE variable.
5248 #--------------------------------------------------------------------
5249
5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5251 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5252 set x ${MAKE-make}
5253 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5254 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5255 then :
5256 printf %s "(cached) " >&6
5257 else case e in #(
5258 e) cat >conftest.make <<\_ACEOF
5259 SHELL = /bin/sh
5260 all:
5261 @echo '@@@%%%=$(MAKE)=@@@%%%'
5262 _ACEOF
5263 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5264 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5265 *@@@%%%=?*=@@@%%%*)
5266 eval ac_cv_prog_make_${ac_make}_set=yes;;
5267 *)
5268 eval ac_cv_prog_make_${ac_make}_set=no;;
5269 esac
5270 rm -f conftest.make ;;
5271 esac
5272 fi
5273 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5275 printf "%s\n" "yes" >&6; }
5276 SET_MAKE=
5277 else
5278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 printf "%s\n" "no" >&6; }
5280 SET_MAKE="MAKE=${MAKE-make}"
5281 fi
5282
5283
5284 #--------------------------------------------------------------------
5285 # Find ranlib
5286 #--------------------------------------------------------------------
5287
5288 if test -n "$ac_tool_prefix"; then
5289 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5290 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 printf %s "checking for $ac_word... " >&6; }
5293 if test ${ac_cv_prog_RANLIB+y}
5294 then :
5295 printf %s "(cached) " >&6
5296 else case e in #(
5297 e) if test -n "$RANLIB"; then
5298 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303 IFS=$as_save_IFS
5304 case $as_dir in #(((
5305 '') as_dir=./ ;;
5306 */) ;;
5307 *) as_dir=$as_dir/ ;;
5308 esac
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315 done
5316 done
5317 IFS=$as_save_IFS
5318
5319 fi ;;
5320 esac
5321 fi
5322 RANLIB=$ac_cv_prog_RANLIB
5323 if test -n "$RANLIB"; then
5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5325 printf "%s\n" "$RANLIB" >&6; }
5326 else
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 printf "%s\n" "no" >&6; }
5329 fi
5330
5331
5332 fi
5333 if test -z "$ac_cv_prog_RANLIB"; then
5334 ac_ct_RANLIB=$RANLIB
5335 # Extract the first word of "ranlib", so it can be a program name with args.
5336 set dummy ranlib; ac_word=$2
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 printf %s "checking for $ac_word... " >&6; }
5339 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5340 then :
5341 printf %s "(cached) " >&6
5342 else case e in #(
5343 e) if test -n "$ac_ct_RANLIB"; then
5344 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5348 do
5349 IFS=$as_save_IFS
5350 case $as_dir in #(((
5351 '') as_dir=./ ;;
5352 */) ;;
5353 *) as_dir=$as_dir/ ;;
5354 esac
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5357 ac_cv_prog_ac_ct_RANLIB="ranlib"
5358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5359 break 2
5360 fi
5361 done
5362 done
5363 IFS=$as_save_IFS
5364
5365 fi ;;
5366 esac
5367 fi
5368 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5369 if test -n "$ac_ct_RANLIB"; then
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5371 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5372 else
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374 printf "%s\n" "no" >&6; }
5375 fi
5376
5377 if test "x$ac_ct_RANLIB" = x; then
5378 RANLIB=""
5379 else
5380 case $cross_compiling:$ac_tool_warned in
5381 yes:)
5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5383 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5384 ac_tool_warned=yes ;;
5385 esac
5386 RANLIB=$ac_ct_RANLIB
5387 fi
5388 else
5389 RANLIB="$ac_cv_prog_RANLIB"
5390 fi
5391
5392
5393 #--------------------------------------------------------------------
5394 # Determines the correct binary file extension (.o, .obj, .exe etc.)
5395 #--------------------------------------------------------------------
5396
5397
5398
5399
5400 ac_header= ac_cache=
5401 for ac_item in $ac_header_c_list
5402 do
5403 if test $ac_cache; then
5404 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5405 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5406 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5407 fi
5408 ac_header= ac_cache=
5409 elif test $ac_header; then
5410 ac_cache=$ac_item
5411 else
5412 ac_header=$ac_item
5413 fi
5414 done
5415
5416
5417
5418
5419
5420
5421
5422
5423 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5424 then :
5425
5426 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5427
5428 fi
5429
5430 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
5431
5432
5433 #------------------------------------------------------------------------
5434 # If we're using GCC, see if the compiler understands -pipe. If so, use it.
5435 # It makes compiling go faster. (This is only a performance feature.)
5436 #------------------------------------------------------------------------
5437
5438 if test -z "$no_pipe" -a -n "$GCC"; then
5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
5440 printf %s "checking if the compiler understands -pipe... " >&6; }
5441 if test ${tcl_cv_cc_pipe+y}
5442 then :
5443 printf %s "(cached) " >&6
5444 else case e in #(
5445 e)
5446 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449
5450 int
5451 main (void)
5452 {
5453
5454 ;
5455 return 0;
5456 }
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"
5459 then :
5460 tcl_cv_cc_pipe=yes
5461 else case e in #(
5462 e) tcl_cv_cc_pipe=no ;;
5463 esac
5464 fi
5465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5466 CFLAGS=$hold_cflags ;;
5467 esac
5468 fi
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
5470 printf "%s\n" "$tcl_cv_cc_pipe" >&6; }
5471 if test $tcl_cv_cc_pipe = yes; then
5472 CFLAGS="$CFLAGS -pipe"
5473 fi
5474 fi
5475
5476 if test "${TCL_MAJOR_VERSION}" -lt 9 -a "${TCL_MINOR_VERSION}" -lt 7; then
5477
5478 printf "%s\n" "#define Tcl_Size int" >>confdefs.h
5479
5480 fi
5481
5482 #--------------------------------------------------------------------
5483 # Common compiler flag setup
5484 #--------------------------------------------------------------------
5485
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5487 printf %s "checking whether byte ordering is bigendian... " >&6; }
5488 if test ${ac_cv_c_bigendian+y}
5489 then :
5490 printf %s "(cached) " >&6
5491 else case e in #(
5492 e) ac_cv_c_bigendian=unknown
5493 # See if we're dealing with a universal compiler.
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h. */
5496 #ifndef __APPLE_CC__
5497 not a universal capable compiler
5498 #endif
5499 typedef int dummy;
5500
5501 _ACEOF
5502 if ac_fn_c_try_compile "$LINENO"
5503 then :
5504
5505 # Check for potential -arch flags. It is not universal unless
5506 # there are at least two -arch flags with different values.
5507 ac_arch=
5508 ac_prev=
5509 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5510 if test -n "$ac_prev"; then
5511 case $ac_word in
5512 i?86 | x86_64 | ppc | ppc64)
5513 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5514 ac_arch=$ac_word
5515 else
5516 ac_cv_c_bigendian=universal
5517 break
5518 fi
5519 ;;
5520 esac
5521 ac_prev=
5522 elif test "x$ac_word" = "x-arch"; then
5523 ac_prev=arch
5524 fi
5525 done
5526 fi
5527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5528 if test $ac_cv_c_bigendian = unknown; then
5529 # See if sys/param.h defines the BYTE_ORDER macro.
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5532 #include <sys/types.h>
5533 #include <sys/param.h>
5534
5535 int
5536 main (void)
5537 {
5538 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
5539 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
5540 && LITTLE_ENDIAN)
5541 bogus endian macros
5542 #endif
5543
5544 ;
5545 return 0;
5546 }
5547 _ACEOF
5548 if ac_fn_c_try_compile "$LINENO"
5549 then :
5550 # It does; now see whether it defined to BIG_ENDIAN or not.
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 #include <sys/types.h>
5554 #include <sys/param.h>
5555
5556 int
5557 main (void)
5558 {
5559 #if BYTE_ORDER != BIG_ENDIAN
5560 not big endian
5561 #endif
5562
5563 ;
5564 return 0;
5565 }
5566 _ACEOF
5567 if ac_fn_c_try_compile "$LINENO"
5568 then :
5569 ac_cv_c_bigendian=yes
5570 else case e in #(
5571 e) ac_cv_c_bigendian=no ;;
5572 esac
5573 fi
5574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5575 fi
5576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5577 fi
5578 if test $ac_cv_c_bigendian = unknown; then
5579 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582 #include <limits.h>
5583
5584 int
5585 main (void)
5586 {
5587 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5588 bogus endian macros
5589 #endif
5590
5591 ;
5592 return 0;
5593 }
5594 _ACEOF
5595 if ac_fn_c_try_compile "$LINENO"
5596 then :
5597 # It does; now see whether it defined to _BIG_ENDIAN or not.
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600 #include <limits.h>
5601
5602 int
5603 main (void)
5604 {
5605 #ifndef _BIG_ENDIAN
5606 not big endian
5607 #endif
5608
5609 ;
5610 return 0;
5611 }
5612 _ACEOF
5613 if ac_fn_c_try_compile "$LINENO"
5614 then :
5615 ac_cv_c_bigendian=yes
5616 else case e in #(
5617 e) ac_cv_c_bigendian=no ;;
5618 esac
5619 fi
5620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5621 fi
5622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5623 fi
5624 if test $ac_cv_c_bigendian = unknown; then
5625 # Compile a test program.
5626 if test "$cross_compiling" = yes
5627 then :
5628 # Try to guess by grepping values from an object file.
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631 unsigned short int ascii_mm[] =
5632 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5633 unsigned short int ascii_ii[] =
5634 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5635 int use_ascii (int i) {
5636 return ascii_mm[i] + ascii_ii[i];
5637 }
5638 unsigned short int ebcdic_ii[] =
5639 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5640 unsigned short int ebcdic_mm[] =
5641 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5642 int use_ebcdic (int i) {
5643 return ebcdic_mm[i] + ebcdic_ii[i];
5644 }
5645 int
5646 main (int argc, char **argv)
5647 {
5648 /* Intimidate the compiler so that it does not
5649 optimize the arrays away. */
5650 char *p = argv[0];
5651 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
5652 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
5653 return use_ascii (argc) == use_ebcdic (*p);
5654 }
5655 _ACEOF
5656 if ac_fn_c_try_link "$LINENO"
5657 then :
5658 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
5659 ac_cv_c_bigendian=yes
5660 fi
5661 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
5662 if test "$ac_cv_c_bigendian" = unknown; then
5663 ac_cv_c_bigendian=no
5664 else
5665 # finding both strings is unlikely to happen, but who knows?
5666 ac_cv_c_bigendian=unknown
5667 fi
5668 fi
5669 fi
5670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5671 conftest$ac_exeext conftest.$ac_ext
5672 else case e in #(
5673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 $ac_includes_default
5676 int
5677 main (void)
5678 {
5679
5680 /* Are we little or big endian? From Harbison&Steele. */
5681 union
5682 {
5683 long int l;
5684 char c[sizeof (long int)];
5685 } u;
5686 u.l = 1;
5687 return u.c[sizeof (long int) - 1] == 1;
5688
5689 ;
5690 return 0;
5691 }
5692 _ACEOF
5693 if ac_fn_c_try_run "$LINENO"
5694 then :
5695 ac_cv_c_bigendian=no
5696 else case e in #(
5697 e) ac_cv_c_bigendian=yes ;;
5698 esac
5699 fi
5700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5701 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5702 esac
5703 fi
5704
5705 fi ;;
5706 esac
5707 fi
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5709 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5710 case $ac_cv_c_bigendian in #(
5711 yes)
5712 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5713 ;; #(
5714 no)
5715 ;; #(
5716 universal)
5717 #
5718 ;; #(
5719 *)
5720 as_fn_error $? "unknown endianness
5721 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5722 esac
5723
5724
5725
5726
5727 #
5728 # Ok, lets find the tkimg configuration
5729 # First, look for one uninstalled.
5730 # the alternative search directory is invoked by --with-tkimg
5731 #
5732
5733 if test x"${no_tkimg}" = x ; then
5734 # we reset no_tkimg in case something fails here
5735 no_tkimg=true
5736
5737 # Check whether --with-tkimg was given.
5738 if test ${with_tkimg+y}
5739 then :
5740 withval=$with_tkimg; with_tkimgconfig=${withval}
5741 fi
5742
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tkimg configuration" >&5
5744 printf %s "checking for tkimg configuration... " >&6; }
5745 if test ${ac_cv_c_tkimgconfig+y}
5746 then :
5747 printf %s "(cached) " >&6
5748 else case e in #(
5749 e)
5750
5751 # First check to see if --with-tkimg was specified.
5752 if test x"${with_tkimgconfig}" != x ; then
5753 case ${with_tkimgconfig} in
5754 */tkimgConfig.sh )
5755 if test -f ${with_tkimgconfig}; then
5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-tkimg argument should refer to directory containing tkimgConfig.sh, not to tkimgConfig.sh itself" >&5
5757 printf "%s\n" "$as_me: WARNING: --with-tkimg argument should refer to directory containing tkimgConfig.sh, not to tkimgConfig.sh itself" >&2;}
5758 with_tkimgconfig=`echo ${with_tkimgconfig} | sed 's!/tkimgConfig\.sh$!!'`
5759 fi;;
5760 esac
5761 if test -f "${with_tkimgconfig}/tkimgConfig.sh" ; then
5762 ac_cv_c_tkimgconfig=`(cd ${with_tkimgconfig}; pwd)`
5763 else
5764 as_fn_error $? "${with_tkimgconfig} directory doesn't contain tkimgConfig.sh" "$LINENO" 5
5765 fi
5766 fi
5767
5768 # then check for a private tkimg installation
5769 if test x"${ac_cv_c_tkimgconfig}" = x ; then
5770 for i in \
5771 ../tkimg \
5772 `ls -dr ../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
5773 `ls -dr ../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \
5774 `ls -dr ../tkimg*[0-9].[0-9] 2>/dev/null` \
5775 `ls -dr ../tkimg*[0-9].[0-9]* 2>/dev/null` \
5776 ../../tkimg \
5777 `ls -dr ../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
5778 `ls -dr ../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \
5779 `ls -dr ../../tkimg*[0-9].[0-9] 2>/dev/null` \
5780 `ls -dr ../../tkimg*[0-9].[0-9]* 2>/dev/null` \
5781 ../../../tkimg \
5782 `ls -dr ../../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
5783 `ls -dr ../../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \
5784 `ls -dr ../../../tkimg*[0-9].[0-9] 2>/dev/null` \
5785 `ls -dr ../../../tkimg*[0-9].[0-9]* 2>/dev/null` \
5786 ${srcdir}/../tkimg \
5787 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
5788 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \
5789 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9] 2>/dev/null` \
5790 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]* 2>/dev/null` \
5791 ; do
5792 if test -f "$i/tkimgConfig.sh" ; then
5793 ac_cv_c_tkimgconfig=`(cd $i; pwd)`
5794 break
5795 fi
5796 if test -f "$i/unix/tkimgConfig.sh" ; then
5797 ac_cv_c_tkimgconfig=`(cd $i/unix; pwd)`
5798 break
5799 fi
5800 done
5801 fi
5802
5803 # check in a few common install locations
5804 if test x"${ac_cv_c_tkimgconfig}" = x ; then
5805 for i in `ls -d ${libdir} 2>/dev/null` \
5806 `ls -d ${exec_prefix}/lib 2>/dev/null` \
5807 `ls -d ${prefix}/lib 2>/dev/null` \
5808 `ls -d /usr/local/lib 2>/dev/null` \
5809 `ls -d /usr/contrib/lib 2>/dev/null` \
5810 `ls -d /usr/pkg/lib 2>/dev/null` \
5811 `ls -d /usr/lib 2>/dev/null` \
5812 `ls -d /usr/lib64 2>/dev/null` \
5813 ; do
5814 if test -f "$i/tkimgConfig.sh" ; then
5815 ac_cv_c_tkimgconfig=`(cd $i; pwd)`
5816 break
5817 fi
5818 done
5819 fi
5820 ;;
5821 esac
5822 fi
5823
5824
5825 if test x"${ac_cv_c_tkimgconfig}" = x ; then
5826 tkimg_BIN_DIR="# no tkimg configs found"
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find tkimg configuration definitions" >&5
5828 printf "%s\n" "$as_me: WARNING: Cannot find tkimg configuration definitions" >&2;}
5829 exit 0
5830 else
5831 no_tkimg=
5832 tkimg_BIN_DIR=${ac_cv_c_tkimgconfig}
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $tkimg_BIN_DIR/tkimgConfig.sh" >&5
5834 printf "%s\n" "found $tkimg_BIN_DIR/tkimgConfig.sh" >&6; }
5835 fi
5836 fi
5837
5838
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh" >&5
5840 printf %s "checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh... " >&6; }
5841
5842 if test -f "${tkimg_BIN_DIR}/tkimgConfig.sh" ; then
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
5844 printf "%s\n" "loading" >&6; }
5845 . "${tkimg_BIN_DIR}/tkimgConfig.sh"
5846 else
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
5848 printf "%s\n" "file not found" >&6; }
5849 fi
5850
5851 #
5852 # If the tkimg_BIN_DIR is the build directory (not the install directory),
5853 # then set the common variable name to the value of the build variables.
5854 # For example, the variable tkimg_LIB_SPEC will be set to the value
5855 # of tkimg_BUILD_LIB_SPEC. An extension should make use of tkimg_LIB_SPEC
5856 # instead of tkimg_BUILD_LIB_SPEC since it will work with both an
5857 # installed and uninstalled version of Tcl.
5858 #
5859
5860 if test -f "${tkimg_BIN_DIR}/Makefile" ; then
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found Makefile - using build library specs for tkimg" >&5
5862 printf "%s\n" "$as_me: WARNING: Found Makefile - using build library specs for tkimg" >&2;}
5863 tkimg_LIB_SPEC=${tkimg_BUILD_LIB_SPEC}
5864 tkimg_STUB_LIB_SPEC=${tkimg_BUILD_STUB_LIB_SPEC}
5865 tkimg_STUB_LIB_PATH=${tkimg_BUILD_STUB_LIB_PATH}
5866 tkimg_INCLUDE_SPEC=${tkimg_BUILD_INCLUDE_SPEC}
5867 tkimg_LIBRARY_PATH=${tkimg_LIBRARY_PATH}
5868 fi
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 # Allow the caller to prevent this auto-check by specifying any 2nd arg
5882 if test "x" = x
5883 then :
5884
5885 # Check both upper and lower-case variants
5886 # If a dev wanted non-stubs libs, this function could take an option
5887 # to not use _STUB in the paths below
5888 if test "x${tkimg_STUB_LIB_SPEC}" = x
5889 then :
5890
5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For TKIMG_STUB library for LIBS" >&5
5892 printf %s "checking For TKIMG_STUB library for LIBS... " >&6; }
5893 # This simplifies the use of stub libraries by automatically adding
5894 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
5895 # but this is called before CONFIG_CFLAGS. More importantly, this adds
5896 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
5897 if test "x${TKIMG_STUB_LIB_SPEC}" != "x" ; then
5898 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
5899
5900 vars="\"`${CYGPATH} ${TKIMG_STUB_LIB_PATH}`\""
5901 for i in $vars; do
5902 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5903 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5904 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5905 fi
5906 PKG_LIBS="$PKG_LIBS $i"
5907 done
5908
5909
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&5
5911 printf "%s\n" "using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&6; }
5912 else
5913
5914 vars="${TKIMG_STUB_LIB_SPEC}"
5915 for i in $vars; do
5916 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5917 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5918 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5919 fi
5920 PKG_LIBS="$PKG_LIBS $i"
5921 done
5922
5923
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&5
5925 printf "%s\n" "using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&6; }
5926 fi
5927 else
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
5929 printf "%s\n" "file not found" >&6; }
5930 fi
5931
5932 else case e in #(
5933 e)
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For tkimg_STUB library for LIBS" >&5
5935 printf %s "checking For tkimg_STUB library for LIBS... " >&6; }
5936 # This simplifies the use of stub libraries by automatically adding
5937 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
5938 # but this is called before CONFIG_CFLAGS. More importantly, this adds
5939 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
5940 if test "x${tkimg_STUB_LIB_SPEC}" != "x" ; then
5941 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
5942
5943 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\""
5944 for i in $vars; do
5945 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5946 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5947 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5948 fi
5949 PKG_LIBS="$PKG_LIBS $i"
5950 done
5951
5952
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&5
5954 printf "%s\n" "using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&6; }
5955 else
5956
5957 vars="${tkimg_STUB_LIB_SPEC}"
5958 for i in $vars; do
5959 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5960 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5961 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5962 fi
5963 PKG_LIBS="$PKG_LIBS $i"
5964 done
5965
5966
5967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&5
5968 printf "%s\n" "using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&6; }
5969 fi
5970 else
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
5972 printf "%s\n" "file not found" >&6; }
5973 fi
5974 ;;
5975 esac
5976 fi
5977
5978 fi
5979
5980
5981
5982 #
5983 # Ok, lets find the jpegtcl configuration
5984 # First, look for one uninstalled.
5985 # the alternative search directory is invoked by --with-jpegtcl
5986 #
5987
5988 if test x"${no_jpegtcl}" = x ; then
5989 # we reset no_jpegtcl in case something fails here
5990 no_jpegtcl=true
5991
5992 # Check whether --with-jpegtcl was given.
5993 if test ${with_jpegtcl+y}
5994 then :
5995 withval=$with_jpegtcl; with_jpegtclconfig=${withval}
5996 fi
5997
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jpegtcl configuration" >&5
5999 printf %s "checking for jpegtcl configuration... " >&6; }
6000 if test ${ac_cv_c_jpegtclconfig+y}
6001 then :
6002 printf %s "(cached) " >&6
6003 else case e in #(
6004 e)
6005
6006 # First check to see if --with-jpegtcl was specified.
6007 if test x"${with_jpegtclconfig}" != x ; then
6008 case ${with_jpegtclconfig} in
6009 */jpegtclConfig.sh )
6010 if test -f ${with_jpegtclconfig}; then
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-jpegtcl argument should refer to directory containing jpegtclConfig.sh, not to jpegtclConfig.sh itself" >&5
6012 printf "%s\n" "$as_me: WARNING: --with-jpegtcl argument should refer to directory containing jpegtclConfig.sh, not to jpegtclConfig.sh itself" >&2;}
6013 with_jpegtclconfig=`echo ${with_jpegtclconfig} | sed 's!/jpegtclConfig\.sh$!!'`
6014 fi;;
6015 esac
6016 if test -f "${with_jpegtclconfig}/jpegtclConfig.sh" ; then
6017 ac_cv_c_jpegtclconfig=`(cd ${with_jpegtclconfig}; pwd)`
6018 else
6019 as_fn_error $? "${with_jpegtclconfig} directory doesn't contain jpegtclConfig.sh" "$LINENO" 5
6020 fi
6021 fi
6022
6023 # then check for a private jpegtcl installation
6024 if test x"${ac_cv_c_jpegtclconfig}" = x ; then
6025 for i in \
6026 ../jpegtcl \
6027 `ls -dr ../jpegtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
6028 `ls -dr ../jpegtcl*[0-9].[0-9][0-9] 2>/dev/null` \
6029 `ls -dr ../jpegtcl*[0-9].[0-9] 2>/dev/null` \
6030 `ls -dr ../jpegtcl*[0-9].[0-9]* 2>/dev/null` \
6031 ../../jpegtcl \
6032 `ls -dr ../../jpegtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
6033 `ls -dr ../../jpegtcl*[0-9].[0-9][0-9] 2>/dev/null` \
6034 `ls -dr ../../jpegtcl*[0-9].[0-9] 2>/dev/null` \
6035 `ls -dr ../../jpegtcl*[0-9].[0-9]* 2>/dev/null` \
6036 ../../../jpegtcl \
6037 `ls -dr ../../../jpegtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
6038 `ls -dr ../../../jpegtcl*[0-9].[0-9][0-9] 2>/dev/null` \
6039 `ls -dr ../../../jpegtcl*[0-9].[0-9] 2>/dev/null` \
6040 `ls -dr ../../../jpegtcl*[0-9].[0-9]* 2>/dev/null` \
6041 ${srcdir}/../jpegtcl \
6042 `ls -dr ${srcdir}/../jpegtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
6043 `ls -dr ${srcdir}/../jpegtcl*[0-9].[0-9][0-9] 2>/dev/null` \
6044 `ls -dr ${srcdir}/../jpegtcl*[0-9].[0-9] 2>/dev/null` \
6045 `ls -dr ${srcdir}/../jpegtcl*[0-9].[0-9]* 2>/dev/null` \
6046 ; do
6047 if test -f "$i/jpegtclConfig.sh" ; then
6048 ac_cv_c_jpegtclconfig=`(cd $i; pwd)`
6049 break
6050 fi
6051 if test -f "$i/unix/jpegtclConfig.sh" ; then
6052 ac_cv_c_jpegtclconfig=`(cd $i/unix; pwd)`
6053 break
6054 fi
6055 done
6056 fi
6057
6058 # check in a few common install locations
6059 if test x"${ac_cv_c_jpegtclconfig}" = x ; then
6060 for i in `ls -d ${libdir} 2>/dev/null` \
6061 `ls -d ${exec_prefix}/lib 2>/dev/null` \
6062 `ls -d ${prefix}/lib 2>/dev/null` \
6063 `ls -d /usr/local/lib 2>/dev/null` \
6064 `ls -d /usr/contrib/lib 2>/dev/null` \
6065 `ls -d /usr/pkg/lib 2>/dev/null` \
6066 `ls -d /usr/lib 2>/dev/null` \
6067 `ls -d /usr/lib64 2>/dev/null` \
6068 ; do
6069 if test -f "$i/jpegtclConfig.sh" ; then
6070 ac_cv_c_jpegtclconfig=`(cd $i; pwd)`
6071 break
6072 fi
6073 done
6074 fi
6075 ;;
6076 esac
6077 fi
6078
6079
6080 if test x"${ac_cv_c_jpegtclconfig}" = x ; then
6081 jpegtcl_BIN_DIR="# no jpegtcl configs found"
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find jpegtcl configuration definitions" >&5
6083 printf "%s\n" "$as_me: WARNING: Cannot find jpegtcl configuration definitions" >&2;}
6084 exit 0
6085 else
6086 no_jpegtcl=
6087 jpegtcl_BIN_DIR=${ac_cv_c_jpegtclconfig}
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $jpegtcl_BIN_DIR/jpegtclConfig.sh" >&5
6089 printf "%s\n" "found $jpegtcl_BIN_DIR/jpegtclConfig.sh" >&6; }
6090 fi
6091 fi
6092
6093
6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${jpegtcl_BIN_DIR}/jpegtclConfig.sh" >&5
6095 printf %s "checking for existence of ${jpegtcl_BIN_DIR}/jpegtclConfig.sh... " >&6; }
6096
6097 if test -f "${jpegtcl_BIN_DIR}/jpegtclConfig.sh" ; then
6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
6099 printf "%s\n" "loading" >&6; }
6100 . "${jpegtcl_BIN_DIR}/jpegtclConfig.sh"
6101 else
6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
6103 printf "%s\n" "file not found" >&6; }
6104 fi
6105
6106 #
6107 # If the jpegtcl_BIN_DIR is the build directory (not the install directory),
6108 # then set the common variable name to the value of the build variables.
6109 # For example, the variable jpegtcl_LIB_SPEC will be set to the value
6110 # of jpegtcl_BUILD_LIB_SPEC. An extension should make use of jpegtcl_LIB_SPEC
6111 # instead of jpegtcl_BUILD_LIB_SPEC since it will work with both an
6112 # installed and uninstalled version of Tcl.
6113 #
6114
6115 if test -f "${jpegtcl_BIN_DIR}/Makefile" ; then
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found Makefile - using build library specs for jpegtcl" >&5
6117 printf "%s\n" "$as_me: WARNING: Found Makefile - using build library specs for jpegtcl" >&2;}
6118 jpegtcl_LIB_SPEC=${jpegtcl_BUILD_LIB_SPEC}
6119 jpegtcl_STUB_LIB_SPEC=${jpegtcl_BUILD_STUB_LIB_SPEC}
6120 jpegtcl_STUB_LIB_PATH=${jpegtcl_BUILD_STUB_LIB_PATH}
6121 jpegtcl_INCLUDE_SPEC=${jpegtcl_BUILD_INCLUDE_SPEC}
6122 jpegtcl_LIBRARY_PATH=${jpegtcl_LIBRARY_PATH}
6123 fi
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136 # Allow the caller to prevent this auto-check by specifying any 2nd arg
6137 if test "x" = x
6138 then :
6139
6140 # Check both upper and lower-case variants
6141 # If a dev wanted non-stubs libs, this function could take an option
6142 # to not use _STUB in the paths below
6143 if test "x${jpegtcl_STUB_LIB_SPEC}" = x
6144 then :
6145
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For JPEGTCL_STUB library for LIBS" >&5
6147 printf %s "checking For JPEGTCL_STUB library for LIBS... " >&6; }
6148 # This simplifies the use of stub libraries by automatically adding
6149 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
6150 # but this is called before CONFIG_CFLAGS. More importantly, this adds
6151 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
6152 if test "x${JPEGTCL_STUB_LIB_SPEC}" != "x" ; then
6153 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
6154
6155 vars="\"`${CYGPATH} ${JPEGTCL_STUB_LIB_PATH}`\""
6156 for i in $vars; do
6157 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6158 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6159 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6160 fi
6161 PKG_LIBS="$PKG_LIBS $i"
6162 done
6163
6164
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using JPEGTCL_STUB_LIB_PATH ${JPEGTCL_STUB_LIB_PATH}" >&5
6166 printf "%s\n" "using JPEGTCL_STUB_LIB_PATH ${JPEGTCL_STUB_LIB_PATH}" >&6; }
6167 else
6168
6169 vars="${JPEGTCL_STUB_LIB_SPEC}"
6170 for i in $vars; do
6171 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6172 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6173 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6174 fi
6175 PKG_LIBS="$PKG_LIBS $i"
6176 done
6177
6178
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using JPEGTCL_STUB_LIB_SPEC ${JPEGTCL_STUB_LIB_SPEC}" >&5
6180 printf "%s\n" "using JPEGTCL_STUB_LIB_SPEC ${JPEGTCL_STUB_LIB_SPEC}" >&6; }
6181 fi
6182 else
6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
6184 printf "%s\n" "file not found" >&6; }
6185 fi
6186
6187 else case e in #(
6188 e)
6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For jpegtcl_STUB library for LIBS" >&5
6190 printf %s "checking For jpegtcl_STUB library for LIBS... " >&6; }
6191 # This simplifies the use of stub libraries by automatically adding
6192 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
6193 # but this is called before CONFIG_CFLAGS. More importantly, this adds
6194 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
6195 if test "x${jpegtcl_STUB_LIB_SPEC}" != "x" ; then
6196 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
6197
6198 vars="\"`${CYGPATH} ${jpegtcl_STUB_LIB_PATH}`\""
6199 for i in $vars; do
6200 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6201 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6202 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6203 fi
6204 PKG_LIBS="$PKG_LIBS $i"
6205 done
6206
6207
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using jpegtcl_STUB_LIB_PATH ${jpegtcl_STUB_LIB_PATH}" >&5
6209 printf "%s\n" "using jpegtcl_STUB_LIB_PATH ${jpegtcl_STUB_LIB_PATH}" >&6; }
6210 else
6211
6212 vars="${jpegtcl_STUB_LIB_SPEC}"
6213 for i in $vars; do
6214 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6215 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6216 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6217 fi
6218 PKG_LIBS="$PKG_LIBS $i"
6219 done
6220
6221
6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using jpegtcl_STUB_LIB_SPEC ${jpegtcl_STUB_LIB_SPEC}" >&5
6223 printf "%s\n" "using jpegtcl_STUB_LIB_SPEC ${jpegtcl_STUB_LIB_SPEC}" >&6; }
6224 fi
6225 else
6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
6227 printf "%s\n" "file not found" >&6; }
6228 fi
6229 ;;
6230 esac
6231 fi
6232
6233 fi
6234
6235
6236
6237
6238 #--------------------------------------------------------------------
6239 # Compute an absolute path to the src directory of module 'tkimg' so
6240 # that we are able to find its headers even if they are not installed.
6241 #--------------------------------------------------------------------
6242
6243 case $tkimg_SRC_DIR in
6244 /*) tkimg_SRC_PATH=$tkimg_SRC_DIR
6245 ;;
6246 *) # SRC_DIR relative, splice with BUILD_PATH
6247 tkimg_SRC_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`/$tkimg_SRC_DIR"
6248 esac
6249
6250 tkimg_BUILD_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`"
6251
6252 if test "${TEA_PLATFORM}" = "windows" ; then
6253 tkimg_SRC_PATH="`$CYGPATH $tkimg_SRC_PATH`"
6254 tkimg_BUILD_PATH="`$CYGPATH $tkimg_BUILD_PATH`"
6255 fi
6256
6257
6258
6259
6260
6261 #--------------------------------------------------------------------
6262 # Compute an absolute path to the src directory of module 'jpegtcl' so
6263 # that we are able to find its headers even if they are not installed.
6264 #--------------------------------------------------------------------
6265
6266 case $jpegtcl_SRC_DIR in
6267 /*) jpegtcl_SRC_PATH=$jpegtcl_SRC_DIR
6268 ;;
6269 *) # SRC_DIR relative, splice with BUILD_PATH
6270 jpegtcl_SRC_PATH="`dirname $jpegtcl_BUILD_STUB_LIB_PATH`/$jpegtcl_SRC_DIR"
6271 esac
6272
6273 jpegtcl_BUILD_PATH="`dirname $jpegtcl_BUILD_STUB_LIB_PATH`"
6274
6275 if test "${TEA_PLATFORM}" = "windows" ; then
6276 jpegtcl_SRC_PATH="`$CYGPATH $jpegtcl_SRC_PATH`"
6277 jpegtcl_BUILD_PATH="`$CYGPATH $jpegtcl_BUILD_PATH`"
6278 fi
6279
6280
6281
6282
6283
6284 #-----------------------------------------------------------------------
6285 # Specify the C source files to compile in TEA_ADD_SOURCES,
6286 # public headers that need to be installed in TEA_ADD_HEADERS,
6287 # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
6288 # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
6289 # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
6290 # and PKG_TCL_SOURCES.
6291 #-----------------------------------------------------------------------
6292
6293
6294 vars="jpeg.c"
6295 for i in $vars; do
6296 case $i in
6297 \$*)
6298 # allow $-var names
6299 PKG_SOURCES="$PKG_SOURCES $i"
6300 PKG_OBJECTS="$PKG_OBJECTS $i"
6301 ;;
6302 *)
6303 # check for existence - allows for generic/win/unix VPATH
6304 # To add more dirs here (like 'src'), you have to update VPATH
6305 # in Makefile.in as well
6306 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6307 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6308 -a ! -f "${srcdir}/macosx/$i" \
6309 ; then
6310 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
6311 fi
6312 PKG_SOURCES="$PKG_SOURCES $i"
6313 # this assumes it is in a VPATH dir
6314 i=`basename $i`
6315 # handle user calling this before or after TEA_SETUP_COMPILER
6316 if test x"${OBJEXT}" != x ; then
6317 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6318 else
6319 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6320 fi
6321 PKG_OBJECTS="$PKG_OBJECTS $j"
6322 ;;
6323 esac
6324 done
6325
6326
6327
6328
6329 vars=""
6330 for i in $vars; do
6331 # check for existence, be strict because it is installed
6332 if test ! -f "${srcdir}/$i" ; then
6333 as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5
6334 fi
6335 PKG_HEADERS="$PKG_HEADERS $i"
6336 done
6337
6338
6339
6340 vars="-I\"`\${CYGPATH} \${tkimg_SRC_PATH}`\""
6341 for i in $vars; do
6342 PKG_INCLUDES="$PKG_INCLUDES $i"
6343 done
6344
6345
6346
6347 vars="-I\"`\${CYGPATH} \${jpegtcl_SRC_PATH}`\""
6348 for i in $vars; do
6349 PKG_INCLUDES="$PKG_INCLUDES $i"
6350 done
6351
6352
6353
6354 vars="-I\"`\${CYGPATH} \${jpegtcl_BUILD_PATH}/libjpeg`\""
6355 for i in $vars; do
6356 PKG_INCLUDES="$PKG_INCLUDES $i"
6357 done
6358
6359
6360
6361 vars="-I."
6362 for i in $vars; do
6363 PKG_INCLUDES="$PKG_INCLUDES $i"
6364 done
6365
6366
6367
6368 vars=""
6369 for i in $vars; do
6370 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6371 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6372 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6373 fi
6374 PKG_LIBS="$PKG_LIBS $i"
6375 done
6376
6377
6378
6379 PKG_CFLAGS="$PKG_CFLAGS -DTKIMG_VERSION=\\\"\${tkimg_VERSION}\\\""
6380
6381
6382
6383 PKG_CFLAGS="$PKG_CFLAGS -DJPEGTCL_VERSION=\\\"\${jpegtcl_VERSION}\\\""
6384
6385
6386
6387 vars=""
6388 for i in $vars; do
6389 # check for existence - allows for generic/win/unix VPATH
6390 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6391 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6392 -a ! -f "${srcdir}/macosx/$i" \
6393 ; then
6394 as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5
6395 fi
6396 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
6397 # this assumes it is in a VPATH dir
6398 i=`basename $i`
6399 # handle user calling this before or after TEA_SETUP_COMPILER
6400 if test x"${OBJEXT}" != x ; then
6401 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6402 else
6403 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6404 fi
6405 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
6406 done
6407
6408
6409
6410
6411 vars=""
6412 for i in $vars; do
6413 # check for existence, be strict because it is installed
6414 if test ! -f "${srcdir}/$i" ; then
6415 as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5
6416 fi
6417 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
6418 done
6419
6420
6421
6422 PUP="`echo ${PACKAGE_NAME}| tr 'a-z' 'A-Z'`"
6423
6424 sed < "`${CYGPATH} ${srcdir}/../init.c`" > "init.c" \
6425 -e "s/@CPACKAGE@/${CPACKAGE}/" \
6426 -e "s/%PACKAGE%/${PACKAGE_NAME}/" \
6427 -e "s/%PACKAGE_UP%/${PUP}/" \
6428 -e "s/%PHIMGTYPE%/${PHIMGTYPE}/"
6429
6430 # init.c is an included source file, not a source by itself
6431 # FUTURE: Do this through AC_OUTPUT!!
6432
6433 #--------------------------------------------------------------------
6434 # __CHANGE__
6435 # Choose which headers you need. Extension authors should try very
6436 # hard to only rely on the Tcl public header files. Internal headers
6437 # contain private data structures and are subject to change without
6438 # notice.
6439 # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
6440 #--------------------------------------------------------------------
6441
6442
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
6444 printf %s "checking for Tcl public headers... " >&6; }
6445
6446
6447 # Check whether --with-tclinclude was given.
6448 if test ${with_tclinclude+y}
6449 then :
6450 withval=$with_tclinclude; with_tclinclude=${withval}
6451 fi
6452
6453
6454 if test ${ac_cv_c_tclh+y}
6455 then :
6456 printf %s "(cached) " >&6
6457 else case e in #(
6458 e)
6459 # Use the value from --with-tclinclude, if it was given
6460
6461 if test x"${with_tclinclude}" != x ; then
6462 if test -f "${with_tclinclude}/tcl.h" ; then
6463 ac_cv_c_tclh=${with_tclinclude}
6464 else
6465 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5
6466 fi
6467 else
6468 list=""
6469 if test "`uname -s`" = "Darwin"; then
6470 # If Tcl was built as a framework, attempt to use
6471 # the framework's Headers directory
6472 case ${TCL_DEFS} in
6473 *TCL_FRAMEWORK*)
6474 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
6475 ;;
6476 esac
6477 fi
6478
6479 # Look in the source dir only if Tcl is not installed,
6480 # and in that situation, look there before installed locations.
6481 if test -f "${TCL_BIN_DIR}/Makefile" ; then
6482 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
6483 fi
6484
6485 # Check order: pkg --prefix location, Tcl's --prefix location,
6486 # relative to directory of tclConfig.sh.
6487
6488 eval "temp_includedir=${includedir}"
6489 list="$list \
6490 `ls -d ${temp_includedir} 2>/dev/null` \
6491 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
6492 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
6493 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
6494 list="$list /usr/local/include /usr/include"
6495 if test x"${TCL_INCLUDE_SPEC}" != x ; then
6496 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
6497 list="$list `ls -d ${d} 2>/dev/null`"
6498 fi
6499 fi
6500 for i in $list ; do
6501 if test -f "$i/tcl.h" ; then
6502 ac_cv_c_tclh=$i
6503 break
6504 fi
6505 done
6506 fi
6507 ;;
6508 esac
6509 fi
6510
6511
6512 # Print a message based on how we determined the include path
6513
6514 if test x"${ac_cv_c_tclh}" = x ; then
6515 as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5
6516 else
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
6518 printf "%s\n" "${ac_cv_c_tclh}" >&6; }
6519 fi
6520
6521 # Convert to a native path and substitute into the output files.
6522
6523 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
6524
6525 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6526
6527
6528
6529
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tk public headers" >&5
6531 printf %s "checking for Tk public headers... " >&6; }
6532
6533
6534 # Check whether --with-tkinclude was given.
6535 if test ${with_tkinclude+y}
6536 then :
6537 withval=$with_tkinclude; with_tkinclude=${withval}
6538 fi
6539
6540
6541 if test ${ac_cv_c_tkh+y}
6542 then :
6543 printf %s "(cached) " >&6
6544 else case e in #(
6545 e)
6546 # Use the value from --with-tkinclude, if it was given
6547
6548 if test x"${with_tkinclude}" != x ; then
6549 if test -f "${with_tkinclude}/tk.h" ; then
6550 ac_cv_c_tkh=${with_tkinclude}
6551 else
6552 as_fn_error $? "${with_tkinclude} directory does not contain tk.h" "$LINENO" 5
6553 fi
6554 else
6555 list=""
6556 if test "`uname -s`" = "Darwin"; then
6557 # If Tk was built as a framework, attempt to use
6558 # the framework's Headers directory.
6559 case ${TK_DEFS} in
6560 *TK_FRAMEWORK*)
6561 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`"
6562 ;;
6563 esac
6564 fi
6565
6566 # Look in the source dir only if Tk is not installed,
6567 # and in that situation, look there before installed locations.
6568 if test -f "${TK_BIN_DIR}/Makefile" ; then
6569 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`"
6570 fi
6571
6572 # Check order: pkg --prefix location, Tk's --prefix location,
6573 # relative to directory of tkConfig.sh, Tcl's --prefix location,
6574 # relative to directory of tclConfig.sh.
6575
6576 eval "temp_includedir=${includedir}"
6577 list="$list \
6578 `ls -d ${temp_includedir} 2>/dev/null` \
6579 `ls -d ${TK_PREFIX}/include 2>/dev/null` \
6580 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \
6581 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
6582 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
6583 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
6584 list="$list /usr/local/include /usr/include"
6585 if test x"${TK_INCLUDE_SPEC}" != x ; then
6586 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'`
6587 list="$list `ls -d ${d} 2>/dev/null`"
6588 fi
6589 fi
6590 for i in $list ; do
6591 if test -f "$i/tk.h" ; then
6592 ac_cv_c_tkh=$i
6593 break
6594 fi
6595 done
6596 fi
6597 ;;
6598 esac
6599 fi
6600
6601
6602 # Print a message based on how we determined the include path
6603
6604 if test x"${ac_cv_c_tkh}" = x ; then
6605 as_fn_error $? "tk.h not found. Please specify its location with --with-tkinclude" "$LINENO" 5
6606 else
6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tkh}" >&5
6608 printf "%s\n" "${ac_cv_c_tkh}" >&6; }
6609 fi
6610
6611 # Convert to a native path and substitute into the output files.
6612
6613 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}`
6614
6615 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6616
6617
6618
6619 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then
6620 # On Windows and Aqua, we need the X compat headers
6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5
6622 printf %s "checking for X11 header files... " >&6; }
6623 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then
6624 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`"
6625 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6626
6627 fi
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${INCLUDE_DIR_NATIVE}" >&5
6629 printf "%s\n" "${INCLUDE_DIR_NATIVE}" >&6; }
6630 fi
6631
6632
6633 #--------------------------------------------------------------------
6634 # A few miscellaneous platform-specific items:
6635 #
6636 # Windows creates a few extra files that need to be cleaned up.
6637 # We can add more files to clean if our extension creates any extra
6638 # files in the future.
6639 #
6640 # Define any extra compiler flags in the PACKAGE_CFLAGS variable.
6641 # These will be appended to the current set of compiler flags for
6642 # your system.
6643 #--------------------------------------------------------------------
6644
6645 if test "${TEA_PLATFORM}" = "windows" ; then
6646 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch"
6647 fi
6648
6649
6650 #--------------------------------------------------------------------
6651 # Check whether --enable-threads or --disable-threads was given.
6652 # So far only Tcl responds to this one.
6653 #--------------------------------------------------------------------
6654
6655
6656 # Check whether --enable-threads was given.
6657 if test ${enable_threads+y}
6658 then :
6659 enableval=$enable_threads; tcl_ok=$enableval
6660 else case e in #(
6661 e) tcl_ok=yes ;;
6662 esac
6663 fi
6664
6665
6666 if test "${enable_threads+set}" = set; then
6667 enableval="$enable_threads"
6668 tcl_ok=$enableval
6669 else
6670 tcl_ok=yes
6671 fi
6672
6673 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
6674 TCL_THREADS=1
6675
6676 if test "${TEA_PLATFORM}" != "windows" ; then
6677 # We are always OK on Windows, so check what this platform wants:
6678
6679 # USE_THREAD_ALLOC tells us to try the special thread-based
6680 # allocator that significantly reduces lock contention
6681
6682 printf "%s\n" "#define USE_THREAD_ALLOC 1" >>confdefs.h
6683
6684
6685 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
6686
6687 if test "`uname -s`" = "SunOS" ; then
6688
6689 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6690
6691 fi
6692
6693 printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h
6694
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
6696 printf %s "checking for pthread_mutex_init in -lpthread... " >&6; }
6697 if test ${ac_cv_lib_pthread_pthread_mutex_init+y}
6698 then :
6699 printf %s "(cached) " >&6
6700 else case e in #(
6701 e) ac_check_lib_save_LIBS=$LIBS
6702 LIBS="-lpthread $LIBS"
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6705
6706 /* Override any GCC internal prototype to avoid an error.
6707 Use char because int might match the return type of a GCC
6708 builtin and then its argument prototype would still apply.
6709 The 'extern "C"' is for builds by C++ compilers;
6710 although this is not generally supported in C code supporting it here
6711 has little cost and some practical benefit (sr 110532). */
6712 #ifdef __cplusplus
6713 extern "C"
6714 #endif
6715 char pthread_mutex_init (void);
6716 int
6717 main (void)
6718 {
6719 return pthread_mutex_init ();
6720 ;
6721 return 0;
6722 }
6723 _ACEOF
6724 if ac_fn_c_try_link "$LINENO"
6725 then :
6726 ac_cv_lib_pthread_pthread_mutex_init=yes
6727 else case e in #(
6728 e) ac_cv_lib_pthread_pthread_mutex_init=no ;;
6729 esac
6730 fi
6731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6732 conftest$ac_exeext conftest.$ac_ext
6733 LIBS=$ac_check_lib_save_LIBS ;;
6734 esac
6735 fi
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
6737 printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
6738 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
6739 then :
6740 tcl_ok=yes
6741 else case e in #(
6742 e) tcl_ok=no ;;
6743 esac
6744 fi
6745
6746 if test "$tcl_ok" = "no"; then
6747 # Check a little harder for __pthread_mutex_init in the same
6748 # library, as some systems hide it there until pthread.h is
6749 # defined. We could alternatively do an AC_TRY_COMPILE with
6750 # pthread.h, but that will work with libpthread really doesn't
6751 # exist, like AIX 4.2. [Bug: 4359]
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5
6753 printf %s "checking for __pthread_mutex_init in -lpthread... " >&6; }
6754 if test ${ac_cv_lib_pthread___pthread_mutex_init+y}
6755 then :
6756 printf %s "(cached) " >&6
6757 else case e in #(
6758 e) ac_check_lib_save_LIBS=$LIBS
6759 LIBS="-lpthread $LIBS"
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762
6763 /* Override any GCC internal prototype to avoid an error.
6764 Use char because int might match the return type of a GCC
6765 builtin and then its argument prototype would still apply.
6766 The 'extern "C"' is for builds by C++ compilers;
6767 although this is not generally supported in C code supporting it here
6768 has little cost and some practical benefit (sr 110532). */
6769 #ifdef __cplusplus
6770 extern "C"
6771 #endif
6772 char __pthread_mutex_init (void);
6773 int
6774 main (void)
6775 {
6776 return __pthread_mutex_init ();
6777 ;
6778 return 0;
6779 }
6780 _ACEOF
6781 if ac_fn_c_try_link "$LINENO"
6782 then :
6783 ac_cv_lib_pthread___pthread_mutex_init=yes
6784 else case e in #(
6785 e) ac_cv_lib_pthread___pthread_mutex_init=no ;;
6786 esac
6787 fi
6788 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6789 conftest$ac_exeext conftest.$ac_ext
6790 LIBS=$ac_check_lib_save_LIBS ;;
6791 esac
6792 fi
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
6794 printf "%s\n" "$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
6795 if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes
6796 then :
6797 tcl_ok=yes
6798 else case e in #(
6799 e) tcl_ok=no ;;
6800 esac
6801 fi
6802
6803 fi
6804
6805 if test "$tcl_ok" = "yes"; then
6806 # The space is needed
6807 THREADS_LIBS=" -lpthread"
6808 else
6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5
6810 printf %s "checking for pthread_mutex_init in -lpthreads... " >&6; }
6811 if test ${ac_cv_lib_pthreads_pthread_mutex_init+y}
6812 then :
6813 printf %s "(cached) " >&6
6814 else case e in #(
6815 e) ac_check_lib_save_LIBS=$LIBS
6816 LIBS="-lpthreads $LIBS"
6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6819
6820 /* Override any GCC internal prototype to avoid an error.
6821 Use char because int might match the return type of a GCC
6822 builtin and then its argument prototype would still apply.
6823 The 'extern "C"' is for builds by C++ compilers;
6824 although this is not generally supported in C code supporting it here
6825 has little cost and some practical benefit (sr 110532). */
6826 #ifdef __cplusplus
6827 extern "C"
6828 #endif
6829 char pthread_mutex_init (void);
6830 int
6831 main (void)
6832 {
6833 return pthread_mutex_init ();
6834 ;
6835 return 0;
6836 }
6837 _ACEOF
6838 if ac_fn_c_try_link "$LINENO"
6839 then :
6840 ac_cv_lib_pthreads_pthread_mutex_init=yes
6841 else case e in #(
6842 e) ac_cv_lib_pthreads_pthread_mutex_init=no ;;
6843 esac
6844 fi
6845 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6846 conftest$ac_exeext conftest.$ac_ext
6847 LIBS=$ac_check_lib_save_LIBS ;;
6848 esac
6849 fi
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
6851 printf "%s\n" "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
6852 if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes
6853 then :
6854 tcl_ok=yes
6855 else case e in #(
6856 e) tcl_ok=no ;;
6857 esac
6858 fi
6859
6860 if test "$tcl_ok" = "yes"; then
6861 # The space is needed
6862 THREADS_LIBS=" -lpthreads"
6863 else
6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
6865 printf %s "checking for pthread_mutex_init in -lc... " >&6; }
6866 if test ${ac_cv_lib_c_pthread_mutex_init+y}
6867 then :
6868 printf %s "(cached) " >&6
6869 else case e in #(
6870 e) ac_check_lib_save_LIBS=$LIBS
6871 LIBS="-lc $LIBS"
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874
6875 /* Override any GCC internal prototype to avoid an error.
6876 Use char because int might match the return type of a GCC
6877 builtin and then its argument prototype would still apply.
6878 The 'extern "C"' is for builds by C++ compilers;
6879 although this is not generally supported in C code supporting it here
6880 has little cost and some practical benefit (sr 110532). */
6881 #ifdef __cplusplus
6882 extern "C"
6883 #endif
6884 char pthread_mutex_init (void);
6885 int
6886 main (void)
6887 {
6888 return pthread_mutex_init ();
6889 ;
6890 return 0;
6891 }
6892 _ACEOF
6893 if ac_fn_c_try_link "$LINENO"
6894 then :
6895 ac_cv_lib_c_pthread_mutex_init=yes
6896 else case e in #(
6897 e) ac_cv_lib_c_pthread_mutex_init=no ;;
6898 esac
6899 fi
6900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6901 conftest$ac_exeext conftest.$ac_ext
6902 LIBS=$ac_check_lib_save_LIBS ;;
6903 esac
6904 fi
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
6906 printf "%s\n" "$ac_cv_lib_c_pthread_mutex_init" >&6; }
6907 if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes
6908 then :
6909 tcl_ok=yes
6910 else case e in #(
6911 e) tcl_ok=no ;;
6912 esac
6913 fi
6914
6915 if test "$tcl_ok" = "no"; then
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5
6917 printf %s "checking for pthread_mutex_init in -lc_r... " >&6; }
6918 if test ${ac_cv_lib_c_r_pthread_mutex_init+y}
6919 then :
6920 printf %s "(cached) " >&6
6921 else case e in #(
6922 e) ac_check_lib_save_LIBS=$LIBS
6923 LIBS="-lc_r $LIBS"
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6926
6927 /* Override any GCC internal prototype to avoid an error.
6928 Use char because int might match the return type of a GCC
6929 builtin and then its argument prototype would still apply.
6930 The 'extern "C"' is for builds by C++ compilers;
6931 although this is not generally supported in C code supporting it here
6932 has little cost and some practical benefit (sr 110532). */
6933 #ifdef __cplusplus
6934 extern "C"
6935 #endif
6936 char pthread_mutex_init (void);
6937 int
6938 main (void)
6939 {
6940 return pthread_mutex_init ();
6941 ;
6942 return 0;
6943 }
6944 _ACEOF
6945 if ac_fn_c_try_link "$LINENO"
6946 then :
6947 ac_cv_lib_c_r_pthread_mutex_init=yes
6948 else case e in #(
6949 e) ac_cv_lib_c_r_pthread_mutex_init=no ;;
6950 esac
6951 fi
6952 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6953 conftest$ac_exeext conftest.$ac_ext
6954 LIBS=$ac_check_lib_save_LIBS ;;
6955 esac
6956 fi
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
6958 printf "%s\n" "$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
6959 if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes
6960 then :
6961 tcl_ok=yes
6962 else case e in #(
6963 e) tcl_ok=no ;;
6964 esac
6965 fi
6966
6967 if test "$tcl_ok" = "yes"; then
6968 # The space is needed
6969 THREADS_LIBS=" -pthread"
6970 else
6971 TCL_THREADS=0
6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
6973 printf "%s\n" "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
6974 fi
6975 fi
6976 fi
6977 fi
6978 fi
6979 else
6980 TCL_THREADS=0
6981 fi
6982 # Do checking message here to not mess up interleaved configure output
6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5
6984 printf %s "checking for building with threads... " >&6; }
6985 if test "${TCL_THREADS}" = 1; then
6986
6987 printf "%s\n" "#define TCL_THREADS 1" >>confdefs.h
6988
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
6990 printf "%s\n" "yes (default)" >&6; }
6991 else
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 printf "%s\n" "no" >&6; }
6994 fi
6995 # TCL_THREADS sanity checking. See if our request for building with
6996 # threads is the same as the way Tcl was built. If not, warn the user.
6997 case ${TCL_DEFS} in
6998 *THREADS=1*)
6999 if test "${TCL_THREADS}" = "0"; then
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
7001 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
7002 that IS thread-enabled. It is recommended to use --enable-threads." >&5
7003 printf "%s\n" "$as_me: WARNING:
7004 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
7005 that IS thread-enabled. It is recommended to use --enable-threads." >&2;}
7006 fi
7007 ;;
7008 esac
7009
7010
7011
7012 #--------------------------------------------------------------------
7013 # The statement below defines a collection of symbols related to
7014 # building as a shared library instead of a static library.
7015 #--------------------------------------------------------------------
7016
7017
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
7019 printf %s "checking how to build libraries... " >&6; }
7020 # Check whether --enable-shared was given.
7021 if test ${enable_shared+y}
7022 then :
7023 enableval=$enable_shared; shared_ok=$enableval
7024 else case e in #(
7025 e) shared_ok=yes ;;
7026 esac
7027 fi
7028
7029
7030 if test "${enable_shared+set}" = set; then
7031 enableval="$enable_shared"
7032 shared_ok=$enableval
7033 else
7034 shared_ok=yes
7035 fi
7036
7037 # Check whether --enable-stubs was given.
7038 if test ${enable_stubs+y}
7039 then :
7040 enableval=$enable_stubs; stubs_ok=$enableval
7041 else case e in #(
7042 e) stubs_ok=yes ;;
7043 esac
7044 fi
7045
7046
7047 if test "${enable_stubs+set}" = set; then
7048 enableval="$enable_stubs"
7049 stubs_ok=$enableval
7050 else
7051 stubs_ok=yes
7052 fi
7053
7054 # Stubs are always enabled for shared builds
7055 if test "$shared_ok" = "yes" ; then
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared" >&5
7057 printf "%s\n" "shared" >&6; }
7058 SHARED_BUILD=1
7059 STUBS_BUILD=1
7060 else
7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
7062 printf "%s\n" "static" >&6; }
7063 SHARED_BUILD=0
7064
7065 printf "%s\n" "#define STATIC_BUILD 1" >>confdefs.h
7066
7067 if test "$stubs_ok" = "yes" ; then
7068 STUBS_BUILD=1
7069 else
7070 STUBS_BUILD=0
7071 fi
7072 fi
7073 if test "${STUBS_BUILD}" = "1" ; then
7074
7075 printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h
7076
7077
7078 printf "%s\n" "#define USE_TCLOO_STUBS 1" >>confdefs.h
7079
7080 if test "${TEA_WINDOWINGSYSTEM}" != ""; then
7081
7082 printf "%s\n" "#define USE_TK_STUBS 1" >>confdefs.h
7083
7084 fi
7085 fi
7086
7087
7088
7089
7090
7091 #--------------------------------------------------------------------
7092 # This macro figures out what flags to use with the compiler/linker
7093 # when building shared/static debug/optimized objects. This information
7094 # can be taken from the tclConfig.sh file, but this figures it all out.
7095 #--------------------------------------------------------------------
7096
7097 if test -n "$ac_tool_prefix"; then
7098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 printf %s "checking for $ac_word... " >&6; }
7102 if test ${ac_cv_prog_RANLIB+y}
7103 then :
7104 printf %s "(cached) " >&6
7105 else case e in #(
7106 e) if test -n "$RANLIB"; then
7107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7108 else
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112 IFS=$as_save_IFS
7113 case $as_dir in #(((
7114 '') as_dir=./ ;;
7115 */) ;;
7116 *) as_dir=$as_dir/ ;;
7117 esac
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7120 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124 done
7125 done
7126 IFS=$as_save_IFS
7127
7128 fi ;;
7129 esac
7130 fi
7131 RANLIB=$ac_cv_prog_RANLIB
7132 if test -n "$RANLIB"; then
7133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7134 printf "%s\n" "$RANLIB" >&6; }
7135 else
7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 printf "%s\n" "no" >&6; }
7138 fi
7139
7140
7141 fi
7142 if test -z "$ac_cv_prog_RANLIB"; then
7143 ac_ct_RANLIB=$RANLIB
7144 # Extract the first word of "ranlib", so it can be a program name with args.
7145 set dummy ranlib; ac_word=$2
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 printf %s "checking for $ac_word... " >&6; }
7148 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7149 then :
7150 printf %s "(cached) " >&6
7151 else case e in #(
7152 e) if test -n "$ac_ct_RANLIB"; then
7153 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158 IFS=$as_save_IFS
7159 case $as_dir in #(((
7160 '') as_dir=./ ;;
7161 */) ;;
7162 *) as_dir=$as_dir/ ;;
7163 esac
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7166 ac_cv_prog_ac_ct_RANLIB="ranlib"
7167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7168 break 2
7169 fi
7170 done
7171 done
7172 IFS=$as_save_IFS
7173
7174 fi ;;
7175 esac
7176 fi
7177 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7178 if test -n "$ac_ct_RANLIB"; then
7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7180 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7181 else
7182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 printf "%s\n" "no" >&6; }
7184 fi
7185
7186 if test "x$ac_ct_RANLIB" = x; then
7187 RANLIB=":"
7188 else
7189 case $cross_compiling:$ac_tool_warned in
7190 yes:)
7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned=yes ;;
7194 esac
7195 RANLIB=$ac_ct_RANLIB
7196 fi
7197 else
7198 RANLIB="$ac_cv_prog_RANLIB"
7199 fi
7200
7201
7202
7203
7204 # Step 0.a: Enable 64 bit support?
7205
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
7207 printf %s "checking if 64bit support is requested... " >&6; }
7208 # Check whether --enable-64bit was given.
7209 if test ${enable_64bit+y}
7210 then :
7211 enableval=$enable_64bit; do64bit=$enableval
7212 else case e in #(
7213 e) do64bit=no ;;
7214 esac
7215 fi
7216
7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
7218 printf "%s\n" "$do64bit" >&6; }
7219
7220 # Step 0.b: Enable Solaris 64 bit VIS support?
7221
7222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
7223 printf %s "checking if 64bit Sparc VIS support is requested... " >&6; }
7224 # Check whether --enable-64bit-vis was given.
7225 if test ${enable_64bit_vis+y}
7226 then :
7227 enableval=$enable_64bit_vis; do64bitVIS=$enableval
7228 else case e in #(
7229 e) do64bitVIS=no ;;
7230 esac
7231 fi
7232
7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
7234 printf "%s\n" "$do64bitVIS" >&6; }
7235 # Force 64bit on with VIS
7236 if test "$do64bitVIS" = "yes"
7237 then :
7238 do64bit=yes
7239 fi
7240
7241 # Step 0.c: Check if visibility support is available. Do this here so
7242 # that platform specific alternatives can be used below if this fails.
7243
7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
7245 printf %s "checking if compiler supports visibility \"hidden\"... " >&6; }
7246 if test ${tcl_cv_cc_visibility_hidden+y}
7247 then :
7248 printf %s "(cached) " >&6
7249 else case e in #(
7250 e)
7251 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7254
7255 extern __attribute__((__visibility__("hidden"))) void f(void);
7256 void f(void) {}
7257 int
7258 main (void)
7259 {
7260 f();
7261 ;
7262 return 0;
7263 }
7264 _ACEOF
7265 if ac_fn_c_try_link "$LINENO"
7266 then :
7267 tcl_cv_cc_visibility_hidden=yes
7268 else case e in #(
7269 e) tcl_cv_cc_visibility_hidden=no ;;
7270 esac
7271 fi
7272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7273 conftest$ac_exeext conftest.$ac_ext
7274 CFLAGS=$hold_cflags ;;
7275 esac
7276 fi
7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
7278 printf "%s\n" "$tcl_cv_cc_visibility_hidden" >&6; }
7279 if test $tcl_cv_cc_visibility_hidden = yes
7280 then :
7281
7282
7283 printf "%s\n" "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
7284
7285
7286 printf "%s\n" "#define HAVE_HIDDEN 1" >>confdefs.h
7287
7288
7289 fi
7290
7291 # Step 0.d: Disable -rpath support?
7292
7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
7294 printf %s "checking if rpath support is requested... " >&6; }
7295 # Check whether --enable-rpath was given.
7296 if test ${enable_rpath+y}
7297 then :
7298 enableval=$enable_rpath; doRpath=$enableval
7299 else case e in #(
7300 e) doRpath=yes ;;
7301 esac
7302 fi
7303
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
7305 printf "%s\n" "$doRpath" >&6; }
7306
7307 # Set the variable "system" to hold the name and version number
7308 # for the system.
7309
7310
7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
7312 printf %s "checking system version... " >&6; }
7313 if test ${tcl_cv_sys_version+y}
7314 then :
7315 printf %s "(cached) " >&6
7316 else case e in #(
7317 e)
7318 # TEA specific:
7319 if test "${TEA_PLATFORM}" = "windows" ; then
7320 tcl_cv_sys_version=windows
7321 else
7322 tcl_cv_sys_version=`uname -s`-`uname -r`
7323 if test "$?" -ne 0 ; then
7324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
7325 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
7326 tcl_cv_sys_version=unknown
7327 else
7328 if test "`uname -s`" = "AIX" ; then
7329 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
7330 fi
7331 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
7332 tcl_cv_sys_version=NetBSD-Debian
7333 fi
7334 fi
7335 fi
7336 ;;
7337 esac
7338 fi
7339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
7340 printf "%s\n" "$tcl_cv_sys_version" >&6; }
7341 system=$tcl_cv_sys_version
7342
7343
7344 # Require ranlib early so we can override it in special cases below.
7345
7346
7347
7348 # Set configuration options based on system name and version.
7349 # This is similar to Tcl's unix/tcl.m4 except that we've added a
7350 # "windows" case and removed some core-only vars.
7351
7352 do64bit_ok=no
7353 # default to '{$LIBS}' and set to "" on per-platform necessary basis
7354 SHLIB_LD_LIBS='${LIBS}'
7355 # When ld needs options to work in 64-bit mode, put them in
7356 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
7357 # is disabled by the user. [Bug 1016796]
7358 LDFLAGS_ARCH=""
7359 UNSHARED_LIB_SUFFIX=""
7360 # TEA specific: use PACKAGE_VERSION instead of VERSION
7361 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
7362 ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
7363 TCL_LIB_VERSIONS_OK=ok
7364 CFLAGS_DEBUG=-g
7365 if test "$GCC" = yes
7366 then :
7367
7368 CFLAGS_OPTIMIZE=-O2
7369 CFLAGS_WARNING="-Wall"
7370
7371 else case e in #(
7372 e)
7373 CFLAGS_OPTIMIZE=-O
7374 CFLAGS_WARNING=""
7375 ;;
7376 esac
7377 fi
7378 if test -n "$ac_tool_prefix"; then
7379 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7380 set dummy ${ac_tool_prefix}ar; ac_word=$2
7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 printf %s "checking for $ac_word... " >&6; }
7383 if test ${ac_cv_prog_AR+y}
7384 then :
7385 printf %s "(cached) " >&6
7386 else case e in #(
7387 e) if test -n "$AR"; then
7388 ac_cv_prog_AR="$AR" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393 IFS=$as_save_IFS
7394 case $as_dir in #(((
7395 '') as_dir=./ ;;
7396 */) ;;
7397 *) as_dir=$as_dir/ ;;
7398 esac
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7401 ac_cv_prog_AR="${ac_tool_prefix}ar"
7402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405 done
7406 done
7407 IFS=$as_save_IFS
7408
7409 fi ;;
7410 esac
7411 fi
7412 AR=$ac_cv_prog_AR
7413 if test -n "$AR"; then
7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7415 printf "%s\n" "$AR" >&6; }
7416 else
7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 printf "%s\n" "no" >&6; }
7419 fi
7420
7421
7422 fi
7423 if test -z "$ac_cv_prog_AR"; then
7424 ac_ct_AR=$AR
7425 # Extract the first word of "ar", so it can be a program name with args.
7426 set dummy ar; ac_word=$2
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 printf %s "checking for $ac_word... " >&6; }
7429 if test ${ac_cv_prog_ac_ct_AR+y}
7430 then :
7431 printf %s "(cached) " >&6
7432 else case e in #(
7433 e) if test -n "$ac_ct_AR"; then
7434 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439 IFS=$as_save_IFS
7440 case $as_dir in #(((
7441 '') as_dir=./ ;;
7442 */) ;;
7443 *) as_dir=$as_dir/ ;;
7444 esac
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7447 ac_cv_prog_ac_ct_AR="ar"
7448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7449 break 2
7450 fi
7451 done
7452 done
7453 IFS=$as_save_IFS
7454
7455 fi ;;
7456 esac
7457 fi
7458 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7459 if test -n "$ac_ct_AR"; then
7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7461 printf "%s\n" "$ac_ct_AR" >&6; }
7462 else
7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 printf "%s\n" "no" >&6; }
7465 fi
7466
7467 if test "x$ac_ct_AR" = x; then
7468 AR=""
7469 else
7470 case $cross_compiling:$ac_tool_warned in
7471 yes:)
7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7473 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7474 ac_tool_warned=yes ;;
7475 esac
7476 AR=$ac_ct_AR
7477 fi
7478 else
7479 AR="$ac_cv_prog_AR"
7480 fi
7481
7482 STLIB_LD='${AR} cr'
7483 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
7484 if test "x$SHLIB_VERSION" = x
7485 then :
7486 SHLIB_VERSION=""
7487 else case e in #(
7488 e) SHLIB_VERSION=".$SHLIB_VERSION" ;;
7489 esac
7490 fi
7491 case $system in
7492 # TEA specific:
7493 windows)
7494 MACHINE="X86"
7495 if test "$do64bit" != "no" ; then
7496 case "$do64bit" in
7497 amd64|x64|yes)
7498 MACHINE="AMD64" ; # default to AMD64 64-bit build
7499 ;;
7500 arm64|aarch64)
7501 MACHINE="ARM64"
7502 ;;
7503 ia64)
7504 MACHINE="IA64"
7505 ;;
7506 esac
7507 fi
7508
7509 if test "$GCC" != "yes" ; then
7510 if test "${SHARED_BUILD}" = "0" ; then
7511 runtime=-MT
7512 else
7513 runtime=-MD
7514 fi
7515 case "x`echo \${VisualStudioVersion}`" in
7516 x1[4-9]*)
7517 lflags="${lflags} -nodefaultlib:libucrt.lib"
7518
7519 vars="ucrt.lib"
7520 for i in $vars; do
7521 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
7522 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
7523 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
7524 fi
7525 PKG_LIBS="$PKG_LIBS $i"
7526 done
7527
7528
7529 ;;
7530 *)
7531 ;;
7532 esac
7533
7534 if test "$do64bit" != "no" ; then
7535 CC="cl.exe"
7536 RC="rc.exe"
7537 lflags="${lflags} -nologo -MACHINE:${MACHINE} "
7538 LINKBIN="link.exe"
7539 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
7540 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7541 # Avoid 'unresolved external symbol __security_cookie'
7542 # errors, c.f. http://support.microsoft.com/?id=894573
7543
7544 vars="bufferoverflowU.lib"
7545 for i in $vars; do
7546 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
7547 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
7548 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
7549 fi
7550 PKG_LIBS="$PKG_LIBS $i"
7551 done
7552
7553
7554 else
7555 RC="rc"
7556 lflags="${lflags} -nologo"
7557 LINKBIN="link"
7558 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
7559 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7560 fi
7561 fi
7562
7563 if test "$GCC" = "yes"; then
7564 # mingw gcc mode
7565 if test -n "$ac_tool_prefix"; then
7566 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7567 set dummy ${ac_tool_prefix}windres; ac_word=$2
7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 printf %s "checking for $ac_word... " >&6; }
7570 if test ${ac_cv_prog_RC+y}
7571 then :
7572 printf %s "(cached) " >&6
7573 else case e in #(
7574 e) if test -n "$RC"; then
7575 ac_cv_prog_RC="$RC" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7579 do
7580 IFS=$as_save_IFS
7581 case $as_dir in #(((
7582 '') as_dir=./ ;;
7583 */) ;;
7584 *) as_dir=$as_dir/ ;;
7585 esac
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7588 ac_cv_prog_RC="${ac_tool_prefix}windres"
7589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7590 break 2
7591 fi
7592 done
7593 done
7594 IFS=$as_save_IFS
7595
7596 fi ;;
7597 esac
7598 fi
7599 RC=$ac_cv_prog_RC
7600 if test -n "$RC"; then
7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
7602 printf "%s\n" "$RC" >&6; }
7603 else
7604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 printf "%s\n" "no" >&6; }
7606 fi
7607
7608
7609 fi
7610 if test -z "$ac_cv_prog_RC"; then
7611 ac_ct_RC=$RC
7612 # Extract the first word of "windres", so it can be a program name with args.
7613 set dummy windres; ac_word=$2
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 printf %s "checking for $ac_word... " >&6; }
7616 if test ${ac_cv_prog_ac_ct_RC+y}
7617 then :
7618 printf %s "(cached) " >&6
7619 else case e in #(
7620 e) if test -n "$ac_ct_RC"; then
7621 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626 IFS=$as_save_IFS
7627 case $as_dir in #(((
7628 '') as_dir=./ ;;
7629 */) ;;
7630 *) as_dir=$as_dir/ ;;
7631 esac
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7634 ac_cv_prog_ac_ct_RC="windres"
7635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638 done
7639 done
7640 IFS=$as_save_IFS
7641
7642 fi ;;
7643 esac
7644 fi
7645 ac_ct_RC=$ac_cv_prog_ac_ct_RC
7646 if test -n "$ac_ct_RC"; then
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
7648 printf "%s\n" "$ac_ct_RC" >&6; }
7649 else
7650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 printf "%s\n" "no" >&6; }
7652 fi
7653
7654 if test "x$ac_ct_RC" = x; then
7655 RC=""
7656 else
7657 case $cross_compiling:$ac_tool_warned in
7658 yes:)
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7660 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7661 ac_tool_warned=yes ;;
7662 esac
7663 RC=$ac_ct_RC
7664 fi
7665 else
7666 RC="$ac_cv_prog_RC"
7667 fi
7668
7669 CFLAGS_DEBUG="-g"
7670 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7671 SHLIB_LD='${CC} -shared'
7672 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7673 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
7674 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
7675
7676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5
7677 printf %s "checking for cross-compile version of gcc... " >&6; }
7678 if test ${ac_cv_cross+y}
7679 then :
7680 printf %s "(cached) " >&6
7681 else case e in #(
7682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7684
7685 #ifdef _WIN32
7686 #error cross-compiler
7687 #endif
7688
7689 int
7690 main (void)
7691 {
7692
7693 ;
7694 return 0;
7695 }
7696 _ACEOF
7697 if ac_fn_c_try_compile "$LINENO"
7698 then :
7699 ac_cv_cross=yes
7700 else case e in #(
7701 e) ac_cv_cross=no ;;
7702 esac
7703 fi
7704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7705 ;;
7706 esac
7707 fi
7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5
7709 printf "%s\n" "$ac_cv_cross" >&6; }
7710 if test "$ac_cv_cross" = "yes"; then
7711 case "$do64bit" in
7712 amd64|x64|yes)
7713 CC="x86_64-w64-mingw32-${CC}"
7714 LD="x86_64-w64-mingw32-ld"
7715 AR="x86_64-w64-mingw32-ar"
7716 RANLIB="x86_64-w64-mingw32-ranlib"
7717 RC="x86_64-w64-mingw32-windres"
7718 ;;
7719 arm64|aarch64)
7720 CC="aarch64-w64-mingw32-clang"
7721 LD="aarch64-w64-mingw32-ld"
7722 AR="aarch64-w64-mingw32-ar"
7723 RANLIB="aarch64-w64-mingw32-ranlib"
7724 RC="aarch64-w64-mingw32-windres"
7725 ;;
7726 *)
7727 CC="i686-w64-mingw32-${CC}"
7728 LD="i686-w64-mingw32-ld"
7729 AR="i686-w64-mingw32-ar"
7730 RANLIB="i686-w64-mingw32-ranlib"
7731 RC="i686-w64-mingw32-windres"
7732 ;;
7733 esac
7734 fi
7735
7736 else
7737 SHLIB_LD="${LINKBIN} -dll ${lflags}"
7738 # link -lib only works when -lib is the first arg
7739 STLIB_LD="${LINKBIN} -lib ${lflags}"
7740 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
7741 PATHTYPE=-w
7742 # For information on what debugtype is most useful, see:
7743 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
7744 # and also
7745 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
7746 # This essentially turns it all on.
7747 LDFLAGS_DEBUG="-debug -debugtype:cv"
7748 LDFLAGS_OPTIMIZE="-release"
7749 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
7750 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
7751 fi
7752
7753 SHLIB_SUFFIX=".dll"
7754 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
7755
7756 TCL_LIB_VERSIONS_OK=nodots
7757 ;;
7758 AIX-*)
7759 if test "$GCC" != "yes"
7760 then :
7761
7762 # AIX requires the _r compiler when gcc isn't being used
7763 case "${CC}" in
7764 *_r|*_r\ *)
7765 # ok ...
7766 ;;
7767 *)
7768 # Make sure only first arg gets _r
7769 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
7770 ;;
7771 esac
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
7773 printf "%s\n" "Using $CC for compiling with threads" >&6; }
7774
7775 fi
7776 LIBS="$LIBS -lc"
7777 SHLIB_CFLAGS=""
7778 SHLIB_SUFFIX=".so"
7779
7780 LD_LIBRARY_PATH_VAR="LIBPATH"
7781
7782 # Check to enable 64-bit flags for compiler/linker
7783 if test "$do64bit" = yes
7784 then :
7785
7786 if test "$GCC" = yes
7787 then :
7788
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7790 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7791
7792 else case e in #(
7793 e)
7794 do64bit_ok=yes
7795 CFLAGS="$CFLAGS -q64"
7796 LDFLAGS_ARCH="-q64"
7797 RANLIB="${RANLIB} -X64"
7798 AR="${AR} -X64"
7799 SHLIB_LD_FLAGS="-b64"
7800 ;;
7801 esac
7802 fi
7803
7804 fi
7805
7806 if test "`uname -m`" = ia64
7807 then :
7808
7809 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
7810 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7811 if test "$GCC" = yes
7812 then :
7813
7814 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
7815
7816 else case e in #(
7817 e)
7818 CC_SEARCH_FLAGS='"-R${LIB_RUNTIME_DIR}"'
7819 ;;
7820 esac
7821 fi
7822 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
7823
7824 else case e in #(
7825 e)
7826 if test "$GCC" = yes
7827 then :
7828
7829 SHLIB_LD='${CC} -shared -Wl,-bexpall'
7830
7831 else case e in #(
7832 e)
7833 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
7834 LDFLAGS="$LDFLAGS -brtl"
7835 ;;
7836 esac
7837 fi
7838 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
7839 CC_SEARCH_FLAGS='"-L${LIB_RUNTIME_DIR}"'
7840 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7841 ;;
7842 esac
7843 fi
7844 ;;
7845 BeOS*)
7846 SHLIB_CFLAGS="-fPIC"
7847 SHLIB_LD='${CC} -nostart'
7848 SHLIB_SUFFIX=".so"
7849
7850 #-----------------------------------------------------------
7851 # Check for inet_ntoa in -lbind, for BeOS (which also needs
7852 # -lsocket, even if the network functions are in -lnet which
7853 # is always linked to, for compatibility.
7854 #-----------------------------------------------------------
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
7856 printf %s "checking for inet_ntoa in -lbind... " >&6; }
7857 if test ${ac_cv_lib_bind_inet_ntoa+y}
7858 then :
7859 printf %s "(cached) " >&6
7860 else case e in #(
7861 e) ac_check_lib_save_LIBS=$LIBS
7862 LIBS="-lbind $LIBS"
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7865
7866 /* Override any GCC internal prototype to avoid an error.
7867 Use char because int might match the return type of a GCC
7868 builtin and then its argument prototype would still apply.
7869 The 'extern "C"' is for builds by C++ compilers;
7870 although this is not generally supported in C code supporting it here
7871 has little cost and some practical benefit (sr 110532). */
7872 #ifdef __cplusplus
7873 extern "C"
7874 #endif
7875 char inet_ntoa (void);
7876 int
7877 main (void)
7878 {
7879 return inet_ntoa ();
7880 ;
7881 return 0;
7882 }
7883 _ACEOF
7884 if ac_fn_c_try_link "$LINENO"
7885 then :
7886 ac_cv_lib_bind_inet_ntoa=yes
7887 else case e in #(
7888 e) ac_cv_lib_bind_inet_ntoa=no ;;
7889 esac
7890 fi
7891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7892 conftest$ac_exeext conftest.$ac_ext
7893 LIBS=$ac_check_lib_save_LIBS ;;
7894 esac
7895 fi
7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
7897 printf "%s\n" "$ac_cv_lib_bind_inet_ntoa" >&6; }
7898 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes
7899 then :
7900 LIBS="$LIBS -lbind -lsocket"
7901 fi
7902
7903 ;;
7904 BSD/OS-2.1*|BSD/OS-3*)
7905 SHLIB_CFLAGS=""
7906 SHLIB_LD="shlicc -r"
7907 SHLIB_SUFFIX=".so"
7908 CC_SEARCH_FLAGS=""
7909 LD_SEARCH_FLAGS=""
7910 ;;
7911 BSD/OS-4.*)
7912 SHLIB_CFLAGS="-export-dynamic -fPIC"
7913 SHLIB_LD='${CC} -shared'
7914 SHLIB_SUFFIX=".so"
7915 LDFLAGS="$LDFLAGS -export-dynamic"
7916 CC_SEARCH_FLAGS=""
7917 LD_SEARCH_FLAGS=""
7918 ;;
7919 CYGWIN_*)
7920 SHLIB_CFLAGS=""
7921 SHLIB_LD='${CC} -shared'
7922 SHLIB_SUFFIX=".dll"
7923 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\[email protected]"
7924 EXEEXT=".exe"
7925 do64bit_ok=yes
7926 CC_SEARCH_FLAGS=""
7927 LD_SEARCH_FLAGS=""
7928 ;;
7929 dgux*)
7930 SHLIB_CFLAGS="-K PIC"
7931 SHLIB_LD='${CC} -G'
7932 SHLIB_LD_LIBS=""
7933 SHLIB_SUFFIX=".so"
7934 CC_SEARCH_FLAGS=""
7935 LD_SEARCH_FLAGS=""
7936 ;;
7937 Haiku*)
7938 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7939 SHLIB_CFLAGS="-fPIC"
7940 SHLIB_SUFFIX=".so"
7941 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
7943 printf %s "checking for inet_ntoa in -lnetwork... " >&6; }
7944 if test ${ac_cv_lib_network_inet_ntoa+y}
7945 then :
7946 printf %s "(cached) " >&6
7947 else case e in #(
7948 e) ac_check_lib_save_LIBS=$LIBS
7949 LIBS="-lnetwork $LIBS"
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7952
7953 /* Override any GCC internal prototype to avoid an error.
7954 Use char because int might match the return type of a GCC
7955 builtin and then its argument prototype would still apply.
7956 The 'extern "C"' is for builds by C++ compilers;
7957 although this is not generally supported in C code supporting it here
7958 has little cost and some practical benefit (sr 110532). */
7959 #ifdef __cplusplus
7960 extern "C"
7961 #endif
7962 char inet_ntoa (void);
7963 int
7964 main (void)
7965 {
7966 return inet_ntoa ();
7967 ;
7968 return 0;
7969 }
7970 _ACEOF
7971 if ac_fn_c_try_link "$LINENO"
7972 then :
7973 ac_cv_lib_network_inet_ntoa=yes
7974 else case e in #(
7975 e) ac_cv_lib_network_inet_ntoa=no ;;
7976 esac
7977 fi
7978 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7979 conftest$ac_exeext conftest.$ac_ext
7980 LIBS=$ac_check_lib_save_LIBS ;;
7981 esac
7982 fi
7983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5
7984 printf "%s\n" "$ac_cv_lib_network_inet_ntoa" >&6; }
7985 if test "x$ac_cv_lib_network_inet_ntoa" = xyes
7986 then :
7987 LIBS="$LIBS -lnetwork"
7988 fi
7989
7990 ;;
7991 HP-UX-*.11.*)
7992 # Use updated header definitions where possible
7993
7994 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
7995
7996 # TEA specific: Needed by Tcl, but not most extensions
7997 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
7998 #LIBS="$LIBS -lxnet" # Use the XOPEN network library
7999
8000 if test "`uname -m`" = ia64
8001 then :
8002
8003 SHLIB_SUFFIX=".so"
8004
8005 else case e in #(
8006 e)
8007 SHLIB_SUFFIX=".sl"
8008 ;;
8009 esac
8010 fi
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8012 printf %s "checking for shl_load in -ldld... " >&6; }
8013 if test ${ac_cv_lib_dld_shl_load+y}
8014 then :
8015 printf %s "(cached) " >&6
8016 else case e in #(
8017 e) ac_check_lib_save_LIBS=$LIBS
8018 LIBS="-ldld $LIBS"
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8021
8022 /* Override any GCC internal prototype to avoid an error.
8023 Use char because int might match the return type of a GCC
8024 builtin and then its argument prototype would still apply.
8025 The 'extern "C"' is for builds by C++ compilers;
8026 although this is not generally supported in C code supporting it here
8027 has little cost and some practical benefit (sr 110532). */
8028 #ifdef __cplusplus
8029 extern "C"
8030 #endif
8031 char shl_load (void);
8032 int
8033 main (void)
8034 {
8035 return shl_load ();
8036 ;
8037 return 0;
8038 }
8039 _ACEOF
8040 if ac_fn_c_try_link "$LINENO"
8041 then :
8042 ac_cv_lib_dld_shl_load=yes
8043 else case e in #(
8044 e) ac_cv_lib_dld_shl_load=no ;;
8045 esac
8046 fi
8047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8048 conftest$ac_exeext conftest.$ac_ext
8049 LIBS=$ac_check_lib_save_LIBS ;;
8050 esac
8051 fi
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8053 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
8054 if test "x$ac_cv_lib_dld_shl_load" = xyes
8055 then :
8056 tcl_ok=yes
8057 else case e in #(
8058 e) tcl_ok=no ;;
8059 esac
8060 fi
8061
8062 if test "$tcl_ok" = yes
8063 then :
8064
8065 SHLIB_CFLAGS="+z"
8066 SHLIB_LD="ld -b"
8067 LDFLAGS="$LDFLAGS -Wl,-E"
8068 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
8069 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
8070 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
8071
8072 fi
8073 if test "$GCC" = yes
8074 then :
8075
8076 SHLIB_LD='${CC} -shared'
8077 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8078
8079 else case e in #(
8080 e)
8081 CFLAGS="$CFLAGS -z"
8082 ;;
8083 esac
8084 fi
8085
8086 # Check to enable 64-bit flags for compiler/linker
8087 if test "$do64bit" = "yes"
8088 then :
8089
8090 if test "$GCC" = yes
8091 then :
8092
8093 case `${CC} -dumpmachine` in
8094 hppa64*)
8095 # 64-bit gcc in use. Fix flags for GNU ld.
8096 do64bit_ok=yes
8097 SHLIB_LD='${CC} -shared'
8098 if test $doRpath = yes
8099 then :
8100
8101 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8102 fi
8103 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8104 ;;
8105 *)
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
8107 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
8108 ;;
8109 esac
8110
8111 else case e in #(
8112 e)
8113 do64bit_ok=yes
8114 CFLAGS="$CFLAGS +DD64"
8115 LDFLAGS_ARCH="+DD64"
8116 ;;
8117 esac
8118 fi
8119
8120 fi ;;
8121 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
8122 SHLIB_SUFFIX=".sl"
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8124 printf %s "checking for shl_load in -ldld... " >&6; }
8125 if test ${ac_cv_lib_dld_shl_load+y}
8126 then :
8127 printf %s "(cached) " >&6
8128 else case e in #(
8129 e) ac_check_lib_save_LIBS=$LIBS
8130 LIBS="-ldld $LIBS"
8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8133
8134 /* Override any GCC internal prototype to avoid an error.
8135 Use char because int might match the return type of a GCC
8136 builtin and then its argument prototype would still apply.
8137 The 'extern "C"' is for builds by C++ compilers;
8138 although this is not generally supported in C code supporting it here
8139 has little cost and some practical benefit (sr 110532). */
8140 #ifdef __cplusplus
8141 extern "C"
8142 #endif
8143 char shl_load (void);
8144 int
8145 main (void)
8146 {
8147 return shl_load ();
8148 ;
8149 return 0;
8150 }
8151 _ACEOF
8152 if ac_fn_c_try_link "$LINENO"
8153 then :
8154 ac_cv_lib_dld_shl_load=yes
8155 else case e in #(
8156 e) ac_cv_lib_dld_shl_load=no ;;
8157 esac
8158 fi
8159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8160 conftest$ac_exeext conftest.$ac_ext
8161 LIBS=$ac_check_lib_save_LIBS ;;
8162 esac
8163 fi
8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8165 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
8166 if test "x$ac_cv_lib_dld_shl_load" = xyes
8167 then :
8168 tcl_ok=yes
8169 else case e in #(
8170 e) tcl_ok=no ;;
8171 esac
8172 fi
8173
8174 if test "$tcl_ok" = yes
8175 then :
8176
8177 SHLIB_CFLAGS="+z"
8178 SHLIB_LD="ld -b"
8179 SHLIB_LD_LIBS=""
8180 LDFLAGS="$LDFLAGS -Wl,-E"
8181 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
8182 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
8183 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
8184
8185 fi ;;
8186 IRIX-5.*)
8187 SHLIB_CFLAGS=""
8188 SHLIB_LD="ld -shared -rdata_shared"
8189 SHLIB_SUFFIX=".so"
8190 case " $LIBOBJS " in
8191 *" mkstemp.$ac_objext "* ) ;;
8192 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
8193 ;;
8194 esac
8195
8196 if test $doRpath = yes
8197 then :
8198
8199 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8200 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
8201 fi
8202 ;;
8203 IRIX-6.*)
8204 SHLIB_CFLAGS=""
8205 SHLIB_LD="ld -n32 -shared -rdata_shared"
8206 SHLIB_SUFFIX=".so"
8207 if test $doRpath = yes
8208 then :
8209
8210 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8211 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
8212 fi
8213 if test "$GCC" = yes
8214 then :
8215
8216 CFLAGS="$CFLAGS -mabi=n32"
8217 LDFLAGS="$LDFLAGS -mabi=n32"
8218
8219 else case e in #(
8220 e)
8221 case $system in
8222 IRIX-6.3)
8223 # Use to build 6.2 compatible binaries on 6.3.
8224 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
8225 ;;
8226 *)
8227 CFLAGS="$CFLAGS -n32"
8228 ;;
8229 esac
8230 LDFLAGS="$LDFLAGS -n32"
8231 ;;
8232 esac
8233 fi
8234 ;;
8235 IRIX64-6.*)
8236 SHLIB_CFLAGS=""
8237 SHLIB_LD="ld -n32 -shared -rdata_shared"
8238 SHLIB_SUFFIX=".so"
8239 if test $doRpath = yes
8240 then :
8241
8242 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8243 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
8244 fi
8245
8246 # Check to enable 64-bit flags for compiler/linker
8247
8248 if test "$do64bit" = yes
8249 then :
8250
8251 if test "$GCC" = yes
8252 then :
8253
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
8255 printf "%s\n" "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
8256
8257 else case e in #(
8258 e)
8259 do64bit_ok=yes
8260 SHLIB_LD="ld -64 -shared -rdata_shared"
8261 CFLAGS="$CFLAGS -64"
8262 LDFLAGS_ARCH="-64"
8263 ;;
8264 esac
8265 fi
8266
8267 fi
8268 ;;
8269 Linux*|GNU*|NetBSD-Debian|DragonFly-*|FreeBSD-*)
8270 SHLIB_CFLAGS="-fPIC"
8271 SHLIB_SUFFIX=".so"
8272
8273 # TEA specific:
8274 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
8275
8276 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8277 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS_DEFAULT} -shared'
8278 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
8279
8280 case $system in
8281 DragonFly-*|FreeBSD-*)
8282 if test "${TCL_THREADS}" = "1"
8283 then :
8284
8285 # The -pthread needs to go in the LDFLAGS, not LIBS
8286 LIBS=`echo $LIBS | sed s/-pthread//`
8287 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8288 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
8289 fi
8290 ;;
8291 esac
8292
8293 if test $doRpath = yes
8294 then :
8295
8296 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8297 fi
8298 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8299 if test "`uname -m`" = "alpha"
8300 then :
8301 CFLAGS="$CFLAGS -mieee"
8302 fi
8303 if test $do64bit = yes
8304 then :
8305
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
8307 printf %s "checking if compiler accepts -m64 flag... " >&6; }
8308 if test ${tcl_cv_cc_m64+y}
8309 then :
8310 printf %s "(cached) " >&6
8311 else case e in #(
8312 e)
8313 hold_cflags=$CFLAGS
8314 CFLAGS="$CFLAGS -m64"
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8317
8318 int
8319 main (void)
8320 {
8321
8322 ;
8323 return 0;
8324 }
8325 _ACEOF
8326 if ac_fn_c_try_link "$LINENO"
8327 then :
8328 tcl_cv_cc_m64=yes
8329 else case e in #(
8330 e) tcl_cv_cc_m64=no ;;
8331 esac
8332 fi
8333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8334 conftest$ac_exeext conftest.$ac_ext
8335 CFLAGS=$hold_cflags ;;
8336 esac
8337 fi
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
8339 printf "%s\n" "$tcl_cv_cc_m64" >&6; }
8340 if test $tcl_cv_cc_m64 = yes
8341 then :
8342
8343 CFLAGS="$CFLAGS -m64"
8344 do64bit_ok=yes
8345
8346 fi
8347
8348 fi
8349
8350 # The combo of gcc + glibc has a bug related to inlining of
8351 # functions like strtod(). The -fno-builtin flag should address
8352 # this problem but it does not work. The -fno-inline flag is kind
8353 # of overkill but it works. Disable inlining only when one of the
8354 # files in compat/*.c is being linked in.
8355
8356 if test x"${USE_COMPAT}" != x
8357 then :
8358 CFLAGS="$CFLAGS -fno-inline"
8359 fi
8360 ;;
8361 Lynx*)
8362 SHLIB_CFLAGS="-fPIC"
8363 SHLIB_SUFFIX=".so"
8364 CFLAGS_OPTIMIZE=-02
8365 SHLIB_LD='${CC} -shared'
8366 LD_FLAGS="-Wl,--export-dynamic"
8367 if test $doRpath = yes
8368 then :
8369
8370 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8371 LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8372 fi
8373 ;;
8374 OpenBSD-*)
8375 arch=`arch -s`
8376 case "$arch" in
8377 alpha|sparc64)
8378 SHLIB_CFLAGS="-fPIC"
8379 ;;
8380 *)
8381 SHLIB_CFLAGS="-fpic"
8382 ;;
8383 esac
8384 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
8385 SHLIB_SUFFIX=".so"
8386 if test $doRpath = yes
8387 then :
8388
8389 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8390 fi
8391 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8392 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
8393 LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
8394 CFLAGS_OPTIMIZE="-O2"
8395 # On OpenBSD: Compile with -pthread
8396 # Don't link with -lpthread
8397 LIBS=`echo $LIBS | sed s/-lpthread//`
8398 CFLAGS="$CFLAGS -pthread"
8399 # OpenBSD doesn't do version numbers with dots.
8400 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8401 TCL_LIB_VERSIONS_OK=nodots
8402 ;;
8403 NetBSD-*)
8404 # NetBSD has ELF and can use 'cc -shared' to build shared libs
8405 SHLIB_CFLAGS="-fPIC"
8406 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
8407 SHLIB_SUFFIX=".so"
8408 LDFLAGS="$LDFLAGS -export-dynamic"
8409 if test $doRpath = yes
8410 then :
8411
8412 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8413 fi
8414 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8415 # The -pthread needs to go in the CFLAGS, not LIBS
8416 LIBS=`echo $LIBS | sed s/-pthread//`
8417 CFLAGS="$CFLAGS -pthread"
8418 LDFLAGS="$LDFLAGS -pthread"
8419 ;;
8420 Darwin-*)
8421 CFLAGS_OPTIMIZE="-Os"
8422 SHLIB_CFLAGS="-fno-common"
8423 # To avoid discrepancies between what headers configure sees during
8424 # preprocessing tests and compiling tests, move any -isysroot and
8425 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
8426 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
8427 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8428 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
8429 CFLAGS="`echo " ${CFLAGS}" | \
8430 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8431 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
8432 if test $do64bit = yes
8433 then :
8434
8435 case `arch` in
8436 ppc)
8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
8438 printf %s "checking if compiler accepts -arch ppc64 flag... " >&6; }
8439 if test ${tcl_cv_cc_arch_ppc64+y}
8440 then :
8441 printf %s "(cached) " >&6
8442 else case e in #(
8443 e)
8444 hold_cflags=$CFLAGS
8445 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448
8449 int
8450 main (void)
8451 {
8452
8453 ;
8454 return 0;
8455 }
8456 _ACEOF
8457 if ac_fn_c_try_link "$LINENO"
8458 then :
8459 tcl_cv_cc_arch_ppc64=yes
8460 else case e in #(
8461 e) tcl_cv_cc_arch_ppc64=no ;;
8462 esac
8463 fi
8464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8465 conftest$ac_exeext conftest.$ac_ext
8466 CFLAGS=$hold_cflags ;;
8467 esac
8468 fi
8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
8470 printf "%s\n" "$tcl_cv_cc_arch_ppc64" >&6; }
8471 if test $tcl_cv_cc_arch_ppc64 = yes
8472 then :
8473
8474 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8475 do64bit_ok=yes
8476
8477 fi;;
8478 i386)
8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
8480 printf %s "checking if compiler accepts -arch x86_64 flag... " >&6; }
8481 if test ${tcl_cv_cc_arch_x86_64+y}
8482 then :
8483 printf %s "(cached) " >&6
8484 else case e in #(
8485 e)
8486 hold_cflags=$CFLAGS
8487 CFLAGS="$CFLAGS -arch x86_64"
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490
8491 int
8492 main (void)
8493 {
8494
8495 ;
8496 return 0;
8497 }
8498 _ACEOF
8499 if ac_fn_c_try_link "$LINENO"
8500 then :
8501 tcl_cv_cc_arch_x86_64=yes
8502 else case e in #(
8503 e) tcl_cv_cc_arch_x86_64=no ;;
8504 esac
8505 fi
8506 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8507 conftest$ac_exeext conftest.$ac_ext
8508 CFLAGS=$hold_cflags ;;
8509 esac
8510 fi
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
8512 printf "%s\n" "$tcl_cv_cc_arch_x86_64" >&6; }
8513 if test $tcl_cv_cc_arch_x86_64 = yes
8514 then :
8515
8516 CFLAGS="$CFLAGS -arch x86_64"
8517 do64bit_ok=yes
8518
8519 fi;;
8520 *)
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
8522 printf "%s\n" "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
8523 esac
8524
8525 else case e in #(
8526 e)
8527 # Check for combined 32-bit and 64-bit fat build
8528 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
8529 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '
8530 then :
8531
8532 fat_32_64=yes
8533 fi
8534 ;;
8535 esac
8536 fi
8537 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8538 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
8539 # TEA specific: link shlib with current and compatibility version flags
8540 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
8541 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
8542 SHLIB_SUFFIX=".dylib"
8543 LDFLAGS="$LDFLAGS -headerpad_max_install_names"
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
8545 printf %s "checking if ld accepts -search_paths_first flag... " >&6; }
8546 if test ${tcl_cv_ld_search_paths_first+y}
8547 then :
8548 printf %s "(cached) " >&6
8549 else case e in #(
8550 e)
8551 hold_ldflags=$LDFLAGS
8552 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8555
8556 int
8557 main (void)
8558 {
8559 int i;
8560 ;
8561 return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_link "$LINENO"
8565 then :
8566 tcl_cv_ld_search_paths_first=yes
8567 else case e in #(
8568 e) tcl_cv_ld_search_paths_first=no ;;
8569 esac
8570 fi
8571 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8572 conftest$ac_exeext conftest.$ac_ext
8573 LDFLAGS=$hold_ldflags ;;
8574 esac
8575 fi
8576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
8577 printf "%s\n" "$tcl_cv_ld_search_paths_first" >&6; }
8578 if test $tcl_cv_ld_search_paths_first = yes
8579 then :
8580
8581 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8582
8583 fi
8584 if test "$tcl_cv_cc_visibility_hidden" != yes
8585 then :
8586
8587
8588 printf "%s\n" "#define MODULE_SCOPE __private_extern__" >>confdefs.h
8589
8590 tcl_cv_cc_visibility_hidden=yes
8591
8592 fi
8593 CC_SEARCH_FLAGS=""
8594 LD_SEARCH_FLAGS=""
8595 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
8596 # TEA specific: for combined 32 & 64 bit fat builds of Tk
8597 # extensions, verify that 64-bit build is possible.
8598 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"
8599 then :
8600
8601 if test "${TEA_WINDOWINGSYSTEM}" = x11
8602 then :
8603
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
8605 printf %s "checking for 64-bit X11... " >&6; }
8606 if test ${tcl_cv_lib_x11_64+y}
8607 then :
8608 printf %s "(cached) " >&6
8609 else case e in #(
8610 e)
8611 for v in CFLAGS CPPFLAGS LDFLAGS; do
8612 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8613 done
8614 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
8615 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8618 #include <X11/Xlib.h>
8619 int
8620 main (void)
8621 {
8622 XrmInitialize();
8623 ;
8624 return 0;
8625 }
8626 _ACEOF
8627 if ac_fn_c_try_link "$LINENO"
8628 then :
8629 tcl_cv_lib_x11_64=yes
8630 else case e in #(
8631 e) tcl_cv_lib_x11_64=no ;;
8632 esac
8633 fi
8634 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8635 conftest$ac_exeext conftest.$ac_ext
8636 for v in CFLAGS CPPFLAGS LDFLAGS; do
8637 eval $v'="$hold_'$v'"'
8638 done ;;
8639 esac
8640 fi
8641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
8642 printf "%s\n" "$tcl_cv_lib_x11_64" >&6; }
8643
8644 fi
8645 if test "${TEA_WINDOWINGSYSTEM}" = aqua
8646 then :
8647
8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5
8649 printf %s "checking for 64-bit Tk... " >&6; }
8650 if test ${tcl_cv_lib_tk_64+y}
8651 then :
8652 printf %s "(cached) " >&6
8653 else case e in #(
8654 e)
8655 for v in CFLAGS CPPFLAGS LDFLAGS; do
8656 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8657 done
8658 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
8659 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 #include <tk.h>
8663 int
8664 main (void)
8665 {
8666 Tk_InitStubs(NULL, "", 0);
8667 ;
8668 return 0;
8669 }
8670 _ACEOF
8671 if ac_fn_c_try_link "$LINENO"
8672 then :
8673 tcl_cv_lib_tk_64=yes
8674 else case e in #(
8675 e) tcl_cv_lib_tk_64=no ;;
8676 esac
8677 fi
8678 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8679 conftest$ac_exeext conftest.$ac_ext
8680 for v in CFLAGS CPPFLAGS LDFLAGS; do
8681 eval $v'="$hold_'$v'"'
8682 done ;;
8683 esac
8684 fi
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5
8686 printf "%s\n" "$tcl_cv_lib_tk_64" >&6; }
8687
8688 fi
8689 # remove 64-bit arch flags from CFLAGS et al. if configuration
8690 # does not support 64-bit.
8691 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no
8692 then :
8693
8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
8695 printf "%s\n" "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
8696 for v in CFLAGS CPPFLAGS LDFLAGS; do
8697 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
8698 done
8699 fi
8700
8701 fi
8702 ;;
8703 OS/390-*)
8704 CFLAGS_OPTIMIZE="" # Optimizer is buggy
8705
8706 printf "%s\n" "#define _OE_SOCKETS 1" >>confdefs.h
8707
8708 ;;
8709 OSF1-V*)
8710 # Digital OSF/1
8711 SHLIB_CFLAGS=""
8712 if test "$SHARED_BUILD" = 1
8713 then :
8714
8715 SHLIB_LD='ld -shared -expect_unresolved "*"'
8716
8717 else case e in #(
8718 e)
8719 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
8720 ;;
8721 esac
8722 fi
8723 SHLIB_SUFFIX=".so"
8724 if test $doRpath = yes
8725 then :
8726
8727 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8728 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8729 fi
8730 if test "$GCC" = yes
8731 then :
8732 CFLAGS="$CFLAGS -mieee"
8733 else case e in #(
8734 e)
8735 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" ;;
8736 esac
8737 fi
8738 # see pthread_intro(3) for pthread support on osf1, k.furukawa
8739 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
8740 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
8741 LIBS=`echo $LIBS | sed s/-lpthreads//`
8742 if test "$GCC" = yes
8743 then :
8744
8745 LIBS="$LIBS -lpthread -lmach -lexc"
8746
8747 else case e in #(
8748 e)
8749 CFLAGS="$CFLAGS -pthread"
8750 LDFLAGS="$LDFLAGS -pthread"
8751 ;;
8752 esac
8753 fi
8754 ;;
8755 QNX-6*)
8756 # QNX RTP
8757 # This may work for all QNX, but it was only reported for v6.
8758 SHLIB_CFLAGS="-fPIC"
8759 SHLIB_LD="ld -Bshareable -x"
8760 SHLIB_LD_LIBS=""
8761 SHLIB_SUFFIX=".so"
8762 CC_SEARCH_FLAGS=""
8763 LD_SEARCH_FLAGS=""
8764 ;;
8765 SCO_SV-3.2*)
8766 if test "$GCC" = yes
8767 then :
8768
8769 SHLIB_CFLAGS="-fPIC -melf"
8770 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
8771
8772 else case e in #(
8773 e)
8774 SHLIB_CFLAGS="-Kpic -belf"
8775 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
8776 ;;
8777 esac
8778 fi
8779 SHLIB_LD="ld -G"
8780 SHLIB_LD_LIBS=""
8781 SHLIB_SUFFIX=".so"
8782 CC_SEARCH_FLAGS=""
8783 LD_SEARCH_FLAGS=""
8784 ;;
8785 SunOS-5.[0-6])
8786 # Careful to not let 5.10+ fall into this case
8787
8788 # Note: If _REENTRANT isn't defined, then Solaris
8789 # won't define thread-safe library routines.
8790
8791
8792 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
8793
8794
8795 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
8796
8797
8798 SHLIB_CFLAGS="-KPIC"
8799 SHLIB_SUFFIX=".so"
8800 if test "$GCC" = yes
8801 then :
8802
8803 SHLIB_LD='${CC} -shared'
8804 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8805 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8806
8807 else case e in #(
8808 e)
8809 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
8810 CC_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
8811 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8812 ;;
8813 esac
8814 fi
8815 ;;
8816 SunOS-5*)
8817 # Note: If _REENTRANT isn't defined, then Solaris
8818 # won't define thread-safe library routines.
8819
8820
8821 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
8822
8823
8824 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
8825
8826
8827 SHLIB_CFLAGS="-KPIC"
8828
8829 # Check to enable 64-bit flags for compiler/linker
8830 if test "$do64bit" = yes
8831 then :
8832
8833 arch=`isainfo`
8834 if test "$arch" = "sparcv9 sparc"
8835 then :
8836
8837 if test "$GCC" = yes
8838 then :
8839
8840 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3
8841 then :
8842
8843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
8844 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
8845
8846 else case e in #(
8847 e)
8848 do64bit_ok=yes
8849 CFLAGS="$CFLAGS -m64 -mcpu=v9"
8850 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
8851 SHLIB_CFLAGS="-fPIC"
8852 ;;
8853 esac
8854 fi
8855
8856 else case e in #(
8857 e)
8858 do64bit_ok=yes
8859 if test "$do64bitVIS" = yes
8860 then :
8861
8862 CFLAGS="$CFLAGS -xarch=v9a"
8863 LDFLAGS_ARCH="-xarch=v9a"
8864
8865 else case e in #(
8866 e)
8867 CFLAGS="$CFLAGS -xarch=v9"
8868 LDFLAGS_ARCH="-xarch=v9"
8869 ;;
8870 esac
8871 fi
8872 # Solaris 64 uses this as well
8873 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
8874 ;;
8875 esac
8876 fi
8877
8878 else case e in #(
8879 e) if test "$arch" = "amd64 i386"
8880 then :
8881
8882 if test "$GCC" = yes
8883 then :
8884
8885 case $system in
8886 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8887 do64bit_ok=yes
8888 CFLAGS="$CFLAGS -m64"
8889 LDFLAGS="$LDFLAGS -m64";;
8890 *)
8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
8892 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
8893 esac
8894
8895 else case e in #(
8896 e)
8897 do64bit_ok=yes
8898 case $system in
8899 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8900 CFLAGS="$CFLAGS -m64"
8901 LDFLAGS="$LDFLAGS -m64";;
8902 *)
8903 CFLAGS="$CFLAGS -xarch=amd64"
8904 LDFLAGS="$LDFLAGS -xarch=amd64";;
8905 esac
8906 ;;
8907 esac
8908 fi
8909
8910 else case e in #(
8911 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
8912 printf "%s\n" "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} ;;
8913 esac
8914 fi ;;
8915 esac
8916 fi
8917
8918 fi
8919
8920 SHLIB_SUFFIX=".so"
8921 if test "$GCC" = yes
8922 then :
8923
8924 SHLIB_LD='${CC} -shared'
8925 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8926 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8927 if test "$do64bit_ok" = yes
8928 then :
8929
8930 if test "$arch" = "sparcv9 sparc"
8931 then :
8932
8933 # We need to specify -static-libgcc or we need to
8934 # add the path to the sparv9 libgcc.
8935 # JH: static-libgcc is necessary for core Tcl, but may
8936 # not be necessary for extensions.
8937 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
8938 # for finding sparcv9 libgcc, get the regular libgcc
8939 # path, remove so name and append 'sparcv9'
8940 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
8941 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
8942
8943 else case e in #(
8944 e) if test "$arch" = "amd64 i386"
8945 then :
8946
8947 # JH: static-libgcc is necessary for core Tcl, but may
8948 # not be necessary for extensions.
8949 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
8950
8951 fi ;;
8952 esac
8953 fi
8954
8955 fi
8956
8957 else case e in #(
8958 e)
8959 case $system in
8960 SunOS-5.[1-9][0-9]*)
8961 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8962 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
8963 *)
8964 SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
8965 esac
8966 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8967 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
8968 ;;
8969 esac
8970 fi
8971 ;;
8972 UNIX_SV* | UnixWare-5*)
8973 SHLIB_CFLAGS="-KPIC"
8974 SHLIB_LD='${CC} -G'
8975 SHLIB_LD_LIBS=""
8976 SHLIB_SUFFIX=".so"
8977 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
8978 # that don't grok the -Bexport option. Test that it does.
8979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
8980 printf %s "checking for ld accepts -Bexport flag... " >&6; }
8981 if test ${tcl_cv_ld_Bexport+y}
8982 then :
8983 printf %s "(cached) " >&6
8984 else case e in #(
8985 e)
8986 hold_ldflags=$LDFLAGS
8987 LDFLAGS="$LDFLAGS -Wl,-Bexport"
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8990
8991 int
8992 main (void)
8993 {
8994 int i;
8995 ;
8996 return 0;
8997 }
8998 _ACEOF
8999 if ac_fn_c_try_link "$LINENO"
9000 then :
9001 tcl_cv_ld_Bexport=yes
9002 else case e in #(
9003 e) tcl_cv_ld_Bexport=no ;;
9004 esac
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9007 conftest$ac_exeext conftest.$ac_ext
9008 LDFLAGS=$hold_ldflags ;;
9009 esac
9010 fi
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
9012 printf "%s\n" "$tcl_cv_ld_Bexport" >&6; }
9013 if test $tcl_cv_ld_Bexport = yes
9014 then :
9015
9016 LDFLAGS="$LDFLAGS -Wl,-Bexport"
9017
9018 fi
9019 CC_SEARCH_FLAGS=""
9020 LD_SEARCH_FLAGS=""
9021 ;;
9022 esac
9023
9024 if test "$do64bit" = yes -a "$do64bit_ok" = no
9025 then :
9026
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
9028 printf "%s\n" "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
9029
9030 fi
9031
9032
9033
9034 # Add in the arch flags late to ensure it wasn't removed.
9035 # Not necessary in TEA, but this is aligned with core
9036 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
9037
9038 # If we're running gcc, then change the C flags for compiling shared
9039 # libraries to the right flags for gcc, instead of those for the
9040 # standard manufacturer compiler.
9041
9042 if test "$GCC" = yes
9043 then :
9044
9045 case $system in
9046 AIX-*) ;;
9047 BSD/OS*) ;;
9048 CYGWIN_*|MINGW32_*|MINGW64_*|MSYS_*) ;;
9049 IRIX*) ;;
9050 NetBSD-*|DragonFly-*|FreeBSD-*|OpenBSD-*) ;;
9051 Darwin-*) ;;
9052 SCO_SV-3.2*) ;;
9053 windows) ;;
9054 *) SHLIB_CFLAGS="-fPIC" ;;
9055 esac
9056 fi
9057
9058 if test "$tcl_cv_cc_visibility_hidden" != yes
9059 then :
9060
9061
9062 printf "%s\n" "#define MODULE_SCOPE extern" >>confdefs.h
9063
9064
9065 fi
9066
9067 if test "$SHARED_LIB_SUFFIX" = ""
9068 then :
9069
9070 # TEA specific: use PACKAGE_VERSION instead of VERSION
9071 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
9072 fi
9073 if test "$UNSHARED_LIB_SUFFIX" = ""
9074 then :
9075
9076 # TEA specific: use PACKAGE_VERSION instead of VERSION
9077 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
9078 fi
9079
9080 if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then
9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5
9082 printf %s "checking for SEH support in compiler... " >&6; }
9083 if test ${tcl_cv_seh+y}
9084 then :
9085 printf %s "(cached) " >&6
9086 else case e in #(
9087 e) if test "$cross_compiling" = yes
9088 then :
9089 tcl_cv_seh=no
9090 else case e in #(
9091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9093
9094 #define WIN32_LEAN_AND_MEAN
9095 #include <windows.h>
9096 #undef WIN32_LEAN_AND_MEAN
9097
9098 int main(int argc, char** argv) {
9099 int a, b = 0;
9100 __try {
9101 a = 666 / b;
9102 }
9103 __except (EXCEPTION_EXECUTE_HANDLER) {
9104 return 0;
9105 }
9106 return 1;
9107 }
9108
9109 _ACEOF
9110 if ac_fn_c_try_run "$LINENO"
9111 then :
9112 tcl_cv_seh=yes
9113 else case e in #(
9114 e) tcl_cv_seh=no ;;
9115 esac
9116 fi
9117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9118 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9119 esac
9120 fi
9121
9122 ;;
9123 esac
9124 fi
9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5
9126 printf "%s\n" "$tcl_cv_seh" >&6; }
9127 if test "$tcl_cv_seh" = "no" ; then
9128
9129 printf "%s\n" "#define HAVE_NO_SEH 1" >>confdefs.h
9130
9131 fi
9132
9133 #
9134 # Check to see if the excpt.h include file provided contains the
9135 # definition for EXCEPTION_DISPOSITION; if not, which is the case
9136 # with Cygwin's version as of 2002-04-10, define it to be int,
9137 # sufficient for getting the current code to work.
9138 #
9139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5
9140 printf %s "checking for EXCEPTION_DISPOSITION support in include files... " >&6; }
9141 if test ${tcl_cv_eh_disposition+y}
9142 then :
9143 printf %s "(cached) " >&6
9144 else case e in #(
9145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9147
9148 # define WIN32_LEAN_AND_MEAN
9149 # include <windows.h>
9150 # undef WIN32_LEAN_AND_MEAN
9151
9152 int
9153 main (void)
9154 {
9155
9156 EXCEPTION_DISPOSITION x;
9157
9158 ;
9159 return 0;
9160 }
9161 _ACEOF
9162 if ac_fn_c_try_compile "$LINENO"
9163 then :
9164 tcl_cv_eh_disposition=yes
9165 else case e in #(
9166 e) tcl_cv_eh_disposition=no ;;
9167 esac
9168 fi
9169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9170 ;;
9171 esac
9172 fi
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5
9174 printf "%s\n" "$tcl_cv_eh_disposition" >&6; }
9175 if test "$tcl_cv_eh_disposition" = "no" ; then
9176
9177 printf "%s\n" "#define EXCEPTION_DISPOSITION int" >>confdefs.h
9178
9179 fi
9180
9181 # Check to see if winnt.h defines CHAR, SHORT, and LONG
9182 # even if VOID has already been #defined. The win32api
9183 # used by mingw and cygwin is known to do this.
9184
9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5
9186 printf %s "checking for winnt.h that ignores VOID define... " >&6; }
9187 if test ${tcl_cv_winnt_ignore_void+y}
9188 then :
9189 printf %s "(cached) " >&6
9190 else case e in #(
9191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9193
9194 #define VOID void
9195 #define WIN32_LEAN_AND_MEAN
9196 #include <windows.h>
9197 #undef WIN32_LEAN_AND_MEAN
9198
9199 int
9200 main (void)
9201 {
9202
9203 CHAR c;
9204 SHORT s;
9205 LONG l;
9206
9207 ;
9208 return 0;
9209 }
9210 _ACEOF
9211 if ac_fn_c_try_compile "$LINENO"
9212 then :
9213 tcl_cv_winnt_ignore_void=yes
9214 else case e in #(
9215 e) tcl_cv_winnt_ignore_void=no ;;
9216 esac
9217 fi
9218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9219 ;;
9220 esac
9221 fi
9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5
9223 printf "%s\n" "$tcl_cv_winnt_ignore_void" >&6; }
9224 if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
9225
9226 printf "%s\n" "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h
9227
9228 fi
9229 fi
9230
9231 # See if the compiler supports casting to a union type.
9232 # This is used to stop gcc from printing a compiler
9233 # warning when initializing a union member.
9234
9235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5
9236 printf %s "checking for cast to union support... " >&6; }
9237 if test ${tcl_cv_cast_to_union+y}
9238 then :
9239 printf %s "(cached) " >&6
9240 else case e in #(
9241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9243
9244 int
9245 main (void)
9246 {
9247
9248 union foo { int i; double d; };
9249 union foo f = (union foo) (int) 0;
9250
9251 ;
9252 return 0;
9253 }
9254 _ACEOF
9255 if ac_fn_c_try_compile "$LINENO"
9256 then :
9257 tcl_cv_cast_to_union=yes
9258 else case e in #(
9259 e) tcl_cv_cast_to_union=no ;;
9260 esac
9261 fi
9262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9263 ;;
9264 esac
9265 fi
9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5
9267 printf "%s\n" "$tcl_cv_cast_to_union" >&6; }
9268 if test "$tcl_cv_cast_to_union" = "yes"; then
9269
9270 printf "%s\n" "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
9271
9272 fi
9273
9274 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
9275 if test "x$ac_cv_header_stdbool_h" = xyes
9276 then :
9277
9278 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
9279
9280 fi
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297 # These must be called after we do the basic CFLAGS checks and
9298 # verify any possible 64-bit or similar switches are necessary
9299
9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
9301 printf %s "checking for required early compiler flags... " >&6; }
9302 tcl_flags=""
9303
9304 if test ${tcl_cv_flag__isoc99_source+y}
9305 then :
9306 printf %s "(cached) " >&6
9307 else case e in #(
9308 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9310 #include <stdlib.h>
9311 int
9312 main (void)
9313 {
9314 char *p = (char *)strtoll; char *q = (char *)strtoull;
9315 ;
9316 return 0;
9317 }
9318 _ACEOF
9319 if ac_fn_c_try_compile "$LINENO"
9320 then :
9321 tcl_cv_flag__isoc99_source=no
9322 else case e in #(
9323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325 #define _ISOC99_SOURCE 1
9326 #include <stdlib.h>
9327 int
9328 main (void)
9329 {
9330 char *p = (char *)strtoll; char *q = (char *)strtoull;
9331 ;
9332 return 0;
9333 }
9334 _ACEOF
9335 if ac_fn_c_try_compile "$LINENO"
9336 then :
9337 tcl_cv_flag__isoc99_source=yes
9338 else case e in #(
9339 e) tcl_cv_flag__isoc99_source=no ;;
9340 esac
9341 fi
9342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9343 esac
9344 fi
9345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9346 esac
9347 fi
9348
9349 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
9350
9351 printf "%s\n" "#define _ISOC99_SOURCE 1" >>confdefs.h
9352
9353 tcl_flags="$tcl_flags _ISOC99_SOURCE"
9354 fi
9355
9356 if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
9357
9358 if test ${tcl_cv_flag__file_offset_bits+y}
9359 then :
9360 printf %s "(cached) " >&6
9361 else case e in #(
9362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9364 #include <sys/stat.h>
9365 int
9366 main (void)
9367 {
9368 switch (0) { case 0: case (sizeof(off_t)==sizeof(long long)): ; }
9369 ;
9370 return 0;
9371 }
9372 _ACEOF
9373 if ac_fn_c_try_compile "$LINENO"
9374 then :
9375 tcl_cv_flag__file_offset_bits=no
9376 else case e in #(
9377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9379 #define _FILE_OFFSET_BITS 64
9380 #include <sys/stat.h>
9381 int
9382 main (void)
9383 {
9384 switch (0) { case 0: case (sizeof(off_t)==sizeof(long long)): ; }
9385 ;
9386 return 0;
9387 }
9388 _ACEOF
9389 if ac_fn_c_try_compile "$LINENO"
9390 then :
9391 tcl_cv_flag__file_offset_bits=yes
9392 else case e in #(
9393 e) tcl_cv_flag__file_offset_bits=no ;;
9394 esac
9395 fi
9396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9397 esac
9398 fi
9399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9400 esac
9401 fi
9402
9403 if test "x${tcl_cv_flag__file_offset_bits}" = "xyes" ; then
9404
9405 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9406
9407 tcl_flags="$tcl_flags _FILE_OFFSET_BITS"
9408 fi
9409
9410 fi
9411 if test "x${tcl_flags}" = "x" ; then
9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9413 printf "%s\n" "none" >&6; }
9414 else
9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
9416 printf "%s\n" "${tcl_flags}" >&6; }
9417 fi
9418
9419
9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
9421 printf %s "checking for 64-bit integer type... " >&6; }
9422 if test ${tcl_cv_type_64bit+y}
9423 then :
9424 printf %s "(cached) " >&6
9425 else case e in #(
9426 e)
9427 tcl_cv_type_64bit=none
9428 # See if the compiler knows natively about __int64
9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h. */
9431
9432 int
9433 main (void)
9434 {
9435 __int64 value = (__int64) 0;
9436 ;
9437 return 0;
9438 }
9439 _ACEOF
9440 if ac_fn_c_try_compile "$LINENO"
9441 then :
9442 tcl_type_64bit=__int64
9443 else case e in #(
9444 e) tcl_type_64bit="long long" ;;
9445 esac
9446 fi
9447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9448 # See if we could use long anyway Note that we substitute in the
9449 # type that is our current guess for a 64-bit type inside this check
9450 # program, so it should be modified only carefully...
9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h. */
9453
9454 int
9455 main (void)
9456 {
9457 switch (0) {
9458 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
9459 }
9460 ;
9461 return 0;
9462 }
9463 _ACEOF
9464 if ac_fn_c_try_compile "$LINENO"
9465 then :
9466 tcl_cv_type_64bit=${tcl_type_64bit}
9467 fi
9468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9469 esac
9470 fi
9471
9472 if test "${tcl_cv_type_64bit}" = none ; then
9473
9474 printf "%s\n" "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
9475
9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9477 printf "%s\n" "yes" >&6; }
9478 elif test "${tcl_cv_type_64bit}" = "__int64" \
9479 -a "${TEA_PLATFORM}" = "windows" ; then
9480 # TEA specific: We actually want to use the default tcl.h checks in
9481 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
9483 printf "%s\n" "using Tcl header defaults" >&6; }
9484 else
9485
9486 printf "%s\n" "#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}" >>confdefs.h
9487
9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
9489 printf "%s\n" "${tcl_cv_type_64bit}" >&6; }
9490
9491 # Now check for auxiliary declarations
9492 if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t" >&5
9494 printf %s "checking for 64-bit time_t... " >&6; }
9495 if test ${tcl_cv_time_t_64+y}
9496 then :
9497 printf %s "(cached) " >&6
9498 else case e in #(
9499 e)
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9502 #include <sys/types.h>
9503 int
9504 main (void)
9505 {
9506 switch (0) {case 0: case (sizeof(time_t)==sizeof(long long)): ;}
9507 ;
9508 return 0;
9509 }
9510 _ACEOF
9511 if ac_fn_c_try_compile "$LINENO"
9512 then :
9513 tcl_cv_time_t_64=yes
9514 else case e in #(
9515 e) tcl_cv_time_t_64=no ;;
9516 esac
9517 fi
9518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9519 esac
9520 fi
9521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_time_t_64" >&5
9522 printf "%s\n" "$tcl_cv_time_t_64" >&6; }
9523 if test "x${tcl_cv_time_t_64}" = "xno" ; then
9524 # Note that _TIME_BITS=64 requires _FILE_OFFSET_BITS=64
9525 # which SC_TCL_EARLY_FLAGS has defined if necessary.
9526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _TIME_BITS=64 enables 64-bit time_t" >&5
9527 printf %s "checking if _TIME_BITS=64 enables 64-bit time_t... " >&6; }
9528 if test ${tcl_cv__time_bits+y}
9529 then :
9530 printf %s "(cached) " >&6
9531 else case e in #(
9532 e)
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535 #define _TIME_BITS 64
9536 #include <sys/types.h>
9537 int
9538 main (void)
9539 {
9540 switch (0) {case 0: case (sizeof(time_t)==sizeof(long long)): ;}
9541 ;
9542 return 0;
9543 }
9544 _ACEOF
9545 if ac_fn_c_try_compile "$LINENO"
9546 then :
9547 tcl_cv__time_bits=yes
9548 else case e in #(
9549 e) tcl_cv__time_bits=no ;;
9550 esac
9551 fi
9552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9553 esac
9554 fi
9555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv__time_bits" >&5
9556 printf "%s\n" "$tcl_cv__time_bits" >&6; }
9557 if test "x${tcl_cv__time_bits}" = "xyes" ; then
9558
9559 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
9560
9561 fi
9562 fi
9563 fi
9564
9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
9566 printf %s "checking for struct dirent64... " >&6; }
9567 if test ${tcl_cv_struct_dirent64+y}
9568 then :
9569 printf %s "(cached) " >&6
9570 else case e in #(
9571 e)
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9574 #include <sys/types.h>
9575 #include <dirent.h>
9576 int
9577 main (void)
9578 {
9579 struct dirent64 p;
9580 ;
9581 return 0;
9582 }
9583 _ACEOF
9584 if ac_fn_c_try_compile "$LINENO"
9585 then :
9586 tcl_cv_struct_dirent64=yes
9587 else case e in #(
9588 e) tcl_cv_struct_dirent64=no ;;
9589 esac
9590 fi
9591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9592 esac
9593 fi
9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
9595 printf "%s\n" "$tcl_cv_struct_dirent64" >&6; }
9596 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
9597
9598 printf "%s\n" "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
9599
9600 fi
9601
9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DIR64" >&5
9603 printf %s "checking for DIR64... " >&6; }
9604 if test ${tcl_cv_DIR64+y}
9605 then :
9606 printf %s "(cached) " >&6
9607 else case e in #(
9608 e)
9609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610 /* end confdefs.h. */
9611 #include <sys/types.h>
9612 #include <dirent.h>
9613 int
9614 main (void)
9615 {
9616 struct dirent64 *p; DIR64 d = opendir64(".");
9617 p = readdir64(d); rewinddir64(d); closedir64(d);
9618 ;
9619 return 0;
9620 }
9621 _ACEOF
9622 if ac_fn_c_try_compile "$LINENO"
9623 then :
9624 tcl_cv_DIR64=yes
9625 else case e in #(
9626 e) tcl_cv_DIR64=no ;;
9627 esac
9628 fi
9629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9630 esac
9631 fi
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_DIR64" >&5
9633 printf "%s\n" "$tcl_cv_DIR64" >&6; }
9634 if test "x${tcl_cv_DIR64}" = "xyes" ; then
9635
9636 printf "%s\n" "#define HAVE_DIR64 1" >>confdefs.h
9637
9638 fi
9639
9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
9641 printf %s "checking for struct stat64... " >&6; }
9642 if test ${tcl_cv_struct_stat64+y}
9643 then :
9644 printf %s "(cached) " >&6
9645 else case e in #(
9646 e)
9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648 /* end confdefs.h. */
9649 #include <sys/stat.h>
9650 int
9651 main (void)
9652 {
9653 struct stat64 p;
9654
9655 ;
9656 return 0;
9657 }
9658 _ACEOF
9659 if ac_fn_c_try_compile "$LINENO"
9660 then :
9661 tcl_cv_struct_stat64=yes
9662 else case e in #(
9663 e) tcl_cv_struct_stat64=no ;;
9664 esac
9665 fi
9666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9667 esac
9668 fi
9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
9670 printf "%s\n" "$tcl_cv_struct_stat64" >&6; }
9671 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
9672
9673 printf "%s\n" "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
9674
9675 fi
9676
9677 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
9678 if test "x$ac_cv_func_open64" = xyes
9679 then :
9680 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
9681
9682 fi
9683 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
9684 if test "x$ac_cv_func_lseek64" = xyes
9685 then :
9686 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
9687
9688 fi
9689
9690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
9691 printf %s "checking for off64_t... " >&6; }
9692 if test ${tcl_cv_type_off64_t+y}
9693 then :
9694 printf %s "(cached) " >&6
9695 else case e in #(
9696 e)
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 #include <sys/types.h>
9700 int
9701 main (void)
9702 {
9703 off64_t offset;
9704
9705 ;
9706 return 0;
9707 }
9708 _ACEOF
9709 if ac_fn_c_try_compile "$LINENO"
9710 then :
9711 tcl_cv_type_off64_t=yes
9712 else case e in #(
9713 e) tcl_cv_type_off64_t=no ;;
9714 esac
9715 fi
9716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9717 esac
9718 fi
9719
9720 if test "x${tcl_cv_type_off64_t}" = "xyes" && \
9721 test "x${ac_cv_func_lseek64}" = "xyes" && \
9722 test "x${ac_cv_func_open64}" = "xyes" ; then
9723
9724 printf "%s\n" "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
9725
9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9727 printf "%s\n" "yes" >&6; }
9728 else
9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9730 printf "%s\n" "no" >&6; }
9731 fi
9732 fi
9733
9734
9735
9736 #--------------------------------------------------------------------
9737 # Set the default compiler switches based on the --enable-symbols option.
9738 #--------------------------------------------------------------------
9739
9740
9741
9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
9743 printf %s "checking for build with symbols... " >&6; }
9744 # Check whether --enable-symbols was given.
9745 if test ${enable_symbols+y}
9746 then :
9747 enableval=$enable_symbols; tcl_ok=$enableval
9748 else case e in #(
9749 e) tcl_ok=no ;;
9750 esac
9751 fi
9752
9753 if test "$tcl_ok" = "no"; then
9754 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG"
9755 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757 printf "%s\n" "no" >&6; }
9758
9759 printf "%s\n" "#define TCL_CFG_OPTIMIZED 1" >>confdefs.h
9760
9761 else
9762 CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
9763 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
9764 if test "$tcl_ok" = "yes"; then
9765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
9766 printf "%s\n" "yes (standard debugging)" >&6; }
9767 fi
9768 fi
9769
9770
9771
9772 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
9773
9774 printf "%s\n" "#define TCL_MEM_DEBUG 1" >>confdefs.h
9775
9776 fi
9777
9778 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
9779 if test "$tcl_ok" = "all"; then
9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
9781 printf "%s\n" "enabled symbols mem debugging" >&6; }
9782 else
9783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
9784 printf "%s\n" "enabled $tcl_ok debugging" >&6; }
9785 fi
9786 fi
9787
9788
9789 #--------------------------------------------------------------------
9790 # For Unix/Tk builds, make sure that the X libraries/headers are found.
9791 # This must be called after TEA_CONFIG_CFLAGS as it adjusts LIBS.
9792 #--------------------------------------------------------------------
9793
9794
9795
9796 if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then
9797
9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9799 printf %s "checking for X... " >&6; }
9800
9801
9802 # Check whether --with-x was given.
9803 if test ${with_x+y}
9804 then :
9805 withval=$with_x;
9806 fi
9807
9808 # $have_x is 'yes', 'no', 'disabled', or empty when we do not yet know.
9809 if test "x$with_x" = xno; then
9810 # The user explicitly disabled X.
9811 have_x=disabled
9812 else
9813 case $x_includes,$x_libraries in #(
9814 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
9815 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
9816 then :
9817 printf %s "(cached) " >&6
9818 else case e in #(
9819 e) # One or both of the vars are not set, and there is no cached value.
9820 ac_x_includes=no
9821 ac_x_libraries=no
9822 # Do we need to do anything special at all?
9823 ac_save_LIBS=$LIBS
9824 LIBS="-lX11 $LIBS"
9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h. */
9827 #include <X11/Xlib.h>
9828 int
9829 main (void)
9830 {
9831 XrmInitialize ()
9832 ;
9833 return 0;
9834 }
9835 _ACEOF
9836 if ac_fn_c_try_link "$LINENO"
9837 then :
9838 # We can compile and link X programs with no special options.
9839 ac_x_includes=
9840 ac_x_libraries=
9841 fi
9842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9843 conftest$ac_exeext conftest.$ac_ext
9844 LIBS="$ac_save_LIBS"
9845 # If that didn't work, only try xmkmf and file system searches
9846 # for native compilation.
9847 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
9848 then :
9849 rm -f -r conftest.dir
9850 if mkdir conftest.dir; then
9851 cd conftest.dir
9852 cat >Imakefile <<'_ACEOF'
9853 incroot:
9854 @echo incroot='${INCROOT}'
9855 usrlibdir:
9856 @echo usrlibdir='${USRLIBDIR}'
9857 libdir:
9858 @echo libdir='${LIBDIR}'
9859 _ACEOF
9860 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9861 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9862 for ac_var in incroot usrlibdir libdir; do
9863 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9864 done
9865 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9866 for ac_extension in a so sl dylib la dll; do
9867 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9868 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9869 ac_im_usrlibdir=$ac_im_libdir; break
9870 fi
9871 done
9872 # Screen out bogus values from the imake configuration. They are
9873 # bogus both because they are the default anyway, and because
9874 # using them would break gcc on systems where it needs fixed includes.
9875 case $ac_im_incroot in
9876 /usr/include) ac_x_includes= ;;
9877 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9878 esac
9879 case $ac_im_usrlibdir in
9880 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9881 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9882 esac
9883 fi
9884 cd ..
9885 rm -f -r conftest.dir
9886 fi
9887
9888 # Standard set of common directories for X headers.
9889 # Check X11 before X11Rn because it is often a symlink to the current release.
9890 ac_x_header_dirs='
9891 /usr/X11/include
9892 /usr/X11R7/include
9893 /usr/X11R6/include
9894 /usr/X11R5/include
9895 /usr/X11R4/include
9896
9897 /usr/include/X11
9898 /usr/include/X11R7
9899 /usr/include/X11R6
9900 /usr/include/X11R5
9901 /usr/include/X11R4
9902
9903 /usr/local/X11/include
9904 /usr/local/X11R7/include
9905 /usr/local/X11R6/include
9906 /usr/local/X11R5/include
9907 /usr/local/X11R4/include
9908
9909 /usr/local/include/X11
9910 /usr/local/include/X11R7
9911 /usr/local/include/X11R6
9912 /usr/local/include/X11R5
9913 /usr/local/include/X11R4
9914
9915 /opt/X11/include
9916
9917 /usr/X386/include
9918 /usr/x386/include
9919 /usr/XFree86/include/X11
9920
9921 /usr/include
9922 /usr/local/include
9923 /usr/unsupported/include
9924 /usr/athena/include
9925 /usr/local/x11r5/include
9926 /usr/lpp/Xamples/include
9927
9928 /usr/openwin/include
9929 /usr/openwin/share/include'
9930
9931 if test "$ac_x_includes" = no; then
9932 # Guess where to find include files, by looking for Xlib.h.
9933 # First, try using that file with no special directory specified.
9934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9936 #include <X11/Xlib.h>
9937 _ACEOF
9938 if ac_fn_c_try_cpp "$LINENO"
9939 then :
9940 # We can compile using X headers with no special include directory.
9941 ac_x_includes=
9942 else case e in #(
9943 e) for ac_dir in $ac_x_header_dirs; do
9944 if test -r "$ac_dir/X11/Xlib.h"; then
9945 ac_x_includes=$ac_dir
9946 break
9947 fi
9948 done ;;
9949 esac
9950 fi
9951 rm -f conftest.err conftest.i conftest.$ac_ext
9952 fi # $ac_x_includes = no
9953
9954 if test "$ac_x_libraries" = no; then
9955 # Check for the libraries.
9956 # See if we find them without any special options.
9957 # Don't add to $LIBS permanently.
9958 ac_save_LIBS=$LIBS
9959 LIBS="-lX11 $LIBS"
9960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961 /* end confdefs.h. */
9962 #include <X11/Xlib.h>
9963 int
9964 main (void)
9965 {
9966 XrmInitialize ()
9967 ;
9968 return 0;
9969 }
9970 _ACEOF
9971 if ac_fn_c_try_link "$LINENO"
9972 then :
9973 LIBS=$ac_save_LIBS
9974 # We can link X programs with no special library path.
9975 ac_x_libraries=
9976 else case e in #(
9977 e) LIBS=$ac_save_LIBS
9978 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9979 do
9980 # Don't even attempt the hair of trying to link an X program!
9981 for ac_extension in a so sl dylib la dll; do
9982 if test -r "$ac_dir/libX11.$ac_extension"; then
9983 ac_x_libraries=$ac_dir
9984 break 2
9985 fi
9986 done
9987 done ;;
9988 esac
9989 fi
9990 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9991 conftest$ac_exeext conftest.$ac_ext
9992 fi # $ac_x_libraries = no
9993
9994 fi
9995 # Record the results.
9996 case $ac_x_includes,$ac_x_libraries in #(
9997 no,* | *,no | *\'*) :
9998 # Didn't find X, or a directory has "'" in its name.
9999 ac_cv_have_x="have_x=no" ;; #(
10000 *) :
10001 # Record where we found X for the cache.
10002 ac_cv_have_x="have_x=yes\
10003 ac_x_includes='$ac_x_includes'\
10004 ac_x_libraries='$ac_x_libraries'" ;;
10005 esac ;;
10006 esac
10007 fi
10008 ;; #(
10009 *) have_x=yes;;
10010 esac
10011 eval "$ac_cv_have_x"
10012 fi # $with_x != no
10013
10014 if test "$have_x" != yes; then
10015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10016 printf "%s\n" "$have_x" >&6; }
10017 no_x=yes
10018 else
10019 # If each of the values was on the command line, it overrides each guess.
10020 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10021 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10022 # Update the cache value to reflect the command line values.
10023 ac_cv_have_x="have_x=yes\
10024 ac_x_includes='$x_includes'\
10025 ac_x_libraries='$x_libraries'"
10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10027 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
10028 fi
10029
10030 not_really_there=""
10031 if test "$no_x" = ""; then
10032 if test "$x_includes" = ""; then
10033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034 /* end confdefs.h. */
10035 #include <X11/Xlib.h>
10036 _ACEOF
10037 if ac_fn_c_try_cpp "$LINENO"
10038 then :
10039
10040 else case e in #(
10041 e) not_really_there="yes" ;;
10042 esac
10043 fi
10044 rm -f conftest.err conftest.i conftest.$ac_ext
10045 else
10046 if test ! -r $x_includes/X11/Xlib.h; then
10047 not_really_there="yes"
10048 fi
10049 fi
10050 fi
10051 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
10052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5
10053 printf %s "checking for X11 header files... " >&6; }
10054 found_xincludes="no"
10055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10056 /* end confdefs.h. */
10057 #include <X11/Xlib.h>
10058 _ACEOF
10059 if ac_fn_c_try_cpp "$LINENO"
10060 then :
10061 found_xincludes="yes"
10062 else case e in #(
10063 e) found_xincludes="no" ;;
10064 esac
10065 fi
10066 rm -f conftest.err conftest.i conftest.$ac_ext
10067 if test "$found_xincludes" = "no"; then
10068 dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include"
10069 for i in $dirs ; do
10070 if test -r $i/X11/Xlib.h; then
10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $i" >&5
10072 printf "%s\n" "$i" >&6; }
10073 XINCLUDES=" -I$i"
10074 found_xincludes="yes"
10075 break
10076 fi
10077 done
10078 fi
10079 else
10080 if test "$x_includes" != ""; then
10081 XINCLUDES="-I$x_includes"
10082 found_xincludes="yes"
10083 fi
10084 fi
10085 if test "$found_xincludes" = "no"; then
10086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: couldn't find any!" >&5
10087 printf "%s\n" "couldn't find any!" >&6; }
10088 fi
10089
10090 if test "$no_x" = yes; then
10091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 libraries" >&5
10092 printf %s "checking for X11 libraries... " >&6; }
10093 XLIBSW=nope
10094 dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/X11R6/lib /usr/X11R5/lib /usr/lib/X11R5 /usr/lib/X11R4 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib"
10095 for i in $dirs ; do
10096 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then
10097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $i" >&5
10098 printf "%s\n" "$i" >&6; }
10099 XLIBSW="-L$i -lX11"
10100 x_libraries="$i"
10101 break
10102 fi
10103 done
10104 else
10105 if test "$x_libraries" = ""; then
10106 XLIBSW=-lX11
10107 else
10108 XLIBSW="-L$x_libraries -lX11"
10109 fi
10110 fi
10111 if test "$XLIBSW" = nope ; then
10112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCreateWindow in -lXwindow" >&5
10113 printf %s "checking for XCreateWindow in -lXwindow... " >&6; }
10114 if test ${ac_cv_lib_Xwindow_XCreateWindow+y}
10115 then :
10116 printf %s "(cached) " >&6
10117 else case e in #(
10118 e) ac_check_lib_save_LIBS=$LIBS
10119 LIBS="-lXwindow $LIBS"
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10122
10123 /* Override any GCC internal prototype to avoid an error.
10124 Use char because int might match the return type of a GCC
10125 builtin and then its argument prototype would still apply.
10126 The 'extern "C"' is for builds by C++ compilers;
10127 although this is not generally supported in C code supporting it here
10128 has little cost and some practical benefit (sr 110532). */
10129 #ifdef __cplusplus
10130 extern "C"
10131 #endif
10132 char XCreateWindow (void);
10133 int
10134 main (void)
10135 {
10136 return XCreateWindow ();
10137 ;
10138 return 0;
10139 }
10140 _ACEOF
10141 if ac_fn_c_try_link "$LINENO"
10142 then :
10143 ac_cv_lib_Xwindow_XCreateWindow=yes
10144 else case e in #(
10145 e) ac_cv_lib_Xwindow_XCreateWindow=no ;;
10146 esac
10147 fi
10148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10149 conftest$ac_exeext conftest.$ac_ext
10150 LIBS=$ac_check_lib_save_LIBS ;;
10151 esac
10152 fi
10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5
10154 printf "%s\n" "$ac_cv_lib_Xwindow_XCreateWindow" >&6; }
10155 if test "x$ac_cv_lib_Xwindow_XCreateWindow" = xyes
10156 then :
10157 XLIBSW=-lXwindow
10158 fi
10159
10160 fi
10161 if test "$XLIBSW" = nope ; then
10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find any! Using -lX11." >&5
10163 printf "%s\n" "could not find any! Using -lX11." >&6; }
10164 XLIBSW=-lX11
10165 fi
10166 # TEA specific:
10167 if test x"${XLIBSW}" != x ; then
10168 PKG_LIBS="${PKG_LIBS} ${XLIBSW}"
10169 fi
10170
10171 fi
10172
10173
10174 #--------------------------------------------------------------------
10175 # Everyone should be linking against the Tcl stub library. If you
10176 # can't for some reason, remove this definition. If you aren't using
10177 # stubs, you also need to modify the SHLIB_LD_LIBS setting below to
10178 # link against the non-stubbed Tcl library.
10179 #--------------------------------------------------------------------
10180
10181 printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h
10182
10183 printf "%s\n" "#define USE_TK_STUBS 1" >>confdefs.h
10184
10185
10186 #--------------------------------------------------------------------
10187 # This macro generates a line to use when building a library. It
10188 # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
10189 # and TEA_LOAD_TCLCONFIG macros above.
10190 #--------------------------------------------------------------------
10191
10192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
10193 printf %s "checking for egrep -e... " >&6; }
10194 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
10195 then :
10196 printf %s "(cached) " >&6
10197 else case e in #(
10198 e) if test -z "$EGREP_TRADITIONAL"; then
10199 ac_path_EGREP_TRADITIONAL_found=false
10200 # Loop through the user's path and test for each of PROGNAME-LIST
10201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10203 do
10204 IFS=$as_save_IFS
10205 case $as_dir in #(((
10206 '') as_dir=./ ;;
10207 */) ;;
10208 *) as_dir=$as_dir/ ;;
10209 esac
10210 for ac_prog in grep ggrep
10211 do
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
10214 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
10215 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
10216 # Check for GNU $ac_path_EGREP_TRADITIONAL
10217 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
10218 *GNU*)
10219 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
10220 #(
10221 *)
10222 ac_count=0
10223 printf %s 0123456789 >"conftest.in"
10224 while :
10225 do
10226 cat "conftest.in" "conftest.in" >"conftest.tmp"
10227 mv "conftest.tmp" "conftest.in"
10228 cp "conftest.in" "conftest.nl"
10229 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
10230 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10232 as_fn_arith $ac_count + 1 && ac_count=$as_val
10233 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
10234 # Best one so far, save it but keep looking for a better one
10235 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
10236 ac_path_EGREP_TRADITIONAL_max=$ac_count
10237 fi
10238 # 10*(2^10) chars as input seems more than enough
10239 test $ac_count -gt 10 && break
10240 done
10241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10242 esac
10243
10244 $ac_path_EGREP_TRADITIONAL_found && break 3
10245 done
10246 done
10247 done
10248 IFS=$as_save_IFS
10249 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
10250 :
10251 fi
10252 else
10253 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
10254 fi
10255
10256 if test "$ac_cv_path_EGREP_TRADITIONAL"
10257 then :
10258 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
10259 else case e in #(
10260 e) if test -z "$EGREP_TRADITIONAL"; then
10261 ac_path_EGREP_TRADITIONAL_found=false
10262 # Loop through the user's path and test for each of PROGNAME-LIST
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10265 do
10266 IFS=$as_save_IFS
10267 case $as_dir in #(((
10268 '') as_dir=./ ;;
10269 */) ;;
10270 *) as_dir=$as_dir/ ;;
10271 esac
10272 for ac_prog in egrep
10273 do
10274 for ac_exec_ext in '' $ac_executable_extensions; do
10275 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
10276 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
10277 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
10278 # Check for GNU $ac_path_EGREP_TRADITIONAL
10279 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
10280 *GNU*)
10281 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
10282 #(
10283 *)
10284 ac_count=0
10285 printf %s 0123456789 >"conftest.in"
10286 while :
10287 do
10288 cat "conftest.in" "conftest.in" >"conftest.tmp"
10289 mv "conftest.tmp" "conftest.in"
10290 cp "conftest.in" "conftest.nl"
10291 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
10292 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10294 as_fn_arith $ac_count + 1 && ac_count=$as_val
10295 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
10296 # Best one so far, save it but keep looking for a better one
10297 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
10298 ac_path_EGREP_TRADITIONAL_max=$ac_count
10299 fi
10300 # 10*(2^10) chars as input seems more than enough
10301 test $ac_count -gt 10 && break
10302 done
10303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10304 esac
10305
10306 $ac_path_EGREP_TRADITIONAL_found && break 3
10307 done
10308 done
10309 done
10310 IFS=$as_save_IFS
10311 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
10312 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10313 fi
10314 else
10315 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
10316 fi
10317 ;;
10318 esac
10319 fi ;;
10320 esac
10321 fi
10322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
10323 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
10324 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
10325
10326
10327 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
10328 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
10329 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10332
10333 #if defined(_MSC_VER) && _MSC_VER >= 1400
10334 print("manifest needed")
10335 #endif
10336
10337 _ACEOF
10338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10339 $EGREP_TRADITIONAL "manifest needed" >/dev/null 2>&1
10340 then :
10341
10342 # Could do a CHECK_PROG for mt, but should always be with MSVC8+
10343 VC_MANIFEST_EMBED_DLL="if test -f \[email protected] ; then mt.exe -nologo -manifest \[email protected] -outputresource:\$@\;2 ; fi"
10344 VC_MANIFEST_EMBED_EXE="if test -f \[email protected] ; then mt.exe -nologo -manifest \[email protected] -outputresource:\$@\;1 ; fi"
10345 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
10346
10347 CLEANFILES="$CLEANFILES *.manifest"
10348
10349
10350 fi
10351 rm -rf conftest*
10352
10353 MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)"
10354 else
10355 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
10356 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
10357 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
10358 fi
10359
10360 if test "${SHARED_BUILD}" = "1" ; then
10361 MAKE_LIB="${MAKE_SHARED_LIB} "
10362 else
10363 MAKE_LIB="${MAKE_STATIC_LIB} "
10364 fi
10365
10366 #--------------------------------------------------------------------
10367 # Shared libraries and static libraries have different names.
10368 # Use the double eval to make sure any variables in the suffix is
10369 # substituted. (@@@ Might not be necessary anymore)
10370 #--------------------------------------------------------------------
10371
10372 PACKAGE_LIB_PREFIX8="${PACKAGE_LIB_PREFIX}"
10373 PACKAGE_LIB_PREFIX9="${PACKAGE_LIB_PREFIX}tcl9"
10374 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
10375 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX9}"
10376 else
10377 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX8}"
10378
10379 printf "%s\n" "#define TCL_MAJOR_VERSION 8" >>confdefs.h
10380
10381 fi
10382 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tk8}" != x; then
10383
10384 printf "%s\n" "#define TK_MAJOR_VERSION 8" >>confdefs.h
10385
10386 fi
10387 if test "${TEA_PLATFORM}" = "windows" ; then
10388 if test "${SHARED_BUILD}" = "1" ; then
10389 # We force the unresolved linking of symbols that are really in
10390 # the private libraries of Tcl and Tk.
10391 if test x"${TK_BIN_DIR}" != x ; then
10392 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
10393 fi
10394 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
10395 if test "$GCC" = "yes"; then
10396 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc"
10397 fi
10398 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10399 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10400 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10401 else
10402 if test "$GCC" = "yes"; then
10403 PACKAGE_LIB_PREFIX=lib${PACKAGE_LIB_PREFIX}
10404 fi
10405 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10406 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10407 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10408 fi
10409 # Some packages build their own stubs libraries
10410 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
10411 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub.a"
10412 else
10413 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
10414 fi
10415 if test "$GCC" = "yes"; then
10416 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
10417 fi
10418 # These aren't needed on Windows (either MSVC or gcc)
10419 RANLIB=:
10420 RANLIB_STUB=:
10421 else
10422 RANLIB_STUB="${RANLIB}"
10423 if test "${SHARED_BUILD}" = "1" ; then
10424 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
10425 if test x"${TK_BIN_DIR}" != x ; then
10426 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
10427 fi
10428 eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10429 eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10430 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10431 RANLIB=:
10432 else
10433 eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10434 eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10435 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10436 fi
10437 # Some packages build their own stubs libraries
10438 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
10439 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub.a"
10440 else
10441 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
10442 fi
10443 fi
10444
10445 # These are escaped so that only CFLAGS is picked up at configure time.
10446 # The other values will be substituted at make time.
10447 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
10448 if test "${SHARED_BUILD}" = "1" ; then
10449 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
10450 fi
10451
10452
10453
10454
10455
10456 # Substitute STUB_LIB_FILE in case package creates a stub library too.
10457
10458
10459
10460
10461
10462
10463 #--------------------------------------------------------------------
10464 # __CHANGE__
10465 # Add platform libs to LIBS or SHLIB_LD_LIBS as necessary.
10466 #--------------------------------------------------------------------
10467
10468 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
10469
10470 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\""
10471 for i in $vars; do
10472 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
10473 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
10474 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
10475 fi
10476 PKG_LIBS="$PKG_LIBS $i"
10477 done
10478
10479
10480
10481 vars="\"`${CYGPATH} ${jpegtcl_STUB_LIB_PATH}`\""
10482 for i in $vars; do
10483 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
10484 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
10485 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
10486 fi
10487 PKG_LIBS="$PKG_LIBS $i"
10488 done
10489
10490
10491 else
10492
10493 vars="${tkimg_STUB_LIB_SPEC}"
10494 for i in $vars; do
10495 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
10496 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
10497 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
10498 fi
10499 PKG_LIBS="$PKG_LIBS $i"
10500 done
10501
10502
10503
10504 vars="${jpegtcl_STUB_LIB_SPEC}"
10505 for i in $vars; do
10506 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
10507 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
10508 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
10509 fi
10510 PKG_LIBS="$PKG_LIBS $i"
10511 done
10512
10513
10514 fi
10515
10516 #--------------------------------------------------------------------
10517 # Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl
10518 # file during the install process. Don't run the TCLSH_PROG through
10519 # ${CYGPATH} because it's being used directly by make.
10520 # Require that we use a tclsh shell version 8.2 or later since earlier
10521 # versions have bugs in the pkg_mkIndex routine.
10522 # Add WISH as well if this is a Tk extension.
10523 #--------------------------------------------------------------------
10524
10525
10526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
10527 printf %s "checking for tclsh... " >&6; }
10528 if test -f "${TCL_BIN_DIR}/Makefile" ; then
10529 # tclConfig.sh is in Tcl build directory
10530 if test "${TEA_PLATFORM}" = "windows"; then
10531 if test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}" ; then
10532 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
10533 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}" ; then
10534 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}"
10535 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}" ; then
10536 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}"
10537 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}" ; then
10538 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}"
10539 fi
10540 else
10541 TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
10542 fi
10543 else
10544 # tclConfig.sh is in install location
10545 if test "${TEA_PLATFORM}" = "windows"; then
10546 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
10547 else
10548 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
10549 fi
10550 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
10551 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \
10552 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`"
10553 for i in $list ; do
10554 if test -f "$i/${TCLSH_PROG}" ; then
10555 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
10556 break
10557 fi
10558 done
10559 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
10560 fi
10561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
10562 printf "%s\n" "${TCLSH_PROG}" >&6; }
10563
10564
10565
10566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wish" >&5
10567 printf %s "checking for wish... " >&6; }
10568 if test -f "${TK_BIN_DIR}/Makefile" ; then
10569 # tkConfig.sh is in Tk build directory
10570 if test "${TEA_PLATFORM}" = "windows"; then
10571 if test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${EXEEXT}" ; then
10572 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${EXEEXT}"
10573 elif test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}s${EXEEXT}" ; then
10574 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}$s{EXEEXT}"
10575 elif test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}t${EXEEXT}" ; then
10576 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}t${EXEEXT}"
10577 elif test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}st${EXEEXT}" ; then
10578 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}st${EXEEXT}"
10579 fi
10580 else
10581 WISH_PROG="${TK_BIN_DIR}/wish"
10582 fi
10583 else
10584 # tkConfig.sh is in install location
10585 if test "${TEA_PLATFORM}" = "windows"; then
10586 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${EXEEXT}"
10587 else
10588 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}"
10589 fi
10590 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \
10591 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \
10592 `ls -d ${TK_PREFIX}/bin 2>/dev/null`"
10593 for i in $list ; do
10594 if test -f "$i/${WISH_PROG}" ; then
10595 REAL_TK_BIN_DIR="`cd "$i"; pwd`/"
10596 break
10597 fi
10598 done
10599 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}"
10600 fi
10601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${WISH_PROG}" >&5
10602 printf "%s\n" "${WISH_PROG}" >&6; }
10603
10604
10605
10606 #--------------------------------------------------------------------
10607 # Finally, substitute all of the various values into the Makefile.
10608 # You may alternatively have a special pkgIndex.tcl.in or other files
10609 # which require substituting th AC variables in. Include these here.
10610 #--------------------------------------------------------------------
10611
10612 ac_config_files="$ac_config_files Makefile"
10613
10614 cat >confcache <<\_ACEOF
10615 # This file is a shell script that caches the results of configure
10616 # tests run on this system so they can be shared between configure
10617 # scripts and configure runs, see configure's option --config-cache.
10618 # It is not useful on other systems. If it contains results you don't
10619 # want to keep, you may remove or edit it.
10620 #
10621 # config.status only pays attention to the cache file if you give it
10622 # the --recheck option to rerun configure.
10623 #
10624 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
10625 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
10626 # following values.
10627
10628 _ACEOF
10629
10630 # The following way of writing the cache mishandles newlines in values,
10631 # but we know of no workaround that is simple, portable, and efficient.
10632 # So, we kill variables containing newlines.
10633 # Ultrix sh set writes to stderr and can't be redirected directly,
10634 # and sets the high bit in the cache file unless we assign to the vars.
10635 (
10636 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10637 eval ac_val=\$$ac_var
10638 case $ac_val in #(
10639 *${as_nl}*)
10640 case $ac_var in #(
10641 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10642 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10643 esac
10644 case $ac_var in #(
10645 _ | IFS | as_nl) ;; #(
10646 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10647 *) { eval $ac_var=; unset $ac_var;} ;;
10648 esac ;;
10649 esac
10650 done
10651
10652 (set) 2>&1 |
10653 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10654 *${as_nl}ac_space=\ *)
10655 # 'set' does not quote correctly, so add quotes: double-quote
10656 # substitution turns \\\\ into \\, and sed turns \\ into \.
10657 sed -n \
10658 "s/'/'\\\\''/g;
10659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10660 ;; #(
10661 *)
10662 # 'set' quotes correctly as required by POSIX, so do not add quotes.
10663 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10664 ;;
10665 esac |
10666 sort
10667 ) |
10668 sed '
10669 /^ac_cv_env_/b end
10670 t clear
10671 :clear
10672 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
10673 t end
10674 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10675 :end' >>confcache
10676 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10677 if test -w "$cache_file"; then
10678 if test "x$cache_file" != "x/dev/null"; then
10679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10680 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
10681 if test ! -f "$cache_file" || test -h "$cache_file"; then
10682 cat confcache >"$cache_file"
10683 else
10684 case $cache_file in #(
10685 */* | ?:*)
10686 mv -f confcache "$cache_file"$$ &&
10687 mv -f "$cache_file"$$ "$cache_file" ;; #(
10688 *)
10689 mv -f confcache "$cache_file" ;;
10690 esac
10691 fi
10692 fi
10693 else
10694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10695 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
10696 fi
10697 fi
10698 rm -f confcache
10699
10700 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10701 # Let make expand exec_prefix.
10702 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10703
10704 # Transform confdefs.h into DEFS.
10705 # Protect against shell expansion while executing Makefile rules.
10706 # Protect against Makefile macro expansion.
10707 #
10708 # If the first sed substitution is executed (which looks for macros that
10709 # take arguments), then branch to the quote section. Otherwise,
10710 # look for a macro that doesn't take arguments.
10711 ac_script='
10712 :mline
10713 /\\$/{
10714 N
10715 s,\\\n,,
10716 b mline
10717 }
10718 t clear
10719 :clear
10720 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10721 t quote
10722 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10723 t quote
10724 b any
10725 :quote
10726 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10727 s/\$/$$/g
10728 H
10729 :any
10730 ${
10731 g
10732 s/^\n//
10733 s/\n/ /g
10734 p
10735 }
10736 '
10737 DEFS=`sed -n "$ac_script" confdefs.h`
10738
10739
10740 ac_libobjs=
10741 ac_ltlibobjs=
10742 U=
10743 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10744 # 1. Remove the extension, and $U if already installed.
10745 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10746 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
10747 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10748 # will be set to the directory where LIBOBJS objects are built.
10749 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10750 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10751 done
10752 LIBOBJS=$ac_libobjs
10753
10754 LTLIBOBJS=$ac_ltlibobjs
10755
10756
10757 CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
10758
10759 : "${CONFIG_STATUS=./config.status}"
10760 ac_write_fail=0
10761 ac_clean_files_save=$ac_clean_files
10762 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10764 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
10765 as_write_fail=0
10766 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10767 #! $SHELL
10768 # Generated by $as_me.
10769 # Run this file to recreate the current configuration.
10770 # Compiler output produced by configure, useful for debugging
10771 # configure, is in config.log if it exists.
10772
10773 debug=false
10774 ac_cs_recheck=false
10775 ac_cs_silent=false
10776
10777 SHELL=\${CONFIG_SHELL-$SHELL}
10778 export SHELL
10779 _ASEOF
10780 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10781 ## -------------------- ##
10782 ## M4sh Initialization. ##
10783 ## -------------------- ##
10784
10785 # Be more Bourne compatible
10786 DUALCASE=1; export DUALCASE # for MKS sh
10787 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
10788 then :
10789 emulate sh
10790 NULLCMD=:
10791 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10792 # is contrary to our usage. Disable this feature.
10793 alias -g '${1+"$@"}'='"$@"'
10794 setopt NO_GLOB_SUBST
10795 else case e in #(
10796 e) case `(set -o) 2>/dev/null` in #(
10797 *posix*) :
10798 set -o posix ;; #(
10799 *) :
10800 ;;
10801 esac ;;
10802 esac
10803 fi
10804
10805
10806
10807 # Reset variables that may have inherited troublesome values from
10808 # the environment.
10809
10810 # IFS needs to be set, to space, tab, and newline, in precisely that order.
10811 # (If _AS_PATH_WALK were called with IFS unset, it would have the
10812 # side effect of setting IFS to empty, thus disabling word splitting.)
10813 # Quoting is to prevent editors from complaining about space-tab.
10814 as_nl='
10815 '
10816 export as_nl
10817 IFS=" "" $as_nl"
10818
10819 PS1='$ '
10820 PS2='> '
10821 PS4='+ '
10822
10823 # Ensure predictable behavior from utilities with locale-dependent output.
10824 LC_ALL=C
10825 export LC_ALL
10826 LANGUAGE=C
10827 export LANGUAGE
10828
10829 # We cannot yet rely on "unset" to work, but we need these variables
10830 # to be unset--not just set to an empty or harmless value--now, to
10831 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
10832 # also avoids known problems related to "unset" and subshell syntax
10833 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
10834 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
10835 do eval test \${$as_var+y} \
10836 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10837 done
10838
10839 # Ensure that fds 0, 1, and 2 are open.
10840 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
10841 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
10842 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
10843
10844 # The user is always right.
10845 if ${PATH_SEPARATOR+false} :; then
10846 PATH_SEPARATOR=:
10847 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10848 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10849 PATH_SEPARATOR=';'
10850 }
10851 fi
10852
10853
10854 # Find who we are. Look in the path if we contain no directory separator.
10855 as_myself=
10856 case $0 in #((
10857 *[\\/]* ) as_myself=$0 ;;
10858 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859 for as_dir in $PATH
10860 do
10861 IFS=$as_save_IFS
10862 case $as_dir in #(((
10863 '') as_dir=./ ;;
10864 */) ;;
10865 *) as_dir=$as_dir/ ;;
10866 esac
10867 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10868 done
10869 IFS=$as_save_IFS
10870
10871 ;;
10872 esac
10873 # We did not find ourselves, most probably we were run as 'sh COMMAND'
10874 # in which case we are not to be found in the path.
10875 if test "x$as_myself" = x; then
10876 as_myself=$0
10877 fi
10878 if test ! -f "$as_myself"; then
10879 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10880 exit 1
10881 fi
10882
10883
10884
10885 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10886 # ----------------------------------------
10887 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10888 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10889 # script with STATUS, using 1 if that was 0.
10890 as_fn_error ()
10891 {
10892 as_status=$1; test $as_status -eq 0 && as_status=1
10893 if test "$4"; then
10894 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10896 fi
10897 printf "%s\n" "$as_me: error: $2" >&2
10898 as_fn_exit $as_status
10899 } # as_fn_error
10900
10901
10902 # as_fn_set_status STATUS
10903 # -----------------------
10904 # Set $? to STATUS, without forking.
10905 as_fn_set_status ()
10906 {
10907 return $1
10908 } # as_fn_set_status
10909
10910 # as_fn_exit STATUS
10911 # -----------------
10912 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10913 as_fn_exit ()
10914 {
10915 set +e
10916 as_fn_set_status $1
10917 exit $1
10918 } # as_fn_exit
10919
10920 # as_fn_unset VAR
10921 # ---------------
10922 # Portably unset VAR.
10923 as_fn_unset ()
10924 {
10925 { eval $1=; unset $1;}
10926 }
10927 as_unset=as_fn_unset
10928
10929 # as_fn_append VAR VALUE
10930 # ----------------------
10931 # Append the text in VALUE to the end of the definition contained in VAR. Take
10932 # advantage of any shell optimizations that allow amortized linear growth over
10933 # repeated appends, instead of the typical quadratic growth present in naive
10934 # implementations.
10935 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
10936 then :
10937 eval 'as_fn_append ()
10938 {
10939 eval $1+=\$2
10940 }'
10941 else case e in #(
10942 e) as_fn_append ()
10943 {
10944 eval $1=\$$1\$2
10945 } ;;
10946 esac
10947 fi # as_fn_append
10948
10949 # as_fn_arith ARG...
10950 # ------------------
10951 # Perform arithmetic evaluation on the ARGs, and store the result in the
10952 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10953 # must be portable across $(()) and expr.
10954 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
10955 then :
10956 eval 'as_fn_arith ()
10957 {
10958 as_val=$(( $* ))
10959 }'
10960 else case e in #(
10961 e) as_fn_arith ()
10962 {
10963 as_val=`expr "$@" || test $? -eq 1`
10964 } ;;
10965 esac
10966 fi # as_fn_arith
10967
10968
10969 if expr a : '\(a\)' >/dev/null 2>&1 &&
10970 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10971 as_expr=expr
10972 else
10973 as_expr=false
10974 fi
10975
10976 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10977 as_basename=basename
10978 else
10979 as_basename=false
10980 fi
10981
10982 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10983 as_dirname=dirname
10984 else
10985 as_dirname=false
10986 fi
10987
10988 as_me=`$as_basename -- "$0" ||
10989 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10990 X"$0" : 'X\(//\)$' \| \
10991 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10992 printf "%s\n" X/"$0" |
10993 sed '/^.*\/\([^/][^/]*\)\/*$/{
10994 s//\1/
10995 q
10996 }
10997 /^X\/\(\/\/\)$/{
10998 s//\1/
10999 q
11000 }
11001 /^X\/\(\/\).*/{
11002 s//\1/
11003 q
11004 }
11005 s/.*/./; q'`
11006
11007 # Avoid depending upon Character Ranges.
11008 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11009 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11010 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11011 as_cr_digits='0123456789'
11012 as_cr_alnum=$as_cr_Letters$as_cr_digits
11013
11014
11015 # Determine whether it's possible to make 'echo' print without a newline.
11016 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11017 # for compatibility with existing Makefiles.
11018 ECHO_C= ECHO_N= ECHO_T=
11019 case `echo -n x` in #(((((
11020 -n*)
11021 case `echo 'xy\c'` in
11022 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11023 xy) ECHO_C='\c';;
11024 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11025 ECHO_T=' ';;
11026 esac;;
11027 *)
11028 ECHO_N='-n';;
11029 esac
11030
11031 # For backward compatibility with old third-party macros, we provide
11032 # the shell variables $as_echo and $as_echo_n. New code should use
11033 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11034 as_echo='printf %s\n'
11035 as_echo_n='printf %s'
11036
11037 rm -f conf$$ conf$$.exe conf$$.file
11038 if test -d conf$$.dir; then
11039 rm -f conf$$.dir/conf$$.file
11040 else
11041 rm -f conf$$.dir
11042 mkdir conf$$.dir 2>/dev/null
11043 fi
11044 if (echo >conf$$.file) 2>/dev/null; then
11045 if ln -s conf$$.file conf$$ 2>/dev/null; then
11046 as_ln_s='ln -s'
11047 # ... but there are two gotchas:
11048 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
11049 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
11050 # In both cases, we have to default to 'cp -pR'.
11051 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11052 as_ln_s='cp -pR'
11053 elif ln conf$$.file conf$$ 2>/dev/null; then
11054 as_ln_s=ln
11055 else
11056 as_ln_s='cp -pR'
11057 fi
11058 else
11059 as_ln_s='cp -pR'
11060 fi
11061 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11062 rmdir conf$$.dir 2>/dev/null
11063
11064
11065 # as_fn_mkdir_p
11066 # -------------
11067 # Create "$as_dir" as a directory, including parents if necessary.
11068 as_fn_mkdir_p ()
11069 {
11070
11071 case $as_dir in #(
11072 -*) as_dir=./$as_dir;;
11073 esac
11074 test -d "$as_dir" || eval $as_mkdir_p || {
11075 as_dirs=
11076 while :; do
11077 case $as_dir in #(
11078 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11079 *) as_qdir=$as_dir;;
11080 esac
11081 as_dirs="'$as_qdir' $as_dirs"
11082 as_dir=`$as_dirname -- "$as_dir" ||
11083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11084 X"$as_dir" : 'X\(//\)[^/]' \| \
11085 X"$as_dir" : 'X\(//\)$' \| \
11086 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11087 printf "%s\n" X"$as_dir" |
11088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11089 s//\1/
11090 q
11091 }
11092 /^X\(\/\/\)[^/].*/{
11093 s//\1/
11094 q
11095 }
11096 /^X\(\/\/\)$/{
11097 s//\1/
11098 q
11099 }
11100 /^X\(\/\).*/{
11101 s//\1/
11102 q
11103 }
11104 s/.*/./; q'`
11105 test -d "$as_dir" && break
11106 done
11107 test -z "$as_dirs" || eval "mkdir $as_dirs"
11108 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11109
11110
11111 } # as_fn_mkdir_p
11112 if mkdir -p . 2>/dev/null; then
11113 as_mkdir_p='mkdir -p "$as_dir"'
11114 else
11115 test -d ./-p && rmdir ./-p
11116 as_mkdir_p=false
11117 fi
11118
11119
11120 # as_fn_executable_p FILE
11121 # -----------------------
11122 # Test if FILE is an executable regular file.
11123 as_fn_executable_p ()
11124 {
11125 test -f "$1" && test -x "$1"
11126 } # as_fn_executable_p
11127 as_test_x='test -x'
11128 as_executable_p=as_fn_executable_p
11129
11130 # Sed expression to map a string onto a valid CPP name.
11131 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11132 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
11133
11134 # Sed expression to map a string onto a valid variable name.
11135 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11136 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
11137
11138
11139 exec 6>&1
11140 ## ----------------------------------- ##
11141 ## Main body of $CONFIG_STATUS script. ##
11142 ## ----------------------------------- ##
11143 _ASEOF
11144 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11145
11146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11147 # Save the log message, to keep $0 and so on meaningful, and to
11148 # report actual input values of CONFIG_FILES etc. instead of their
11149 # values after options handling.
11150 ac_log="
11151 This file was extended by tkimgjpeg $as_me 2.1.1, which was
11152 generated by GNU Autoconf 2.72. Invocation command line was
11153
11154 CONFIG_FILES = $CONFIG_FILES
11155 CONFIG_HEADERS = $CONFIG_HEADERS
11156 CONFIG_LINKS = $CONFIG_LINKS
11157 CONFIG_COMMANDS = $CONFIG_COMMANDS
11158 $ $0 $@
11159
11160 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11161 "
11162
11163 _ACEOF
11164
11165 case $ac_config_files in *"
11166 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11167 esac
11168
11169
11170
11171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11172 # Files that config.status was made for.
11173 config_files="$ac_config_files"
11174
11175 _ACEOF
11176
11177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11178 ac_cs_usage="\
11179 '$as_me' instantiates files and other configuration actions
11180 from templates according to the current configuration. Unless the files
11181 and actions are specified as TAGs, all are instantiated by default.
11182
11183 Usage: $0 [OPTION]... [TAG]...
11184
11185 -h, --help print this help, then exit
11186 -V, --version print version number and configuration settings, then exit
11187 --config print configuration, then exit
11188 -q, --quiet, --silent
11189 do not print progress messages
11190 -d, --debug don't remove temporary files
11191 --recheck update $as_me by reconfiguring in the same conditions
11192 --file=FILE[:TEMPLATE]
11193 instantiate the configuration file FILE
11194
11195 Configuration files:
11196 $config_files
11197
11198 Report bugs to the package provider."
11199
11200 _ACEOF
11201 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11202 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11204 ac_cs_config='$ac_cs_config_escaped'
11205 ac_cs_version="\\
11206 tkimgjpeg config.status 2.1.1
11207 configured by $0, generated by GNU Autoconf 2.72,
11208 with options \\"\$ac_cs_config\\"
11209
11210 Copyright (C) 2023 Free Software Foundation, Inc.
11211 This config.status script is free software; the Free Software Foundation
11212 gives unlimited permission to copy, distribute and modify it."
11213
11214 ac_pwd='$ac_pwd'
11215 srcdir='$srcdir'
11216 test -n "\$AWK" || AWK=awk
11217 _ACEOF
11218
11219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11220 # The default lists apply if the user does not specify any file.
11221 ac_need_defaults=:
11222 while test $# != 0
11223 do
11224 case $1 in
11225 --*=?*)
11226 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11227 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11228 ac_shift=:
11229 ;;
11230 --*=)
11231 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11232 ac_optarg=
11233 ac_shift=:
11234 ;;
11235 *)
11236 ac_option=$1
11237 ac_optarg=$2
11238 ac_shift=shift
11239 ;;
11240 esac
11241
11242 case $ac_option in
11243 # Handling of the options.
11244 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11245 ac_cs_recheck=: ;;
11246 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11247 printf "%s\n" "$ac_cs_version"; exit ;;
11248 --config | --confi | --conf | --con | --co | --c )
11249 printf "%s\n" "$ac_cs_config"; exit ;;
11250 --debug | --debu | --deb | --de | --d | -d )
11251 debug=: ;;
11252 --file | --fil | --fi | --f )
11253 $ac_shift
11254 case $ac_optarg in
11255 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11256 '') as_fn_error $? "missing file argument" ;;
11257 esac
11258 as_fn_append CONFIG_FILES " '$ac_optarg'"
11259 ac_need_defaults=false;;
11260 --he | --h | --help | --hel | -h )
11261 printf "%s\n" "$ac_cs_usage"; exit ;;
11262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11263 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11264 ac_cs_silent=: ;;
11265
11266 # This is an error.
11267 -*) as_fn_error $? "unrecognized option: '$1'
11268 Try '$0 --help' for more information." ;;
11269
11270 *) as_fn_append ac_config_targets " $1"
11271 ac_need_defaults=false ;;
11272
11273 esac
11274 shift
11275 done
11276
11277 ac_configure_extra_args=
11278
11279 if $ac_cs_silent; then
11280 exec 6>/dev/null
11281 ac_configure_extra_args="$ac_configure_extra_args --silent"
11282 fi
11283
11284 _ACEOF
11285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11286 if \$ac_cs_recheck; then
11287 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11288 shift
11289 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11290 CONFIG_SHELL='$SHELL'
11291 export CONFIG_SHELL
11292 exec "\$@"
11293 fi
11294
11295 _ACEOF
11296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11297 exec 5>>config.log
11298 {
11299 echo
11300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11301 ## Running $as_me. ##
11302 _ASBOX
11303 printf "%s\n" "$ac_log"
11304 } >&5
11305
11306 _ACEOF
11307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11308 _ACEOF
11309
11310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11311
11312 # Handling of arguments.
11313 for ac_config_target in $ac_config_targets
11314 do
11315 case $ac_config_target in
11316 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11317
11318 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
11319 esac
11320 done
11321
11322
11323 # If the user did not use the arguments to specify the items to instantiate,
11324 # then the envvar interface is used. Set only those that are not.
11325 # We use the long form for the default assignment because of an extremely
11326 # bizarre bug on SunOS 4.1.3.
11327 if $ac_need_defaults; then
11328 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11329 fi
11330
11331 # Have a temporary directory for convenience. Make it in the build tree
11332 # simply because there is no reason against having it here, and in addition,
11333 # creating and moving files from /tmp can sometimes cause problems.
11334 # Hook for its removal unless debugging.
11335 # Note that there is a small window in which the directory will not be cleaned:
11336 # after its creation but before its name has been assigned to '$tmp'.
11337 $debug ||
11338 {
11339 tmp= ac_tmp=
11340 trap 'exit_status=$?
11341 : "${ac_tmp:=$tmp}"
11342 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11343 ' 0
11344 trap 'as_fn_exit 1' 1 2 13 15
11345 }
11346 # Create a (secure) tmp directory for tmp files.
11347
11348 {
11349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11350 test -d "$tmp"
11351 } ||
11352 {
11353 tmp=./conf$$-$RANDOM
11354 (umask 077 && mkdir "$tmp")
11355 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11356 ac_tmp=$tmp
11357
11358 # Set up the scripts for CONFIG_FILES section.
11359 # No need to generate them if there are no CONFIG_FILES.
11360 # This happens for instance with './config.status config.h'.
11361 if test -n "$CONFIG_FILES"; then
11362
11363
11364 ac_cr=`echo X | tr X '\015'`
11365 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11366 # But we know of no other shell where ac_cr would be empty at this
11367 # point, so we can use a bashism as a fallback.
11368 if test "x$ac_cr" = x; then
11369 eval ac_cr=\$\'\\r\'
11370 fi
11371 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11372 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11373 ac_cs_awk_cr='\\r'
11374 else
11375 ac_cs_awk_cr=$ac_cr
11376 fi
11377
11378 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11379 _ACEOF
11380
11381
11382 {
11383 echo "cat >conf$$subs.awk <<_ACEOF" &&
11384 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11385 echo "_ACEOF"
11386 } >conf$$subs.sh ||
11387 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11388 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11389 ac_delim='%!_!# '
11390 for ac_last_try in false false false false false :; do
11391 . ./conf$$subs.sh ||
11392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11393
11394 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11395 if test $ac_delim_n = $ac_delim_num; then
11396 break
11397 elif $ac_last_try; then
11398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11399 else
11400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11401 fi
11402 done
11403 rm -f conf$$subs.sh
11404
11405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11406 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11407 _ACEOF
11408 sed -n '
11409 h
11410 s/^/S["/; s/!.*/"]=/
11411 p
11412 g
11413 s/^[^!]*!//
11414 :repl
11415 t repl
11416 s/'"$ac_delim"'$//
11417 t delim
11418 :nl
11419 h
11420 s/\(.\{148\}\)..*/\1/
11421 t more1
11422 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11423 p
11424 n
11425 b repl
11426 :more1
11427 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11428 p
11429 g
11430 s/.\{148\}//
11431 t nl
11432 :delim
11433 h
11434 s/\(.\{148\}\)..*/\1/
11435 t more2
11436 s/["\\]/\\&/g; s/^/"/; s/$/"/
11437 p
11438 b
11439 :more2
11440 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11441 p
11442 g
11443 s/.\{148\}//
11444 t delim
11445 ' <conf$$subs.awk | sed '
11446 /^[^""]/{
11447 N
11448 s/\n//
11449 }
11450 ' >>$CONFIG_STATUS || ac_write_fail=1
11451 rm -f conf$$subs.awk
11452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11453 _ACAWK
11454 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11455 for (key in S) S_is_set[key] = 1
11456 FS = ""
11457
11458 }
11459 {
11460 line = $ 0
11461 nfields = split(line, field, "@")
11462 substed = 0
11463 len = length(field[1])
11464 for (i = 2; i < nfields; i++) {
11465 key = field[i]
11466 keylen = length(key)
11467 if (S_is_set[key]) {
11468 value = S[key]
11469 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11470 len += length(value) + length(field[++i])
11471 substed = 1
11472 } else
11473 len += 1 + keylen
11474 }
11475
11476 print line
11477 }
11478
11479 _ACAWK
11480 _ACEOF
11481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11482 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11484 else
11485 cat
11486 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11487 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11488 _ACEOF
11489
11490 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11491 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11492 # trailing colons and then remove the whole line if VPATH becomes empty
11493 # (actually we leave an empty line to preserve line numbers).
11494 if test "x$srcdir" = x.; then
11495 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11496 h
11497 s///
11498 s/^/:/
11499 s/[ ]*$/:/
11500 s/:\$(srcdir):/:/g
11501 s/:\${srcdir}:/:/g
11502 s/:@srcdir@:/:/g
11503 s/^:*//
11504 s/:*$//
11505 x
11506 s/\(=[ ]*\).*/\1/
11507 G
11508 s/\n//
11509 s/^[^=]*=[ ]*$//
11510 }'
11511 fi
11512
11513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11514 fi # test -n "$CONFIG_FILES"
11515
11516
11517 eval set X " :F $CONFIG_FILES "
11518 shift
11519 for ac_tag
11520 do
11521 case $ac_tag in
11522 :[FHLC]) ac_mode=$ac_tag; continue;;
11523 esac
11524 case $ac_mode$ac_tag in
11525 :[FHL]*:*);;
11526 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
11527 :[FH]-) ac_tag=-:-;;
11528 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11529 esac
11530 ac_save_IFS=$IFS
11531 IFS=:
11532 set x $ac_tag
11533 IFS=$ac_save_IFS
11534 shift
11535 ac_file=$1
11536 shift
11537
11538 case $ac_mode in
11539 :L) ac_source=$1;;
11540 :[FH])
11541 ac_file_inputs=
11542 for ac_f
11543 do
11544 case $ac_f in
11545 -) ac_f="$ac_tmp/stdin";;
11546 *) # Look for the file first in the build tree, then in the source tree
11547 # (if the path is not absolute). The absolute path cannot be DOS-style,
11548 # because $ac_f cannot contain ':'.
11549 test -f "$ac_f" ||
11550 case $ac_f in
11551 [\\/$]*) false;;
11552 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11553 esac ||
11554 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
11555 esac
11556 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11557 as_fn_append ac_file_inputs " '$ac_f'"
11558 done
11559
11560 # Let's still pretend it is 'configure' which instantiates (i.e., don't
11561 # use $as_me), people would be surprised to read:
11562 # /* config.h. Generated by config.status. */
11563 configure_input='Generated from '`
11564 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11565 `' by configure.'
11566 if test x"$ac_file" != x-; then
11567 configure_input="$ac_file. $configure_input"
11568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11569 printf "%s\n" "$as_me: creating $ac_file" >&6;}
11570 fi
11571 # Neutralize special characters interpreted by sed in replacement strings.
11572 case $configure_input in #(
11573 *\&* | *\|* | *\\* )
11574 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
11575 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11576 *) ac_sed_conf_input=$configure_input;;
11577 esac
11578
11579 case $ac_tag in
11580 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11582 esac
11583 ;;
11584 esac
11585
11586 ac_dir=`$as_dirname -- "$ac_file" ||
11587 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11588 X"$ac_file" : 'X\(//\)[^/]' \| \
11589 X"$ac_file" : 'X\(//\)$' \| \
11590 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11591 printf "%s\n" X"$ac_file" |
11592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11593 s//\1/
11594 q
11595 }
11596 /^X\(\/\/\)[^/].*/{
11597 s//\1/
11598 q
11599 }
11600 /^X\(\/\/\)$/{
11601 s//\1/
11602 q
11603 }
11604 /^X\(\/\).*/{
11605 s//\1/
11606 q
11607 }
11608 s/.*/./; q'`
11609 as_dir="$ac_dir"; as_fn_mkdir_p
11610 ac_builddir=.
11611
11612 case "$ac_dir" in
11613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11614 *)
11615 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
11616 # A ".." for each directory in $ac_dir_suffix.
11617 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11618 case $ac_top_builddir_sub in
11619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11621 esac ;;
11622 esac
11623 ac_abs_top_builddir=$ac_pwd
11624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11625 # for backward compatibility:
11626 ac_top_builddir=$ac_top_build_prefix
11627
11628 case $srcdir in
11629 .) # We are building in place.
11630 ac_srcdir=.
11631 ac_top_srcdir=$ac_top_builddir_sub
11632 ac_abs_top_srcdir=$ac_pwd ;;
11633 [\\/]* | ?:[\\/]* ) # Absolute name.
11634 ac_srcdir=$srcdir$ac_dir_suffix;
11635 ac_top_srcdir=$srcdir
11636 ac_abs_top_srcdir=$srcdir ;;
11637 *) # Relative name.
11638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11639 ac_top_srcdir=$ac_top_build_prefix$srcdir
11640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11641 esac
11642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11643
11644
11645 case $ac_mode in
11646 :F)
11647 #
11648 # CONFIG_FILE
11649 #
11650
11651 _ACEOF
11652
11653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11654 # If the template does not know about datarootdir, expand it.
11655 # FIXME: This hack should be removed a few years after 2.60.
11656 ac_datarootdir_hack=; ac_datarootdir_seen=
11657 ac_sed_dataroot='
11658 /datarootdir/ {
11659 p
11660 q
11661 }
11662 /@datadir@/p
11663 /@docdir@/p
11664 /@infodir@/p
11665 /@localedir@/p
11666 /@mandir@/p'
11667 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11668 *datarootdir*) ac_datarootdir_seen=yes;;
11669 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11671 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11672 _ACEOF
11673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11674 ac_datarootdir_hack='
11675 s&@datadir@&$datadir&g
11676 s&@docdir@&$docdir&g
11677 s&@infodir@&$infodir&g
11678 s&@localedir@&$localedir&g
11679 s&@mandir@&$mandir&g
11680 s&\\\${datarootdir}&$datarootdir&g' ;;
11681 esac
11682 _ACEOF
11683
11684 # Neutralize VPATH when '$srcdir' = '.'.
11685 # Shell code in configure.ac might set extrasub.
11686 # FIXME: do we really want to maintain this feature?
11687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11688 ac_sed_extra="$ac_vpsub
11689 $extrasub
11690 _ACEOF
11691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11692 :t
11693 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11694 s|@configure_input@|$ac_sed_conf_input|;t t
11695 s&@top_builddir@&$ac_top_builddir_sub&;t t
11696 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11697 s&@srcdir@&$ac_srcdir&;t t
11698 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11699 s&@top_srcdir@&$ac_top_srcdir&;t t
11700 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11701 s&@builddir@&$ac_builddir&;t t
11702 s&@abs_builddir@&$ac_abs_builddir&;t t
11703 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11704 $ac_datarootdir_hack
11705 "
11706 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11707 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11708
11709 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11710 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11711 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11712 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
11714 which seems to be undefined. Please make sure it is defined" >&5
11715 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
11716 which seems to be undefined. Please make sure it is defined" >&2;}
11717
11718 rm -f "$ac_tmp/stdin"
11719 case $ac_file in
11720 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11721 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11722 esac \
11723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11724 ;;
11725
11726
11727
11728 esac
11729
11730 done # for ac_tag
11731
11732
11733 as_fn_exit 0
11734 _ACEOF
11735 ac_clean_files=$ac_clean_files_save
11736
11737 test $ac_write_fail = 0 ||
11738 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11739
11740
11741 # configure is writing to config.log, and then calls config.status.
11742 # config.status does its own redirection, appending to config.log.
11743 # Unfortunately, on DOS this fails, as config.log is still kept open
11744 # by configure, so config.status won't be able to write to it; its
11745 # output is simply discarded. So we exec the FD to /dev/null,
11746 # effectively closing config.log, so it can be properly (re)opened and
11747 # appended to by config.status. When coming back to configure, we
11748 # need to make the FD available again.
11749 if test "$no_create" != yes; then
11750 ac_cs_success=:
11751 ac_config_status_args=
11752 test "$silent" = yes &&
11753 ac_config_status_args="$ac_config_status_args --quiet"
11754 exec 5>/dev/null
11755 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11756 exec 5>>config.log
11757 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11758 # would make configure fail if this is the last instruction.
11759 $ac_cs_success || as_fn_exit 1
11760 fi
11761 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11763 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11764 fi
11765
11766
11767 #--------------------------------------------------------------------
11768