Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for nmzmail 1.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (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"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
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=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell [email protected] about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576 exec 7<&0 </dev/null 6>&1
577
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
595
596 # Identity of this package.
597 PACKAGE_NAME='nmzmail'
598 PACKAGE_TARNAME='nmzmail'
599 PACKAGE_VERSION='1.1'
600 PACKAGE_STRING='nmzmail 1.1'
601 PACKAGE_BUGREPORT='[email protected]'
602
603 ac_unique_file="src/util.h"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stdio.h>
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
609 #endif
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
612 #endif
613 #ifdef STDC_HEADERS
614 # include <stdlib.h>
615 # include <stddef.h>
616 #else
617 # ifdef HAVE_STDLIB_H
618 # include <stdlib.h>
619 # endif
620 #endif
621 #ifdef HAVE_STRING_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 # include <memory.h>
624 # endif
625 # include <string.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_subst_vars='LTLIBOBJS
641 LIBOBJS
642 EGREP
643 GREP
644 CPP
645 am__fastdepCC_FALSE
646 am__fastdepCC_TRUE
647 CCDEPMODE
648 AMDEPBACKSLASH
649 AMDEP_FALSE
650 AMDEP_TRUE
651 am__quote
652 am__include
653 DEPDIR
654 OBJEXT
655 EXEEXT
656 ac_ct_CC
657 CPPFLAGS
658 LDFLAGS
659 CFLAGS
660 CC
661 am__untar
662 am__tar
663 AMTAR
664 am__leading_dot
665 SET_MAKE
666 AWK
667 mkdir_p
668 MKDIR_P
669 INSTALL_STRIP_PROGRAM
670 STRIP
671 install_sh
672 MAKEINFO
673 AUTOHEADER
674 AUTOMAKE
675 AUTOCONF
676 ACLOCAL
677 VERSION
678 PACKAGE
679 CYGPATH_W
680 am__isrc
681 INSTALL_DATA
682 INSTALL_SCRIPT
683 INSTALL_PROGRAM
684 target_alias
685 host_alias
686 build_alias
687 LIBS
688 ECHO_T
689 ECHO_N
690 ECHO_C
691 DEFS
692 mandir
693 localedir
694 libdir
695 psdir
696 pdfdir
697 dvidir
698 htmldir
699 infodir
700 docdir
701 oldincludedir
702 includedir
703 localstatedir
704 sharedstatedir
705 sysconfdir
706 datadir
707 datarootdir
708 libexecdir
709 sbindir
710 bindir
711 program_transform_name
712 prefix
713 exec_prefix
714 PACKAGE_BUGREPORT
715 PACKAGE_STRING
716 PACKAGE_VERSION
717 PACKAGE_TARNAME
718 PACKAGE_NAME
719 PATH_SEPARATOR
720 SHELL'
721 ac_subst_files=''
722 ac_user_opts='
723 enable_option_checking
724 enable_dependency_tracking
725 '
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
729 CC
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
734 CPP'
735
736
737 # Initialize some variables set by options.
738 ac_init_help=
739 ac_init_version=false
740 ac_unrecognized_opts=
741 ac_unrecognized_sep=
742 # The variables have the same names as the options, with
743 # dashes changed to underlines.
744 cache_file=/dev/null
745 exec_prefix=NONE
746 no_create=
747 no_recursion=
748 prefix=NONE
749 program_prefix=NONE
750 program_suffix=NONE
751 program_transform_name=s,x,x,
752 silent=
753 site=
754 srcdir=
755 verbose=
756 x_includes=NONE
757 x_libraries=NONE
758
759 # Installation directory options.
760 # These are left unexpanded so users can "make install exec_prefix=/foo"
761 # and all the variables that are supposed to be based on exec_prefix
762 # by default will actually change.
763 # Use braces instead of parens because sh, perl, etc. also accept them.
764 # (The list follows the same order as the GNU Coding Standards.)
765 bindir='${exec_prefix}/bin'
766 sbindir='${exec_prefix}/sbin'
767 libexecdir='${exec_prefix}/libexec'
768 datarootdir='${prefix}/share'
769 datadir='${datarootdir}'
770 sysconfdir='${prefix}/etc'
771 sharedstatedir='${prefix}/com'
772 localstatedir='${prefix}/var'
773 includedir='${prefix}/include'
774 oldincludedir='/usr/include'
775 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
776 infodir='${datarootdir}/info'
777 htmldir='${docdir}'
778 dvidir='${docdir}'
779 pdfdir='${docdir}'
780 psdir='${docdir}'
781 libdir='${exec_prefix}/lib'
782 localedir='${datarootdir}/locale'
783 mandir='${datarootdir}/man'
784
785 ac_prev=
786 ac_dashdash=
787 for ac_option
788 do
789 # If the previous option needs an argument, assign it.
790 if test -n "$ac_prev"; then
791 eval $ac_prev=\$ac_option
792 ac_prev=
793 continue
794 fi
795
796 case $ac_option in
797 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798 *) ac_optarg=yes ;;
799 esac
800
801 # Accept the important Cygnus configure options, so we can diagnose typos.
802
803 case $ac_dashdash$ac_option in
804 --)
805 ac_dashdash=yes ;;
806
807 -bindir | --bindir | --bindi | --bind | --bin | --bi)
808 ac_prev=bindir ;;
809 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
810 bindir=$ac_optarg ;;
811
812 -build | --build | --buil | --bui | --bu)
813 ac_prev=build_alias ;;
814 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
815 build_alias=$ac_optarg ;;
816
817 -cache-file | --cache-file | --cache-fil | --cache-fi \
818 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
819 ac_prev=cache_file ;;
820 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
821 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
822 cache_file=$ac_optarg ;;
823
824 --config-cache | -C)
825 cache_file=config.cache ;;
826
827 -datadir | --datadir | --datadi | --datad)
828 ac_prev=datadir ;;
829 -datadir=* | --datadir=* | --datadi=* | --datad=*)
830 datadir=$ac_optarg ;;
831
832 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
833 | --dataroo | --dataro | --datar)
834 ac_prev=datarootdir ;;
835 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
836 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
837 datarootdir=$ac_optarg ;;
838
839 -disable-* | --disable-*)
840 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
843 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
844 { (exit 1); exit 1; }; }
845 ac_useropt_orig=$ac_useropt
846 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
847 case $ac_user_opts in
848 *"
849 "enable_$ac_useropt"
850 "*) ;;
851 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
852 ac_unrecognized_sep=', ';;
853 esac
854 eval enable_$ac_useropt=no ;;
855
856 -docdir | --docdir | --docdi | --doc | --do)
857 ac_prev=docdir ;;
858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859 docdir=$ac_optarg ;;
860
861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862 ac_prev=dvidir ;;
863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864 dvidir=$ac_optarg ;;
865
866 -enable-* | --enable-*)
867 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
871 { (exit 1); exit 1; }; }
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
875 *"
876 "enable_$ac_useropt"
877 "*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=\$ac_optarg ;;
882
883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885 | --exec | --exe | --ex)
886 ac_prev=exec_prefix ;;
887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889 | --exec=* | --exe=* | --ex=*)
890 exec_prefix=$ac_optarg ;;
891
892 -gas | --gas | --ga | --g)
893 # Obsolete; use --with-gas.
894 with_gas=yes ;;
895
896 -help | --help | --hel | --he | -h)
897 ac_init_help=long ;;
898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899 ac_init_help=recursive ;;
900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901 ac_init_help=short ;;
902
903 -host | --host | --hos | --ho)
904 ac_prev=host_alias ;;
905 -host=* | --host=* | --hos=* | --ho=*)
906 host_alias=$ac_optarg ;;
907
908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909 ac_prev=htmldir ;;
910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911 | --ht=*)
912 htmldir=$ac_optarg ;;
913
914 -includedir | --includedir | --includedi | --included | --include \
915 | --includ | --inclu | --incl | --inc)
916 ac_prev=includedir ;;
917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918 | --includ=* | --inclu=* | --incl=* | --inc=*)
919 includedir=$ac_optarg ;;
920
921 -infodir | --infodir | --infodi | --infod | --info | --inf)
922 ac_prev=infodir ;;
923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924 infodir=$ac_optarg ;;
925
926 -libdir | --libdir | --libdi | --libd)
927 ac_prev=libdir ;;
928 -libdir=* | --libdir=* | --libdi=* | --libd=*)
929 libdir=$ac_optarg ;;
930
931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932 | --libexe | --libex | --libe)
933 ac_prev=libexecdir ;;
934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935 | --libexe=* | --libex=* | --libe=*)
936 libexecdir=$ac_optarg ;;
937
938 -localedir | --localedir | --localedi | --localed | --locale)
939 ac_prev=localedir ;;
940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941 localedir=$ac_optarg ;;
942
943 -localstatedir | --localstatedir | --localstatedi | --localstated \
944 | --localstate | --localstat | --localsta | --localst | --locals)
945 ac_prev=localstatedir ;;
946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
948 localstatedir=$ac_optarg ;;
949
950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951 ac_prev=mandir ;;
952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
953 mandir=$ac_optarg ;;
954
955 -nfp | --nfp | --nf)
956 # Obsolete; use --without-fp.
957 with_fp=no ;;
958
959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
960 | --no-cr | --no-c | -n)
961 no_create=yes ;;
962
963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965 no_recursion=yes ;;
966
967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969 | --oldin | --oldi | --old | --ol | --o)
970 ac_prev=oldincludedir ;;
971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
974 oldincludedir=$ac_optarg ;;
975
976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977 ac_prev=prefix ;;
978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979 prefix=$ac_optarg ;;
980
981 -program-prefix | --program-prefix | --program-prefi | --program-pref \
982 | --program-pre | --program-pr | --program-p)
983 ac_prev=program_prefix ;;
984 -program-prefix=* | --program-prefix=* | --program-prefi=* \
985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
986 program_prefix=$ac_optarg ;;
987
988 -program-suffix | --program-suffix | --program-suffi | --program-suff \
989 | --program-suf | --program-su | --program-s)
990 ac_prev=program_suffix ;;
991 -program-suffix=* | --program-suffix=* | --program-suffi=* \
992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
993 program_suffix=$ac_optarg ;;
994
995 -program-transform-name | --program-transform-name \
996 | --program-transform-nam | --program-transform-na \
997 | --program-transform-n | --program-transform- \
998 | --program-transform | --program-transfor \
999 | --program-transfo | --program-transf \
1000 | --program-trans | --program-tran \
1001 | --progr-tra | --program-tr | --program-t)
1002 ac_prev=program_transform_name ;;
1003 -program-transform-name=* | --program-transform-name=* \
1004 | --program-transform-nam=* | --program-transform-na=* \
1005 | --program-transform-n=* | --program-transform-=* \
1006 | --program-transform=* | --program-transfor=* \
1007 | --program-transfo=* | --program-transf=* \
1008 | --program-trans=* | --program-tran=* \
1009 | --progr-tra=* | --program-tr=* | --program-t=*)
1010 program_transform_name=$ac_optarg ;;
1011
1012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013 ac_prev=pdfdir ;;
1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015 pdfdir=$ac_optarg ;;
1016
1017 -psdir | --psdir | --psdi | --psd | --ps)
1018 ac_prev=psdir ;;
1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020 psdir=$ac_optarg ;;
1021
1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023 | -silent | --silent | --silen | --sile | --sil)
1024 silent=yes ;;
1025
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 ac_prev=sbindir ;;
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 | --sbi=* | --sb=*)
1030 sbindir=$ac_optarg ;;
1031
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1035 | --sha | --sh)
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 | --sha=* | --sh=*)
1041 sharedstatedir=$ac_optarg ;;
1042
1043 -site | --site | --sit)
1044 ac_prev=site ;;
1045 -site=* | --site=* | --sit=*)
1046 site=$ac_optarg ;;
1047
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 ac_prev=srcdir ;;
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1052
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1059
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1064
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 verbose=yes ;;
1067
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1070
1071 -with-* | --with-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1080 *"
1081 "with_$ac_useropt"
1082 "*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval with_$ac_useropt=\$ac_optarg ;;
1087
1088 -without-* | --without-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1093 { (exit 1); exit 1; }; }
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1097 *"
1098 "with_$ac_useropt"
1099 "*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1103 eval with_$ac_useropt=no ;;
1104
1105 --x)
1106 # Obsolete; use --with-x.
1107 with_x=yes ;;
1108
1109 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1110 | --x-incl | --x-inc | --x-in | --x-i)
1111 ac_prev=x_includes ;;
1112 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1113 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1114 x_includes=$ac_optarg ;;
1115
1116 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1117 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1118 ac_prev=x_libraries ;;
1119 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1120 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1121 x_libraries=$ac_optarg ;;
1122
1123 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1124 Try \`$0 --help' for more information." >&2
1125 { (exit 1); exit 1; }; }
1126 ;;
1127
1128 *=*)
1129 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1132 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1133 { (exit 1); exit 1; }; }
1134 eval $ac_envvar=\$ac_optarg
1135 export $ac_envvar ;;
1136
1137 *)
1138 # FIXME: should be removed in autoconf 3.0.
1139 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1140 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1141 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1142 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1143 ;;
1144
1145 esac
1146 done
1147
1148 if test -n "$ac_prev"; then
1149 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1150 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1151 { (exit 1); exit 1; }; }
1152 fi
1153
1154 if test -n "$ac_unrecognized_opts"; then
1155 case $enable_option_checking in
1156 no) ;;
1157 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1158 { (exit 1); exit 1; }; } ;;
1159 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1160 esac
1161 fi
1162
1163 # Check all directory arguments for consistency.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1168 do
1169 eval ac_val=\$$ac_var
1170 # Remove trailing slashes.
1171 case $ac_val in
1172 */ )
1173 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1174 eval $ac_var=\$ac_val;;
1175 esac
1176 # Be sure to have absolute directory names.
1177 case $ac_val in
1178 [\\/$]* | ?:[\\/]* ) continue;;
1179 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1180 esac
1181 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1182 { (exit 1); exit 1; }; }
1183 done
1184
1185 # There might be people who depend on the old broken behavior: `$host'
1186 # used to hold the argument of --host etc.
1187 # FIXME: To remove some day.
1188 build=$build_alias
1189 host=$host_alias
1190 target=$target_alias
1191
1192 # FIXME: To remove some day.
1193 if test "x$host_alias" != x; then
1194 if test "x$build_alias" = x; then
1195 cross_compiling=maybe
1196 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1197 If a cross compiler is detected then cross compile mode will be used." >&2
1198 elif test "x$build_alias" != "x$host_alias"; then
1199 cross_compiling=yes
1200 fi
1201 fi
1202
1203 ac_tool_prefix=
1204 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1205
1206 test "$silent" = yes && exec 6>/dev/null
1207
1208
1209 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1210 ac_ls_di=`ls -di .` &&
1211 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1212 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1213 { (exit 1); exit 1; }; }
1214 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1216 { (exit 1); exit 1; }; }
1217
1218
1219 # Find the source files, if location was not specified.
1220 if test -z "$srcdir"; then
1221 ac_srcdir_defaulted=yes
1222 # Try the directory containing this script, then the parent directory.
1223 ac_confdir=`$as_dirname -- "$as_myself" ||
1224 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225 X"$as_myself" : 'X\(//\)[^/]' \| \
1226 X"$as_myself" : 'X\(//\)$' \| \
1227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228 $as_echo X"$as_myself" |
1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230 s//\1/
1231 q
1232 }
1233 /^X\(\/\/\)[^/].*/{
1234 s//\1/
1235 q
1236 }
1237 /^X\(\/\/\)$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\).*/{
1242 s//\1/
1243 q
1244 }
1245 s/.*/./; q'`
1246 srcdir=$ac_confdir
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 srcdir=..
1249 fi
1250 else
1251 ac_srcdir_defaulted=no
1252 fi
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1256 { (exit 1); exit 1; }; }
1257 fi
1258 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1259 ac_abs_confdir=`(
1260 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1261 { (exit 1); exit 1; }; }
1262 pwd)`
1263 # When building in place, set srcdir=.
1264 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265 srcdir=.
1266 fi
1267 # Remove unnecessary trailing slashes from srcdir.
1268 # Double slashes in file names in object file debugging info
1269 # mess up M-x gdb in Emacs.
1270 case $srcdir in
1271 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272 esac
1273 for ac_var in $ac_precious_vars; do
1274 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_env_${ac_var}_value=\$${ac_var}
1276 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1278 done
1279
1280 #
1281 # Report the --help message.
1282 #
1283 if test "$ac_init_help" = "long"; then
1284 # Omit some internal or obsolete options to make the list less imposing.
1285 # This message is too long to be a string in the A/UX 3.1 sh.
1286 cat <<_ACEOF
1287 \`configure' configures nmzmail 1.1 to adapt to many kinds of systems.
1288
1289 Usage: $0 [OPTION]... [VAR=VALUE]...
1290
1291 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1292 VAR=VALUE. See below for descriptions of some of the useful variables.
1293
1294 Defaults for the options are specified in brackets.
1295
1296 Configuration:
1297 -h, --help display this help and exit
1298 --help=short display options specific to this package
1299 --help=recursive display the short help of all the included packages
1300 -V, --version display version information and exit
1301 -q, --quiet, --silent do not print \`checking...' messages
1302 --cache-file=FILE cache test results in FILE [disabled]
1303 -C, --config-cache alias for \`--cache-file=config.cache'
1304 -n, --no-create do not create output files
1305 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1306
1307 Installation directories:
1308 --prefix=PREFIX install architecture-independent files in PREFIX
1309 [$ac_default_prefix]
1310 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 [PREFIX]
1312
1313 By default, \`make install' will install all the files in
1314 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1315 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1316 for instance \`--prefix=\$HOME'.
1317
1318 For better control, use the options below.
1319
1320 Fine tuning of the installation directories:
1321 --bindir=DIR user executables [EPREFIX/bin]
1322 --sbindir=DIR system admin executables [EPREFIX/sbin]
1323 --libexecdir=DIR program executables [EPREFIX/libexec]
1324 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1325 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1326 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1327 --libdir=DIR object code libraries [EPREFIX/lib]
1328 --includedir=DIR C header files [PREFIX/include]
1329 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1330 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1331 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1332 --infodir=DIR info documentation [DATAROOTDIR/info]
1333 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1334 --mandir=DIR man documentation [DATAROOTDIR/man]
1335 --docdir=DIR documentation root [DATAROOTDIR/doc/nmzmail]
1336 --htmldir=DIR html documentation [DOCDIR]
1337 --dvidir=DIR dvi documentation [DOCDIR]
1338 --pdfdir=DIR pdf documentation [DOCDIR]
1339 --psdir=DIR ps documentation [DOCDIR]
1340 _ACEOF
1341
1342 cat <<\_ACEOF
1343
1344 Program names:
1345 --program-prefix=PREFIX prepend PREFIX to installed program names
1346 --program-suffix=SUFFIX append SUFFIX to installed program names
1347 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1348 _ACEOF
1349 fi
1350
1351 if test -n "$ac_init_help"; then
1352 case $ac_init_help in
1353 short | recursive ) echo "Configuration of nmzmail 1.1:";;
1354 esac
1355 cat <<\_ACEOF
1356
1357 Optional Features:
1358 --disable-option-checking ignore unrecognized --enable/--with options
1359 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1360 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1361 --disable-dependency-tracking speeds up one-time build
1362 --enable-dependency-tracking do not reject slow dependency extractors
1363
1364 Some influential environment variables:
1365 CC C compiler command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1368 nonstandard directory <lib dir>
1369 LIBS libraries to pass to the linker, e.g. -l<library>
1370 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1371 you have headers in a nonstandard directory <include dir>
1372 CPP C preprocessor
1373
1374 Use these variables to override the choices made by `configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1376
1377 Report bugs to <[email protected]>.
1378 _ACEOF
1379 ac_status=$?
1380 fi
1381
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385 test -d "$ac_dir" ||
1386 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1387 continue
1388 ac_builddir=.
1389
1390 case "$ac_dir" in
1391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392 *)
1393 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1394 # A ".." for each directory in $ac_dir_suffix.
1395 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1396 case $ac_top_builddir_sub in
1397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 esac ;;
1400 esac
1401 ac_abs_top_builddir=$ac_pwd
1402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403 # for backward compatibility:
1404 ac_top_builddir=$ac_top_build_prefix
1405
1406 case $srcdir in
1407 .) # We are building in place.
1408 ac_srcdir=.
1409 ac_top_srcdir=$ac_top_builddir_sub
1410 ac_abs_top_srcdir=$ac_pwd ;;
1411 [\\/]* | ?:[\\/]* ) # Absolute name.
1412 ac_srcdir=$srcdir$ac_dir_suffix;
1413 ac_top_srcdir=$srcdir
1414 ac_abs_top_srcdir=$srcdir ;;
1415 *) # Relative name.
1416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417 ac_top_srcdir=$ac_top_build_prefix$srcdir
1418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419 esac
1420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1421
1422 cd "$ac_dir" || { ac_status=$?; continue; }
1423 # Check for guested configure.
1424 if test -f "$ac_srcdir/configure.gnu"; then
1425 echo &&
1426 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427 elif test -f "$ac_srcdir/configure"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure" --help=recursive
1430 else
1431 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432 fi || ac_status=$?
1433 cd "$ac_pwd" || { ac_status=$?; break; }
1434 done
1435 fi
1436
1437 test -n "$ac_init_help" && exit $ac_status
1438 if $ac_init_version; then
1439 cat <<\_ACEOF
1440 nmzmail configure 1.1
1441 generated by GNU Autoconf 2.63
1442
1443 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1444 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1445 This configure script is free software; the Free Software Foundation
1446 gives unlimited permission to copy, distribute and modify it.
1447 _ACEOF
1448 exit
1449 fi
1450 cat >config.log <<_ACEOF
1451 This file contains any messages produced by compilers while
1452 running configure, to aid debugging if configure makes a mistake.
1453
1454 It was created by nmzmail $as_me 1.1, which was
1455 generated by GNU Autoconf 2.63. Invocation command line was
1456
1457 $ $0 $@
1458
1459 _ACEOF
1460 exec 5>>config.log
1461 {
1462 cat <<_ASUNAME
1463 ## --------- ##
1464 ## Platform. ##
1465 ## --------- ##
1466
1467 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1468 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1469 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1470 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1471 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1472
1473 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1474 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1475
1476 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1477 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1478 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1479 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1480 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1481 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1482 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1483
1484 _ASUNAME
1485
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1488 do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 $as_echo "PATH: $as_dir"
1492 done
1493 IFS=$as_save_IFS
1494
1495 } >&5
1496
1497 cat >&5 <<_ACEOF
1498
1499
1500 ## ----------- ##
1501 ## Core tests. ##
1502 ## ----------- ##
1503
1504 _ACEOF
1505
1506
1507 # Keep a trace of the command line.
1508 # Strip out --no-create and --no-recursion so they do not pile up.
1509 # Strip out --silent because we don't want to record it for future runs.
1510 # Also quote any args containing shell meta-characters.
1511 # Make two passes to allow for proper duplicate-argument suppression.
1512 ac_configure_args=
1513 ac_configure_args0=
1514 ac_configure_args1=
1515 ac_must_keep_next=false
1516 for ac_pass in 1 2
1517 do
1518 for ac_arg
1519 do
1520 case $ac_arg in
1521 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1523 | -silent | --silent | --silen | --sile | --sil)
1524 continue ;;
1525 *\'*)
1526 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1527 esac
1528 case $ac_pass in
1529 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1530 2)
1531 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1532 if test $ac_must_keep_next = true; then
1533 ac_must_keep_next=false # Got value, back to normal.
1534 else
1535 case $ac_arg in
1536 *=* | --config-cache | -C | -disable-* | --disable-* \
1537 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1538 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1539 | -with-* | --with-* | -without-* | --without-* | --x)
1540 case "$ac_configure_args0 " in
1541 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542 esac
1543 ;;
1544 -* ) ac_must_keep_next=true ;;
1545 esac
1546 fi
1547 ac_configure_args="$ac_configure_args '$ac_arg'"
1548 ;;
1549 esac
1550 done
1551 done
1552 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1553 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1554
1555 # When interrupted or exit'd, cleanup temporary files, and complete
1556 # config.log. We remove comments because anyway the quotes in there
1557 # would cause problems or look ugly.
1558 # WARNING: Use '\'' to represent an apostrophe within the trap.
1559 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1560 trap 'exit_status=$?
1561 # Save into config.log some information that might help in debugging.
1562 {
1563 echo
1564
1565 cat <<\_ASBOX
1566 ## ---------------- ##
1567 ## Cache variables. ##
1568 ## ---------------- ##
1569 _ASBOX
1570 echo
1571 # The following way of writing the cache mishandles newlines in values,
1572 (
1573 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1574 eval ac_val=\$$ac_var
1575 case $ac_val in #(
1576 *${as_nl}*)
1577 case $ac_var in #(
1578 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1579 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1580 esac
1581 case $ac_var in #(
1582 _ | IFS | as_nl) ;; #(
1583 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1584 *) $as_unset $ac_var ;;
1585 esac ;;
1586 esac
1587 done
1588 (set) 2>&1 |
1589 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1590 *${as_nl}ac_space=\ *)
1591 sed -n \
1592 "s/'\''/'\''\\\\'\'''\''/g;
1593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1594 ;; #(
1595 *)
1596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1597 ;;
1598 esac |
1599 sort
1600 )
1601 echo
1602
1603 cat <<\_ASBOX
1604 ## ----------------- ##
1605 ## Output variables. ##
1606 ## ----------------- ##
1607 _ASBOX
1608 echo
1609 for ac_var in $ac_subst_vars
1610 do
1611 eval ac_val=\$$ac_var
1612 case $ac_val in
1613 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614 esac
1615 $as_echo "$ac_var='\''$ac_val'\''"
1616 done | sort
1617 echo
1618
1619 if test -n "$ac_subst_files"; then
1620 cat <<\_ASBOX
1621 ## ------------------- ##
1622 ## File substitutions. ##
1623 ## ------------------- ##
1624 _ASBOX
1625 echo
1626 for ac_var in $ac_subst_files
1627 do
1628 eval ac_val=\$$ac_var
1629 case $ac_val in
1630 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631 esac
1632 $as_echo "$ac_var='\''$ac_val'\''"
1633 done | sort
1634 echo
1635 fi
1636
1637 if test -s confdefs.h; then
1638 cat <<\_ASBOX
1639 ## ----------- ##
1640 ## confdefs.h. ##
1641 ## ----------- ##
1642 _ASBOX
1643 echo
1644 cat confdefs.h
1645 echo
1646 fi
1647 test "$ac_signal" != 0 &&
1648 $as_echo "$as_me: caught signal $ac_signal"
1649 $as_echo "$as_me: exit $exit_status"
1650 } >&5
1651 rm -f core *.core core.conftest.* &&
1652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1653 exit $exit_status
1654 ' 0
1655 for ac_signal in 1 2 13 15; do
1656 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1657 done
1658 ac_signal=0
1659
1660 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1661 rm -f -r conftest* confdefs.h
1662
1663 # Predefined preprocessor variables.
1664
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_NAME "$PACKAGE_NAME"
1667 _ACEOF
1668
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1672 _ACEOF
1673
1674
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1677 _ACEOF
1678
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_STRING "$PACKAGE_STRING"
1682 _ACEOF
1683
1684
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1687 _ACEOF
1688
1689
1690 # Let the site file select an alternate cache file if it wants to.
1691 # Prefer an explicitly selected file to automatically selected ones.
1692 ac_site_file1=NONE
1693 ac_site_file2=NONE
1694 if test -n "$CONFIG_SITE"; then
1695 ac_site_file1=$CONFIG_SITE
1696 elif test "x$prefix" != xNONE; then
1697 ac_site_file1=$prefix/share/config.site
1698 ac_site_file2=$prefix/etc/config.site
1699 else
1700 ac_site_file1=$ac_default_prefix/share/config.site
1701 ac_site_file2=$ac_default_prefix/etc/config.site
1702 fi
1703 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1704 do
1705 test "x$ac_site_file" = xNONE && continue
1706 if test -r "$ac_site_file"; then
1707 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1708 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1709 sed 's/^/| /' "$ac_site_file" >&5
1710 . "$ac_site_file"
1711 fi
1712 done
1713
1714 if test -r "$cache_file"; then
1715 # Some versions of bash will fail to source /dev/null (special
1716 # files actually), so we avoid doing that.
1717 if test -f "$cache_file"; then
1718 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1719 $as_echo "$as_me: loading cache $cache_file" >&6;}
1720 case $cache_file in
1721 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722 *) . "./$cache_file";;
1723 esac
1724 fi
1725 else
1726 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1727 $as_echo "$as_me: creating cache $cache_file" >&6;}
1728 >$cache_file
1729 fi
1730
1731 # Check that the precious variables saved in the cache have kept the same
1732 # value.
1733 ac_cache_corrupted=false
1734 for ac_var in $ac_precious_vars; do
1735 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736 eval ac_new_set=\$ac_env_${ac_var}_set
1737 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738 eval ac_new_val=\$ac_env_${ac_var}_value
1739 case $ac_old_set,$ac_new_set in
1740 set,)
1741 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1742 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1744 ,set)
1745 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1746 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1748 ,);;
1749 *)
1750 if test "x$ac_old_val" != "x$ac_new_val"; then
1751 # differences in whitespace do not lead to failure.
1752 ac_old_val_w=`echo x $ac_old_val`
1753 ac_new_val_w=`echo x $ac_new_val`
1754 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1755 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1756 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1757 ac_cache_corrupted=:
1758 else
1759 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1760 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1761 eval $ac_var=\$ac_old_val
1762 fi
1763 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1764 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1765 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1766 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1767 fi;;
1768 esac
1769 # Pass precious variables to config.status.
1770 if test "$ac_new_set" = set; then
1771 case $ac_new_val in
1772 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 *) ac_arg=$ac_var=$ac_new_val ;;
1774 esac
1775 case " $ac_configure_args " in
1776 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1777 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1778 esac
1779 fi
1780 done
1781 if $ac_cache_corrupted; then
1782 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1784 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1785 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1786 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1787 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1788 { (exit 1); exit 1; }; }
1789 fi
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815 ac_ext=c
1816 ac_cpp='$CPP $CPPFLAGS'
1817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1820
1821
1822 am__api_version='1.10'
1823
1824 ac_aux_dir=
1825 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1826 if test -f "$ac_dir/install-sh"; then
1827 ac_aux_dir=$ac_dir
1828 ac_install_sh="$ac_aux_dir/install-sh -c"
1829 break
1830 elif test -f "$ac_dir/install.sh"; then
1831 ac_aux_dir=$ac_dir
1832 ac_install_sh="$ac_aux_dir/install.sh -c"
1833 break
1834 elif test -f "$ac_dir/shtool"; then
1835 ac_aux_dir=$ac_dir
1836 ac_install_sh="$ac_aux_dir/shtool install -c"
1837 break
1838 fi
1839 done
1840 if test -z "$ac_aux_dir"; then
1841 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1842 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1843 { (exit 1); exit 1; }; }
1844 fi
1845
1846 # These three variables are undocumented and unsupported,
1847 # and are intended to be withdrawn in a future Autoconf release.
1848 # They can cause serious problems if a builder's source tree is in a directory
1849 # whose full name contains unusual characters.
1850 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1851 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1852 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1853
1854
1855 # Find a good install program. We prefer a C program (faster),
1856 # so one script is as good as another. But avoid the broken or
1857 # incompatible versions:
1858 # SysV /etc/install, /usr/sbin/install
1859 # SunOS /usr/etc/install
1860 # IRIX /sbin/install
1861 # AIX /bin/install
1862 # AmigaOS /C/install, which installs bootblocks on floppy discs
1863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1866 # OS/2's system install, which has a completely different semantic
1867 # ./install, which can be erroneously created by make from ./install.sh.
1868 # Reject install programs that cannot install multiple files.
1869 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1870 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1871 if test -z "$INSTALL"; then
1872 if test "${ac_cv_path_install+set}" = set; then
1873 $as_echo_n "(cached) " >&6
1874 else
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 for as_dir in $PATH
1877 do
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
1880 # Account for people who put trailing slashes in PATH elements.
1881 case $as_dir/ in
1882 ./ | .// | /cC/* | \
1883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1884 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1885 /usr/ucb/* ) ;;
1886 *)
1887 # OSF1 and SCO ODT 3.0 have their own names for install.
1888 # Don't use installbsd from OSF since it installs stuff as root
1889 # by default.
1890 for ac_prog in ginstall scoinst install; do
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1893 if test $ac_prog = install &&
1894 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1895 # AIX install. It has an incompatible calling convention.
1896 :
1897 elif test $ac_prog = install &&
1898 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1899 # program-specific install script used by HP pwplus--don't use.
1900 :
1901 else
1902 rm -rf conftest.one conftest.two conftest.dir
1903 echo one > conftest.one
1904 echo two > conftest.two
1905 mkdir conftest.dir
1906 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1907 test -s conftest.one && test -s conftest.two &&
1908 test -s conftest.dir/conftest.one &&
1909 test -s conftest.dir/conftest.two
1910 then
1911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1912 break 3
1913 fi
1914 fi
1915 fi
1916 done
1917 done
1918 ;;
1919 esac
1920
1921 done
1922 IFS=$as_save_IFS
1923
1924 rm -rf conftest.one conftest.two conftest.dir
1925
1926 fi
1927 if test "${ac_cv_path_install+set}" = set; then
1928 INSTALL=$ac_cv_path_install
1929 else
1930 # As a last resort, use the slow shell script. Don't cache a
1931 # value for INSTALL within a source directory, because that will
1932 # break other packages using the cache if that directory is
1933 # removed, or if the value is a relative name.
1934 INSTALL=$ac_install_sh
1935 fi
1936 fi
1937 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1938 $as_echo "$INSTALL" >&6; }
1939
1940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1941 # It thinks the first close brace ends the variable substitution.
1942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1943
1944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1945
1946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1947
1948 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1949 $as_echo_n "checking whether build environment is sane... " >&6; }
1950 # Just in case
1951 sleep 1
1952 echo timestamp > conftest.file
1953 # Do `set' in a subshell so we don't clobber the current shell's
1954 # arguments. Must try -L first in case configure is actually a
1955 # symlink; some systems play weird games with the mod time of symlinks
1956 # (eg FreeBSD returns the mod time of the symlink's containing
1957 # directory).
1958 if (
1959 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1960 if test "$*" = "X"; then
1961 # -L didn't work.
1962 set X `ls -t $srcdir/configure conftest.file`
1963 fi
1964 rm -f conftest.file
1965 if test "$*" != "X $srcdir/configure conftest.file" \
1966 && test "$*" != "X conftest.file $srcdir/configure"; then
1967
1968 # If neither matched, then we have a broken ls. This can happen
1969 # if, for instance, CONFIG_SHELL is bash and it inherits a
1970 # broken ls alias from the environment. This has actually
1971 # happened. Such a system could not be considered "sane".
1972 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1973 alias in your environment" >&5
1974 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1975 alias in your environment" >&2;}
1976 { (exit 1); exit 1; }; }
1977 fi
1978
1979 test "$2" = conftest.file
1980 )
1981 then
1982 # Ok.
1983 :
1984 else
1985 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1986 Check your system clock" >&5
1987 $as_echo "$as_me: error: newly created file is older than distributed files!
1988 Check your system clock" >&2;}
1989 { (exit 1); exit 1; }; }
1990 fi
1991 { $as_echo "$as_me:$LINENO: result: yes" >&5
1992 $as_echo "yes" >&6; }
1993 test "$program_prefix" != NONE &&
1994 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1995 # Use a double $ so make ignores it.
1996 test "$program_suffix" != NONE &&
1997 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1998 # Double any \ or $.
1999 # By default was `s,x,x', remove it if useless.
2000 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2001 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2002
2003 # expand $ac_aux_dir to an absolute path
2004 am_aux_dir=`cd $ac_aux_dir && pwd`
2005
2006 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2007 # Use eval to expand $SHELL
2008 if eval "$MISSING --run true"; then
2009 am_missing_run="$MISSING --run "
2010 else
2011 am_missing_run=
2012 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2013 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2014 fi
2015
2016 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2017 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2018 if test -z "$MKDIR_P"; then
2019 if test "${ac_cv_path_mkdir+set}" = set; then
2020 $as_echo_n "(cached) " >&6
2021 else
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2024 do
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 for ac_prog in mkdir gmkdir; do
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2030 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2031 'mkdir (GNU coreutils) '* | \
2032 'mkdir (coreutils) '* | \
2033 'mkdir (fileutils) '4.1*)
2034 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2035 break 3;;
2036 esac
2037 done
2038 done
2039 done
2040 IFS=$as_save_IFS
2041
2042 fi
2043
2044 if test "${ac_cv_path_mkdir+set}" = set; then
2045 MKDIR_P="$ac_cv_path_mkdir -p"
2046 else
2047 # As a last resort, use the slow shell script. Don't cache a
2048 # value for MKDIR_P within a source directory, because that will
2049 # break other packages using the cache if that directory is
2050 # removed, or if the value is a relative name.
2051 test -d ./--version && rmdir ./--version
2052 MKDIR_P="$ac_install_sh -d"
2053 fi
2054 fi
2055 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2056 $as_echo "$MKDIR_P" >&6; }
2057
2058 mkdir_p="$MKDIR_P"
2059 case $mkdir_p in
2060 [\\/$]* | ?:[\\/]*) ;;
2061 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2062 esac
2063
2064 for ac_prog in gawk mawk nawk awk
2065 do
2066 # Extract the first word of "$ac_prog", so it can be a program name with args.
2067 set dummy $ac_prog; ac_word=$2
2068 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 $as_echo_n "checking for $ac_word... " >&6; }
2070 if test "${ac_cv_prog_AWK+set}" = set; then
2071 $as_echo_n "(cached) " >&6
2072 else
2073 if test -n "$AWK"; then
2074 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2083 ac_cv_prog_AWK="$ac_prog"
2084 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2086 fi
2087 done
2088 done
2089 IFS=$as_save_IFS
2090
2091 fi
2092 fi
2093 AWK=$ac_cv_prog_AWK
2094 if test -n "$AWK"; then
2095 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2096 $as_echo "$AWK" >&6; }
2097 else
2098 { $as_echo "$as_me:$LINENO: result: no" >&5
2099 $as_echo "no" >&6; }
2100 fi
2101
2102
2103 test -n "$AWK" && break
2104 done
2105
2106 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2107 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2108 set x ${MAKE-make}
2109 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2110 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2111 $as_echo_n "(cached) " >&6
2112 else
2113 cat >conftest.make <<\_ACEOF
2114 SHELL = /bin/sh
2115 all:
2116 @echo '@@@%%%=$(MAKE)=@@@%%%'
2117 _ACEOF
2118 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2119 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2120 *@@@%%%=?*=@@@%%%*)
2121 eval ac_cv_prog_make_${ac_make}_set=yes;;
2122 *)
2123 eval ac_cv_prog_make_${ac_make}_set=no;;
2124 esac
2125 rm -f conftest.make
2126 fi
2127 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2128 { $as_echo "$as_me:$LINENO: result: yes" >&5
2129 $as_echo "yes" >&6; }
2130 SET_MAKE=
2131 else
2132 { $as_echo "$as_me:$LINENO: result: no" >&5
2133 $as_echo "no" >&6; }
2134 SET_MAKE="MAKE=${MAKE-make}"
2135 fi
2136
2137 rm -rf .tst 2>/dev/null
2138 mkdir .tst 2>/dev/null
2139 if test -d .tst; then
2140 am__leading_dot=.
2141 else
2142 am__leading_dot=_
2143 fi
2144 rmdir .tst 2>/dev/null
2145
2146 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2147 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2148 # is not polluted with repeated "-I."
2149 am__isrc=' -I$(srcdir)'
2150 # test to see if srcdir already configured
2151 if test -f $srcdir/config.status; then
2152 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2153 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2154 { (exit 1); exit 1; }; }
2155 fi
2156 fi
2157
2158 # test whether we have cygpath
2159 if test -z "$CYGPATH_W"; then
2160 if (cygpath --version) >/dev/null 2>/dev/null; then
2161 CYGPATH_W='cygpath -w'
2162 else
2163 CYGPATH_W=echo
2164 fi
2165 fi
2166
2167
2168 # Define the identity of the package.
2169 PACKAGE='nmzmail'
2170 VERSION='1.1'
2171
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE "$PACKAGE"
2175 _ACEOF
2176
2177
2178 cat >>confdefs.h <<_ACEOF
2179 #define VERSION "$VERSION"
2180 _ACEOF
2181
2182 # Some tools Automake needs.
2183
2184 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2185
2186
2187 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2188
2189
2190 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2191
2192
2193 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2194
2195
2196 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2197
2198 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2199
2200 # Installed binaries are usually stripped using `strip' when the user
2201 # run `make install-strip'. However `strip' might not be the right
2202 # tool to use in cross-compilation environments, therefore Automake
2203 # will honor the `STRIP' environment variable to overrule this program.
2204 if test "$cross_compiling" != no; then
2205 if test -n "$ac_tool_prefix"; then
2206 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2207 set dummy ${ac_tool_prefix}strip; ac_word=$2
2208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 $as_echo_n "checking for $ac_word... " >&6; }
2210 if test "${ac_cv_prog_STRIP+set}" = set; then
2211 $as_echo_n "(cached) " >&6
2212 else
2213 if test -n "$STRIP"; then
2214 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2218 do
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 break 2
2226 fi
2227 done
2228 done
2229 IFS=$as_save_IFS
2230
2231 fi
2232 fi
2233 STRIP=$ac_cv_prog_STRIP
2234 if test -n "$STRIP"; then
2235 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2236 $as_echo "$STRIP" >&6; }
2237 else
2238 { $as_echo "$as_me:$LINENO: result: no" >&5
2239 $as_echo "no" >&6; }
2240 fi
2241
2242
2243 fi
2244 if test -z "$ac_cv_prog_STRIP"; then
2245 ac_ct_STRIP=$STRIP
2246 # Extract the first word of "strip", so it can be a program name with args.
2247 set dummy strip; ac_word=$2
2248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 $as_echo_n "checking for $ac_word... " >&6; }
2250 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2251 $as_echo_n "(cached) " >&6
2252 else
2253 if test -n "$ac_ct_STRIP"; then
2254 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2255 else
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259 IFS=$as_save_IFS
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_prog_ac_ct_STRIP="strip"
2264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 break 2
2266 fi
2267 done
2268 done
2269 IFS=$as_save_IFS
2270
2271 fi
2272 fi
2273 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2274 if test -n "$ac_ct_STRIP"; then
2275 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2276 $as_echo "$ac_ct_STRIP" >&6; }
2277 else
2278 { $as_echo "$as_me:$LINENO: result: no" >&5
2279 $as_echo "no" >&6; }
2280 fi
2281
2282 if test "x$ac_ct_STRIP" = x; then
2283 STRIP=":"
2284 else
2285 case $cross_compiling:$ac_tool_warned in
2286 yes:)
2287 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2289 ac_tool_warned=yes ;;
2290 esac
2291 STRIP=$ac_ct_STRIP
2292 fi
2293 else
2294 STRIP="$ac_cv_prog_STRIP"
2295 fi
2296
2297 fi
2298 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2299
2300 # We need awk for the "check" target. The system "awk" is bad on
2301 # some platforms.
2302 # Always define AMTAR for backward compatibility.
2303
2304 AMTAR=${AMTAR-"${am_missing_run}tar"}
2305
2306 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2307
2308
2309
2310
2311
2312
2313 ac_config_headers="$ac_config_headers config.h"
2314
2315
2316 CPPFLAGS="-I/usr/local/include $CPPFLAGS"
2317 CFLAGS="-I/usr/local/include $CFLAGS"
2318
2319 # Checks for programs.
2320 ac_ext=c
2321 ac_cpp='$CPP $CPPFLAGS'
2322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325 if test -n "$ac_tool_prefix"; then
2326 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2327 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 $as_echo_n "checking for $ac_word... " >&6; }
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331 $as_echo_n "(cached) " >&6
2332 else
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2335 else
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2338 do
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2343 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 break 2
2346 fi
2347 done
2348 done
2349 IFS=$as_save_IFS
2350
2351 fi
2352 fi
2353 CC=$ac_cv_prog_CC
2354 if test -n "$CC"; then
2355 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2356 $as_echo "$CC" >&6; }
2357 else
2358 { $as_echo "$as_me:$LINENO: result: no" >&5
2359 $as_echo "no" >&6; }
2360 fi
2361
2362
2363 fi
2364 if test -z "$ac_cv_prog_CC"; then
2365 ac_ct_CC=$CC
2366 # Extract the first word of "gcc", so it can be a program name with args.
2367 set dummy gcc; ac_word=$2
2368 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2369 $as_echo_n "checking for $ac_word... " >&6; }
2370 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2371 $as_echo_n "(cached) " >&6
2372 else
2373 if test -n "$ac_ct_CC"; then
2374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2375 else
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 for as_dir in $PATH
2378 do
2379 IFS=$as_save_IFS
2380 test -z "$as_dir" && as_dir=.
2381 for ac_exec_ext in '' $ac_executable_extensions; do
2382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2383 ac_cv_prog_ac_ct_CC="gcc"
2384 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 break 2
2386 fi
2387 done
2388 done
2389 IFS=$as_save_IFS
2390
2391 fi
2392 fi
2393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2394 if test -n "$ac_ct_CC"; then
2395 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2396 $as_echo "$ac_ct_CC" >&6; }
2397 else
2398 { $as_echo "$as_me:$LINENO: result: no" >&5
2399 $as_echo "no" >&6; }
2400 fi
2401
2402 if test "x$ac_ct_CC" = x; then
2403 CC=""
2404 else
2405 case $cross_compiling:$ac_tool_warned in
2406 yes:)
2407 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2409 ac_tool_warned=yes ;;
2410 esac
2411 CC=$ac_ct_CC
2412 fi
2413 else
2414 CC="$ac_cv_prog_CC"
2415 fi
2416
2417 if test -z "$CC"; then
2418 if test -n "$ac_tool_prefix"; then
2419 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2420 set dummy ${ac_tool_prefix}cc; ac_word=$2
2421 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2422 $as_echo_n "checking for $ac_word... " >&6; }
2423 if test "${ac_cv_prog_CC+set}" = set; then
2424 $as_echo_n "(cached) " >&6
2425 else
2426 if test -n "$CC"; then
2427 ac_cv_prog_CC="$CC" # Let the user override the test.
2428 else
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2431 do
2432 IFS=$as_save_IFS
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2436 ac_cv_prog_CC="${ac_tool_prefix}cc"
2437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 break 2
2439 fi
2440 done
2441 done
2442 IFS=$as_save_IFS
2443
2444 fi
2445 fi
2446 CC=$ac_cv_prog_CC
2447 if test -n "$CC"; then
2448 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2449 $as_echo "$CC" >&6; }
2450 else
2451 { $as_echo "$as_me:$LINENO: result: no" >&5
2452 $as_echo "no" >&6; }
2453 fi
2454
2455
2456 fi
2457 fi
2458 if test -z "$CC"; then
2459 # Extract the first word of "cc", so it can be a program name with args.
2460 set dummy cc; ac_word=$2
2461 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if test "${ac_cv_prog_CC+set}" = set; then
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 else
2469 ac_prog_rejected=no
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2478 ac_prog_rejected=yes
2479 continue
2480 fi
2481 ac_cv_prog_CC="cc"
2482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2484 fi
2485 done
2486 done
2487 IFS=$as_save_IFS
2488
2489 if test $ac_prog_rejected = yes; then
2490 # We found a bogon in the path, so make sure we never use it.
2491 set dummy $ac_cv_prog_CC
2492 shift
2493 if test $# != 0; then
2494 # We chose a different compiler from the bogus one.
2495 # However, it has the same basename, so the bogon will be chosen
2496 # first if we set CC to just the basename; use the full file name.
2497 shift
2498 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2499 fi
2500 fi
2501 fi
2502 fi
2503 CC=$ac_cv_prog_CC
2504 if test -n "$CC"; then
2505 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2506 $as_echo "$CC" >&6; }
2507 else
2508 { $as_echo "$as_me:$LINENO: result: no" >&5
2509 $as_echo "no" >&6; }
2510 fi
2511
2512
2513 fi
2514 if test -z "$CC"; then
2515 if test -n "$ac_tool_prefix"; then
2516 for ac_prog in cl.exe
2517 do
2518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2520 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 $as_echo_n "checking for $ac_word... " >&6; }
2522 if test "${ac_cv_prog_CC+set}" = set; then
2523 $as_echo_n "(cached) " >&6
2524 else
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2536 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 break 2
2538 fi
2539 done
2540 done
2541 IFS=$as_save_IFS
2542
2543 fi
2544 fi
2545 CC=$ac_cv_prog_CC
2546 if test -n "$CC"; then
2547 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2548 $as_echo "$CC" >&6; }
2549 else
2550 { $as_echo "$as_me:$LINENO: result: no" >&5
2551 $as_echo "no" >&6; }
2552 fi
2553
2554
2555 test -n "$CC" && break
2556 done
2557 fi
2558 if test -z "$CC"; then
2559 ac_ct_CC=$CC
2560 for ac_prog in cl.exe
2561 do
2562 # Extract the first word of "$ac_prog", so it can be a program name with args.
2563 set dummy $ac_prog; ac_word=$2
2564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 $as_echo_n "checking for $ac_word... " >&6; }
2566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2567 $as_echo_n "(cached) " >&6
2568 else
2569 if test -n "$ac_ct_CC"; then
2570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_ac_ct_CC="$ac_prog"
2580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2582 fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588 fi
2589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2590 if test -n "$ac_ct_CC"; then
2591 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2592 $as_echo "$ac_ct_CC" >&6; }
2593 else
2594 { $as_echo "$as_me:$LINENO: result: no" >&5
2595 $as_echo "no" >&6; }
2596 fi
2597
2598
2599 test -n "$ac_ct_CC" && break
2600 done
2601
2602 if test "x$ac_ct_CC" = x; then
2603 CC=""
2604 else
2605 case $cross_compiling:$ac_tool_warned in
2606 yes:)
2607 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2609 ac_tool_warned=yes ;;
2610 esac
2611 CC=$ac_ct_CC
2612 fi
2613 fi
2614
2615 fi
2616
2617
2618 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2621 See \`config.log' for more details." >&5
2622 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2623 See \`config.log' for more details." >&2;}
2624 { (exit 1); exit 1; }; }; }
2625
2626 # Provide some information about the compiler.
2627 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2628 set X $ac_compile
2629 ac_compiler=$2
2630 { (ac_try="$ac_compiler --version >&5"
2631 case "(($ac_try" in
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2634 esac
2635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2636 $as_echo "$ac_try_echo") >&5
2637 (eval "$ac_compiler --version >&5") 2>&5
2638 ac_status=$?
2639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }
2641 { (ac_try="$ac_compiler -v >&5"
2642 case "(($ac_try" in
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2645 esac
2646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2647 $as_echo "$ac_try_echo") >&5
2648 (eval "$ac_compiler -v >&5") 2>&5
2649 ac_status=$?
2650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }
2652 { (ac_try="$ac_compiler -V >&5"
2653 case "(($ac_try" in
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2656 esac
2657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2658 $as_echo "$ac_try_echo") >&5
2659 (eval "$ac_compiler -V >&5") 2>&5
2660 ac_status=$?
2661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }
2663
2664 cat >conftest.$ac_ext <<_ACEOF
2665 /* confdefs.h. */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2670
2671 int
2672 main ()
2673 {
2674
2675 ;
2676 return 0;
2677 }
2678 _ACEOF
2679 ac_clean_files_save=$ac_clean_files
2680 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2681 # Try to create an executable without -o first, disregard a.out.
2682 # It will help us diagnose broken compilers, and finding out an intuition
2683 # of exeext.
2684 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2685 $as_echo_n "checking for C compiler default output file name... " >&6; }
2686 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2687
2688 # The possible output files:
2689 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2690
2691 ac_rmfiles=
2692 for ac_file in $ac_files
2693 do
2694 case $ac_file in
2695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2696 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2697 esac
2698 done
2699 rm -f $ac_rmfiles
2700
2701 if { (ac_try="$ac_link_default"
2702 case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705 esac
2706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2707 $as_echo "$ac_try_echo") >&5
2708 (eval "$ac_link_default") 2>&5
2709 ac_status=$?
2710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; then
2712 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2713 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2714 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2715 # so that the user can short-circuit this test for compilers unknown to
2716 # Autoconf.
2717 for ac_file in $ac_files ''
2718 do
2719 test -f "$ac_file" || continue
2720 case $ac_file in
2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2722 ;;
2723 [ab].out )
2724 # We found the default executable, but exeext='' is most
2725 # certainly right.
2726 break;;
2727 *.* )
2728 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2729 then :; else
2730 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2731 fi
2732 # We set ac_cv_exeext here because the later test for it is not
2733 # safe: cross compilers may not add the suffix if given an `-o'
2734 # argument, so we may need to know it at that point already.
2735 # Even if this section looks crufty: it has the advantage of
2736 # actually working.
2737 break;;
2738 * )
2739 break;;
2740 esac
2741 done
2742 test "$ac_cv_exeext" = no && ac_cv_exeext=
2743
2744 else
2745 ac_file=''
2746 fi
2747
2748 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2749 $as_echo "$ac_file" >&6; }
2750 if test -z "$ac_file"; then
2751 $as_echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2756 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2757 See \`config.log' for more details." >&5
2758 $as_echo "$as_me: error: C compiler cannot create executables
2759 See \`config.log' for more details." >&2;}
2760 { (exit 77); exit 77; }; }; }
2761 fi
2762
2763 ac_exeext=$ac_cv_exeext
2764
2765 # Check that the compiler produces executables we can run. If not, either
2766 # the compiler is broken, or we cross compile.
2767 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2768 $as_echo_n "checking whether the C compiler works... " >&6; }
2769 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2770 # If not cross compiling, check that we can run a simple program.
2771 if test "$cross_compiling" != yes; then
2772 if { ac_try='./$ac_file'
2773 { (case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776 esac
2777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2778 $as_echo "$ac_try_echo") >&5
2779 (eval "$ac_try") 2>&5
2780 ac_status=$?
2781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2783 cross_compiling=no
2784 else
2785 if test "$cross_compiling" = maybe; then
2786 cross_compiling=yes
2787 else
2788 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2790 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2791 If you meant to cross compile, use \`--host'.
2792 See \`config.log' for more details." >&5
2793 $as_echo "$as_me: error: cannot run C compiled programs.
2794 If you meant to cross compile, use \`--host'.
2795 See \`config.log' for more details." >&2;}
2796 { (exit 1); exit 1; }; }; }
2797 fi
2798 fi
2799 fi
2800 { $as_echo "$as_me:$LINENO: result: yes" >&5
2801 $as_echo "yes" >&6; }
2802
2803 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2804 ac_clean_files=$ac_clean_files_save
2805 # Check that the compiler produces executables we can run. If not, either
2806 # the compiler is broken, or we cross compile.
2807 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2808 $as_echo_n "checking whether we are cross compiling... " >&6; }
2809 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2810 $as_echo "$cross_compiling" >&6; }
2811
2812 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2813 $as_echo_n "checking for suffix of executables... " >&6; }
2814 if { (ac_try="$ac_link"
2815 case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818 esac
2819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2820 $as_echo "$ac_try_echo") >&5
2821 (eval "$ac_link") 2>&5
2822 ac_status=$?
2823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; then
2825 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2826 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2827 # work properly (i.e., refer to `conftest.exe'), while it won't with
2828 # `rm'.
2829 for ac_file in conftest.exe conftest conftest.*; do
2830 test -f "$ac_file" || continue
2831 case $ac_file in
2832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2833 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2834 break;;
2835 * ) break;;
2836 esac
2837 done
2838 else
2839 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2841 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2842 See \`config.log' for more details." >&5
2843 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2844 See \`config.log' for more details." >&2;}
2845 { (exit 1); exit 1; }; }; }
2846 fi
2847
2848 rm -f conftest$ac_cv_exeext
2849 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2850 $as_echo "$ac_cv_exeext" >&6; }
2851
2852 rm -f conftest.$ac_ext
2853 EXEEXT=$ac_cv_exeext
2854 ac_exeext=$EXEEXT
2855 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2856 $as_echo_n "checking for suffix of object files... " >&6; }
2857 if test "${ac_cv_objext+set}" = set; then
2858 $as_echo_n "(cached) " >&6
2859 else
2860 cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h. */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2866
2867 int
2868 main ()
2869 {
2870
2871 ;
2872 return 0;
2873 }
2874 _ACEOF
2875 rm -f conftest.o conftest.obj
2876 if { (ac_try="$ac_compile"
2877 case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880 esac
2881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2882 $as_echo "$ac_try_echo") >&5
2883 (eval "$ac_compile") 2>&5
2884 ac_status=$?
2885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
2887 for ac_file in conftest.o conftest.obj conftest.*; do
2888 test -f "$ac_file" || continue;
2889 case $ac_file in
2890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2891 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2892 break;;
2893 esac
2894 done
2895 else
2896 $as_echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2898
2899 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2902 See \`config.log' for more details." >&5
2903 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }; }
2906 fi
2907
2908 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2909 fi
2910 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2911 $as_echo "$ac_cv_objext" >&6; }
2912 OBJEXT=$ac_cv_objext
2913 ac_objext=$OBJEXT
2914 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2915 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2916 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2917 $as_echo_n "(cached) " >&6
2918 else
2919 cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h. */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2925
2926 int
2927 main ()
2928 {
2929 #ifndef __GNUC__
2930 choke me
2931 #endif
2932
2933 ;
2934 return 0;
2935 }
2936 _ACEOF
2937 rm -f conftest.$ac_objext
2938 if { (ac_try="$ac_compile"
2939 case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942 esac
2943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2944 $as_echo "$ac_try_echo") >&5
2945 (eval "$ac_compile") 2>conftest.er1
2946 ac_status=$?
2947 grep -v '^ *+' conftest.er1 >conftest.err
2948 rm -f conftest.er1
2949 cat conftest.err >&5
2950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } && {
2952 test -z "$ac_c_werror_flag" ||
2953 test ! -s conftest.err
2954 } && test -s conftest.$ac_objext; then
2955 ac_compiler_gnu=yes
2956 else
2957 $as_echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 ac_compiler_gnu=no
2961 fi
2962
2963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2965
2966 fi
2967 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2968 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2969 if test $ac_compiler_gnu = yes; then
2970 GCC=yes
2971 else
2972 GCC=
2973 fi
2974 ac_test_CFLAGS=${CFLAGS+set}
2975 ac_save_CFLAGS=$CFLAGS
2976 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2977 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2978 if test "${ac_cv_prog_cc_g+set}" = set; then
2979 $as_echo_n "(cached) " >&6
2980 else
2981 ac_save_c_werror_flag=$ac_c_werror_flag
2982 ac_c_werror_flag=yes
2983 ac_cv_prog_cc_g=no
2984 CFLAGS="-g"
2985 cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h. */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991
2992 int
2993 main ()
2994 {
2995
2996 ;
2997 return 0;
2998 }
2999 _ACEOF
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3007 $as_echo "$ac_try_echo") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3009 ac_status=$?
3010 grep -v '^ *+' conftest.er1 >conftest.err
3011 rm -f conftest.er1
3012 cat conftest.err >&5
3013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } && {
3015 test -z "$ac_c_werror_flag" ||
3016 test ! -s conftest.err
3017 } && test -s conftest.$ac_objext; then
3018 ac_cv_prog_cc_g=yes
3019 else
3020 $as_echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023 CFLAGS=""
3024 cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h. */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030
3031 int
3032 main ()
3033 {
3034
3035 ;
3036 return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3046 $as_echo "$ac_try_echo") >&5
3047 (eval "$ac_compile") 2>conftest.er1
3048 ac_status=$?
3049 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -f conftest.er1
3051 cat conftest.err >&5
3052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } && {
3054 test -z "$ac_c_werror_flag" ||
3055 test ! -s conftest.err
3056 } && test -s conftest.$ac_objext; then
3057 :
3058 else
3059 $as_echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062 ac_c_werror_flag=$ac_save_c_werror_flag
3063 CFLAGS="-g"
3064 cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h. */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3070
3071 int
3072 main ()
3073 {
3074
3075 ;
3076 return 0;
3077 }
3078 _ACEOF
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3081 case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3086 $as_echo "$ac_try_echo") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } && {
3094 test -z "$ac_c_werror_flag" ||
3095 test ! -s conftest.err
3096 } && test -s conftest.$ac_objext; then
3097 ac_cv_prog_cc_g=yes
3098 else
3099 $as_echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102
3103 fi
3104
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 fi
3107
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 fi
3110
3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112 ac_c_werror_flag=$ac_save_c_werror_flag
3113 fi
3114 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3115 $as_echo "$ac_cv_prog_cc_g" >&6; }
3116 if test "$ac_test_CFLAGS" = set; then
3117 CFLAGS=$ac_save_CFLAGS
3118 elif test $ac_cv_prog_cc_g = yes; then
3119 if test "$GCC" = yes; then
3120 CFLAGS="-g -O2"
3121 else
3122 CFLAGS="-g"
3123 fi
3124 else
3125 if test "$GCC" = yes; then
3126 CFLAGS="-O2"
3127 else
3128 CFLAGS=
3129 fi
3130 fi
3131 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3132 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3133 if test "${ac_cv_prog_cc_c89+set}" = set; then
3134 $as_echo_n "(cached) " >&6
3135 else
3136 ac_cv_prog_cc_c89=no
3137 ac_save_CC=$CC
3138 cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h. */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3144 #include <stdarg.h>
3145 #include <stdio.h>
3146 #include <sys/types.h>
3147 #include <sys/stat.h>
3148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3149 struct buf { int x; };
3150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3151 static char *e (p, i)
3152 char **p;
3153 int i;
3154 {
3155 return p[i];
3156 }
3157 static char *f (char * (*g) (char **, int), char **p, ...)
3158 {
3159 char *s;
3160 va_list v;
3161 va_start (v,p);
3162 s = g (p, va_arg (v,int));
3163 va_end (v);
3164 return s;
3165 }
3166
3167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3168 function prototypes and stuff, but not '\xHH' hex character constants.
3169 These don't provoke an error unfortunately, instead are silently treated
3170 as 'x'. The following induces an error, until -std is added to get
3171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3172 array size at least. It's necessary to write '\x00'==0 to get something
3173 that's true only with -std. */
3174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3175
3176 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3177 inside strings and character constants. */
3178 #define FOO(x) 'x'
3179 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3180
3181 int test (int i, double x);
3182 struct s1 {int (*f) (int a);};
3183 struct s2 {int (*f) (double a);};
3184 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3185 int argc;
3186 char **argv;
3187 int
3188 main ()
3189 {
3190 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3191 ;
3192 return 0;
3193 }
3194 _ACEOF
3195 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3196 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3197 do
3198 CC="$ac_save_CC $ac_arg"
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3206 $as_echo "$ac_try_echo") >&5
3207 (eval "$ac_compile") 2>conftest.er1
3208 ac_status=$?
3209 grep -v '^ *+' conftest.er1 >conftest.err
3210 rm -f conftest.er1
3211 cat conftest.err >&5
3212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } && {
3214 test -z "$ac_c_werror_flag" ||
3215 test ! -s conftest.err
3216 } && test -s conftest.$ac_objext; then
3217 ac_cv_prog_cc_c89=$ac_arg
3218 else
3219 $as_echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3221
3222
3223 fi
3224
3225 rm -f core conftest.err conftest.$ac_objext
3226 test "x$ac_cv_prog_cc_c89" != "xno" && break
3227 done
3228 rm -f conftest.$ac_ext
3229 CC=$ac_save_CC
3230
3231 fi
3232 # AC_CACHE_VAL
3233 case "x$ac_cv_prog_cc_c89" in
3234 x)
3235 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3236 $as_echo "none needed" >&6; } ;;
3237 xno)
3238 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3239 $as_echo "unsupported" >&6; } ;;
3240 *)
3241 CC="$CC $ac_cv_prog_cc_c89"
3242 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3243 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3244 esac
3245
3246
3247 ac_ext=c
3248 ac_cpp='$CPP $CPPFLAGS'
3249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252 DEPDIR="${am__leading_dot}deps"
3253
3254 ac_config_commands="$ac_config_commands depfiles"
3255
3256
3257 am_make=${MAKE-make}
3258 cat > confinc << 'END'
3259 am__doit:
3260 @echo done
3261 .PHONY: am__doit
3262 END
3263 # If we don't find an include directive, just comment out the code.
3264 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3265 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3266 am__include="#"
3267 am__quote=
3268 _am_result=none
3269 # First try GNU make style include.
3270 echo "include confinc" > confmf
3271 # We grep out `Entering directory' and `Leaving directory'
3272 # messages which can occur if `w' ends up in MAKEFLAGS.
3273 # In particular we don't look at `^make:' because GNU make might
3274 # be invoked under some other name (usually "gmake"), in which
3275 # case it prints its new name instead of `make'.
3276 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3277 am__include=include
3278 am__quote=
3279 _am_result=GNU
3280 fi
3281 # Now try BSD make style include.
3282 if test "$am__include" = "#"; then
3283 echo '.include "confinc"' > confmf
3284 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3285 am__include=.include
3286 am__quote="\""
3287 _am_result=BSD
3288 fi
3289 fi
3290
3291
3292 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3293 $as_echo "$_am_result" >&6; }
3294 rm -f confinc confmf
3295
3296 # Check whether --enable-dependency-tracking was given.
3297 if test "${enable_dependency_tracking+set}" = set; then
3298 enableval=$enable_dependency_tracking;
3299 fi
3300
3301 if test "x$enable_dependency_tracking" != xno; then
3302 am_depcomp="$ac_aux_dir/depcomp"
3303 AMDEPBACKSLASH='\'
3304 fi
3305 if test "x$enable_dependency_tracking" != xno; then
3306 AMDEP_TRUE=
3307 AMDEP_FALSE='#'
3308 else
3309 AMDEP_TRUE='#'
3310 AMDEP_FALSE=
3311 fi
3312
3313
3314
3315 depcc="$CC" am_compiler_list=
3316
3317 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3318 $as_echo_n "checking dependency style of $depcc... " >&6; }
3319 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3320 $as_echo_n "(cached) " >&6
3321 else
3322 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3323 # We make a subdir and do the tests there. Otherwise we can end up
3324 # making bogus files that we don't know about and never remove. For
3325 # instance it was reported that on HP-UX the gcc test will end up
3326 # making a dummy file named `D' -- because `-MD' means `put the output
3327 # in D'.
3328 mkdir conftest.dir
3329 # Copy depcomp to subdir because otherwise we won't find it if we're
3330 # using a relative directory.
3331 cp "$am_depcomp" conftest.dir
3332 cd conftest.dir
3333 # We will build objects and dependencies in a subdirectory because
3334 # it helps to detect inapplicable dependency modes. For instance
3335 # both Tru64's cc and ICC support -MD to output dependencies as a
3336 # side effect of compilation, but ICC will put the dependencies in
3337 # the current directory while Tru64 will put them in the object
3338 # directory.
3339 mkdir sub
3340
3341 am_cv_CC_dependencies_compiler_type=none
3342 if test "$am_compiler_list" = ""; then
3343 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3344 fi
3345 for depmode in $am_compiler_list; do
3346 # Setup a source with many dependencies, because some compilers
3347 # like to wrap large dependency lists on column 80 (with \), and
3348 # we should not choose a depcomp mode which is confused by this.
3349 #
3350 # We need to recreate these files for each test, as the compiler may
3351 # overwrite some of them when testing with obscure command lines.
3352 # This happens at least with the AIX C compiler.
3353 : > sub/conftest.c
3354 for i in 1 2 3 4 5 6; do
3355 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3356 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3357 # Solaris 8's {/usr,}/bin/sh.
3358 touch sub/conftst$i.h
3359 done
3360 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3361
3362 case $depmode in
3363 nosideeffect)
3364 # after this tag, mechanisms are not by side-effect, so they'll
3365 # only be used when explicitly requested
3366 if test "x$enable_dependency_tracking" = xyes; then
3367 continue
3368 else
3369 break
3370 fi
3371 ;;
3372 none) break ;;
3373 esac
3374 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3375 # mode. It turns out that the SunPro C++ compiler does not properly
3376 # handle `-M -o', and we need to detect this.
3377 if depmode=$depmode \
3378 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3379 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3380 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3381 >/dev/null 2>conftest.err &&
3382 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3383 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3384 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3385 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3386 # icc doesn't choke on unknown options, it will just issue warnings
3387 # or remarks (even with -Werror). So we grep stderr for any message
3388 # that says an option was ignored or not supported.
3389 # When given -MP, icc 7.0 and 7.1 complain thusly:
3390 # icc: Command line warning: ignoring option '-M'; no argument required
3391 # The diagnosis changed in icc 8.0:
3392 # icc: Command line remark: option '-MP' not supported
3393 if (grep 'ignoring option' conftest.err ||
3394 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3395 am_cv_CC_dependencies_compiler_type=$depmode
3396 break
3397 fi
3398 fi
3399 done
3400
3401 cd ..
3402 rm -rf conftest.dir
3403 else
3404 am_cv_CC_dependencies_compiler_type=none
3405 fi
3406
3407 fi
3408 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3409 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3410 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3411
3412 if
3413 test "x$enable_dependency_tracking" != xno \
3414 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3415 am__fastdepCC_TRUE=
3416 am__fastdepCC_FALSE='#'
3417 else
3418 am__fastdepCC_TRUE='#'
3419 am__fastdepCC_FALSE=
3420 fi
3421
3422
3423
3424 ac_ext=c
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429
3430
3431 # Checks for libraries.
3432
3433 # Checks for header files.
3434
3435 ac_ext=c
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3441 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3442 # On Suns, sometimes $CPP names a directory.
3443 if test -n "$CPP" && test -d "$CPP"; then
3444 CPP=
3445 fi
3446 if test -z "$CPP"; then
3447 if test "${ac_cv_prog_CPP+set}" = set; then
3448 $as_echo_n "(cached) " >&6
3449 else
3450 # Double quotes because CPP needs to be expanded
3451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3452 do
3453 ac_preproc_ok=false
3454 for ac_c_preproc_warn_flag in '' yes
3455 do
3456 # Use a header file that comes with gcc, so configuring glibc
3457 # with a fresh cross-compiler works.
3458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3459 # <limits.h> exists even on freestanding compilers.
3460 # On the NeXT, cc -E runs the code through the compiler's parser,
3461 # not just through cpp. "Syntax error" is here to catch this case.
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 #ifdef __STDC__
3469 # include <limits.h>
3470 #else
3471 # include <assert.h>
3472 #endif
3473 Syntax error
3474 _ACEOF
3475 if { (ac_try="$ac_cpp conftest.$ac_ext"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3481 $as_echo "$ac_try_echo") >&5
3482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } >/dev/null && {
3489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3490 test ! -s conftest.err
3491 }; then
3492 :
3493 else
3494 $as_echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497 # Broken: fails on valid input.
3498 continue
3499 fi
3500
3501 rm -f conftest.err conftest.$ac_ext
3502
3503 # OK, works on sane cases. Now check whether nonexistent headers
3504 # can be detected and how.
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h. */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3511 #include <ac_nonexistent.h>
3512 _ACEOF
3513 if { (ac_try="$ac_cpp conftest.$ac_ext"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3519 $as_echo "$ac_try_echo") >&5
3520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } >/dev/null && {
3527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3528 test ! -s conftest.err
3529 }; then
3530 # Broken: success on invalid input.
3531 continue
3532 else
3533 $as_echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3535
3536 # Passes both tests.
3537 ac_preproc_ok=:
3538 break
3539 fi
3540
3541 rm -f conftest.err conftest.$ac_ext
3542
3543 done
3544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3545 rm -f conftest.err conftest.$ac_ext
3546 if $ac_preproc_ok; then
3547 break
3548 fi
3549
3550 done
3551 ac_cv_prog_CPP=$CPP
3552
3553 fi
3554 CPP=$ac_cv_prog_CPP
3555 else
3556 ac_cv_prog_CPP=$CPP
3557 fi
3558 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3559 $as_echo "$CPP" >&6; }
3560 ac_preproc_ok=false
3561 for ac_c_preproc_warn_flag in '' yes
3562 do
3563 # Use a header file that comes with gcc, so configuring glibc
3564 # with a fresh cross-compiler works.
3565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566 # <limits.h> exists even on freestanding compilers.
3567 # On the NeXT, cc -E runs the code through the compiler's parser,
3568 # not just through cpp. "Syntax error" is here to catch this case.
3569 cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h. */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3575 #ifdef __STDC__
3576 # include <limits.h>
3577 #else
3578 # include <assert.h>
3579 #endif
3580 Syntax error
3581 _ACEOF
3582 if { (ac_try="$ac_cpp conftest.$ac_ext"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3588 $as_echo "$ac_try_echo") >&5
3589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3590 ac_status=$?
3591 grep -v '^ *+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } >/dev/null && {
3596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3597 test ! -s conftest.err
3598 }; then
3599 :
3600 else
3601 $as_echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604 # Broken: fails on valid input.
3605 continue
3606 fi
3607
3608 rm -f conftest.err conftest.$ac_ext
3609
3610 # OK, works on sane cases. Now check whether nonexistent headers
3611 # can be detected and how.
3612 cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h. */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 #include <ac_nonexistent.h>
3619 _ACEOF
3620 if { (ac_try="$ac_cpp conftest.$ac_ext"
3621 case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3626 $as_echo "$ac_try_echo") >&5
3627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3628 ac_status=$?
3629 grep -v '^ *+' conftest.er1 >conftest.err
3630 rm -f conftest.er1
3631 cat conftest.err >&5
3632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } >/dev/null && {
3634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3635 test ! -s conftest.err
3636 }; then
3637 # Broken: success on invalid input.
3638 continue
3639 else
3640 $as_echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 # Passes both tests.
3644 ac_preproc_ok=:
3645 break
3646 fi
3647
3648 rm -f conftest.err conftest.$ac_ext
3649
3650 done
3651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3652 rm -f conftest.err conftest.$ac_ext
3653 if $ac_preproc_ok; then
3654 :
3655 else
3656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3659 See \`config.log' for more details." >&5
3660 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3661 See \`config.log' for more details." >&2;}
3662 { (exit 1); exit 1; }; }; }
3663 fi
3664
3665 ac_ext=c
3666 ac_cpp='$CPP $CPPFLAGS'
3667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670
3671
3672 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3673 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3674 if test "${ac_cv_path_GREP+set}" = set; then
3675 $as_echo_n "(cached) " >&6
3676 else
3677 if test -z "$GREP"; then
3678 ac_path_GREP_found=false
3679 # Loop through the user's path and test for each of PROGNAME-LIST
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3682 do
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for ac_prog in grep ggrep; do
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3688 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3689 # Check for GNU ac_path_GREP and select it if it is found.
3690 # Check for GNU $ac_path_GREP
3691 case `"$ac_path_GREP" --version 2>&1` in
3692 *GNU*)
3693 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3694 *)
3695 ac_count=0
3696 $as_echo_n 0123456789 >"conftest.in"
3697 while :
3698 do
3699 cat "conftest.in" "conftest.in" >"conftest.tmp"
3700 mv "conftest.tmp" "conftest.in"
3701 cp "conftest.in" "conftest.nl"
3702 $as_echo 'GREP' >> "conftest.nl"
3703 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3705 ac_count=`expr $ac_count + 1`
3706 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3707 # Best one so far, save it but keep looking for a better one
3708 ac_cv_path_GREP="$ac_path_GREP"
3709 ac_path_GREP_max=$ac_count
3710 fi
3711 # 10*(2^10) chars as input seems more than enough
3712 test $ac_count -gt 10 && break
3713 done
3714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3715 esac
3716
3717 $ac_path_GREP_found && break 3
3718 done
3719 done
3720 done
3721 IFS=$as_save_IFS
3722 if test -z "$ac_cv_path_GREP"; then
3723 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3724 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3725 { (exit 1); exit 1; }; }
3726 fi
3727 else
3728 ac_cv_path_GREP=$GREP
3729 fi
3730
3731 fi
3732 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3733 $as_echo "$ac_cv_path_GREP" >&6; }
3734 GREP="$ac_cv_path_GREP"
3735
3736
3737 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3738 $as_echo_n "checking for egrep... " >&6; }
3739 if test "${ac_cv_path_EGREP+set}" = set; then
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3743 then ac_cv_path_EGREP="$GREP -E"
3744 else
3745 if test -z "$EGREP"; then
3746 ac_path_EGREP_found=false
3747 # Loop through the user's path and test for each of PROGNAME-LIST
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3750 do
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 for ac_prog in egrep; do
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3756 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3757 # Check for GNU ac_path_EGREP and select it if it is found.
3758 # Check for GNU $ac_path_EGREP
3759 case `"$ac_path_EGREP" --version 2>&1` in
3760 *GNU*)
3761 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3762 *)
3763 ac_count=0
3764 $as_echo_n 0123456789 >"conftest.in"
3765 while :
3766 do
3767 cat "conftest.in" "conftest.in" >"conftest.tmp"
3768 mv "conftest.tmp" "conftest.in"
3769 cp "conftest.in" "conftest.nl"
3770 $as_echo 'EGREP' >> "conftest.nl"
3771 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3772 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3773 ac_count=`expr $ac_count + 1`
3774 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3775 # Best one so far, save it but keep looking for a better one
3776 ac_cv_path_EGREP="$ac_path_EGREP"
3777 ac_path_EGREP_max=$ac_count
3778 fi
3779 # 10*(2^10) chars as input seems more than enough
3780 test $ac_count -gt 10 && break
3781 done
3782 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3783 esac
3784
3785 $ac_path_EGREP_found && break 3
3786 done
3787 done
3788 done
3789 IFS=$as_save_IFS
3790 if test -z "$ac_cv_path_EGREP"; then
3791 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3792 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3793 { (exit 1); exit 1; }; }
3794 fi
3795 else
3796 ac_cv_path_EGREP=$EGREP
3797 fi
3798
3799 fi
3800 fi
3801 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3802 $as_echo "$ac_cv_path_EGREP" >&6; }
3803 EGREP="$ac_cv_path_EGREP"
3804
3805
3806 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3807 $as_echo_n "checking for ANSI C header files... " >&6; }
3808 if test "${ac_cv_header_stdc+set}" = set; then
3809 $as_echo_n "(cached) " >&6
3810 else
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 #include <stdlib.h>
3818 #include <stdarg.h>
3819 #include <string.h>
3820 #include <float.h>
3821
3822 int
3823 main ()
3824 {
3825
3826 ;
3827 return 0;
3828 }
3829 _ACEOF
3830 rm -f conftest.$ac_objext
3831 if { (ac_try="$ac_compile"
3832 case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835 esac
3836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3837 $as_echo "$ac_try_echo") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3839 ac_status=$?
3840 grep -v '^ *+' conftest.er1 >conftest.err
3841 rm -f conftest.er1
3842 cat conftest.err >&5
3843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } && {
3845 test -z "$ac_c_werror_flag" ||
3846 test ! -s conftest.err
3847 } && test -s conftest.$ac_objext; then
3848 ac_cv_header_stdc=yes
3849 else
3850 $as_echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3852
3853 ac_cv_header_stdc=no
3854 fi
3855
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857
3858 if test $ac_cv_header_stdc = yes; then
3859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3860 cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h. */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3866 #include <string.h>
3867
3868 _ACEOF
3869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3870 $EGREP "memchr" >/dev/null 2>&1; then
3871 :
3872 else
3873 ac_cv_header_stdc=no
3874 fi
3875 rm -f conftest*
3876
3877 fi
3878
3879 if test $ac_cv_header_stdc = yes; then
3880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3881 cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h. */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 #include <stdlib.h>
3888
3889 _ACEOF
3890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3891 $EGREP "free" >/dev/null 2>&1; then
3892 :
3893 else
3894 ac_cv_header_stdc=no
3895 fi
3896 rm -f conftest*
3897
3898 fi
3899
3900 if test $ac_cv_header_stdc = yes; then
3901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3902 if test "$cross_compiling" = yes; then
3903 :
3904 else
3905 cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h. */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 #include <ctype.h>
3912 #include <stdlib.h>
3913 #if ((' ' & 0x0FF) == 0x020)
3914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3916 #else
3917 # define ISLOWER(c) \
3918 (('a' <= (c) && (c) <= 'i') \
3919 || ('j' <= (c) && (c) <= 'r') \
3920 || ('s' <= (c) && (c) <= 'z'))
3921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3922 #endif
3923
3924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3925 int
3926 main ()
3927 {
3928 int i;
3929 for (i = 0; i < 256; i++)
3930 if (XOR (islower (i), ISLOWER (i))
3931 || toupper (i) != TOUPPER (i))
3932 return 2;
3933 return 0;
3934 }
3935 _ACEOF
3936 rm -f conftest$ac_exeext
3937 if { (ac_try="$ac_link"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3943 $as_echo "$ac_try_echo") >&5
3944 (eval "$ac_link") 2>&5
3945 ac_status=$?
3946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3948 { (case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951 esac
3952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3953 $as_echo "$ac_try_echo") >&5
3954 (eval "$ac_try") 2>&5
3955 ac_status=$?
3956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3958 :
3959 else
3960 $as_echo "$as_me: program exited with status $ac_status" >&5
3961 $as_echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3963
3964 ( exit $ac_status )
3965 ac_cv_header_stdc=no
3966 fi
3967 rm -rf conftest.dSYM
3968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3969 fi
3970
3971
3972 fi
3973 fi
3974 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3975 $as_echo "$ac_cv_header_stdc" >&6; }
3976 if test $ac_cv_header_stdc = yes; then
3977
3978 cat >>confdefs.h <<\_ACEOF
3979 #define STDC_HEADERS 1
3980 _ACEOF
3981
3982 fi
3983
3984 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3985 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3986 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3987 $as_echo_n "(cached) " >&6
3988 else
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h. */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995 #include <sys/types.h>
3996 #include <sys/wait.h>
3997 #ifndef WEXITSTATUS
3998 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3999 #endif
4000 #ifndef WIFEXITED
4001 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4002 #endif
4003
4004 int
4005 main ()
4006 {
4007 int s;
4008 wait (&s);
4009 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4010 ;
4011 return 0;
4012 }
4013 _ACEOF
4014 rm -f conftest.$ac_objext
4015 if { (ac_try="$ac_compile"
4016 case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019 esac
4020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4021 $as_echo "$ac_try_echo") >&5
4022 (eval "$ac_compile") 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } && {
4029 test -z "$ac_c_werror_flag" ||
4030 test ! -s conftest.err
4031 } && test -s conftest.$ac_objext; then
4032 ac_cv_header_sys_wait_h=yes
4033 else
4034 $as_echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037 ac_cv_header_sys_wait_h=no
4038 fi
4039
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 fi
4042 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4043 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4044 if test $ac_cv_header_sys_wait_h = yes; then
4045
4046 cat >>confdefs.h <<\_ACEOF
4047 #define HAVE_SYS_WAIT_H 1
4048 _ACEOF
4049
4050 fi
4051
4052 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4063 inttypes.h stdint.h unistd.h
4064 do
4065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4066 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4067 $as_echo_n "checking for $ac_header... " >&6; }
4068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4069 $as_echo_n "(cached) " >&6
4070 else
4071 cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h. */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4077 $ac_includes_default
4078
4079 #include <$ac_header>
4080 _ACEOF
4081 rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
4083 case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086 esac
4087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4088 $as_echo "$ac_try_echo") >&5
4089 (eval "$ac_compile") 2>conftest.er1
4090 ac_status=$?
4091 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -f conftest.er1
4093 cat conftest.err >&5
4094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && {
4096 test -z "$ac_c_werror_flag" ||
4097 test ! -s conftest.err
4098 } && test -s conftest.$ac_objext; then
4099 eval "$as_ac_Header=yes"
4100 else
4101 $as_echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 eval "$as_ac_Header=no"
4105 fi
4106
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 fi
4109 ac_res=`eval 'as_val=${'$as_ac_Header'}
4110 $as_echo "$as_val"'`
4111 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4112 $as_echo "$ac_res" >&6; }
4113 as_val=`eval 'as_val=${'$as_ac_Header'}
4114 $as_echo "$as_val"'`
4115 if test "x$as_val" = x""yes; then
4116 cat >>confdefs.h <<_ACEOF
4117 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4118 _ACEOF
4119
4120 fi
4121
4122 done
4123
4124
4125
4126
4127
4128
4129 for ac_header in fcntl.h stdlib.h string.h unistd.h
4130 do
4131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4134 $as_echo_n "checking for $ac_header... " >&6; }
4135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4136 $as_echo_n "(cached) " >&6
4137 fi
4138 ac_res=`eval 'as_val=${'$as_ac_Header'}
4139 $as_echo "$as_val"'`
4140 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4141 $as_echo "$ac_res" >&6; }
4142 else
4143 # Is the header compilable?
4144 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4145 $as_echo_n "checking $ac_header usability... " >&6; }
4146 cat >conftest.$ac_ext <<_ACEOF
4147 /* confdefs.h. */
4148 _ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4152 $ac_includes_default
4153 #include <$ac_header>
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (ac_try="$ac_compile"
4157 case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160 esac
4161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4162 $as_echo "$ac_try_echo") >&5
4163 (eval "$ac_compile") 2>conftest.er1
4164 ac_status=$?
4165 grep -v '^ *+' conftest.er1 >conftest.err
4166 rm -f conftest.er1
4167 cat conftest.err >&5
4168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } && {
4170 test -z "$ac_c_werror_flag" ||
4171 test ! -s conftest.err
4172 } && test -s conftest.$ac_objext; then
4173 ac_header_compiler=yes
4174 else
4175 $as_echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4177
4178 ac_header_compiler=no
4179 fi
4180
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4183 $as_echo "$ac_header_compiler" >&6; }
4184
4185 # Is the header present?
4186 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4187 $as_echo_n "checking $ac_header presence... " >&6; }
4188 cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h. */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4194 #include <$ac_header>
4195 _ACEOF
4196 if { (ac_try="$ac_cpp conftest.$ac_ext"
4197 case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200 esac
4201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4202 $as_echo "$ac_try_echo") >&5
4203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4204 ac_status=$?
4205 grep -v '^ *+' conftest.er1 >conftest.err
4206 rm -f conftest.er1
4207 cat conftest.err >&5
4208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } >/dev/null && {
4210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4211 test ! -s conftest.err
4212 }; then
4213 ac_header_preproc=yes
4214 else
4215 $as_echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 ac_header_preproc=no
4219 fi
4220
4221 rm -f conftest.err conftest.$ac_ext
4222 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4223 $as_echo "$ac_header_preproc" >&6; }
4224
4225 # So? What about this header?
4226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4227 yes:no: )
4228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4229 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4231 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4232 ac_header_preproc=yes
4233 ;;
4234 no:yes:* )
4235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4236 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4238 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4240 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4242 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4246 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4247 ( cat <<\_ASBOX
4248 ## -------------------------------------- ##
4249 ## Report this to [email protected] ##
4250 ## -------------------------------------- ##
4251 _ASBOX
4252 ) | sed "s/^/$as_me: WARNING: /" >&2
4253 ;;
4254 esac
4255 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4256 $as_echo_n "checking for $ac_header... " >&6; }
4257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4258 $as_echo_n "(cached) " >&6
4259 else
4260 eval "$as_ac_Header=\$ac_header_preproc"
4261 fi
4262 ac_res=`eval 'as_val=${'$as_ac_Header'}
4263 $as_echo "$as_val"'`
4264 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4265 $as_echo "$ac_res" >&6; }
4266
4267 fi
4268 as_val=`eval 'as_val=${'$as_ac_Header'}
4269 $as_echo "$as_val"'`
4270 if test "x$as_val" = x""yes; then
4271 cat >>confdefs.h <<_ACEOF
4272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4273 _ACEOF
4274
4275 fi
4276
4277 done
4278
4279
4280 # Checks for typedefs, structures, and compiler characteristics.
4281 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4282 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4283 if test "${ac_cv_header_stdbool_h+set}" = set; then
4284 $as_echo_n "(cached) " >&6
4285 else
4286 cat >conftest.$ac_ext <<_ACEOF
4287 /* confdefs.h. */
4288 _ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4292
4293 #include <stdbool.h>
4294 #ifndef bool
4295 "error: bool is not defined"
4296 #endif
4297 #ifndef false
4298 "error: false is not defined"
4299 #endif
4300 #if false
4301 "error: false is not 0"
4302 #endif
4303 #ifndef true
4304 "error: true is not defined"
4305 #endif
4306 #if true != 1
4307 "error: true is not 1"
4308 #endif
4309 #ifndef __bool_true_false_are_defined
4310 "error: __bool_true_false_are_defined is not defined"
4311 #endif
4312
4313 struct s { _Bool s: 1; _Bool t; } s;
4314
4315 char a[true == 1 ? 1 : -1];
4316 char b[false == 0 ? 1 : -1];
4317 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4318 char d[(bool) 0.5 == true ? 1 : -1];
4319 bool e = &s;
4320 char f[(_Bool) 0.0 == false ? 1 : -1];
4321 char g[true];
4322 char h[sizeof (_Bool)];
4323 char i[sizeof s.t];
4324 enum { j = false, k = true, l = false * true, m = true * 256 };
4325 /* The following fails for
4326 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4327 _Bool n[m];
4328 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4329 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4330 # if defined __xlc__ || defined __GNUC__
4331 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4332 reported by James Lemley on 2005-10-05; see
4333 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4334 This test is not quite right, since xlc is allowed to
4335 reject this program, as the initializer for xlcbug is
4336 not one of the forms that C requires support for.
4337 However, doing the test right would require a runtime
4338 test, and that would make cross-compilation harder.
4339 Let us hope that IBM fixes the xlc bug, and also adds
4340 support for this kind of constant expression. In the
4341 meantime, this test will reject xlc, which is OK, since
4342 our stdbool.h substitute should suffice. We also test
4343 this with GCC, where it should work, to detect more
4344 quickly whether someone messes up the test in the
4345 future. */
4346 char digs[] = "0123456789";
4347 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4348 # endif
4349 /* Catch a bug in an HP-UX C compiler. See
4350 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4351 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4352 */
4353 _Bool q = true;
4354 _Bool *pq = &q;
4355
4356 int
4357 main ()
4358 {
4359
4360 *pq |= q;
4361 *pq |= ! q;
4362 /* Refer to every declared value, to avoid compiler optimizations. */
4363 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4364 + !m + !n + !o + !p + !q + !pq);
4365
4366 ;
4367 return 0;
4368 }
4369 _ACEOF
4370 rm -f conftest.$ac_objext
4371 if { (ac_try="$ac_compile"
4372 case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4377 $as_echo "$ac_try_echo") >&5
4378 (eval "$ac_compile") 2>conftest.er1
4379 ac_status=$?
4380 grep -v '^ *+' conftest.er1 >conftest.err
4381 rm -f conftest.er1
4382 cat conftest.err >&5
4383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } && {
4385 test -z "$ac_c_werror_flag" ||
4386 test ! -s conftest.err
4387 } && test -s conftest.$ac_objext; then
4388 ac_cv_header_stdbool_h=yes
4389 else
4390 $as_echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 ac_cv_header_stdbool_h=no
4394 fi
4395
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 fi
4398 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4399 $as_echo "$ac_cv_header_stdbool_h" >&6; }
4400 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
4401 $as_echo_n "checking for _Bool... " >&6; }
4402 if test "${ac_cv_type__Bool+set}" = set; then
4403 $as_echo_n "(cached) " >&6
4404 else
4405 ac_cv_type__Bool=no
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h. */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 $ac_includes_default
4413 int
4414 main ()
4415 {
4416 if (sizeof (_Bool))
4417 return 0;
4418 ;
4419 return 0;
4420 }
4421 _ACEOF
4422 rm -f conftest.$ac_objext
4423 if { (ac_try="$ac_compile"
4424 case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4427 esac
4428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4429 $as_echo "$ac_try_echo") >&5
4430 (eval "$ac_compile") 2>conftest.er1
4431 ac_status=$?
4432 grep -v '^ *+' conftest.er1 >conftest.err
4433 rm -f conftest.er1
4434 cat conftest.err >&5
4435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } && {
4437 test -z "$ac_c_werror_flag" ||
4438 test ! -s conftest.err
4439 } && test -s conftest.$ac_objext; then
4440 cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h. */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 $ac_includes_default
4447 int
4448 main ()
4449 {
4450 if (sizeof ((_Bool)))
4451 return 0;
4452 ;
4453 return 0;
4454 }
4455 _ACEOF
4456 rm -f conftest.$ac_objext
4457 if { (ac_try="$ac_compile"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4463 $as_echo "$ac_try_echo") >&5
4464 (eval "$ac_compile") 2>conftest.er1
4465 ac_status=$?
4466 grep -v '^ *+' conftest.er1 >conftest.err
4467 rm -f conftest.er1
4468 cat conftest.err >&5
4469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } && {
4471 test -z "$ac_c_werror_flag" ||
4472 test ! -s conftest.err
4473 } && test -s conftest.$ac_objext; then
4474 :
4475 else
4476 $as_echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479 ac_cv_type__Bool=yes
4480 fi
4481
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 else
4484 $as_echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487
4488 fi
4489
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 fi
4492 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4493 $as_echo "$ac_cv_type__Bool" >&6; }
4494 if test "x$ac_cv_type__Bool" = x""yes; then
4495
4496 cat >>confdefs.h <<_ACEOF
4497 #define HAVE__BOOL 1
4498 _ACEOF
4499
4500
4501 fi
4502
4503 if test $ac_cv_header_stdbool_h = yes; then
4504
4505 cat >>confdefs.h <<\_ACEOF
4506 #define HAVE_STDBOOL_H 1
4507 _ACEOF
4508
4509 fi
4510
4511 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4512 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4513 if test "${ac_cv_c_const+set}" = set; then
4514 $as_echo_n "(cached) " >&6
4515 else
4516 cat >conftest.$ac_ext <<_ACEOF
4517 /* confdefs.h. */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4522
4523 int
4524 main ()
4525 {
4526 /* FIXME: Include the comments suggested by Paul. */
4527 #ifndef __cplusplus
4528 /* Ultrix mips cc rejects this. */
4529 typedef int charset[2];
4530 const charset cs;
4531 /* SunOS 4.1.1 cc rejects this. */
4532 char const *const *pcpcc;
4533 char **ppc;
4534 /* NEC SVR4.0.2 mips cc rejects this. */
4535 struct point {int x, y;};
4536 static struct point const zero = {0,0};
4537 /* AIX XL C 1.02.0.0 rejects this.
4538 It does not let you subtract one const X* pointer from another in
4539 an arm of an if-expression whose if-part is not a constant
4540 expression */
4541 const char *g = "string";
4542 pcpcc = &g + (g ? g-g : 0);
4543 /* HPUX 7.0 cc rejects these. */
4544 ++pcpcc;
4545 ppc = (char**) pcpcc;
4546 pcpcc = (char const *const *) ppc;
4547 { /* SCO 3.2v4 cc rejects this. */
4548 char *t;
4549 char const *s = 0 ? (char *) 0 : (char const *) 0;
4550
4551 *t++ = 0;
4552 if (s) return 0;
4553 }
4554 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4555 int x[] = {25, 17};
4556 const int *foo = &x[0];
4557 ++foo;
4558 }
4559 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4560 typedef const int *iptr;
4561 iptr p = 0;
4562 ++p;
4563 }
4564 { /* AIX XL C 1.02.0.0 rejects this saying
4565 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4566 struct s { int j; const int *ap[3]; };
4567 struct s *b; b->j = 5;
4568 }
4569 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4570 const int foo = 10;
4571 if (!foo) return 0;
4572 }
4573 return !cs[0] && !zero.x;
4574 #endif
4575
4576 ;
4577 return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (ac_try="$ac_compile"
4582 case "(($ac_try" in
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4585 esac
4586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4587 $as_echo "$ac_try_echo") >&5
4588 (eval "$ac_compile") 2>conftest.er1
4589 ac_status=$?
4590 grep -v '^ *+' conftest.er1 >conftest.err
4591 rm -f conftest.er1
4592 cat conftest.err >&5
4593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && {
4595 test -z "$ac_c_werror_flag" ||
4596 test ! -s conftest.err
4597 } && test -s conftest.$ac_objext; then
4598 ac_cv_c_const=yes
4599 else
4600 $as_echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4602
4603 ac_cv_c_const=no
4604 fi
4605
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 fi
4608 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4609 $as_echo "$ac_cv_c_const" >&6; }
4610 if test $ac_cv_c_const = no; then
4611
4612 cat >>confdefs.h <<\_ACEOF
4613 #define const /**/
4614 _ACEOF
4615
4616 fi
4617
4618 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
4619 $as_echo_n "checking for off_t... " >&6; }
4620 if test "${ac_cv_type_off_t+set}" = set; then
4621 $as_echo_n "(cached) " >&6
4622 else
4623 ac_cv_type_off_t=no
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 $ac_includes_default
4631 int
4632 main ()
4633 {
4634 if (sizeof (off_t))
4635 return 0;
4636 ;
4637 return 0;
4638 }
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4642 case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645 esac
4646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4647 $as_echo "$ac_try_echo") >&5
4648 (eval "$ac_compile") 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && {
4655 test -z "$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4657 } && test -s conftest.$ac_objext; then
4658 cat >conftest.$ac_ext <<_ACEOF
4659 /* confdefs.h. */
4660 _ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 $ac_includes_default
4665 int
4666 main ()
4667 {
4668 if (sizeof ((off_t)))
4669 return 0;
4670 ;
4671 return 0;
4672 }
4673 _ACEOF
4674 rm -f conftest.$ac_objext
4675 if { (ac_try="$ac_compile"
4676 case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4679 esac
4680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4681 $as_echo "$ac_try_echo") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && {
4689 test -z "$ac_c_werror_flag" ||
4690 test ! -s conftest.err
4691 } && test -s conftest.$ac_objext; then
4692 :
4693 else
4694 $as_echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4696
4697 ac_cv_type_off_t=yes
4698 fi
4699
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 else
4702 $as_echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705
4706 fi
4707
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 fi
4710 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4711 $as_echo "$ac_cv_type_off_t" >&6; }
4712 if test "x$ac_cv_type_off_t" = x""yes; then
4713 :
4714 else
4715
4716 cat >>confdefs.h <<_ACEOF
4717 #define off_t long int
4718 _ACEOF
4719
4720 fi
4721
4722 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
4723 $as_echo_n "checking for pid_t... " >&6; }
4724 if test "${ac_cv_type_pid_t+set}" = set; then
4725 $as_echo_n "(cached) " >&6
4726 else
4727 ac_cv_type_pid_t=no
4728 cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h. */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 $ac_includes_default
4735 int
4736 main ()
4737 {
4738 if (sizeof (pid_t))
4739 return 0;
4740 ;
4741 return 0;
4742 }
4743 _ACEOF
4744 rm -f conftest.$ac_objext
4745 if { (ac_try="$ac_compile"
4746 case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749 esac
4750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4751 $as_echo "$ac_try_echo") >&5
4752 (eval "$ac_compile") 2>conftest.er1
4753 ac_status=$?
4754 grep -v '^ *+' conftest.er1 >conftest.err
4755 rm -f conftest.er1
4756 cat conftest.err >&5
4757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } && {
4759 test -z "$ac_c_werror_flag" ||
4760 test ! -s conftest.err
4761 } && test -s conftest.$ac_objext; then
4762 cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h. */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 $ac_includes_default
4769 int
4770 main ()
4771 {
4772 if (sizeof ((pid_t)))
4773 return 0;
4774 ;
4775 return 0;
4776 }
4777 _ACEOF
4778 rm -f conftest.$ac_objext
4779 if { (ac_try="$ac_compile"
4780 case "(($ac_try" in
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4783 esac
4784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4785 $as_echo "$ac_try_echo") >&5
4786 (eval "$ac_compile") 2>conftest.er1
4787 ac_status=$?
4788 grep -v '^ *+' conftest.er1 >conftest.err
4789 rm -f conftest.er1
4790 cat conftest.err >&5
4791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } && {
4793 test -z "$ac_c_werror_flag" ||
4794 test ! -s conftest.err
4795 } && test -s conftest.$ac_objext; then
4796 :
4797 else
4798 $as_echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4800
4801 ac_cv_type_pid_t=yes
4802 fi
4803
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 else
4806 $as_echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4808
4809
4810 fi
4811
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 fi
4814 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4815 $as_echo "$ac_cv_type_pid_t" >&6; }
4816 if test "x$ac_cv_type_pid_t" = x""yes; then
4817 :
4818 else
4819
4820 cat >>confdefs.h <<_ACEOF
4821 #define pid_t int
4822 _ACEOF
4823
4824 fi
4825
4826
4827 # Checks for library functions.
4828
4829 for ac_header in vfork.h
4830 do
4831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4833 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4834 $as_echo_n "checking for $ac_header... " >&6; }
4835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4836 $as_echo_n "(cached) " >&6
4837 fi
4838 ac_res=`eval 'as_val=${'$as_ac_Header'}
4839 $as_echo "$as_val"'`
4840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4841 $as_echo "$ac_res" >&6; }
4842 else
4843 # Is the header compilable?
4844 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4845 $as_echo_n "checking $ac_header usability... " >&6; }
4846 cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h. */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 $ac_includes_default
4853 #include <$ac_header>
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (ac_try="$ac_compile"
4857 case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860 esac
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863 (eval "$ac_compile") 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } && {
4870 test -z "$ac_c_werror_flag" ||
4871 test ! -s conftest.err
4872 } && test -s conftest.$ac_objext; then
4873 ac_header_compiler=yes
4874 else
4875 $as_echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878 ac_header_compiler=no
4879 fi
4880
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4883 $as_echo "$ac_header_compiler" >&6; }
4884
4885 # Is the header present?
4886 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4887 $as_echo_n "checking $ac_header presence... " >&6; }
4888 cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h. */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4894 #include <$ac_header>
4895 _ACEOF
4896 if { (ac_try="$ac_cpp conftest.$ac_ext"
4897 case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900 esac
4901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4902 $as_echo "$ac_try_echo") >&5
4903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } >/dev/null && {
4910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4912 }; then
4913 ac_header_preproc=yes
4914 else
4915 $as_echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4917
4918 ac_header_preproc=no
4919 fi
4920
4921 rm -f conftest.err conftest.$ac_ext
4922 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4923 $as_echo "$ac_header_preproc" >&6; }
4924
4925 # So? What about this header?
4926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4927 yes:no: )
4928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4929 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4931 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4932 ac_header_preproc=yes
4933 ;;
4934 no:yes:* )
4935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4936 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4938 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4940 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4942 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4944 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4946 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4947 ( cat <<\_ASBOX
4948 ## -------------------------------------- ##
4949 ## Report this to [email protected] ##
4950 ## -------------------------------------- ##
4951 _ASBOX
4952 ) | sed "s/^/$as_me: WARNING: /" >&2
4953 ;;
4954 esac
4955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4956 $as_echo_n "checking for $ac_header... " >&6; }
4957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4958 $as_echo_n "(cached) " >&6
4959 else
4960 eval "$as_ac_Header=\$ac_header_preproc"
4961 fi
4962 ac_res=`eval 'as_val=${'$as_ac_Header'}
4963 $as_echo "$as_val"'`
4964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4965 $as_echo "$ac_res" >&6; }
4966
4967 fi
4968 as_val=`eval 'as_val=${'$as_ac_Header'}
4969 $as_echo "$as_val"'`
4970 if test "x$as_val" = x""yes; then
4971 cat >>confdefs.h <<_ACEOF
4972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4973 _ACEOF
4974
4975 fi
4976
4977 done
4978
4979
4980
4981 for ac_func in fork vfork
4982 do
4983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4984 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4985 $as_echo_n "checking for $ac_func... " >&6; }
4986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4987 $as_echo_n "(cached) " >&6
4988 else
4989 cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h. */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4997 #define $ac_func innocuous_$ac_func
4998
4999 /* System header to define __stub macros and hopefully few prototypes,
5000 which can conflict with char $ac_func (); below.
5001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5002 <limits.h> exists even on freestanding compilers. */
5003
5004 #ifdef __STDC__
5005 # include <limits.h>
5006 #else
5007 # include <assert.h>
5008 #endif
5009
5010 #undef $ac_func
5011
5012 /* Override any GCC internal prototype to avoid an error.
5013 Use char because int might match the return type of a GCC
5014 builtin and then its argument prototype would still apply. */
5015 #ifdef __cplusplus
5016 extern "C"
5017 #endif
5018 char $ac_func ();
5019 /* The GNU C library defines this for functions which it implements
5020 to always fail with ENOSYS. Some functions are actually named
5021 something starting with __ and the normal name is an alias. */
5022 #if defined __stub_$ac_func || defined __stub___$ac_func
5023 choke me
5024 #endif
5025
5026 int
5027 main ()
5028 {
5029 return $ac_func ();
5030 ;
5031 return 0;
5032 }
5033 _ACEOF
5034 rm -f conftest.$ac_objext conftest$ac_exeext
5035 if { (ac_try="$ac_link"
5036 case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039 esac
5040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5041 $as_echo "$ac_try_echo") >&5
5042 (eval "$ac_link") 2>conftest.er1
5043 ac_status=$?
5044 grep -v '^ *+' conftest.er1 >conftest.err
5045 rm -f conftest.er1
5046 cat conftest.err >&5
5047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } && {
5049 test -z "$ac_c_werror_flag" ||
5050 test ! -s conftest.err
5051 } && test -s conftest$ac_exeext && {
5052 test "$cross_compiling" = yes ||
5053 $as_test_x conftest$ac_exeext
5054 }; then
5055 eval "$as_ac_var=yes"
5056 else
5057 $as_echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 eval "$as_ac_var=no"
5061 fi
5062
5063 rm -rf conftest.dSYM
5064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5065 conftest$ac_exeext conftest.$ac_ext
5066 fi
5067 ac_res=`eval 'as_val=${'$as_ac_var'}
5068 $as_echo "$as_val"'`
5069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5070 $as_echo "$ac_res" >&6; }
5071 as_val=`eval 'as_val=${'$as_ac_var'}
5072 $as_echo "$as_val"'`
5073 if test "x$as_val" = x""yes; then
5074 cat >>confdefs.h <<_ACEOF
5075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5076 _ACEOF
5077
5078 fi
5079 done
5080
5081 if test "x$ac_cv_func_fork" = xyes; then
5082 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
5083 $as_echo_n "checking for working fork... " >&6; }
5084 if test "${ac_cv_func_fork_works+set}" = set; then
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test "$cross_compiling" = yes; then
5088 ac_cv_func_fork_works=cross
5089 else
5090 cat >conftest.$ac_ext <<_ACEOF
5091 /* confdefs.h. */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5096 $ac_includes_default
5097 int
5098 main ()
5099 {
5100
5101 /* By Ruediger Kuhlmann. */
5102 return fork () < 0;
5103
5104 ;
5105 return 0;
5106 }
5107 _ACEOF
5108 rm -f conftest$ac_exeext
5109 if { (ac_try="$ac_link"
5110 case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113 esac
5114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5115 $as_echo "$ac_try_echo") >&5
5116 (eval "$ac_link") 2>&5
5117 ac_status=$?
5118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5120 { (case "(($ac_try" in
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5123 esac
5124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5125 $as_echo "$ac_try_echo") >&5
5126 (eval "$ac_try") 2>&5
5127 ac_status=$?
5128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_func_fork_works=yes
5131 else
5132 $as_echo "$as_me: program exited with status $ac_status" >&5
5133 $as_echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5135
5136 ( exit $ac_status )
5137 ac_cv_func_fork_works=no
5138 fi
5139 rm -rf conftest.dSYM
5140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5141 fi
5142
5143
5144 fi
5145 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5146 $as_echo "$ac_cv_func_fork_works" >&6; }
5147
5148 else
5149 ac_cv_func_fork_works=$ac_cv_func_fork
5150 fi
5151 if test "x$ac_cv_func_fork_works" = xcross; then
5152 case $host in
5153 *-*-amigaos* | *-*-msdosdjgpp*)
5154 # Override, as these systems have only a dummy fork() stub
5155 ac_cv_func_fork_works=no
5156 ;;
5157 *)
5158 ac_cv_func_fork_works=yes
5159 ;;
5160 esac
5161 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5162 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5163 fi
5164 ac_cv_func_vfork_works=$ac_cv_func_vfork
5165 if test "x$ac_cv_func_vfork" = xyes; then
5166 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
5167 $as_echo_n "checking for working vfork... " >&6; }
5168 if test "${ac_cv_func_vfork_works+set}" = set; then
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if test "$cross_compiling" = yes; then
5172 ac_cv_func_vfork_works=cross
5173 else
5174 cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h. */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 /* Thanks to Paul Eggert for this test. */
5181 $ac_includes_default
5182 #include <sys/wait.h>
5183 #ifdef HAVE_VFORK_H
5184 # include <vfork.h>
5185 #endif
5186 /* On some sparc systems, changes by the child to local and incoming
5187 argument registers are propagated back to the parent. The compiler
5188 is told about this with #include <vfork.h>, but some compilers
5189 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5190 static variable whose address is put into a register that is
5191 clobbered by the vfork. */
5192 static void
5193 #ifdef __cplusplus
5194 sparc_address_test (int arg)
5195 # else
5196 sparc_address_test (arg) int arg;
5197 #endif
5198 {
5199 static pid_t child;
5200 if (!child) {
5201 child = vfork ();
5202 if (child < 0) {
5203 perror ("vfork");
5204 _exit(2);
5205 }
5206 if (!child) {
5207 arg = getpid();
5208 write(-1, "", 0);
5209 _exit (arg);
5210 }
5211 }
5212 }
5213
5214 int
5215 main ()
5216 {
5217 pid_t parent = getpid ();
5218 pid_t child;
5219
5220 sparc_address_test (0);
5221
5222 child = vfork ();
5223
5224 if (child == 0) {
5225 /* Here is another test for sparc vfork register problems. This
5226 test uses lots of local variables, at least as many local
5227 variables as main has allocated so far including compiler
5228 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5229 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5230 reuse the register of parent for one of the local variables,
5231 since it will think that parent can't possibly be used any more
5232 in this routine. Assigning to the local variable will thus
5233 munge parent in the parent process. */
5234 pid_t
5235 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5236 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5237 /* Convince the compiler that p..p7 are live; otherwise, it might
5238 use the same hardware register for all 8 local variables. */
5239 if (p != p1 || p != p2 || p != p3 || p != p4
5240 || p != p5 || p != p6 || p != p7)
5241 _exit(1);
5242
5243 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5244 from child file descriptors. If the child closes a descriptor
5245 before it execs or exits, this munges the parent's descriptor
5246 as well. Test for this by closing stdout in the child. */
5247 _exit(close(fileno(stdout)) != 0);
5248 } else {
5249 int status;
5250 struct stat st;
5251
5252 while (wait(&status) != child)
5253 ;
5254 return (
5255 /* Was there some problem with vforking? */
5256 child < 0
5257
5258 /* Did the child fail? (This shouldn't happen.) */
5259 || status
5260
5261 /* Did the vfork/compiler bug occur? */
5262 || parent != getpid()
5263
5264 /* Did the file descriptor bug occur? */
5265 || fstat(fileno(stdout), &st) != 0
5266 );
5267 }
5268 }
5269 _ACEOF
5270 rm -f conftest$ac_exeext
5271 if { (ac_try="$ac_link"
5272 case "(($ac_try" in
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5275 esac
5276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5277 $as_echo "$ac_try_echo") >&5
5278 (eval "$ac_link") 2>&5
5279 ac_status=$?
5280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5282 { (case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285 esac
5286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5287 $as_echo "$ac_try_echo") >&5
5288 (eval "$ac_try") 2>&5
5289 ac_status=$?
5290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_func_vfork_works=yes
5293 else
5294 $as_echo "$as_me: program exited with status $ac_status" >&5
5295 $as_echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5297
5298 ( exit $ac_status )
5299 ac_cv_func_vfork_works=no
5300 fi
5301 rm -rf conftest.dSYM
5302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5303 fi
5304
5305
5306 fi
5307 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5308 $as_echo "$ac_cv_func_vfork_works" >&6; }
5309
5310 fi;
5311 if test "x$ac_cv_func_fork_works" = xcross; then
5312 ac_cv_func_vfork_works=$ac_cv_func_vfork
5313 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5314 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5315 fi
5316
5317 if test "x$ac_cv_func_vfork_works" = xyes; then
5318
5319 cat >>confdefs.h <<\_ACEOF
5320 #define HAVE_WORKING_VFORK 1
5321 _ACEOF
5322
5323 else
5324
5325 cat >>confdefs.h <<\_ACEOF
5326 #define vfork fork
5327 _ACEOF
5328
5329 fi
5330 if test "x$ac_cv_func_fork_works" = xyes; then
5331
5332 cat >>confdefs.h <<\_ACEOF
5333 #define HAVE_WORKING_FORK 1
5334 _ACEOF
5335
5336 fi
5337
5338
5339 for ac_header in stdlib.h
5340 do
5341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5343 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5344 $as_echo_n "checking for $ac_header... " >&6; }
5345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5346 $as_echo_n "(cached) " >&6
5347 fi
5348 ac_res=`eval 'as_val=${'$as_ac_Header'}
5349 $as_echo "$as_val"'`
5350 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5351 $as_echo "$ac_res" >&6; }
5352 else
5353 # Is the header compilable?
5354 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5355 $as_echo_n "checking $ac_header usability... " >&6; }
5356 cat >conftest.$ac_ext <<_ACEOF
5357 /* confdefs.h. */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 $ac_includes_default
5363 #include <$ac_header>
5364 _ACEOF
5365 rm -f conftest.$ac_objext
5366 if { (ac_try="$ac_compile"
5367 case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370 esac
5371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5372 $as_echo "$ac_try_echo") >&5
5373 (eval "$ac_compile") 2>conftest.er1
5374 ac_status=$?
5375 grep -v '^ *+' conftest.er1 >conftest.err
5376 rm -f conftest.er1
5377 cat conftest.err >&5
5378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } && {
5380 test -z "$ac_c_werror_flag" ||
5381 test ! -s conftest.err
5382 } && test -s conftest.$ac_objext; then
5383 ac_header_compiler=yes
5384 else
5385 $as_echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5387
5388 ac_header_compiler=no
5389 fi
5390
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5393 $as_echo "$ac_header_compiler" >&6; }
5394
5395 # Is the header present?
5396 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5397 $as_echo_n "checking $ac_header presence... " >&6; }
5398 cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h. */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5404 #include <$ac_header>
5405 _ACEOF
5406 if { (ac_try="$ac_cpp conftest.$ac_ext"
5407 case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410 esac
5411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5412 $as_echo "$ac_try_echo") >&5
5413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5414 ac_status=$?
5415 grep -v '^ *+' conftest.er1 >conftest.err
5416 rm -f conftest.er1
5417 cat conftest.err >&5
5418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } >/dev/null && {
5420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5421 test ! -s conftest.err
5422 }; then
5423 ac_header_preproc=yes
5424 else
5425 $as_echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_header_preproc=no
5429 fi
5430
5431 rm -f conftest.err conftest.$ac_ext
5432 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5433 $as_echo "$ac_header_preproc" >&6; }
5434
5435 # So? What about this header?
5436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5437 yes:no: )
5438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5439 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5441 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5442 ac_header_preproc=yes
5443 ;;
5444 no:yes:* )
5445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5446 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5448 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5450 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5452 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5454 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5456 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5457 ( cat <<\_ASBOX
5458 ## -------------------------------------- ##
5459 ## Report this to [email protected] ##
5460 ## -------------------------------------- ##
5461 _ASBOX
5462 ) | sed "s/^/$as_me: WARNING: /" >&2
5463 ;;
5464 esac
5465 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5466 $as_echo_n "checking for $ac_header... " >&6; }
5467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5468 $as_echo_n "(cached) " >&6
5469 else
5470 eval "$as_ac_Header=\$ac_header_preproc"
5471 fi
5472 ac_res=`eval 'as_val=${'$as_ac_Header'}
5473 $as_echo "$as_val"'`
5474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5475 $as_echo "$ac_res" >&6; }
5476
5477 fi
5478 as_val=`eval 'as_val=${'$as_ac_Header'}
5479 $as_echo "$as_val"'`
5480 if test "x$as_val" = x""yes; then
5481 cat >>confdefs.h <<_ACEOF
5482 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5483 _ACEOF
5484
5485 fi
5486
5487 done
5488
5489 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5490 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5491 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if test "$cross_compiling" = yes; then
5495 ac_cv_func_malloc_0_nonnull=no
5496 else
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5504 # include <stdlib.h>
5505 #else
5506 char *malloc ();
5507 #endif
5508
5509 int
5510 main ()
5511 {
5512 return ! malloc (0);
5513 ;
5514 return 0;
5515 }
5516 _ACEOF
5517 rm -f conftest$ac_exeext
5518 if { (ac_try="$ac_link"
5519 case "(($ac_try" in
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5522 esac
5523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5524 $as_echo "$ac_try_echo") >&5
5525 (eval "$ac_link") 2>&5
5526 ac_status=$?
5527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5529 { (case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5532 esac
5533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5534 $as_echo "$ac_try_echo") >&5
5535 (eval "$ac_try") 2>&5
5536 ac_status=$?
5537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5539 ac_cv_func_malloc_0_nonnull=yes
5540 else
5541 $as_echo "$as_me: program exited with status $ac_status" >&5
5542 $as_echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5544
5545 ( exit $ac_status )
5546 ac_cv_func_malloc_0_nonnull=no
5547 fi
5548 rm -rf conftest.dSYM
5549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5550 fi
5551
5552
5553 fi
5554 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5555 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5556 if test $ac_cv_func_malloc_0_nonnull = yes; then
5557
5558 cat >>confdefs.h <<\_ACEOF
5559 #define HAVE_MALLOC 1
5560 _ACEOF
5561
5562 else
5563 cat >>confdefs.h <<\_ACEOF
5564 #define HAVE_MALLOC 0
5565 _ACEOF
5566
5567 case " $LIBOBJS " in
5568 *" malloc.$ac_objext "* ) ;;
5569 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5570 ;;
5571 esac
5572
5573
5574 cat >>confdefs.h <<\_ACEOF
5575 #define malloc rpl_malloc
5576 _ACEOF
5577
5578 fi
5579
5580
5581
5582
5583 for ac_header in stdlib.h
5584 do
5585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5587 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5588 $as_echo_n "checking for $ac_header... " >&6; }
5589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5590 $as_echo_n "(cached) " >&6
5591 fi
5592 ac_res=`eval 'as_val=${'$as_ac_Header'}
5593 $as_echo "$as_val"'`
5594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5595 $as_echo "$ac_res" >&6; }
5596 else
5597 # Is the header compilable?
5598 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5599 $as_echo_n "checking $ac_header usability... " >&6; }
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h. */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 $ac_includes_default
5607 #include <$ac_header>
5608 _ACEOF
5609 rm -f conftest.$ac_objext
5610 if { (ac_try="$ac_compile"
5611 case "(($ac_try" in
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5614 esac
5615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5616 $as_echo "$ac_try_echo") >&5
5617 (eval "$ac_compile") 2>conftest.er1
5618 ac_status=$?
5619 grep -v '^ *+' conftest.er1 >conftest.err
5620 rm -f conftest.er1
5621 cat conftest.err >&5
5622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && {
5624 test -z "$ac_c_werror_flag" ||
5625 test ! -s conftest.err
5626 } && test -s conftest.$ac_objext; then
5627 ac_header_compiler=yes
5628 else
5629 $as_echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5631
5632 ac_header_compiler=no
5633 fi
5634
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5637 $as_echo "$ac_header_compiler" >&6; }
5638
5639 # Is the header present?
5640 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5641 $as_echo_n "checking $ac_header presence... " >&6; }
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 #include <$ac_header>
5649 _ACEOF
5650 if { (ac_try="$ac_cpp conftest.$ac_ext"
5651 case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654 esac
5655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5656 $as_echo "$ac_try_echo") >&5
5657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } >/dev/null && {
5664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 }; then
5667 ac_header_preproc=yes
5668 else
5669 $as_echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5671
5672 ac_header_preproc=no
5673 fi
5674
5675 rm -f conftest.err conftest.$ac_ext
5676 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5677 $as_echo "$ac_header_preproc" >&6; }
5678
5679 # So? What about this header?
5680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5681 yes:no: )
5682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5683 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5685 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5686 ac_header_preproc=yes
5687 ;;
5688 no:yes:* )
5689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5690 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5692 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5694 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5696 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5698 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5700 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5701 ( cat <<\_ASBOX
5702 ## -------------------------------------- ##
5703 ## Report this to [email protected] ##
5704 ## -------------------------------------- ##
5705 _ASBOX
5706 ) | sed "s/^/$as_me: WARNING: /" >&2
5707 ;;
5708 esac
5709 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5710 $as_echo_n "checking for $ac_header... " >&6; }
5711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5712 $as_echo_n "(cached) " >&6
5713 else
5714 eval "$as_ac_Header=\$ac_header_preproc"
5715 fi
5716 ac_res=`eval 'as_val=${'$as_ac_Header'}
5717 $as_echo "$as_val"'`
5718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5719 $as_echo "$ac_res" >&6; }
5720
5721 fi
5722 as_val=`eval 'as_val=${'$as_ac_Header'}
5723 $as_echo "$as_val"'`
5724 if test "x$as_val" = x""yes; then
5725 cat >>confdefs.h <<_ACEOF
5726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5727 _ACEOF
5728
5729 fi
5730
5731 done
5732
5733 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
5734 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
5735 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
5736 $as_echo_n "(cached) " >&6
5737 else
5738 if test "$cross_compiling" = yes; then
5739 ac_cv_func_realloc_0_nonnull=no
5740 else
5741 cat >conftest.$ac_ext <<_ACEOF
5742 /* confdefs.h. */
5743 _ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5747 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5748 # include <stdlib.h>
5749 #else
5750 char *realloc ();
5751 #endif
5752
5753 int
5754 main ()
5755 {
5756 return ! realloc (0, 0);
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 rm -f conftest$ac_exeext
5762 if { (ac_try="$ac_link"
5763 case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766 esac
5767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5768 $as_echo "$ac_try_echo") >&5
5769 (eval "$ac_link") 2>&5
5770 ac_status=$?
5771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5773 { (case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776 esac
5777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5778 $as_echo "$ac_try_echo") >&5
5779 (eval "$ac_try") 2>&5
5780 ac_status=$?
5781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5783 ac_cv_func_realloc_0_nonnull=yes
5784 else
5785 $as_echo "$as_me: program exited with status $ac_status" >&5
5786 $as_echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789 ( exit $ac_status )
5790 ac_cv_func_realloc_0_nonnull=no
5791 fi
5792 rm -rf conftest.dSYM
5793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5794 fi
5795
5796
5797 fi
5798 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
5799 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
5800 if test $ac_cv_func_realloc_0_nonnull = yes; then
5801
5802 cat >>confdefs.h <<\_ACEOF
5803 #define HAVE_REALLOC 1
5804 _ACEOF
5805
5806 else
5807 cat >>confdefs.h <<\_ACEOF
5808 #define HAVE_REALLOC 0
5809 _ACEOF
5810
5811 case " $LIBOBJS " in
5812 *" realloc.$ac_objext "* ) ;;
5813 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5814 ;;
5815 esac
5816
5817
5818 cat >>confdefs.h <<\_ACEOF
5819 #define realloc rpl_realloc
5820 _ACEOF
5821
5822 fi
5823
5824
5825
5826 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5827 $as_echo_n "checking return type of signal handlers... " >&6; }
5828 if test "${ac_cv_type_signal+set}" = set; then
5829 $as_echo_n "(cached) " >&6
5830 else
5831 cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h. */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5837 #include <sys/types.h>
5838 #include <signal.h>
5839
5840 int
5841 main ()
5842 {
5843 return *(signal (0, 0)) (0) == 1;
5844 ;
5845 return 0;
5846 }
5847 _ACEOF
5848 rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5850 case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853 esac
5854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5855 $as_echo "$ac_try_echo") >&5
5856 (eval "$ac_compile") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && {
5863 test -z "$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5865 } && test -s conftest.$ac_objext; then
5866 ac_cv_type_signal=int
5867 else
5868 $as_echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5870
5871 ac_cv_type_signal=void
5872 fi
5873
5874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 fi
5876 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5877 $as_echo "$ac_cv_type_signal" >&6; }
5878
5879 cat >>confdefs.h <<_ACEOF
5880 #define RETSIGTYPE $ac_cv_type_signal
5881 _ACEOF
5882
5883
5884
5885
5886
5887
5888
5889
5890 for ac_func in dup2 setenv strchr strdup strrchr strstr
5891 do
5892 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5893 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5894 $as_echo_n "checking for $ac_func... " >&6; }
5895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5896 $as_echo_n "(cached) " >&6
5897 else
5898 cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h. */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5906 #define $ac_func innocuous_$ac_func
5907
5908 /* System header to define __stub macros and hopefully few prototypes,
5909 which can conflict with char $ac_func (); below.
5910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911 <limits.h> exists even on freestanding compilers. */
5912
5913 #ifdef __STDC__
5914 # include <limits.h>
5915 #else
5916 # include <assert.h>
5917 #endif
5918
5919 #undef $ac_func
5920
5921 /* Override any GCC internal prototype to avoid an error.
5922 Use char because int might match the return type of a GCC
5923 builtin and then its argument prototype would still apply. */
5924 #ifdef __cplusplus
5925 extern "C"
5926 #endif
5927 char $ac_func ();
5928 /* The GNU C library defines this for functions which it implements
5929 to always fail with ENOSYS. Some functions are actually named
5930 something starting with __ and the normal name is an alias. */
5931 #if defined __stub_$ac_func || defined __stub___$ac_func
5932 choke me
5933 #endif
5934
5935 int
5936 main ()
5937 {
5938 return $ac_func ();
5939 ;
5940 return 0;
5941 }
5942 _ACEOF
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (ac_try="$ac_link"
5945 case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948 esac
5949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5950 $as_echo "$ac_try_echo") >&5
5951 (eval "$ac_link") 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && {
5958 test -z "$ac_c_werror_flag" ||
5959 test ! -s conftest.err
5960 } && test -s conftest$ac_exeext && {
5961 test "$cross_compiling" = yes ||
5962 $as_test_x conftest$ac_exeext
5963 }; then
5964 eval "$as_ac_var=yes"
5965 else
5966 $as_echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969 eval "$as_ac_var=no"
5970 fi
5971
5972 rm -rf conftest.dSYM
5973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5974 conftest$ac_exeext conftest.$ac_ext
5975 fi
5976 ac_res=`eval 'as_val=${'$as_ac_var'}
5977 $as_echo "$as_val"'`
5978 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5979 $as_echo "$ac_res" >&6; }
5980 as_val=`eval 'as_val=${'$as_ac_var'}
5981 $as_echo "$as_val"'`
5982 if test "x$as_val" = x""yes; then
5983 cat >>confdefs.h <<_ACEOF
5984 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5985 _ACEOF
5986
5987 fi
5988 done
5989
5990
5991 # Check for readline
5992
5993 for ac_header in readline/readline.h
5994 do
5995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5997 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5998 $as_echo_n "checking for $ac_header... " >&6; }
5999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6000 $as_echo_n "(cached) " >&6
6001 fi
6002 ac_res=`eval 'as_val=${'$as_ac_Header'}
6003 $as_echo "$as_val"'`
6004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6005 $as_echo "$ac_res" >&6; }
6006 else
6007 # Is the header compilable?
6008 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6009 $as_echo_n "checking $ac_header usability... " >&6; }
6010 cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h. */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 $ac_includes_default
6017 #include <$ac_header>
6018 _ACEOF
6019 rm -f conftest.$ac_objext
6020 if { (ac_try="$ac_compile"
6021 case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024 esac
6025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6026 $as_echo "$ac_try_echo") >&5
6027 (eval "$ac_compile") 2>conftest.er1
6028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
6032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest.$ac_objext; then
6037 ac_header_compiler=yes
6038 else
6039 $as_echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6041
6042 ac_header_compiler=no
6043 fi
6044
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6047 $as_echo "$ac_header_compiler" >&6; }
6048
6049 # Is the header present?
6050 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6051 $as_echo_n "checking $ac_header presence... " >&6; }
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 #include <$ac_header>
6059 _ACEOF
6060 if { (ac_try="$ac_cpp conftest.$ac_ext"
6061 case "(($ac_try" in
6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6064 esac
6065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6066 $as_echo "$ac_try_echo") >&5
6067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } >/dev/null && {
6074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6075 test ! -s conftest.err
6076 }; then
6077 ac_header_preproc=yes
6078 else
6079 $as_echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6081
6082 ac_header_preproc=no
6083 fi
6084
6085 rm -f conftest.err conftest.$ac_ext
6086 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6087 $as_echo "$ac_header_preproc" >&6; }
6088
6089 # So? What about this header?
6090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6091 yes:no: )
6092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6093 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6095 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6096 ac_header_preproc=yes
6097 ;;
6098 no:yes:* )
6099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6100 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6102 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6104 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6106 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6108 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6110 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6111 ( cat <<\_ASBOX
6112 ## -------------------------------------- ##
6113 ## Report this to [email protected] ##
6114 ## -------------------------------------- ##
6115 _ASBOX
6116 ) | sed "s/^/$as_me: WARNING: /" >&2
6117 ;;
6118 esac
6119 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6120 $as_echo_n "checking for $ac_header... " >&6; }
6121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6122 $as_echo_n "(cached) " >&6
6123 else
6124 eval "$as_ac_Header=\$ac_header_preproc"
6125 fi
6126 ac_res=`eval 'as_val=${'$as_ac_Header'}
6127 $as_echo "$as_val"'`
6128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6129 $as_echo "$ac_res" >&6; }
6130
6131 fi
6132 as_val=`eval 'as_val=${'$as_ac_Header'}
6133 $as_echo "$as_val"'`
6134 if test "x$as_val" = x""yes; then
6135 cat >>confdefs.h <<_ACEOF
6136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6137 _ACEOF
6138
6139 else
6140 echo "Error: readline headers not found."; exit 1;
6141 fi
6142
6143 done
6144
6145
6146 { $as_echo "$as_me:$LINENO: checking for open in -lreadline" >&5
6147 $as_echo_n "checking for open in -lreadline... " >&6; }
6148 if test "${ac_cv_lib_readline_open+set}" = set; then
6149 $as_echo_n "(cached) " >&6
6150 else
6151 ac_check_lib_save_LIBS=$LIBS
6152 LIBS="-lreadline $LIBS"
6153 cat >conftest.$ac_ext <<_ACEOF
6154 /* confdefs.h. */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159
6160 /* Override any GCC internal prototype to avoid an error.
6161 Use char because int might match the return type of a GCC
6162 builtin and then its argument prototype would still apply. */
6163 #ifdef __cplusplus
6164 extern "C"
6165 #endif
6166 char open ();
6167 int
6168 main ()
6169 {
6170 return open ();
6171 ;
6172 return 0;
6173 }
6174 _ACEOF
6175 rm -f conftest.$ac_objext conftest$ac_exeext
6176 if { (ac_try="$ac_link"
6177 case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180 esac
6181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6182 $as_echo "$ac_try_echo") >&5
6183 (eval "$ac_link") 2>conftest.er1
6184 ac_status=$?
6185 grep -v '^ *+' conftest.er1 >conftest.err
6186 rm -f conftest.er1
6187 cat conftest.err >&5
6188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } && {
6190 test -z "$ac_c_werror_flag" ||
6191 test ! -s conftest.err
6192 } && test -s conftest$ac_exeext && {
6193 test "$cross_compiling" = yes ||
6194 $as_test_x conftest$ac_exeext
6195 }; then
6196 ac_cv_lib_readline_open=yes
6197 else
6198 $as_echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6200
6201 ac_cv_lib_readline_open=no
6202 fi
6203
6204 rm -rf conftest.dSYM
6205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6206 conftest$ac_exeext conftest.$ac_ext
6207 LIBS=$ac_check_lib_save_LIBS
6208 fi
6209 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_open" >&5
6210 $as_echo "$ac_cv_lib_readline_open" >&6; }
6211 if test "x$ac_cv_lib_readline_open" = x""yes; then
6212 cat >>confdefs.h <<_ACEOF
6213 #define HAVE_LIBREADLINE 1
6214 _ACEOF
6215
6216 LIBS="-lreadline $LIBS"
6217
6218 else
6219 echo "Error: libreadline.so not found."; exit 1;
6220 fi
6221
6222
6223 ac_config_files="$ac_config_files Makefile src/Makefile"
6224
6225 cat >confcache <<\_ACEOF
6226 # This file is a shell script that caches the results of configure
6227 # tests run on this system so they can be shared between configure
6228 # scripts and configure runs, see configure's option --config-cache.
6229 # It is not useful on other systems. If it contains results you don't
6230 # want to keep, you may remove or edit it.
6231 #
6232 # config.status only pays attention to the cache file if you give it
6233 # the --recheck option to rerun configure.
6234 #
6235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6237 # following values.
6238
6239 _ACEOF
6240
6241 # The following way of writing the cache mishandles newlines in values,
6242 # but we know of no workaround that is simple, portable, and efficient.
6243 # So, we kill variables containing newlines.
6244 # Ultrix sh set writes to stderr and can't be redirected directly,
6245 # and sets the high bit in the cache file unless we assign to the vars.
6246 (
6247 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6248 eval ac_val=\$$ac_var
6249 case $ac_val in #(
6250 *${as_nl}*)
6251 case $ac_var in #(
6252 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
6253 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6254 esac
6255 case $ac_var in #(
6256 _ | IFS | as_nl) ;; #(
6257 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6258 *) $as_unset $ac_var ;;
6259 esac ;;
6260 esac
6261 done
6262
6263 (set) 2>&1 |
6264 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6265 *${as_nl}ac_space=\ *)
6266 # `set' does not quote correctly, so add quotes (double-quote
6267 # substitution turns \\\\ into \\, and sed turns \\ into \).
6268 sed -n \
6269 "s/'/'\\\\''/g;
6270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6271 ;; #(
6272 *)
6273 # `set' quotes correctly as required by POSIX, so do not add quotes.
6274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6275 ;;
6276 esac |
6277 sort
6278 ) |
6279 sed '
6280 /^ac_cv_env_/b end
6281 t clear
6282 :clear
6283 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6284 t end
6285 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6286 :end' >>confcache
6287 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6288 if test -w "$cache_file"; then
6289 test "x$cache_file" != "x/dev/null" &&
6290 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
6291 $as_echo "$as_me: updating cache $cache_file" >&6;}
6292 cat confcache >$cache_file
6293 else
6294 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6295 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6296 fi
6297 fi
6298 rm -f confcache
6299
6300 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6301 # Let make expand exec_prefix.
6302 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6303
6304 DEFS=-DHAVE_CONFIG_H
6305
6306 ac_libobjs=
6307 ac_ltlibobjs=
6308 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6309 # 1. Remove the extension, and $U if already installed.
6310 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6311 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6312 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6313 # will be set to the directory where LIBOBJS objects are built.
6314 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6315 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6316 done
6317 LIBOBJS=$ac_libobjs
6318
6319 LTLIBOBJS=$ac_ltlibobjs
6320
6321
6322 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6323 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6324 Usually this means the macro was only invoked conditionally." >&5
6325 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
6326 Usually this means the macro was only invoked conditionally." >&2;}
6327 { (exit 1); exit 1; }; }
6328 fi
6329 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6330 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6331 Usually this means the macro was only invoked conditionally." >&5
6332 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6333 Usually this means the macro was only invoked conditionally." >&2;}
6334 { (exit 1); exit 1; }; }
6335 fi
6336
6337 : ${CONFIG_STATUS=./config.status}
6338 ac_write_fail=0
6339 ac_clean_files_save=$ac_clean_files
6340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6341 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6342 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6343 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6344 #! $SHELL
6345 # Generated by $as_me.
6346 # Run this file to recreate the current configuration.
6347 # Compiler output produced by configure, useful for debugging
6348 # configure, is in config.log if it exists.
6349
6350 debug=false
6351 ac_cs_recheck=false
6352 ac_cs_silent=false
6353 SHELL=\${CONFIG_SHELL-$SHELL}
6354 _ACEOF
6355
6356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6357 ## --------------------- ##
6358 ## M4sh Initialization. ##
6359 ## --------------------- ##
6360
6361 # Be more Bourne compatible
6362 DUALCASE=1; export DUALCASE # for MKS sh
6363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6364 emulate sh
6365 NULLCMD=:
6366 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6367 # is contrary to our usage. Disable this feature.
6368 alias -g '${1+"$@"}'='"$@"'
6369 setopt NO_GLOB_SUBST
6370 else
6371 case `(set -o) 2>/dev/null` in
6372 *posix*) set -o posix ;;
6373 esac
6374
6375 fi
6376
6377
6378
6379
6380 # PATH needs CR
6381 # Avoid depending upon Character Ranges.
6382 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6383 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6384 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6385 as_cr_digits='0123456789'
6386 as_cr_alnum=$as_cr_Letters$as_cr_digits
6387
6388 as_nl='
6389 '
6390 export as_nl
6391 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6392 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6393 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6394 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6395 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6396 as_echo='printf %s\n'
6397 as_echo_n='printf %s'
6398 else
6399 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6400 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6401 as_echo_n='/usr/ucb/echo -n'
6402 else
6403 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6404 as_echo_n_body='eval
6405 arg=$1;
6406 case $arg in
6407 *"$as_nl"*)
6408 expr "X$arg" : "X\\(.*\\)$as_nl";
6409 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6410 esac;
6411 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6412 '
6413 export as_echo_n_body
6414 as_echo_n='sh -c $as_echo_n_body as_echo'
6415 fi
6416 export as_echo_body
6417 as_echo='sh -c $as_echo_body as_echo'
6418 fi
6419
6420 # The user is always right.
6421 if test "${PATH_SEPARATOR+set}" != set; then
6422 PATH_SEPARATOR=:
6423 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6424 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6425 PATH_SEPARATOR=';'
6426 }
6427 fi
6428
6429 # Support unset when possible.
6430 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6431 as_unset=unset
6432 else
6433 as_unset=false
6434 fi
6435
6436
6437 # IFS
6438 # We need space, tab and new line, in precisely that order. Quoting is
6439 # there to prevent editors from complaining about space-tab.
6440 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6441 # splitting by setting IFS to empty value.)
6442 IFS=" "" $as_nl"
6443
6444 # Find who we are. Look in the path if we contain no directory separator.
6445 case $0 in
6446 *[\\/]* ) as_myself=$0 ;;
6447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6449 do
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6453 done
6454 IFS=$as_save_IFS
6455
6456 ;;
6457 esac
6458 # We did not find ourselves, most probably we were run as `sh COMMAND'
6459 # in which case we are not to be found in the path.
6460 if test "x$as_myself" = x; then
6461 as_myself=$0
6462 fi
6463 if test ! -f "$as_myself"; then
6464 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6465 { (exit 1); exit 1; }
6466 fi
6467
6468 # Work around bugs in pre-3.0 UWIN ksh.
6469 for as_var in ENV MAIL MAILPATH
6470 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6471 done
6472 PS1='$ '
6473 PS2='> '
6474 PS4='+ '
6475
6476 # NLS nuisances.
6477 LC_ALL=C
6478 export LC_ALL
6479 LANGUAGE=C
6480 export LANGUAGE
6481
6482 # Required to use basename.
6483 if expr a : '\(a\)' >/dev/null 2>&1 &&
6484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6485 as_expr=expr
6486 else
6487 as_expr=false
6488 fi
6489
6490 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6491 as_basename=basename
6492 else
6493 as_basename=false
6494 fi
6495
6496
6497 # Name of the executable.
6498 as_me=`$as_basename -- "$0" ||
6499 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6500 X"$0" : 'X\(//\)$' \| \
6501 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6502 $as_echo X/"$0" |
6503 sed '/^.*\/\([^/][^/]*\)\/*$/{
6504 s//\1/
6505 q
6506 }
6507 /^X\/\(\/\/\)$/{
6508 s//\1/
6509 q
6510 }
6511 /^X\/\(\/\).*/{
6512 s//\1/
6513 q
6514 }
6515 s/.*/./; q'`
6516
6517 # CDPATH.
6518 $as_unset CDPATH
6519
6520
6521
6522 as_lineno_1=$LINENO
6523 as_lineno_2=$LINENO
6524 test "x$as_lineno_1" != "x$as_lineno_2" &&
6525 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6526
6527 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6528 # uniformly replaced by the line number. The first 'sed' inserts a
6529 # line-number line after each line using $LINENO; the second 'sed'
6530 # does the real work. The second script uses 'N' to pair each
6531 # line-number line with the line containing $LINENO, and appends
6532 # trailing '-' during substitution so that $LINENO is not a special
6533 # case at line end.
6534 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6535 # scripts with optimization help from Paolo Bonzini. Blame Lee
6536 # E. McMahon (1931-1989) for sed's syntax. :-)
6537 sed -n '
6538 p
6539 /[$]LINENO/=
6540 ' <$as_myself |
6541 sed '
6542 s/[$]LINENO.*/&-/
6543 t lineno
6544 b
6545 :lineno
6546 N
6547 :loop
6548 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6549 t loop
6550 s/-\n.*//
6551 ' >$as_me.lineno &&
6552 chmod +x "$as_me.lineno" ||
6553 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6554 { (exit 1); exit 1; }; }
6555
6556 # Don't try to exec as it changes $[0], causing all sort of problems
6557 # (the dirname of $[0] is not the place where we might find the
6558 # original and so on. Autoconf is especially sensitive to this).
6559 . "./$as_me.lineno"
6560 # Exit status is that of the last command.
6561 exit
6562 }
6563
6564
6565 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6566 as_dirname=dirname
6567 else
6568 as_dirname=false
6569 fi
6570
6571 ECHO_C= ECHO_N= ECHO_T=
6572 case `echo -n x` in
6573 -n*)
6574 case `echo 'x\c'` in
6575 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6576 *) ECHO_C='\c';;
6577 esac;;
6578 *)
6579 ECHO_N='-n';;
6580 esac
6581 if expr a : '\(a\)' >/dev/null 2>&1 &&
6582 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6583 as_expr=expr
6584 else
6585 as_expr=false
6586 fi
6587
6588 rm -f conf$$ conf$$.exe conf$$.file
6589 if test -d conf$$.dir; then
6590 rm -f conf$$.dir/conf$$.file
6591 else
6592 rm -f conf$$.dir
6593 mkdir conf$$.dir 2>/dev/null
6594 fi
6595 if (echo >conf$$.file) 2>/dev/null; then
6596 if ln -s conf$$.file conf$$ 2>/dev/null; then
6597 as_ln_s='ln -s'
6598 # ... but there are two gotchas:
6599 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6600 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6601 # In both cases, we have to default to `cp -p'.
6602 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6603 as_ln_s='cp -p'
6604 elif ln conf$$.file conf$$ 2>/dev/null; then
6605 as_ln_s=ln
6606 else
6607 as_ln_s='cp -p'
6608 fi
6609 else
6610 as_ln_s='cp -p'
6611 fi
6612 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6613 rmdir conf$$.dir 2>/dev/null
6614
6615 if mkdir -p . 2>/dev/null; then
6616 as_mkdir_p=:
6617 else
6618 test -d ./-p && rmdir ./-p
6619 as_mkdir_p=false
6620 fi
6621
6622 if test -x / >/dev/null 2>&1; then
6623 as_test_x='test -x'
6624 else
6625 if ls -dL / >/dev/null 2>&1; then
6626 as_ls_L_option=L
6627 else
6628 as_ls_L_option=
6629 fi
6630 as_test_x='
6631 eval sh -c '\''
6632 if test -d "$1"; then
6633 test -d "$1/.";
6634 else
6635 case $1 in
6636 -*)set "./$1";;
6637 esac;
6638 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6639 ???[sx]*):;;*)false;;esac;fi
6640 '\'' sh
6641 '
6642 fi
6643 as_executable_p=$as_test_x
6644
6645 # Sed expression to map a string onto a valid CPP name.
6646 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6647
6648 # Sed expression to map a string onto a valid variable name.
6649 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6650
6651
6652 exec 6>&1
6653
6654 # Save the log message, to keep $[0] and so on meaningful, and to
6655 # report actual input values of CONFIG_FILES etc. instead of their
6656 # values after options handling.
6657 ac_log="
6658 This file was extended by nmzmail $as_me 1.1, which was
6659 generated by GNU Autoconf 2.63. Invocation command line was
6660
6661 CONFIG_FILES = $CONFIG_FILES
6662 CONFIG_HEADERS = $CONFIG_HEADERS
6663 CONFIG_LINKS = $CONFIG_LINKS
6664 CONFIG_COMMANDS = $CONFIG_COMMANDS
6665 $ $0 $@
6666
6667 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6668 "
6669
6670 _ACEOF
6671
6672 case $ac_config_files in *"
6673 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6674 esac
6675
6676 case $ac_config_headers in *"
6677 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6678 esac
6679
6680
6681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6682 # Files that config.status was made for.
6683 config_files="$ac_config_files"
6684 config_headers="$ac_config_headers"
6685 config_commands="$ac_config_commands"
6686
6687 _ACEOF
6688
6689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6690 ac_cs_usage="\
6691 \`$as_me' instantiates files from templates according to the
6692 current configuration.
6693
6694 Usage: $0 [OPTION]... [FILE]...
6695
6696 -h, --help print this help, then exit
6697 -V, --version print version number and configuration settings, then exit
6698 -q, --quiet, --silent
6699 do not print progress messages
6700 -d, --debug don't remove temporary files
6701 --recheck update $as_me by reconfiguring in the same conditions
6702 --file=FILE[:TEMPLATE]
6703 instantiate the configuration file FILE
6704 --header=FILE[:TEMPLATE]
6705 instantiate the configuration header FILE
6706
6707 Configuration files:
6708 $config_files
6709
6710 Configuration headers:
6711 $config_headers
6712
6713 Configuration commands:
6714 $config_commands
6715
6716 Report bugs to <[email protected]>."
6717
6718 _ACEOF
6719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6720 ac_cs_version="\\
6721 nmzmail config.status 1.1
6722 configured by $0, generated by GNU Autoconf 2.63,
6723 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6724
6725 Copyright (C) 2008 Free Software Foundation, Inc.
6726 This config.status script is free software; the Free Software Foundation
6727 gives unlimited permission to copy, distribute and modify it."
6728
6729 ac_pwd='$ac_pwd'
6730 srcdir='$srcdir'
6731 INSTALL='$INSTALL'
6732 MKDIR_P='$MKDIR_P'
6733 AWK='$AWK'
6734 test -n "\$AWK" || AWK=awk
6735 _ACEOF
6736
6737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6738 # The default lists apply if the user does not specify any file.
6739 ac_need_defaults=:
6740 while test $# != 0
6741 do
6742 case $1 in
6743 --*=*)
6744 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6745 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6746 ac_shift=:
6747 ;;
6748 *)
6749 ac_option=$1
6750 ac_optarg=$2
6751 ac_shift=shift
6752 ;;
6753 esac
6754
6755 case $ac_option in
6756 # Handling of the options.
6757 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6758 ac_cs_recheck=: ;;
6759 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6760 $as_echo "$ac_cs_version"; exit ;;
6761 --debug | --debu | --deb | --de | --d | -d )
6762 debug=: ;;
6763 --file | --fil | --fi | --f )
6764 $ac_shift
6765 case $ac_optarg in
6766 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6767 esac
6768 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
6769 ac_need_defaults=false;;
6770 --header | --heade | --head | --hea )
6771 $ac_shift
6772 case $ac_optarg in
6773 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6774 esac
6775 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
6776 ac_need_defaults=false;;
6777 --he | --h)
6778 # Conflict between --help and --header
6779 { $as_echo "$as_me: error: ambiguous option: $1
6780 Try \`$0 --help' for more information." >&2
6781 { (exit 1); exit 1; }; };;
6782 --help | --hel | -h )
6783 $as_echo "$ac_cs_usage"; exit ;;
6784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6785 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6786 ac_cs_silent=: ;;
6787
6788 # This is an error.
6789 -*) { $as_echo "$as_me: error: unrecognized option: $1
6790 Try \`$0 --help' for more information." >&2
6791 { (exit 1); exit 1; }; } ;;
6792
6793 *) ac_config_targets="$ac_config_targets $1"
6794 ac_need_defaults=false ;;
6795
6796 esac
6797 shift
6798 done
6799
6800 ac_configure_extra_args=
6801
6802 if $ac_cs_silent; then
6803 exec 6>/dev/null
6804 ac_configure_extra_args="$ac_configure_extra_args --silent"
6805 fi
6806
6807 _ACEOF
6808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6809 if \$ac_cs_recheck; then
6810 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6811 shift
6812 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6813 CONFIG_SHELL='$SHELL'
6814 export CONFIG_SHELL
6815 exec "\$@"
6816 fi
6817
6818 _ACEOF
6819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6820 exec 5>>config.log
6821 {
6822 echo
6823 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6824 ## Running $as_me. ##
6825 _ASBOX
6826 $as_echo "$ac_log"
6827 } >&5
6828
6829 _ACEOF
6830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6831 #
6832 # INIT-COMMANDS
6833 #
6834 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6835
6836 _ACEOF
6837
6838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6839
6840 # Handling of arguments.
6841 for ac_config_target in $ac_config_targets
6842 do
6843 case $ac_config_target in
6844 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6845 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6846 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6847 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6848
6849 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6850 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6851 { (exit 1); exit 1; }; };;
6852 esac
6853 done
6854
6855
6856 # If the user did not use the arguments to specify the items to instantiate,
6857 # then the envvar interface is used. Set only those that are not.
6858 # We use the long form for the default assignment because of an extremely
6859 # bizarre bug on SunOS 4.1.3.
6860 if $ac_need_defaults; then
6861 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6862 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6863 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6864 fi
6865
6866 # Have a temporary directory for convenience. Make it in the build tree
6867 # simply because there is no reason against having it here, and in addition,
6868 # creating and moving files from /tmp can sometimes cause problems.
6869 # Hook for its removal unless debugging.
6870 # Note that there is a small window in which the directory will not be cleaned:
6871 # after its creation but before its name has been assigned to `$tmp'.
6872 $debug ||
6873 {
6874 tmp=
6875 trap 'exit_status=$?
6876 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6877 ' 0
6878 trap '{ (exit 1); exit 1; }' 1 2 13 15
6879 }
6880 # Create a (secure) tmp directory for tmp files.
6881
6882 {
6883 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6884 test -n "$tmp" && test -d "$tmp"
6885 } ||
6886 {
6887 tmp=./conf$$-$RANDOM
6888 (umask 077 && mkdir "$tmp")
6889 } ||
6890 {
6891 $as_echo "$as_me: cannot create a temporary directory in ." >&2
6892 { (exit 1); exit 1; }
6893 }
6894
6895 # Set up the scripts for CONFIG_FILES section.
6896 # No need to generate them if there are no CONFIG_FILES.
6897 # This happens for instance with `./config.status config.h'.
6898 if test -n "$CONFIG_FILES"; then
6899
6900
6901 ac_cr=' '
6902 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6903 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6904 ac_cs_awk_cr='\\r'
6905 else
6906 ac_cs_awk_cr=$ac_cr
6907 fi
6908
6909 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6910 _ACEOF
6911
6912
6913 {
6914 echo "cat >conf$$subs.awk <<_ACEOF" &&
6915 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6916 echo "_ACEOF"
6917 } >conf$$subs.sh ||
6918 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6919 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6920 { (exit 1); exit 1; }; }
6921 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6922 ac_delim='%!_!# '
6923 for ac_last_try in false false false false false :; do
6924 . ./conf$$subs.sh ||
6925 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6926 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6927 { (exit 1); exit 1; }; }
6928
6929 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6930 if test $ac_delim_n = $ac_delim_num; then
6931 break
6932 elif $ac_last_try; then
6933 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6934 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6935 { (exit 1); exit 1; }; }
6936 else
6937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6938 fi
6939 done
6940 rm -f conf$$subs.sh
6941
6942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6943 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6944 _ACEOF
6945 sed -n '
6946 h
6947 s/^/S["/; s/!.*/"]=/
6948 p
6949 g
6950 s/^[^!]*!//
6951 :repl
6952 t repl
6953 s/'"$ac_delim"'$//
6954 t delim
6955 :nl
6956 h
6957 s/\(.\{148\}\).*/\1/
6958 t more1
6959 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6960 p
6961 n
6962 b repl
6963 :more1
6964 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6965 p
6966 g
6967 s/.\{148\}//
6968 t nl
6969 :delim
6970 h
6971 s/\(.\{148\}\).*/\1/
6972 t more2
6973 s/["\\]/\\&/g; s/^/"/; s/$/"/
6974 p
6975 b
6976 :more2
6977 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6978 p
6979 g
6980 s/.\{148\}//
6981 t delim
6982 ' <conf$$subs.awk | sed '
6983 /^[^""]/{
6984 N
6985 s/\n//
6986 }
6987 ' >>$CONFIG_STATUS || ac_write_fail=1
6988 rm -f conf$$subs.awk
6989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6990 _ACAWK
6991 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6992 for (key in S) S_is_set[key] = 1
6993 FS = ""
6994
6995 }
6996 {
6997 line = $ 0
6998 nfields = split(line, field, "@")
6999 substed = 0
7000 len = length(field[1])
7001 for (i = 2; i < nfields; i++) {
7002 key = field[i]
7003 keylen = length(key)
7004 if (S_is_set[key]) {
7005 value = S[key]
7006 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7007 len += length(value) + length(field[++i])
7008 substed = 1
7009 } else
7010 len += 1 + keylen
7011 }
7012
7013 print line
7014 }
7015
7016 _ACAWK
7017 _ACEOF
7018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7019 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7020 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7021 else
7022 cat
7023 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7024 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
7025 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
7026 { (exit 1); exit 1; }; }
7027 _ACEOF
7028
7029 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7030 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7031 # trailing colons and then remove the whole line if VPATH becomes empty
7032 # (actually we leave an empty line to preserve line numbers).
7033 if test "x$srcdir" = x.; then
7034 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7035 s/:*\$(srcdir):*/:/
7036 s/:*\${srcdir}:*/:/
7037 s/:*@srcdir@:*/:/
7038 s/^\([^=]*=[ ]*\):*/\1/
7039 s/:*$//
7040 s/^[^=]*=[ ]*$//
7041 }'
7042 fi
7043
7044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7045 fi # test -n "$CONFIG_FILES"
7046
7047 # Set up the scripts for CONFIG_HEADERS section.
7048 # No need to generate them if there are no CONFIG_HEADERS.
7049 # This happens for instance with `./config.status Makefile'.
7050 if test -n "$CONFIG_HEADERS"; then
7051 cat >"$tmp/defines.awk" <<\_ACAWK ||
7052 BEGIN {
7053 _ACEOF
7054
7055 # Transform confdefs.h into an awk script `defines.awk', embedded as
7056 # here-document in config.status, that substitutes the proper values into
7057 # config.h.in to produce config.h.
7058
7059 # Create a delimiter string that does not exist in confdefs.h, to ease
7060 # handling of long lines.
7061 ac_delim='%!_!# '
7062 for ac_last_try in false false :; do
7063 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7064 if test -z "$ac_t"; then
7065 break
7066 elif $ac_last_try; then
7067 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
7068 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
7069 { (exit 1); exit 1; }; }
7070 else
7071 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7072 fi
7073 done
7074
7075 # For the awk script, D is an array of macro values keyed by name,
7076 # likewise P contains macro parameters if any. Preserve backslash
7077 # newline sequences.
7078
7079 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7080 sed -n '
7081 s/.\{148\}/&'"$ac_delim"'/g
7082 t rset
7083 :rset
7084 s/^[ ]*#[ ]*define[ ][ ]*/ /
7085 t def
7086 d
7087 :def
7088 s/\\$//
7089 t bsnl
7090 s/["\\]/\\&/g
7091 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7092 D["\1"]=" \3"/p
7093 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7094 d
7095 :bsnl
7096 s/["\\]/\\&/g
7097 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7098 D["\1"]=" \3\\\\\\n"\\/p
7099 t cont
7100 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7101 t cont
7102 d
7103 :cont
7104 n
7105 s/.\{148\}/&'"$ac_delim"'/g
7106 t clear
7107 :clear
7108 s/\\$//
7109 t bsnlc
7110 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7111 d
7112 :bsnlc
7113 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7114 b cont
7115 ' <confdefs.h | sed '
7116 s/'"$ac_delim"'/"\\\
7117 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7118
7119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7120 for (key in D) D_is_set[key] = 1
7121 FS = ""
7122 }
7123 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7124 line = \$ 0
7125 split(line, arg, " ")
7126 if (arg[1] == "#") {
7127 defundef = arg[2]
7128 mac1 = arg[3]
7129 } else {
7130 defundef = substr(arg[1], 2)
7131 mac1 = arg[2]
7132 }
7133 split(mac1, mac2, "(") #)
7134 macro = mac2[1]
7135 prefix = substr(line, 1, index(line, defundef) - 1)
7136 if (D_is_set[macro]) {
7137 # Preserve the white space surrounding the "#".
7138 print prefix "define", macro P[macro] D[macro]
7139 next
7140 } else {
7141 # Replace #undef with comments. This is necessary, for example,
7142 # in the case of _POSIX_SOURCE, which is predefined and required
7143 # on some systems where configure will not decide to define it.
7144 if (defundef == "undef") {
7145 print "/*", prefix defundef, macro, "*/"
7146 next
7147 }
7148 }
7149 }
7150 { print }
7151 _ACAWK
7152 _ACEOF
7153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7154 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
7155 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
7156 { (exit 1); exit 1; }; }
7157 fi # test -n "$CONFIG_HEADERS"
7158
7159
7160 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7161 shift
7162 for ac_tag
7163 do
7164 case $ac_tag in
7165 :[FHLC]) ac_mode=$ac_tag; continue;;
7166 esac
7167 case $ac_mode$ac_tag in
7168 :[FHL]*:*);;
7169 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
7170 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7171 { (exit 1); exit 1; }; };;
7172 :[FH]-) ac_tag=-:-;;
7173 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7174 esac
7175 ac_save_IFS=$IFS
7176 IFS=:
7177 set x $ac_tag
7178 IFS=$ac_save_IFS
7179 shift
7180 ac_file=$1
7181 shift
7182
7183 case $ac_mode in
7184 :L) ac_source=$1;;
7185 :[FH])
7186 ac_file_inputs=
7187 for ac_f
7188 do
7189 case $ac_f in
7190 -) ac_f="$tmp/stdin";;
7191 *) # Look for the file first in the build tree, then in the source tree
7192 # (if the path is not absolute). The absolute path cannot be DOS-style,
7193 # because $ac_f cannot contain `:'.
7194 test -f "$ac_f" ||
7195 case $ac_f in
7196 [\\/$]*) false;;
7197 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7198 esac ||
7199 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7200 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7201 { (exit 1); exit 1; }; };;
7202 esac
7203 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7204 ac_file_inputs="$ac_file_inputs '$ac_f'"
7205 done
7206
7207 # Let's still pretend it is `configure' which instantiates (i.e., don't
7208 # use $as_me), people would be surprised to read:
7209 # /* config.h. Generated by config.status. */
7210 configure_input='Generated from '`
7211 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7212 `' by configure.'
7213 if test x"$ac_file" != x-; then
7214 configure_input="$ac_file. $configure_input"
7215 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
7216 $as_echo "$as_me: creating $ac_file" >&6;}
7217 fi
7218 # Neutralize special characters interpreted by sed in replacement strings.
7219 case $configure_input in #(
7220 *\&* | *\|* | *\\* )
7221 ac_sed_conf_input=`$as_echo "$configure_input" |
7222 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7223 *) ac_sed_conf_input=$configure_input;;
7224 esac
7225
7226 case $ac_tag in
7227 *:-:* | *:-) cat >"$tmp/stdin" \
7228 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7229 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7230 { (exit 1); exit 1; }; } ;;
7231 esac
7232 ;;
7233 esac
7234
7235 ac_dir=`$as_dirname -- "$ac_file" ||
7236 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7237 X"$ac_file" : 'X\(//\)[^/]' \| \
7238 X"$ac_file" : 'X\(//\)$' \| \
7239 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7240 $as_echo X"$ac_file" |
7241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7242 s//\1/
7243 q
7244 }
7245 /^X\(\/\/\)[^/].*/{
7246 s//\1/
7247 q
7248 }
7249 /^X\(\/\/\)$/{
7250 s//\1/
7251 q
7252 }
7253 /^X\(\/\).*/{
7254 s//\1/
7255 q
7256 }
7257 s/.*/./; q'`
7258 { as_dir="$ac_dir"
7259 case $as_dir in #(
7260 -*) as_dir=./$as_dir;;
7261 esac
7262 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7263 as_dirs=
7264 while :; do
7265 case $as_dir in #(
7266 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7267 *) as_qdir=$as_dir;;
7268 esac
7269 as_dirs="'$as_qdir' $as_dirs"
7270 as_dir=`$as_dirname -- "$as_dir" ||
7271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7272 X"$as_dir" : 'X\(//\)[^/]' \| \
7273 X"$as_dir" : 'X\(//\)$' \| \
7274 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7275 $as_echo X"$as_dir" |
7276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7277 s//\1/
7278 q
7279 }
7280 /^X\(\/\/\)[^/].*/{
7281 s//\1/
7282 q
7283 }
7284 /^X\(\/\/\)$/{
7285 s//\1/
7286 q
7287 }
7288 /^X\(\/\).*/{
7289 s//\1/
7290 q
7291 }
7292 s/.*/./; q'`
7293 test -d "$as_dir" && break
7294 done
7295 test -z "$as_dirs" || eval "mkdir $as_dirs"
7296 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7297 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
7298 { (exit 1); exit 1; }; }; }
7299 ac_builddir=.
7300
7301 case "$ac_dir" in
7302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7303 *)
7304 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7305 # A ".." for each directory in $ac_dir_suffix.
7306 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7307 case $ac_top_builddir_sub in
7308 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7309 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7310 esac ;;
7311 esac
7312 ac_abs_top_builddir=$ac_pwd
7313 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7314 # for backward compatibility:
7315 ac_top_builddir=$ac_top_build_prefix
7316
7317 case $srcdir in
7318 .) # We are building in place.
7319 ac_srcdir=.
7320 ac_top_srcdir=$ac_top_builddir_sub
7321 ac_abs_top_srcdir=$ac_pwd ;;
7322 [\\/]* | ?:[\\/]* ) # Absolute name.
7323 ac_srcdir=$srcdir$ac_dir_suffix;
7324 ac_top_srcdir=$srcdir
7325 ac_abs_top_srcdir=$srcdir ;;
7326 *) # Relative name.
7327 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7328 ac_top_srcdir=$ac_top_build_prefix$srcdir
7329 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7330 esac
7331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7332
7333
7334 case $ac_mode in
7335 :F)
7336 #
7337 # CONFIG_FILE
7338 #
7339
7340 case $INSTALL in
7341 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7342 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7343 esac
7344 ac_MKDIR_P=$MKDIR_P
7345 case $MKDIR_P in
7346 [\\/$]* | ?:[\\/]* ) ;;
7347 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7348 esac
7349 _ACEOF
7350
7351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7352 # If the template does not know about datarootdir, expand it.
7353 # FIXME: This hack should be removed a few years after 2.60.
7354 ac_datarootdir_hack=; ac_datarootdir_seen=
7355
7356 ac_sed_dataroot='
7357 /datarootdir/ {
7358 p
7359 q
7360 }
7361 /@datadir@/p
7362 /@docdir@/p
7363 /@infodir@/p
7364 /@localedir@/p
7365 /@mandir@/p
7366 '
7367 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7368 *datarootdir*) ac_datarootdir_seen=yes;;
7369 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7370 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7371 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7372 _ACEOF
7373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7374 ac_datarootdir_hack='
7375 s&@datadir@&$datadir&g
7376 s&@docdir@&$docdir&g
7377 s&@infodir@&$infodir&g
7378 s&@localedir@&$localedir&g
7379 s&@mandir@&$mandir&g
7380 s&\\\${datarootdir}&$datarootdir&g' ;;
7381 esac
7382 _ACEOF
7383
7384 # Neutralize VPATH when `$srcdir' = `.'.
7385 # Shell code in configure.ac might set extrasub.
7386 # FIXME: do we really want to maintain this feature?
7387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7388 ac_sed_extra="$ac_vpsub
7389 $extrasub
7390 _ACEOF
7391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7392 :t
7393 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7394 s|@configure_input@|$ac_sed_conf_input|;t t
7395 s&@top_builddir@&$ac_top_builddir_sub&;t t
7396 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7397 s&@srcdir@&$ac_srcdir&;t t
7398 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7399 s&@top_srcdir@&$ac_top_srcdir&;t t
7400 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7401 s&@builddir@&$ac_builddir&;t t
7402 s&@abs_builddir@&$ac_abs_builddir&;t t
7403 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7404 s&@INSTALL@&$ac_INSTALL&;t t
7405 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7406 $ac_datarootdir_hack
7407 "
7408 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7409 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7410 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7411 { (exit 1); exit 1; }; }
7412
7413 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7414 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7415 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7416 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7417 which seems to be undefined. Please make sure it is defined." >&5
7418 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7419 which seems to be undefined. Please make sure it is defined." >&2;}
7420
7421 rm -f "$tmp/stdin"
7422 case $ac_file in
7423 -) cat "$tmp/out" && rm -f "$tmp/out";;
7424 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7425 esac \
7426 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7427 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7428 { (exit 1); exit 1; }; }
7429 ;;
7430 :H)
7431 #
7432 # CONFIG_HEADER
7433 #
7434 if test x"$ac_file" != x-; then
7435 {
7436 $as_echo "/* $configure_input */" \
7437 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7438 } >"$tmp/config.h" \
7439 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7440 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7441 { (exit 1); exit 1; }; }
7442 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7443 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7444 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7445 else
7446 rm -f "$ac_file"
7447 mv "$tmp/config.h" "$ac_file" \
7448 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7449 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7450 { (exit 1); exit 1; }; }
7451 fi
7452 else
7453 $as_echo "/* $configure_input */" \
7454 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7455 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
7456 $as_echo "$as_me: error: could not create -" >&2;}
7457 { (exit 1); exit 1; }; }
7458 fi
7459 # Compute "$ac_file"'s index in $config_headers.
7460 _am_arg="$ac_file"
7461 _am_stamp_count=1
7462 for _am_header in $config_headers :; do
7463 case $_am_header in
7464 $_am_arg | $_am_arg:* )
7465 break ;;
7466 * )
7467 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7468 esac
7469 done
7470 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7471 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7472 X"$_am_arg" : 'X\(//\)[^/]' \| \
7473 X"$_am_arg" : 'X\(//\)$' \| \
7474 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7475 $as_echo X"$_am_arg" |
7476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7477 s//\1/
7478 q
7479 }
7480 /^X\(\/\/\)[^/].*/{
7481 s//\1/
7482 q
7483 }
7484 /^X\(\/\/\)$/{
7485 s//\1/
7486 q
7487 }
7488 /^X\(\/\).*/{
7489 s//\1/
7490 q
7491 }
7492 s/.*/./; q'`/stamp-h$_am_stamp_count
7493 ;;
7494
7495 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
7496 $as_echo "$as_me: executing $ac_file commands" >&6;}
7497 ;;
7498 esac
7499
7500
7501 case $ac_file$ac_mode in
7502 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7503 # Strip MF so we end up with the name of the file.
7504 mf=`echo "$mf" | sed -e 's/:.*$//'`
7505 # Check whether this is an Automake generated Makefile or not.
7506 # We used to match only the files named `Makefile.in', but
7507 # some people rename them; so instead we look at the file content.
7508 # Grep'ing the first line is not enough: some people post-process
7509 # each Makefile.in and add a new line on top of each file to say so.
7510 # Grep'ing the whole file is not good either: AIX grep has a line
7511 # limit of 2048, but all sed's we know have understand at least 4000.
7512 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7513 dirpart=`$as_dirname -- "$mf" ||
7514 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7515 X"$mf" : 'X\(//\)[^/]' \| \
7516 X"$mf" : 'X\(//\)$' \| \
7517 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7518 $as_echo X"$mf" |
7519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7520 s//\1/
7521 q
7522 }
7523 /^X\(\/\/\)[^/].*/{
7524 s//\1/
7525 q
7526 }
7527 /^X\(\/\/\)$/{
7528 s//\1/
7529 q
7530 }
7531 /^X\(\/\).*/{
7532 s//\1/
7533 q
7534 }
7535 s/.*/./; q'`
7536 else
7537 continue
7538 fi
7539 # Extract the definition of DEPDIR, am__include, and am__quote
7540 # from the Makefile without running `make'.
7541 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7542 test -z "$DEPDIR" && continue
7543 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7544 test -z "am__include" && continue
7545 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7546 # When using ansi2knr, U may be empty or an underscore; expand it
7547 U=`sed -n 's/^U = //p' < "$mf"`
7548 # Find all dependency output files, they are included files with
7549 # $(DEPDIR) in their names. We invoke sed twice because it is the
7550 # simplest approach to changing $(DEPDIR) to its actual value in the
7551 # expansion.
7552 for file in `sed -n "
7553 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7554 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7555 # Make sure the directory exists.
7556 test -f "$dirpart/$file" && continue
7557 fdir=`$as_dirname -- "$file" ||
7558 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7559 X"$file" : 'X\(//\)[^/]' \| \
7560 X"$file" : 'X\(//\)$' \| \
7561 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7562 $as_echo X"$file" |
7563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7564 s//\1/
7565 q
7566 }
7567 /^X\(\/\/\)[^/].*/{
7568 s//\1/
7569 q
7570 }
7571 /^X\(\/\/\)$/{
7572 s//\1/
7573 q
7574 }
7575 /^X\(\/\).*/{
7576 s//\1/
7577 q
7578 }
7579 s/.*/./; q'`
7580 { as_dir=$dirpart/$fdir
7581 case $as_dir in #(
7582 -*) as_dir=./$as_dir;;
7583 esac
7584 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7585 as_dirs=
7586 while :; do
7587 case $as_dir in #(
7588 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7589 *) as_qdir=$as_dir;;
7590 esac
7591 as_dirs="'$as_qdir' $as_dirs"
7592 as_dir=`$as_dirname -- "$as_dir" ||
7593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7594 X"$as_dir" : 'X\(//\)[^/]' \| \
7595 X"$as_dir" : 'X\(//\)$' \| \
7596 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7597 $as_echo X"$as_dir" |
7598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7599 s//\1/
7600 q
7601 }
7602 /^X\(\/\/\)[^/].*/{
7603 s//\1/
7604 q
7605 }
7606 /^X\(\/\/\)$/{
7607 s//\1/
7608 q
7609 }
7610 /^X\(\/\).*/{
7611 s//\1/
7612 q
7613 }
7614 s/.*/./; q'`
7615 test -d "$as_dir" && break
7616 done
7617 test -z "$as_dirs" || eval "mkdir $as_dirs"
7618 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7619 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
7620 { (exit 1); exit 1; }; }; }
7621 # echo "creating $dirpart/$file"
7622 echo '# dummy' > "$dirpart/$file"
7623 done
7624 done
7625 ;;
7626
7627 esac
7628 done # for ac_tag
7629
7630
7631 { (exit 0); exit 0; }
7632 _ACEOF
7633 chmod +x $CONFIG_STATUS
7634 ac_clean_files=$ac_clean_files_save
7635
7636 test $ac_write_fail = 0 ||
7637 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
7638 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
7639 { (exit 1); exit 1; }; }
7640
7641
7642 # configure is writing to config.log, and then calls config.status.
7643 # config.status does its own redirection, appending to config.log.
7644 # Unfortunately, on DOS this fails, as config.log is still kept open
7645 # by configure, so config.status won't be able to write to it; its
7646 # output is simply discarded. So we exec the FD to /dev/null,
7647 # effectively closing config.log, so it can be properly (re)opened and
7648 # appended to by config.status. When coming back to configure, we
7649 # need to make the FD available again.
7650 if test "$no_create" != yes; then
7651 ac_cs_success=:
7652 ac_config_status_args=
7653 test "$silent" = yes &&
7654 ac_config_status_args="$ac_config_status_args --quiet"
7655 exec 5>/dev/null
7656 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7657 exec 5>>config.log
7658 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7659 # would make configure fail if this is the last instruction.
7660 $ac_cs_success || { (exit 1); exit 1; }
7661 fi
7662 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7663 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7664 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7665 fi
7666