xfail scan-tree-dump-not throw in g++.dg/pr99966.C on hppa*64*-*-*
[official-gcc.git] / gcc / m2 / gm2-libs / config-host
blobb98dd5081fbae8a0070b387e0476ca158c7d7b07
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ASCII.def 1.9.5.
5 # Report bugs to <gm2@nongnu.org>.
8 # Copyright (C) 1992-2024 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and gm2@nongnu.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='ASCII.def'
582 PACKAGE_TARNAME='ascii-def'
583 PACKAGE_VERSION='1.9.5'
584 PACKAGE_STRING='ASCII.def 1.9.5'
585 PACKAGE_BUGREPORT='gm2@nongnu.org'
586 PACKAGE_URL=''
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 # include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 # include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
624 ac_subst_vars='LTLIBOBJS
625 LIBOBJS
626 ALLOCA
627 EGREP
628 GREP
630 OBJEXT
631 EXEEXT
632 ac_ct_CC
633 CPPFLAGS
634 LDFLAGS
635 CFLAGS
637 target_alias
638 host_alias
639 build_alias
640 LIBS
641 ECHO_T
642 ECHO_N
643 ECHO_C
644 DEFS
645 mandir
646 localedir
647 libdir
648 psdir
649 pdfdir
650 dvidir
651 htmldir
652 infodir
653 docdir
654 oldincludedir
655 includedir
656 localstatedir
657 sharedstatedir
658 sysconfdir
659 datadir
660 datarootdir
661 libexecdir
662 sbindir
663 bindir
664 program_transform_name
665 prefix
666 exec_prefix
667 PACKAGE_URL
668 PACKAGE_BUGREPORT
669 PACKAGE_STRING
670 PACKAGE_VERSION
671 PACKAGE_TARNAME
672 PACKAGE_NAME
673 PATH_SEPARATOR
674 SHELL'
675 ac_subst_files=''
676 ac_user_opts='
677 enable_option_checking
679 ac_precious_vars='build_alias
680 host_alias
681 target_alias
683 CFLAGS
684 LDFLAGS
685 LIBS
686 CPPFLAGS
687 CPP'
690 # Initialize some variables set by options.
691 ac_init_help=
692 ac_init_version=false
693 ac_unrecognized_opts=
694 ac_unrecognized_sep=
695 # The variables have the same names as the options, with
696 # dashes changed to underlines.
697 cache_file=/dev/null
698 exec_prefix=NONE
699 no_create=
700 no_recursion=
701 prefix=NONE
702 program_prefix=NONE
703 program_suffix=NONE
704 program_transform_name=s,x,x,
705 silent=
706 site=
707 srcdir=
708 verbose=
709 x_includes=NONE
710 x_libraries=NONE
712 # Installation directory options.
713 # These are left unexpanded so users can "make install exec_prefix=/foo"
714 # and all the variables that are supposed to be based on exec_prefix
715 # by default will actually change.
716 # Use braces instead of parens because sh, perl, etc. also accept them.
717 # (The list follows the same order as the GNU Coding Standards.)
718 bindir='${exec_prefix}/bin'
719 sbindir='${exec_prefix}/sbin'
720 libexecdir='${exec_prefix}/libexec'
721 datarootdir='${prefix}/share'
722 datadir='${datarootdir}'
723 sysconfdir='${prefix}/etc'
724 sharedstatedir='${prefix}/com'
725 localstatedir='${prefix}/var'
726 includedir='${prefix}/include'
727 oldincludedir='/usr/include'
728 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
729 infodir='${datarootdir}/info'
730 htmldir='${docdir}'
731 dvidir='${docdir}'
732 pdfdir='${docdir}'
733 psdir='${docdir}'
734 libdir='${exec_prefix}/lib'
735 localedir='${datarootdir}/locale'
736 mandir='${datarootdir}/man'
738 ac_prev=
739 ac_dashdash=
740 for ac_option
742 # If the previous option needs an argument, assign it.
743 if test -n "$ac_prev"; then
744 eval $ac_prev=\$ac_option
745 ac_prev=
746 continue
749 case $ac_option in
750 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
751 *=) ac_optarg= ;;
752 *) ac_optarg=yes ;;
753 esac
755 # Accept the important Cygnus configure options, so we can diagnose typos.
757 case $ac_dashdash$ac_option in
759 ac_dashdash=yes ;;
761 -bindir | --bindir | --bindi | --bind | --bin | --bi)
762 ac_prev=bindir ;;
763 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
764 bindir=$ac_optarg ;;
766 -build | --build | --buil | --bui | --bu)
767 ac_prev=build_alias ;;
768 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
769 build_alias=$ac_optarg ;;
771 -cache-file | --cache-file | --cache-fil | --cache-fi \
772 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
773 ac_prev=cache_file ;;
774 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
775 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
776 cache_file=$ac_optarg ;;
778 --config-cache | -C)
779 cache_file=config.cache ;;
781 -datadir | --datadir | --datadi | --datad)
782 ac_prev=datadir ;;
783 -datadir=* | --datadir=* | --datadi=* | --datad=*)
784 datadir=$ac_optarg ;;
786 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
787 | --dataroo | --dataro | --datar)
788 ac_prev=datarootdir ;;
789 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
790 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
791 datarootdir=$ac_optarg ;;
793 -disable-* | --disable-*)
794 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795 # Reject names that are not valid shell variable names.
796 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
797 as_fn_error $? "invalid feature name: $ac_useropt"
798 ac_useropt_orig=$ac_useropt
799 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
800 case $ac_user_opts in
802 "enable_$ac_useropt"
803 "*) ;;
804 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
805 ac_unrecognized_sep=', ';;
806 esac
807 eval enable_$ac_useropt=no ;;
809 -docdir | --docdir | --docdi | --doc | --do)
810 ac_prev=docdir ;;
811 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
812 docdir=$ac_optarg ;;
814 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
815 ac_prev=dvidir ;;
816 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
817 dvidir=$ac_optarg ;;
819 -enable-* | --enable-*)
820 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
823 as_fn_error $? "invalid feature name: $ac_useropt"
824 ac_useropt_orig=$ac_useropt
825 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
826 case $ac_user_opts in
828 "enable_$ac_useropt"
829 "*) ;;
830 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
831 ac_unrecognized_sep=', ';;
832 esac
833 eval enable_$ac_useropt=\$ac_optarg ;;
835 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
836 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
837 | --exec | --exe | --ex)
838 ac_prev=exec_prefix ;;
839 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
840 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
841 | --exec=* | --exe=* | --ex=*)
842 exec_prefix=$ac_optarg ;;
844 -gas | --gas | --ga | --g)
845 # Obsolete; use --with-gas.
846 with_gas=yes ;;
848 -help | --help | --hel | --he | -h)
849 ac_init_help=long ;;
850 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
851 ac_init_help=recursive ;;
852 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
853 ac_init_help=short ;;
855 -host | --host | --hos | --ho)
856 ac_prev=host_alias ;;
857 -host=* | --host=* | --hos=* | --ho=*)
858 host_alias=$ac_optarg ;;
860 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
861 ac_prev=htmldir ;;
862 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
863 | --ht=*)
864 htmldir=$ac_optarg ;;
866 -includedir | --includedir | --includedi | --included | --include \
867 | --includ | --inclu | --incl | --inc)
868 ac_prev=includedir ;;
869 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
870 | --includ=* | --inclu=* | --incl=* | --inc=*)
871 includedir=$ac_optarg ;;
873 -infodir | --infodir | --infodi | --infod | --info | --inf)
874 ac_prev=infodir ;;
875 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
876 infodir=$ac_optarg ;;
878 -libdir | --libdir | --libdi | --libd)
879 ac_prev=libdir ;;
880 -libdir=* | --libdir=* | --libdi=* | --libd=*)
881 libdir=$ac_optarg ;;
883 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
884 | --libexe | --libex | --libe)
885 ac_prev=libexecdir ;;
886 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
887 | --libexe=* | --libex=* | --libe=*)
888 libexecdir=$ac_optarg ;;
890 -localedir | --localedir | --localedi | --localed | --locale)
891 ac_prev=localedir ;;
892 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
893 localedir=$ac_optarg ;;
895 -localstatedir | --localstatedir | --localstatedi | --localstated \
896 | --localstate | --localstat | --localsta | --localst | --locals)
897 ac_prev=localstatedir ;;
898 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
899 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
900 localstatedir=$ac_optarg ;;
902 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
903 ac_prev=mandir ;;
904 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
905 mandir=$ac_optarg ;;
907 -nfp | --nfp | --nf)
908 # Obsolete; use --without-fp.
909 with_fp=no ;;
911 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
912 | --no-cr | --no-c | -n)
913 no_create=yes ;;
915 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
916 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
917 no_recursion=yes ;;
919 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
920 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
921 | --oldin | --oldi | --old | --ol | --o)
922 ac_prev=oldincludedir ;;
923 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
924 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
925 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
926 oldincludedir=$ac_optarg ;;
928 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
929 ac_prev=prefix ;;
930 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
931 prefix=$ac_optarg ;;
933 -program-prefix | --program-prefix | --program-prefi | --program-pref \
934 | --program-pre | --program-pr | --program-p)
935 ac_prev=program_prefix ;;
936 -program-prefix=* | --program-prefix=* | --program-prefi=* \
937 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
938 program_prefix=$ac_optarg ;;
940 -program-suffix | --program-suffix | --program-suffi | --program-suff \
941 | --program-suf | --program-su | --program-s)
942 ac_prev=program_suffix ;;
943 -program-suffix=* | --program-suffix=* | --program-suffi=* \
944 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
945 program_suffix=$ac_optarg ;;
947 -program-transform-name | --program-transform-name \
948 | --program-transform-nam | --program-transform-na \
949 | --program-transform-n | --program-transform- \
950 | --program-transform | --program-transfor \
951 | --program-transfo | --program-transf \
952 | --program-trans | --program-tran \
953 | --progr-tra | --program-tr | --program-t)
954 ac_prev=program_transform_name ;;
955 -program-transform-name=* | --program-transform-name=* \
956 | --program-transform-nam=* | --program-transform-na=* \
957 | --program-transform-n=* | --program-transform-=* \
958 | --program-transform=* | --program-transfor=* \
959 | --program-transfo=* | --program-transf=* \
960 | --program-trans=* | --program-tran=* \
961 | --progr-tra=* | --program-tr=* | --program-t=*)
962 program_transform_name=$ac_optarg ;;
964 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
965 ac_prev=pdfdir ;;
966 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
967 pdfdir=$ac_optarg ;;
969 -psdir | --psdir | --psdi | --psd | --ps)
970 ac_prev=psdir ;;
971 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
972 psdir=$ac_optarg ;;
974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
975 | -silent | --silent | --silen | --sile | --sil)
976 silent=yes ;;
978 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
979 ac_prev=sbindir ;;
980 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
981 | --sbi=* | --sb=*)
982 sbindir=$ac_optarg ;;
984 -sharedstatedir | --sharedstatedir | --sharedstatedi \
985 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
986 | --sharedst | --shareds | --shared | --share | --shar \
987 | --sha | --sh)
988 ac_prev=sharedstatedir ;;
989 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
990 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
991 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
992 | --sha=* | --sh=*)
993 sharedstatedir=$ac_optarg ;;
995 -site | --site | --sit)
996 ac_prev=site ;;
997 -site=* | --site=* | --sit=*)
998 site=$ac_optarg ;;
1000 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1001 ac_prev=srcdir ;;
1002 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1003 srcdir=$ac_optarg ;;
1005 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1006 | --syscon | --sysco | --sysc | --sys | --sy)
1007 ac_prev=sysconfdir ;;
1008 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1009 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1010 sysconfdir=$ac_optarg ;;
1012 -target | --target | --targe | --targ | --tar | --ta | --t)
1013 ac_prev=target_alias ;;
1014 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1015 target_alias=$ac_optarg ;;
1017 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1018 verbose=yes ;;
1020 -version | --version | --versio | --versi | --vers | -V)
1021 ac_init_version=: ;;
1023 -with-* | --with-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid package name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "with_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval with_$ac_useropt=\$ac_optarg ;;
1039 -without-* | --without-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error $? "invalid package name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "with_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval with_$ac_useropt=no ;;
1055 --x)
1056 # Obsolete; use --with-x.
1057 with_x=yes ;;
1059 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1060 | --x-incl | --x-inc | --x-in | --x-i)
1061 ac_prev=x_includes ;;
1062 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1063 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1064 x_includes=$ac_optarg ;;
1066 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1067 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1068 ac_prev=x_libraries ;;
1069 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1070 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1071 x_libraries=$ac_optarg ;;
1073 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1074 Try \`$0 --help' for more information"
1077 *=*)
1078 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1079 # Reject names that are not valid shell variable names.
1080 case $ac_envvar in #(
1081 '' | [0-9]* | *[!_$as_cr_alnum]* )
1082 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1083 esac
1084 eval $ac_envvar=\$ac_optarg
1085 export $ac_envvar ;;
1088 # FIXME: should be removed in autoconf 3.0.
1089 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1090 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1091 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1092 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1095 esac
1096 done
1098 if test -n "$ac_prev"; then
1099 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1100 as_fn_error $? "missing argument to $ac_option"
1103 if test -n "$ac_unrecognized_opts"; then
1104 case $enable_option_checking in
1105 no) ;;
1106 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1107 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1108 esac
1111 # Check all directory arguments for consistency.
1112 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1113 datadir sysconfdir sharedstatedir localstatedir includedir \
1114 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1115 libdir localedir mandir
1117 eval ac_val=\$$ac_var
1118 # Remove trailing slashes.
1119 case $ac_val in
1120 */ )
1121 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1122 eval $ac_var=\$ac_val;;
1123 esac
1124 # Be sure to have absolute directory names.
1125 case $ac_val in
1126 [\\/$]* | ?:[\\/]* ) continue;;
1127 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1128 esac
1129 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1130 done
1132 # There might be people who depend on the old broken behavior: `$host'
1133 # used to hold the argument of --host etc.
1134 # FIXME: To remove some day.
1135 build=$build_alias
1136 host=$host_alias
1137 target=$target_alias
1139 # FIXME: To remove some day.
1140 if test "x$host_alias" != x; then
1141 if test "x$build_alias" = x; then
1142 cross_compiling=maybe
1143 elif test "x$build_alias" != "x$host_alias"; then
1144 cross_compiling=yes
1148 ac_tool_prefix=
1149 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1151 test "$silent" = yes && exec 6>/dev/null
1154 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1155 ac_ls_di=`ls -di .` &&
1156 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1157 as_fn_error $? "working directory cannot be determined"
1158 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1159 as_fn_error $? "pwd does not report name of working directory"
1162 # Find the source files, if location was not specified.
1163 if test -z "$srcdir"; then
1164 ac_srcdir_defaulted=yes
1165 # Try the directory containing this script, then the parent directory.
1166 ac_confdir=`$as_dirname -- "$as_myself" ||
1167 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1168 X"$as_myself" : 'X\(//\)[^/]' \| \
1169 X"$as_myself" : 'X\(//\)$' \| \
1170 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1171 $as_echo X"$as_myself" |
1172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1173 s//\1/
1176 /^X\(\/\/\)[^/].*/{
1177 s//\1/
1180 /^X\(\/\/\)$/{
1181 s//\1/
1184 /^X\(\/\).*/{
1185 s//\1/
1188 s/.*/./; q'`
1189 srcdir=$ac_confdir
1190 if test ! -r "$srcdir/$ac_unique_file"; then
1191 srcdir=..
1193 else
1194 ac_srcdir_defaulted=no
1196 if test ! -r "$srcdir/$ac_unique_file"; then
1197 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1198 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1200 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1201 ac_abs_confdir=`(
1202 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1203 pwd)`
1204 # When building in place, set srcdir=.
1205 if test "$ac_abs_confdir" = "$ac_pwd"; then
1206 srcdir=.
1208 # Remove unnecessary trailing slashes from srcdir.
1209 # Double slashes in file names in object file debugging info
1210 # mess up M-x gdb in Emacs.
1211 case $srcdir in
1212 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1213 esac
1214 for ac_var in $ac_precious_vars; do
1215 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1216 eval ac_env_${ac_var}_value=\$${ac_var}
1217 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1218 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1219 done
1222 # Report the --help message.
1224 if test "$ac_init_help" = "long"; then
1225 # Omit some internal or obsolete options to make the list less imposing.
1226 # This message is too long to be a string in the A/UX 3.1 sh.
1227 cat <<_ACEOF
1228 \`configure' configures ASCII.def 1.9.5 to adapt to many kinds of systems.
1230 Usage: $0 [OPTION]... [VAR=VALUE]...
1232 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1233 VAR=VALUE. See below for descriptions of some of the useful variables.
1235 Defaults for the options are specified in brackets.
1237 Configuration:
1238 -h, --help display this help and exit
1239 --help=short display options specific to this package
1240 --help=recursive display the short help of all the included packages
1241 -V, --version display version information and exit
1242 -q, --quiet, --silent do not print \`checking ...' messages
1243 --cache-file=FILE cache test results in FILE [disabled]
1244 -C, --config-cache alias for \`--cache-file=config.cache'
1245 -n, --no-create do not create output files
1246 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1248 Installation directories:
1249 --prefix=PREFIX install architecture-independent files in PREFIX
1250 [$ac_default_prefix]
1251 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1252 [PREFIX]
1254 By default, \`make install' will install all the files in
1255 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1256 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1257 for instance \`--prefix=\$HOME'.
1259 For better control, use the options below.
1261 Fine tuning of the installation directories:
1262 --bindir=DIR user executables [EPREFIX/bin]
1263 --sbindir=DIR system admin executables [EPREFIX/sbin]
1264 --libexecdir=DIR program executables [EPREFIX/libexec]
1265 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1266 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1267 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1268 --libdir=DIR object code libraries [EPREFIX/lib]
1269 --includedir=DIR C header files [PREFIX/include]
1270 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1271 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1272 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1273 --infodir=DIR info documentation [DATAROOTDIR/info]
1274 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1275 --mandir=DIR man documentation [DATAROOTDIR/man]
1276 --docdir=DIR documentation root [DATAROOTDIR/doc/ascii-def]
1277 --htmldir=DIR html documentation [DOCDIR]
1278 --dvidir=DIR dvi documentation [DOCDIR]
1279 --pdfdir=DIR pdf documentation [DOCDIR]
1280 --psdir=DIR ps documentation [DOCDIR]
1281 _ACEOF
1283 cat <<\_ACEOF
1284 _ACEOF
1287 if test -n "$ac_init_help"; then
1288 case $ac_init_help in
1289 short | recursive ) echo "Configuration of ASCII.def 1.9.5:";;
1290 esac
1291 cat <<\_ACEOF
1293 Some influential environment variables:
1294 CC C compiler command
1295 CFLAGS C compiler flags
1296 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1297 nonstandard directory <lib dir>
1298 LIBS libraries to pass to the linker, e.g. -l<library>
1299 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1300 you have headers in a nonstandard directory <include dir>
1301 CPP C preprocessor
1303 Use these variables to override the choices made by `configure' or to help
1304 it to find libraries and programs with nonstandard names/locations.
1306 Report bugs to <gm2@nongnu.org>.
1307 _ACEOF
1308 ac_status=$?
1311 if test "$ac_init_help" = "recursive"; then
1312 # If there are subdirs, report their specific --help.
1313 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1314 test -d "$ac_dir" ||
1315 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1316 continue
1317 ac_builddir=.
1319 case "$ac_dir" in
1320 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1322 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1323 # A ".." for each directory in $ac_dir_suffix.
1324 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1325 case $ac_top_builddir_sub in
1326 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1327 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1328 esac ;;
1329 esac
1330 ac_abs_top_builddir=$ac_pwd
1331 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1332 # for backward compatibility:
1333 ac_top_builddir=$ac_top_build_prefix
1335 case $srcdir in
1336 .) # We are building in place.
1337 ac_srcdir=.
1338 ac_top_srcdir=$ac_top_builddir_sub
1339 ac_abs_top_srcdir=$ac_pwd ;;
1340 [\\/]* | ?:[\\/]* ) # Absolute name.
1341 ac_srcdir=$srcdir$ac_dir_suffix;
1342 ac_top_srcdir=$srcdir
1343 ac_abs_top_srcdir=$srcdir ;;
1344 *) # Relative name.
1345 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1346 ac_top_srcdir=$ac_top_build_prefix$srcdir
1347 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1348 esac
1349 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1351 cd "$ac_dir" || { ac_status=$?; continue; }
1352 # Check for guested configure.
1353 if test -f "$ac_srcdir/configure.gnu"; then
1354 echo &&
1355 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1356 elif test -f "$ac_srcdir/configure"; then
1357 echo &&
1358 $SHELL "$ac_srcdir/configure" --help=recursive
1359 else
1360 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1361 fi || ac_status=$?
1362 cd "$ac_pwd" || { ac_status=$?; break; }
1363 done
1366 test -n "$ac_init_help" && exit $ac_status
1367 if $ac_init_version; then
1368 cat <<\_ACEOF
1369 ASCII.def configure 1.9.5
1370 generated by GNU Autoconf 2.69
1372 Copyright (C) 2012-2024 Free Software Foundation, Inc.
1373 This configure script is free software; the Free Software Foundation
1374 gives unlimited permission to copy, distribute and modify it.
1375 _ACEOF
1376 exit
1379 ## ------------------------ ##
1380 ## Autoconf initialization. ##
1381 ## ------------------------ ##
1383 # ac_fn_c_try_compile LINENO
1384 # --------------------------
1385 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1386 ac_fn_c_try_compile ()
1388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1389 rm -f conftest.$ac_objext
1390 if { { ac_try="$ac_compile"
1391 case "(($ac_try" in
1392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1393 *) ac_try_echo=$ac_try;;
1394 esac
1395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1396 $as_echo "$ac_try_echo"; } >&5
1397 (eval "$ac_compile") 2>conftest.err
1398 ac_status=$?
1399 if test -s conftest.err; then
1400 grep -v '^ *+' conftest.err >conftest.er1
1401 cat conftest.er1 >&5
1402 mv -f conftest.er1 conftest.err
1404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1405 test $ac_status = 0; } && {
1406 test -z "$ac_c_werror_flag" ||
1407 test ! -s conftest.err
1408 } && test -s conftest.$ac_objext; then :
1409 ac_retval=0
1410 else
1411 $as_echo "$as_me: failed program was:" >&5
1412 sed 's/^/| /' conftest.$ac_ext >&5
1414 ac_retval=1
1416 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1417 as_fn_set_status $ac_retval
1419 } # ac_fn_c_try_compile
1421 # ac_fn_c_try_cpp LINENO
1422 # ----------------------
1423 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1424 ac_fn_c_try_cpp ()
1426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1427 if { { ac_try="$ac_cpp conftest.$ac_ext"
1428 case "(($ac_try" in
1429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1430 *) ac_try_echo=$ac_try;;
1431 esac
1432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1433 $as_echo "$ac_try_echo"; } >&5
1434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1435 ac_status=$?
1436 if test -s conftest.err; then
1437 grep -v '^ *+' conftest.err >conftest.er1
1438 cat conftest.er1 >&5
1439 mv -f conftest.er1 conftest.err
1441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1442 test $ac_status = 0; } > conftest.i && {
1443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1444 test ! -s conftest.err
1445 }; then :
1446 ac_retval=0
1447 else
1448 $as_echo "$as_me: failed program was:" >&5
1449 sed 's/^/| /' conftest.$ac_ext >&5
1451 ac_retval=1
1453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1454 as_fn_set_status $ac_retval
1456 } # ac_fn_c_try_cpp
1458 # ac_fn_c_try_run LINENO
1459 # ----------------------
1460 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1461 # that executables *can* be run.
1462 ac_fn_c_try_run ()
1464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1465 if { { ac_try="$ac_link"
1466 case "(($ac_try" in
1467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1468 *) ac_try_echo=$ac_try;;
1469 esac
1470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1471 $as_echo "$ac_try_echo"; } >&5
1472 (eval "$ac_link") 2>&5
1473 ac_status=$?
1474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1475 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1476 { { case "(($ac_try" in
1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478 *) ac_try_echo=$ac_try;;
1479 esac
1480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481 $as_echo "$ac_try_echo"; } >&5
1482 (eval "$ac_try") 2>&5
1483 ac_status=$?
1484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1485 test $ac_status = 0; }; }; then :
1486 ac_retval=0
1487 else
1488 $as_echo "$as_me: program exited with status $ac_status" >&5
1489 $as_echo "$as_me: failed program was:" >&5
1490 sed 's/^/| /' conftest.$ac_ext >&5
1492 ac_retval=$ac_status
1494 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1496 as_fn_set_status $ac_retval
1498 } # ac_fn_c_try_run
1500 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1501 # -------------------------------------------------------
1502 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1503 # the include files in INCLUDES and setting the cache variable VAR
1504 # accordingly.
1505 ac_fn_c_check_header_mongrel ()
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 if eval \${$3+:} false; then :
1509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1510 $as_echo_n "checking for $2... " >&6; }
1511 if eval \${$3+:} false; then :
1512 $as_echo_n "(cached) " >&6
1514 eval ac_res=\$$3
1515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1516 $as_echo "$ac_res" >&6; }
1517 else
1518 # Is the header compilable?
1519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1520 $as_echo_n "checking $2 usability... " >&6; }
1521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1522 /* end confdefs.h. */
1524 #include <$2>
1525 _ACEOF
1526 if ac_fn_c_try_compile "$LINENO"; then :
1527 ac_header_compiler=yes
1528 else
1529 ac_header_compiler=no
1531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1533 $as_echo "$ac_header_compiler" >&6; }
1535 # Is the header present?
1536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1537 $as_echo_n "checking $2 presence... " >&6; }
1538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1539 /* end confdefs.h. */
1540 #include <$2>
1541 _ACEOF
1542 if ac_fn_c_try_cpp "$LINENO"; then :
1543 ac_header_preproc=yes
1544 else
1545 ac_header_preproc=no
1547 rm -f conftest.err conftest.i conftest.$ac_ext
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1549 $as_echo "$ac_header_preproc" >&6; }
1551 # So? What about this header?
1552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1553 yes:no: )
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1555 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1557 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1559 no:yes:* )
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1561 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1563 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1565 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1567 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1569 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1570 ( $as_echo "## ----------------------------- ##
1571 ## Report this to gm2@nongnu.org ##
1572 ## ----------------------------- ##"
1573 ) | sed "s/^/$as_me: WARNING: /" >&2
1575 esac
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1577 $as_echo_n "checking for $2... " >&6; }
1578 if eval \${$3+:} false; then :
1579 $as_echo_n "(cached) " >&6
1580 else
1581 eval "$3=\$ac_header_compiler"
1583 eval ac_res=\$$3
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1585 $as_echo "$ac_res" >&6; }
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 } # ac_fn_c_check_header_mongrel
1591 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1592 # -------------------------------------------------------
1593 # Tests whether HEADER exists and can be compiled using the include files in
1594 # INCLUDES, setting the cache variable VAR accordingly.
1595 ac_fn_c_check_header_compile ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599 $as_echo_n "checking for $2... " >&6; }
1600 if eval \${$3+:} false; then :
1601 $as_echo_n "(cached) " >&6
1602 else
1603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604 /* end confdefs.h. */
1606 #include <$2>
1607 _ACEOF
1608 if ac_fn_c_try_compile "$LINENO"; then :
1609 eval "$3=yes"
1610 else
1611 eval "$3=no"
1613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1615 eval ac_res=\$$3
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1617 $as_echo "$ac_res" >&6; }
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 } # ac_fn_c_check_header_compile
1622 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1623 # -------------------------------------------
1624 # Tests whether TYPE exists after having included INCLUDES, setting cache
1625 # variable VAR accordingly.
1626 ac_fn_c_check_type ()
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if eval \${$3+:} false; then :
1632 $as_echo_n "(cached) " >&6
1633 else
1634 eval "$3=no"
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1639 main ()
1641 if (sizeof ($2))
1642 return 0;
1644 return 0;
1646 _ACEOF
1647 if ac_fn_c_try_compile "$LINENO"; then :
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1652 main ()
1654 if (sizeof (($2)))
1655 return 0;
1657 return 0;
1659 _ACEOF
1660 if ac_fn_c_try_compile "$LINENO"; then :
1662 else
1663 eval "$3=yes"
1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669 eval ac_res=\$$3
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 } # ac_fn_c_check_type
1676 # ac_fn_c_try_link LINENO
1677 # -----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_link ()
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext conftest$ac_exeext
1683 if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest$ac_exeext && {
1702 test "$cross_compiling" = yes ||
1703 test -x conftest$ac_exeext
1704 }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1710 ac_retval=1
1712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1714 # interfere with the next link command; also delete a directory that is
1715 # left behind by Apple's compiler. We do this before executing the actions.
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1720 } # ac_fn_c_try_link
1722 # ac_fn_c_check_func LINENO FUNC VAR
1723 # ----------------------------------
1724 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725 ac_fn_c_check_func ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1732 else
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737 #define $2 innocuous_$2
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $2 (); below.
1741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742 <limits.h> exists even on freestanding compilers. */
1744 #ifdef __STDC__
1745 # include <limits.h>
1746 #else
1747 # include <assert.h>
1748 #endif
1750 #undef $2
1752 /* Override any GCC internal prototype to avoid an error.
1753 Use char because int might match the return type of a GCC
1754 builtin and then its argument prototype would still apply. */
1755 #ifdef __cplusplus
1756 extern "C"
1757 #endif
1758 char $2 ();
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined __stub_$2 || defined __stub___$2
1763 choke me
1764 #endif
1767 main ()
1769 return $2 ();
1771 return 0;
1773 _ACEOF
1774 if ac_fn_c_try_link "$LINENO"; then :
1775 eval "$3=yes"
1776 else
1777 eval "$3=no"
1779 rm -f core conftest.err conftest.$ac_objext \
1780 conftest$ac_exeext conftest.$ac_ext
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 } # ac_fn_c_check_func
1789 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1790 # --------------------------------------------
1791 # Tries to find the compile-time value of EXPR in a program that includes
1792 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1793 # computed
1794 ac_fn_c_compute_int ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if test "$cross_compiling" = yes; then
1798 # Depending upon the size, compute the lo and hi bounds.
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1803 main ()
1805 static int test_array [1 - 2 * !(($2) >= 0)];
1806 test_array [0] = 0;
1807 return test_array [0];
1810 return 0;
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"; then :
1814 ac_lo=0 ac_mid=0
1815 while :; do
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1820 main ()
1822 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1823 test_array [0] = 0;
1824 return test_array [0];
1827 return 0;
1829 _ACEOF
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831 ac_hi=$ac_mid; break
1832 else
1833 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1834 if test $ac_lo -le $ac_mid; then
1835 ac_lo= ac_hi=
1836 break
1838 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 done
1842 else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1847 main ()
1849 static int test_array [1 - 2 * !(($2) < 0)];
1850 test_array [0] = 0;
1851 return test_array [0];
1854 return 0;
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 ac_hi=-1 ac_mid=-1
1859 while :; do
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1864 main ()
1866 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1867 test_array [0] = 0;
1868 return test_array [0];
1871 return 0;
1873 _ACEOF
1874 if ac_fn_c_try_compile "$LINENO"; then :
1875 ac_lo=$ac_mid; break
1876 else
1877 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1878 if test $ac_mid -le $ac_hi; then
1879 ac_lo= ac_hi=
1880 break
1882 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885 done
1886 else
1887 ac_lo= ac_hi=
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1892 # Binary search between lo and hi bounds.
1893 while test "x$ac_lo" != "x$ac_hi"; do
1894 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1899 main ()
1901 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1902 test_array [0] = 0;
1903 return test_array [0];
1906 return 0;
1908 _ACEOF
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910 ac_hi=$ac_mid
1911 else
1912 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915 done
1916 case $ac_lo in #((
1917 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1918 '') ac_retval=1 ;;
1919 esac
1920 else
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1924 static long int longval () { return $2; }
1925 static unsigned long int ulongval () { return $2; }
1926 #include <stdio.h>
1927 #include <stdlib.h>
1929 main ()
1932 FILE *f = fopen ("conftest.val", "w");
1933 if (! f)
1934 return 1;
1935 if (($2) < 0)
1937 long int i = longval ();
1938 if (i != ($2))
1939 return 1;
1940 fprintf (f, "%ld", i);
1942 else
1944 unsigned long int i = ulongval ();
1945 if (i != ($2))
1946 return 1;
1947 fprintf (f, "%lu", i);
1949 /* Do not output a trailing newline, as this causes \r\n confusion
1950 on some platforms. */
1951 return ferror (f) || fclose (f) != 0;
1954 return 0;
1956 _ACEOF
1957 if ac_fn_c_try_run "$LINENO"; then :
1958 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1959 else
1960 ac_retval=1
1962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1963 conftest.$ac_objext conftest.beam conftest.$ac_ext
1964 rm -f conftest.val
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
1970 } # ac_fn_c_compute_int
1971 cat >config.log <<_ACEOF
1972 This file contains any messages produced by compilers while
1973 running configure, to aid debugging if configure makes a mistake.
1975 It was created by ASCII.def $as_me 1.9.5, which was
1976 generated by GNU Autoconf 2.69. Invocation command line was
1978 $ $0 $@
1980 _ACEOF
1981 exec 5>>config.log
1983 cat <<_ASUNAME
1984 ## --------- ##
1985 ## Platform. ##
1986 ## --------- ##
1988 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1989 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1990 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1991 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1992 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1995 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1997 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1998 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1999 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2000 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2001 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2002 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2003 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2005 _ASUNAME
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 $as_echo "PATH: $as_dir"
2013 done
2014 IFS=$as_save_IFS
2016 } >&5
2018 cat >&5 <<_ACEOF
2021 ## ----------- ##
2022 ## Core tests. ##
2023 ## ----------- ##
2025 _ACEOF
2028 # Keep a trace of the command line.
2029 # Strip out --no-create and --no-recursion so they do not pile up.
2030 # Strip out --silent because we don't want to record it for future runs.
2031 # Also quote any args containing shell meta-characters.
2032 # Make two passes to allow for proper duplicate-argument suppression.
2033 ac_configure_args=
2034 ac_configure_args0=
2035 ac_configure_args1=
2036 ac_must_keep_next=false
2037 for ac_pass in 1 2
2039 for ac_arg
2041 case $ac_arg in
2042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2044 | -silent | --silent | --silen | --sile | --sil)
2045 continue ;;
2046 *\'*)
2047 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2048 esac
2049 case $ac_pass in
2050 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2052 as_fn_append ac_configure_args1 " '$ac_arg'"
2053 if test $ac_must_keep_next = true; then
2054 ac_must_keep_next=false # Got value, back to normal.
2055 else
2056 case $ac_arg in
2057 *=* | --config-cache | -C | -disable-* | --disable-* \
2058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2060 | -with-* | --with-* | -without-* | --without-* | --x)
2061 case "$ac_configure_args0 " in
2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2063 esac
2065 -* ) ac_must_keep_next=true ;;
2066 esac
2068 as_fn_append ac_configure_args " '$ac_arg'"
2070 esac
2071 done
2072 done
2073 { ac_configure_args0=; unset ac_configure_args0;}
2074 { ac_configure_args1=; unset ac_configure_args1;}
2076 # When interrupted or exit'd, cleanup temporary files, and complete
2077 # config.log. We remove comments because anyway the quotes in there
2078 # would cause problems or look ugly.
2079 # WARNING: Use '\'' to represent an apostrophe within the trap.
2080 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2081 trap 'exit_status=$?
2082 # Save into config.log some information that might help in debugging.
2084 echo
2086 $as_echo "## ---------------- ##
2087 ## Cache variables. ##
2088 ## ---------------- ##"
2089 echo
2090 # The following way of writing the cache mishandles newlines in values,
2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in #(
2095 *${as_nl}*)
2096 case $ac_var in #(
2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2099 esac
2100 case $ac_var in #(
2101 _ | IFS | as_nl) ;; #(
2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2103 *) { eval $ac_var=; unset $ac_var;} ;;
2104 esac ;;
2105 esac
2106 done
2107 (set) 2>&1 |
2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2109 *${as_nl}ac_space=\ *)
2110 sed -n \
2111 "s/'\''/'\''\\\\'\'''\''/g;
2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2113 ;; #(
2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2117 esac |
2118 sort
2120 echo
2122 $as_echo "## ----------------- ##
2123 ## Output variables. ##
2124 ## ----------------- ##"
2125 echo
2126 for ac_var in $ac_subst_vars
2128 eval ac_val=\$$ac_var
2129 case $ac_val in
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 esac
2132 $as_echo "$ac_var='\''$ac_val'\''"
2133 done | sort
2134 echo
2136 if test -n "$ac_subst_files"; then
2137 $as_echo "## ------------------- ##
2138 ## File substitutions. ##
2139 ## ------------------- ##"
2140 echo
2141 for ac_var in $ac_subst_files
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2152 if test -s confdefs.h; then
2153 $as_echo "## ----------- ##
2154 ## confdefs.h. ##
2155 ## ----------- ##"
2156 echo
2157 cat confdefs.h
2158 echo
2160 test "$ac_signal" != 0 &&
2161 $as_echo "$as_me: caught signal $ac_signal"
2162 $as_echo "$as_me: exit $exit_status"
2163 } >&5
2164 rm -f core *.core core.conftest.* &&
2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2166 exit $exit_status
2168 for ac_signal in 1 2 13 15; do
2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2170 done
2171 ac_signal=0
2173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2174 rm -f -r conftest* confdefs.h
2176 $as_echo "/* confdefs.h */" > confdefs.h
2178 # Predefined preprocessor variables.
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_NAME "$PACKAGE_NAME"
2182 _ACEOF
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2186 _ACEOF
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2190 _ACEOF
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_STRING "$PACKAGE_STRING"
2194 _ACEOF
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2198 _ACEOF
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_URL "$PACKAGE_URL"
2202 _ACEOF
2205 # Let the site file select an alternate cache file if it wants to.
2206 # Prefer an explicitly selected file to automatically selected ones.
2207 ac_site_file1=NONE
2208 ac_site_file2=NONE
2209 if test -n "$CONFIG_SITE"; then
2210 # We do not want a PATH search for config.site.
2211 case $CONFIG_SITE in #((
2212 -*) ac_site_file1=./$CONFIG_SITE;;
2213 */*) ac_site_file1=$CONFIG_SITE;;
2214 *) ac_site_file1=./$CONFIG_SITE;;
2215 esac
2216 elif test "x$prefix" != xNONE; then
2217 ac_site_file1=$prefix/share/config.site
2218 ac_site_file2=$prefix/etc/config.site
2219 else
2220 ac_site_file1=$ac_default_prefix/share/config.site
2221 ac_site_file2=$ac_default_prefix/etc/config.site
2223 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2225 test "x$ac_site_file" = xNONE && continue
2226 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2228 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2229 sed 's/^/| /' "$ac_site_file" >&5
2230 . "$ac_site_file" \
2231 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233 as_fn_error $? "failed to load site script $ac_site_file
2234 See \`config.log' for more details" "$LINENO" 5; }
2236 done
2238 if test -r "$cache_file"; then
2239 # Some versions of bash will fail to source /dev/null (special files
2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2241 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243 $as_echo "$as_me: loading cache $cache_file" >&6;}
2244 case $cache_file in
2245 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2246 *) . "./$cache_file";;
2247 esac
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251 $as_echo "$as_me: creating cache $cache_file" >&6;}
2252 >$cache_file
2255 # Check that the precious variables saved in the cache have kept the same
2256 # value.
2257 ac_cache_corrupted=false
2258 for ac_var in $ac_precious_vars; do
2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260 eval ac_new_set=\$ac_env_${ac_var}_set
2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262 eval ac_new_val=\$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2264 set,)
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted=: ;;
2268 ,set)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,);;
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w=`echo x $ac_old_val`
2277 ac_new_val_w=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted=:
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\$ac_old_val
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2291 fi;;
2292 esac
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2295 case $ac_new_val in
2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg=$ac_var=$ac_new_val ;;
2298 esac
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2302 esac
2304 done
2305 if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2312 ## -------------------- ##
2313 ## Main body of script. ##
2314 ## -------------------- ##
2316 ac_ext=c
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323 ac_config_headers="$ac_config_headers gm2-libs-host.h:gm2-libs-host.h.in"
2326 # Checks for programs.
2328 # Checks for libraries.
2330 # Checks for header files.
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 if test -n "$ac_tool_prefix"; then
2337 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2338 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2340 $as_echo_n "checking for $ac_word... " >&6; }
2341 if ${ac_cv_prog_CC+:} false; then :
2342 $as_echo_n "(cached) " >&6
2343 else
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 break 2
2358 done
2359 done
2360 IFS=$as_save_IFS
2364 CC=$ac_cv_prog_CC
2365 if test -n "$CC"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2367 $as_echo "$CC" >&6; }
2368 else
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2370 $as_echo "no" >&6; }
2375 if test -z "$ac_cv_prog_CC"; then
2376 ac_ct_CC=$CC
2377 # Extract the first word of "gcc", so it can be a program name with args.
2378 set dummy gcc; ac_word=$2
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2380 $as_echo_n "checking for $ac_word... " >&6; }
2381 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2382 $as_echo_n "(cached) " >&6
2383 else
2384 if test -n "$ac_ct_CC"; then
2385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2394 ac_cv_prog_ac_ct_CC="gcc"
2395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2398 done
2399 done
2400 IFS=$as_save_IFS
2404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 if test -n "$ac_ct_CC"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2407 $as_echo "$ac_ct_CC" >&6; }
2408 else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2410 $as_echo "no" >&6; }
2413 if test "x$ac_ct_CC" = x; then
2414 CC=""
2415 else
2416 case $cross_compiling:$ac_tool_warned in
2417 yes:)
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2420 ac_tool_warned=yes ;;
2421 esac
2422 CC=$ac_ct_CC
2424 else
2425 CC="$ac_cv_prog_CC"
2428 if test -z "$CC"; then
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2431 set dummy ${ac_tool_prefix}cc; ac_word=$2
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2433 $as_echo_n "checking for $ac_word... " >&6; }
2434 if ${ac_cv_prog_CC+:} false; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_CC="${ac_tool_prefix}cc"
2448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2451 done
2452 done
2453 IFS=$as_save_IFS
2457 CC=$ac_cv_prog_CC
2458 if test -n "$CC"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2460 $as_echo "$CC" >&6; }
2461 else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463 $as_echo "no" >&6; }
2469 if test -z "$CC"; then
2470 # Extract the first word of "cc", so it can be a program name with args.
2471 set dummy cc; ac_word=$2
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473 $as_echo_n "checking for $ac_word... " >&6; }
2474 if ${ac_cv_prog_CC+:} false; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC="$CC" # Let the user override the test.
2479 else
2480 ac_prog_rejected=no
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2489 ac_prog_rejected=yes
2490 continue
2492 ac_cv_prog_CC="cc"
2493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2496 done
2497 done
2498 IFS=$as_save_IFS
2500 if test $ac_prog_rejected = yes; then
2501 # We found a bogon in the path, so make sure we never use it.
2502 set dummy $ac_cv_prog_CC
2503 shift
2504 if test $# != 0; then
2505 # We chose a different compiler from the bogus one.
2506 # However, it has the same basename, so the bogon will be chosen
2507 # first if we set CC to just the basename; use the full file name.
2508 shift
2509 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2514 CC=$ac_cv_prog_CC
2515 if test -n "$CC"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2517 $as_echo "$CC" >&6; }
2518 else
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520 $as_echo "no" >&6; }
2525 if test -z "$CC"; then
2526 if test -n "$ac_tool_prefix"; then
2527 for ac_prog in cl.exe
2529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532 $as_echo_n "checking for $ac_word... " >&6; }
2533 if ${ac_cv_prog_CC+:} false; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2550 done
2551 done
2552 IFS=$as_save_IFS
2556 CC=$ac_cv_prog_CC
2557 if test -n "$CC"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2559 $as_echo "$CC" >&6; }
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562 $as_echo "no" >&6; }
2566 test -n "$CC" && break
2567 done
2569 if test -z "$CC"; then
2570 ac_ct_CC=$CC
2571 for ac_prog in cl.exe
2573 # Extract the first word of "$ac_prog", so it can be a program name with args.
2574 set dummy $ac_prog; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 if test -n "$ac_ct_CC"; then
2581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590 ac_cv_prog_ac_ct_CC="$ac_prog"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2594 done
2595 done
2596 IFS=$as_save_IFS
2600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2601 if test -n "$ac_ct_CC"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2603 $as_echo "$ac_ct_CC" >&6; }
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2610 test -n "$ac_ct_CC" && break
2611 done
2613 if test "x$ac_ct_CC" = x; then
2614 CC=""
2615 else
2616 case $cross_compiling:$ac_tool_warned in
2617 yes:)
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2620 ac_tool_warned=yes ;;
2621 esac
2622 CC=$ac_ct_CC
2629 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2631 as_fn_error $? "no acceptable C compiler found in \$PATH
2632 See \`config.log' for more details" "$LINENO" 5; }
2634 # Provide some information about the compiler.
2635 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2636 set X $ac_compile
2637 ac_compiler=$2
2638 for ac_option in --version -v -V -qversion; do
2639 { { ac_try="$ac_compiler $ac_option >&5"
2640 case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643 esac
2644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2645 $as_echo "$ac_try_echo"; } >&5
2646 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2647 ac_status=$?
2648 if test -s conftest.err; then
2649 sed '10a\
2650 ... rest of stderr output deleted ...
2651 10q' conftest.err >conftest.er1
2652 cat conftest.er1 >&5
2654 rm -f conftest.er1 conftest.err
2655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2656 test $ac_status = 0; }
2657 done
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660 /* end confdefs.h. */
2663 main ()
2667 return 0;
2669 _ACEOF
2670 ac_clean_files_save=$ac_clean_files
2671 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2672 # Try to create an executable without -o first, disregard a.out.
2673 # It will help us diagnose broken compilers, and finding out an intuition
2674 # of exeext.
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2676 $as_echo_n "checking whether the C compiler works... " >&6; }
2677 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2679 # The possible output files:
2680 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2682 ac_rmfiles=
2683 for ac_file in $ac_files
2685 case $ac_file in
2686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2687 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2688 esac
2689 done
2690 rm -f $ac_rmfiles
2692 if { { ac_try="$ac_link_default"
2693 case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696 esac
2697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2698 $as_echo "$ac_try_echo"; } >&5
2699 (eval "$ac_link_default") 2>&5
2700 ac_status=$?
2701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702 test $ac_status = 0; }; then :
2703 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2704 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2705 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2706 # so that the user can short-circuit this test for compilers unknown to
2707 # Autoconf.
2708 for ac_file in $ac_files ''
2710 test -f "$ac_file" || continue
2711 case $ac_file in
2712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2714 [ab].out )
2715 # We found the default executable, but exeext='' is most
2716 # certainly right.
2717 break;;
2718 *.* )
2719 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2720 then :; else
2721 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2723 # We set ac_cv_exeext here because the later test for it is not
2724 # safe: cross compilers may not add the suffix if given an `-o'
2725 # argument, so we may need to know it at that point already.
2726 # Even if this section looks crufty: it has the advantage of
2727 # actually working.
2728 break;;
2730 break;;
2731 esac
2732 done
2733 test "$ac_cv_exeext" = no && ac_cv_exeext=
2735 else
2736 ac_file=''
2738 if test -z "$ac_file"; then :
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2741 $as_echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2746 as_fn_error 77 "C compiler cannot create executables
2747 See \`config.log' for more details" "$LINENO" 5; }
2748 else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2750 $as_echo "yes" >&6; }
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2753 $as_echo_n "checking for C compiler default output file name... " >&6; }
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2755 $as_echo "$ac_file" >&6; }
2756 ac_exeext=$ac_cv_exeext
2758 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2759 ac_clean_files=$ac_clean_files_save
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2761 $as_echo_n "checking for suffix of executables... " >&6; }
2762 if { { ac_try="$ac_link"
2763 case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766 esac
2767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2768 $as_echo "$ac_try_echo"; } >&5
2769 (eval "$ac_link") 2>&5
2770 ac_status=$?
2771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2772 test $ac_status = 0; }; then :
2773 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2774 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2775 # work properly (i.e., refer to `conftest.exe'), while it won't with
2776 # `rm'.
2777 for ac_file in conftest.exe conftest conftest.*; do
2778 test -f "$ac_file" || continue
2779 case $ac_file in
2780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2781 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2782 break;;
2783 * ) break;;
2784 esac
2785 done
2786 else
2787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2790 See \`config.log' for more details" "$LINENO" 5; }
2792 rm -f conftest conftest$ac_cv_exeext
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2794 $as_echo "$ac_cv_exeext" >&6; }
2796 rm -f conftest.$ac_ext
2797 EXEEXT=$ac_cv_exeext
2798 ac_exeext=$EXEEXT
2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800 /* end confdefs.h. */
2801 #include <stdio.h>
2803 main ()
2805 FILE *f = fopen ("conftest.out", "w");
2806 return ferror (f) || fclose (f) != 0;
2809 return 0;
2811 _ACEOF
2812 ac_clean_files="$ac_clean_files conftest.out"
2813 # Check that the compiler produces executables we can run. If not, either
2814 # the compiler is broken, or we cross compile.
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2816 $as_echo_n "checking whether we are cross compiling... " >&6; }
2817 if test "$cross_compiling" != yes; then
2818 { { ac_try="$ac_link"
2819 case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822 esac
2823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2824 $as_echo "$ac_try_echo"; } >&5
2825 (eval "$ac_link") 2>&5
2826 ac_status=$?
2827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2828 test $ac_status = 0; }
2829 if { ac_try='./conftest$ac_cv_exeext'
2830 { { case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833 esac
2834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2835 $as_echo "$ac_try_echo"; } >&5
2836 (eval "$ac_try") 2>&5
2837 ac_status=$?
2838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2839 test $ac_status = 0; }; }; then
2840 cross_compiling=no
2841 else
2842 if test "$cross_compiling" = maybe; then
2843 cross_compiling=yes
2844 else
2845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2847 as_fn_error $? "cannot run C compiled programs.
2848 If you meant to cross compile, use \`--host'.
2849 See \`config.log' for more details" "$LINENO" 5; }
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2854 $as_echo "$cross_compiling" >&6; }
2856 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2857 ac_clean_files=$ac_clean_files_save
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2859 $as_echo_n "checking for suffix of object files... " >&6; }
2860 if ${ac_cv_objext+:} false; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864 /* end confdefs.h. */
2867 main ()
2871 return 0;
2873 _ACEOF
2874 rm -f conftest.o conftest.obj
2875 if { { ac_try="$ac_compile"
2876 case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879 esac
2880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2881 $as_echo "$ac_try_echo"; } >&5
2882 (eval "$ac_compile") 2>&5
2883 ac_status=$?
2884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2885 test $ac_status = 0; }; then :
2886 for ac_file in conftest.o conftest.obj conftest.*; do
2887 test -f "$ac_file" || continue;
2888 case $ac_file in
2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2890 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2891 break;;
2892 esac
2893 done
2894 else
2895 $as_echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2900 as_fn_error $? "cannot compute suffix of object files: cannot compile
2901 See \`config.log' for more details" "$LINENO" 5; }
2903 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2906 $as_echo "$ac_cv_objext" >&6; }
2907 OBJEXT=$ac_cv_objext
2908 ac_objext=$OBJEXT
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2910 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2911 if ${ac_cv_c_compiler_gnu+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915 /* end confdefs.h. */
2918 main ()
2920 #ifndef __GNUC__
2921 choke me
2922 #endif
2925 return 0;
2927 _ACEOF
2928 if ac_fn_c_try_compile "$LINENO"; then :
2929 ac_compiler_gnu=yes
2930 else
2931 ac_compiler_gnu=no
2933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2934 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2938 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2939 if test $ac_compiler_gnu = yes; then
2940 GCC=yes
2941 else
2942 GCC=
2944 ac_test_CFLAGS=${CFLAGS+set}
2945 ac_save_CFLAGS=$CFLAGS
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2947 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2948 if ${ac_cv_prog_cc_g+:} false; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 ac_save_c_werror_flag=$ac_c_werror_flag
2952 ac_c_werror_flag=yes
2953 ac_cv_prog_cc_g=no
2954 CFLAGS="-g"
2955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2956 /* end confdefs.h. */
2959 main ()
2963 return 0;
2965 _ACEOF
2966 if ac_fn_c_try_compile "$LINENO"; then :
2967 ac_cv_prog_cc_g=yes
2968 else
2969 CFLAGS=""
2970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971 /* end confdefs.h. */
2974 main ()
2978 return 0;
2980 _ACEOF
2981 if ac_fn_c_try_compile "$LINENO"; then :
2983 else
2984 ac_c_werror_flag=$ac_save_c_werror_flag
2985 CFLAGS="-g"
2986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2987 /* end confdefs.h. */
2990 main ()
2994 return 0;
2996 _ACEOF
2997 if ac_fn_c_try_compile "$LINENO"; then :
2998 ac_cv_prog_cc_g=yes
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 ac_c_werror_flag=$ac_save_c_werror_flag
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3008 $as_echo "$ac_cv_prog_cc_g" >&6; }
3009 if test "$ac_test_CFLAGS" = set; then
3010 CFLAGS=$ac_save_CFLAGS
3011 elif test $ac_cv_prog_cc_g = yes; then
3012 if test "$GCC" = yes; then
3013 CFLAGS="-g -O2"
3014 else
3015 CFLAGS="-g"
3017 else
3018 if test "$GCC" = yes; then
3019 CFLAGS="-O2"
3020 else
3021 CFLAGS=
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3025 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3026 if ${ac_cv_prog_cc_c89+:} false; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 ac_cv_prog_cc_c89=no
3030 ac_save_CC=$CC
3031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3032 /* end confdefs.h. */
3033 #include <stdarg.h>
3034 #include <stdio.h>
3035 struct stat;
3036 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3037 struct buf { int x; };
3038 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3039 static char *e (p, i)
3040 char **p;
3041 int i;
3043 return p[i];
3045 static char *f (char * (*g) (char **, int), char **p, ...)
3047 char *s;
3048 va_list v;
3049 va_start (v,p);
3050 s = g (p, va_arg (v,int));
3051 va_end (v);
3052 return s;
3055 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3056 function prototypes and stuff, but not '\xHH' hex character constants.
3057 These don't provoke an error unfortunately, instead are silently treated
3058 as 'x'. The following induces an error, until -std is added to get
3059 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3060 array size at least. It's necessary to write '\x00'==0 to get something
3061 that's true only with -std. */
3062 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3064 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3065 inside strings and character constants. */
3066 #define FOO(x) 'x'
3067 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3069 int test (int i, double x);
3070 struct s1 {int (*f) (int a);};
3071 struct s2 {int (*f) (double a);};
3072 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3073 int argc;
3074 char **argv;
3076 main ()
3078 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3080 return 0;
3082 _ACEOF
3083 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3084 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3086 CC="$ac_save_CC $ac_arg"
3087 if ac_fn_c_try_compile "$LINENO"; then :
3088 ac_cv_prog_cc_c89=$ac_arg
3090 rm -f core conftest.err conftest.$ac_objext
3091 test "x$ac_cv_prog_cc_c89" != "xno" && break
3092 done
3093 rm -f conftest.$ac_ext
3094 CC=$ac_save_CC
3097 # AC_CACHE_VAL
3098 case "x$ac_cv_prog_cc_c89" in
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3101 $as_echo "none needed" >&6; } ;;
3102 xno)
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3104 $as_echo "unsupported" >&6; } ;;
3106 CC="$CC $ac_cv_prog_cc_c89"
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3108 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3109 esac
3110 if test "x$ac_cv_prog_cc_c89" != xno; then :
3114 ac_ext=c
3115 ac_cpp='$CPP $CPPFLAGS'
3116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121 ac_ext=c
3122 ac_cpp='$CPP $CPPFLAGS'
3123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3127 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3128 # On Suns, sometimes $CPP names a directory.
3129 if test -n "$CPP" && test -d "$CPP"; then
3130 CPP=
3132 if test -z "$CPP"; then
3133 if ${ac_cv_prog_CPP+:} false; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 # Double quotes because CPP needs to be expanded
3137 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3139 ac_preproc_ok=false
3140 for ac_c_preproc_warn_flag in '' yes
3142 # Use a header file that comes with gcc, so configuring glibc
3143 # with a fresh cross-compiler works.
3144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3145 # <limits.h> exists even on freestanding compilers.
3146 # On the NeXT, cc -E runs the code through the compiler's parser,
3147 # not just through cpp. "Syntax error" is here to catch this case.
3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149 /* end confdefs.h. */
3150 #ifdef __STDC__
3151 # include <limits.h>
3152 #else
3153 # include <assert.h>
3154 #endif
3155 Syntax error
3156 _ACEOF
3157 if ac_fn_c_try_cpp "$LINENO"; then :
3159 else
3160 # Broken: fails on valid input.
3161 continue
3163 rm -f conftest.err conftest.i conftest.$ac_ext
3165 # OK, works on sane cases. Now check whether nonexistent headers
3166 # can be detected and how.
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h. */
3169 #include <ac_nonexistent.h>
3170 _ACEOF
3171 if ac_fn_c_try_cpp "$LINENO"; then :
3172 # Broken: success on invalid input.
3173 continue
3174 else
3175 # Passes both tests.
3176 ac_preproc_ok=:
3177 break
3179 rm -f conftest.err conftest.i conftest.$ac_ext
3181 done
3182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3183 rm -f conftest.i conftest.err conftest.$ac_ext
3184 if $ac_preproc_ok; then :
3185 break
3188 done
3189 ac_cv_prog_CPP=$CPP
3192 CPP=$ac_cv_prog_CPP
3193 else
3194 ac_cv_prog_CPP=$CPP
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3197 $as_echo "$CPP" >&6; }
3198 ac_preproc_ok=false
3199 for ac_c_preproc_warn_flag in '' yes
3201 # Use a header file that comes with gcc, so configuring glibc
3202 # with a fresh cross-compiler works.
3203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3204 # <limits.h> exists even on freestanding compilers.
3205 # On the NeXT, cc -E runs the code through the compiler's parser,
3206 # not just through cpp. "Syntax error" is here to catch this case.
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208 /* end confdefs.h. */
3209 #ifdef __STDC__
3210 # include <limits.h>
3211 #else
3212 # include <assert.h>
3213 #endif
3214 Syntax error
3215 _ACEOF
3216 if ac_fn_c_try_cpp "$LINENO"; then :
3218 else
3219 # Broken: fails on valid input.
3220 continue
3222 rm -f conftest.err conftest.i conftest.$ac_ext
3224 # OK, works on sane cases. Now check whether nonexistent headers
3225 # can be detected and how.
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3228 #include <ac_nonexistent.h>
3229 _ACEOF
3230 if ac_fn_c_try_cpp "$LINENO"; then :
3231 # Broken: success on invalid input.
3232 continue
3233 else
3234 # Passes both tests.
3235 ac_preproc_ok=:
3236 break
3238 rm -f conftest.err conftest.i conftest.$ac_ext
3240 done
3241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3242 rm -f conftest.i conftest.err conftest.$ac_ext
3243 if $ac_preproc_ok; then :
3245 else
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3249 See \`config.log' for more details" "$LINENO" 5; }
3252 ac_ext=c
3253 ac_cpp='$CPP $CPPFLAGS'
3254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3260 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3261 if ${ac_cv_path_GREP+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test -z "$GREP"; then
3265 ac_path_GREP_found=false
3266 # Loop through the user's path and test for each of PROGNAME-LIST
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_prog in grep ggrep; do
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3275 as_fn_executable_p "$ac_path_GREP" || continue
3276 # Check for GNU ac_path_GREP and select it if it is found.
3277 # Check for GNU $ac_path_GREP
3278 case `"$ac_path_GREP" --version 2>&1` in
3279 *GNU*)
3280 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3282 ac_count=0
3283 $as_echo_n 0123456789 >"conftest.in"
3284 while :
3286 cat "conftest.in" "conftest.in" >"conftest.tmp"
3287 mv "conftest.tmp" "conftest.in"
3288 cp "conftest.in" "conftest.nl"
3289 $as_echo 'GREP' >> "conftest.nl"
3290 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3292 as_fn_arith $ac_count + 1 && ac_count=$as_val
3293 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3294 # Best one so far, save it but keep looking for a better one
3295 ac_cv_path_GREP="$ac_path_GREP"
3296 ac_path_GREP_max=$ac_count
3298 # 10*(2^10) chars as input seems more than enough
3299 test $ac_count -gt 10 && break
3300 done
3301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3302 esac
3304 $ac_path_GREP_found && break 3
3305 done
3306 done
3307 done
3308 IFS=$as_save_IFS
3309 if test -z "$ac_cv_path_GREP"; then
3310 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3312 else
3313 ac_cv_path_GREP=$GREP
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3318 $as_echo "$ac_cv_path_GREP" >&6; }
3319 GREP="$ac_cv_path_GREP"
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3323 $as_echo_n "checking for egrep... " >&6; }
3324 if ${ac_cv_path_EGREP+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3328 then ac_cv_path_EGREP="$GREP -E"
3329 else
3330 if test -z "$EGREP"; then
3331 ac_path_EGREP_found=false
3332 # Loop through the user's path and test for each of PROGNAME-LIST
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 for ac_prog in egrep; do
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3341 as_fn_executable_p "$ac_path_EGREP" || continue
3342 # Check for GNU ac_path_EGREP and select it if it is found.
3343 # Check for GNU $ac_path_EGREP
3344 case `"$ac_path_EGREP" --version 2>&1` in
3345 *GNU*)
3346 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3348 ac_count=0
3349 $as_echo_n 0123456789 >"conftest.in"
3350 while :
3352 cat "conftest.in" "conftest.in" >"conftest.tmp"
3353 mv "conftest.tmp" "conftest.in"
3354 cp "conftest.in" "conftest.nl"
3355 $as_echo 'EGREP' >> "conftest.nl"
3356 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3357 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3358 as_fn_arith $ac_count + 1 && ac_count=$as_val
3359 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3360 # Best one so far, save it but keep looking for a better one
3361 ac_cv_path_EGREP="$ac_path_EGREP"
3362 ac_path_EGREP_max=$ac_count
3364 # 10*(2^10) chars as input seems more than enough
3365 test $ac_count -gt 10 && break
3366 done
3367 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3368 esac
3370 $ac_path_EGREP_found && break 3
3371 done
3372 done
3373 done
3374 IFS=$as_save_IFS
3375 if test -z "$ac_cv_path_EGREP"; then
3376 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3378 else
3379 ac_cv_path_EGREP=$EGREP
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3385 $as_echo "$ac_cv_path_EGREP" >&6; }
3386 EGREP="$ac_cv_path_EGREP"
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3390 $as_echo_n "checking for ANSI C header files... " >&6; }
3391 if ${ac_cv_header_stdc+:} false; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3396 #include <stdlib.h>
3397 #include <stdarg.h>
3398 #include <string.h>
3399 #include <float.h>
3402 main ()
3406 return 0;
3408 _ACEOF
3409 if ac_fn_c_try_compile "$LINENO"; then :
3410 ac_cv_header_stdc=yes
3411 else
3412 ac_cv_header_stdc=no
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 if test $ac_cv_header_stdc = yes; then
3417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3420 #include <string.h>
3422 _ACEOF
3423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3424 $EGREP "memchr" >/dev/null 2>&1; then :
3426 else
3427 ac_cv_header_stdc=no
3429 rm -f conftest*
3433 if test $ac_cv_header_stdc = yes; then
3434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3437 #include <stdlib.h>
3439 _ACEOF
3440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3441 $EGREP "free" >/dev/null 2>&1; then :
3443 else
3444 ac_cv_header_stdc=no
3446 rm -f conftest*
3450 if test $ac_cv_header_stdc = yes; then
3451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3452 if test "$cross_compiling" = yes; then :
3454 else
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3457 #include <ctype.h>
3458 #include <stdlib.h>
3459 #if ((' ' & 0x0FF) == 0x020)
3460 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3461 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3462 #else
3463 # define ISLOWER(c) \
3464 (('a' <= (c) && (c) <= 'i') \
3465 || ('j' <= (c) && (c) <= 'r') \
3466 || ('s' <= (c) && (c) <= 'z'))
3467 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3468 #endif
3470 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3472 main ()
3474 int i;
3475 for (i = 0; i < 256; i++)
3476 if (XOR (islower (i), ISLOWER (i))
3477 || toupper (i) != TOUPPER (i))
3478 return 2;
3479 return 0;
3481 _ACEOF
3482 if ac_fn_c_try_run "$LINENO"; then :
3484 else
3485 ac_cv_header_stdc=no
3487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3488 conftest.$ac_objext conftest.beam conftest.$ac_ext
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3494 $as_echo "$ac_cv_header_stdc" >&6; }
3495 if test $ac_cv_header_stdc = yes; then
3497 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
3502 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
3503 if ${ac_cv_header_time+:} false; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3508 #include <sys/types.h>
3509 #include <sys/time.h>
3510 #include <time.h>
3513 main ()
3515 if ((struct tm *) 0)
3516 return 0;
3518 return 0;
3520 _ACEOF
3521 if ac_fn_c_try_compile "$LINENO"; then :
3522 ac_cv_header_time=yes
3523 else
3524 ac_cv_header_time=no
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
3529 $as_echo "$ac_cv_header_time" >&6; }
3530 if test $ac_cv_header_time = yes; then
3532 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
3537 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3538 if ${ac_cv_header_sys_wait_h+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543 #include <sys/types.h>
3544 #include <sys/wait.h>
3545 #ifndef WEXITSTATUS
3546 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3547 #endif
3548 #ifndef WIFEXITED
3549 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3550 #endif
3553 main ()
3555 int s;
3556 wait (&s);
3557 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3559 return 0;
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563 ac_cv_header_sys_wait_h=yes
3564 else
3565 ac_cv_header_sys_wait_h=no
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
3570 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3571 if test $ac_cv_header_sys_wait_h = yes; then
3573 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
3577 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3578 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3579 inttypes.h stdint.h unistd.h
3580 do :
3581 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3582 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3584 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3585 cat >>confdefs.h <<_ACEOF
3586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3587 _ACEOF
3591 done
3594 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
3595 if test "x$ac_cv_header_math_h" = xyes; then :
3597 $as_echo "#define HAVE_MATH_H 1" >>confdefs.h
3603 for ac_header in limits.h stddef.h string.h strings.h stdlib.h \
3604 time.h \
3605 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
3606 sys/resource.h sys/param.h sys/times.h sys/stat.h \
3607 sys/wait.h sys/ioctl.h errno.h sys/errno.h \
3608 pwd.h direct.h dirent.h signal.h malloc.h langinfo.h \
3609 pthread.h stdarg.h stdio.h sys/types.h termios.h \
3610 netinet/in.h netdb.h
3611 do :
3612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3613 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3614 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3615 cat >>confdefs.h <<_ACEOF
3616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3617 _ACEOF
3621 done
3624 # Checks for typedefs, structures, and compiler characteristics.
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
3627 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
3628 if ${ac_cv_header_stat_broken+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633 #include <sys/types.h>
3634 #include <sys/stat.h>
3636 #if defined S_ISBLK && defined S_IFDIR
3637 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
3638 #endif
3640 #if defined S_ISBLK && defined S_IFCHR
3641 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
3642 #endif
3644 #if defined S_ISLNK && defined S_IFREG
3645 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
3646 #endif
3648 #if defined S_ISSOCK && defined S_IFREG
3649 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
3650 #endif
3652 _ACEOF
3653 if ac_fn_c_try_compile "$LINENO"; then :
3654 ac_cv_header_stat_broken=no
3655 else
3656 ac_cv_header_stat_broken=yes
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
3661 $as_echo "$ac_cv_header_stat_broken" >&6; }
3662 if test $ac_cv_header_stat_broken = yes; then
3664 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
3669 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
3670 if ${ac_cv_struct_tm+:} false; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3675 #include <sys/types.h>
3676 #include <time.h>
3679 main ()
3681 struct tm tm;
3682 int *p = &tm.tm_sec;
3683 return !p;
3685 return 0;
3687 _ACEOF
3688 if ac_fn_c_try_compile "$LINENO"; then :
3689 ac_cv_struct_tm=time.h
3690 else
3691 ac_cv_struct_tm=sys/time.h
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
3696 $as_echo "$ac_cv_struct_tm" >&6; }
3697 if test $ac_cv_struct_tm = sys/time.h; then
3699 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
3703 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3704 if test "x$ac_cv_type_size_t" = xyes; then :
3706 else
3708 cat >>confdefs.h <<_ACEOF
3709 #define size_t unsigned int
3710 _ACEOF
3714 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3715 # for constant arguments. Useless!
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
3717 $as_echo_n "checking for working alloca.h... " >&6; }
3718 if ${ac_cv_working_alloca_h+:} false; then :
3719 $as_echo_n "(cached) " >&6
3720 else
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3723 #include <alloca.h>
3725 main ()
3727 char *p = (char *) alloca (2 * sizeof (int));
3728 if (p) return 0;
3730 return 0;
3732 _ACEOF
3733 if ac_fn_c_try_link "$LINENO"; then :
3734 ac_cv_working_alloca_h=yes
3735 else
3736 ac_cv_working_alloca_h=no
3738 rm -f core conftest.err conftest.$ac_objext \
3739 conftest$ac_exeext conftest.$ac_ext
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
3742 $as_echo "$ac_cv_working_alloca_h" >&6; }
3743 if test $ac_cv_working_alloca_h = yes; then
3745 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
3750 $as_echo_n "checking for alloca... " >&6; }
3751 if ${ac_cv_func_alloca_works+:} false; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3756 #ifdef __GNUC__
3757 # define alloca __builtin_alloca
3758 #else
3759 # ifdef _MSC_VER
3760 # include <malloc.h>
3761 # define alloca _alloca
3762 # else
3763 # ifdef HAVE_ALLOCA_H
3764 # include <alloca.h>
3765 # else
3766 # ifdef _AIX
3767 #pragma alloca
3768 # else
3769 # ifndef alloca /* predefined by HP cc +Olibcalls */
3770 void *alloca (size_t);
3771 # endif
3772 # endif
3773 # endif
3774 # endif
3775 #endif
3778 main ()
3780 char *p = (char *) alloca (1);
3781 if (p) return 0;
3783 return 0;
3785 _ACEOF
3786 if ac_fn_c_try_link "$LINENO"; then :
3787 ac_cv_func_alloca_works=yes
3788 else
3789 ac_cv_func_alloca_works=no
3791 rm -f core conftest.err conftest.$ac_objext \
3792 conftest$ac_exeext conftest.$ac_ext
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
3795 $as_echo "$ac_cv_func_alloca_works" >&6; }
3797 if test $ac_cv_func_alloca_works = yes; then
3799 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
3801 else
3802 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3803 # that cause trouble. Some versions do not even contain alloca or
3804 # contain a buggy version. If you still want to use their alloca,
3805 # use ar to extract alloca.o from them instead of compiling alloca.c.
3807 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
3809 $as_echo "#define C_ALLOCA 1" >>confdefs.h
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
3813 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
3814 if ${ac_cv_os_cray+:} false; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819 #if defined CRAY && ! defined CRAY2
3820 webecray
3821 #else
3822 wenotbecray
3823 #endif
3825 _ACEOF
3826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827 $EGREP "webecray" >/dev/null 2>&1; then :
3828 ac_cv_os_cray=yes
3829 else
3830 ac_cv_os_cray=no
3832 rm -f conftest*
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
3836 $as_echo "$ac_cv_os_cray" >&6; }
3837 if test $ac_cv_os_cray = yes; then
3838 for ac_func in _getb67 GETB67 getb67; do
3839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3841 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3843 cat >>confdefs.h <<_ACEOF
3844 #define CRAY_STACKSEG_END $ac_func
3845 _ACEOF
3847 break
3850 done
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
3854 $as_echo_n "checking stack direction for C alloca... " >&6; }
3855 if ${ac_cv_c_stack_direction+:} false; then :
3856 $as_echo_n "(cached) " >&6
3857 else
3858 if test "$cross_compiling" = yes; then :
3859 ac_cv_c_stack_direction=0
3860 else
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3863 $ac_includes_default
3865 find_stack_direction (int *addr, int depth)
3867 int dir, dummy = 0;
3868 if (! addr)
3869 addr = &dummy;
3870 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
3871 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
3872 return dir + dummy;
3876 main (int argc, char **argv)
3878 return find_stack_direction (0, argc + !argv + 20) < 0;
3880 _ACEOF
3881 if ac_fn_c_try_run "$LINENO"; then :
3882 ac_cv_c_stack_direction=1
3883 else
3884 ac_cv_c_stack_direction=-1
3886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3887 conftest.$ac_objext conftest.beam conftest.$ac_ext
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
3892 $as_echo "$ac_cv_c_stack_direction" >&6; }
3893 cat >>confdefs.h <<_ACEOF
3894 #define STACK_DIRECTION $ac_cv_c_stack_direction
3895 _ACEOF
3900 for ac_header in sys/select.h sys/socket.h
3901 do :
3902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3903 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3904 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3905 cat >>confdefs.h <<_ACEOF
3906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3907 _ACEOF
3911 done
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
3914 $as_echo_n "checking types of arguments for select... " >&6; }
3915 if ${ac_cv_func_select_args+:} false; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
3919 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
3920 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 $ac_includes_default
3924 #ifdef HAVE_SYS_SELECT_H
3925 # include <sys/select.h>
3926 #endif
3927 #ifdef HAVE_SYS_SOCKET_H
3928 # include <sys/socket.h>
3929 #endif
3932 main ()
3934 extern int select ($ac_arg1,
3935 $ac_arg234, $ac_arg234, $ac_arg234,
3936 $ac_arg5);
3938 return 0;
3940 _ACEOF
3941 if ac_fn_c_try_compile "$LINENO"; then :
3942 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 done
3946 done
3947 done
3948 # Provide a safe default value.
3949 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
3953 $as_echo "$ac_cv_func_select_args" >&6; }
3954 ac_save_IFS=$IFS; IFS=','
3955 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
3956 IFS=$ac_save_IFS
3957 shift
3959 cat >>confdefs.h <<_ACEOF
3960 #define SELECT_TYPE_ARG1 $1
3961 _ACEOF
3964 cat >>confdefs.h <<_ACEOF
3965 #define SELECT_TYPE_ARG234 ($2)
3966 _ACEOF
3969 cat >>confdefs.h <<_ACEOF
3970 #define SELECT_TYPE_ARG5 ($3)
3971 _ACEOF
3973 rm -f conftest*
3976 # Checks for library functions.
3978 for ac_func in ctime
3979 do :
3980 ac_fn_c_check_func "$LINENO" "ctime" "ac_cv_func_ctime"
3981 if test "x$ac_cv_func_ctime" = xyes; then :
3982 cat >>confdefs.h <<_ACEOF
3983 #define HAVE_CTIME 1
3984 _ACEOF
3987 done
3989 for ac_func in rand
3990 do :
3991 ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand"
3992 if test "x$ac_cv_func_rand" = xyes; then :
3993 cat >>confdefs.h <<_ACEOF
3994 #define HAVE_RAND 1
3995 _ACEOF
3998 done
4000 for ac_func in fstat
4001 do :
4002 ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
4003 if test "x$ac_cv_func_fstat" = xyes; then :
4004 cat >>confdefs.h <<_ACEOF
4005 #define HAVE_FSTAT 1
4006 _ACEOF
4009 done
4011 for ac_func in select
4012 do :
4013 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
4014 if test "x$ac_cv_func_select" = xyes; then :
4015 cat >>confdefs.h <<_ACEOF
4016 #define HAVE_SELECT 1
4017 _ACEOF
4020 done
4022 for ac_func in strsignal
4023 do :
4024 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
4025 if test "x$ac_cv_func_strsignal" = xyes; then :
4026 cat >>confdefs.h <<_ACEOF
4027 #define HAVE_STRSIGNAL 1
4028 _ACEOF
4031 done
4033 for ac_func in strtod
4034 do :
4035 ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
4036 if test "x$ac_cv_func_strtod" = xyes; then :
4037 cat >>confdefs.h <<_ACEOF
4038 #define HAVE_STRTOD 1
4039 _ACEOF
4042 done
4044 for ac_func in strtold
4045 do :
4046 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
4047 if test "x$ac_cv_func_strtold" = xyes; then :
4048 cat >>confdefs.h <<_ACEOF
4049 #define HAVE_STRTOLD 1
4050 _ACEOF
4053 done
4055 for ac_func in cfmakeraw
4056 do :
4057 ac_fn_c_check_func "$LINENO" "cfmakeraw" "ac_cv_func_cfmakeraw"
4058 if test "x$ac_cv_func_cfmakeraw" = xyes; then :
4059 cat >>confdefs.h <<_ACEOF
4060 #define HAVE_CFMAKERAW 1
4061 _ACEOF
4064 done
4068 # library functions (used by gm2-libs and ulm-lib-gm2)
4069 # the results of this configuration are process by
4070 # tools-src/createUlmSys in order to produce the runtime system
4071 # interface.
4073 for ac_func in access
4074 do :
4075 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
4076 if test "x$ac_cv_func_access" = xyes; then :
4077 cat >>confdefs.h <<_ACEOF
4078 #define HAVE_ACCESS 1
4079 _ACEOF
4082 done
4084 for ac_func in brk
4085 do :
4086 ac_fn_c_check_func "$LINENO" "brk" "ac_cv_func_brk"
4087 if test "x$ac_cv_func_brk" = xyes; then :
4088 cat >>confdefs.h <<_ACEOF
4089 #define HAVE_BRK 1
4090 _ACEOF
4093 done
4095 for ac_func in close
4096 do :
4097 ac_fn_c_check_func "$LINENO" "close" "ac_cv_func_close"
4098 if test "x$ac_cv_func_close" = xyes; then :
4099 cat >>confdefs.h <<_ACEOF
4100 #define HAVE_CLOSE 1
4101 _ACEOF
4104 done
4106 for ac_func in creat
4107 do :
4108 ac_fn_c_check_func "$LINENO" "creat" "ac_cv_func_creat"
4109 if test "x$ac_cv_func_creat" = xyes; then :
4110 cat >>confdefs.h <<_ACEOF
4111 #define HAVE_CREAT 1
4112 _ACEOF
4115 done
4117 for ac_func in dup
4118 do :
4119 ac_fn_c_check_func "$LINENO" "dup" "ac_cv_func_dup"
4120 if test "x$ac_cv_func_dup" = xyes; then :
4121 cat >>confdefs.h <<_ACEOF
4122 #define HAVE_DUP 1
4123 _ACEOF
4126 done
4128 for ac_func in execve
4129 do :
4130 ac_fn_c_check_func "$LINENO" "execve" "ac_cv_func_execve"
4131 if test "x$ac_cv_func_execve" = xyes; then :
4132 cat >>confdefs.h <<_ACEOF
4133 #define HAVE_EXECVE 1
4134 _ACEOF
4137 done
4139 for ac_func in exit
4140 do :
4141 ac_fn_c_check_func "$LINENO" "exit" "ac_cv_func_exit"
4142 if test "x$ac_cv_func_exit" = xyes; then :
4143 cat >>confdefs.h <<_ACEOF
4144 #define HAVE_EXIT 1
4145 _ACEOF
4148 done
4150 for ac_func in fcntl
4151 do :
4152 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
4153 if test "x$ac_cv_func_fcntl" = xyes; then :
4154 cat >>confdefs.h <<_ACEOF
4155 #define HAVE_FCNTL 1
4156 _ACEOF
4159 done
4161 for ac_func in fstat
4162 do :
4163 ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
4164 if test "x$ac_cv_func_fstat" = xyes; then :
4165 cat >>confdefs.h <<_ACEOF
4166 #define HAVE_FSTAT 1
4167 _ACEOF
4170 done
4172 for ac_func in getdents
4173 do :
4174 ac_fn_c_check_func "$LINENO" "getdents" "ac_cv_func_getdents"
4175 if test "x$ac_cv_func_getdents" = xyes; then :
4176 cat >>confdefs.h <<_ACEOF
4177 #define HAVE_GETDENTS 1
4178 _ACEOF
4181 done
4183 for ac_func in getgid
4184 do :
4185 ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
4186 if test "x$ac_cv_func_getgid" = xyes; then :
4187 cat >>confdefs.h <<_ACEOF
4188 #define HAVE_GETGID 1
4189 _ACEOF
4192 done
4194 for ac_func in getpid
4195 do :
4196 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
4197 if test "x$ac_cv_func_getpid" = xyes; then :
4198 cat >>confdefs.h <<_ACEOF
4199 #define HAVE_GETPID 1
4200 _ACEOF
4203 done
4205 for ac_func in gettimeofday
4206 do :
4207 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
4208 if test "x$ac_cv_func_gettimeofday" = xyes; then :
4209 cat >>confdefs.h <<_ACEOF
4210 #define HAVE_GETTIMEOFDAY 1
4211 _ACEOF
4214 done
4216 for ac_func in getuid
4217 do :
4218 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
4219 if test "x$ac_cv_func_getuid" = xyes; then :
4220 cat >>confdefs.h <<_ACEOF
4221 #define HAVE_GETUID 1
4222 _ACEOF
4225 done
4227 for ac_func in ioctl
4228 do :
4229 ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
4230 if test "x$ac_cv_func_ioctl" = xyes; then :
4231 cat >>confdefs.h <<_ACEOF
4232 #define HAVE_IOCTL 1
4233 _ACEOF
4236 done
4238 for ac_func in kill
4239 do :
4240 ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill"
4241 if test "x$ac_cv_func_kill" = xyes; then :
4242 cat >>confdefs.h <<_ACEOF
4243 #define HAVE_KILL 1
4244 _ACEOF
4247 done
4249 for ac_func in link
4250 do :
4251 ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"
4252 if test "x$ac_cv_func_link" = xyes; then :
4253 cat >>confdefs.h <<_ACEOF
4254 #define HAVE_LINK 1
4255 _ACEOF
4258 done
4260 for ac_func in lseek
4261 do :
4262 ac_fn_c_check_func "$LINENO" "lseek" "ac_cv_func_lseek"
4263 if test "x$ac_cv_func_lseek" = xyes; then :
4264 cat >>confdefs.h <<_ACEOF
4265 #define HAVE_LSEEK 1
4266 _ACEOF
4269 done
4271 for ac_func in open
4272 do :
4273 ac_fn_c_check_func "$LINENO" "open" "ac_cv_func_open"
4274 if test "x$ac_cv_func_open" = xyes; then :
4275 cat >>confdefs.h <<_ACEOF
4276 #define HAVE_OPEN 1
4277 _ACEOF
4280 done
4282 for ac_func in pause
4283 do :
4284 ac_fn_c_check_func "$LINENO" "pause" "ac_cv_func_pause"
4285 if test "x$ac_cv_func_pause" = xyes; then :
4286 cat >>confdefs.h <<_ACEOF
4287 #define HAVE_PAUSE 1
4288 _ACEOF
4291 done
4293 for ac_func in pipe
4294 do :
4295 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
4296 if test "x$ac_cv_func_pipe" = xyes; then :
4297 cat >>confdefs.h <<_ACEOF
4298 #define HAVE_PIPE 1
4299 _ACEOF
4302 done
4304 for ac_func in read
4305 do :
4306 ac_fn_c_check_func "$LINENO" "read" "ac_cv_func_read"
4307 if test "x$ac_cv_func_read" = xyes; then :
4308 cat >>confdefs.h <<_ACEOF
4309 #define HAVE_READ 1
4310 _ACEOF
4313 done
4315 for ac_func in setitimer
4316 do :
4317 ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
4318 if test "x$ac_cv_func_setitimer" = xyes; then :
4319 cat >>confdefs.h <<_ACEOF
4320 #define HAVE_SETITIMER 1
4321 _ACEOF
4324 done
4326 for ac_func in setgid
4327 do :
4328 ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid"
4329 if test "x$ac_cv_func_setgid" = xyes; then :
4330 cat >>confdefs.h <<_ACEOF
4331 #define HAVE_SETGID 1
4332 _ACEOF
4335 done
4337 for ac_func in setuid
4338 do :
4339 ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
4340 if test "x$ac_cv_func_setuid" = xyes; then :
4341 cat >>confdefs.h <<_ACEOF
4342 #define HAVE_SETUID 1
4343 _ACEOF
4346 done
4348 for ac_func in stat
4349 do :
4350 ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat"
4351 if test "x$ac_cv_func_stat" = xyes; then :
4352 cat >>confdefs.h <<_ACEOF
4353 #define HAVE_STAT 1
4354 _ACEOF
4357 done
4359 for ac_func in times
4360 do :
4361 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
4362 if test "x$ac_cv_func_times" = xyes; then :
4363 cat >>confdefs.h <<_ACEOF
4364 #define HAVE_TIMES 1
4365 _ACEOF
4368 done
4370 for ac_func in unlink
4371 do :
4372 ac_fn_c_check_func "$LINENO" "unlink" "ac_cv_func_unlink"
4373 if test "x$ac_cv_func_unlink" = xyes; then :
4374 cat >>confdefs.h <<_ACEOF
4375 #define HAVE_UNLINK 1
4376 _ACEOF
4379 done
4381 for ac_func in wait
4382 do :
4383 ac_fn_c_check_func "$LINENO" "wait" "ac_cv_func_wait"
4384 if test "x$ac_cv_func_wait" = xyes; then :
4385 cat >>confdefs.h <<_ACEOF
4386 #define HAVE_WAIT 1
4387 _ACEOF
4390 done
4392 for ac_func in write
4393 do :
4394 ac_fn_c_check_func "$LINENO" "write" "ac_cv_func_write"
4395 if test "x$ac_cv_func_write" = xyes; then :
4396 cat >>confdefs.h <<_ACEOF
4397 #define HAVE_WRITE 1
4398 _ACEOF
4401 done
4406 # The cast to long int works around a bug in the HP C Compiler
4407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4409 # This bug is HP SR number 8606223364.
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4411 $as_echo_n "checking size of long... " >&6; }
4412 if ${ac_cv_sizeof_long+:} false; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
4417 else
4418 if test "$ac_cv_type_long" = yes; then
4419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4421 as_fn_error 77 "cannot compute sizeof (long)
4422 See \`config.log' for more details" "$LINENO" 5; }
4423 else
4424 ac_cv_sizeof_long=0
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4430 $as_echo "$ac_cv_sizeof_long" >&6; }
4434 cat >>confdefs.h <<_ACEOF
4435 #define SIZEOF_LONG $ac_cv_sizeof_long
4436 _ACEOF
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
4441 $as_echo_n "checking for struct timeval... " >&6; }
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4444 #ifdef TIME_WITH_SYS_TIME
4445 #include <sys/time.h>
4446 #include <time.h>
4447 #else
4448 #ifdef HAVE_SYS_TIME_H
4449 #include <sys/time.h>
4450 #else
4451 #include <time.h>
4452 #endif
4453 #endif
4455 main ()
4457 static struct timeval x; x.tv_sec = x.tv_usec;
4459 return 0;
4461 _ACEOF
4462 if ac_fn_c_try_compile "$LINENO"; then :
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4464 $as_echo "yes" >&6; }
4465 HAVE_TIMEVAL=yes
4467 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
4469 else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 HAVE_TIMEVAL=no
4474 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480 # AC_CHECK_TYPES(time_t)
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp10 in -lm" >&5
4485 $as_echo_n "checking for exp10 in -lm... " >&6; }
4486 if ${ac_cv_lib_m_exp10+:} false; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 ac_check_lib_save_LIBS=$LIBS
4490 LIBS="-lm $LIBS"
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4494 /* Override any GCC internal prototype to avoid an error.
4495 Use char because int might match the return type of a GCC
4496 builtin and then its argument prototype would still apply. */
4497 #ifdef __cplusplus
4498 extern "C"
4499 #endif
4500 char exp10 ();
4502 main ()
4504 return exp10 ();
4506 return 0;
4508 _ACEOF
4509 if ac_fn_c_try_link "$LINENO"; then :
4510 ac_cv_lib_m_exp10=yes
4511 else
4512 ac_cv_lib_m_exp10=no
4514 rm -f core conftest.err conftest.$ac_objext \
4515 conftest$ac_exeext conftest.$ac_ext
4516 LIBS=$ac_check_lib_save_LIBS
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp10" >&5
4519 $as_echo "$ac_cv_lib_m_exp10" >&6; }
4520 if test "x$ac_cv_lib_m_exp10" = xyes; then :
4522 $as_echo "#define HAVE_EXP10 1" >>confdefs.h
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp10f in -lm" >&5
4527 $as_echo_n "checking for exp10f in -lm... " >&6; }
4528 if ${ac_cv_lib_m_exp10f+:} false; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 ac_check_lib_save_LIBS=$LIBS
4532 LIBS="-lm $LIBS"
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4536 /* Override any GCC internal prototype to avoid an error.
4537 Use char because int might match the return type of a GCC
4538 builtin and then its argument prototype would still apply. */
4539 #ifdef __cplusplus
4540 extern "C"
4541 #endif
4542 char exp10f ();
4544 main ()
4546 return exp10f ();
4548 return 0;
4550 _ACEOF
4551 if ac_fn_c_try_link "$LINENO"; then :
4552 ac_cv_lib_m_exp10f=yes
4553 else
4554 ac_cv_lib_m_exp10f=no
4556 rm -f core conftest.err conftest.$ac_objext \
4557 conftest$ac_exeext conftest.$ac_ext
4558 LIBS=$ac_check_lib_save_LIBS
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp10f" >&5
4561 $as_echo "$ac_cv_lib_m_exp10f" >&6; }
4562 if test "x$ac_cv_lib_m_exp10f" = xyes; then :
4564 $as_echo "#define HAVE_EXP10F 1" >>confdefs.h
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp10l in -lm" >&5
4569 $as_echo_n "checking for exp10l in -lm... " >&6; }
4570 if ${ac_cv_lib_m_exp10l+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 ac_check_lib_save_LIBS=$LIBS
4574 LIBS="-lm $LIBS"
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4578 /* Override any GCC internal prototype to avoid an error.
4579 Use char because int might match the return type of a GCC
4580 builtin and then its argument prototype would still apply. */
4581 #ifdef __cplusplus
4582 extern "C"
4583 #endif
4584 char exp10l ();
4586 main ()
4588 return exp10l ();
4590 return 0;
4592 _ACEOF
4593 if ac_fn_c_try_link "$LINENO"; then :
4594 ac_cv_lib_m_exp10l=yes
4595 else
4596 ac_cv_lib_m_exp10l=no
4598 rm -f core conftest.err conftest.$ac_objext \
4599 conftest$ac_exeext conftest.$ac_ext
4600 LIBS=$ac_check_lib_save_LIBS
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp10l" >&5
4603 $as_echo "$ac_cv_lib_m_exp10l" >&6; }
4604 if test "x$ac_cv_lib_m_exp10l" = xyes; then :
4606 $as_echo "#define HAVE_EXP10L 1" >>confdefs.h
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit in -lm" >&5
4612 $as_echo_n "checking for signbit in -lm... " >&6; }
4613 if ${ac_cv_lib_m_signbit+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 ac_check_lib_save_LIBS=$LIBS
4617 LIBS="-lm $LIBS"
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4621 /* Override any GCC internal prototype to avoid an error.
4622 Use char because int might match the return type of a GCC
4623 builtin and then its argument prototype would still apply. */
4624 #ifdef __cplusplus
4625 extern "C"
4626 #endif
4627 char signbit ();
4629 main ()
4631 return signbit ();
4633 return 0;
4635 _ACEOF
4636 if ac_fn_c_try_link "$LINENO"; then :
4637 ac_cv_lib_m_signbit=yes
4638 else
4639 ac_cv_lib_m_signbit=no
4641 rm -f core conftest.err conftest.$ac_objext \
4642 conftest$ac_exeext conftest.$ac_ext
4643 LIBS=$ac_check_lib_save_LIBS
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbit" >&5
4646 $as_echo "$ac_cv_lib_m_signbit" >&6; }
4647 if test "x$ac_cv_lib_m_signbit" = xyes; then :
4649 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitf in -lm" >&5
4654 $as_echo_n "checking for signbitf in -lm... " >&6; }
4655 if ${ac_cv_lib_m_signbitf+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 ac_check_lib_save_LIBS=$LIBS
4659 LIBS="-lm $LIBS"
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4663 /* Override any GCC internal prototype to avoid an error.
4664 Use char because int might match the return type of a GCC
4665 builtin and then its argument prototype would still apply. */
4666 #ifdef __cplusplus
4667 extern "C"
4668 #endif
4669 char signbitf ();
4671 main ()
4673 return signbitf ();
4675 return 0;
4677 _ACEOF
4678 if ac_fn_c_try_link "$LINENO"; then :
4679 ac_cv_lib_m_signbitf=yes
4680 else
4681 ac_cv_lib_m_signbitf=no
4683 rm -f core conftest.err conftest.$ac_objext \
4684 conftest$ac_exeext conftest.$ac_ext
4685 LIBS=$ac_check_lib_save_LIBS
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitf" >&5
4688 $as_echo "$ac_cv_lib_m_signbitf" >&6; }
4689 if test "x$ac_cv_lib_m_signbitf" = xyes; then :
4691 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitl in -lm" >&5
4696 $as_echo_n "checking for signbitl in -lm... " >&6; }
4697 if ${ac_cv_lib_m_signbitl+:} false; then :
4698 $as_echo_n "(cached) " >&6
4699 else
4700 ac_check_lib_save_LIBS=$LIBS
4701 LIBS="-lm $LIBS"
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4705 /* Override any GCC internal prototype to avoid an error.
4706 Use char because int might match the return type of a GCC
4707 builtin and then its argument prototype would still apply. */
4708 #ifdef __cplusplus
4709 extern "C"
4710 #endif
4711 char signbitl ();
4713 main ()
4715 return signbitl ();
4717 return 0;
4719 _ACEOF
4720 if ac_fn_c_try_link "$LINENO"; then :
4721 ac_cv_lib_m_signbitl=yes
4722 else
4723 ac_cv_lib_m_signbitl=no
4725 rm -f core conftest.err conftest.$ac_objext \
4726 conftest$ac_exeext conftest.$ac_ext
4727 LIBS=$ac_check_lib_save_LIBS
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitl" >&5
4730 $as_echo "$ac_cv_lib_m_signbitl" >&6; }
4731 if test "x$ac_cv_lib_m_signbitl" = xyes; then :
4733 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
4738 cat >confcache <<\_ACEOF
4739 # This file is a shell script that caches the results of configure
4740 # tests run on this system so they can be shared between configure
4741 # scripts and configure runs, see configure's option --config-cache.
4742 # It is not useful on other systems. If it contains results you don't
4743 # want to keep, you may remove or edit it.
4745 # config.status only pays attention to the cache file if you give it
4746 # the --recheck option to rerun configure.
4748 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4749 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4750 # following values.
4752 _ACEOF
4754 # The following way of writing the cache mishandles newlines in values,
4755 # but we know of no workaround that is simple, portable, and efficient.
4756 # So, we kill variables containing newlines.
4757 # Ultrix sh set writes to stderr and can't be redirected directly,
4758 # and sets the high bit in the cache file unless we assign to the vars.
4760 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4761 eval ac_val=\$$ac_var
4762 case $ac_val in #(
4763 *${as_nl}*)
4764 case $ac_var in #(
4765 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4767 esac
4768 case $ac_var in #(
4769 _ | IFS | as_nl) ;; #(
4770 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4771 *) { eval $ac_var=; unset $ac_var;} ;;
4772 esac ;;
4773 esac
4774 done
4776 (set) 2>&1 |
4777 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4778 *${as_nl}ac_space=\ *)
4779 # `set' does not quote correctly, so add quotes: double-quote
4780 # substitution turns \\\\ into \\, and sed turns \\ into \.
4781 sed -n \
4782 "s/'/'\\\\''/g;
4783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4784 ;; #(
4786 # `set' quotes correctly as required by POSIX, so do not add quotes.
4787 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4789 esac |
4790 sort
4792 sed '
4793 /^ac_cv_env_/b end
4794 t clear
4795 :clear
4796 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4797 t end
4798 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4799 :end' >>confcache
4800 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4801 if test -w "$cache_file"; then
4802 if test "x$cache_file" != "x/dev/null"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4804 $as_echo "$as_me: updating cache $cache_file" >&6;}
4805 if test ! -f "$cache_file" || test -h "$cache_file"; then
4806 cat confcache >"$cache_file"
4807 else
4808 case $cache_file in #(
4809 */* | ?:*)
4810 mv -f confcache "$cache_file"$$ &&
4811 mv -f "$cache_file"$$ "$cache_file" ;; #(
4813 mv -f confcache "$cache_file" ;;
4814 esac
4817 else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4819 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4822 rm -f confcache
4824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4825 # Let make expand exec_prefix.
4826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4828 DEFS=-DHAVE_CONFIG_H
4830 ac_libobjs=
4831 ac_ltlibobjs=
4833 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4834 # 1. Remove the extension, and $U if already installed.
4835 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4836 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4837 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4838 # will be set to the directory where LIBOBJS objects are built.
4839 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4840 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4841 done
4842 LIBOBJS=$ac_libobjs
4844 LTLIBOBJS=$ac_ltlibobjs
4848 : "${CONFIG_STATUS=./config.status}"
4849 ac_write_fail=0
4850 ac_clean_files_save=$ac_clean_files
4851 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4853 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4854 as_write_fail=0
4855 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4856 #! $SHELL
4857 # Generated by $as_me.
4858 # Run this file to recreate the current configuration.
4859 # Compiler output produced by configure, useful for debugging
4860 # configure, is in config.log if it exists.
4862 debug=false
4863 ac_cs_recheck=false
4864 ac_cs_silent=false
4866 SHELL=\${CONFIG_SHELL-$SHELL}
4867 export SHELL
4868 _ASEOF
4869 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4870 ## -------------------- ##
4871 ## M4sh Initialization. ##
4872 ## -------------------- ##
4874 # Be more Bourne compatible
4875 DUALCASE=1; export DUALCASE # for MKS sh
4876 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4877 emulate sh
4878 NULLCMD=:
4879 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4880 # is contrary to our usage. Disable this feature.
4881 alias -g '${1+"$@"}'='"$@"'
4882 setopt NO_GLOB_SUBST
4883 else
4884 case `(set -o) 2>/dev/null` in #(
4885 *posix*) :
4886 set -o posix ;; #(
4887 *) :
4889 esac
4893 as_nl='
4895 export as_nl
4896 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4897 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4898 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4899 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4900 # Prefer a ksh shell builtin over an external printf program on Solaris,
4901 # but without wasting forks for bash or zsh.
4902 if test -z "$BASH_VERSION$ZSH_VERSION" \
4903 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4904 as_echo='print -r --'
4905 as_echo_n='print -rn --'
4906 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4907 as_echo='printf %s\n'
4908 as_echo_n='printf %s'
4909 else
4910 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4911 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4912 as_echo_n='/usr/ucb/echo -n'
4913 else
4914 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4915 as_echo_n_body='eval
4916 arg=$1;
4917 case $arg in #(
4918 *"$as_nl"*)
4919 expr "X$arg" : "X\\(.*\\)$as_nl";
4920 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4921 esac;
4922 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4924 export as_echo_n_body
4925 as_echo_n='sh -c $as_echo_n_body as_echo'
4927 export as_echo_body
4928 as_echo='sh -c $as_echo_body as_echo'
4931 # The user is always right.
4932 if test "${PATH_SEPARATOR+set}" != set; then
4933 PATH_SEPARATOR=:
4934 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4935 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4936 PATH_SEPARATOR=';'
4941 # IFS
4942 # We need space, tab and new line, in precisely that order. Quoting is
4943 # there to prevent editors from complaining about space-tab.
4944 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4945 # splitting by setting IFS to empty value.)
4946 IFS=" "" $as_nl"
4948 # Find who we are. Look in the path if we contain no directory separator.
4949 as_myself=
4950 case $0 in #((
4951 *[\\/]* ) as_myself=$0 ;;
4952 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4958 done
4959 IFS=$as_save_IFS
4962 esac
4963 # We did not find ourselves, most probably we were run as `sh COMMAND'
4964 # in which case we are not to be found in the path.
4965 if test "x$as_myself" = x; then
4966 as_myself=$0
4968 if test ! -f "$as_myself"; then
4969 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4970 exit 1
4973 # Unset variables that we do not need and which cause bugs (e.g. in
4974 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4975 # suppresses any "Segmentation fault" message there. '((' could
4976 # trigger a bug in pdksh 5.2.14.
4977 for as_var in BASH_ENV ENV MAIL MAILPATH
4978 do eval test x\${$as_var+set} = xset \
4979 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4980 done
4981 PS1='$ '
4982 PS2='> '
4983 PS4='+ '
4985 # NLS nuisances.
4986 LC_ALL=C
4987 export LC_ALL
4988 LANGUAGE=C
4989 export LANGUAGE
4991 # CDPATH.
4992 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4995 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4996 # ----------------------------------------
4997 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4998 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4999 # script with STATUS, using 1 if that was 0.
5000 as_fn_error ()
5002 as_status=$1; test $as_status -eq 0 && as_status=1
5003 if test "$4"; then
5004 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5005 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5007 $as_echo "$as_me: error: $2" >&2
5008 as_fn_exit $as_status
5009 } # as_fn_error
5012 # as_fn_set_status STATUS
5013 # -----------------------
5014 # Set $? to STATUS, without forking.
5015 as_fn_set_status ()
5017 return $1
5018 } # as_fn_set_status
5020 # as_fn_exit STATUS
5021 # -----------------
5022 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5023 as_fn_exit ()
5025 set +e
5026 as_fn_set_status $1
5027 exit $1
5028 } # as_fn_exit
5030 # as_fn_unset VAR
5031 # ---------------
5032 # Portably unset VAR.
5033 as_fn_unset ()
5035 { eval $1=; unset $1;}
5037 as_unset=as_fn_unset
5038 # as_fn_append VAR VALUE
5039 # ----------------------
5040 # Append the text in VALUE to the end of the definition contained in VAR. Take
5041 # advantage of any shell optimizations that allow amortized linear growth over
5042 # repeated appends, instead of the typical quadratic growth present in naive
5043 # implementations.
5044 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5045 eval 'as_fn_append ()
5047 eval $1+=\$2
5049 else
5050 as_fn_append ()
5052 eval $1=\$$1\$2
5054 fi # as_fn_append
5056 # as_fn_arith ARG...
5057 # ------------------
5058 # Perform arithmetic evaluation on the ARGs, and store the result in the
5059 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5060 # must be portable across $(()) and expr.
5061 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5062 eval 'as_fn_arith ()
5064 as_val=$(( $* ))
5066 else
5067 as_fn_arith ()
5069 as_val=`expr "$@" || test $? -eq 1`
5071 fi # as_fn_arith
5074 if expr a : '\(a\)' >/dev/null 2>&1 &&
5075 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5076 as_expr=expr
5077 else
5078 as_expr=false
5081 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5082 as_basename=basename
5083 else
5084 as_basename=false
5087 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5088 as_dirname=dirname
5089 else
5090 as_dirname=false
5093 as_me=`$as_basename -- "$0" ||
5094 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5095 X"$0" : 'X\(//\)$' \| \
5096 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5097 $as_echo X/"$0" |
5098 sed '/^.*\/\([^/][^/]*\)\/*$/{
5099 s//\1/
5102 /^X\/\(\/\/\)$/{
5103 s//\1/
5106 /^X\/\(\/\).*/{
5107 s//\1/
5110 s/.*/./; q'`
5112 # Avoid depending upon Character Ranges.
5113 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5114 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5115 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5116 as_cr_digits='0123456789'
5117 as_cr_alnum=$as_cr_Letters$as_cr_digits
5119 ECHO_C= ECHO_N= ECHO_T=
5120 case `echo -n x` in #(((((
5121 -n*)
5122 case `echo 'xy\c'` in
5123 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5124 xy) ECHO_C='\c';;
5125 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5126 ECHO_T=' ';;
5127 esac;;
5129 ECHO_N='-n';;
5130 esac
5132 rm -f conf$$ conf$$.exe conf$$.file
5133 if test -d conf$$.dir; then
5134 rm -f conf$$.dir/conf$$.file
5135 else
5136 rm -f conf$$.dir
5137 mkdir conf$$.dir 2>/dev/null
5139 if (echo >conf$$.file) 2>/dev/null; then
5140 if ln -s conf$$.file conf$$ 2>/dev/null; then
5141 as_ln_s='ln -s'
5142 # ... but there are two gotchas:
5143 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5144 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5145 # In both cases, we have to default to `cp -pR'.
5146 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5147 as_ln_s='cp -pR'
5148 elif ln conf$$.file conf$$ 2>/dev/null; then
5149 as_ln_s=ln
5150 else
5151 as_ln_s='cp -pR'
5153 else
5154 as_ln_s='cp -pR'
5156 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5157 rmdir conf$$.dir 2>/dev/null
5160 # as_fn_mkdir_p
5161 # -------------
5162 # Create "$as_dir" as a directory, including parents if necessary.
5163 as_fn_mkdir_p ()
5166 case $as_dir in #(
5167 -*) as_dir=./$as_dir;;
5168 esac
5169 test -d "$as_dir" || eval $as_mkdir_p || {
5170 as_dirs=
5171 while :; do
5172 case $as_dir in #(
5173 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5174 *) as_qdir=$as_dir;;
5175 esac
5176 as_dirs="'$as_qdir' $as_dirs"
5177 as_dir=`$as_dirname -- "$as_dir" ||
5178 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5179 X"$as_dir" : 'X\(//\)[^/]' \| \
5180 X"$as_dir" : 'X\(//\)$' \| \
5181 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5182 $as_echo X"$as_dir" |
5183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5184 s//\1/
5187 /^X\(\/\/\)[^/].*/{
5188 s//\1/
5191 /^X\(\/\/\)$/{
5192 s//\1/
5195 /^X\(\/\).*/{
5196 s//\1/
5199 s/.*/./; q'`
5200 test -d "$as_dir" && break
5201 done
5202 test -z "$as_dirs" || eval "mkdir $as_dirs"
5203 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5206 } # as_fn_mkdir_p
5207 if mkdir -p . 2>/dev/null; then
5208 as_mkdir_p='mkdir -p "$as_dir"'
5209 else
5210 test -d ./-p && rmdir ./-p
5211 as_mkdir_p=false
5215 # as_fn_executable_p FILE
5216 # -----------------------
5217 # Test if FILE is an executable regular file.
5218 as_fn_executable_p ()
5220 test -f "$1" && test -x "$1"
5221 } # as_fn_executable_p
5222 as_test_x='test -x'
5223 as_executable_p=as_fn_executable_p
5225 # Sed expression to map a string onto a valid CPP name.
5226 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5228 # Sed expression to map a string onto a valid variable name.
5229 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5232 exec 6>&1
5233 ## ----------------------------------- ##
5234 ## Main body of $CONFIG_STATUS script. ##
5235 ## ----------------------------------- ##
5236 _ASEOF
5237 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5240 # Save the log message, to keep $0 and so on meaningful, and to
5241 # report actual input values of CONFIG_FILES etc. instead of their
5242 # values after options handling.
5243 ac_log="
5244 This file was extended by ASCII.def $as_me 1.9.5, which was
5245 generated by GNU Autoconf 2.69. Invocation command line was
5247 CONFIG_FILES = $CONFIG_FILES
5248 CONFIG_HEADERS = $CONFIG_HEADERS
5249 CONFIG_LINKS = $CONFIG_LINKS
5250 CONFIG_COMMANDS = $CONFIG_COMMANDS
5251 $ $0 $@
5253 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5256 _ACEOF
5259 case $ac_config_headers in *"
5260 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5261 esac
5264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5265 # Files that config.status was made for.
5266 config_headers="$ac_config_headers"
5268 _ACEOF
5270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5271 ac_cs_usage="\
5272 \`$as_me' instantiates files and other configuration actions
5273 from templates according to the current configuration. Unless the files
5274 and actions are specified as TAGs, all are instantiated by default.
5276 Usage: $0 [OPTION]... [TAG]...
5278 -h, --help print this help, then exit
5279 -V, --version print version number and configuration settings, then exit
5280 --config print configuration, then exit
5281 -q, --quiet, --silent
5282 do not print progress messages
5283 -d, --debug don't remove temporary files
5284 --recheck update $as_me by reconfiguring in the same conditions
5285 --header=FILE[:TEMPLATE]
5286 instantiate the configuration header FILE
5288 Configuration headers:
5289 $config_headers
5291 Report bugs to <gm2@nongnu.org>."
5293 _ACEOF
5294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5295 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5296 ac_cs_version="\\
5297 ASCII.def config.status 1.9.5
5298 configured by $0, generated by GNU Autoconf 2.69,
5299 with options \\"\$ac_cs_config\\"
5301 Copyright (C) 2012-2024 Free Software Foundation, Inc.
5302 This config.status script is free software; the Free Software Foundation
5303 gives unlimited permission to copy, distribute and modify it."
5305 ac_pwd='$ac_pwd'
5306 srcdir='$srcdir'
5307 test -n "\$AWK" || AWK=awk
5308 _ACEOF
5310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5311 # The default lists apply if the user does not specify any file.
5312 ac_need_defaults=:
5313 while test $# != 0
5315 case $1 in
5316 --*=?*)
5317 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5318 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5319 ac_shift=:
5321 --*=)
5322 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5323 ac_optarg=
5324 ac_shift=:
5327 ac_option=$1
5328 ac_optarg=$2
5329 ac_shift=shift
5331 esac
5333 case $ac_option in
5334 # Handling of the options.
5335 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5336 ac_cs_recheck=: ;;
5337 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5338 $as_echo "$ac_cs_version"; exit ;;
5339 --config | --confi | --conf | --con | --co | --c )
5340 $as_echo "$ac_cs_config"; exit ;;
5341 --debug | --debu | --deb | --de | --d | -d )
5342 debug=: ;;
5343 --header | --heade | --head | --hea )
5344 $ac_shift
5345 case $ac_optarg in
5346 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5347 esac
5348 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5349 ac_need_defaults=false;;
5350 --he | --h)
5351 # Conflict between --help and --header
5352 as_fn_error $? "ambiguous option: \`$1'
5353 Try \`$0 --help' for more information.";;
5354 --help | --hel | -h )
5355 $as_echo "$ac_cs_usage"; exit ;;
5356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5357 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5358 ac_cs_silent=: ;;
5360 # This is an error.
5361 -*) as_fn_error $? "unrecognized option: \`$1'
5362 Try \`$0 --help' for more information." ;;
5364 *) as_fn_append ac_config_targets " $1"
5365 ac_need_defaults=false ;;
5367 esac
5368 shift
5369 done
5371 ac_configure_extra_args=
5373 if $ac_cs_silent; then
5374 exec 6>/dev/null
5375 ac_configure_extra_args="$ac_configure_extra_args --silent"
5378 _ACEOF
5379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5380 if \$ac_cs_recheck; then
5381 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5382 shift
5383 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5384 CONFIG_SHELL='$SHELL'
5385 export CONFIG_SHELL
5386 exec "\$@"
5389 _ACEOF
5390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5391 exec 5>>config.log
5393 echo
5394 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5395 ## Running $as_me. ##
5396 _ASBOX
5397 $as_echo "$ac_log"
5398 } >&5
5400 _ACEOF
5401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5402 _ACEOF
5404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5406 # Handling of arguments.
5407 for ac_config_target in $ac_config_targets
5409 case $ac_config_target in
5410 "gm2-libs-host.h") CONFIG_HEADERS="$CONFIG_HEADERS gm2-libs-host.h:gm2-libs-host.h.in" ;;
5412 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5413 esac
5414 done
5417 # If the user did not use the arguments to specify the items to instantiate,
5418 # then the envvar interface is used. Set only those that are not.
5419 # We use the long form for the default assignment because of an extremely
5420 # bizarre bug on SunOS 4.1.3.
5421 if $ac_need_defaults; then
5422 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5425 # Have a temporary directory for convenience. Make it in the build tree
5426 # simply because there is no reason against having it here, and in addition,
5427 # creating and moving files from /tmp can sometimes cause problems.
5428 # Hook for its removal unless debugging.
5429 # Note that there is a small window in which the directory will not be cleaned:
5430 # after its creation but before its name has been assigned to `$tmp'.
5431 $debug ||
5433 tmp= ac_tmp=
5434 trap 'exit_status=$?
5435 : "${ac_tmp:=$tmp}"
5436 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5438 trap 'as_fn_exit 1' 1 2 13 15
5440 # Create a (secure) tmp directory for tmp files.
5443 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5444 test -d "$tmp"
5445 } ||
5447 tmp=./conf$$-$RANDOM
5448 (umask 077 && mkdir "$tmp")
5449 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5450 ac_tmp=$tmp
5452 # Set up the scripts for CONFIG_HEADERS section.
5453 # No need to generate them if there are no CONFIG_HEADERS.
5454 # This happens for instance with `./config.status Makefile'.
5455 if test -n "$CONFIG_HEADERS"; then
5456 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5457 BEGIN {
5458 _ACEOF
5460 # Transform confdefs.h into an awk script `defines.awk', embedded as
5461 # here-document in config.status, that substitutes the proper values into
5462 # config.h.in to produce config.h.
5464 # Create a delimiter string that does not exist in confdefs.h, to ease
5465 # handling of long lines.
5466 ac_delim='%!_!# '
5467 for ac_last_try in false false :; do
5468 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5469 if test -z "$ac_tt"; then
5470 break
5471 elif $ac_last_try; then
5472 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5473 else
5474 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5476 done
5478 # For the awk script, D is an array of macro values keyed by name,
5479 # likewise P contains macro parameters if any. Preserve backslash
5480 # newline sequences.
5482 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5483 sed -n '
5484 s/.\{148\}/&'"$ac_delim"'/g
5485 t rset
5486 :rset
5487 s/^[ ]*#[ ]*define[ ][ ]*/ /
5488 t def
5490 :def
5491 s/\\$//
5492 t bsnl
5493 s/["\\]/\\&/g
5494 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5495 D["\1"]=" \3"/p
5496 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5498 :bsnl
5499 s/["\\]/\\&/g
5500 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5501 D["\1"]=" \3\\\\\\n"\\/p
5502 t cont
5503 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5504 t cont
5506 :cont
5508 s/.\{148\}/&'"$ac_delim"'/g
5509 t clear
5510 :clear
5511 s/\\$//
5512 t bsnlc
5513 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5515 :bsnlc
5516 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5517 b cont
5518 ' <confdefs.h | sed '
5519 s/'"$ac_delim"'/"\\\
5520 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5523 for (key in D) D_is_set[key] = 1
5524 FS = "\a"
5526 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5527 line = \$ 0
5528 split(line, arg, " ")
5529 if (arg[1] == "#") {
5530 defundef = arg[2]
5531 mac1 = arg[3]
5532 } else {
5533 defundef = substr(arg[1], 2)
5534 mac1 = arg[2]
5536 split(mac1, mac2, "(") #)
5537 macro = mac2[1]
5538 prefix = substr(line, 1, index(line, defundef) - 1)
5539 if (D_is_set[macro]) {
5540 # Preserve the white space surrounding the "#".
5541 print prefix "define", macro P[macro] D[macro]
5542 next
5543 } else {
5544 # Replace #undef with comments. This is necessary, for example,
5545 # in the case of _POSIX_SOURCE, which is predefined and required
5546 # on some systems where configure will not decide to define it.
5547 if (defundef == "undef") {
5548 print "/*", prefix defundef, macro, "*/"
5549 next
5553 { print }
5554 _ACAWK
5555 _ACEOF
5556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5557 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5558 fi # test -n "$CONFIG_HEADERS"
5561 eval set X " :H $CONFIG_HEADERS "
5562 shift
5563 for ac_tag
5565 case $ac_tag in
5566 :[FHLC]) ac_mode=$ac_tag; continue;;
5567 esac
5568 case $ac_mode$ac_tag in
5569 :[FHL]*:*);;
5570 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5571 :[FH]-) ac_tag=-:-;;
5572 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5573 esac
5574 ac_save_IFS=$IFS
5575 IFS=:
5576 set x $ac_tag
5577 IFS=$ac_save_IFS
5578 shift
5579 ac_file=$1
5580 shift
5582 case $ac_mode in
5583 :L) ac_source=$1;;
5584 :[FH])
5585 ac_file_inputs=
5586 for ac_f
5588 case $ac_f in
5589 -) ac_f="$ac_tmp/stdin";;
5590 *) # Look for the file first in the build tree, then in the source tree
5591 # (if the path is not absolute). The absolute path cannot be DOS-style,
5592 # because $ac_f cannot contain `:'.
5593 test -f "$ac_f" ||
5594 case $ac_f in
5595 [\\/$]*) false;;
5596 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5597 esac ||
5598 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5599 esac
5600 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5601 as_fn_append ac_file_inputs " '$ac_f'"
5602 done
5604 # Let's still pretend it is `configure' which instantiates (i.e., don't
5605 # use $as_me), people would be surprised to read:
5606 # /* config.h. Generated by config.status. */
5607 configure_input='Generated from '`
5608 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5609 `' by configure.'
5610 if test x"$ac_file" != x-; then
5611 configure_input="$ac_file. $configure_input"
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5613 $as_echo "$as_me: creating $ac_file" >&6;}
5615 # Neutralize special characters interpreted by sed in replacement strings.
5616 case $configure_input in #(
5617 *\&* | *\|* | *\\* )
5618 ac_sed_conf_input=`$as_echo "$configure_input" |
5619 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5620 *) ac_sed_conf_input=$configure_input;;
5621 esac
5623 case $ac_tag in
5624 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5625 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5626 esac
5628 esac
5630 ac_dir=`$as_dirname -- "$ac_file" ||
5631 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5632 X"$ac_file" : 'X\(//\)[^/]' \| \
5633 X"$ac_file" : 'X\(//\)$' \| \
5634 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5635 $as_echo X"$ac_file" |
5636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5637 s//\1/
5640 /^X\(\/\/\)[^/].*/{
5641 s//\1/
5644 /^X\(\/\/\)$/{
5645 s//\1/
5648 /^X\(\/\).*/{
5649 s//\1/
5652 s/.*/./; q'`
5653 as_dir="$ac_dir"; as_fn_mkdir_p
5654 ac_builddir=.
5656 case "$ac_dir" in
5657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5660 # A ".." for each directory in $ac_dir_suffix.
5661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5662 case $ac_top_builddir_sub in
5663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5665 esac ;;
5666 esac
5667 ac_abs_top_builddir=$ac_pwd
5668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5669 # for backward compatibility:
5670 ac_top_builddir=$ac_top_build_prefix
5672 case $srcdir in
5673 .) # We are building in place.
5674 ac_srcdir=.
5675 ac_top_srcdir=$ac_top_builddir_sub
5676 ac_abs_top_srcdir=$ac_pwd ;;
5677 [\\/]* | ?:[\\/]* ) # Absolute name.
5678 ac_srcdir=$srcdir$ac_dir_suffix;
5679 ac_top_srcdir=$srcdir
5680 ac_abs_top_srcdir=$srcdir ;;
5681 *) # Relative name.
5682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5683 ac_top_srcdir=$ac_top_build_prefix$srcdir
5684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5685 esac
5686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5689 case $ac_mode in
5693 # CONFIG_HEADER
5695 if test x"$ac_file" != x-; then
5697 $as_echo "/* $configure_input */" \
5698 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5699 } >"$ac_tmp/config.h" \
5700 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5701 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5703 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5704 else
5705 rm -f "$ac_file"
5706 mv "$ac_tmp/config.h" "$ac_file" \
5707 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5709 else
5710 $as_echo "/* $configure_input */" \
5711 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5712 || as_fn_error $? "could not create -" "$LINENO" 5
5717 esac
5719 done # for ac_tag
5722 as_fn_exit 0
5723 _ACEOF
5724 ac_clean_files=$ac_clean_files_save
5726 test $ac_write_fail = 0 ||
5727 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5730 # configure is writing to config.log, and then calls config.status.
5731 # config.status does its own redirection, appending to config.log.
5732 # Unfortunately, on DOS this fails, as config.log is still kept open
5733 # by configure, so config.status won't be able to write to it; its
5734 # output is simply discarded. So we exec the FD to /dev/null,
5735 # effectively closing config.log, so it can be properly (re)opened and
5736 # appended to by config.status. When coming back to configure, we
5737 # need to make the FD available again.
5738 if test "$no_create" != yes; then
5739 ac_cs_success=:
5740 ac_config_status_args=
5741 test "$silent" = yes &&
5742 ac_config_status_args="$ac_config_status_args --quiet"
5743 exec 5>/dev/null
5744 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5745 exec 5>>config.log
5746 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5747 # would make configure fail if this is the last instruction.
5748 $ac_cs_success || as_fn_exit 1
5750 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5752 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}