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