Debian Codegraph @

x3270if/configure

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