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