Debian Codegraph @

tcl3270/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for tcl3270 4.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
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="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
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 \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
184 if (eval "$as_required") 2>/dev/null
185 then :
186 as_have_required=yes
187 else $as_nop
188 as_have_required=no
189 fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
191 then :
192
193 else $as_nop
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 case $as_dir in #(((
200 '') as_dir=./ ;;
201 */) ;;
202 *) as_dir=$as_dir/ ;;
203 esac
204 as_found=:
205 case $as_dir in #(
206 /*)
207 for as_base in sh bash ksh sh5; do
208 # Try only shells that exist, to save several forks.
209 as_shell=$as_dir$as_base
210 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
211 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
212 then :
213 CONFIG_SHELL=$as_shell as_have_required=yes
214 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
215 then :
216 break 2
217 fi
218 fi
219 done;;
220 esac
221 as_found=false
222 done
223 IFS=$as_save_IFS
224 if $as_found
225 then :
226
227 else $as_nop
228 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
229 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
230 then :
231 CONFIG_SHELL=$SHELL as_have_required=yes
232 fi
233 fi
234
235
236 if test "x$CONFIG_SHELL" != x
237 then :
238 export CONFIG_SHELL
239 # We cannot yet assume a decent shell, so we have to provide a
240 # neutralization value for shells without unset; and this also
241 # works around shells that cannot unset nonexistent variables.
242 # Preserve -v and -x to the replacement shell.
243 BASH_ENV=/dev/null
244 ENV=/dev/null
245 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246 case $- in # ((((
247 *v*x* | *x*v* ) as_opts=-vx ;;
248 *v* ) as_opts=-v ;;
249 *x* ) as_opts=-x ;;
250 * ) as_opts= ;;
251 esac
252 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253 # Admittedly, this is quite paranoid, since all the known shells bail
254 # out after a failed `exec'.
255 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
256 exit 255
257 fi
258
259 if test x$as_have_required = xno
260 then :
261 printf "%s\n" "$0: This script requires a shell more modern than all"
262 printf "%s\n" "$0: the shells that I found on your system."
263 if test ${ZSH_VERSION+y} ; then
264 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 printf "%s\n" "$0: Please tell [email protected] about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
298 as_fn_set_status ()
299 {
300 return $1
301 } # as_fn_set_status
302
303 # as_fn_exit STATUS
304 # -----------------
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306 as_fn_exit ()
307 {
308 set +e
309 as_fn_set_status $1
310 exit $1
311 } # as_fn_exit
312 # as_fn_nop
313 # ---------
314 # Do nothing but, unlike ":", preserve the value of $?.
315 as_fn_nop ()
316 {
317 return $?
318 }
319 as_nop=as_fn_nop
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else $as_nop
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else $as_nop
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413 # as_fn_nop
414 # ---------
415 # Do nothing but, unlike ":", preserve the value of $?.
416 as_fn_nop ()
417 {
418 return $?
419 }
420 as_nop=as_fn_nop
421
422 # as_fn_error STATUS ERROR [LINENO LOG_FD]
423 # ----------------------------------------
424 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
425 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
426 # script with STATUS, using 1 if that was 0.
427 as_fn_error ()
428 {
429 as_status=$1; test $as_status -eq 0 && as_status=1
430 if test "$4"; then
431 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
433 fi
434 printf "%s\n" "$as_me: error: $2" >&2
435 as_fn_exit $as_status
436 } # as_fn_error
437
438 if expr a : '\(a\)' >/dev/null 2>&1 &&
439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
440 as_expr=expr
441 else
442 as_expr=false
443 fi
444
445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
446 as_basename=basename
447 else
448 as_basename=false
449 fi
450
451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
452 as_dirname=dirname
453 else
454 as_dirname=false
455 fi
456
457 as_me=`$as_basename -- "$0" ||
458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
459 X"$0" : 'X\(//\)$' \| \
460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
461 printf "%s\n" X/"$0" |
462 sed '/^.*\/\([^/][^/]*\)\/*$/{
463 s//\1/
464 q
465 }
466 /^X\/\(\/\/\)$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\).*/{
471 s//\1/
472 q
473 }
474 s/.*/./; q'`
475
476 # Avoid depending upon Character Ranges.
477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
480 as_cr_digits='0123456789'
481 as_cr_alnum=$as_cr_Letters$as_cr_digits
482
483
484 as_lineno_1=$LINENO as_lineno_1a=$LINENO
485 as_lineno_2=$LINENO as_lineno_2a=$LINENO
486 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
487 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
488 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 sed -n '
490 p
491 /[$]LINENO/=
492 ' <$as_myself |
493 sed '
494 s/[$]LINENO.*/&-/
495 t lineno
496 b
497 :lineno
498 N
499 :loop
500 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
501 t loop
502 s/-\n.*//
503 ' >$as_me.lineno &&
504 chmod +x "$as_me.lineno" ||
505 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
506
507 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
508 # already done that, so ensure we don't try to do so again and fall
509 # in an infinite loop. This has already happened in practice.
510 _as_can_reexec=no; export _as_can_reexec
511 # Don't try to exec as it changes $[0], causing all sort of problems
512 # (the dirname of $[0] is not the place where we might find the
513 # original and so on. Autoconf is especially sensitive to this).
514 . "./$as_me.lineno"
515 # Exit status is that of the last command.
516 exit
517 }
518
519
520 # Determine whether it's possible to make 'echo' print without a newline.
521 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
522 # for compatibility with existing Makefiles.
523 ECHO_C= ECHO_N= ECHO_T=
524 case `echo -n x` in #(((((
525 -n*)
526 case `echo 'xy\c'` in
527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
528 xy) ECHO_C='\c';;
529 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
530 ECHO_T=' ';;
531 esac;;
532 *)
533 ECHO_N='-n';;
534 esac
535
536 # For backward compatibility with old third-party macros, we provide
537 # the shell variables $as_echo and $as_echo_n. New code should use
538 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
539 as_echo='printf %s\n'
540 as_echo_n='printf %s'
541
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
556 # In both cases, we have to default to `cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
582
583 # Sed expression to map a string onto a valid variable name.
584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
585
586
587 test -n "$DJDIR" || exec 7<&0 </dev/null
588 exec 6>&1
589
590 # Name of the host.
591 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
592 # so uname gets run too.
593 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
594
595 #
596 # Initializations.
597 #
598 ac_default_prefix=/usr/local
599 ac_clean_files=
600 ac_config_libobj_dir=.
601 LIBOBJS=
602 cross_compiling=no
603 subdirs=
604 MFLAGS=
605 MAKEFLAGS=
606
607 # Identity of this package.
608 PACKAGE_NAME='tcl3270'
609 PACKAGE_TARNAME='tcl3270'
610 PACKAGE_VERSION='4.3'
611 PACKAGE_STRING='tcl3270 4.3'
612 PACKAGE_BUGREPORT=''
613 PACKAGE_URL=''
614
615 # Factoring default headers for most tests.
616 ac_includes_default="\
617 #include <stddef.h>
618 #ifdef HAVE_STDIO_H
619 # include <stdio.h>
620 #endif
621 #ifdef HAVE_STDLIB_H
622 # include <stdlib.h>
623 #endif
624 #ifdef HAVE_STRING_H
625 # include <string.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_STRINGS_H
634 # include <strings.h>
635 #endif
636 #ifdef HAVE_SYS_TYPES_H
637 # include <sys/types.h>
638 #endif
639 #ifdef HAVE_SYS_STAT_H
640 # include <sys/stat.h>
641 #endif
642 #ifdef HAVE_UNISTD_H
643 # include <unistd.h>
644 #endif"
645
646 ac_header_c_list=
647 ac_subst_vars='LTLIBOBJS
648 LIBOBJS
649 LIBX3270DIR
650 AWK
651 tclsh
652 BUILD_CFLAGS
653 BUILD_LIBS
654 BUILD_LDFLAGS
655 BUILD_CC
656 CCOPTIONS
657 host_os
658 host_vendor
659 host_cpu
660 host
661 build_os
662 build_vendor
663 build_cpu
664 build
665 OBJEXT
666 EXEEXT
667 ac_ct_CC
668 CPPFLAGS
669 LDFLAGS
670 CFLAGS
671 CC
672 INSTALL_DATA
673 INSTALL_SCRIPT
674 INSTALL_PROGRAM
675 target_alias
676 host_alias
677 build_alias
678 LIBS
679 ECHO_T
680 ECHO_N
681 ECHO_C
682 DEFS
683 mandir
684 localedir
685 libdir
686 psdir
687 pdfdir
688 dvidir
689 htmldir
690 infodir
691 docdir
692 oldincludedir
693 includedir
694 runstatedir
695 localstatedir
696 sharedstatedir
697 sysconfdir
698 datadir
699 datarootdir
700 libexecdir
701 sbindir
702 bindir
703 program_transform_name
704 prefix
705 exec_prefix
706 PACKAGE_URL
707 PACKAGE_BUGREPORT
708 PACKAGE_STRING
709 PACKAGE_VERSION
710 PACKAGE_TARNAME
711 PACKAGE_NAME
712 PATH_SEPARATOR
713 SHELL'
714 ac_subst_files=''
715 ac_user_opts='
716 enable_option_checking
717 enable_dbcs
718 enable_local_process
719 '
720 ac_precious_vars='build_alias
721 host_alias
722 target_alias
723 CC
724 CFLAGS
725 LDFLAGS
726 LIBS
727 CPPFLAGS'
728
729
730 # Initialize some variables set by options.
731 ac_init_help=
732 ac_init_version=false
733 ac_unrecognized_opts=
734 ac_unrecognized_sep=
735 # The variables have the same names as the options, with
736 # dashes changed to underlines.
737 cache_file=/dev/null
738 exec_prefix=NONE
739 no_create=
740 no_recursion=
741 prefix=NONE
742 program_prefix=NONE
743 program_suffix=NONE
744 program_transform_name=s,x,x,
745 silent=
746 site=
747 srcdir=
748 verbose=
749 x_includes=NONE
750 x_libraries=NONE
751
752 # Installation directory options.
753 # These are left unexpanded so users can "make install exec_prefix=/foo"
754 # and all the variables that are supposed to be based on exec_prefix
755 # by default will actually change.
756 # Use braces instead of parens because sh, perl, etc. also accept them.
757 # (The list follows the same order as the GNU Coding Standards.)
758 bindir='${exec_prefix}/bin'
759 sbindir='${exec_prefix}/sbin'
760 libexecdir='${exec_prefix}/libexec'
761 datarootdir='${prefix}/share'
762 datadir='${datarootdir}'
763 sysconfdir='${prefix}/etc'
764 sharedstatedir='${prefix}/com'
765 localstatedir='${prefix}/var'
766 runstatedir='${localstatedir}/run'
767 includedir='${prefix}/include'
768 oldincludedir='/usr/include'
769 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
770 infodir='${datarootdir}/info'
771 htmldir='${docdir}'
772 dvidir='${docdir}'
773 pdfdir='${docdir}'
774 psdir='${docdir}'
775 libdir='${exec_prefix}/lib'
776 localedir='${datarootdir}/locale'
777 mandir='${datarootdir}/man'
778
779 ac_prev=
780 ac_dashdash=
781 for ac_option
782 do
783 # If the previous option needs an argument, assign it.
784 if test -n "$ac_prev"; then
785 eval $ac_prev=\$ac_option
786 ac_prev=
787 continue
788 fi
789
790 case $ac_option in
791 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
792 *=) ac_optarg= ;;
793 *) ac_optarg=yes ;;
794 esac
795
796 case $ac_dashdash$ac_option in
797 --)
798 ac_dashdash=yes ;;
799
800 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 ac_prev=bindir ;;
802 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
803 bindir=$ac_optarg ;;
804
805 -build | --build | --buil | --bui | --bu)
806 ac_prev=build_alias ;;
807 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
808 build_alias=$ac_optarg ;;
809
810 -cache-file | --cache-file | --cache-fil | --cache-fi \
811 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
812 ac_prev=cache_file ;;
813 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
814 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
815 cache_file=$ac_optarg ;;
816
817 --config-cache | -C)
818 cache_file=config.cache ;;
819
820 -datadir | --datadir | --datadi | --datad)
821 ac_prev=datadir ;;
822 -datadir=* | --datadir=* | --datadi=* | --datad=*)
823 datadir=$ac_optarg ;;
824
825 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
826 | --dataroo | --dataro | --datar)
827 ac_prev=datarootdir ;;
828 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
829 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
830 datarootdir=$ac_optarg ;;
831
832 -disable-* | --disable-*)
833 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
834 # Reject names that are not valid shell variable names.
835 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
836 as_fn_error $? "invalid feature name: \`$ac_useropt'"
837 ac_useropt_orig=$ac_useropt
838 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
839 case $ac_user_opts in
840 *"
841 "enable_$ac_useropt"
842 "*) ;;
843 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
844 ac_unrecognized_sep=', ';;
845 esac
846 eval enable_$ac_useropt=no ;;
847
848 -docdir | --docdir | --docdi | --doc | --do)
849 ac_prev=docdir ;;
850 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
851 docdir=$ac_optarg ;;
852
853 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
854 ac_prev=dvidir ;;
855 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
856 dvidir=$ac_optarg ;;
857
858 -enable-* | --enable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error $? "invalid feature name: \`$ac_useropt'"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
866 *"
867 "enable_$ac_useropt"
868 "*) ;;
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
871 esac
872 eval enable_$ac_useropt=\$ac_optarg ;;
873
874 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
875 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
876 | --exec | --exe | --ex)
877 ac_prev=exec_prefix ;;
878 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
879 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
880 | --exec=* | --exe=* | --ex=*)
881 exec_prefix=$ac_optarg ;;
882
883 -gas | --gas | --ga | --g)
884 # Obsolete; use --with-gas.
885 with_gas=yes ;;
886
887 -help | --help | --hel | --he | -h)
888 ac_init_help=long ;;
889 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
890 ac_init_help=recursive ;;
891 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
892 ac_init_help=short ;;
893
894 -host | --host | --hos | --ho)
895 ac_prev=host_alias ;;
896 -host=* | --host=* | --hos=* | --ho=*)
897 host_alias=$ac_optarg ;;
898
899 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
900 ac_prev=htmldir ;;
901 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
902 | --ht=*)
903 htmldir=$ac_optarg ;;
904
905 -includedir | --includedir | --includedi | --included | --include \
906 | --includ | --inclu | --incl | --inc)
907 ac_prev=includedir ;;
908 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
909 | --includ=* | --inclu=* | --incl=* | --inc=*)
910 includedir=$ac_optarg ;;
911
912 -infodir | --infodir | --infodi | --infod | --info | --inf)
913 ac_prev=infodir ;;
914 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
915 infodir=$ac_optarg ;;
916
917 -libdir | --libdir | --libdi | --libd)
918 ac_prev=libdir ;;
919 -libdir=* | --libdir=* | --libdi=* | --libd=*)
920 libdir=$ac_optarg ;;
921
922 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
923 | --libexe | --libex | --libe)
924 ac_prev=libexecdir ;;
925 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
926 | --libexe=* | --libex=* | --libe=*)
927 libexecdir=$ac_optarg ;;
928
929 -localedir | --localedir | --localedi | --localed | --locale)
930 ac_prev=localedir ;;
931 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
932 localedir=$ac_optarg ;;
933
934 -localstatedir | --localstatedir | --localstatedi | --localstated \
935 | --localstate | --localstat | --localsta | --localst | --locals)
936 ac_prev=localstatedir ;;
937 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
938 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
939 localstatedir=$ac_optarg ;;
940
941 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
942 ac_prev=mandir ;;
943 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
944 mandir=$ac_optarg ;;
945
946 -nfp | --nfp | --nf)
947 # Obsolete; use --without-fp.
948 with_fp=no ;;
949
950 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
951 | --no-cr | --no-c | -n)
952 no_create=yes ;;
953
954 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
955 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
956 no_recursion=yes ;;
957
958 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
959 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
960 | --oldin | --oldi | --old | --ol | --o)
961 ac_prev=oldincludedir ;;
962 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
963 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
964 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
965 oldincludedir=$ac_optarg ;;
966
967 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
968 ac_prev=prefix ;;
969 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
970 prefix=$ac_optarg ;;
971
972 -program-prefix | --program-prefix | --program-prefi | --program-pref \
973 | --program-pre | --program-pr | --program-p)
974 ac_prev=program_prefix ;;
975 -program-prefix=* | --program-prefix=* | --program-prefi=* \
976 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
977 program_prefix=$ac_optarg ;;
978
979 -program-suffix | --program-suffix | --program-suffi | --program-suff \
980 | --program-suf | --program-su | --program-s)
981 ac_prev=program_suffix ;;
982 -program-suffix=* | --program-suffix=* | --program-suffi=* \
983 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
984 program_suffix=$ac_optarg ;;
985
986 -program-transform-name | --program-transform-name \
987 | --program-transform-nam | --program-transform-na \
988 | --program-transform-n | --program-transform- \
989 | --program-transform | --program-transfor \
990 | --program-transfo | --program-transf \
991 | --program-trans | --program-tran \
992 | --progr-tra | --program-tr | --program-t)
993 ac_prev=program_transform_name ;;
994 -program-transform-name=* | --program-transform-name=* \
995 | --program-transform-nam=* | --program-transform-na=* \
996 | --program-transform-n=* | --program-transform-=* \
997 | --program-transform=* | --program-transfor=* \
998 | --program-transfo=* | --program-transf=* \
999 | --program-trans=* | --program-tran=* \
1000 | --progr-tra=* | --program-tr=* | --program-t=*)
1001 program_transform_name=$ac_optarg ;;
1002
1003 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1004 ac_prev=pdfdir ;;
1005 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1006 pdfdir=$ac_optarg ;;
1007
1008 -psdir | --psdir | --psdi | --psd | --ps)
1009 ac_prev=psdir ;;
1010 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1011 psdir=$ac_optarg ;;
1012
1013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014 | -silent | --silent | --silen | --sile | --sil)
1015 silent=yes ;;
1016
1017 -runstatedir | --runstatedir | --runstatedi | --runstated \
1018 | --runstate | --runstat | --runsta | --runst | --runs \
1019 | --run | --ru | --r)
1020 ac_prev=runstatedir ;;
1021 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1022 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1023 | --run=* | --ru=* | --r=*)
1024 runstatedir=$ac_optarg ;;
1025
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 ac_prev=sbindir ;;
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 | --sbi=* | --sb=*)
1030 sbindir=$ac_optarg ;;
1031
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1035 | --sha | --sh)
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 | --sha=* | --sh=*)
1041 sharedstatedir=$ac_optarg ;;
1042
1043 -site | --site | --sit)
1044 ac_prev=site ;;
1045 -site=* | --site=* | --sit=*)
1046 site=$ac_optarg ;;
1047
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 ac_prev=srcdir ;;
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1052
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1059
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1064
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 verbose=yes ;;
1067
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1070
1071 -with-* | --with-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid package name: \`$ac_useropt'"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080 "with_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval with_$ac_useropt=\$ac_optarg ;;
1086
1087 -without-* | --without-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error $? "invalid package name: \`$ac_useropt'"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1095 *"
1096 "with_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval with_$ac_useropt=no ;;
1102
1103 --x)
1104 # Obsolete; use --with-x.
1105 with_x=yes ;;
1106
1107 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108 | --x-incl | --x-inc | --x-in | --x-i)
1109 ac_prev=x_includes ;;
1110 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112 x_includes=$ac_optarg ;;
1113
1114 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116 ac_prev=x_libraries ;;
1117 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119 x_libraries=$ac_optarg ;;
1120
1121 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1122 Try \`$0 --help' for more information"
1123 ;;
1124
1125 *=*)
1126 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1127 # Reject names that are not valid shell variable names.
1128 case $ac_envvar in #(
1129 '' | [0-9]* | *[!_$as_cr_alnum]* )
1130 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1131 esac
1132 eval $ac_envvar=\$ac_optarg
1133 export $ac_envvar ;;
1134
1135 *)
1136 # FIXME: should be removed in autoconf 3.0.
1137 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1138 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1140 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1141 ;;
1142
1143 esac
1144 done
1145
1146 if test -n "$ac_prev"; then
1147 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1148 as_fn_error $? "missing argument to $ac_option"
1149 fi
1150
1151 if test -n "$ac_unrecognized_opts"; then
1152 case $enable_option_checking in
1153 no) ;;
1154 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1155 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1156 esac
1157 fi
1158
1159 # Check all directory arguments for consistency.
1160 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1161 datadir sysconfdir sharedstatedir localstatedir includedir \
1162 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1163 libdir localedir mandir runstatedir
1164 do
1165 eval ac_val=\$$ac_var
1166 # Remove trailing slashes.
1167 case $ac_val in
1168 */ )
1169 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1170 eval $ac_var=\$ac_val;;
1171 esac
1172 # Be sure to have absolute directory names.
1173 case $ac_val in
1174 [\\/$]* | ?:[\\/]* ) continue;;
1175 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1176 esac
1177 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1178 done
1179
1180 # There might be people who depend on the old broken behavior: `$host'
1181 # used to hold the argument of --host etc.
1182 # FIXME: To remove some day.
1183 build=$build_alias
1184 host=$host_alias
1185 target=$target_alias
1186
1187 # FIXME: To remove some day.
1188 if test "x$host_alias" != x; then
1189 if test "x$build_alias" = x; then
1190 cross_compiling=maybe
1191 elif test "x$build_alias" != "x$host_alias"; then
1192 cross_compiling=yes
1193 fi
1194 fi
1195
1196 ac_tool_prefix=
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198
1199 test "$silent" = yes && exec 6>/dev/null
1200
1201
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 as_fn_error $? "working directory cannot be determined"
1206 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1207 as_fn_error $? "pwd does not report name of working directory"
1208
1209
1210 # Find the source files, if location was not specified.
1211 if test -z "$srcdir"; then
1212 ac_srcdir_defaulted=yes
1213 # Try the directory containing this script, then the parent directory.
1214 ac_confdir=`$as_dirname -- "$as_myself" ||
1215 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1216 X"$as_myself" : 'X\(//\)[^/]' \| \
1217 X"$as_myself" : 'X\(//\)$' \| \
1218 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1219 printf "%s\n" X"$as_myself" |
1220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221 s//\1/
1222 q
1223 }
1224 /^X\(\/\/\)[^/].*/{
1225 s//\1/
1226 q
1227 }
1228 /^X\(\/\/\)$/{
1229 s//\1/
1230 q
1231 }
1232 /^X\(\/\).*/{
1233 s//\1/
1234 q
1235 }
1236 s/.*/./; q'`
1237 srcdir=$ac_confdir
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1239 srcdir=..
1240 fi
1241 else
1242 ac_srcdir_defaulted=no
1243 fi
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1246 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1247 fi
1248 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1249 ac_abs_confdir=`(
1250 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1251 pwd)`
1252 # When building in place, set srcdir=.
1253 if test "$ac_abs_confdir" = "$ac_pwd"; then
1254 srcdir=.
1255 fi
1256 # Remove unnecessary trailing slashes from srcdir.
1257 # Double slashes in file names in object file debugging info
1258 # mess up M-x gdb in Emacs.
1259 case $srcdir in
1260 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1261 esac
1262 for ac_var in $ac_precious_vars; do
1263 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1264 eval ac_env_${ac_var}_value=\$${ac_var}
1265 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1266 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1267 done
1268
1269 #
1270 # Report the --help message.
1271 #
1272 if test "$ac_init_help" = "long"; then
1273 # Omit some internal or obsolete options to make the list less imposing.
1274 # This message is too long to be a string in the A/UX 3.1 sh.
1275 cat <<_ACEOF
1276 \`configure' configures tcl3270 4.3 to adapt to many kinds of systems.
1277
1278 Usage: $0 [OPTION]... [VAR=VALUE]...
1279
1280 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1281 VAR=VALUE. See below for descriptions of some of the useful variables.
1282
1283 Defaults for the options are specified in brackets.
1284
1285 Configuration:
1286 -h, --help display this help and exit
1287 --help=short display options specific to this package
1288 --help=recursive display the short help of all the included packages
1289 -V, --version display version information and exit
1290 -q, --quiet, --silent do not print \`checking ...' messages
1291 --cache-file=FILE cache test results in FILE [disabled]
1292 -C, --config-cache alias for \`--cache-file=config.cache'
1293 -n, --no-create do not create output files
1294 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1295
1296 Installation directories:
1297 --prefix=PREFIX install architecture-independent files in PREFIX
1298 [$ac_default_prefix]
1299 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1300 [PREFIX]
1301
1302 By default, \`make install' will install all the files in
1303 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1304 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305 for instance \`--prefix=\$HOME'.
1306
1307 For better control, use the options below.
1308
1309 Fine tuning of the installation directories:
1310 --bindir=DIR user executables [EPREFIX/bin]
1311 --sbindir=DIR system admin executables [EPREFIX/sbin]
1312 --libexecdir=DIR program executables [EPREFIX/libexec]
1313 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1314 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1315 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1316 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1317 --libdir=DIR object code libraries [EPREFIX/lib]
1318 --includedir=DIR C header files [PREFIX/include]
1319 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1320 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1321 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1322 --infodir=DIR info documentation [DATAROOTDIR/info]
1323 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1324 --mandir=DIR man documentation [DATAROOTDIR/man]
1325 --docdir=DIR documentation root [DATAROOTDIR/doc/tcl3270]
1326 --htmldir=DIR html documentation [DOCDIR]
1327 --dvidir=DIR dvi documentation [DOCDIR]
1328 --pdfdir=DIR pdf documentation [DOCDIR]
1329 --psdir=DIR ps documentation [DOCDIR]
1330 _ACEOF
1331
1332 cat <<\_ACEOF
1333
1334 System types:
1335 --build=BUILD configure for building on BUILD [guessed]
1336 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1337 _ACEOF
1338 fi
1339
1340 if test -n "$ac_init_help"; then
1341 case $ac_init_help in
1342 short | recursive ) echo "Configuration of tcl3270 4.3:";;
1343 esac
1344 cat <<\_ACEOF
1345
1346 Optional Features:
1347 --disable-option-checking ignore unrecognized --enable/--with options
1348 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1349 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1350 --disable-dbcs leave out DBCS support
1351 --disable-local-process leave out local process support
1352
1353 Some influential environment variables:
1354 CC C compiler command
1355 CFLAGS C compiler flags
1356 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1357 nonstandard directory <lib dir>
1358 LIBS libraries to pass to the linker, e.g. -l<library>
1359 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1360 you have headers in a nonstandard directory <include dir>
1361
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1364
1365 Report bugs to the package provider.
1366 _ACEOF
1367 ac_status=$?
1368 fi
1369
1370 if test "$ac_init_help" = "recursive"; then
1371 # If there are subdirs, report their specific --help.
1372 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373 test -d "$ac_dir" ||
1374 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1375 continue
1376 ac_builddir=.
1377
1378 case "$ac_dir" in
1379 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 *)
1381 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1382 # A ".." for each directory in $ac_dir_suffix.
1383 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1384 case $ac_top_builddir_sub in
1385 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1386 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1387 esac ;;
1388 esac
1389 ac_abs_top_builddir=$ac_pwd
1390 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1391 # for backward compatibility:
1392 ac_top_builddir=$ac_top_build_prefix
1393
1394 case $srcdir in
1395 .) # We are building in place.
1396 ac_srcdir=.
1397 ac_top_srcdir=$ac_top_builddir_sub
1398 ac_abs_top_srcdir=$ac_pwd ;;
1399 [\\/]* | ?:[\\/]* ) # Absolute name.
1400 ac_srcdir=$srcdir$ac_dir_suffix;
1401 ac_top_srcdir=$srcdir
1402 ac_abs_top_srcdir=$srcdir ;;
1403 *) # Relative name.
1404 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1405 ac_top_srcdir=$ac_top_build_prefix$srcdir
1406 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1407 esac
1408 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1409
1410 cd "$ac_dir" || { ac_status=$?; continue; }
1411 # Check for configure.gnu first; this name is used for a wrapper for
1412 # Metaconfig's "Configure" on case-insensitive file systems.
1413 if test -f "$ac_srcdir/configure.gnu"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1416 elif test -f "$ac_srcdir/configure"; then
1417 echo &&
1418 $SHELL "$ac_srcdir/configure" --help=recursive
1419 else
1420 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1421 fi || ac_status=$?
1422 cd "$ac_pwd" || { ac_status=$?; break; }
1423 done
1424 fi
1425
1426 test -n "$ac_init_help" && exit $ac_status
1427 if $ac_init_version; then
1428 cat <<\_ACEOF
1429 tcl3270 configure 4.3
1430 generated by GNU Autoconf 2.71
1431
1432 Copyright (C) 2021 Free Software Foundation, Inc.
1433 This configure script is free software; the Free Software Foundation
1434 gives unlimited permission to copy, distribute and modify it.
1435 _ACEOF
1436 exit
1437 fi
1438
1439 ## ------------------------ ##
1440 ## Autoconf initialization. ##
1441 ## ------------------------ ##
1442
1443 # ac_fn_c_try_compile LINENO
1444 # --------------------------
1445 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1446 ac_fn_c_try_compile ()
1447 {
1448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1449 rm -f conftest.$ac_objext conftest.beam
1450 if { { ac_try="$ac_compile"
1451 case "(($ac_try" in
1452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1453 *) ac_try_echo=$ac_try;;
1454 esac
1455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1456 printf "%s\n" "$ac_try_echo"; } >&5
1457 (eval "$ac_compile") 2>conftest.err
1458 ac_status=$?
1459 if test -s conftest.err; then
1460 grep -v '^ *+' conftest.err >conftest.er1
1461 cat conftest.er1 >&5
1462 mv -f conftest.er1 conftest.err
1463 fi
1464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1465 test $ac_status = 0; } && {
1466 test -z "$ac_c_werror_flag" ||
1467 test ! -s conftest.err
1468 } && test -s conftest.$ac_objext
1469 then :
1470 ac_retval=0
1471 else $as_nop
1472 printf "%s\n" "$as_me: failed program was:" >&5
1473 sed 's/^/| /' conftest.$ac_ext >&5
1474
1475 ac_retval=1
1476 fi
1477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1478 as_fn_set_status $ac_retval
1479
1480 } # ac_fn_c_try_compile
1481
1482 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1483 # -------------------------------------------------------
1484 # Tests whether HEADER exists and can be compiled using the include files in
1485 # INCLUDES, setting the cache variable VAR accordingly.
1486 ac_fn_c_check_header_compile ()
1487 {
1488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1490 printf %s "checking for $2... " >&6; }
1491 if eval test \${$3+y}
1492 then :
1493 printf %s "(cached) " >&6
1494 else $as_nop
1495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1496 /* end confdefs.h. */
1497 $4
1498 #include <$2>
1499 _ACEOF
1500 if ac_fn_c_try_compile "$LINENO"
1501 then :
1502 eval "$3=yes"
1503 else $as_nop
1504 eval "$3=no"
1505 fi
1506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1507 fi
1508 eval ac_res=\$$3
1509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1510 printf "%s\n" "$ac_res" >&6; }
1511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512
1513 } # ac_fn_c_check_header_compile
1514
1515 # ac_fn_c_try_link LINENO
1516 # -----------------------
1517 # Try to link conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_link ()
1519 {
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1522 if { { ac_try="$ac_link"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 printf "%s\n" "$ac_try_echo"; } >&5
1529 (eval "$ac_link") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1535 fi
1536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest$ac_exeext && {
1541 test "$cross_compiling" = yes ||
1542 test -x conftest$ac_exeext
1543 }
1544 then :
1545 ac_retval=0
1546 else $as_nop
1547 printf "%s\n" "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1549
1550 ac_retval=1
1551 fi
1552 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1553 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1554 # interfere with the next link command; also delete a directory that is
1555 # left behind by Apple's compiler. We do this before executing the actions.
1556 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1559
1560 } # ac_fn_c_try_link
1561
1562 # ac_fn_c_check_func LINENO FUNC VAR
1563 # ----------------------------------
1564 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1565 ac_fn_c_check_func ()
1566 {
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1569 printf %s "checking for $2... " >&6; }
1570 if eval test \${$3+y}
1571 then :
1572 printf %s "(cached) " >&6
1573 else $as_nop
1574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1575 /* end confdefs.h. */
1576 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1578 #define $2 innocuous_$2
1579
1580 /* System header to define __stub macros and hopefully few prototypes,
1581 which can conflict with char $2 (); below. */
1582
1583 #include <limits.h>
1584 #undef $2
1585
1586 /* Override any GCC internal prototype to avoid an error.
1587 Use char because int might match the return type of a GCC
1588 builtin and then its argument prototype would still apply. */
1589 #ifdef __cplusplus
1590 extern "C"
1591 #endif
1592 char $2 ();
1593 /* The GNU C library defines this for functions which it implements
1594 to always fail with ENOSYS. Some functions are actually named
1595 something starting with __ and the normal name is an alias. */
1596 #if defined __stub_$2 || defined __stub___$2
1597 choke me
1598 #endif
1599
1600 int
1601 main (void)
1602 {
1603 return $2 ();
1604 ;
1605 return 0;
1606 }
1607 _ACEOF
1608 if ac_fn_c_try_link "$LINENO"
1609 then :
1610 eval "$3=yes"
1611 else $as_nop
1612 eval "$3=no"
1613 fi
1614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1615 conftest$ac_exeext conftest.$ac_ext
1616 fi
1617 eval ac_res=\$$3
1618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619 printf "%s\n" "$ac_res" >&6; }
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621
1622 } # ac_fn_c_check_func
1623 ac_configure_args_raw=
1624 for ac_arg
1625 do
1626 case $ac_arg in
1627 *\'*)
1628 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1629 esac
1630 as_fn_append ac_configure_args_raw " '$ac_arg'"
1631 done
1632
1633 case $ac_configure_args_raw in
1634 *$as_nl*)
1635 ac_safe_unquote= ;;
1636 *)
1637 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1638 ac_unsafe_a="$ac_unsafe_z#~"
1639 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1640 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1641 esac
1642
1643 cat >config.log <<_ACEOF
1644 This file contains any messages produced by compilers while
1645 running configure, to aid debugging if configure makes a mistake.
1646
1647 It was created by tcl3270 $as_me 4.3, which was
1648 generated by GNU Autoconf 2.71. Invocation command line was
1649
1650 $ $0$ac_configure_args_raw
1651
1652 _ACEOF
1653 exec 5>>config.log
1654 {
1655 cat <<_ASUNAME
1656 ## --------- ##
1657 ## Platform. ##
1658 ## --------- ##
1659
1660 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1661 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1662 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1663 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1664 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1665
1666 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1667 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1668
1669 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1670 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1671 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1672 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1673 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1674 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1675 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1676
1677 _ASUNAME
1678
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1681 do
1682 IFS=$as_save_IFS
1683 case $as_dir in #(((
1684 '') as_dir=./ ;;
1685 */) ;;
1686 *) as_dir=$as_dir/ ;;
1687 esac
1688 printf "%s\n" "PATH: $as_dir"
1689 done
1690 IFS=$as_save_IFS
1691
1692 } >&5
1693
1694 cat >&5 <<_ACEOF
1695
1696
1697 ## ----------- ##
1698 ## Core tests. ##
1699 ## ----------- ##
1700
1701 _ACEOF
1702
1703
1704 # Keep a trace of the command line.
1705 # Strip out --no-create and --no-recursion so they do not pile up.
1706 # Strip out --silent because we don't want to record it for future runs.
1707 # Also quote any args containing shell meta-characters.
1708 # Make two passes to allow for proper duplicate-argument suppression.
1709 ac_configure_args=
1710 ac_configure_args0=
1711 ac_configure_args1=
1712 ac_must_keep_next=false
1713 for ac_pass in 1 2
1714 do
1715 for ac_arg
1716 do
1717 case $ac_arg in
1718 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1720 | -silent | --silent | --silen | --sile | --sil)
1721 continue ;;
1722 *\'*)
1723 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1724 esac
1725 case $ac_pass in
1726 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1727 2)
1728 as_fn_append ac_configure_args1 " '$ac_arg'"
1729 if test $ac_must_keep_next = true; then
1730 ac_must_keep_next=false # Got value, back to normal.
1731 else
1732 case $ac_arg in
1733 *=* | --config-cache | -C | -disable-* | --disable-* \
1734 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1735 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1736 | -with-* | --with-* | -without-* | --without-* | --x)
1737 case "$ac_configure_args0 " in
1738 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1739 esac
1740 ;;
1741 -* ) ac_must_keep_next=true ;;
1742 esac
1743 fi
1744 as_fn_append ac_configure_args " '$ac_arg'"
1745 ;;
1746 esac
1747 done
1748 done
1749 { ac_configure_args0=; unset ac_configure_args0;}
1750 { ac_configure_args1=; unset ac_configure_args1;}
1751
1752 # When interrupted or exit'd, cleanup temporary files, and complete
1753 # config.log. We remove comments because anyway the quotes in there
1754 # would cause problems or look ugly.
1755 # WARNING: Use '\'' to represent an apostrophe within the trap.
1756 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1757 trap 'exit_status=$?
1758 # Sanitize IFS.
1759 IFS=" "" $as_nl"
1760 # Save into config.log some information that might help in debugging.
1761 {
1762 echo
1763
1764 printf "%s\n" "## ---------------- ##
1765 ## Cache variables. ##
1766 ## ---------------- ##"
1767 echo
1768 # The following way of writing the cache mishandles newlines in values,
1769 (
1770 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1771 eval ac_val=\$$ac_var
1772 case $ac_val in #(
1773 *${as_nl}*)
1774 case $ac_var in #(
1775 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1776 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1777 esac
1778 case $ac_var in #(
1779 _ | IFS | as_nl) ;; #(
1780 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1781 *) { eval $ac_var=; unset $ac_var;} ;;
1782 esac ;;
1783 esac
1784 done
1785 (set) 2>&1 |
1786 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1787 *${as_nl}ac_space=\ *)
1788 sed -n \
1789 "s/'\''/'\''\\\\'\'''\''/g;
1790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1791 ;; #(
1792 *)
1793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1794 ;;
1795 esac |
1796 sort
1797 )
1798 echo
1799
1800 printf "%s\n" "## ----------------- ##
1801 ## Output variables. ##
1802 ## ----------------- ##"
1803 echo
1804 for ac_var in $ac_subst_vars
1805 do
1806 eval ac_val=\$$ac_var
1807 case $ac_val in
1808 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809 esac
1810 printf "%s\n" "$ac_var='\''$ac_val'\''"
1811 done | sort
1812 echo
1813
1814 if test -n "$ac_subst_files"; then
1815 printf "%s\n" "## ------------------- ##
1816 ## File substitutions. ##
1817 ## ------------------- ##"
1818 echo
1819 for ac_var in $ac_subst_files
1820 do
1821 eval ac_val=\$$ac_var
1822 case $ac_val in
1823 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824 esac
1825 printf "%s\n" "$ac_var='\''$ac_val'\''"
1826 done | sort
1827 echo
1828 fi
1829
1830 if test -s confdefs.h; then
1831 printf "%s\n" "## ----------- ##
1832 ## confdefs.h. ##
1833 ## ----------- ##"
1834 echo
1835 cat confdefs.h
1836 echo
1837 fi
1838 test "$ac_signal" != 0 &&
1839 printf "%s\n" "$as_me: caught signal $ac_signal"
1840 printf "%s\n" "$as_me: exit $exit_status"
1841 } >&5
1842 rm -f core *.core core.conftest.* &&
1843 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1844 exit $exit_status
1845 ' 0
1846 for ac_signal in 1 2 13 15; do
1847 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1848 done
1849 ac_signal=0
1850
1851 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1852 rm -f -r conftest* confdefs.h
1853
1854 printf "%s\n" "/* confdefs.h */" > confdefs.h
1855
1856 # Predefined preprocessor variables.
1857
1858 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1859
1860 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1861
1862 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1863
1864 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1865
1866 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1867
1868 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1869
1870
1871 # Let the site file select an alternate cache file if it wants to.
1872 # Prefer an explicitly selected file to automatically selected ones.
1873 if test -n "$CONFIG_SITE"; then
1874 ac_site_files="$CONFIG_SITE"
1875 elif test "x$prefix" != xNONE; then
1876 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1877 else
1878 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1879 fi
1880
1881 for ac_site_file in $ac_site_files
1882 do
1883 case $ac_site_file in #(
1884 */*) :
1885 ;; #(
1886 *) :
1887 ac_site_file=./$ac_site_file ;;
1888 esac
1889 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1891 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1892 sed 's/^/| /' "$ac_site_file" >&5
1893 . "$ac_site_file" \
1894 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1895 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1896 as_fn_error $? "failed to load site script $ac_site_file
1897 See \`config.log' for more details" "$LINENO" 5; }
1898 fi
1899 done
1900
1901 if test -r "$cache_file"; then
1902 # Some versions of bash will fail to source /dev/null (special files
1903 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1904 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1906 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1907 case $cache_file in
1908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909 *) . "./$cache_file";;
1910 esac
1911 fi
1912 else
1913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1914 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1915 >$cache_file
1916 fi
1917
1918 # Test code for whether the C compiler supports C89 (global declarations)
1919 ac_c_conftest_c89_globals='
1920 /* Does the compiler advertise C89 conformance?
1921 Do not test the value of __STDC__, because some compilers set it to 0
1922 while being otherwise adequately conformant. */
1923 #if !defined __STDC__
1924 # error "Compiler does not advertise C89 conformance"
1925 #endif
1926
1927 #include <stddef.h>
1928 #include <stdarg.h>
1929 struct stat;
1930 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1931 struct buf { int x; };
1932 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1933 static char *e (p, i)
1934 char **p;
1935 int i;
1936 {
1937 return p[i];
1938 }
1939 static char *f (char * (*g) (char **, int), char **p, ...)
1940 {
1941 char *s;
1942 va_list v;
1943 va_start (v,p);
1944 s = g (p, va_arg (v,int));
1945 va_end (v);
1946 return s;
1947 }
1948
1949 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1950 function prototypes and stuff, but not \xHH hex character constants.
1951 These do not provoke an error unfortunately, instead are silently treated
1952 as an "x". The following induces an error, until -std is added to get
1953 proper ANSI mode. Curiously \x00 != x always comes out true, for an
1954 array size at least. It is necessary to write \x00 == 0 to get something
1955 that is true only with -std. */
1956 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1957
1958 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1959 inside strings and character constants. */
1960 #define FOO(x) '\''x'\''
1961 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1962
1963 int test (int i, double x);
1964 struct s1 {int (*f) (int a);};
1965 struct s2 {int (*f) (double a);};
1966 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1967 int, int);'
1968
1969 # Test code for whether the C compiler supports C89 (body of main).
1970 ac_c_conftest_c89_main='
1971 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1972 '
1973
1974 # Test code for whether the C compiler supports C99 (global declarations)
1975 ac_c_conftest_c99_globals='
1976 // Does the compiler advertise C99 conformance?
1977 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1978 # error "Compiler does not advertise C99 conformance"
1979 #endif
1980
1981 #include <stdbool.h>
1982 extern int puts (const char *);
1983 extern int printf (const char *, ...);
1984 extern int dprintf (int, const char *, ...);
1985 extern void *malloc (size_t);
1986
1987 // Check varargs macros. These examples are taken from C99 6.10.3.5.
1988 // dprintf is used instead of fprintf to avoid needing to declare
1989 // FILE and stderr.
1990 #define debug(...) dprintf (2, __VA_ARGS__)
1991 #define showlist(...) puts (#__VA_ARGS__)
1992 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1993 static void
1994 test_varargs_macros (void)
1995 {
1996 int x = 1234;
1997 int y = 5678;
1998 debug ("Flag");
1999 debug ("X = %d\n", x);
2000 showlist (The first, second, and third items.);
2001 report (x>y, "x is %d but y is %d", x, y);
2002 }
2003
2004 // Check long long types.
2005 #define BIG64 18446744073709551615ull
2006 #define BIG32 4294967295ul
2007 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2008 #if !BIG_OK
2009 #error "your preprocessor is broken"
2010 #endif
2011 #if BIG_OK
2012 #else
2013 #error "your preprocessor is broken"
2014 #endif
2015 static long long int bignum = -9223372036854775807LL;
2016 static unsigned long long int ubignum = BIG64;
2017
2018 struct incomplete_array
2019 {
2020 int datasize;
2021 double data[];
2022 };
2023
2024 struct named_init {
2025 int number;
2026 const wchar_t *name;
2027 double average;
2028 };
2029
2030 typedef const char *ccp;
2031
2032 static inline int
2033 test_restrict (ccp restrict text)
2034 {
2035 // See if C++-style comments work.
2036 // Iterate through items via the restricted pointer.
2037 // Also check for declarations in for loops.
2038 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2039 continue;
2040 return 0;
2041 }
2042
2043 // Check varargs and va_copy.
2044 static bool
2045 test_varargs (const char *format, ...)
2046 {
2047 va_list args;
2048 va_start (args, format);
2049 va_list args_copy;
2050 va_copy (args_copy, args);
2051
2052 const char *str = "";
2053 int number = 0;
2054 float fnumber = 0;
2055
2056 while (*format)
2057 {
2058 switch (*format++)
2059 {
2060 case '\''s'\'': // string
2061 str = va_arg (args_copy, const char *);
2062 break;
2063 case '\''d'\'': // int
2064 number = va_arg (args_copy, int);
2065 break;
2066 case '\''f'\'': // float
2067 fnumber = va_arg (args_copy, double);
2068 break;
2069 default:
2070 break;
2071 }
2072 }
2073 va_end (args_copy);
2074 va_end (args);
2075
2076 return *str && number && fnumber;
2077 }
2078 '
2079
2080 # Test code for whether the C compiler supports C99 (body of main).
2081 ac_c_conftest_c99_main='
2082 // Check bool.
2083 _Bool success = false;
2084 success |= (argc != 0);
2085
2086 // Check restrict.
2087 if (test_restrict ("String literal") == 0)
2088 success = true;
2089 char *restrict newvar = "Another string";
2090
2091 // Check varargs.
2092 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2093 test_varargs_macros ();
2094
2095 // Check flexible array members.
2096 struct incomplete_array *ia =
2097 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2098 ia->datasize = 10;
2099 for (int i = 0; i < ia->datasize; ++i)
2100 ia->data[i] = i * 1.234;
2101
2102 // Check named initializers.
2103 struct named_init ni = {
2104 .number = 34,
2105 .name = L"Test wide string",
2106 .average = 543.34343,
2107 };
2108
2109 ni.number = 58;
2110
2111 int dynamic_array[ni.number];
2112 dynamic_array[0] = argv[0][0];
2113 dynamic_array[ni.number - 1] = 543;
2114
2115 // work around unused variable warnings
2116 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2117 || dynamic_array[ni.number - 1] != 543);
2118 '
2119
2120 # Test code for whether the C compiler supports C11 (global declarations)
2121 ac_c_conftest_c11_globals='
2122 // Does the compiler advertise C11 conformance?
2123 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2124 # error "Compiler does not advertise C11 conformance"
2125 #endif
2126
2127 // Check _Alignas.
2128 char _Alignas (double) aligned_as_double;
2129 char _Alignas (0) no_special_alignment;
2130 extern char aligned_as_int;
2131 char _Alignas (0) _Alignas (int) aligned_as_int;
2132
2133 // Check _Alignof.
2134 enum
2135 {
2136 int_alignment = _Alignof (int),
2137 int_array_alignment = _Alignof (int[100]),
2138 char_alignment = _Alignof (char)
2139 };
2140 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2141
2142 // Check _Noreturn.
2143 int _Noreturn does_not_return (void) { for (;;) continue; }
2144
2145 // Check _Static_assert.
2146 struct test_static_assert
2147 {
2148 int x;
2149 _Static_assert (sizeof (int) <= sizeof (long int),
2150 "_Static_assert does not work in struct");
2151 long int y;
2152 };
2153
2154 // Check UTF-8 literals.
2155 #define u8 syntax error!
2156 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2157
2158 // Check duplicate typedefs.
2159 typedef long *long_ptr;
2160 typedef long int *long_ptr;
2161 typedef long_ptr long_ptr;
2162
2163 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2164 struct anonymous
2165 {
2166 union {
2167 struct { int i; int j; };
2168 struct { int k; long int l; } w;
2169 };
2170 int m;
2171 } v1;
2172 '
2173
2174 # Test code for whether the C compiler supports C11 (body of main).
2175 ac_c_conftest_c11_main='
2176 _Static_assert ((offsetof (struct anonymous, i)
2177 == offsetof (struct anonymous, w.k)),
2178 "Anonymous union alignment botch");
2179 v1.i = 2;
2180 v1.w.k = 5;
2181 ok |= v1.i != 5;
2182 '
2183
2184 # Test code for whether the C compiler supports C11 (complete).
2185 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2186 ${ac_c_conftest_c99_globals}
2187 ${ac_c_conftest_c11_globals}
2188
2189 int
2190 main (int argc, char **argv)
2191 {
2192 int ok = 0;
2193 ${ac_c_conftest_c89_main}
2194 ${ac_c_conftest_c99_main}
2195 ${ac_c_conftest_c11_main}
2196 return ok;
2197 }
2198 "
2199
2200 # Test code for whether the C compiler supports C99 (complete).
2201 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2202 ${ac_c_conftest_c99_globals}
2203
2204 int
2205 main (int argc, char **argv)
2206 {
2207 int ok = 0;
2208 ${ac_c_conftest_c89_main}
2209 ${ac_c_conftest_c99_main}
2210 return ok;
2211 }
2212 "
2213
2214 # Test code for whether the C compiler supports C89 (complete).
2215 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2216
2217 int
2218 main (int argc, char **argv)
2219 {
2220 int ok = 0;
2221 ${ac_c_conftest_c89_main}
2222 return ok;
2223 }
2224 "
2225
2226 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2227 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2228 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2229 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2230 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2231 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2232 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2233 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2234 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2235
2236 # Auxiliary files required by this configure script.
2237 ac_aux_files="config.guess config.sub install-sh"
2238
2239 # Locations in which to look for auxiliary files.
2240 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2241
2242 # Search for a directory containing all of the required auxiliary files,
2243 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2244 # If we don't find one directory that contains all the files we need,
2245 # we report the set of missing files from the *first* directory in
2246 # $ac_aux_dir_candidates and give up.
2247 ac_missing_aux_files=""
2248 ac_first_candidate=:
2249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 as_found=false
2252 for as_dir in $ac_aux_dir_candidates
2253 do
2254 IFS=$as_save_IFS
2255 case $as_dir in #(((
2256 '') as_dir=./ ;;
2257 */) ;;
2258 *) as_dir=$as_dir/ ;;
2259 esac
2260 as_found=:
2261
2262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2263 ac_aux_dir_found=yes
2264 ac_install_sh=
2265 for ac_aux in $ac_aux_files
2266 do
2267 # As a special case, if "install-sh" is required, that requirement
2268 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2269 # and $ac_install_sh is set appropriately for whichever one is found.
2270 if test x"$ac_aux" = x"install-sh"
2271 then
2272 if test -f "${as_dir}install-sh"; then
2273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2274 ac_install_sh="${as_dir}install-sh -c"
2275 elif test -f "${as_dir}install.sh"; then
2276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2277 ac_install_sh="${as_dir}install.sh -c"
2278 elif test -f "${as_dir}shtool"; then
2279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2280 ac_install_sh="${as_dir}shtool install -c"
2281 else
2282 ac_aux_dir_found=no
2283 if $ac_first_candidate; then
2284 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2285 else
2286 break
2287 fi
2288 fi
2289 else
2290 if test -f "${as_dir}${ac_aux}"; then
2291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2292 else
2293 ac_aux_dir_found=no
2294 if $ac_first_candidate; then
2295 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2296 else
2297 break
2298 fi
2299 fi
2300 fi
2301 done
2302 if test "$ac_aux_dir_found" = yes; then
2303 ac_aux_dir="$as_dir"
2304 break
2305 fi
2306 ac_first_candidate=false
2307
2308 as_found=false
2309 done
2310 IFS=$as_save_IFS
2311 if $as_found
2312 then :
2313
2314 else $as_nop
2315 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2316 fi
2317
2318
2319 # These three variables are undocumented and unsupported,
2320 # and are intended to be withdrawn in a future Autoconf release.
2321 # They can cause serious problems if a builder's source tree is in a directory
2322 # whose full name contains unusual characters.
2323 if test -f "${ac_aux_dir}config.guess"; then
2324 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2325 fi
2326 if test -f "${ac_aux_dir}config.sub"; then
2327 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2328 fi
2329 if test -f "$ac_aux_dir/configure"; then
2330 ac_configure="$SHELL ${ac_aux_dir}configure"
2331 fi
2332
2333 # Check that the precious variables saved in the cache have kept the same
2334 # value.
2335 ac_cache_corrupted=false
2336 for ac_var in $ac_precious_vars; do
2337 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2338 eval ac_new_set=\$ac_env_${ac_var}_set
2339 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2340 eval ac_new_val=\$ac_env_${ac_var}_value
2341 case $ac_old_set,$ac_new_set in
2342 set,)
2343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2344 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2345 ac_cache_corrupted=: ;;
2346 ,set)
2347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2348 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2349 ac_cache_corrupted=: ;;
2350 ,);;
2351 *)
2352 if test "x$ac_old_val" != "x$ac_new_val"; then
2353 # differences in whitespace do not lead to failure.
2354 ac_old_val_w=`echo x $ac_old_val`
2355 ac_new_val_w=`echo x $ac_new_val`
2356 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2358 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2359 ac_cache_corrupted=:
2360 else
2361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2362 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2363 eval $ac_var=\$ac_old_val
2364 fi
2365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2366 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2368 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2369 fi;;
2370 esac
2371 # Pass precious variables to config.status.
2372 if test "$ac_new_set" = set; then
2373 case $ac_new_val in
2374 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2375 *) ac_arg=$ac_var=$ac_new_val ;;
2376 esac
2377 case " $ac_configure_args " in
2378 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2379 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2380 esac
2381 fi
2382 done
2383 if $ac_cache_corrupted; then
2384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2385 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2387 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2388 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2389 and start over" "$LINENO" 5
2390 fi
2391 ## -------------------- ##
2392 ## Main body of script. ##
2393 ## -------------------- ##
2394
2395 ac_ext=c
2396 ac_cpp='$CPP $CPPFLAGS'
2397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400
2401
2402
2403
2404
2405
2406 # Find a good install program. We prefer a C program (faster),
2407 # so one script is as good as another. But avoid the broken or
2408 # incompatible versions:
2409 # SysV /etc/install, /usr/sbin/install
2410 # SunOS /usr/etc/install
2411 # IRIX /sbin/install
2412 # AIX /bin/install
2413 # AmigaOS /C/install, which installs bootblocks on floppy discs
2414 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2415 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2416 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2417 # OS/2's system install, which has a completely different semantic
2418 # ./install, which can be erroneously created by make from ./install.sh.
2419 # Reject install programs that cannot install multiple files.
2420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2421 printf %s "checking for a BSD-compatible install... " >&6; }
2422 if test -z "$INSTALL"; then
2423 if test ${ac_cv_path_install+y}
2424 then :
2425 printf %s "(cached) " >&6
2426 else $as_nop
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 for as_dir in $PATH
2429 do
2430 IFS=$as_save_IFS
2431 case $as_dir in #(((
2432 '') as_dir=./ ;;
2433 */) ;;
2434 *) as_dir=$as_dir/ ;;
2435 esac
2436 # Account for fact that we put trailing slashes in our PATH walk.
2437 case $as_dir in #((
2438 ./ | /[cC]/* | \
2439 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2440 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2441 /usr/ucb/* ) ;;
2442 *)
2443 # OSF1 and SCO ODT 3.0 have their own names for install.
2444 # Don't use installbsd from OSF since it installs stuff as root
2445 # by default.
2446 for ac_prog in ginstall scoinst install; do
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2449 if test $ac_prog = install &&
2450 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2451 # AIX install. It has an incompatible calling convention.
2452 :
2453 elif test $ac_prog = install &&
2454 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2455 # program-specific install script used by HP pwplus--don't use.
2456 :
2457 else
2458 rm -rf conftest.one conftest.two conftest.dir
2459 echo one > conftest.one
2460 echo two > conftest.two
2461 mkdir conftest.dir
2462 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2463 test -s conftest.one && test -s conftest.two &&
2464 test -s conftest.dir/conftest.one &&
2465 test -s conftest.dir/conftest.two
2466 then
2467 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2468 break 3
2469 fi
2470 fi
2471 fi
2472 done
2473 done
2474 ;;
2475 esac
2476
2477 done
2478 IFS=$as_save_IFS
2479
2480 rm -rf conftest.one conftest.two conftest.dir
2481
2482 fi
2483 if test ${ac_cv_path_install+y}; then
2484 INSTALL=$ac_cv_path_install
2485 else
2486 # As a last resort, use the slow shell script. Don't cache a
2487 # value for INSTALL within a source directory, because that will
2488 # break other packages using the cache if that directory is
2489 # removed, or if the value is a relative name.
2490 INSTALL=$ac_install_sh
2491 fi
2492 fi
2493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2494 printf "%s\n" "$INSTALL" >&6; }
2495
2496 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2497 # It thinks the first close brace ends the variable substitution.
2498 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2499
2500 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2501
2502 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513 ac_ext=c
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518 if test -n "$ac_tool_prefix"; then
2519 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2520 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2522 printf %s "checking for $ac_word... " >&6; }
2523 if test ${ac_cv_prog_CC+y}
2524 then :
2525 printf %s "(cached) " >&6
2526 else $as_nop
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533 IFS=$as_save_IFS
2534 case $as_dir in #(((
2535 '') as_dir=./ ;;
2536 */) ;;
2537 *) as_dir=$as_dir/ ;;
2538 esac
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2543 break 2
2544 fi
2545 done
2546 done
2547 IFS=$as_save_IFS
2548
2549 fi
2550 fi
2551 CC=$ac_cv_prog_CC
2552 if test -n "$CC"; then
2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2554 printf "%s\n" "$CC" >&6; }
2555 else
2556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2557 printf "%s\n" "no" >&6; }
2558 fi
2559
2560
2561 fi
2562 if test -z "$ac_cv_prog_CC"; then
2563 ac_ct_CC=$CC
2564 # Extract the first word of "gcc", so it can be a program name with args.
2565 set dummy gcc; ac_word=$2
2566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 printf %s "checking for $ac_word... " >&6; }
2568 if test ${ac_cv_prog_ac_ct_CC+y}
2569 then :
2570 printf %s "(cached) " >&6
2571 else $as_nop
2572 if test -n "$ac_ct_CC"; then
2573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578 IFS=$as_save_IFS
2579 case $as_dir in #(((
2580 '') as_dir=./ ;;
2581 */) ;;
2582 *) as_dir=$as_dir/ ;;
2583 esac
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2586 ac_cv_prog_ac_ct_CC="gcc"
2587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597 if test -n "$ac_ct_CC"; then
2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2599 printf "%s\n" "$ac_ct_CC" >&6; }
2600 else
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 printf "%s\n" "no" >&6; }
2603 fi
2604
2605 if test "x$ac_ct_CC" = x; then
2606 CC=""
2607 else
2608 case $cross_compiling:$ac_tool_warned in
2609 yes:)
2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2611 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2612 ac_tool_warned=yes ;;
2613 esac
2614 CC=$ac_ct_CC
2615 fi
2616 else
2617 CC="$ac_cv_prog_CC"
2618 fi
2619
2620 if test -z "$CC"; then
2621 if test -n "$ac_tool_prefix"; then
2622 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2623 set dummy ${ac_tool_prefix}cc; ac_word=$2
2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625 printf %s "checking for $ac_word... " >&6; }
2626 if test ${ac_cv_prog_CC+y}
2627 then :
2628 printf %s "(cached) " >&6
2629 else $as_nop
2630 if test -n "$CC"; then
2631 ac_cv_prog_CC="$CC" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636 IFS=$as_save_IFS
2637 case $as_dir in #(((
2638 '') as_dir=./ ;;
2639 */) ;;
2640 *) as_dir=$as_dir/ ;;
2641 esac
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2644 ac_cv_prog_CC="${ac_tool_prefix}cc"
2645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2646 break 2
2647 fi
2648 done
2649 done
2650 IFS=$as_save_IFS
2651
2652 fi
2653 fi
2654 CC=$ac_cv_prog_CC
2655 if test -n "$CC"; then
2656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2657 printf "%s\n" "$CC" >&6; }
2658 else
2659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660 printf "%s\n" "no" >&6; }
2661 fi
2662
2663
2664 fi
2665 fi
2666 if test -z "$CC"; then
2667 # Extract the first word of "cc", so it can be a program name with args.
2668 set dummy cc; ac_word=$2
2669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 printf %s "checking for $ac_word... " >&6; }
2671 if test ${ac_cv_prog_CC+y}
2672 then :
2673 printf %s "(cached) " >&6
2674 else $as_nop
2675 if test -n "$CC"; then
2676 ac_cv_prog_CC="$CC" # Let the user override the test.
2677 else
2678 ac_prog_rejected=no
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682 IFS=$as_save_IFS
2683 case $as_dir in #(((
2684 '') as_dir=./ ;;
2685 */) ;;
2686 *) as_dir=$as_dir/ ;;
2687 esac
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2690 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2691 ac_prog_rejected=yes
2692 continue
2693 fi
2694 ac_cv_prog_CC="cc"
2695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698 done
2699 done
2700 IFS=$as_save_IFS
2701
2702 if test $ac_prog_rejected = yes; then
2703 # We found a bogon in the path, so make sure we never use it.
2704 set dummy $ac_cv_prog_CC
2705 shift
2706 if test $# != 0; then
2707 # We chose a different compiler from the bogus one.
2708 # However, it has the same basename, so the bogon will be chosen
2709 # first if we set CC to just the basename; use the full file name.
2710 shift
2711 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2712 fi
2713 fi
2714 fi
2715 fi
2716 CC=$ac_cv_prog_CC
2717 if test -n "$CC"; then
2718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2719 printf "%s\n" "$CC" >&6; }
2720 else
2721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 printf "%s\n" "no" >&6; }
2723 fi
2724
2725
2726 fi
2727 if test -z "$CC"; then
2728 if test -n "$ac_tool_prefix"; then
2729 for ac_prog in cl.exe
2730 do
2731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 printf %s "checking for $ac_word... " >&6; }
2735 if test ${ac_cv_prog_CC+y}
2736 then :
2737 printf %s "(cached) " >&6
2738 else $as_nop
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745 IFS=$as_save_IFS
2746 case $as_dir in #(((
2747 '') as_dir=./ ;;
2748 */) ;;
2749 *) as_dir=$as_dir/ ;;
2750 esac
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2755 break 2
2756 fi
2757 done
2758 done
2759 IFS=$as_save_IFS
2760
2761 fi
2762 fi
2763 CC=$ac_cv_prog_CC
2764 if test -n "$CC"; then
2765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2766 printf "%s\n" "$CC" >&6; }
2767 else
2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 printf "%s\n" "no" >&6; }
2770 fi
2771
2772
2773 test -n "$CC" && break
2774 done
2775 fi
2776 if test -z "$CC"; then
2777 ac_ct_CC=$CC
2778 for ac_prog in cl.exe
2779 do
2780 # Extract the first word of "$ac_prog", so it can be a program name with args.
2781 set dummy $ac_prog; ac_word=$2
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 printf %s "checking for $ac_word... " >&6; }
2784 if test ${ac_cv_prog_ac_ct_CC+y}
2785 then :
2786 printf %s "(cached) " >&6
2787 else $as_nop
2788 if test -n "$ac_ct_CC"; then
2789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794 IFS=$as_save_IFS
2795 case $as_dir in #(((
2796 '') as_dir=./ ;;
2797 */) ;;
2798 *) as_dir=$as_dir/ ;;
2799 esac
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_ac_ct_CC="$ac_prog"
2803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2804 break 2
2805 fi
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi
2811 fi
2812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2813 if test -n "$ac_ct_CC"; then
2814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2815 printf "%s\n" "$ac_ct_CC" >&6; }
2816 else
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 printf "%s\n" "no" >&6; }
2819 fi
2820
2821
2822 test -n "$ac_ct_CC" && break
2823 done
2824
2825 if test "x$ac_ct_CC" = x; then
2826 CC=""
2827 else
2828 case $cross_compiling:$ac_tool_warned in
2829 yes:)
2830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2831 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2832 ac_tool_warned=yes ;;
2833 esac
2834 CC=$ac_ct_CC
2835 fi
2836 fi
2837
2838 fi
2839 if test -z "$CC"; then
2840 if test -n "$ac_tool_prefix"; then
2841 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2842 set dummy ${ac_tool_prefix}clang; ac_word=$2
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 printf %s "checking for $ac_word... " >&6; }
2845 if test ${ac_cv_prog_CC+y}
2846 then :
2847 printf %s "(cached) " >&6
2848 else $as_nop
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 case $as_dir in #(((
2857 '') as_dir=./ ;;
2858 */) ;;
2859 *) as_dir=$as_dir/ ;;
2860 esac
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_CC="${ac_tool_prefix}clang"
2864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867 done
2868 done
2869 IFS=$as_save_IFS
2870
2871 fi
2872 fi
2873 CC=$ac_cv_prog_CC
2874 if test -n "$CC"; then
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876 printf "%s\n" "$CC" >&6; }
2877 else
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 printf "%s\n" "no" >&6; }
2880 fi
2881
2882
2883 fi
2884 if test -z "$ac_cv_prog_CC"; then
2885 ac_ct_CC=$CC
2886 # Extract the first word of "clang", so it can be a program name with args.
2887 set dummy clang; ac_word=$2
2888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 printf %s "checking for $ac_word... " >&6; }
2890 if test ${ac_cv_prog_ac_ct_CC+y}
2891 then :
2892 printf %s "(cached) " >&6
2893 else $as_nop
2894 if test -n "$ac_ct_CC"; then
2895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 case $as_dir in #(((
2902 '') as_dir=./ ;;
2903 */) ;;
2904 *) as_dir=$as_dir/ ;;
2905 esac
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2908 ac_cv_prog_ac_ct_CC="clang"
2909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2910 break 2
2911 fi
2912 done
2913 done
2914 IFS=$as_save_IFS
2915
2916 fi
2917 fi
2918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2919 if test -n "$ac_ct_CC"; then
2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2921 printf "%s\n" "$ac_ct_CC" >&6; }
2922 else
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 printf "%s\n" "no" >&6; }
2925 fi
2926
2927 if test "x$ac_ct_CC" = x; then
2928 CC=""
2929 else
2930 case $cross_compiling:$ac_tool_warned in
2931 yes:)
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934 ac_tool_warned=yes ;;
2935 esac
2936 CC=$ac_ct_CC
2937 fi
2938 else
2939 CC="$ac_cv_prog_CC"
2940 fi
2941
2942 fi
2943
2944
2945 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2946 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2947 as_fn_error $? "no acceptable C compiler found in \$PATH
2948 See \`config.log' for more details" "$LINENO" 5; }
2949
2950 # Provide some information about the compiler.
2951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2952 set X $ac_compile
2953 ac_compiler=$2
2954 for ac_option in --version -v -V -qversion -version; do
2955 { { ac_try="$ac_compiler $ac_option >&5"
2956 case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959 esac
2960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2961 printf "%s\n" "$ac_try_echo"; } >&5
2962 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2963 ac_status=$?
2964 if test -s conftest.err; then
2965 sed '10a\
2966 ... rest of stderr output deleted ...
2967 10q' conftest.err >conftest.er1
2968 cat conftest.er1 >&5
2969 fi
2970 rm -f conftest.er1 conftest.err
2971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972 test $ac_status = 0; }
2973 done
2974
2975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2976 /* end confdefs.h. */
2977
2978 int
2979 main (void)
2980 {
2981
2982 ;
2983 return 0;
2984 }
2985 _ACEOF
2986 ac_clean_files_save=$ac_clean_files
2987 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2988 # Try to create an executable without -o first, disregard a.out.
2989 # It will help us diagnose broken compilers, and finding out an intuition
2990 # of exeext.
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2992 printf %s "checking whether the C compiler works... " >&6; }
2993 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2994
2995 # The possible output files:
2996 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2997
2998 ac_rmfiles=
2999 for ac_file in $ac_files
3000 do
3001 case $ac_file in
3002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3003 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3004 esac
3005 done
3006 rm -f $ac_rmfiles
3007
3008 if { { ac_try="$ac_link_default"
3009 case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3014 printf "%s\n" "$ac_try_echo"; } >&5
3015 (eval "$ac_link_default") 2>&5
3016 ac_status=$?
3017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018 test $ac_status = 0; }
3019 then :
3020 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3021 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3022 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3023 # so that the user can short-circuit this test for compilers unknown to
3024 # Autoconf.
3025 for ac_file in $ac_files ''
3026 do
3027 test -f "$ac_file" || continue
3028 case $ac_file in
3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3030 ;;
3031 [ab].out )
3032 # We found the default executable, but exeext='' is most
3033 # certainly right.
3034 break;;
3035 *.* )
3036 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3037 then :; else
3038 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3039 fi
3040 # We set ac_cv_exeext here because the later test for it is not
3041 # safe: cross compilers may not add the suffix if given an `-o'
3042 # argument, so we may need to know it at that point already.
3043 # Even if this section looks crufty: it has the advantage of
3044 # actually working.
3045 break;;
3046 * )
3047 break;;
3048 esac
3049 done
3050 test "$ac_cv_exeext" = no && ac_cv_exeext=
3051
3052 else $as_nop
3053 ac_file=''
3054 fi
3055 if test -z "$ac_file"
3056 then :
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 printf "%s\n" "no" >&6; }
3059 printf "%s\n" "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3063 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3064 as_fn_error 77 "C compiler cannot create executables
3065 See \`config.log' for more details" "$LINENO" 5; }
3066 else $as_nop
3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3068 printf "%s\n" "yes" >&6; }
3069 fi
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3071 printf %s "checking for C compiler default output file name... " >&6; }
3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3073 printf "%s\n" "$ac_file" >&6; }
3074 ac_exeext=$ac_cv_exeext
3075
3076 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3077 ac_clean_files=$ac_clean_files_save
3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3079 printf %s "checking for suffix of executables... " >&6; }
3080 if { { ac_try="$ac_link"
3081 case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086 printf "%s\n" "$ac_try_echo"; } >&5
3087 (eval "$ac_link") 2>&5
3088 ac_status=$?
3089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090 test $ac_status = 0; }
3091 then :
3092 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3093 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3094 # work properly (i.e., refer to `conftest.exe'), while it won't with
3095 # `rm'.
3096 for ac_file in conftest.exe conftest conftest.*; do
3097 test -f "$ac_file" || continue
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3101 break;;
3102 * ) break;;
3103 esac
3104 done
3105 else $as_nop
3106 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3108 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3109 See \`config.log' for more details" "$LINENO" 5; }
3110 fi
3111 rm -f conftest conftest$ac_cv_exeext
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3113 printf "%s\n" "$ac_cv_exeext" >&6; }
3114
3115 rm -f conftest.$ac_ext
3116 EXEEXT=$ac_cv_exeext
3117 ac_exeext=$EXEEXT
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119 /* end confdefs.h. */
3120 #include <stdio.h>
3121 int
3122 main (void)
3123 {
3124 FILE *f = fopen ("conftest.out", "w");
3125 return ferror (f) || fclose (f) != 0;
3126
3127 ;
3128 return 0;
3129 }
3130 _ACEOF
3131 ac_clean_files="$ac_clean_files conftest.out"
3132 # Check that the compiler produces executables we can run. If not, either
3133 # the compiler is broken, or we cross compile.
3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3135 printf %s "checking whether we are cross compiling... " >&6; }
3136 if test "$cross_compiling" != yes; then
3137 { { ac_try="$ac_link"
3138 case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 printf "%s\n" "$ac_try_echo"; } >&5
3144 (eval "$ac_link") 2>&5
3145 ac_status=$?
3146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }
3148 if { ac_try='./conftest$ac_cv_exeext'
3149 { { case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 printf "%s\n" "$ac_try_echo"; } >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }; }; then
3159 cross_compiling=no
3160 else
3161 if test "$cross_compiling" = maybe; then
3162 cross_compiling=yes
3163 else
3164 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error 77 "cannot run C compiled programs.
3167 If you meant to cross compile, use \`--host'.
3168 See \`config.log' for more details" "$LINENO" 5; }
3169 fi
3170 fi
3171 fi
3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3173 printf "%s\n" "$cross_compiling" >&6; }
3174
3175 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3176 ac_clean_files=$ac_clean_files_save
3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3178 printf %s "checking for suffix of object files... " >&6; }
3179 if test ${ac_cv_objext+y}
3180 then :
3181 printf %s "(cached) " >&6
3182 else $as_nop
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3185
3186 int
3187 main (void)
3188 {
3189
3190 ;
3191 return 0;
3192 }
3193 _ACEOF
3194 rm -f conftest.o conftest.obj
3195 if { { ac_try="$ac_compile"
3196 case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 printf "%s\n" "$ac_try_echo"; } >&5
3202 (eval "$ac_compile") 2>&5
3203 ac_status=$?
3204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }
3206 then :
3207 for ac_file in conftest.o conftest.obj conftest.*; do
3208 test -f "$ac_file" || continue;
3209 case $ac_file in
3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3211 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3212 break;;
3213 esac
3214 done
3215 else $as_nop
3216 printf "%s\n" "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3218
3219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $? "cannot compute suffix of object files: cannot compile
3222 See \`config.log' for more details" "$LINENO" 5; }
3223 fi
3224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3225 fi
3226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3227 printf "%s\n" "$ac_cv_objext" >&6; }
3228 OBJEXT=$ac_cv_objext
3229 ac_objext=$OBJEXT
3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3231 printf %s "checking whether the compiler supports GNU C... " >&6; }
3232 if test ${ac_cv_c_compiler_gnu+y}
3233 then :
3234 printf %s "(cached) " >&6
3235 else $as_nop
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3238
3239 int
3240 main (void)
3241 {
3242 #ifndef __GNUC__
3243 choke me
3244 #endif
3245
3246 ;
3247 return 0;
3248 }
3249 _ACEOF
3250 if ac_fn_c_try_compile "$LINENO"
3251 then :
3252 ac_compiler_gnu=yes
3253 else $as_nop
3254 ac_compiler_gnu=no
3255 fi
3256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3257 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3258
3259 fi
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3261 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263
3264 if test $ac_compiler_gnu = yes; then
3265 GCC=yes
3266 else
3267 GCC=
3268 fi
3269 ac_test_CFLAGS=${CFLAGS+y}
3270 ac_save_CFLAGS=$CFLAGS
3271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3272 printf %s "checking whether $CC accepts -g... " >&6; }
3273 if test ${ac_cv_prog_cc_g+y}
3274 then :
3275 printf %s "(cached) " >&6
3276 else $as_nop
3277 ac_save_c_werror_flag=$ac_c_werror_flag
3278 ac_c_werror_flag=yes
3279 ac_cv_prog_cc_g=no
3280 CFLAGS="-g"
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3283
3284 int
3285 main (void)
3286 {
3287
3288 ;
3289 return 0;
3290 }
3291 _ACEOF
3292 if ac_fn_c_try_compile "$LINENO"
3293 then :
3294 ac_cv_prog_cc_g=yes
3295 else $as_nop
3296 CFLAGS=""
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3299
3300 int
3301 main (void)
3302 {
3303
3304 ;
3305 return 0;
3306 }
3307 _ACEOF
3308 if ac_fn_c_try_compile "$LINENO"
3309 then :
3310
3311 else $as_nop
3312 ac_c_werror_flag=$ac_save_c_werror_flag
3313 CFLAGS="-g"
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3316
3317 int
3318 main (void)
3319 {
3320
3321 ;
3322 return 0;
3323 }
3324 _ACEOF
3325 if ac_fn_c_try_compile "$LINENO"
3326 then :
3327 ac_cv_prog_cc_g=yes
3328 fi
3329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3330 fi
3331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3332 fi
3333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3334 ac_c_werror_flag=$ac_save_c_werror_flag
3335 fi
3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3337 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3338 if test $ac_test_CFLAGS; then
3339 CFLAGS=$ac_save_CFLAGS
3340 elif test $ac_cv_prog_cc_g = yes; then
3341 if test "$GCC" = yes; then
3342 CFLAGS="-g -O2"
3343 else
3344 CFLAGS="-g"
3345 fi
3346 else
3347 if test "$GCC" = yes; then
3348 CFLAGS="-O2"
3349 else
3350 CFLAGS=
3351 fi
3352 fi
3353 ac_prog_cc_stdc=no
3354 if test x$ac_prog_cc_stdc = xno
3355 then :
3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3357 printf %s "checking for $CC option to enable C11 features... " >&6; }
3358 if test ${ac_cv_prog_cc_c11+y}
3359 then :
3360 printf %s "(cached) " >&6
3361 else $as_nop
3362 ac_cv_prog_cc_c11=no
3363 ac_save_CC=$CC
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3366 $ac_c_conftest_c11_program
3367 _ACEOF
3368 for ac_arg in '' -std=gnu11
3369 do
3370 CC="$ac_save_CC $ac_arg"
3371 if ac_fn_c_try_compile "$LINENO"
3372 then :
3373 ac_cv_prog_cc_c11=$ac_arg
3374 fi
3375 rm -f core conftest.err conftest.$ac_objext conftest.beam
3376 test "x$ac_cv_prog_cc_c11" != "xno" && break
3377 done
3378 rm -f conftest.$ac_ext
3379 CC=$ac_save_CC
3380 fi
3381
3382 if test "x$ac_cv_prog_cc_c11" = xno
3383 then :
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3385 printf "%s\n" "unsupported" >&6; }
3386 else $as_nop
3387 if test "x$ac_cv_prog_cc_c11" = x
3388 then :
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3390 printf "%s\n" "none needed" >&6; }
3391 else $as_nop
3392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3393 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3394 CC="$CC $ac_cv_prog_cc_c11"
3395 fi
3396 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3397 ac_prog_cc_stdc=c11
3398 fi
3399 fi
3400 if test x$ac_prog_cc_stdc = xno
3401 then :
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3403 printf %s "checking for $CC option to enable C99 features... " >&6; }
3404 if test ${ac_cv_prog_cc_c99+y}
3405 then :
3406 printf %s "(cached) " >&6
3407 else $as_nop
3408 ac_cv_prog_cc_c99=no
3409 ac_save_CC=$CC
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3412 $ac_c_conftest_c99_program
3413 _ACEOF
3414 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3415 do
3416 CC="$ac_save_CC $ac_arg"
3417 if ac_fn_c_try_compile "$LINENO"
3418 then :
3419 ac_cv_prog_cc_c99=$ac_arg
3420 fi
3421 rm -f core conftest.err conftest.$ac_objext conftest.beam
3422 test "x$ac_cv_prog_cc_c99" != "xno" && break
3423 done
3424 rm -f conftest.$ac_ext
3425 CC=$ac_save_CC
3426 fi
3427
3428 if test "x$ac_cv_prog_cc_c99" = xno
3429 then :
3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3431 printf "%s\n" "unsupported" >&6; }
3432 else $as_nop
3433 if test "x$ac_cv_prog_cc_c99" = x
3434 then :
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3436 printf "%s\n" "none needed" >&6; }
3437 else $as_nop
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3439 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3440 CC="$CC $ac_cv_prog_cc_c99"
3441 fi
3442 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3443 ac_prog_cc_stdc=c99
3444 fi
3445 fi
3446 if test x$ac_prog_cc_stdc = xno
3447 then :
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3449 printf %s "checking for $CC option to enable C89 features... " >&6; }
3450 if test ${ac_cv_prog_cc_c89+y}
3451 then :
3452 printf %s "(cached) " >&6
3453 else $as_nop
3454 ac_cv_prog_cc_c89=no
3455 ac_save_CC=$CC
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3458 $ac_c_conftest_c89_program
3459 _ACEOF
3460 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3461 do
3462 CC="$ac_save_CC $ac_arg"
3463 if ac_fn_c_try_compile "$LINENO"
3464 then :
3465 ac_cv_prog_cc_c89=$ac_arg
3466 fi
3467 rm -f core conftest.err conftest.$ac_objext conftest.beam
3468 test "x$ac_cv_prog_cc_c89" != "xno" && break
3469 done
3470 rm -f conftest.$ac_ext
3471 CC=$ac_save_CC
3472 fi
3473
3474 if test "x$ac_cv_prog_cc_c89" = xno
3475 then :
3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3477 printf "%s\n" "unsupported" >&6; }
3478 else $as_nop
3479 if test "x$ac_cv_prog_cc_c89" = x
3480 then :
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3482 printf "%s\n" "none needed" >&6; }
3483 else $as_nop
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3485 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3486 CC="$CC $ac_cv_prog_cc_c89"
3487 fi
3488 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3489 ac_prog_cc_stdc=c89
3490 fi
3491 fi
3492
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498
3499
3500
3501
3502 # Make sure we can run config.sub.
3503 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3504 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3505
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3507 printf %s "checking build system type... " >&6; }
3508 if test ${ac_cv_build+y}
3509 then :
3510 printf %s "(cached) " >&6
3511 else $as_nop
3512 ac_build_alias=$build_alias
3513 test "x$ac_build_alias" = x &&
3514 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3515 test "x$ac_build_alias" = x &&
3516 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3517 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3518 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3519
3520 fi
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3522 printf "%s\n" "$ac_cv_build" >&6; }
3523 case $ac_cv_build in
3524 *-*-*) ;;
3525 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3526 esac
3527 build=$ac_cv_build
3528 ac_save_IFS=$IFS; IFS='-'
3529 set x $ac_cv_build
3530 shift
3531 build_cpu=$1
3532 build_vendor=$2
3533 shift; shift
3534 # Remember, the first character of IFS is used to create $*,
3535 # except with old shells:
3536 build_os=$*
3537 IFS=$ac_save_IFS
3538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3539
3540
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3542 printf %s "checking host system type... " >&6; }
3543 if test ${ac_cv_host+y}
3544 then :
3545 printf %s "(cached) " >&6
3546 else $as_nop
3547 if test "x$host_alias" = x; then
3548 ac_cv_host=$ac_cv_build
3549 else
3550 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3551 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3552 fi
3553
3554 fi
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3556 printf "%s\n" "$ac_cv_host" >&6; }
3557 case $ac_cv_host in
3558 *-*-*) ;;
3559 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3560 esac
3561 host=$ac_cv_host
3562 ac_save_IFS=$IFS; IFS='-'
3563 set x $ac_cv_host
3564 shift
3565 host_cpu=$1
3566 host_vendor=$2
3567 shift; shift
3568 # Remember, the first character of IFS is used to create $*,
3569 # except with old shells:
3570 host_os=$*
3571 IFS=$ac_save_IFS
3572 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3573
3574
3575 ansi="-std=c99 -pedantic"
3576 case "$host_os" in
3577 cygwin*) CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE"
3578 ansi=""
3579 ;;
3580 solaris2*) CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
3581 ;;
3582 darwin*) CCOPTIONS="$CCOPTIONS -no-cpp-precomp -Wno-deprecated-declarations"
3583 ;;
3584 linux*) CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE"
3585 ;;
3586 esac
3587 if test "$GCC" = yes
3588 then # Add common gcc options, plus flags for dependency generation.
3589 CCOPTIONS="$CCOPTIONS -Wall -Wsign-compare $ansi -Wno-variadic-macros -Wno-long-long -MMD -MP"
3590 fi
3591
3592
3593
3594
3595
3596
3597
3598 # Extract the first word of "tclsh", so it can be a program name with args.
3599 set dummy tclsh; ac_word=$2
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 printf %s "checking for $ac_word... " >&6; }
3602 if test ${ac_cv_prog_tclsh+y}
3603 then :
3604 printf %s "(cached) " >&6
3605 else $as_nop
3606 if test -n "$tclsh"; then
3607 ac_cv_prog_tclsh="$tclsh" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3611 do
3612 IFS=$as_save_IFS
3613 case $as_dir in #(((
3614 '') as_dir=./ ;;
3615 */) ;;
3616 *) as_dir=$as_dir/ ;;
3617 esac
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_tclsh="yes"
3621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3622 break 2
3623 fi
3624 done
3625 done
3626 IFS=$as_save_IFS
3627
3628 test -z "$ac_cv_prog_tclsh" && ac_cv_prog_tclsh="no"
3629 fi
3630 fi
3631 tclsh=$ac_cv_prog_tclsh
3632 if test -n "$tclsh"; then
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tclsh" >&5
3634 printf "%s\n" "$tclsh" >&6; }
3635 else
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 printf "%s\n" "no" >&6; }
3638 fi
3639
3640
3641 if test "$tclsh" = no
3642 then as_fn_error $? "Can't find tclsh" "$LINENO" 5
3643 fi
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
3645 printf %s "checking Tcl version... " >&6; }
3646 tclver=`echo "puts [set tcl_version]" | tclsh`
3647 if test -z "$tclver"
3648 then as_fn_error $? "Can't figure out Tcl version" "$LINENO" 5
3649 fi
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tclver" >&5
3651 printf "%s\n" "$tclver" >&6; }
3652
3653 for ac_prog in gawk mawk nawk awk
3654 do
3655 # Extract the first word of "$ac_prog", so it can be a program name with args.
3656 set dummy $ac_prog; ac_word=$2
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658 printf %s "checking for $ac_word... " >&6; }
3659 if test ${ac_cv_prog_AWK+y}
3660 then :
3661 printf %s "(cached) " >&6
3662 else $as_nop
3663 if test -n "$AWK"; then
3664 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669 IFS=$as_save_IFS
3670 case $as_dir in #(((
3671 '') as_dir=./ ;;
3672 */) ;;
3673 *) as_dir=$as_dir/ ;;
3674 esac
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3677 ac_cv_prog_AWK="$ac_prog"
3678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3679 break 2
3680 fi
3681 done
3682 done
3683 IFS=$as_save_IFS
3684
3685 fi
3686 fi
3687 AWK=$ac_cv_prog_AWK
3688 if test -n "$AWK"; then
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3690 printf "%s\n" "$AWK" >&6; }
3691 else
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 printf "%s\n" "no" >&6; }
3694 fi
3695
3696
3697 test -n "$AWK" && break
3698 done
3699
3700 pthread=`echo $tclver | $AWK -F . '{ if ($1 > 8 || $2 >= 6) print "1"}'`
3701
3702 tclvr=`echo $tclver | tr -d .`
3703
3704 ac_config_headers="$ac_config_headers conf.h"
3705
3706
3707 ac_header= ac_cache=
3708 for ac_item in $ac_header_c_list
3709 do
3710 if test $ac_cache; then
3711 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3712 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3713 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3714 fi
3715 ac_header= ac_cache=
3716 elif test $ac_header; then
3717 ac_cache=$ac_item
3718 else
3719 ac_header=$ac_item
3720 fi
3721 done
3722
3723
3724
3725
3726
3727
3728
3729
3730 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3731 then :
3732
3733 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3734
3735 fi
3736 ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
3737 if test "x$ac_cv_header_util_h" = xyes
3738 then :
3739 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
3740
3741 fi
3742
3743
3744 if test "$pthread"
3745 then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
3746 printf %s "checking for library containing pthread_create... " >&6; }
3747 if test ${ac_cv_search_pthread_create+y}
3748 then :
3749 printf %s "(cached) " >&6
3750 else $as_nop
3751 ac_func_search_save_LIBS=$LIBS
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754
3755 /* Override any GCC internal prototype to avoid an error.
3756 Use char because int might match the return type of a GCC
3757 builtin and then its argument prototype would still apply. */
3758 char pthread_create ();
3759 int
3760 main (void)
3761 {
3762 return pthread_create ();
3763 ;
3764 return 0;
3765 }
3766 _ACEOF
3767 for ac_lib in '' pthread
3768 do
3769 if test -z "$ac_lib"; then
3770 ac_res="none required"
3771 else
3772 ac_res=-l$ac_lib
3773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3774 fi
3775 if ac_fn_c_try_link "$LINENO"
3776 then :
3777 ac_cv_search_pthread_create=$ac_res
3778 fi
3779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3780 conftest$ac_exeext
3781 if test ${ac_cv_search_pthread_create+y}
3782 then :
3783 break
3784 fi
3785 done
3786 if test ${ac_cv_search_pthread_create+y}
3787 then :
3788
3789 else $as_nop
3790 ac_cv_search_pthread_create=no
3791 fi
3792 rm conftest.$ac_ext
3793 LIBS=$ac_func_search_save_LIBS
3794 fi
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
3796 printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
3797 ac_res=$ac_cv_search_pthread_create
3798 if test "$ac_res" != no
3799 then :
3800 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3801
3802 fi
3803
3804 fi
3805
3806 for dir in /usr/include/tcl$tclver /usr/include/tcl$tclvr /usr/local/include /usr/local/include/tcl$tclver /usr/local/include/tcl$tclvr
3807 do if test -d $dir
3808 then CPPFLAGS="$CPPFLAGS -I$dir"
3809 fi
3810 done
3811 for ac_header in tcl.h
3812 do :
3813 ac_fn_c_check_header_compile "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
3814 if test "x$ac_cv_header_tcl_h" = xyes
3815 then :
3816 printf "%s\n" "#define HAVE_TCL_H 1" >>confdefs.h
3817
3818 else $as_nop
3819 as_fn_error $? "Cannot find tcl header file" "$LINENO" 5
3820 fi
3821
3822 done
3823
3824 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
3825 if test "x$ac_cv_func_vasprintf" = xyes
3826 then :
3827 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
3828
3829 fi
3830
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
3832 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
3833 if test ${ac_cv_sys_largefile_source+y}
3834 then :
3835 printf %s "(cached) " >&6
3836 else $as_nop
3837 while :; do
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840 #include <sys/types.h> /* for off_t */
3841 #include <stdio.h>
3842 int
3843 main (void)
3844 {
3845 int (*fp) (FILE *, off_t, int) = fseeko;
3846 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 if ac_fn_c_try_link "$LINENO"
3852 then :
3853 ac_cv_sys_largefile_source=no; break
3854 fi
3855 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3856 conftest$ac_exeext conftest.$ac_ext
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859 #define _LARGEFILE_SOURCE 1
3860 #include <sys/types.h> /* for off_t */
3861 #include <stdio.h>
3862 int
3863 main (void)
3864 {
3865 int (*fp) (FILE *, off_t, int) = fseeko;
3866 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
3867 ;
3868 return 0;
3869 }
3870 _ACEOF
3871 if ac_fn_c_try_link "$LINENO"
3872 then :
3873 ac_cv_sys_largefile_source=1; break
3874 fi
3875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3876 conftest$ac_exeext conftest.$ac_ext
3877 ac_cv_sys_largefile_source=unknown
3878 break
3879 done
3880 fi
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
3882 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
3883 case $ac_cv_sys_largefile_source in #(
3884 no | unknown) ;;
3885 *)
3886 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
3887 ;;
3888 esac
3889 rm -rf conftest*
3890
3891 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
3892 # in glibc 2.1.3, but that breaks too many other things.
3893 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
3894 if test $ac_cv_sys_largefile_source != unknown; then
3895
3896 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
3897
3898 fi
3899
3900
3901 LDFLAGS="$LDFLAGS -lm"
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
3903 printf %s "checking for library containing gethostbyname... " >&6; }
3904 if test ${ac_cv_search_gethostbyname+y}
3905 then :
3906 printf %s "(cached) " >&6
3907 else $as_nop
3908 ac_func_search_save_LIBS=$LIBS
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3911
3912 /* Override any GCC internal prototype to avoid an error.
3913 Use char because int might match the return type of a GCC
3914 builtin and then its argument prototype would still apply. */
3915 char gethostbyname ();
3916 int
3917 main (void)
3918 {
3919 return gethostbyname ();
3920 ;
3921 return 0;
3922 }
3923 _ACEOF
3924 for ac_lib in '' nsl
3925 do
3926 if test -z "$ac_lib"; then
3927 ac_res="none required"
3928 else
3929 ac_res=-l$ac_lib
3930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3931 fi
3932 if ac_fn_c_try_link "$LINENO"
3933 then :
3934 ac_cv_search_gethostbyname=$ac_res
3935 fi
3936 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3937 conftest$ac_exeext
3938 if test ${ac_cv_search_gethostbyname+y}
3939 then :
3940 break
3941 fi
3942 done
3943 if test ${ac_cv_search_gethostbyname+y}
3944 then :
3945
3946 else $as_nop
3947 ac_cv_search_gethostbyname=no
3948 fi
3949 rm conftest.$ac_ext
3950 LIBS=$ac_func_search_save_LIBS
3951 fi
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
3953 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
3954 ac_res=$ac_cv_search_gethostbyname
3955 if test "$ac_res" != no
3956 then :
3957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3958
3959 fi
3960
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
3962 printf %s "checking for library containing socket... " >&6; }
3963 if test ${ac_cv_search_socket+y}
3964 then :
3965 printf %s "(cached) " >&6
3966 else $as_nop
3967 ac_func_search_save_LIBS=$LIBS
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970
3971 /* Override any GCC internal prototype to avoid an error.
3972 Use char because int might match the return type of a GCC
3973 builtin and then its argument prototype would still apply. */
3974 char socket ();
3975 int
3976 main (void)
3977 {
3978 return socket ();
3979 ;
3980 return 0;
3981 }
3982 _ACEOF
3983 for ac_lib in '' socket
3984 do
3985 if test -z "$ac_lib"; then
3986 ac_res="none required"
3987 else
3988 ac_res=-l$ac_lib
3989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3990 fi
3991 if ac_fn_c_try_link "$LINENO"
3992 then :
3993 ac_cv_search_socket=$ac_res
3994 fi
3995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3996 conftest$ac_exeext
3997 if test ${ac_cv_search_socket+y}
3998 then :
3999 break
4000 fi
4001 done
4002 if test ${ac_cv_search_socket+y}
4003 then :
4004
4005 else $as_nop
4006 ac_cv_search_socket=no
4007 fi
4008 rm conftest.$ac_ext
4009 LIBS=$ac_func_search_save_LIBS
4010 fi
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4012 printf "%s\n" "$ac_cv_search_socket" >&6; }
4013 ac_res=$ac_cv_search_socket
4014 if test "$ac_res" != no
4015 then :
4016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4017
4018 fi
4019
4020
4021 if test -d /usr/local/lib
4022 then LDFLAGS="$LDFLAGS -L/usr/local/lib"
4023 fi
4024 tcl_failed=0
4025 as_ac_Lib=`printf "%s\n" "ac_cv_lib_tcl$tclver""_Tcl_Init" | $as_tr_sh`
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl_Init in -ltcl$tclver" >&5
4027 printf %s "checking for Tcl_Init in -ltcl$tclver... " >&6; }
4028 if eval test \${$as_ac_Lib+y}
4029 then :
4030 printf %s "(cached) " >&6
4031 else $as_nop
4032 ac_check_lib_save_LIBS=$LIBS
4033 LIBS="-ltcl$tclver $LIBS"
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036
4037 /* Override any GCC internal prototype to avoid an error.
4038 Use char because int might match the return type of a GCC
4039 builtin and then its argument prototype would still apply. */
4040 char Tcl_Init ();
4041 int
4042 main (void)
4043 {
4044 return Tcl_Init ();
4045 ;
4046 return 0;
4047 }
4048 _ACEOF
4049 if ac_fn_c_try_link "$LINENO"
4050 then :
4051 eval "$as_ac_Lib=yes"
4052 else $as_nop
4053 eval "$as_ac_Lib=no"
4054 fi
4055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4056 conftest$ac_exeext conftest.$ac_ext
4057 LIBS=$ac_check_lib_save_LIBS
4058 fi
4059 eval ac_res=\$$as_ac_Lib
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4061 printf "%s\n" "$ac_res" >&6; }
4062 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
4063 then :
4064 cat >>confdefs.h <<_ACEOF
4065 #define `printf "%s\n" "HAVE_LIBtcl$tclver" | $as_tr_cpp` 1
4066 _ACEOF
4067
4068 LIBS="-ltcl$tclver $LIBS"
4069
4070 else $as_nop
4071 tcl_failed=1
4072 fi
4073
4074 if test $tcl_failed = 1
4075 then as_ac_Lib=`printf "%s\n" "ac_cv_lib_tcl$tclvr""_Tcl_Init" | $as_tr_sh`
4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl_Init in -ltcl$tclvr" >&5
4077 printf %s "checking for Tcl_Init in -ltcl$tclvr... " >&6; }
4078 if eval test \${$as_ac_Lib+y}
4079 then :
4080 printf %s "(cached) " >&6
4081 else $as_nop
4082 ac_check_lib_save_LIBS=$LIBS
4083 LIBS="-ltcl$tclvr $LIBS"
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086
4087 /* Override any GCC internal prototype to avoid an error.
4088 Use char because int might match the return type of a GCC
4089 builtin and then its argument prototype would still apply. */
4090 char Tcl_Init ();
4091 int
4092 main (void)
4093 {
4094 return Tcl_Init ();
4095 ;
4096 return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_link "$LINENO"
4100 then :
4101 eval "$as_ac_Lib=yes"
4102 else $as_nop
4103 eval "$as_ac_Lib=no"
4104 fi
4105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4106 conftest$ac_exeext conftest.$ac_ext
4107 LIBS=$ac_check_lib_save_LIBS
4108 fi
4109 eval ac_res=\$$as_ac_Lib
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4111 printf "%s\n" "$ac_res" >&6; }
4112 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
4113 then :
4114 cat >>confdefs.h <<_ACEOF
4115 #define `printf "%s\n" "HAVE_LIBtcl$tclvr" | $as_tr_cpp` 1
4116 _ACEOF
4117
4118 LIBS="-ltcl$tclvr $LIBS"
4119
4120 else $as_nop
4121 as_fn_error $? "Cannot find TCL library" "$LINENO" 5
4122 fi
4123
4124 fi
4125
4126 LIBX3270DIR='${sysconfdir}/x3270'
4127
4128
4129 # Check whether --enable-dbcs was given.
4130 if test ${enable_dbcs+y}
4131 then :
4132 enableval=$enable_dbcs;
4133 fi
4134
4135 case "$enable_dbcs" in
4136 no) ;;
4137 *) printf "%s\n" "#define X3270_DBCS 1" >>confdefs.h
4138
4139 ;;
4140 esac
4141 # Check whether --enable-local_process was given.
4142 if test ${enable_local_process+y}
4143 then :
4144 enableval=$enable_local_process;
4145 fi
4146
4147 case "$enable_local_process" in
4148 ""|yes) printf "%s\n" "#define X3270_LOCAL_PROCESS 1" >>confdefs.h
4149
4150 ;;
4151 esac
4152
4153 ac_config_files="$ac_config_files Makefile Makefile.obj"
4154
4155 cat >confcache <<\_ACEOF
4156 # This file is a shell script that caches the results of configure
4157 # tests run on this system so they can be shared between configure
4158 # scripts and configure runs, see configure's option --config-cache.
4159 # It is not useful on other systems. If it contains results you don't
4160 # want to keep, you may remove or edit it.
4161 #
4162 # config.status only pays attention to the cache file if you give it
4163 # the --recheck option to rerun configure.
4164 #
4165 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4166 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4167 # following values.
4168
4169 _ACEOF
4170
4171 # The following way of writing the cache mishandles newlines in values,
4172 # but we know of no workaround that is simple, portable, and efficient.
4173 # So, we kill variables containing newlines.
4174 # Ultrix sh set writes to stderr and can't be redirected directly,
4175 # and sets the high bit in the cache file unless we assign to the vars.
4176 (
4177 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4178 eval ac_val=\$$ac_var
4179 case $ac_val in #(
4180 *${as_nl}*)
4181 case $ac_var in #(
4182 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4183 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4184 esac
4185 case $ac_var in #(
4186 _ | IFS | as_nl) ;; #(
4187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4188 *) { eval $ac_var=; unset $ac_var;} ;;
4189 esac ;;
4190 esac
4191 done
4192
4193 (set) 2>&1 |
4194 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4195 *${as_nl}ac_space=\ *)
4196 # `set' does not quote correctly, so add quotes: double-quote
4197 # substitution turns \\\\ into \\, and sed turns \\ into \.
4198 sed -n \
4199 "s/'/'\\\\''/g;
4200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4201 ;; #(
4202 *)
4203 # `set' quotes correctly as required by POSIX, so do not add quotes.
4204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4205 ;;
4206 esac |
4207 sort
4208 ) |
4209 sed '
4210 /^ac_cv_env_/b end
4211 t clear
4212 :clear
4213 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
4214 t end
4215 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4216 :end' >>confcache
4217 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4218 if test -w "$cache_file"; then
4219 if test "x$cache_file" != "x/dev/null"; then
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4221 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
4222 if test ! -f "$cache_file" || test -h "$cache_file"; then
4223 cat confcache >"$cache_file"
4224 else
4225 case $cache_file in #(
4226 */* | ?:*)
4227 mv -f confcache "$cache_file"$$ &&
4228 mv -f "$cache_file"$$ "$cache_file" ;; #(
4229 *)
4230 mv -f confcache "$cache_file" ;;
4231 esac
4232 fi
4233 fi
4234 else
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4236 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
4237 fi
4238 fi
4239 rm -f confcache
4240
4241 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4242 # Let make expand exec_prefix.
4243 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4244
4245 DEFS=-DHAVE_CONFIG_H
4246
4247 ac_libobjs=
4248 ac_ltlibobjs=
4249 U=
4250 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4251 # 1. Remove the extension, and $U if already installed.
4252 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4253 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
4254 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4255 # will be set to the directory where LIBOBJS objects are built.
4256 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4257 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4258 done
4259 LIBOBJS=$ac_libobjs
4260
4261 LTLIBOBJS=$ac_ltlibobjs
4262
4263
4264
4265 : "${CONFIG_STATUS=./config.status}"
4266 ac_write_fail=0
4267 ac_clean_files_save=$ac_clean_files
4268 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4270 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
4271 as_write_fail=0
4272 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4273 #! $SHELL
4274 # Generated by $as_me.
4275 # Run this file to recreate the current configuration.
4276 # Compiler output produced by configure, useful for debugging
4277 # configure, is in config.log if it exists.
4278
4279 debug=false
4280 ac_cs_recheck=false
4281 ac_cs_silent=false
4282
4283 SHELL=\${CONFIG_SHELL-$SHELL}
4284 export SHELL
4285 _ASEOF
4286 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4287 ## -------------------- ##
4288 ## M4sh Initialization. ##
4289 ## -------------------- ##
4290
4291 # Be more Bourne compatible
4292 DUALCASE=1; export DUALCASE # for MKS sh
4293 as_nop=:
4294 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
4295 then :
4296 emulate sh
4297 NULLCMD=:
4298 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4299 # is contrary to our usage. Disable this feature.
4300 alias -g '${1+"$@"}'='"$@"'
4301 setopt NO_GLOB_SUBST
4302 else $as_nop
4303 case `(set -o) 2>/dev/null` in #(
4304 *posix*) :
4305 set -o posix ;; #(
4306 *) :
4307 ;;
4308 esac
4309 fi
4310
4311
4312
4313 # Reset variables that may have inherited troublesome values from
4314 # the environment.
4315
4316 # IFS needs to be set, to space, tab, and newline, in precisely that order.
4317 # (If _AS_PATH_WALK were called with IFS unset, it would have the
4318 # side effect of setting IFS to empty, thus disabling word splitting.)
4319 # Quoting is to prevent editors from complaining about space-tab.
4320 as_nl='
4321 '
4322 export as_nl
4323 IFS=" "" $as_nl"
4324
4325 PS1='$ '
4326 PS2='> '
4327 PS4='+ '
4328
4329 # Ensure predictable behavior from utilities with locale-dependent output.
4330 LC_ALL=C
4331 export LC_ALL
4332 LANGUAGE=C
4333 export LANGUAGE
4334
4335 # We cannot yet rely on "unset" to work, but we need these variables
4336 # to be unset--not just set to an empty or harmless value--now, to
4337 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
4338 # also avoids known problems related to "unset" and subshell syntax
4339 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
4340 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
4341 do eval test \${$as_var+y} \
4342 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4343 done
4344
4345 # Ensure that fds 0, 1, and 2 are open.
4346 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
4347 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
4348 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
4349
4350 # The user is always right.
4351 if ${PATH_SEPARATOR+false} :; then
4352 PATH_SEPARATOR=:
4353 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4354 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4355 PATH_SEPARATOR=';'
4356 }
4357 fi
4358
4359
4360 # Find who we are. Look in the path if we contain no directory separator.
4361 as_myself=
4362 case $0 in #((
4363 *[\\/]* ) as_myself=$0 ;;
4364 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367 IFS=$as_save_IFS
4368 case $as_dir in #(((
4369 '') as_dir=./ ;;
4370 */) ;;
4371 *) as_dir=$as_dir/ ;;
4372 esac
4373 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
4374 done
4375 IFS=$as_save_IFS
4376
4377 ;;
4378 esac
4379 # We did not find ourselves, most probably we were run as `sh COMMAND'
4380 # in which case we are not to be found in the path.
4381 if test "x$as_myself" = x; then
4382 as_myself=$0
4383 fi
4384 if test ! -f "$as_myself"; then
4385 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4386 exit 1
4387 fi
4388
4389
4390
4391 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4392 # ----------------------------------------
4393 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4394 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4395 # script with STATUS, using 1 if that was 0.
4396 as_fn_error ()
4397 {
4398 as_status=$1; test $as_status -eq 0 && as_status=1
4399 if test "$4"; then
4400 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4402 fi
4403 printf "%s\n" "$as_me: error: $2" >&2
4404 as_fn_exit $as_status
4405 } # as_fn_error
4406
4407
4408
4409 # as_fn_set_status STATUS
4410 # -----------------------
4411 # Set $? to STATUS, without forking.
4412 as_fn_set_status ()
4413 {
4414 return $1
4415 } # as_fn_set_status
4416
4417 # as_fn_exit STATUS
4418 # -----------------
4419 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4420 as_fn_exit ()
4421 {
4422 set +e
4423 as_fn_set_status $1
4424 exit $1
4425 } # as_fn_exit
4426
4427 # as_fn_unset VAR
4428 # ---------------
4429 # Portably unset VAR.
4430 as_fn_unset ()
4431 {
4432 { eval $1=; unset $1;}
4433 }
4434 as_unset=as_fn_unset
4435
4436 # as_fn_append VAR VALUE
4437 # ----------------------
4438 # Append the text in VALUE to the end of the definition contained in VAR. Take
4439 # advantage of any shell optimizations that allow amortized linear growth over
4440 # repeated appends, instead of the typical quadratic growth present in naive
4441 # implementations.
4442 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
4443 then :
4444 eval 'as_fn_append ()
4445 {
4446 eval $1+=\$2
4447 }'
4448 else $as_nop
4449 as_fn_append ()
4450 {
4451 eval $1=\$$1\$2
4452 }
4453 fi # as_fn_append
4454
4455 # as_fn_arith ARG...
4456 # ------------------
4457 # Perform arithmetic evaluation on the ARGs, and store the result in the
4458 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4459 # must be portable across $(()) and expr.
4460 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4461 then :
4462 eval 'as_fn_arith ()
4463 {
4464 as_val=$(( $* ))
4465 }'
4466 else $as_nop
4467 as_fn_arith ()
4468 {
4469 as_val=`expr "$@" || test $? -eq 1`
4470 }
4471 fi # as_fn_arith
4472
4473
4474 if expr a : '\(a\)' >/dev/null 2>&1 &&
4475 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4476 as_expr=expr
4477 else
4478 as_expr=false
4479 fi
4480
4481 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4482 as_basename=basename
4483 else
4484 as_basename=false
4485 fi
4486
4487 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4488 as_dirname=dirname
4489 else
4490 as_dirname=false
4491 fi
4492
4493 as_me=`$as_basename -- "$0" ||
4494 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4495 X"$0" : 'X\(//\)$' \| \
4496 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4497 printf "%s\n" X/"$0" |
4498 sed '/^.*\/\([^/][^/]*\)\/*$/{
4499 s//\1/
4500 q
4501 }
4502 /^X\/\(\/\/\)$/{
4503 s//\1/
4504 q
4505 }
4506 /^X\/\(\/\).*/{
4507 s//\1/
4508 q
4509 }
4510 s/.*/./; q'`
4511
4512 # Avoid depending upon Character Ranges.
4513 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4514 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4515 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4516 as_cr_digits='0123456789'
4517 as_cr_alnum=$as_cr_Letters$as_cr_digits
4518
4519
4520 # Determine whether it's possible to make 'echo' print without a newline.
4521 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
4522 # for compatibility with existing Makefiles.
4523 ECHO_C= ECHO_N= ECHO_T=
4524 case `echo -n x` in #(((((
4525 -n*)
4526 case `echo 'xy\c'` in
4527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4528 xy) ECHO_C='\c';;
4529 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4530 ECHO_T=' ';;
4531 esac;;
4532 *)
4533 ECHO_N='-n';;
4534 esac
4535
4536 # For backward compatibility with old third-party macros, we provide
4537 # the shell variables $as_echo and $as_echo_n. New code should use
4538 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
4539 as_echo='printf %s\n'
4540 as_echo_n='printf %s'
4541
4542 rm -f conf$$ conf$$.exe conf$$.file
4543 if test -d conf$$.dir; then
4544 rm -f conf$$.dir/conf$$.file
4545 else
4546 rm -f conf$$.dir
4547 mkdir conf$$.dir 2>/dev/null
4548 fi
4549 if (echo >conf$$.file) 2>/dev/null; then
4550 if ln -s conf$$.file conf$$ 2>/dev/null; then
4551 as_ln_s='ln -s'
4552 # ... but there are two gotchas:
4553 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4554 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4555 # In both cases, we have to default to `cp -pR'.
4556 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4557 as_ln_s='cp -pR'
4558 elif ln conf$$.file conf$$ 2>/dev/null; then
4559 as_ln_s=ln
4560 else
4561 as_ln_s='cp -pR'
4562 fi
4563 else
4564 as_ln_s='cp -pR'
4565 fi
4566 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4567 rmdir conf$$.dir 2>/dev/null
4568
4569
4570 # as_fn_mkdir_p
4571 # -------------
4572 # Create "$as_dir" as a directory, including parents if necessary.
4573 as_fn_mkdir_p ()
4574 {
4575
4576 case $as_dir in #(
4577 -*) as_dir=./$as_dir;;
4578 esac
4579 test -d "$as_dir" || eval $as_mkdir_p || {
4580 as_dirs=
4581 while :; do
4582 case $as_dir in #(
4583 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4584 *) as_qdir=$as_dir;;
4585 esac
4586 as_dirs="'$as_qdir' $as_dirs"
4587 as_dir=`$as_dirname -- "$as_dir" ||
4588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4589 X"$as_dir" : 'X\(//\)[^/]' \| \
4590 X"$as_dir" : 'X\(//\)$' \| \
4591 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4592 printf "%s\n" X"$as_dir" |
4593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4594 s//\1/
4595 q
4596 }
4597 /^X\(\/\/\)[^/].*/{
4598 s//\1/
4599 q
4600 }
4601 /^X\(\/\/\)$/{
4602 s//\1/
4603 q
4604 }
4605 /^X\(\/\).*/{
4606 s//\1/
4607 q
4608 }
4609 s/.*/./; q'`
4610 test -d "$as_dir" && break
4611 done
4612 test -z "$as_dirs" || eval "mkdir $as_dirs"
4613 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4614
4615
4616 } # as_fn_mkdir_p
4617 if mkdir -p . 2>/dev/null; then
4618 as_mkdir_p='mkdir -p "$as_dir"'
4619 else
4620 test -d ./-p && rmdir ./-p
4621 as_mkdir_p=false
4622 fi
4623
4624
4625 # as_fn_executable_p FILE
4626 # -----------------------
4627 # Test if FILE is an executable regular file.
4628 as_fn_executable_p ()
4629 {
4630 test -f "$1" && test -x "$1"
4631 } # as_fn_executable_p
4632 as_test_x='test -x'
4633 as_executable_p=as_fn_executable_p
4634
4635 # Sed expression to map a string onto a valid CPP name.
4636 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4637
4638 # Sed expression to map a string onto a valid variable name.
4639 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4640
4641
4642 exec 6>&1
4643 ## ----------------------------------- ##
4644 ## Main body of $CONFIG_STATUS script. ##
4645 ## ----------------------------------- ##
4646 _ASEOF
4647 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4648
4649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4650 # Save the log message, to keep $0 and so on meaningful, and to
4651 # report actual input values of CONFIG_FILES etc. instead of their
4652 # values after options handling.
4653 ac_log="
4654 This file was extended by tcl3270 $as_me 4.3, which was
4655 generated by GNU Autoconf 2.71. Invocation command line was
4656
4657 CONFIG_FILES = $CONFIG_FILES
4658 CONFIG_HEADERS = $CONFIG_HEADERS
4659 CONFIG_LINKS = $CONFIG_LINKS
4660 CONFIG_COMMANDS = $CONFIG_COMMANDS
4661 $ $0 $@
4662
4663 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4664 "
4665
4666 _ACEOF
4667
4668 case $ac_config_files in *"
4669 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4670 esac
4671
4672 case $ac_config_headers in *"
4673 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4674 esac
4675
4676
4677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4678 # Files that config.status was made for.
4679 config_files="$ac_config_files"
4680 config_headers="$ac_config_headers"
4681
4682 _ACEOF
4683
4684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4685 ac_cs_usage="\
4686 \`$as_me' instantiates files and other configuration actions
4687 from templates according to the current configuration. Unless the files
4688 and actions are specified as TAGs, all are instantiated by default.
4689
4690 Usage: $0 [OPTION]... [TAG]...
4691
4692 -h, --help print this help, then exit
4693 -V, --version print version number and configuration settings, then exit
4694 --config print configuration, then exit
4695 -q, --quiet, --silent
4696 do not print progress messages
4697 -d, --debug don't remove temporary files
4698 --recheck update $as_me by reconfiguring in the same conditions
4699 --file=FILE[:TEMPLATE]
4700 instantiate the configuration file FILE
4701 --header=FILE[:TEMPLATE]
4702 instantiate the configuration header FILE
4703
4704 Configuration files:
4705 $config_files
4706
4707 Configuration headers:
4708 $config_headers
4709
4710 Report bugs to the package provider."
4711
4712 _ACEOF
4713 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
4714 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
4715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4716 ac_cs_config='$ac_cs_config_escaped'
4717 ac_cs_version="\\
4718 tcl3270 config.status 4.3
4719 configured by $0, generated by GNU Autoconf 2.71,
4720 with options \\"\$ac_cs_config\\"
4721
4722 Copyright (C) 2021 Free Software Foundation, Inc.
4723 This config.status script is free software; the Free Software Foundation
4724 gives unlimited permission to copy, distribute and modify it."
4725
4726 ac_pwd='$ac_pwd'
4727 srcdir='$srcdir'
4728 INSTALL='$INSTALL'
4729 AWK='$AWK'
4730 test -n "\$AWK" || AWK=awk
4731 _ACEOF
4732
4733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4734 # The default lists apply if the user does not specify any file.
4735 ac_need_defaults=:
4736 while test $# != 0
4737 do
4738 case $1 in
4739 --*=?*)
4740 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4741 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4742 ac_shift=:
4743 ;;
4744 --*=)
4745 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4746 ac_optarg=
4747 ac_shift=:
4748 ;;
4749 *)
4750 ac_option=$1
4751 ac_optarg=$2
4752 ac_shift=shift
4753 ;;
4754 esac
4755
4756 case $ac_option in
4757 # Handling of the options.
4758 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4759 ac_cs_recheck=: ;;
4760 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4761 printf "%s\n" "$ac_cs_version"; exit ;;
4762 --config | --confi | --conf | --con | --co | --c )
4763 printf "%s\n" "$ac_cs_config"; exit ;;
4764 --debug | --debu | --deb | --de | --d | -d )
4765 debug=: ;;
4766 --file | --fil | --fi | --f )
4767 $ac_shift
4768 case $ac_optarg in
4769 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4770 '') as_fn_error $? "missing file argument" ;;
4771 esac
4772 as_fn_append CONFIG_FILES " '$ac_optarg'"
4773 ac_need_defaults=false;;
4774 --header | --heade | --head | --hea )
4775 $ac_shift
4776 case $ac_optarg in
4777 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4778 esac
4779 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4780 ac_need_defaults=false;;
4781 --he | --h)
4782 # Conflict between --help and --header
4783 as_fn_error $? "ambiguous option: \`$1'
4784 Try \`$0 --help' for more information.";;
4785 --help | --hel | -h )
4786 printf "%s\n" "$ac_cs_usage"; exit ;;
4787 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4788 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4789 ac_cs_silent=: ;;
4790
4791 # This is an error.
4792 -*) as_fn_error $? "unrecognized option: \`$1'
4793 Try \`$0 --help' for more information." ;;
4794
4795 *) as_fn_append ac_config_targets " $1"
4796 ac_need_defaults=false ;;
4797
4798 esac
4799 shift
4800 done
4801
4802 ac_configure_extra_args=
4803
4804 if $ac_cs_silent; then
4805 exec 6>/dev/null
4806 ac_configure_extra_args="$ac_configure_extra_args --silent"
4807 fi
4808
4809 _ACEOF
4810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4811 if \$ac_cs_recheck; then
4812 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4813 shift
4814 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
4815 CONFIG_SHELL='$SHELL'
4816 export CONFIG_SHELL
4817 exec "\$@"
4818 fi
4819
4820 _ACEOF
4821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4822 exec 5>>config.log
4823 {
4824 echo
4825 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4826 ## Running $as_me. ##
4827 _ASBOX
4828 printf "%s\n" "$ac_log"
4829 } >&5
4830
4831 _ACEOF
4832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4833 _ACEOF
4834
4835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4836
4837 # Handling of arguments.
4838 for ac_config_target in $ac_config_targets
4839 do
4840 case $ac_config_target in
4841 "conf.h") CONFIG_HEADERS="$CONFIG_HEADERS conf.h" ;;
4842 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4843 "Makefile.obj") CONFIG_FILES="$CONFIG_FILES Makefile.obj" ;;
4844
4845 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4846 esac
4847 done
4848
4849
4850 # If the user did not use the arguments to specify the items to instantiate,
4851 # then the envvar interface is used. Set only those that are not.
4852 # We use the long form for the default assignment because of an extremely
4853 # bizarre bug on SunOS 4.1.3.
4854 if $ac_need_defaults; then
4855 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
4856 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
4857 fi
4858
4859 # Have a temporary directory for convenience. Make it in the build tree
4860 # simply because there is no reason against having it here, and in addition,
4861 # creating and moving files from /tmp can sometimes cause problems.
4862 # Hook for its removal unless debugging.
4863 # Note that there is a small window in which the directory will not be cleaned:
4864 # after its creation but before its name has been assigned to `$tmp'.
4865 $debug ||
4866 {
4867 tmp= ac_tmp=
4868 trap 'exit_status=$?
4869 : "${ac_tmp:=$tmp}"
4870 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4871 ' 0
4872 trap 'as_fn_exit 1' 1 2 13 15
4873 }
4874 # Create a (secure) tmp directory for tmp files.
4875
4876 {
4877 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4878 test -d "$tmp"
4879 } ||
4880 {
4881 tmp=./conf$$-$RANDOM
4882 (umask 077 && mkdir "$tmp")
4883 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4884 ac_tmp=$tmp
4885
4886 # Set up the scripts for CONFIG_FILES section.
4887 # No need to generate them if there are no CONFIG_FILES.
4888 # This happens for instance with `./config.status config.h'.
4889 if test -n "$CONFIG_FILES"; then
4890
4891
4892 ac_cr=`echo X | tr X '\015'`
4893 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4894 # But we know of no other shell where ac_cr would be empty at this
4895 # point, so we can use a bashism as a fallback.
4896 if test "x$ac_cr" = x; then
4897 eval ac_cr=\$\'\\r\'
4898 fi
4899 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4900 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4901 ac_cs_awk_cr='\\r'
4902 else
4903 ac_cs_awk_cr=$ac_cr
4904 fi
4905
4906 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4907 _ACEOF
4908
4909
4910 {
4911 echo "cat >conf$$subs.awk <<_ACEOF" &&
4912 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4913 echo "_ACEOF"
4914 } >conf$$subs.sh ||
4915 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4916 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4917 ac_delim='%!_!# '
4918 for ac_last_try in false false false false false :; do
4919 . ./conf$$subs.sh ||
4920 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4921
4922 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4923 if test $ac_delim_n = $ac_delim_num; then
4924 break
4925 elif $ac_last_try; then
4926 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4927 else
4928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4929 fi
4930 done
4931 rm -f conf$$subs.sh
4932
4933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4934 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4935 _ACEOF
4936 sed -n '
4937 h
4938 s/^/S["/; s/!.*/"]=/
4939 p
4940 g
4941 s/^[^!]*!//
4942 :repl
4943 t repl
4944 s/'"$ac_delim"'$//
4945 t delim
4946 :nl
4947 h
4948 s/\(.\{148\}\)..*/\1/
4949 t more1
4950 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4951 p
4952 n
4953 b repl
4954 :more1
4955 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4956 p
4957 g
4958 s/.\{148\}//
4959 t nl
4960 :delim
4961 h
4962 s/\(.\{148\}\)..*/\1/
4963 t more2
4964 s/["\\]/\\&/g; s/^/"/; s/$/"/
4965 p
4966 b
4967 :more2
4968 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4969 p
4970 g
4971 s/.\{148\}//
4972 t delim
4973 ' <conf$$subs.awk | sed '
4974 /^[^""]/{
4975 N
4976 s/\n//
4977 }
4978 ' >>$CONFIG_STATUS || ac_write_fail=1
4979 rm -f conf$$subs.awk
4980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4981 _ACAWK
4982 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4983 for (key in S) S_is_set[key] = 1
4984 FS = ""
4985
4986 }
4987 {
4988 line = $ 0
4989 nfields = split(line, field, "@")
4990 substed = 0
4991 len = length(field[1])
4992 for (i = 2; i < nfields; i++) {
4993 key = field[i]
4994 keylen = length(key)
4995 if (S_is_set[key]) {
4996 value = S[key]
4997 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4998 len += length(value) + length(field[++i])
4999 substed = 1
5000 } else
5001 len += 1 + keylen
5002 }
5003
5004 print line
5005 }
5006
5007 _ACAWK
5008 _ACEOF
5009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5010 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5011 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5012 else
5013 cat
5014 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5015 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5016 _ACEOF
5017
5018 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5019 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5020 # trailing colons and then remove the whole line if VPATH becomes empty
5021 # (actually we leave an empty line to preserve line numbers).
5022 if test "x$srcdir" = x.; then
5023 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5024 h
5025 s///
5026 s/^/:/
5027 s/[ ]*$/:/
5028 s/:\$(srcdir):/:/g
5029 s/:\${srcdir}:/:/g
5030 s/:@srcdir@:/:/g
5031 s/^:*//
5032 s/:*$//
5033 x
5034 s/\(=[ ]*\).*/\1/
5035 G
5036 s/\n//
5037 s/^[^=]*=[ ]*$//
5038 }'
5039 fi
5040
5041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5042 fi # test -n "$CONFIG_FILES"
5043
5044 # Set up the scripts for CONFIG_HEADERS section.
5045 # No need to generate them if there are no CONFIG_HEADERS.
5046 # This happens for instance with `./config.status Makefile'.
5047 if test -n "$CONFIG_HEADERS"; then
5048 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5049 BEGIN {
5050 _ACEOF
5051
5052 # Transform confdefs.h into an awk script `defines.awk', embedded as
5053 # here-document in config.status, that substitutes the proper values into
5054 # config.h.in to produce config.h.
5055
5056 # Create a delimiter string that does not exist in confdefs.h, to ease
5057 # handling of long lines.
5058 ac_delim='%!_!# '
5059 for ac_last_try in false false :; do
5060 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5061 if test -z "$ac_tt"; then
5062 break
5063 elif $ac_last_try; then
5064 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5065 else
5066 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5067 fi
5068 done
5069
5070 # For the awk script, D is an array of macro values keyed by name,
5071 # likewise P contains macro parameters if any. Preserve backslash
5072 # newline sequences.
5073
5074 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5075 sed -n '
5076 s/.\{148\}/&'"$ac_delim"'/g
5077 t rset
5078 :rset
5079 s/^[ ]*#[ ]*define[ ][ ]*/ /
5080 t def
5081 d
5082 :def
5083 s/\\$//
5084 t bsnl
5085 s/["\\]/\\&/g
5086 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5087 D["\1"]=" \3"/p
5088 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5089 d
5090 :bsnl
5091 s/["\\]/\\&/g
5092 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5093 D["\1"]=" \3\\\\\\n"\\/p
5094 t cont
5095 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5096 t cont
5097 d
5098 :cont
5099 n
5100 s/.\{148\}/&'"$ac_delim"'/g
5101 t clear
5102 :clear
5103 s/\\$//
5104 t bsnlc
5105 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5106 d
5107 :bsnlc
5108 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5109 b cont
5110 ' <confdefs.h | sed '
5111 s/'"$ac_delim"'/"\\\
5112 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5113
5114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5115 for (key in D) D_is_set[key] = 1
5116 FS = ""
5117 }
5118 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5119 line = \$ 0
5120 split(line, arg, " ")
5121 if (arg[1] == "#") {
5122 defundef = arg[2]
5123 mac1 = arg[3]
5124 } else {
5125 defundef = substr(arg[1], 2)
5126 mac1 = arg[2]
5127 }
5128 split(mac1, mac2, "(") #)
5129 macro = mac2[1]
5130 prefix = substr(line, 1, index(line, defundef) - 1)
5131 if (D_is_set[macro]) {
5132 # Preserve the white space surrounding the "#".
5133 print prefix "define", macro P[macro] D[macro]
5134 next
5135 } else {
5136 # Replace #undef with comments. This is necessary, for example,
5137 # in the case of _POSIX_SOURCE, which is predefined and required
5138 # on some systems where configure will not decide to define it.
5139 if (defundef == "undef") {
5140 print "/*", prefix defundef, macro, "*/"
5141 next
5142 }
5143 }
5144 }
5145 { print }
5146 _ACAWK
5147 _ACEOF
5148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5149 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5150 fi # test -n "$CONFIG_HEADERS"
5151
5152
5153 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5154 shift
5155 for ac_tag
5156 do
5157 case $ac_tag in
5158 :[FHLC]) ac_mode=$ac_tag; continue;;
5159 esac
5160 case $ac_mode$ac_tag in
5161 :[FHL]*:*);;
5162 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5163 :[FH]-) ac_tag=-:-;;
5164 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5165 esac
5166 ac_save_IFS=$IFS
5167 IFS=:
5168 set x $ac_tag
5169 IFS=$ac_save_IFS
5170 shift
5171 ac_file=$1
5172 shift
5173
5174 case $ac_mode in
5175 :L) ac_source=$1;;
5176 :[FH])
5177 ac_file_inputs=
5178 for ac_f
5179 do
5180 case $ac_f in
5181 -) ac_f="$ac_tmp/stdin";;
5182 *) # Look for the file first in the build tree, then in the source tree
5183 # (if the path is not absolute). The absolute path cannot be DOS-style,
5184 # because $ac_f cannot contain `:'.
5185 test -f "$ac_f" ||
5186 case $ac_f in
5187 [\\/$]*) false;;
5188 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5189 esac ||
5190 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5191 esac
5192 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5193 as_fn_append ac_file_inputs " '$ac_f'"
5194 done
5195
5196 # Let's still pretend it is `configure' which instantiates (i.e., don't
5197 # use $as_me), people would be surprised to read:
5198 # /* config.h. Generated by config.status. */
5199 configure_input='Generated from '`
5200 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5201 `' by configure.'
5202 if test x"$ac_file" != x-; then
5203 configure_input="$ac_file. $configure_input"
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5205 printf "%s\n" "$as_me: creating $ac_file" >&6;}
5206 fi
5207 # Neutralize special characters interpreted by sed in replacement strings.
5208 case $configure_input in #(
5209 *\&* | *\|* | *\\* )
5210 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
5211 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5212 *) ac_sed_conf_input=$configure_input;;
5213 esac
5214
5215 case $ac_tag in
5216 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5218 esac
5219 ;;
5220 esac
5221
5222 ac_dir=`$as_dirname -- "$ac_file" ||
5223 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5224 X"$ac_file" : 'X\(//\)[^/]' \| \
5225 X"$ac_file" : 'X\(//\)$' \| \
5226 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5227 printf "%s\n" X"$ac_file" |
5228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5229 s//\1/
5230 q
5231 }
5232 /^X\(\/\/\)[^/].*/{
5233 s//\1/
5234 q
5235 }
5236 /^X\(\/\/\)$/{
5237 s//\1/
5238 q
5239 }
5240 /^X\(\/\).*/{
5241 s//\1/
5242 q
5243 }
5244 s/.*/./; q'`
5245 as_dir="$ac_dir"; as_fn_mkdir_p
5246 ac_builddir=.
5247
5248 case "$ac_dir" in
5249 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5250 *)
5251 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
5252 # A ".." for each directory in $ac_dir_suffix.
5253 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5254 case $ac_top_builddir_sub in
5255 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5256 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5257 esac ;;
5258 esac
5259 ac_abs_top_builddir=$ac_pwd
5260 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5261 # for backward compatibility:
5262 ac_top_builddir=$ac_top_build_prefix
5263
5264 case $srcdir in
5265 .) # We are building in place.
5266 ac_srcdir=.
5267 ac_top_srcdir=$ac_top_builddir_sub
5268 ac_abs_top_srcdir=$ac_pwd ;;
5269 [\\/]* | ?:[\\/]* ) # Absolute name.
5270 ac_srcdir=$srcdir$ac_dir_suffix;
5271 ac_top_srcdir=$srcdir
5272 ac_abs_top_srcdir=$srcdir ;;
5273 *) # Relative name.
5274 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5275 ac_top_srcdir=$ac_top_build_prefix$srcdir
5276 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5277 esac
5278 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5279
5280
5281 case $ac_mode in
5282 :F)
5283 #
5284 # CONFIG_FILE
5285 #
5286
5287 case $INSTALL in
5288 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5289 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5290 esac
5291 _ACEOF
5292
5293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5294 # If the template does not know about datarootdir, expand it.
5295 # FIXME: This hack should be removed a few years after 2.60.
5296 ac_datarootdir_hack=; ac_datarootdir_seen=
5297 ac_sed_dataroot='
5298 /datarootdir/ {
5299 p
5300 q
5301 }
5302 /@datadir@/p
5303 /@docdir@/p
5304 /@infodir@/p
5305 /@localedir@/p
5306 /@mandir@/p'
5307 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5308 *datarootdir*) ac_datarootdir_seen=yes;;
5309 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5311 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5312 _ACEOF
5313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5314 ac_datarootdir_hack='
5315 s&@datadir@&$datadir&g
5316 s&@docdir@&$docdir&g
5317 s&@infodir@&$infodir&g
5318 s&@localedir@&$localedir&g
5319 s&@mandir@&$mandir&g
5320 s&\\\${datarootdir}&$datarootdir&g' ;;
5321 esac
5322 _ACEOF
5323
5324 # Neutralize VPATH when `$srcdir' = `.'.
5325 # Shell code in configure.ac might set extrasub.
5326 # FIXME: do we really want to maintain this feature?
5327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5328 ac_sed_extra="$ac_vpsub
5329 $extrasub
5330 _ACEOF
5331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5332 :t
5333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5334 s|@configure_input@|$ac_sed_conf_input|;t t
5335 s&@top_builddir@&$ac_top_builddir_sub&;t t
5336 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5337 s&@srcdir@&$ac_srcdir&;t t
5338 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5339 s&@top_srcdir@&$ac_top_srcdir&;t t
5340 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5341 s&@builddir@&$ac_builddir&;t t
5342 s&@abs_builddir@&$ac_abs_builddir&;t t
5343 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5344 s&@INSTALL@&$ac_INSTALL&;t t
5345 $ac_datarootdir_hack
5346 "
5347 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5348 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5349
5350 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5351 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5352 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5353 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5355 which seems to be undefined. Please make sure it is defined" >&5
5356 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5357 which seems to be undefined. Please make sure it is defined" >&2;}
5358
5359 rm -f "$ac_tmp/stdin"
5360 case $ac_file in
5361 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5362 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5363 esac \
5364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5365 ;;
5366 :H)
5367 #
5368 # CONFIG_HEADER
5369 #
5370 if test x"$ac_file" != x-; then
5371 {
5372 printf "%s\n" "/* $configure_input */" >&1 \
5373 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5374 } >"$ac_tmp/config.h" \
5375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5376 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5378 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
5379 else
5380 rm -f "$ac_file"
5381 mv "$ac_tmp/config.h" "$ac_file" \
5382 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5383 fi
5384 else
5385 printf "%s\n" "/* $configure_input */" >&1 \
5386 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5387 || as_fn_error $? "could not create -" "$LINENO" 5
5388 fi
5389 ;;
5390
5391
5392 esac
5393
5394 done # for ac_tag
5395
5396
5397 as_fn_exit 0
5398 _ACEOF
5399 ac_clean_files=$ac_clean_files_save
5400
5401 test $ac_write_fail = 0 ||
5402 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5403
5404
5405 # configure is writing to config.log, and then calls config.status.
5406 # config.status does its own redirection, appending to config.log.
5407 # Unfortunately, on DOS this fails, as config.log is still kept open
5408 # by configure, so config.status won't be able to write to it; its
5409 # output is simply discarded. So we exec the FD to /dev/null,
5410 # effectively closing config.log, so it can be properly (re)opened and
5411 # appended to by config.status. When coming back to configure, we
5412 # need to make the FD available again.
5413 if test "$no_create" != yes; then
5414 ac_cs_success=:
5415 ac_config_status_args=
5416 test "$silent" = yes &&
5417 ac_config_status_args="$ac_config_status_args --quiet"
5418 exec 5>/dev/null
5419 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5420 exec 5>>config.log
5421 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5422 # would make configure fail if this is the last instruction.
5423 $ac_cs_success || as_fn_exit 1
5424 fi
5425 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5427 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5428 fi
5429
5430