Debian Codegraph @

lib/configure

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