Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / pkgtools / digest / files / configure
blob2d76c50e06d0d872fa3ffa3a6f8f65e3535ec043
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for nbsd-digest 20121220.
5 # Report bugs to <agc@netbsd.org>.
8 # Copyright (C) 1992-1996, 1998-2012 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 agc@netbsd.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='nbsd-digest'
582 PACKAGE_TARNAME='nbsd-digest'
583 PACKAGE_VERSION='20121220'
584 PACKAGE_STRING='nbsd-digest 20121220'
585 PACKAGE_BUGREPORT='agc@netbsd.org'
586 PACKAGE_URL=''
588 ac_unique_file="digest.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 EGREP
628 GREP
630 AUTOHEADER
631 AUTOCONF
632 LN_S
633 INSTALL_DATA
634 INSTALL_SCRIPT
635 INSTALL_PROGRAM
636 OBJEXT
637 EXEEXT
638 ac_ct_CC
639 CPPFLAGS
640 LDFLAGS
641 CFLAGS
644 SET_MAKE
645 CANONICAL_HOST
646 host_os
647 host_vendor
648 host_cpu
649 host
650 build_os
651 build_vendor
652 build_cpu
653 build
654 target_alias
655 host_alias
656 build_alias
657 LIBS
658 ECHO_T
659 ECHO_N
660 ECHO_C
661 DEFS
662 mandir
663 localedir
664 libdir
665 psdir
666 pdfdir
667 dvidir
668 htmldir
669 infodir
670 docdir
671 oldincludedir
672 includedir
673 localstatedir
674 sharedstatedir
675 sysconfdir
676 datadir
677 datarootdir
678 libexecdir
679 sbindir
680 bindir
681 program_transform_name
682 prefix
683 exec_prefix
684 PACKAGE_URL
685 PACKAGE_BUGREPORT
686 PACKAGE_STRING
687 PACKAGE_VERSION
688 PACKAGE_TARNAME
689 PACKAGE_NAME
690 PATH_SEPARATOR
691 SHELL'
692 ac_subst_files=''
693 ac_user_opts='
694 enable_option_checking
696 ac_precious_vars='build_alias
697 host_alias
698 target_alias
700 CFLAGS
701 LDFLAGS
702 LIBS
703 CPPFLAGS
704 CPP'
707 # Initialize some variables set by options.
708 ac_init_help=
709 ac_init_version=false
710 ac_unrecognized_opts=
711 ac_unrecognized_sep=
712 # The variables have the same names as the options, with
713 # dashes changed to underlines.
714 cache_file=/dev/null
715 exec_prefix=NONE
716 no_create=
717 no_recursion=
718 prefix=NONE
719 program_prefix=NONE
720 program_suffix=NONE
721 program_transform_name=s,x,x,
722 silent=
723 site=
724 srcdir=
725 verbose=
726 x_includes=NONE
727 x_libraries=NONE
729 # Installation directory options.
730 # These are left unexpanded so users can "make install exec_prefix=/foo"
731 # and all the variables that are supposed to be based on exec_prefix
732 # by default will actually change.
733 # Use braces instead of parens because sh, perl, etc. also accept them.
734 # (The list follows the same order as the GNU Coding Standards.)
735 bindir='${exec_prefix}/bin'
736 sbindir='${exec_prefix}/sbin'
737 libexecdir='${exec_prefix}/libexec'
738 datarootdir='${prefix}/share'
739 datadir='${datarootdir}'
740 sysconfdir='${prefix}/etc'
741 sharedstatedir='${prefix}/com'
742 localstatedir='${prefix}/var'
743 includedir='${prefix}/include'
744 oldincludedir='/usr/include'
745 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
746 infodir='${datarootdir}/info'
747 htmldir='${docdir}'
748 dvidir='${docdir}'
749 pdfdir='${docdir}'
750 psdir='${docdir}'
751 libdir='${exec_prefix}/lib'
752 localedir='${datarootdir}/locale'
753 mandir='${datarootdir}/man'
755 ac_prev=
756 ac_dashdash=
757 for ac_option
759 # If the previous option needs an argument, assign it.
760 if test -n "$ac_prev"; then
761 eval $ac_prev=\$ac_option
762 ac_prev=
763 continue
766 case $ac_option in
767 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
768 *=) ac_optarg= ;;
769 *) ac_optarg=yes ;;
770 esac
772 # Accept the important Cygnus configure options, so we can diagnose typos.
774 case $ac_dashdash$ac_option in
776 ac_dashdash=yes ;;
778 -bindir | --bindir | --bindi | --bind | --bin | --bi)
779 ac_prev=bindir ;;
780 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
781 bindir=$ac_optarg ;;
783 -build | --build | --buil | --bui | --bu)
784 ac_prev=build_alias ;;
785 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
786 build_alias=$ac_optarg ;;
788 -cache-file | --cache-file | --cache-fil | --cache-fi \
789 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
790 ac_prev=cache_file ;;
791 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
792 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
793 cache_file=$ac_optarg ;;
795 --config-cache | -C)
796 cache_file=config.cache ;;
798 -datadir | --datadir | --datadi | --datad)
799 ac_prev=datadir ;;
800 -datadir=* | --datadir=* | --datadi=* | --datad=*)
801 datadir=$ac_optarg ;;
803 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
804 | --dataroo | --dataro | --datar)
805 ac_prev=datarootdir ;;
806 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
807 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
808 datarootdir=$ac_optarg ;;
810 -disable-* | --disable-*)
811 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
812 # Reject names that are not valid shell variable names.
813 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
814 as_fn_error $? "invalid feature name: $ac_useropt"
815 ac_useropt_orig=$ac_useropt
816 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
817 case $ac_user_opts in
819 "enable_$ac_useropt"
820 "*) ;;
821 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
822 ac_unrecognized_sep=', ';;
823 esac
824 eval enable_$ac_useropt=no ;;
826 -docdir | --docdir | --docdi | --doc | --do)
827 ac_prev=docdir ;;
828 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
829 docdir=$ac_optarg ;;
831 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
832 ac_prev=dvidir ;;
833 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
834 dvidir=$ac_optarg ;;
836 -enable-* | --enable-*)
837 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
840 as_fn_error $? "invalid feature name: $ac_useropt"
841 ac_useropt_orig=$ac_useropt
842 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
843 case $ac_user_opts in
845 "enable_$ac_useropt"
846 "*) ;;
847 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
848 ac_unrecognized_sep=', ';;
849 esac
850 eval enable_$ac_useropt=\$ac_optarg ;;
852 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
853 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
854 | --exec | --exe | --ex)
855 ac_prev=exec_prefix ;;
856 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
857 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
858 | --exec=* | --exe=* | --ex=*)
859 exec_prefix=$ac_optarg ;;
861 -gas | --gas | --ga | --g)
862 # Obsolete; use --with-gas.
863 with_gas=yes ;;
865 -help | --help | --hel | --he | -h)
866 ac_init_help=long ;;
867 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
868 ac_init_help=recursive ;;
869 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
870 ac_init_help=short ;;
872 -host | --host | --hos | --ho)
873 ac_prev=host_alias ;;
874 -host=* | --host=* | --hos=* | --ho=*)
875 host_alias=$ac_optarg ;;
877 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
878 ac_prev=htmldir ;;
879 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
880 | --ht=*)
881 htmldir=$ac_optarg ;;
883 -includedir | --includedir | --includedi | --included | --include \
884 | --includ | --inclu | --incl | --inc)
885 ac_prev=includedir ;;
886 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
887 | --includ=* | --inclu=* | --incl=* | --inc=*)
888 includedir=$ac_optarg ;;
890 -infodir | --infodir | --infodi | --infod | --info | --inf)
891 ac_prev=infodir ;;
892 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
893 infodir=$ac_optarg ;;
895 -libdir | --libdir | --libdi | --libd)
896 ac_prev=libdir ;;
897 -libdir=* | --libdir=* | --libdi=* | --libd=*)
898 libdir=$ac_optarg ;;
900 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
901 | --libexe | --libex | --libe)
902 ac_prev=libexecdir ;;
903 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
904 | --libexe=* | --libex=* | --libe=*)
905 libexecdir=$ac_optarg ;;
907 -localedir | --localedir | --localedi | --localed | --locale)
908 ac_prev=localedir ;;
909 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
910 localedir=$ac_optarg ;;
912 -localstatedir | --localstatedir | --localstatedi | --localstated \
913 | --localstate | --localstat | --localsta | --localst | --locals)
914 ac_prev=localstatedir ;;
915 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
916 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
917 localstatedir=$ac_optarg ;;
919 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
920 ac_prev=mandir ;;
921 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
922 mandir=$ac_optarg ;;
924 -nfp | --nfp | --nf)
925 # Obsolete; use --without-fp.
926 with_fp=no ;;
928 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
929 | --no-cr | --no-c | -n)
930 no_create=yes ;;
932 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
933 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
934 no_recursion=yes ;;
936 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
937 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
938 | --oldin | --oldi | --old | --ol | --o)
939 ac_prev=oldincludedir ;;
940 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
941 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
942 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
943 oldincludedir=$ac_optarg ;;
945 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
946 ac_prev=prefix ;;
947 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
948 prefix=$ac_optarg ;;
950 -program-prefix | --program-prefix | --program-prefi | --program-pref \
951 | --program-pre | --program-pr | --program-p)
952 ac_prev=program_prefix ;;
953 -program-prefix=* | --program-prefix=* | --program-prefi=* \
954 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
955 program_prefix=$ac_optarg ;;
957 -program-suffix | --program-suffix | --program-suffi | --program-suff \
958 | --program-suf | --program-su | --program-s)
959 ac_prev=program_suffix ;;
960 -program-suffix=* | --program-suffix=* | --program-suffi=* \
961 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
962 program_suffix=$ac_optarg ;;
964 -program-transform-name | --program-transform-name \
965 | --program-transform-nam | --program-transform-na \
966 | --program-transform-n | --program-transform- \
967 | --program-transform | --program-transfor \
968 | --program-transfo | --program-transf \
969 | --program-trans | --program-tran \
970 | --progr-tra | --program-tr | --program-t)
971 ac_prev=program_transform_name ;;
972 -program-transform-name=* | --program-transform-name=* \
973 | --program-transform-nam=* | --program-transform-na=* \
974 | --program-transform-n=* | --program-transform-=* \
975 | --program-transform=* | --program-transfor=* \
976 | --program-transfo=* | --program-transf=* \
977 | --program-trans=* | --program-tran=* \
978 | --progr-tra=* | --program-tr=* | --program-t=*)
979 program_transform_name=$ac_optarg ;;
981 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
982 ac_prev=pdfdir ;;
983 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
984 pdfdir=$ac_optarg ;;
986 -psdir | --psdir | --psdi | --psd | --ps)
987 ac_prev=psdir ;;
988 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
989 psdir=$ac_optarg ;;
991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
992 | -silent | --silent | --silen | --sile | --sil)
993 silent=yes ;;
995 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
996 ac_prev=sbindir ;;
997 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
998 | --sbi=* | --sb=*)
999 sbindir=$ac_optarg ;;
1001 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1002 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1003 | --sharedst | --shareds | --shared | --share | --shar \
1004 | --sha | --sh)
1005 ac_prev=sharedstatedir ;;
1006 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1007 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1008 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1009 | --sha=* | --sh=*)
1010 sharedstatedir=$ac_optarg ;;
1012 -site | --site | --sit)
1013 ac_prev=site ;;
1014 -site=* | --site=* | --sit=*)
1015 site=$ac_optarg ;;
1017 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1018 ac_prev=srcdir ;;
1019 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1020 srcdir=$ac_optarg ;;
1022 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1023 | --syscon | --sysco | --sysc | --sys | --sy)
1024 ac_prev=sysconfdir ;;
1025 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1026 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1027 sysconfdir=$ac_optarg ;;
1029 -target | --target | --targe | --targ | --tar | --ta | --t)
1030 ac_prev=target_alias ;;
1031 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1032 target_alias=$ac_optarg ;;
1034 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1035 verbose=yes ;;
1037 -version | --version | --versio | --versi | --vers | -V)
1038 ac_init_version=: ;;
1040 -with-* | --with-*)
1041 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 as_fn_error $? "invalid package name: $ac_useropt"
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1049 "with_$ac_useropt"
1050 "*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval with_$ac_useropt=\$ac_optarg ;;
1056 -without-* | --without-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error $? "invalid package name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1065 "with_$ac_useropt"
1066 "*) ;;
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1069 esac
1070 eval with_$ac_useropt=no ;;
1072 --x)
1073 # Obsolete; use --with-x.
1074 with_x=yes ;;
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev=x_includes ;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes=$ac_optarg ;;
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev=x_libraries ;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries=$ac_optarg ;;
1090 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1091 Try \`$0 --help' for more information"
1094 *=*)
1095 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 case $ac_envvar in #(
1098 '' | [0-9]* | *[!_$as_cr_alnum]* )
1099 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1100 esac
1101 eval $ac_envvar=\$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1112 esac
1113 done
1115 if test -n "$ac_prev"; then
1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117 as_fn_error $? "missing argument to $ac_option"
1120 if test -n "$ac_unrecognized_opts"; then
1121 case $enable_option_checking in
1122 no) ;;
1123 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1124 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1125 esac
1128 # Check all directory arguments for consistency.
1129 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1134 eval ac_val=\$$ac_var
1135 # Remove trailing slashes.
1136 case $ac_val in
1137 */ )
1138 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1139 eval $ac_var=\$ac_val;;
1140 esac
1141 # Be sure to have absolute directory names.
1142 case $ac_val in
1143 [\\/$]* | ?:[\\/]* ) continue;;
1144 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145 esac
1146 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1147 done
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 elif test "x$build_alias" != "x$host_alias"; then
1161 cross_compiling=yes
1165 ac_tool_prefix=
1166 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1168 test "$silent" = yes && exec 6>/dev/null
1171 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172 ac_ls_di=`ls -di .` &&
1173 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174 as_fn_error $? "working directory cannot be determined"
1175 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176 as_fn_error $? "pwd does not report name of working directory"
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181 ac_srcdir_defaulted=yes
1182 # Try the directory containing this script, then the parent directory.
1183 ac_confdir=`$as_dirname -- "$as_myself" ||
1184 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$as_myself" : 'X\(//\)[^/]' \| \
1186 X"$as_myself" : 'X\(//\)$' \| \
1187 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1188 $as_echo X"$as_myself" |
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190 s//\1/
1193 /^X\(\/\/\)[^/].*/{
1194 s//\1/
1197 /^X\(\/\/\)$/{
1198 s//\1/
1201 /^X\(\/\).*/{
1202 s//\1/
1205 s/.*/./; q'`
1206 srcdir=$ac_confdir
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 srcdir=..
1210 else
1211 ac_srcdir_defaulted=no
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1217 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1218 ac_abs_confdir=`(
1219 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1220 pwd)`
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1228 case $srcdir in
1229 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 esac
1231 for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236 done
1239 # Report the --help message.
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245 \`configure' configures nbsd-digest 20121220 to adapt to many kinds of systems.
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1252 Defaults for the options are specified in brackets.
1254 Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking ...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 [PREFIX]
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1276 For better control, use the options below.
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/nbsd-digest]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1298 _ACEOF
1300 cat <<\_ACEOF
1302 Program names:
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1307 System types:
1308 --build=BUILD configure for building on BUILD [guessed]
1309 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1310 _ACEOF
1313 if test -n "$ac_init_help"; then
1314 case $ac_init_help in
1315 short | recursive ) echo "Configuration of nbsd-digest 20121220:";;
1316 esac
1317 cat <<\_ACEOF
1319 Some influential environment variables:
1320 CC C compiler command
1321 CFLAGS C compiler flags
1322 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1323 nonstandard directory <lib dir>
1324 LIBS libraries to pass to the linker, e.g. -l<library>
1325 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1326 you have headers in a nonstandard directory <include dir>
1327 CPP C preprocessor
1329 Use these variables to override the choices made by `configure' or to help
1330 it to find libraries and programs with nonstandard names/locations.
1332 Report bugs to <agc@netbsd.org>.
1333 _ACEOF
1334 ac_status=$?
1337 if test "$ac_init_help" = "recursive"; then
1338 # If there are subdirs, report their specific --help.
1339 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1340 test -d "$ac_dir" ||
1341 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1342 continue
1343 ac_builddir=.
1345 case "$ac_dir" in
1346 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1348 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1349 # A ".." for each directory in $ac_dir_suffix.
1350 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1351 case $ac_top_builddir_sub in
1352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1354 esac ;;
1355 esac
1356 ac_abs_top_builddir=$ac_pwd
1357 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1358 # for backward compatibility:
1359 ac_top_builddir=$ac_top_build_prefix
1361 case $srcdir in
1362 .) # We are building in place.
1363 ac_srcdir=.
1364 ac_top_srcdir=$ac_top_builddir_sub
1365 ac_abs_top_srcdir=$ac_pwd ;;
1366 [\\/]* | ?:[\\/]* ) # Absolute name.
1367 ac_srcdir=$srcdir$ac_dir_suffix;
1368 ac_top_srcdir=$srcdir
1369 ac_abs_top_srcdir=$srcdir ;;
1370 *) # Relative name.
1371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1372 ac_top_srcdir=$ac_top_build_prefix$srcdir
1373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1374 esac
1375 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1377 cd "$ac_dir" || { ac_status=$?; continue; }
1378 # Check for guested configure.
1379 if test -f "$ac_srcdir/configure.gnu"; then
1380 echo &&
1381 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1382 elif test -f "$ac_srcdir/configure"; then
1383 echo &&
1384 $SHELL "$ac_srcdir/configure" --help=recursive
1385 else
1386 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1387 fi || ac_status=$?
1388 cd "$ac_pwd" || { ac_status=$?; break; }
1389 done
1392 test -n "$ac_init_help" && exit $ac_status
1393 if $ac_init_version; then
1394 cat <<\_ACEOF
1395 nbsd-digest configure 20121220
1396 generated by GNU Autoconf 2.69
1398 Copyright (C) 2012 Free Software Foundation, Inc.
1399 This configure script is free software; the Free Software Foundation
1400 gives unlimited permission to copy, distribute and modify it.
1401 _ACEOF
1402 exit
1405 ## ------------------------ ##
1406 ## Autoconf initialization. ##
1407 ## ------------------------ ##
1409 # ac_fn_c_try_compile LINENO
1410 # --------------------------
1411 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1412 ac_fn_c_try_compile ()
1414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1415 rm -f conftest.$ac_objext
1416 if { { ac_try="$ac_compile"
1417 case "(($ac_try" in
1418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1419 *) ac_try_echo=$ac_try;;
1420 esac
1421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1422 $as_echo "$ac_try_echo"; } >&5
1423 (eval "$ac_compile") 2>conftest.err
1424 ac_status=$?
1425 if test -s conftest.err; then
1426 grep -v '^ *+' conftest.err >conftest.er1
1427 cat conftest.er1 >&5
1428 mv -f conftest.er1 conftest.err
1430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1431 test $ac_status = 0; } && {
1432 test -z "$ac_c_werror_flag" ||
1433 test ! -s conftest.err
1434 } && test -s conftest.$ac_objext; then :
1435 ac_retval=0
1436 else
1437 $as_echo "$as_me: failed program was:" >&5
1438 sed 's/^/| /' conftest.$ac_ext >&5
1440 ac_retval=1
1442 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1443 as_fn_set_status $ac_retval
1445 } # ac_fn_c_try_compile
1447 # ac_fn_c_try_cpp LINENO
1448 # ----------------------
1449 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1450 ac_fn_c_try_cpp ()
1452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1453 if { { ac_try="$ac_cpp conftest.$ac_ext"
1454 case "(($ac_try" in
1455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1456 *) ac_try_echo=$ac_try;;
1457 esac
1458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1459 $as_echo "$ac_try_echo"; } >&5
1460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1461 ac_status=$?
1462 if test -s conftest.err; then
1463 grep -v '^ *+' conftest.err >conftest.er1
1464 cat conftest.er1 >&5
1465 mv -f conftest.er1 conftest.err
1467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1468 test $ac_status = 0; } > conftest.i && {
1469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1470 test ! -s conftest.err
1471 }; then :
1472 ac_retval=0
1473 else
1474 $as_echo "$as_me: failed program was:" >&5
1475 sed 's/^/| /' conftest.$ac_ext >&5
1477 ac_retval=1
1479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1480 as_fn_set_status $ac_retval
1482 } # ac_fn_c_try_cpp
1484 # ac_fn_c_try_run LINENO
1485 # ----------------------
1486 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1487 # that executables *can* be run.
1488 ac_fn_c_try_run ()
1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491 if { { ac_try="$ac_link"
1492 case "(($ac_try" in
1493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1495 esac
1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_link") 2>&5
1499 ac_status=$?
1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1502 { { case "(($ac_try" in
1503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1504 *) ac_try_echo=$ac_try;;
1505 esac
1506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507 $as_echo "$ac_try_echo"; } >&5
1508 (eval "$ac_try") 2>&5
1509 ac_status=$?
1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511 test $ac_status = 0; }; }; then :
1512 ac_retval=0
1513 else
1514 $as_echo "$as_me: program exited with status $ac_status" >&5
1515 $as_echo "$as_me: failed program was:" >&5
1516 sed 's/^/| /' conftest.$ac_ext >&5
1518 ac_retval=$ac_status
1520 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1522 as_fn_set_status $ac_retval
1524 } # ac_fn_c_try_run
1526 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1527 # -------------------------------------------------------
1528 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1529 # the include files in INCLUDES and setting the cache variable VAR
1530 # accordingly.
1531 ac_fn_c_check_header_mongrel ()
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 if eval \${$3+:} false; then :
1535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1536 $as_echo_n "checking for $2... " >&6; }
1537 if eval \${$3+:} false; then :
1538 $as_echo_n "(cached) " >&6
1540 eval ac_res=\$$3
1541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1542 $as_echo "$ac_res" >&6; }
1543 else
1544 # Is the header compilable?
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1546 $as_echo_n "checking $2 usability... " >&6; }
1547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1548 /* end confdefs.h. */
1550 #include <$2>
1551 _ACEOF
1552 if ac_fn_c_try_compile "$LINENO"; then :
1553 ac_header_compiler=yes
1554 else
1555 ac_header_compiler=no
1557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1559 $as_echo "$ac_header_compiler" >&6; }
1561 # Is the header present?
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1563 $as_echo_n "checking $2 presence... " >&6; }
1564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1565 /* end confdefs.h. */
1566 #include <$2>
1567 _ACEOF
1568 if ac_fn_c_try_cpp "$LINENO"; then :
1569 ac_header_preproc=yes
1570 else
1571 ac_header_preproc=no
1573 rm -f conftest.err conftest.i conftest.$ac_ext
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1575 $as_echo "$ac_header_preproc" >&6; }
1577 # So? What about this header?
1578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1579 yes:no: )
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1581 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1583 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1585 no:yes:* )
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1587 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1589 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1591 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1593 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1595 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1596 ( $as_echo "## ----------------------------- ##
1597 ## Report this to agc@netbsd.org ##
1598 ## ----------------------------- ##"
1599 ) | sed "s/^/$as_me: WARNING: /" >&2
1601 esac
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603 $as_echo_n "checking for $2... " >&6; }
1604 if eval \${$3+:} false; then :
1605 $as_echo_n "(cached) " >&6
1606 else
1607 eval "$3=\$ac_header_compiler"
1609 eval ac_res=\$$3
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1611 $as_echo "$ac_res" >&6; }
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 } # ac_fn_c_check_header_mongrel
1617 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618 # -------------------------------------------------------
1619 # Tests whether HEADER exists and can be compiled using the include files in
1620 # INCLUDES, setting the cache variable VAR accordingly.
1621 ac_fn_c_check_header_compile ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625 $as_echo_n "checking for $2... " >&6; }
1626 if eval \${$3+:} false; then :
1627 $as_echo_n "(cached) " >&6
1628 else
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630 /* end confdefs.h. */
1632 #include <$2>
1633 _ACEOF
1634 if ac_fn_c_try_compile "$LINENO"; then :
1635 eval "$3=yes"
1636 else
1637 eval "$3=no"
1639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641 eval ac_res=\$$3
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 $as_echo "$ac_res" >&6; }
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 } # ac_fn_c_check_header_compile
1648 # ac_fn_c_find_uintX_t LINENO BITS VAR
1649 # ------------------------------------
1650 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1651 # accordingly.
1652 ac_fn_c_find_uintX_t ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1656 $as_echo_n "checking for uint$2_t... " >&6; }
1657 if eval \${$3+:} false; then :
1658 $as_echo_n "(cached) " >&6
1659 else
1660 eval "$3=no"
1661 # Order is important - never check a type that is potentially smaller
1662 # than half of the expected target width.
1663 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1664 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 $ac_includes_default
1669 main ()
1671 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1672 test_array [0] = 0;
1673 return test_array [0];
1676 return 0;
1678 _ACEOF
1679 if ac_fn_c_try_compile "$LINENO"; then :
1680 case $ac_type in #(
1681 uint$2_t) :
1682 eval "$3=yes" ;; #(
1683 *) :
1684 eval "$3=\$ac_type" ;;
1685 esac
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 if eval test \"x\$"$3"\" = x"no"; then :
1690 else
1691 break
1693 done
1695 eval ac_res=\$$3
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 $as_echo "$ac_res" >&6; }
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 } # ac_fn_c_find_uintX_t
1702 # ac_fn_c_find_intX_t LINENO BITS VAR
1703 # -----------------------------------
1704 # Finds a signed integer type with width BITS, setting cache variable VAR
1705 # accordingly.
1706 ac_fn_c_find_intX_t ()
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1710 $as_echo_n "checking for int$2_t... " >&6; }
1711 if eval \${$3+:} false; then :
1712 $as_echo_n "(cached) " >&6
1713 else
1714 eval "$3=no"
1715 # Order is important - never check a type that is potentially smaller
1716 # than half of the expected target width.
1717 for ac_type in int$2_t 'int' 'long int' \
1718 'long long int' 'short int' 'signed char'; do
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 $ac_includes_default
1722 enum { N = $2 / 2 - 1 };
1724 main ()
1726 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1727 test_array [0] = 0;
1728 return test_array [0];
1731 return 0;
1733 _ACEOF
1734 if ac_fn_c_try_compile "$LINENO"; then :
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 $ac_includes_default
1738 enum { N = $2 / 2 - 1 };
1740 main ()
1742 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1743 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1744 test_array [0] = 0;
1745 return test_array [0];
1748 return 0;
1750 _ACEOF
1751 if ac_fn_c_try_compile "$LINENO"; then :
1753 else
1754 case $ac_type in #(
1755 int$2_t) :
1756 eval "$3=yes" ;; #(
1757 *) :
1758 eval "$3=\$ac_type" ;;
1759 esac
1761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764 if eval test \"x\$"$3"\" = x"no"; then :
1766 else
1767 break
1769 done
1771 eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 } # ac_fn_c_find_intX_t
1778 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1779 # ---------------------------------------------
1780 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1781 # accordingly.
1782 ac_fn_c_check_decl ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 as_decl_name=`echo $2|sed 's/ *(.*//'`
1786 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1788 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1789 if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1791 else
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1796 main ()
1798 #ifndef $as_decl_name
1799 #ifdef __cplusplus
1800 (void) $as_decl_use;
1801 #else
1802 (void) $as_decl_name;
1803 #endif
1804 #endif
1807 return 0;
1809 _ACEOF
1810 if ac_fn_c_try_compile "$LINENO"; then :
1811 eval "$3=yes"
1812 else
1813 eval "$3=no"
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 } # ac_fn_c_check_decl
1824 # ac_fn_c_try_link LINENO
1825 # -----------------------
1826 # Try to link conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_c_try_link ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 rm -f conftest.$ac_objext conftest$ac_exeext
1831 if { { ac_try="$ac_link"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_link") 2>conftest.err
1839 ac_status=$?
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && {
1847 test -z "$ac_c_werror_flag" ||
1848 test ! -s conftest.err
1849 } && test -s conftest$ac_exeext && {
1850 test "$cross_compiling" = yes ||
1851 test -x conftest$ac_exeext
1852 }; then :
1853 ac_retval=0
1854 else
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1858 ac_retval=1
1860 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1861 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1862 # interfere with the next link command; also delete a directory that is
1863 # left behind by Apple's compiler. We do this before executing the actions.
1864 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1868 } # ac_fn_c_try_link
1870 # ac_fn_c_check_func LINENO FUNC VAR
1871 # ----------------------------------
1872 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1873 ac_fn_c_check_func ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if eval \${$3+:} false; then :
1879 $as_echo_n "(cached) " >&6
1880 else
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1883 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1885 #define $2 innocuous_$2
1887 /* System header to define __stub macros and hopefully few prototypes,
1888 which can conflict with char $2 (); below.
1889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1890 <limits.h> exists even on freestanding compilers. */
1892 #ifdef __STDC__
1893 # include <limits.h>
1894 #else
1895 # include <assert.h>
1896 #endif
1898 #undef $2
1900 /* Override any GCC internal prototype to avoid an error.
1901 Use char because int might match the return type of a GCC
1902 builtin and then its argument prototype would still apply. */
1903 #ifdef __cplusplus
1904 extern "C"
1905 #endif
1906 char $2 ();
1907 /* The GNU C library defines this for functions which it implements
1908 to always fail with ENOSYS. Some functions are actually named
1909 something starting with __ and the normal name is an alias. */
1910 #if defined __stub_$2 || defined __stub___$2
1911 choke me
1912 #endif
1915 main ()
1917 return $2 ();
1919 return 0;
1921 _ACEOF
1922 if ac_fn_c_try_link "$LINENO"; then :
1923 eval "$3=yes"
1924 else
1925 eval "$3=no"
1927 rm -f core conftest.err conftest.$ac_objext \
1928 conftest$ac_exeext conftest.$ac_ext
1930 eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 } # ac_fn_c_check_func
1936 cat >config.log <<_ACEOF
1937 This file contains any messages produced by compilers while
1938 running configure, to aid debugging if configure makes a mistake.
1940 It was created by nbsd-digest $as_me 20121220, which was
1941 generated by GNU Autoconf 2.69. Invocation command line was
1943 $ $0 $@
1945 _ACEOF
1946 exec 5>>config.log
1948 cat <<_ASUNAME
1949 ## --------- ##
1950 ## Platform. ##
1951 ## --------- ##
1953 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1954 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1955 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1956 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1957 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1959 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1960 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1962 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1963 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1964 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1965 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1966 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1967 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1968 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1970 _ASUNAME
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 $as_echo "PATH: $as_dir"
1978 done
1979 IFS=$as_save_IFS
1981 } >&5
1983 cat >&5 <<_ACEOF
1986 ## ----------- ##
1987 ## Core tests. ##
1988 ## ----------- ##
1990 _ACEOF
1993 # Keep a trace of the command line.
1994 # Strip out --no-create and --no-recursion so they do not pile up.
1995 # Strip out --silent because we don't want to record it for future runs.
1996 # Also quote any args containing shell meta-characters.
1997 # Make two passes to allow for proper duplicate-argument suppression.
1998 ac_configure_args=
1999 ac_configure_args0=
2000 ac_configure_args1=
2001 ac_must_keep_next=false
2002 for ac_pass in 1 2
2004 for ac_arg
2006 case $ac_arg in
2007 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2009 | -silent | --silent | --silen | --sile | --sil)
2010 continue ;;
2011 *\'*)
2012 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2013 esac
2014 case $ac_pass in
2015 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2017 as_fn_append ac_configure_args1 " '$ac_arg'"
2018 if test $ac_must_keep_next = true; then
2019 ac_must_keep_next=false # Got value, back to normal.
2020 else
2021 case $ac_arg in
2022 *=* | --config-cache | -C | -disable-* | --disable-* \
2023 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2024 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2025 | -with-* | --with-* | -without-* | --without-* | --x)
2026 case "$ac_configure_args0 " in
2027 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2028 esac
2030 -* ) ac_must_keep_next=true ;;
2031 esac
2033 as_fn_append ac_configure_args " '$ac_arg'"
2035 esac
2036 done
2037 done
2038 { ac_configure_args0=; unset ac_configure_args0;}
2039 { ac_configure_args1=; unset ac_configure_args1;}
2041 # When interrupted or exit'd, cleanup temporary files, and complete
2042 # config.log. We remove comments because anyway the quotes in there
2043 # would cause problems or look ugly.
2044 # WARNING: Use '\'' to represent an apostrophe within the trap.
2045 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2046 trap 'exit_status=$?
2047 # Save into config.log some information that might help in debugging.
2049 echo
2051 $as_echo "## ---------------- ##
2052 ## Cache variables. ##
2053 ## ---------------- ##"
2054 echo
2055 # The following way of writing the cache mishandles newlines in values,
2057 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in #(
2060 *${as_nl}*)
2061 case $ac_var in #(
2062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2063 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2064 esac
2065 case $ac_var in #(
2066 _ | IFS | as_nl) ;; #(
2067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2068 *) { eval $ac_var=; unset $ac_var;} ;;
2069 esac ;;
2070 esac
2071 done
2072 (set) 2>&1 |
2073 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2074 *${as_nl}ac_space=\ *)
2075 sed -n \
2076 "s/'\''/'\''\\\\'\'''\''/g;
2077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2078 ;; #(
2080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2082 esac |
2083 sort
2085 echo
2087 $as_echo "## ----------------- ##
2088 ## Output variables. ##
2089 ## ----------------- ##"
2090 echo
2091 for ac_var in $ac_subst_vars
2093 eval ac_val=\$$ac_var
2094 case $ac_val in
2095 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 esac
2097 $as_echo "$ac_var='\''$ac_val'\''"
2098 done | sort
2099 echo
2101 if test -n "$ac_subst_files"; then
2102 $as_echo "## ------------------- ##
2103 ## File substitutions. ##
2104 ## ------------------- ##"
2105 echo
2106 for ac_var in $ac_subst_files
2108 eval ac_val=\$$ac_var
2109 case $ac_val in
2110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 esac
2112 $as_echo "$ac_var='\''$ac_val'\''"
2113 done | sort
2114 echo
2117 if test -s confdefs.h; then
2118 $as_echo "## ----------- ##
2119 ## confdefs.h. ##
2120 ## ----------- ##"
2121 echo
2122 cat confdefs.h
2123 echo
2125 test "$ac_signal" != 0 &&
2126 $as_echo "$as_me: caught signal $ac_signal"
2127 $as_echo "$as_me: exit $exit_status"
2128 } >&5
2129 rm -f core *.core core.conftest.* &&
2130 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2131 exit $exit_status
2133 for ac_signal in 1 2 13 15; do
2134 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2135 done
2136 ac_signal=0
2138 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2139 rm -f -r conftest* confdefs.h
2141 $as_echo "/* confdefs.h */" > confdefs.h
2143 # Predefined preprocessor variables.
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_NAME "$PACKAGE_NAME"
2147 _ACEOF
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2151 _ACEOF
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2155 _ACEOF
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_STRING "$PACKAGE_STRING"
2159 _ACEOF
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2163 _ACEOF
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_URL "$PACKAGE_URL"
2167 _ACEOF
2170 # Let the site file select an alternate cache file if it wants to.
2171 # Prefer an explicitly selected file to automatically selected ones.
2172 ac_site_file1=NONE
2173 ac_site_file2=NONE
2174 if test -n "$CONFIG_SITE"; then
2175 # We do not want a PATH search for config.site.
2176 case $CONFIG_SITE in #((
2177 -*) ac_site_file1=./$CONFIG_SITE;;
2178 */*) ac_site_file1=$CONFIG_SITE;;
2179 *) ac_site_file1=./$CONFIG_SITE;;
2180 esac
2181 elif test "x$prefix" != xNONE; then
2182 ac_site_file1=$prefix/share/config.site
2183 ac_site_file2=$prefix/etc/config.site
2184 else
2185 ac_site_file1=$ac_default_prefix/share/config.site
2186 ac_site_file2=$ac_default_prefix/etc/config.site
2188 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2190 test "x$ac_site_file" = xNONE && continue
2191 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2193 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2194 sed 's/^/| /' "$ac_site_file" >&5
2195 . "$ac_site_file" \
2196 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198 as_fn_error $? "failed to load site script $ac_site_file
2199 See \`config.log' for more details" "$LINENO" 5; }
2201 done
2203 if test -r "$cache_file"; then
2204 # Some versions of bash will fail to source /dev/null (special files
2205 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2206 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2208 $as_echo "$as_me: loading cache $cache_file" >&6;}
2209 case $cache_file in
2210 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2211 *) . "./$cache_file";;
2212 esac
2214 else
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2216 $as_echo "$as_me: creating cache $cache_file" >&6;}
2217 >$cache_file
2220 # Check that the precious variables saved in the cache have kept the same
2221 # value.
2222 ac_cache_corrupted=false
2223 for ac_var in $ac_precious_vars; do
2224 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2225 eval ac_new_set=\$ac_env_${ac_var}_set
2226 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2227 eval ac_new_val=\$ac_env_${ac_var}_value
2228 case $ac_old_set,$ac_new_set in
2229 set,)
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2231 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2232 ac_cache_corrupted=: ;;
2233 ,set)
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2235 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2236 ac_cache_corrupted=: ;;
2237 ,);;
2239 if test "x$ac_old_val" != "x$ac_new_val"; then
2240 # differences in whitespace do not lead to failure.
2241 ac_old_val_w=`echo x $ac_old_val`
2242 ac_new_val_w=`echo x $ac_new_val`
2243 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2245 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2246 ac_cache_corrupted=:
2247 else
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2249 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2250 eval $ac_var=\$ac_old_val
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2253 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2255 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2256 fi;;
2257 esac
2258 # Pass precious variables to config.status.
2259 if test "$ac_new_set" = set; then
2260 case $ac_new_val in
2261 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2262 *) ac_arg=$ac_var=$ac_new_val ;;
2263 esac
2264 case " $ac_configure_args " in
2265 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2266 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2267 esac
2269 done
2270 if $ac_cache_corrupted; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2274 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2275 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2277 ## -------------------- ##
2278 ## Main body of script. ##
2279 ## -------------------- ##
2281 ac_ext=c
2282 ac_cpp='$CPP $CPPFLAGS'
2283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289 ac_config_headers="$ac_config_headers config.h"
2291 test "$program_prefix" != NONE &&
2292 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2293 # Use a double $ so make ignores it.
2294 test "$program_suffix" != NONE &&
2295 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2296 # Double any \ or $.
2297 # By default was `s,x,x', remove it if useless.
2298 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2299 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2302 ac_aux_dir=
2303 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2304 if test -f "$ac_dir/install-sh"; then
2305 ac_aux_dir=$ac_dir
2306 ac_install_sh="$ac_aux_dir/install-sh -c"
2307 break
2308 elif test -f "$ac_dir/install.sh"; then
2309 ac_aux_dir=$ac_dir
2310 ac_install_sh="$ac_aux_dir/install.sh -c"
2311 break
2312 elif test -f "$ac_dir/shtool"; then
2313 ac_aux_dir=$ac_dir
2314 ac_install_sh="$ac_aux_dir/shtool install -c"
2315 break
2317 done
2318 if test -z "$ac_aux_dir"; then
2319 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2322 # These three variables are undocumented and unsupported,
2323 # and are intended to be withdrawn in a future Autoconf release.
2324 # They can cause serious problems if a builder's source tree is in a directory
2325 # whose full name contains unusual characters.
2326 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2327 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2328 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2331 # Make sure we can run config.sub.
2332 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2333 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2336 $as_echo_n "checking build system type... " >&6; }
2337 if ${ac_cv_build+:} false; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 ac_build_alias=$build_alias
2341 test "x$ac_build_alias" = x &&
2342 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2343 test "x$ac_build_alias" = x &&
2344 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2345 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2346 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2350 $as_echo "$ac_cv_build" >&6; }
2351 case $ac_cv_build in
2352 *-*-*) ;;
2353 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2354 esac
2355 build=$ac_cv_build
2356 ac_save_IFS=$IFS; IFS='-'
2357 set x $ac_cv_build
2358 shift
2359 build_cpu=$1
2360 build_vendor=$2
2361 shift; shift
2362 # Remember, the first character of IFS is used to create $*,
2363 # except with old shells:
2364 build_os=$*
2365 IFS=$ac_save_IFS
2366 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2370 $as_echo_n "checking host system type... " >&6; }
2371 if ${ac_cv_host+:} false; then :
2372 $as_echo_n "(cached) " >&6
2373 else
2374 if test "x$host_alias" = x; then
2375 ac_cv_host=$ac_cv_build
2376 else
2377 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2378 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2383 $as_echo "$ac_cv_host" >&6; }
2384 case $ac_cv_host in
2385 *-*-*) ;;
2386 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2387 esac
2388 host=$ac_cv_host
2389 ac_save_IFS=$IFS; IFS='-'
2390 set x $ac_cv_host
2391 shift
2392 host_cpu=$1
2393 host_vendor=$2
2394 shift; shift
2395 # Remember, the first character of IFS is used to create $*,
2396 # except with old shells:
2397 host_os=$*
2398 IFS=$ac_save_IFS
2399 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2402 CANONICAL_HOST=$host
2405 # Checks for programs.
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2407 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2408 set x ${MAKE-make}
2409 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2410 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2411 $as_echo_n "(cached) " >&6
2412 else
2413 cat >conftest.make <<\_ACEOF
2414 SHELL = /bin/sh
2415 all:
2416 @echo '@@@%%%=$(MAKE)=@@@%%%'
2417 _ACEOF
2418 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2419 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2420 *@@@%%%=?*=@@@%%%*)
2421 eval ac_cv_prog_make_${ac_make}_set=yes;;
2423 eval ac_cv_prog_make_${ac_make}_set=no;;
2424 esac
2425 rm -f conftest.make
2427 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2429 $as_echo "yes" >&6; }
2430 SET_MAKE=
2431 else
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2433 $as_echo "no" >&6; }
2434 SET_MAKE="MAKE=${MAKE-make}"
2437 for ac_prog in gawk mawk nawk awk
2439 # Extract the first word of "$ac_prog", so it can be a program name with args.
2440 set dummy $ac_prog; ac_word=$2
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442 $as_echo_n "checking for $ac_word... " >&6; }
2443 if ${ac_cv_prog_AWK+:} false; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 if test -n "$AWK"; then
2447 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456 ac_cv_prog_AWK="$ac_prog"
2457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 break 2
2460 done
2461 done
2462 IFS=$as_save_IFS
2466 AWK=$ac_cv_prog_AWK
2467 if test -n "$AWK"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2469 $as_echo "$AWK" >&6; }
2470 else
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472 $as_echo "no" >&6; }
2476 test -n "$AWK" && break
2477 done
2479 ac_ext=c
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2484 if test -n "$ac_tool_prefix"; then
2485 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2486 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488 $as_echo_n "checking for $ac_word... " >&6; }
2489 if ${ac_cv_prog_CC+:} false; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 if test -n "$CC"; then
2493 ac_cv_prog_CC="$CC" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2502 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 break 2
2506 done
2507 done
2508 IFS=$as_save_IFS
2512 CC=$ac_cv_prog_CC
2513 if test -n "$CC"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2515 $as_echo "$CC" >&6; }
2516 else
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518 $as_echo "no" >&6; }
2523 if test -z "$ac_cv_prog_CC"; then
2524 ac_ct_CC=$CC
2525 # Extract the first word of "gcc", so it can be a program name with args.
2526 set dummy gcc; ac_word=$2
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2530 $as_echo_n "(cached) " >&6
2531 else
2532 if test -n "$ac_ct_CC"; then
2533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542 ac_cv_prog_ac_ct_CC="gcc"
2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 break 2
2546 done
2547 done
2548 IFS=$as_save_IFS
2552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2553 if test -n "$ac_ct_CC"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2555 $as_echo "$ac_ct_CC" >&6; }
2556 else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558 $as_echo "no" >&6; }
2561 if test "x$ac_ct_CC" = x; then
2562 CC=""
2563 else
2564 case $cross_compiling:$ac_tool_warned in
2565 yes:)
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2568 ac_tool_warned=yes ;;
2569 esac
2570 CC=$ac_ct_CC
2572 else
2573 CC="$ac_cv_prog_CC"
2576 if test -z "$CC"; then
2577 if test -n "$ac_tool_prefix"; then
2578 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2579 set dummy ${ac_tool_prefix}cc; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if ${ac_cv_prog_CC+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_CC="${ac_tool_prefix}cc"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2599 done
2600 done
2601 IFS=$as_save_IFS
2605 CC=$ac_cv_prog_CC
2606 if test -n "$CC"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2608 $as_echo "$CC" >&6; }
2609 else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 $as_echo "no" >&6; }
2617 if test -z "$CC"; then
2618 # Extract the first word of "cc", so it can be a program name with args.
2619 set dummy cc; ac_word=$2
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if ${ac_cv_prog_CC+:} false; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 if test -n "$CC"; then
2626 ac_cv_prog_CC="$CC" # Let the user override the test.
2627 else
2628 ac_prog_rejected=no
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2637 ac_prog_rejected=yes
2638 continue
2640 ac_cv_prog_CC="cc"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2644 done
2645 done
2646 IFS=$as_save_IFS
2648 if test $ac_prog_rejected = yes; then
2649 # We found a bogon in the path, so make sure we never use it.
2650 set dummy $ac_cv_prog_CC
2651 shift
2652 if test $# != 0; then
2653 # We chose a different compiler from the bogus one.
2654 # However, it has the same basename, so the bogon will be chosen
2655 # first if we set CC to just the basename; use the full file name.
2656 shift
2657 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2662 CC=$ac_cv_prog_CC
2663 if test -n "$CC"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2665 $as_echo "$CC" >&6; }
2666 else
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2673 if test -z "$CC"; then
2674 if test -n "$ac_tool_prefix"; then
2675 for ac_prog in cl.exe
2677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if ${ac_cv_prog_CC+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if test -n "$CC"; then
2685 ac_cv_prog_CC="$CC" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2698 done
2699 done
2700 IFS=$as_save_IFS
2704 CC=$ac_cv_prog_CC
2705 if test -n "$CC"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2707 $as_echo "$CC" >&6; }
2708 else
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2714 test -n "$CC" && break
2715 done
2717 if test -z "$CC"; then
2718 ac_ct_CC=$CC
2719 for ac_prog in cl.exe
2721 # Extract the first word of "$ac_prog", so it can be a program name with args.
2722 set dummy $ac_prog; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727 else
2728 if test -n "$ac_ct_CC"; then
2729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738 ac_cv_prog_ac_ct_CC="$ac_prog"
2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 break 2
2742 done
2743 done
2744 IFS=$as_save_IFS
2748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2749 if test -n "$ac_ct_CC"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2751 $as_echo "$ac_ct_CC" >&6; }
2752 else
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2758 test -n "$ac_ct_CC" && break
2759 done
2761 if test "x$ac_ct_CC" = x; then
2762 CC=""
2763 else
2764 case $cross_compiling:$ac_tool_warned in
2765 yes:)
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2768 ac_tool_warned=yes ;;
2769 esac
2770 CC=$ac_ct_CC
2777 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2779 as_fn_error $? "no acceptable C compiler found in \$PATH
2780 See \`config.log' for more details" "$LINENO" 5; }
2782 # Provide some information about the compiler.
2783 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2784 set X $ac_compile
2785 ac_compiler=$2
2786 for ac_option in --version -v -V -qversion; do
2787 { { ac_try="$ac_compiler $ac_option >&5"
2788 case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791 esac
2792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2793 $as_echo "$ac_try_echo"; } >&5
2794 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2795 ac_status=$?
2796 if test -s conftest.err; then
2797 sed '10a\
2798 ... rest of stderr output deleted ...
2799 10q' conftest.err >conftest.er1
2800 cat conftest.er1 >&5
2802 rm -f conftest.er1 conftest.err
2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804 test $ac_status = 0; }
2805 done
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2811 main ()
2815 return 0;
2817 _ACEOF
2818 ac_clean_files_save=$ac_clean_files
2819 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2820 # Try to create an executable without -o first, disregard a.out.
2821 # It will help us diagnose broken compilers, and finding out an intuition
2822 # of exeext.
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2824 $as_echo_n "checking whether the C compiler works... " >&6; }
2825 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2827 # The possible output files:
2828 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2830 ac_rmfiles=
2831 for ac_file in $ac_files
2833 case $ac_file in
2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2835 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2836 esac
2837 done
2838 rm -f $ac_rmfiles
2840 if { { ac_try="$ac_link_default"
2841 case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844 esac
2845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846 $as_echo "$ac_try_echo"; } >&5
2847 (eval "$ac_link_default") 2>&5
2848 ac_status=$?
2849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2850 test $ac_status = 0; }; then :
2851 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2852 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2853 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2854 # so that the user can short-circuit this test for compilers unknown to
2855 # Autoconf.
2856 for ac_file in $ac_files ''
2858 test -f "$ac_file" || continue
2859 case $ac_file in
2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2862 [ab].out )
2863 # We found the default executable, but exeext='' is most
2864 # certainly right.
2865 break;;
2866 *.* )
2867 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2868 then :; else
2869 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2871 # We set ac_cv_exeext here because the later test for it is not
2872 # safe: cross compilers may not add the suffix if given an `-o'
2873 # argument, so we may need to know it at that point already.
2874 # Even if this section looks crufty: it has the advantage of
2875 # actually working.
2876 break;;
2878 break;;
2879 esac
2880 done
2881 test "$ac_cv_exeext" = no && ac_cv_exeext=
2883 else
2884 ac_file=''
2886 if test -z "$ac_file"; then :
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 $as_echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2894 as_fn_error 77 "C compiler cannot create executables
2895 See \`config.log' for more details" "$LINENO" 5; }
2896 else
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2898 $as_echo "yes" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2901 $as_echo_n "checking for C compiler default output file name... " >&6; }
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2903 $as_echo "$ac_file" >&6; }
2904 ac_exeext=$ac_cv_exeext
2906 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2907 ac_clean_files=$ac_clean_files_save
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2909 $as_echo_n "checking for suffix of executables... " >&6; }
2910 if { { ac_try="$ac_link"
2911 case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914 esac
2915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2916 $as_echo "$ac_try_echo"; } >&5
2917 (eval "$ac_link") 2>&5
2918 ac_status=$?
2919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2920 test $ac_status = 0; }; then :
2921 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2922 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2923 # work properly (i.e., refer to `conftest.exe'), while it won't with
2924 # `rm'.
2925 for ac_file in conftest.exe conftest conftest.*; do
2926 test -f "$ac_file" || continue
2927 case $ac_file in
2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2929 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2930 break;;
2931 * ) break;;
2932 esac
2933 done
2934 else
2935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2938 See \`config.log' for more details" "$LINENO" 5; }
2940 rm -f conftest conftest$ac_cv_exeext
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2942 $as_echo "$ac_cv_exeext" >&6; }
2944 rm -f conftest.$ac_ext
2945 EXEEXT=$ac_cv_exeext
2946 ac_exeext=$EXEEXT
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2949 #include <stdio.h>
2951 main ()
2953 FILE *f = fopen ("conftest.out", "w");
2954 return ferror (f) || fclose (f) != 0;
2957 return 0;
2959 _ACEOF
2960 ac_clean_files="$ac_clean_files conftest.out"
2961 # Check that the compiler produces executables we can run. If not, either
2962 # the compiler is broken, or we cross compile.
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2964 $as_echo_n "checking whether we are cross compiling... " >&6; }
2965 if test "$cross_compiling" != yes; then
2966 { { ac_try="$ac_link"
2967 case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970 esac
2971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2972 $as_echo "$ac_try_echo"; } >&5
2973 (eval "$ac_link") 2>&5
2974 ac_status=$?
2975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2976 test $ac_status = 0; }
2977 if { ac_try='./conftest$ac_cv_exeext'
2978 { { case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983 $as_echo "$ac_try_echo"; } >&5
2984 (eval "$ac_try") 2>&5
2985 ac_status=$?
2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987 test $ac_status = 0; }; }; then
2988 cross_compiling=no
2989 else
2990 if test "$cross_compiling" = maybe; then
2991 cross_compiling=yes
2992 else
2993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2995 as_fn_error $? "cannot run C compiled programs.
2996 If you meant to cross compile, use \`--host'.
2997 See \`config.log' for more details" "$LINENO" 5; }
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3002 $as_echo "$cross_compiling" >&6; }
3004 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3005 ac_clean_files=$ac_clean_files_save
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3007 $as_echo_n "checking for suffix of object files... " >&6; }
3008 if ${ac_cv_objext+:} false; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3012 /* end confdefs.h. */
3015 main ()
3019 return 0;
3021 _ACEOF
3022 rm -f conftest.o conftest.obj
3023 if { { ac_try="$ac_compile"
3024 case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_compile") 2>&5
3031 ac_status=$?
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }; then :
3034 for ac_file in conftest.o conftest.obj conftest.*; do
3035 test -f "$ac_file" || continue;
3036 case $ac_file in
3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3039 break;;
3040 esac
3041 done
3042 else
3043 $as_echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error $? "cannot compute suffix of object files: cannot compile
3049 See \`config.log' for more details" "$LINENO" 5; }
3051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3054 $as_echo "$ac_cv_objext" >&6; }
3055 OBJEXT=$ac_cv_objext
3056 ac_objext=$OBJEXT
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3058 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3059 if ${ac_cv_c_compiler_gnu+:} false; then :
3060 $as_echo_n "(cached) " >&6
3061 else
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h. */
3066 main ()
3068 #ifndef __GNUC__
3069 choke me
3070 #endif
3073 return 0;
3075 _ACEOF
3076 if ac_fn_c_try_compile "$LINENO"; then :
3077 ac_compiler_gnu=yes
3078 else
3079 ac_compiler_gnu=no
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3086 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3087 if test $ac_compiler_gnu = yes; then
3088 GCC=yes
3089 else
3090 GCC=
3092 ac_test_CFLAGS=${CFLAGS+set}
3093 ac_save_CFLAGS=$CFLAGS
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3095 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3096 if ${ac_cv_prog_cc_g+:} false; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 ac_save_c_werror_flag=$ac_c_werror_flag
3100 ac_c_werror_flag=yes
3101 ac_cv_prog_cc_g=no
3102 CFLAGS="-g"
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3107 main ()
3111 return 0;
3113 _ACEOF
3114 if ac_fn_c_try_compile "$LINENO"; then :
3115 ac_cv_prog_cc_g=yes
3116 else
3117 CFLAGS=""
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119 /* end confdefs.h. */
3122 main ()
3126 return 0;
3128 _ACEOF
3129 if ac_fn_c_try_compile "$LINENO"; then :
3131 else
3132 ac_c_werror_flag=$ac_save_c_werror_flag
3133 CFLAGS="-g"
3134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3135 /* end confdefs.h. */
3138 main ()
3142 return 0;
3144 _ACEOF
3145 if ac_fn_c_try_compile "$LINENO"; then :
3146 ac_cv_prog_cc_g=yes
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 ac_c_werror_flag=$ac_save_c_werror_flag
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3156 $as_echo "$ac_cv_prog_cc_g" >&6; }
3157 if test "$ac_test_CFLAGS" = set; then
3158 CFLAGS=$ac_save_CFLAGS
3159 elif test $ac_cv_prog_cc_g = yes; then
3160 if test "$GCC" = yes; then
3161 CFLAGS="-g -O2"
3162 else
3163 CFLAGS="-g"
3165 else
3166 if test "$GCC" = yes; then
3167 CFLAGS="-O2"
3168 else
3169 CFLAGS=
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3173 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3174 if ${ac_cv_prog_cc_c89+:} false; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 ac_cv_prog_cc_c89=no
3178 ac_save_CC=$CC
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3181 #include <stdarg.h>
3182 #include <stdio.h>
3183 struct stat;
3184 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3185 struct buf { int x; };
3186 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3187 static char *e (p, i)
3188 char **p;
3189 int i;
3191 return p[i];
3193 static char *f (char * (*g) (char **, int), char **p, ...)
3195 char *s;
3196 va_list v;
3197 va_start (v,p);
3198 s = g (p, va_arg (v,int));
3199 va_end (v);
3200 return s;
3203 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3204 function prototypes and stuff, but not '\xHH' hex character constants.
3205 These don't provoke an error unfortunately, instead are silently treated
3206 as 'x'. The following induces an error, until -std is added to get
3207 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3208 array size at least. It's necessary to write '\x00'==0 to get something
3209 that's true only with -std. */
3210 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3212 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3213 inside strings and character constants. */
3214 #define FOO(x) 'x'
3215 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3217 int test (int i, double x);
3218 struct s1 {int (*f) (int a);};
3219 struct s2 {int (*f) (double a);};
3220 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3221 int argc;
3222 char **argv;
3224 main ()
3226 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3228 return 0;
3230 _ACEOF
3231 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3232 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3234 CC="$ac_save_CC $ac_arg"
3235 if ac_fn_c_try_compile "$LINENO"; then :
3236 ac_cv_prog_cc_c89=$ac_arg
3238 rm -f core conftest.err conftest.$ac_objext
3239 test "x$ac_cv_prog_cc_c89" != "xno" && break
3240 done
3241 rm -f conftest.$ac_ext
3242 CC=$ac_save_CC
3245 # AC_CACHE_VAL
3246 case "x$ac_cv_prog_cc_c89" in
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3249 $as_echo "none needed" >&6; } ;;
3250 xno)
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3252 $as_echo "unsupported" >&6; } ;;
3254 CC="$CC $ac_cv_prog_cc_c89"
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3256 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3257 esac
3258 if test "x$ac_cv_prog_cc_c89" != xno; then :
3262 ac_ext=c
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 # Find a good install program. We prefer a C program (faster),
3269 # so one script is as good as another. But avoid the broken or
3270 # incompatible versions:
3271 # SysV /etc/install, /usr/sbin/install
3272 # SunOS /usr/etc/install
3273 # IRIX /sbin/install
3274 # AIX /bin/install
3275 # AmigaOS /C/install, which installs bootblocks on floppy discs
3276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3279 # OS/2's system install, which has a completely different semantic
3280 # ./install, which can be erroneously created by make from ./install.sh.
3281 # Reject install programs that cannot install multiple files.
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3283 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3284 if test -z "$INSTALL"; then
3285 if ${ac_cv_path_install+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 # Account for people who put trailing slashes in PATH elements.
3294 case $as_dir/ in #((
3295 ./ | .// | /[cC]/* | \
3296 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3297 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3298 /usr/ucb/* ) ;;
3300 # OSF1 and SCO ODT 3.0 have their own names for install.
3301 # Don't use installbsd from OSF since it installs stuff as root
3302 # by default.
3303 for ac_prog in ginstall scoinst install; do
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3306 if test $ac_prog = install &&
3307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3308 # AIX install. It has an incompatible calling convention.
3310 elif test $ac_prog = install &&
3311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3312 # program-specific install script used by HP pwplus--don't use.
3314 else
3315 rm -rf conftest.one conftest.two conftest.dir
3316 echo one > conftest.one
3317 echo two > conftest.two
3318 mkdir conftest.dir
3319 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3320 test -s conftest.one && test -s conftest.two &&
3321 test -s conftest.dir/conftest.one &&
3322 test -s conftest.dir/conftest.two
3323 then
3324 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3325 break 3
3329 done
3330 done
3332 esac
3334 done
3335 IFS=$as_save_IFS
3337 rm -rf conftest.one conftest.two conftest.dir
3340 if test "${ac_cv_path_install+set}" = set; then
3341 INSTALL=$ac_cv_path_install
3342 else
3343 # As a last resort, use the slow shell script. Don't cache a
3344 # value for INSTALL within a source directory, because that will
3345 # break other packages using the cache if that directory is
3346 # removed, or if the value is a relative name.
3347 INSTALL=$ac_install_sh
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3351 $as_echo "$INSTALL" >&6; }
3353 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3354 # It thinks the first close brace ends the variable substitution.
3355 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3357 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3359 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3362 $as_echo_n "checking whether ln -s works... " >&6; }
3363 LN_S=$as_ln_s
3364 if test "$LN_S" = "ln -s"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3366 $as_echo "yes" >&6; }
3367 else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3369 $as_echo "no, using $LN_S" >&6; }
3373 AUTOCONF=${AUTOCONF-"$srcdir/missing --run autoconf"}
3375 AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"}
3379 ac_ext=c
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3385 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3386 # On Suns, sometimes $CPP names a directory.
3387 if test -n "$CPP" && test -d "$CPP"; then
3388 CPP=
3390 if test -z "$CPP"; then
3391 if ${ac_cv_prog_CPP+:} false; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 # Double quotes because CPP needs to be expanded
3395 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3397 ac_preproc_ok=false
3398 for ac_c_preproc_warn_flag in '' yes
3400 # Use a header file that comes with gcc, so configuring glibc
3401 # with a fresh cross-compiler works.
3402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3403 # <limits.h> exists even on freestanding compilers.
3404 # On the NeXT, cc -E runs the code through the compiler's parser,
3405 # not just through cpp. "Syntax error" is here to catch this case.
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3408 #ifdef __STDC__
3409 # include <limits.h>
3410 #else
3411 # include <assert.h>
3412 #endif
3413 Syntax error
3414 _ACEOF
3415 if ac_fn_c_try_cpp "$LINENO"; then :
3417 else
3418 # Broken: fails on valid input.
3419 continue
3421 rm -f conftest.err conftest.i conftest.$ac_ext
3423 # OK, works on sane cases. Now check whether nonexistent headers
3424 # can be detected and how.
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3427 #include <ac_nonexistent.h>
3428 _ACEOF
3429 if ac_fn_c_try_cpp "$LINENO"; then :
3430 # Broken: success on invalid input.
3431 continue
3432 else
3433 # Passes both tests.
3434 ac_preproc_ok=:
3435 break
3437 rm -f conftest.err conftest.i conftest.$ac_ext
3439 done
3440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3441 rm -f conftest.i conftest.err conftest.$ac_ext
3442 if $ac_preproc_ok; then :
3443 break
3446 done
3447 ac_cv_prog_CPP=$CPP
3450 CPP=$ac_cv_prog_CPP
3451 else
3452 ac_cv_prog_CPP=$CPP
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3455 $as_echo "$CPP" >&6; }
3456 ac_preproc_ok=false
3457 for ac_c_preproc_warn_flag in '' yes
3459 # Use a header file that comes with gcc, so configuring glibc
3460 # with a fresh cross-compiler works.
3461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3462 # <limits.h> exists even on freestanding compilers.
3463 # On the NeXT, cc -E runs the code through the compiler's parser,
3464 # not just through cpp. "Syntax error" is here to catch this case.
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3467 #ifdef __STDC__
3468 # include <limits.h>
3469 #else
3470 # include <assert.h>
3471 #endif
3472 Syntax error
3473 _ACEOF
3474 if ac_fn_c_try_cpp "$LINENO"; then :
3476 else
3477 # Broken: fails on valid input.
3478 continue
3480 rm -f conftest.err conftest.i conftest.$ac_ext
3482 # OK, works on sane cases. Now check whether nonexistent headers
3483 # can be detected and how.
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3486 #include <ac_nonexistent.h>
3487 _ACEOF
3488 if ac_fn_c_try_cpp "$LINENO"; then :
3489 # Broken: success on invalid input.
3490 continue
3491 else
3492 # Passes both tests.
3493 ac_preproc_ok=:
3494 break
3496 rm -f conftest.err conftest.i conftest.$ac_ext
3498 done
3499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3500 rm -f conftest.i conftest.err conftest.$ac_ext
3501 if $ac_preproc_ok; then :
3503 else
3504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3507 See \`config.log' for more details" "$LINENO" 5; }
3510 ac_ext=c
3511 ac_cpp='$CPP $CPPFLAGS'
3512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3518 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3519 if ${ac_cv_path_GREP+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 if test -z "$GREP"; then
3523 ac_path_GREP_found=false
3524 # Loop through the user's path and test for each of PROGNAME-LIST
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_prog in grep ggrep; do
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3533 as_fn_executable_p "$ac_path_GREP" || continue
3534 # Check for GNU ac_path_GREP and select it if it is found.
3535 # Check for GNU $ac_path_GREP
3536 case `"$ac_path_GREP" --version 2>&1` in
3537 *GNU*)
3538 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3540 ac_count=0
3541 $as_echo_n 0123456789 >"conftest.in"
3542 while :
3544 cat "conftest.in" "conftest.in" >"conftest.tmp"
3545 mv "conftest.tmp" "conftest.in"
3546 cp "conftest.in" "conftest.nl"
3547 $as_echo 'GREP' >> "conftest.nl"
3548 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3550 as_fn_arith $ac_count + 1 && ac_count=$as_val
3551 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3552 # Best one so far, save it but keep looking for a better one
3553 ac_cv_path_GREP="$ac_path_GREP"
3554 ac_path_GREP_max=$ac_count
3556 # 10*(2^10) chars as input seems more than enough
3557 test $ac_count -gt 10 && break
3558 done
3559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3560 esac
3562 $ac_path_GREP_found && break 3
3563 done
3564 done
3565 done
3566 IFS=$as_save_IFS
3567 if test -z "$ac_cv_path_GREP"; then
3568 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3570 else
3571 ac_cv_path_GREP=$GREP
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3576 $as_echo "$ac_cv_path_GREP" >&6; }
3577 GREP="$ac_cv_path_GREP"
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3581 $as_echo_n "checking for egrep... " >&6; }
3582 if ${ac_cv_path_EGREP+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3586 then ac_cv_path_EGREP="$GREP -E"
3587 else
3588 if test -z "$EGREP"; then
3589 ac_path_EGREP_found=false
3590 # Loop through the user's path and test for each of PROGNAME-LIST
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_prog in egrep; do
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3599 as_fn_executable_p "$ac_path_EGREP" || continue
3600 # Check for GNU ac_path_EGREP and select it if it is found.
3601 # Check for GNU $ac_path_EGREP
3602 case `"$ac_path_EGREP" --version 2>&1` in
3603 *GNU*)
3604 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3606 ac_count=0
3607 $as_echo_n 0123456789 >"conftest.in"
3608 while :
3610 cat "conftest.in" "conftest.in" >"conftest.tmp"
3611 mv "conftest.tmp" "conftest.in"
3612 cp "conftest.in" "conftest.nl"
3613 $as_echo 'EGREP' >> "conftest.nl"
3614 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3616 as_fn_arith $ac_count + 1 && ac_count=$as_val
3617 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3618 # Best one so far, save it but keep looking for a better one
3619 ac_cv_path_EGREP="$ac_path_EGREP"
3620 ac_path_EGREP_max=$ac_count
3622 # 10*(2^10) chars as input seems more than enough
3623 test $ac_count -gt 10 && break
3624 done
3625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3626 esac
3628 $ac_path_EGREP_found && break 3
3629 done
3630 done
3631 done
3632 IFS=$as_save_IFS
3633 if test -z "$ac_cv_path_EGREP"; then
3634 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3636 else
3637 ac_cv_path_EGREP=$EGREP
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3643 $as_echo "$ac_cv_path_EGREP" >&6; }
3644 EGREP="$ac_cv_path_EGREP"
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3648 $as_echo_n "checking for ANSI C header files... " >&6; }
3649 if ${ac_cv_header_stdc+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3654 #include <stdlib.h>
3655 #include <stdarg.h>
3656 #include <string.h>
3657 #include <float.h>
3660 main ()
3664 return 0;
3666 _ACEOF
3667 if ac_fn_c_try_compile "$LINENO"; then :
3668 ac_cv_header_stdc=yes
3669 else
3670 ac_cv_header_stdc=no
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 if test $ac_cv_header_stdc = yes; then
3675 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678 #include <string.h>
3680 _ACEOF
3681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3682 $EGREP "memchr" >/dev/null 2>&1; then :
3684 else
3685 ac_cv_header_stdc=no
3687 rm -f conftest*
3691 if test $ac_cv_header_stdc = yes; then
3692 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3695 #include <stdlib.h>
3697 _ACEOF
3698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3699 $EGREP "free" >/dev/null 2>&1; then :
3701 else
3702 ac_cv_header_stdc=no
3704 rm -f conftest*
3708 if test $ac_cv_header_stdc = yes; then
3709 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3710 if test "$cross_compiling" = yes; then :
3712 else
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715 #include <ctype.h>
3716 #include <stdlib.h>
3717 #if ((' ' & 0x0FF) == 0x020)
3718 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3719 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3720 #else
3721 # define ISLOWER(c) \
3722 (('a' <= (c) && (c) <= 'i') \
3723 || ('j' <= (c) && (c) <= 'r') \
3724 || ('s' <= (c) && (c) <= 'z'))
3725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3726 #endif
3728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3730 main ()
3732 int i;
3733 for (i = 0; i < 256; i++)
3734 if (XOR (islower (i), ISLOWER (i))
3735 || toupper (i) != TOUPPER (i))
3736 return 2;
3737 return 0;
3739 _ACEOF
3740 if ac_fn_c_try_run "$LINENO"; then :
3742 else
3743 ac_cv_header_stdc=no
3745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3746 conftest.$ac_objext conftest.beam conftest.$ac_ext
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3752 $as_echo "$ac_cv_header_stdc" >&6; }
3753 if test $ac_cv_header_stdc = yes; then
3755 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3759 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3760 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3761 inttypes.h stdint.h unistd.h
3762 do :
3763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3764 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3766 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3767 cat >>confdefs.h <<_ACEOF
3768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3769 _ACEOF
3773 done
3776 for ac_header in errno.h fcntl.h inttypes.h locale.h stdlib.h
3777 do :
3778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3779 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3780 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3781 cat >>confdefs.h <<_ACEOF
3782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3783 _ACEOF
3787 done
3789 for ac_header in sys/cdefs.h sys/file.h sys/param.h
3790 do :
3791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3792 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3793 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3794 cat >>confdefs.h <<_ACEOF
3795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3796 _ACEOF
3800 done
3803 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
3804 case $ac_cv_c_uint8_t in #(
3805 no|yes) ;; #(
3808 $as_echo "#define _UINT8_T 1" >>confdefs.h
3811 cat >>confdefs.h <<_ACEOF
3812 #define uint8_t $ac_cv_c_uint8_t
3813 _ACEOF
3815 esac
3817 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
3818 case $ac_cv_c_uint16_t in #(
3819 no|yes) ;; #(
3823 cat >>confdefs.h <<_ACEOF
3824 #define uint16_t $ac_cv_c_uint16_t
3825 _ACEOF
3827 esac
3829 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
3830 case $ac_cv_c_uint32_t in #(
3831 no|yes) ;; #(
3834 $as_echo "#define _UINT32_T 1" >>confdefs.h
3837 cat >>confdefs.h <<_ACEOF
3838 #define uint32_t $ac_cv_c_uint32_t
3839 _ACEOF
3841 esac
3843 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
3844 case $ac_cv_c_int64_t in #(
3845 no|yes) ;; #(
3848 cat >>confdefs.h <<_ACEOF
3849 #define int64_t $ac_cv_c_int64_t
3850 _ACEOF
3852 esac
3854 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
3855 case $ac_cv_c_uint64_t in #(
3856 no|yes) ;; #(
3859 $as_echo "#define _UINT64_T 1" >>confdefs.h
3862 cat >>confdefs.h <<_ACEOF
3863 #define uint64_t $ac_cv_c_uint64_t
3864 _ACEOF
3866 esac
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3870 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3871 if ${ac_cv_c_bigendian+:} false; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 ac_cv_c_bigendian=unknown
3875 # See if we're dealing with a universal compiler.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #ifndef __APPLE_CC__
3879 not a universal capable compiler
3880 #endif
3881 typedef int dummy;
3883 _ACEOF
3884 if ac_fn_c_try_compile "$LINENO"; then :
3886 # Check for potential -arch flags. It is not universal unless
3887 # there are at least two -arch flags with different values.
3888 ac_arch=
3889 ac_prev=
3890 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3891 if test -n "$ac_prev"; then
3892 case $ac_word in
3893 i?86 | x86_64 | ppc | ppc64)
3894 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3895 ac_arch=$ac_word
3896 else
3897 ac_cv_c_bigendian=universal
3898 break
3901 esac
3902 ac_prev=
3903 elif test "x$ac_word" = "x-arch"; then
3904 ac_prev=arch
3906 done
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 if test $ac_cv_c_bigendian = unknown; then
3910 # See if sys/param.h defines the BYTE_ORDER macro.
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913 #include <sys/types.h>
3914 #include <sys/param.h>
3917 main ()
3919 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3920 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3921 && LITTLE_ENDIAN)
3922 bogus endian macros
3923 #endif
3926 return 0;
3928 _ACEOF
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930 # It does; now see whether it defined to BIG_ENDIAN or not.
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933 #include <sys/types.h>
3934 #include <sys/param.h>
3937 main ()
3939 #if BYTE_ORDER != BIG_ENDIAN
3940 not big endian
3941 #endif
3944 return 0;
3946 _ACEOF
3947 if ac_fn_c_try_compile "$LINENO"; then :
3948 ac_cv_c_bigendian=yes
3949 else
3950 ac_cv_c_bigendian=no
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 if test $ac_cv_c_bigendian = unknown; then
3957 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #include <limits.h>
3963 main ()
3965 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3966 bogus endian macros
3967 #endif
3970 return 0;
3972 _ACEOF
3973 if ac_fn_c_try_compile "$LINENO"; then :
3974 # It does; now see whether it defined to _BIG_ENDIAN or not.
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3977 #include <limits.h>
3980 main ()
3982 #ifndef _BIG_ENDIAN
3983 not big endian
3984 #endif
3987 return 0;
3989 _ACEOF
3990 if ac_fn_c_try_compile "$LINENO"; then :
3991 ac_cv_c_bigendian=yes
3992 else
3993 ac_cv_c_bigendian=no
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999 if test $ac_cv_c_bigendian = unknown; then
4000 # Compile a test program.
4001 if test "$cross_compiling" = yes; then :
4002 # Try to guess by grepping values from an object file.
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005 short int ascii_mm[] =
4006 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4007 short int ascii_ii[] =
4008 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4009 int use_ascii (int i) {
4010 return ascii_mm[i] + ascii_ii[i];
4012 short int ebcdic_ii[] =
4013 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4014 short int ebcdic_mm[] =
4015 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4016 int use_ebcdic (int i) {
4017 return ebcdic_mm[i] + ebcdic_ii[i];
4019 extern int foo;
4022 main ()
4024 return use_ascii (foo) == use_ebcdic (foo);
4026 return 0;
4028 _ACEOF
4029 if ac_fn_c_try_compile "$LINENO"; then :
4030 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4031 ac_cv_c_bigendian=yes
4033 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4034 if test "$ac_cv_c_bigendian" = unknown; then
4035 ac_cv_c_bigendian=no
4036 else
4037 # finding both strings is unlikely to happen, but who knows?
4038 ac_cv_c_bigendian=unknown
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 else
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 $ac_includes_default
4048 main ()
4051 /* Are we little or big endian? From Harbison&Steele. */
4052 union
4054 long int l;
4055 char c[sizeof (long int)];
4056 } u;
4057 u.l = 1;
4058 return u.c[sizeof (long int) - 1] == 1;
4061 return 0;
4063 _ACEOF
4064 if ac_fn_c_try_run "$LINENO"; then :
4065 ac_cv_c_bigendian=no
4066 else
4067 ac_cv_c_bigendian=yes
4069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4070 conftest.$ac_objext conftest.beam conftest.$ac_ext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4076 $as_echo "$ac_cv_c_bigendian" >&6; }
4077 case $ac_cv_c_bigendian in #(
4078 yes)
4079 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4080 ;; #(
4082 ;; #(
4083 universal)
4085 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4087 ;; #(
4089 as_fn_error $? "unknown endianness
4090 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4091 esac
4094 # Checks for library functions.
4095 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
4096 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
4097 ac_have_decl=1
4098 else
4099 ac_have_decl=0
4102 cat >>confdefs.h <<_ACEOF
4103 #define HAVE_DECL_STRERROR_R $ac_have_decl
4104 _ACEOF
4106 for ac_func in strerror_r
4107 do :
4108 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
4109 if test "x$ac_cv_func_strerror_r" = xyes; then :
4110 cat >>confdefs.h <<_ACEOF
4111 #define HAVE_STRERROR_R 1
4112 _ACEOF
4115 done
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
4118 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
4119 if ${ac_cv_func_strerror_r_char_p+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4123 ac_cv_func_strerror_r_char_p=no
4124 if test $ac_cv_have_decl_strerror_r = yes; then
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127 $ac_includes_default
4129 main ()
4132 char buf[100];
4133 char x = *strerror_r (0, buf, sizeof buf);
4134 char *p = strerror_r (0, buf, sizeof buf);
4135 return !p || x;
4138 return 0;
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_func_strerror_r_char_p=yes
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 else
4146 # strerror_r is not declared. Choose between
4147 # systems that have relatively inaccessible declarations for the
4148 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
4149 # former has a strerror_r that returns char*, while the latter
4150 # has a strerror_r that returns `int'.
4151 # This test should segfault on the DEC system.
4152 if test "$cross_compiling" = yes; then :
4154 else
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157 $ac_includes_default
4158 extern char *strerror_r ();
4160 main ()
4162 char buf[100];
4163 char x = *strerror_r (0, buf, sizeof buf);
4164 return ! isalpha (x);
4166 return 0;
4168 _ACEOF
4169 if ac_fn_c_try_run "$LINENO"; then :
4170 ac_cv_func_strerror_r_char_p=yes
4172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4173 conftest.$ac_objext conftest.beam conftest.$ac_ext
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
4180 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
4181 if test $ac_cv_func_strerror_r_char_p = yes; then
4183 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
4187 for ac_func in setlocale
4188 do :
4189 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
4190 if test "x$ac_cv_func_setlocale" = xyes; then :
4191 cat >>confdefs.h <<_ACEOF
4192 #define HAVE_SETLOCALE 1
4193 _ACEOF
4196 done
4201 ac_config_files="$ac_config_files Makefile"
4203 cat >confcache <<\_ACEOF
4204 # This file is a shell script that caches the results of configure
4205 # tests run on this system so they can be shared between configure
4206 # scripts and configure runs, see configure's option --config-cache.
4207 # It is not useful on other systems. If it contains results you don't
4208 # want to keep, you may remove or edit it.
4210 # config.status only pays attention to the cache file if you give it
4211 # the --recheck option to rerun configure.
4213 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4214 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4215 # following values.
4217 _ACEOF
4219 # The following way of writing the cache mishandles newlines in values,
4220 # but we know of no workaround that is simple, portable, and efficient.
4221 # So, we kill variables containing newlines.
4222 # Ultrix sh set writes to stderr and can't be redirected directly,
4223 # and sets the high bit in the cache file unless we assign to the vars.
4225 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4226 eval ac_val=\$$ac_var
4227 case $ac_val in #(
4228 *${as_nl}*)
4229 case $ac_var in #(
4230 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4231 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4232 esac
4233 case $ac_var in #(
4234 _ | IFS | as_nl) ;; #(
4235 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4236 *) { eval $ac_var=; unset $ac_var;} ;;
4237 esac ;;
4238 esac
4239 done
4241 (set) 2>&1 |
4242 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4243 *${as_nl}ac_space=\ *)
4244 # `set' does not quote correctly, so add quotes: double-quote
4245 # substitution turns \\\\ into \\, and sed turns \\ into \.
4246 sed -n \
4247 "s/'/'\\\\''/g;
4248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4249 ;; #(
4251 # `set' quotes correctly as required by POSIX, so do not add quotes.
4252 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4254 esac |
4255 sort
4257 sed '
4258 /^ac_cv_env_/b end
4259 t clear
4260 :clear
4261 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4262 t end
4263 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4264 :end' >>confcache
4265 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4266 if test -w "$cache_file"; then
4267 if test "x$cache_file" != "x/dev/null"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4269 $as_echo "$as_me: updating cache $cache_file" >&6;}
4270 if test ! -f "$cache_file" || test -h "$cache_file"; then
4271 cat confcache >"$cache_file"
4272 else
4273 case $cache_file in #(
4274 */* | ?:*)
4275 mv -f confcache "$cache_file"$$ &&
4276 mv -f "$cache_file"$$ "$cache_file" ;; #(
4278 mv -f confcache "$cache_file" ;;
4279 esac
4282 else
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4284 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4287 rm -f confcache
4289 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4290 # Let make expand exec_prefix.
4291 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4293 DEFS=-DHAVE_CONFIG_H
4295 ac_libobjs=
4296 ac_ltlibobjs=
4298 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4299 # 1. Remove the extension, and $U if already installed.
4300 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4301 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4302 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4303 # will be set to the directory where LIBOBJS objects are built.
4304 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4305 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4306 done
4307 LIBOBJS=$ac_libobjs
4309 LTLIBOBJS=$ac_ltlibobjs
4314 : "${CONFIG_STATUS=./config.status}"
4315 ac_write_fail=0
4316 ac_clean_files_save=$ac_clean_files
4317 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4319 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4320 as_write_fail=0
4321 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4322 #! $SHELL
4323 # Generated by $as_me.
4324 # Run this file to recreate the current configuration.
4325 # Compiler output produced by configure, useful for debugging
4326 # configure, is in config.log if it exists.
4328 debug=false
4329 ac_cs_recheck=false
4330 ac_cs_silent=false
4332 SHELL=\${CONFIG_SHELL-$SHELL}
4333 export SHELL
4334 _ASEOF
4335 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4336 ## -------------------- ##
4337 ## M4sh Initialization. ##
4338 ## -------------------- ##
4340 # Be more Bourne compatible
4341 DUALCASE=1; export DUALCASE # for MKS sh
4342 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4343 emulate sh
4344 NULLCMD=:
4345 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4346 # is contrary to our usage. Disable this feature.
4347 alias -g '${1+"$@"}'='"$@"'
4348 setopt NO_GLOB_SUBST
4349 else
4350 case `(set -o) 2>/dev/null` in #(
4351 *posix*) :
4352 set -o posix ;; #(
4353 *) :
4355 esac
4359 as_nl='
4361 export as_nl
4362 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4363 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4364 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4365 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4366 # Prefer a ksh shell builtin over an external printf program on Solaris,
4367 # but without wasting forks for bash or zsh.
4368 if test -z "$BASH_VERSION$ZSH_VERSION" \
4369 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4370 as_echo='print -r --'
4371 as_echo_n='print -rn --'
4372 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4373 as_echo='printf %s\n'
4374 as_echo_n='printf %s'
4375 else
4376 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4377 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4378 as_echo_n='/usr/ucb/echo -n'
4379 else
4380 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4381 as_echo_n_body='eval
4382 arg=$1;
4383 case $arg in #(
4384 *"$as_nl"*)
4385 expr "X$arg" : "X\\(.*\\)$as_nl";
4386 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4387 esac;
4388 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4390 export as_echo_n_body
4391 as_echo_n='sh -c $as_echo_n_body as_echo'
4393 export as_echo_body
4394 as_echo='sh -c $as_echo_body as_echo'
4397 # The user is always right.
4398 if test "${PATH_SEPARATOR+set}" != set; then
4399 PATH_SEPARATOR=:
4400 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4401 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4402 PATH_SEPARATOR=';'
4407 # IFS
4408 # We need space, tab and new line, in precisely that order. Quoting is
4409 # there to prevent editors from complaining about space-tab.
4410 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4411 # splitting by setting IFS to empty value.)
4412 IFS=" "" $as_nl"
4414 # Find who we are. Look in the path if we contain no directory separator.
4415 as_myself=
4416 case $0 in #((
4417 *[\\/]* ) as_myself=$0 ;;
4418 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4424 done
4425 IFS=$as_save_IFS
4428 esac
4429 # We did not find ourselves, most probably we were run as `sh COMMAND'
4430 # in which case we are not to be found in the path.
4431 if test "x$as_myself" = x; then
4432 as_myself=$0
4434 if test ! -f "$as_myself"; then
4435 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4436 exit 1
4439 # Unset variables that we do not need and which cause bugs (e.g. in
4440 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4441 # suppresses any "Segmentation fault" message there. '((' could
4442 # trigger a bug in pdksh 5.2.14.
4443 for as_var in BASH_ENV ENV MAIL MAILPATH
4444 do eval test x\${$as_var+set} = xset \
4445 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4446 done
4447 PS1='$ '
4448 PS2='> '
4449 PS4='+ '
4451 # NLS nuisances.
4452 LC_ALL=C
4453 export LC_ALL
4454 LANGUAGE=C
4455 export LANGUAGE
4457 # CDPATH.
4458 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4461 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4462 # ----------------------------------------
4463 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4464 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4465 # script with STATUS, using 1 if that was 0.
4466 as_fn_error ()
4468 as_status=$1; test $as_status -eq 0 && as_status=1
4469 if test "$4"; then
4470 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4471 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4473 $as_echo "$as_me: error: $2" >&2
4474 as_fn_exit $as_status
4475 } # as_fn_error
4478 # as_fn_set_status STATUS
4479 # -----------------------
4480 # Set $? to STATUS, without forking.
4481 as_fn_set_status ()
4483 return $1
4484 } # as_fn_set_status
4486 # as_fn_exit STATUS
4487 # -----------------
4488 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4489 as_fn_exit ()
4491 set +e
4492 as_fn_set_status $1
4493 exit $1
4494 } # as_fn_exit
4496 # as_fn_unset VAR
4497 # ---------------
4498 # Portably unset VAR.
4499 as_fn_unset ()
4501 { eval $1=; unset $1;}
4503 as_unset=as_fn_unset
4504 # as_fn_append VAR VALUE
4505 # ----------------------
4506 # Append the text in VALUE to the end of the definition contained in VAR. Take
4507 # advantage of any shell optimizations that allow amortized linear growth over
4508 # repeated appends, instead of the typical quadratic growth present in naive
4509 # implementations.
4510 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4511 eval 'as_fn_append ()
4513 eval $1+=\$2
4515 else
4516 as_fn_append ()
4518 eval $1=\$$1\$2
4520 fi # as_fn_append
4522 # as_fn_arith ARG...
4523 # ------------------
4524 # Perform arithmetic evaluation on the ARGs, and store the result in the
4525 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4526 # must be portable across $(()) and expr.
4527 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4528 eval 'as_fn_arith ()
4530 as_val=$(( $* ))
4532 else
4533 as_fn_arith ()
4535 as_val=`expr "$@" || test $? -eq 1`
4537 fi # as_fn_arith
4540 if expr a : '\(a\)' >/dev/null 2>&1 &&
4541 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4542 as_expr=expr
4543 else
4544 as_expr=false
4547 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4548 as_basename=basename
4549 else
4550 as_basename=false
4553 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4554 as_dirname=dirname
4555 else
4556 as_dirname=false
4559 as_me=`$as_basename -- "$0" ||
4560 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4561 X"$0" : 'X\(//\)$' \| \
4562 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4563 $as_echo X/"$0" |
4564 sed '/^.*\/\([^/][^/]*\)\/*$/{
4565 s//\1/
4568 /^X\/\(\/\/\)$/{
4569 s//\1/
4572 /^X\/\(\/\).*/{
4573 s//\1/
4576 s/.*/./; q'`
4578 # Avoid depending upon Character Ranges.
4579 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4580 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4581 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4582 as_cr_digits='0123456789'
4583 as_cr_alnum=$as_cr_Letters$as_cr_digits
4585 ECHO_C= ECHO_N= ECHO_T=
4586 case `echo -n x` in #(((((
4587 -n*)
4588 case `echo 'xy\c'` in
4589 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4590 xy) ECHO_C='\c';;
4591 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4592 ECHO_T=' ';;
4593 esac;;
4595 ECHO_N='-n';;
4596 esac
4598 rm -f conf$$ conf$$.exe conf$$.file
4599 if test -d conf$$.dir; then
4600 rm -f conf$$.dir/conf$$.file
4601 else
4602 rm -f conf$$.dir
4603 mkdir conf$$.dir 2>/dev/null
4605 if (echo >conf$$.file) 2>/dev/null; then
4606 if ln -s conf$$.file conf$$ 2>/dev/null; then
4607 as_ln_s='ln -s'
4608 # ... but there are two gotchas:
4609 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4610 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4611 # In both cases, we have to default to `cp -pR'.
4612 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4613 as_ln_s='cp -pR'
4614 elif ln conf$$.file conf$$ 2>/dev/null; then
4615 as_ln_s=ln
4616 else
4617 as_ln_s='cp -pR'
4619 else
4620 as_ln_s='cp -pR'
4622 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4623 rmdir conf$$.dir 2>/dev/null
4626 # as_fn_mkdir_p
4627 # -------------
4628 # Create "$as_dir" as a directory, including parents if necessary.
4629 as_fn_mkdir_p ()
4632 case $as_dir in #(
4633 -*) as_dir=./$as_dir;;
4634 esac
4635 test -d "$as_dir" || eval $as_mkdir_p || {
4636 as_dirs=
4637 while :; do
4638 case $as_dir in #(
4639 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4640 *) as_qdir=$as_dir;;
4641 esac
4642 as_dirs="'$as_qdir' $as_dirs"
4643 as_dir=`$as_dirname -- "$as_dir" ||
4644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4645 X"$as_dir" : 'X\(//\)[^/]' \| \
4646 X"$as_dir" : 'X\(//\)$' \| \
4647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4648 $as_echo X"$as_dir" |
4649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4650 s//\1/
4653 /^X\(\/\/\)[^/].*/{
4654 s//\1/
4657 /^X\(\/\/\)$/{
4658 s//\1/
4661 /^X\(\/\).*/{
4662 s//\1/
4665 s/.*/./; q'`
4666 test -d "$as_dir" && break
4667 done
4668 test -z "$as_dirs" || eval "mkdir $as_dirs"
4669 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4672 } # as_fn_mkdir_p
4673 if mkdir -p . 2>/dev/null; then
4674 as_mkdir_p='mkdir -p "$as_dir"'
4675 else
4676 test -d ./-p && rmdir ./-p
4677 as_mkdir_p=false
4681 # as_fn_executable_p FILE
4682 # -----------------------
4683 # Test if FILE is an executable regular file.
4684 as_fn_executable_p ()
4686 test -f "$1" && test -x "$1"
4687 } # as_fn_executable_p
4688 as_test_x='test -x'
4689 as_executable_p=as_fn_executable_p
4691 # Sed expression to map a string onto a valid CPP name.
4692 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4694 # Sed expression to map a string onto a valid variable name.
4695 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4698 exec 6>&1
4699 ## ----------------------------------- ##
4700 ## Main body of $CONFIG_STATUS script. ##
4701 ## ----------------------------------- ##
4702 _ASEOF
4703 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4706 # Save the log message, to keep $0 and so on meaningful, and to
4707 # report actual input values of CONFIG_FILES etc. instead of their
4708 # values after options handling.
4709 ac_log="
4710 This file was extended by nbsd-digest $as_me 20121220, which was
4711 generated by GNU Autoconf 2.69. Invocation command line was
4713 CONFIG_FILES = $CONFIG_FILES
4714 CONFIG_HEADERS = $CONFIG_HEADERS
4715 CONFIG_LINKS = $CONFIG_LINKS
4716 CONFIG_COMMANDS = $CONFIG_COMMANDS
4717 $ $0 $@
4719 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4722 _ACEOF
4724 case $ac_config_files in *"
4725 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4726 esac
4728 case $ac_config_headers in *"
4729 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4730 esac
4733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4734 # Files that config.status was made for.
4735 config_files="$ac_config_files"
4736 config_headers="$ac_config_headers"
4738 _ACEOF
4740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4741 ac_cs_usage="\
4742 \`$as_me' instantiates files and other configuration actions
4743 from templates according to the current configuration. Unless the files
4744 and actions are specified as TAGs, all are instantiated by default.
4746 Usage: $0 [OPTION]... [TAG]...
4748 -h, --help print this help, then exit
4749 -V, --version print version number and configuration settings, then exit
4750 --config print configuration, then exit
4751 -q, --quiet, --silent
4752 do not print progress messages
4753 -d, --debug don't remove temporary files
4754 --recheck update $as_me by reconfiguring in the same conditions
4755 --file=FILE[:TEMPLATE]
4756 instantiate the configuration file FILE
4757 --header=FILE[:TEMPLATE]
4758 instantiate the configuration header FILE
4760 Configuration files:
4761 $config_files
4763 Configuration headers:
4764 $config_headers
4766 Report bugs to <agc@netbsd.org>."
4768 _ACEOF
4769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4770 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4771 ac_cs_version="\\
4772 nbsd-digest config.status 20121220
4773 configured by $0, generated by GNU Autoconf 2.69,
4774 with options \\"\$ac_cs_config\\"
4776 Copyright (C) 2012 Free Software Foundation, Inc.
4777 This config.status script is free software; the Free Software Foundation
4778 gives unlimited permission to copy, distribute and modify it."
4780 ac_pwd='$ac_pwd'
4781 srcdir='$srcdir'
4782 INSTALL='$INSTALL'
4783 AWK='$AWK'
4784 test -n "\$AWK" || AWK=awk
4785 _ACEOF
4787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4788 # The default lists apply if the user does not specify any file.
4789 ac_need_defaults=:
4790 while test $# != 0
4792 case $1 in
4793 --*=?*)
4794 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4795 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4796 ac_shift=:
4798 --*=)
4799 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4800 ac_optarg=
4801 ac_shift=:
4804 ac_option=$1
4805 ac_optarg=$2
4806 ac_shift=shift
4808 esac
4810 case $ac_option in
4811 # Handling of the options.
4812 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4813 ac_cs_recheck=: ;;
4814 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4815 $as_echo "$ac_cs_version"; exit ;;
4816 --config | --confi | --conf | --con | --co | --c )
4817 $as_echo "$ac_cs_config"; exit ;;
4818 --debug | --debu | --deb | --de | --d | -d )
4819 debug=: ;;
4820 --file | --fil | --fi | --f )
4821 $ac_shift
4822 case $ac_optarg in
4823 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4824 '') as_fn_error $? "missing file argument" ;;
4825 esac
4826 as_fn_append CONFIG_FILES " '$ac_optarg'"
4827 ac_need_defaults=false;;
4828 --header | --heade | --head | --hea )
4829 $ac_shift
4830 case $ac_optarg in
4831 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4832 esac
4833 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4834 ac_need_defaults=false;;
4835 --he | --h)
4836 # Conflict between --help and --header
4837 as_fn_error $? "ambiguous option: \`$1'
4838 Try \`$0 --help' for more information.";;
4839 --help | --hel | -h )
4840 $as_echo "$ac_cs_usage"; exit ;;
4841 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4842 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4843 ac_cs_silent=: ;;
4845 # This is an error.
4846 -*) as_fn_error $? "unrecognized option: \`$1'
4847 Try \`$0 --help' for more information." ;;
4849 *) as_fn_append ac_config_targets " $1"
4850 ac_need_defaults=false ;;
4852 esac
4853 shift
4854 done
4856 ac_configure_extra_args=
4858 if $ac_cs_silent; then
4859 exec 6>/dev/null
4860 ac_configure_extra_args="$ac_configure_extra_args --silent"
4863 _ACEOF
4864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4865 if \$ac_cs_recheck; then
4866 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4867 shift
4868 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4869 CONFIG_SHELL='$SHELL'
4870 export CONFIG_SHELL
4871 exec "\$@"
4874 _ACEOF
4875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4876 exec 5>>config.log
4878 echo
4879 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4880 ## Running $as_me. ##
4881 _ASBOX
4882 $as_echo "$ac_log"
4883 } >&5
4885 _ACEOF
4886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4887 _ACEOF
4889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4891 # Handling of arguments.
4892 for ac_config_target in $ac_config_targets
4894 case $ac_config_target in
4895 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4896 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4898 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4899 esac
4900 done
4903 # If the user did not use the arguments to specify the items to instantiate,
4904 # then the envvar interface is used. Set only those that are not.
4905 # We use the long form for the default assignment because of an extremely
4906 # bizarre bug on SunOS 4.1.3.
4907 if $ac_need_defaults; then
4908 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4909 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4912 # Have a temporary directory for convenience. Make it in the build tree
4913 # simply because there is no reason against having it here, and in addition,
4914 # creating and moving files from /tmp can sometimes cause problems.
4915 # Hook for its removal unless debugging.
4916 # Note that there is a small window in which the directory will not be cleaned:
4917 # after its creation but before its name has been assigned to `$tmp'.
4918 $debug ||
4920 tmp= ac_tmp=
4921 trap 'exit_status=$?
4922 : "${ac_tmp:=$tmp}"
4923 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4925 trap 'as_fn_exit 1' 1 2 13 15
4927 # Create a (secure) tmp directory for tmp files.
4930 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4931 test -d "$tmp"
4932 } ||
4934 tmp=./conf$$-$RANDOM
4935 (umask 077 && mkdir "$tmp")
4936 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4937 ac_tmp=$tmp
4939 # Set up the scripts for CONFIG_FILES section.
4940 # No need to generate them if there are no CONFIG_FILES.
4941 # This happens for instance with `./config.status config.h'.
4942 if test -n "$CONFIG_FILES"; then
4945 ac_cr=`echo X | tr X '\015'`
4946 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4947 # But we know of no other shell where ac_cr would be empty at this
4948 # point, so we can use a bashism as a fallback.
4949 if test "x$ac_cr" = x; then
4950 eval ac_cr=\$\'\\r\'
4952 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4953 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4954 ac_cs_awk_cr='\\r'
4955 else
4956 ac_cs_awk_cr=$ac_cr
4959 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4960 _ACEOF
4964 echo "cat >conf$$subs.awk <<_ACEOF" &&
4965 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4966 echo "_ACEOF"
4967 } >conf$$subs.sh ||
4968 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4969 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4970 ac_delim='%!_!# '
4971 for ac_last_try in false false false false false :; do
4972 . ./conf$$subs.sh ||
4973 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4975 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4976 if test $ac_delim_n = $ac_delim_num; then
4977 break
4978 elif $ac_last_try; then
4979 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4980 else
4981 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4983 done
4984 rm -f conf$$subs.sh
4986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4987 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4988 _ACEOF
4989 sed -n '
4991 s/^/S["/; s/!.*/"]=/
4994 s/^[^!]*!//
4995 :repl
4996 t repl
4997 s/'"$ac_delim"'$//
4998 t delim
5001 s/\(.\{148\}\)..*/\1/
5002 t more1
5003 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5006 b repl
5007 :more1
5008 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5011 s/.\{148\}//
5012 t nl
5013 :delim
5015 s/\(.\{148\}\)..*/\1/
5016 t more2
5017 s/["\\]/\\&/g; s/^/"/; s/$/"/
5020 :more2
5021 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5024 s/.\{148\}//
5025 t delim
5026 ' <conf$$subs.awk | sed '
5027 /^[^""]/{
5029 s/\n//
5031 ' >>$CONFIG_STATUS || ac_write_fail=1
5032 rm -f conf$$subs.awk
5033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5034 _ACAWK
5035 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5036 for (key in S) S_is_set[key] = 1
5037 FS = "\a"
5041 line = $ 0
5042 nfields = split(line, field, "@")
5043 substed = 0
5044 len = length(field[1])
5045 for (i = 2; i < nfields; i++) {
5046 key = field[i]
5047 keylen = length(key)
5048 if (S_is_set[key]) {
5049 value = S[key]
5050 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5051 len += length(value) + length(field[++i])
5052 substed = 1
5053 } else
5054 len += 1 + keylen
5057 print line
5060 _ACAWK
5061 _ACEOF
5062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5063 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5064 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5065 else
5067 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5068 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5069 _ACEOF
5071 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5072 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5073 # trailing colons and then remove the whole line if VPATH becomes empty
5074 # (actually we leave an empty line to preserve line numbers).
5075 if test "x$srcdir" = x.; then
5076 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5078 s///
5079 s/^/:/
5080 s/[ ]*$/:/
5081 s/:\$(srcdir):/:/g
5082 s/:\${srcdir}:/:/g
5083 s/:@srcdir@:/:/g
5084 s/^:*//
5085 s/:*$//
5087 s/\(=[ ]*\).*/\1/
5089 s/\n//
5090 s/^[^=]*=[ ]*$//
5094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5095 fi # test -n "$CONFIG_FILES"
5097 # Set up the scripts for CONFIG_HEADERS section.
5098 # No need to generate them if there are no CONFIG_HEADERS.
5099 # This happens for instance with `./config.status Makefile'.
5100 if test -n "$CONFIG_HEADERS"; then
5101 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5102 BEGIN {
5103 _ACEOF
5105 # Transform confdefs.h into an awk script `defines.awk', embedded as
5106 # here-document in config.status, that substitutes the proper values into
5107 # config.h.in to produce config.h.
5109 # Create a delimiter string that does not exist in confdefs.h, to ease
5110 # handling of long lines.
5111 ac_delim='%!_!# '
5112 for ac_last_try in false false :; do
5113 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5114 if test -z "$ac_tt"; then
5115 break
5116 elif $ac_last_try; then
5117 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5118 else
5119 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5121 done
5123 # For the awk script, D is an array of macro values keyed by name,
5124 # likewise P contains macro parameters if any. Preserve backslash
5125 # newline sequences.
5127 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5128 sed -n '
5129 s/.\{148\}/&'"$ac_delim"'/g
5130 t rset
5131 :rset
5132 s/^[ ]*#[ ]*define[ ][ ]*/ /
5133 t def
5135 :def
5136 s/\\$//
5137 t bsnl
5138 s/["\\]/\\&/g
5139 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5140 D["\1"]=" \3"/p
5141 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5143 :bsnl
5144 s/["\\]/\\&/g
5145 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5146 D["\1"]=" \3\\\\\\n"\\/p
5147 t cont
5148 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5149 t cont
5151 :cont
5153 s/.\{148\}/&'"$ac_delim"'/g
5154 t clear
5155 :clear
5156 s/\\$//
5157 t bsnlc
5158 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5160 :bsnlc
5161 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5162 b cont
5163 ' <confdefs.h | sed '
5164 s/'"$ac_delim"'/"\\\
5165 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5168 for (key in D) D_is_set[key] = 1
5169 FS = "\a"
5171 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5172 line = \$ 0
5173 split(line, arg, " ")
5174 if (arg[1] == "#") {
5175 defundef = arg[2]
5176 mac1 = arg[3]
5177 } else {
5178 defundef = substr(arg[1], 2)
5179 mac1 = arg[2]
5181 split(mac1, mac2, "(") #)
5182 macro = mac2[1]
5183 prefix = substr(line, 1, index(line, defundef) - 1)
5184 if (D_is_set[macro]) {
5185 # Preserve the white space surrounding the "#".
5186 print prefix "define", macro P[macro] D[macro]
5187 next
5188 } else {
5189 # Replace #undef with comments. This is necessary, for example,
5190 # in the case of _POSIX_SOURCE, which is predefined and required
5191 # on some systems where configure will not decide to define it.
5192 if (defundef == "undef") {
5193 print "/*", prefix defundef, macro, "*/"
5194 next
5198 { print }
5199 _ACAWK
5200 _ACEOF
5201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5202 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5203 fi # test -n "$CONFIG_HEADERS"
5206 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5207 shift
5208 for ac_tag
5210 case $ac_tag in
5211 :[FHLC]) ac_mode=$ac_tag; continue;;
5212 esac
5213 case $ac_mode$ac_tag in
5214 :[FHL]*:*);;
5215 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5216 :[FH]-) ac_tag=-:-;;
5217 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5218 esac
5219 ac_save_IFS=$IFS
5220 IFS=:
5221 set x $ac_tag
5222 IFS=$ac_save_IFS
5223 shift
5224 ac_file=$1
5225 shift
5227 case $ac_mode in
5228 :L) ac_source=$1;;
5229 :[FH])
5230 ac_file_inputs=
5231 for ac_f
5233 case $ac_f in
5234 -) ac_f="$ac_tmp/stdin";;
5235 *) # Look for the file first in the build tree, then in the source tree
5236 # (if the path is not absolute). The absolute path cannot be DOS-style,
5237 # because $ac_f cannot contain `:'.
5238 test -f "$ac_f" ||
5239 case $ac_f in
5240 [\\/$]*) false;;
5241 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5242 esac ||
5243 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5244 esac
5245 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5246 as_fn_append ac_file_inputs " '$ac_f'"
5247 done
5249 # Let's still pretend it is `configure' which instantiates (i.e., don't
5250 # use $as_me), people would be surprised to read:
5251 # /* config.h. Generated by config.status. */
5252 configure_input='Generated from '`
5253 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5254 `' by configure.'
5255 if test x"$ac_file" != x-; then
5256 configure_input="$ac_file. $configure_input"
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5258 $as_echo "$as_me: creating $ac_file" >&6;}
5260 # Neutralize special characters interpreted by sed in replacement strings.
5261 case $configure_input in #(
5262 *\&* | *\|* | *\\* )
5263 ac_sed_conf_input=`$as_echo "$configure_input" |
5264 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5265 *) ac_sed_conf_input=$configure_input;;
5266 esac
5268 case $ac_tag in
5269 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5270 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5271 esac
5273 esac
5275 ac_dir=`$as_dirname -- "$ac_file" ||
5276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5277 X"$ac_file" : 'X\(//\)[^/]' \| \
5278 X"$ac_file" : 'X\(//\)$' \| \
5279 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5280 $as_echo X"$ac_file" |
5281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5282 s//\1/
5285 /^X\(\/\/\)[^/].*/{
5286 s//\1/
5289 /^X\(\/\/\)$/{
5290 s//\1/
5293 /^X\(\/\).*/{
5294 s//\1/
5297 s/.*/./; q'`
5298 as_dir="$ac_dir"; as_fn_mkdir_p
5299 ac_builddir=.
5301 case "$ac_dir" in
5302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5304 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5305 # A ".." for each directory in $ac_dir_suffix.
5306 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5307 case $ac_top_builddir_sub in
5308 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5309 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5310 esac ;;
5311 esac
5312 ac_abs_top_builddir=$ac_pwd
5313 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5314 # for backward compatibility:
5315 ac_top_builddir=$ac_top_build_prefix
5317 case $srcdir in
5318 .) # We are building in place.
5319 ac_srcdir=.
5320 ac_top_srcdir=$ac_top_builddir_sub
5321 ac_abs_top_srcdir=$ac_pwd ;;
5322 [\\/]* | ?:[\\/]* ) # Absolute name.
5323 ac_srcdir=$srcdir$ac_dir_suffix;
5324 ac_top_srcdir=$srcdir
5325 ac_abs_top_srcdir=$srcdir ;;
5326 *) # Relative name.
5327 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5328 ac_top_srcdir=$ac_top_build_prefix$srcdir
5329 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5330 esac
5331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5334 case $ac_mode in
5337 # CONFIG_FILE
5340 case $INSTALL in
5341 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5342 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5343 esac
5344 _ACEOF
5346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5347 # If the template does not know about datarootdir, expand it.
5348 # FIXME: This hack should be removed a few years after 2.60.
5349 ac_datarootdir_hack=; ac_datarootdir_seen=
5350 ac_sed_dataroot='
5351 /datarootdir/ {
5355 /@datadir@/p
5356 /@docdir@/p
5357 /@infodir@/p
5358 /@localedir@/p
5359 /@mandir@/p'
5360 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5361 *datarootdir*) ac_datarootdir_seen=yes;;
5362 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5364 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5365 _ACEOF
5366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5367 ac_datarootdir_hack='
5368 s&@datadir@&$datadir&g
5369 s&@docdir@&$docdir&g
5370 s&@infodir@&$infodir&g
5371 s&@localedir@&$localedir&g
5372 s&@mandir@&$mandir&g
5373 s&\\\${datarootdir}&$datarootdir&g' ;;
5374 esac
5375 _ACEOF
5377 # Neutralize VPATH when `$srcdir' = `.'.
5378 # Shell code in configure.ac might set extrasub.
5379 # FIXME: do we really want to maintain this feature?
5380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5381 ac_sed_extra="$ac_vpsub
5382 $extrasub
5383 _ACEOF
5384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5386 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5387 s|@configure_input@|$ac_sed_conf_input|;t t
5388 s&@top_builddir@&$ac_top_builddir_sub&;t t
5389 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5390 s&@srcdir@&$ac_srcdir&;t t
5391 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5392 s&@top_srcdir@&$ac_top_srcdir&;t t
5393 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5394 s&@builddir@&$ac_builddir&;t t
5395 s&@abs_builddir@&$ac_abs_builddir&;t t
5396 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5397 s&@INSTALL@&$ac_INSTALL&;t t
5398 $ac_datarootdir_hack
5400 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5401 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5403 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5404 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5405 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5406 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5408 which seems to be undefined. Please make sure it is defined" >&5
5409 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5410 which seems to be undefined. Please make sure it is defined" >&2;}
5412 rm -f "$ac_tmp/stdin"
5413 case $ac_file in
5414 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5415 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5416 esac \
5417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5421 # CONFIG_HEADER
5423 if test x"$ac_file" != x-; then
5425 $as_echo "/* $configure_input */" \
5426 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5427 } >"$ac_tmp/config.h" \
5428 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5429 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5431 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5432 else
5433 rm -f "$ac_file"
5434 mv "$ac_tmp/config.h" "$ac_file" \
5435 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5437 else
5438 $as_echo "/* $configure_input */" \
5439 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5440 || as_fn_error $? "could not create -" "$LINENO" 5
5445 esac
5447 done # for ac_tag
5450 as_fn_exit 0
5451 _ACEOF
5452 ac_clean_files=$ac_clean_files_save
5454 test $ac_write_fail = 0 ||
5455 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5458 # configure is writing to config.log, and then calls config.status.
5459 # config.status does its own redirection, appending to config.log.
5460 # Unfortunately, on DOS this fails, as config.log is still kept open
5461 # by configure, so config.status won't be able to write to it; its
5462 # output is simply discarded. So we exec the FD to /dev/null,
5463 # effectively closing config.log, so it can be properly (re)opened and
5464 # appended to by config.status. When coming back to configure, we
5465 # need to make the FD available again.
5466 if test "$no_create" != yes; then
5467 ac_cs_success=:
5468 ac_config_status_args=
5469 test "$silent" = yes &&
5470 ac_config_status_args="$ac_config_status_args --quiet"
5471 exec 5>/dev/null
5472 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5473 exec 5>>config.log
5474 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5475 # would make configure fail if this is the last instruction.
5476 $ac_cs_success || as_fn_exit 1
5478 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5480 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}