Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # From configure.ac for lifelines, built with autoconf AC_ACVERSION.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
45 chmod +x conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 PATH_SEPARATOR=';'
48 else
49 PATH_SEPARATOR=:
50 fi
51 rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56 as_unset=unset
57 else
58 as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" "" $as_nl"
70
71 # Find who we are. Look in the path if we contain no directory separator.
72 case $0 in
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77 IFS=$as_save_IFS
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83 ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88 as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 LC_TELEPHONE LC_TIME
108 do
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
111 else
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 as_expr=expr
120 else
121 as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125 as_basename=basename
126 else
127 as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
138 s//\1/
139 q
140 }
141 /^X\/\(\/\/\)$/{
142 s//\1/
143 q
144 }
145 /^X\/\(\/\).*/{
146 s//\1/
147 q
148 }
149 s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
157 as_have_required=yes
158 else
159 as_have_required=no
160 fi
161
162 if test $as_have_required = yes && (eval ":
163 (as_func_return () {
164 (exit \$1)
165 }
166 as_func_success () {
167 as_func_return 0
168 }
169 as_func_failure () {
170 as_func_return 1
171 }
172 as_func_ret_success () {
173 return 0
174 }
175 as_func_ret_failure () {
176 return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181 :
182 else
183 exitcode=1
184 echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188 exitcode=1
189 echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193 :
194 else
195 exitcode=1
196 echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200 exitcode=1
201 echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 :
206 else
207 exitcode=1
208 echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214 as_lineno_1=\$LINENO
215 as_lineno_2=\$LINENO
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219 :
220 else
221 as_candidate_shells=
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225 IFS=$as_save_IFS
226 test -z "$as_dir" && as_dir=.
227 case $as_dir in
228 /*)
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231 done;;
232 esac
233 done
234 IFS=$as_save_IFS
235
236
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259 CONFIG_SHELL=$as_shell
260 as_have_required=yes
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279 (exit $1)
280 }
281 as_func_success () {
282 as_func_return 0
283 }
284 as_func_failure () {
285 as_func_return 1
286 }
287 as_func_ret_success () {
288 return 0
289 }
290 as_func_ret_failure () {
291 return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296 :
297 else
298 exitcode=1
299 echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303 exitcode=1
304 echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308 :
309 else
310 exitcode=1
311 echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315 exitcode=1
316 echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 :
321 else
322 exitcode=1
323 echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329 as_lineno_1=$LINENO
330 as_lineno_2=$LINENO
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336 break
337 fi
338
339 fi
340
341 done
342
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346 done
347 export CONFIG_SHELL
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368 (exit \$1)
369 }
370 as_func_success () {
371 as_func_return 0
372 }
373 as_func_failure () {
374 as_func_return 1
375 }
376 as_func_ret_success () {
377 return 0
378 }
379 as_func_ret_failure () {
380 return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385 :
386 else
387 exitcode=1
388 echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392 exitcode=1
393 echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397 :
398 else
399 exitcode=1
400 echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404 exitcode=1
405 echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 :
410 else
411 exitcode=1
412 echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell [email protected] about your system,
418 echo including any error possibly output before this
419 echo message
420 }
421
422
423
424 as_lineno_1=$LINENO
425 as_lineno_2=$LINENO
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
435 # case at line end.
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
439 sed -n '
440 p
441 /[$]LINENO/=
442 ' <$as_myself |
443 sed '
444 s/[$]LINENO.*/&-/
445 t lineno
446 b
447 :lineno
448 N
449 :loop
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 t loop
452 s/-\n.*//
453 ' >$as_me.lineno &&
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
457
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
461 . "./$as_me.lineno"
462 # Exit status is that of the last command.
463 exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_dirname=dirname
469 else
470 as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476 case `echo 'x\c'` in
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) ECHO_C='\c';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 as_expr=expr
487 else
488 as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
494 else
495 rm -f conf$$.dir
496 mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s='ln -s'
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508 as_ln_s=ln
509 else
510 as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516 as_mkdir_p=:
517 else
518 test -d ./-p && rmdir ./-p
519 as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523 as_test_x='test -x'
524 else
525 if ls -dL / >/dev/null 2>&1; then
526 as_ls_L_option=L
527 else
528 as_ls_L_option=
529 fi
530 as_test_x='
531 eval sh -c '\''
532 if test -d "$1"; then
533 test -d "$1/.";
534 else
535 case $1 in
536 -*)set "./$1";;
537 esac;
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
540 '\'' sh
541 '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553 exec 7<&0 </dev/null 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573 # Identity of this package.
574 PACKAGE_NAME=
575 PACKAGE_TARNAME=
576 PACKAGE_VERSION=
577 PACKAGE_STRING=
578 PACKAGE_BUGREPORT=
579
580 ac_unique_file="src/liflines/main.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 INSTALL_PROGRAM
663 INSTALL_SCRIPT
664 INSTALL_DATA
665 CYGPATH_W
666 PACKAGE
667 VERSION
668 ACLOCAL
669 AUTOCONF
670 AUTOMAKE
671 AUTOHEADER
672 MAKEINFO
673 install_sh
674 STRIP
675 INSTALL_STRIP_PROGRAM
676 mkdir_p
677 AWK
678 SET_MAKE
679 am__leading_dot
680 AMTAR
681 am__tar
682 am__untar
683 MAINTAINER_MODE_TRUE
684 MAINTAINER_MODE_FALSE
685 MAINT
686 CC
687 CFLAGS
688 LDFLAGS
689 CPPFLAGS
690 ac_ct_CC
691 EXEEXT
692 OBJEXT
693 DEPDIR
694 am__include
695 am__quote
696 AMDEP_TRUE
697 AMDEP_FALSE
698 AMDEPBACKSLASH
699 CCDEPMODE
700 am__fastdepCC_TRUE
701 am__fastdepCC_FALSE
702 RANLIB
703 YACC
704 YFLAGS
705 MKINSTALLDIRS
706 MSGFMT
707 GMSGFMT
708 XGETTEXT
709 MSGMERGE
710 CPP
711 GREP
712 EGREP
713 ALLOCA
714 GLIBC21
715 LIBICONV
716 LTLIBICONV
717 INTLBISON
718 USE_NLS
719 BUILD_INCLUDED_LIBINTL
720 USE_INCLUDED_LIBINTL
721 CATOBJEXT
722 INTLOBJS
723 DATADIRNAME
724 INSTOBJEXT
725 GENCAT
726 INTL_LIBTOOL_SUFFIX_PREFIX
727 INTLLIBS
728 LIBINTL
729 LTLIBINTL
730 POSUB
731 SGMLTOOLS
732 DOCS_TARGET
733 LIBOBJS
734 LTLIBOBJS'
735 ac_subst_files=''
736 ac_precious_vars='build_alias
737 host_alias
738 target_alias
739 CC
740 CFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 YACC
745 YFLAGS
746 CPP'
747
748
749 # Initialize some variables set by options.
750 ac_init_help=
751 ac_init_version=false
752 # The variables have the same names as the options, with
753 # dashes changed to underlines.
754 cache_file=/dev/null
755 exec_prefix=NONE
756 no_create=
757 no_recursion=
758 prefix=NONE
759 program_prefix=NONE
760 program_suffix=NONE
761 program_transform_name=s,x,x,
762 silent=
763 site=
764 srcdir=
765 verbose=
766 x_includes=NONE
767 x_libraries=NONE
768
769 # Installation directory options.
770 # These are left unexpanded so users can "make install exec_prefix=/foo"
771 # and all the variables that are supposed to be based on exec_prefix
772 # by default will actually change.
773 # Use braces instead of parens because sh, perl, etc. also accept them.
774 # (The list follows the same order as the GNU Coding Standards.)
775 bindir='${exec_prefix}/bin'
776 sbindir='${exec_prefix}/sbin'
777 libexecdir='${exec_prefix}/libexec'
778 datarootdir='${prefix}/share'
779 datadir='${datarootdir}'
780 sysconfdir='${prefix}/etc'
781 sharedstatedir='${prefix}/com'
782 localstatedir='${prefix}/var'
783 includedir='${prefix}/include'
784 oldincludedir='/usr/include'
785 docdir='${datarootdir}/doc/${PACKAGE}'
786 infodir='${datarootdir}/info'
787 htmldir='${docdir}'
788 dvidir='${docdir}'
789 pdfdir='${docdir}'
790 psdir='${docdir}'
791 libdir='${exec_prefix}/lib'
792 localedir='${datarootdir}/locale'
793 mandir='${datarootdir}/man'
794
795 ac_prev=
796 ac_dashdash=
797 for ac_option
798 do
799 # If the previous option needs an argument, assign it.
800 if test -n "$ac_prev"; then
801 eval $ac_prev=\$ac_option
802 ac_prev=
803 continue
804 fi
805
806 case $ac_option in
807 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
808 *) ac_optarg=yes ;;
809 esac
810
811 # Accept the important Cygnus configure options, so we can diagnose typos.
812
813 case $ac_dashdash$ac_option in
814 --)
815 ac_dashdash=yes ;;
816
817 -bindir | --bindir | --bindi | --bind | --bin | --bi)
818 ac_prev=bindir ;;
819 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820 bindir=$ac_optarg ;;
821
822 -build | --build | --buil | --bui | --bu)
823 ac_prev=build_alias ;;
824 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825 build_alias=$ac_optarg ;;
826
827 -cache-file | --cache-file | --cache-fil | --cache-fi \
828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829 ac_prev=cache_file ;;
830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832 cache_file=$ac_optarg ;;
833
834 --config-cache | -C)
835 cache_file=config.cache ;;
836
837 -datadir | --datadir | --datadi | --datad)
838 ac_prev=datadir ;;
839 -datadir=* | --datadir=* | --datadi=* | --datad=*)
840 datadir=$ac_optarg ;;
841
842 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
843 | --dataroo | --dataro | --datar)
844 ac_prev=datarootdir ;;
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;;
848
849 -disable-* | --disable-*)
850 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
854 { (exit 1); exit 1; }; }
855 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
856 eval enable_$ac_feature=no ;;
857
858 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;;
862
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;;
867
868 -enable-* | --enable-*)
869 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
873 { (exit 1); exit 1; }; }
874 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
875 eval enable_$ac_feature=\$ac_optarg ;;
876
877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
879 | --exec | --exe | --ex)
880 ac_prev=exec_prefix ;;
881 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
882 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
883 | --exec=* | --exe=* | --ex=*)
884 exec_prefix=$ac_optarg ;;
885
886 -gas | --gas | --ga | --g)
887 # Obsolete; use --with-gas.
888 with_gas=yes ;;
889
890 -help | --help | --hel | --he | -h)
891 ac_init_help=long ;;
892 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
893 ac_init_help=recursive ;;
894 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
895 ac_init_help=short ;;
896
897 -host | --host | --hos | --ho)
898 ac_prev=host_alias ;;
899 -host=* | --host=* | --hos=* | --ho=*)
900 host_alias=$ac_optarg ;;
901
902 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
903 ac_prev=htmldir ;;
904 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
905 | --ht=*)
906 htmldir=$ac_optarg ;;
907
908 -includedir | --includedir | --includedi | --included | --include \
909 | --includ | --inclu | --incl | --inc)
910 ac_prev=includedir ;;
911 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
912 | --includ=* | --inclu=* | --incl=* | --inc=*)
913 includedir=$ac_optarg ;;
914
915 -infodir | --infodir | --infodi | --infod | --info | --inf)
916 ac_prev=infodir ;;
917 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
918 infodir=$ac_optarg ;;
919
920 -libdir | --libdir | --libdi | --libd)
921 ac_prev=libdir ;;
922 -libdir=* | --libdir=* | --libdi=* | --libd=*)
923 libdir=$ac_optarg ;;
924
925 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
926 | --libexe | --libex | --libe)
927 ac_prev=libexecdir ;;
928 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
929 | --libexe=* | --libex=* | --libe=*)
930 libexecdir=$ac_optarg ;;
931
932 -localedir | --localedir | --localedi | --localed | --locale)
933 ac_prev=localedir ;;
934 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
935 localedir=$ac_optarg ;;
936
937 -localstatedir | --localstatedir | --localstatedi | --localstated \
938 | --localstate | --localstat | --localsta | --localst | --locals)
939 ac_prev=localstatedir ;;
940 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
941 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
942 localstatedir=$ac_optarg ;;
943
944 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
945 ac_prev=mandir ;;
946 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
947 mandir=$ac_optarg ;;
948
949 -nfp | --nfp | --nf)
950 # Obsolete; use --without-fp.
951 with_fp=no ;;
952
953 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
954 | --no-cr | --no-c | -n)
955 no_create=yes ;;
956
957 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
958 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
959 no_recursion=yes ;;
960
961 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
962 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
963 | --oldin | --oldi | --old | --ol | --o)
964 ac_prev=oldincludedir ;;
965 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
966 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
967 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
968 oldincludedir=$ac_optarg ;;
969
970 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
971 ac_prev=prefix ;;
972 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
973 prefix=$ac_optarg ;;
974
975 -program-prefix | --program-prefix | --program-prefi | --program-pref \
976 | --program-pre | --program-pr | --program-p)
977 ac_prev=program_prefix ;;
978 -program-prefix=* | --program-prefix=* | --program-prefi=* \
979 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
980 program_prefix=$ac_optarg ;;
981
982 -program-suffix | --program-suffix | --program-suffi | --program-suff \
983 | --program-suf | --program-su | --program-s)
984 ac_prev=program_suffix ;;
985 -program-suffix=* | --program-suffix=* | --program-suffi=* \
986 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
987 program_suffix=$ac_optarg ;;
988
989 -program-transform-name | --program-transform-name \
990 | --program-transform-nam | --program-transform-na \
991 | --program-transform-n | --program-transform- \
992 | --program-transform | --program-transfor \
993 | --program-transfo | --program-transf \
994 | --program-trans | --program-tran \
995 | --progr-tra | --program-tr | --program-t)
996 ac_prev=program_transform_name ;;
997 -program-transform-name=* | --program-transform-name=* \
998 | --program-transform-nam=* | --program-transform-na=* \
999 | --program-transform-n=* | --program-transform-=* \
1000 | --program-transform=* | --program-transfor=* \
1001 | --program-transfo=* | --program-transf=* \
1002 | --program-trans=* | --program-tran=* \
1003 | --progr-tra=* | --program-tr=* | --program-t=*)
1004 program_transform_name=$ac_optarg ;;
1005
1006 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1007 ac_prev=pdfdir ;;
1008 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1009 pdfdir=$ac_optarg ;;
1010
1011 -psdir | --psdir | --psdi | --psd | --ps)
1012 ac_prev=psdir ;;
1013 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1014 psdir=$ac_optarg ;;
1015
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1018 silent=yes ;;
1019
1020 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1021 ac_prev=sbindir ;;
1022 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1023 | --sbi=* | --sb=*)
1024 sbindir=$ac_optarg ;;
1025
1026 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1027 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1028 | --sharedst | --shareds | --shared | --share | --shar \
1029 | --sha | --sh)
1030 ac_prev=sharedstatedir ;;
1031 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1032 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1033 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1034 | --sha=* | --sh=*)
1035 sharedstatedir=$ac_optarg ;;
1036
1037 -site | --site | --sit)
1038 ac_prev=site ;;
1039 -site=* | --site=* | --sit=*)
1040 site=$ac_optarg ;;
1041
1042 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1043 ac_prev=srcdir ;;
1044 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1045 srcdir=$ac_optarg ;;
1046
1047 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1048 | --syscon | --sysco | --sysc | --sys | --sy)
1049 ac_prev=sysconfdir ;;
1050 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1051 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1052 sysconfdir=$ac_optarg ;;
1053
1054 -target | --target | --targe | --targ | --tar | --ta | --t)
1055 ac_prev=target_alias ;;
1056 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1057 target_alias=$ac_optarg ;;
1058
1059 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1060 verbose=yes ;;
1061
1062 -version | --version | --versio | --versi | --vers | -V)
1063 ac_init_version=: ;;
1064
1065 -with-* | --with-*)
1066 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1072 eval with_$ac_package=\$ac_optarg ;;
1073
1074 -without-* | --without-*)
1075 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1081 eval with_$ac_package=no ;;
1082
1083 --x)
1084 # Obsolete; use --with-x.
1085 with_x=yes ;;
1086
1087 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1088 | --x-incl | --x-inc | --x-in | --x-i)
1089 ac_prev=x_includes ;;
1090 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1091 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1092 x_includes=$ac_optarg ;;
1093
1094 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1095 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1096 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;;
1100
1101 -*) { echo "$as_me: error: unrecognized option: $ac_option
1102 Try \`$0 --help' for more information." >&2
1103 { (exit 1); exit 1; }; }
1104 ;;
1105
1106 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1111 { (exit 1); exit 1; }; }
1112 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;;
1114
1115 *)
1116 # FIXME: should be removed in autoconf 3.0.
1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 ;;
1122
1123 esac
1124 done
1125
1126 if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 { echo "$as_me: error: missing argument to $ac_option" >&2
1129 { (exit 1); exit 1; }; }
1130 fi
1131
1132 # Be sure to have absolute directory names.
1133 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir
1137 do
1138 eval ac_val=\$$ac_var
1139 case $ac_val in
1140 [\\/$]* | ?:[\\/]* ) continue;;
1141 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1142 esac
1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1144 { (exit 1); exit 1; }; }
1145 done
1146
1147 # There might be people who depend on the old broken behavior: `$host'
1148 # used to hold the argument of --host etc.
1149 # FIXME: To remove some day.
1150 build=$build_alias
1151 host=$host_alias
1152 target=$target_alias
1153
1154 # FIXME: To remove some day.
1155 if test "x$host_alias" != x; then
1156 if test "x$build_alias" = x; then
1157 cross_compiling=maybe
1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1159 If a cross compiler is detected then cross compile mode will be used." >&2
1160 elif test "x$build_alias" != "x$host_alias"; then
1161 cross_compiling=yes
1162 fi
1163 fi
1164
1165 ac_tool_prefix=
1166 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1167
1168 test "$silent" = yes && exec 6>/dev/null
1169
1170
1171 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172 ac_ls_di=`ls -di .` &&
1173 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174 { echo "$as_me: error: Working directory cannot be determined" >&2
1175 { (exit 1); exit 1; }; }
1176 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1177 { echo "$as_me: error: pwd does not report name of working directory" >&2
1178 { (exit 1); exit 1; }; }
1179
1180
1181 # Find the source files, if location was not specified.
1182 if test -z "$srcdir"; then
1183 ac_srcdir_defaulted=yes
1184 # Try the directory containing this script, then the parent directory.
1185 ac_confdir=`$as_dirname -- "$0" ||
1186 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$0" : 'X\(//\)[^/]' \| \
1188 X"$0" : 'X\(//\)$' \| \
1189 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1190 echo X"$0" |
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\/\)[^/].*/{
1196 s//\1/
1197 q
1198 }
1199 /^X\(\/\/\)$/{
1200 s//\1/
1201 q
1202 }
1203 /^X\(\/\).*/{
1204 s//\1/
1205 q
1206 }
1207 s/.*/./; q'`
1208 srcdir=$ac_confdir
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 srcdir=..
1211 fi
1212 else
1213 ac_srcdir_defaulted=no
1214 fi
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1218 { (exit 1); exit 1; }; }
1219 fi
1220 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221 ac_abs_confdir=`(
1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1223 { (exit 1); exit 1; }; }
1224 pwd)`
1225 # When building in place, set srcdir=.
1226 if test "$ac_abs_confdir" = "$ac_pwd"; then
1227 srcdir=.
1228 fi
1229 # Remove unnecessary trailing slashes from srcdir.
1230 # Double slashes in file names in object file debugging info
1231 # mess up M-x gdb in Emacs.
1232 case $srcdir in
1233 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1234 esac
1235 for ac_var in $ac_precious_vars; do
1236 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1237 eval ac_env_${ac_var}_value=\$${ac_var}
1238 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1240 done
1241
1242 #
1243 # Report the --help message.
1244 #
1245 if test "$ac_init_help" = "long"; then
1246 # Omit some internal or obsolete options to make the list less imposing.
1247 # This message is too long to be a string in the A/UX 3.1 sh.
1248 cat <<_ACEOF
1249 \`configure' configures this package to adapt to many kinds of systems.
1250
1251 Usage: $0 [OPTION]... [VAR=VALUE]...
1252
1253 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1254 VAR=VALUE. See below for descriptions of some of the useful variables.
1255
1256 Defaults for the options are specified in brackets.
1257
1258 Configuration:
1259 -h, --help display this help and exit
1260 --help=short display options specific to this package
1261 --help=recursive display the short help of all the included packages
1262 -V, --version display version information and exit
1263 -q, --quiet, --silent do not print \`checking...' messages
1264 --cache-file=FILE cache test results in FILE [disabled]
1265 -C, --config-cache alias for \`--cache-file=config.cache'
1266 -n, --no-create do not create output files
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1268
1269 Installation directories:
1270 --prefix=PREFIX install architecture-independent files in PREFIX
1271 [$ac_default_prefix]
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1273 [PREFIX]
1274
1275 By default, \`make install' will install all the files in
1276 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278 for instance \`--prefix=\$HOME'.
1279
1280 For better control, use the options below.
1281
1282 Fine tuning of the installation directories:
1283 --bindir=DIR user executables [EPREFIX/bin]
1284 --sbindir=DIR system admin executables [EPREFIX/sbin]
1285 --libexecdir=DIR program executables [EPREFIX/libexec]
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1298 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR]
1302 _ACEOF
1303
1304 cat <<\_ACEOF
1305
1306 Program names:
1307 --program-prefix=PREFIX prepend PREFIX to installed program names
1308 --program-suffix=SUFFIX append SUFFIX to installed program names
1309 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1310
1311 System types:
1312 --build=BUILD configure for building on BUILD [guessed]
1313 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1314 _ACEOF
1315 fi
1316
1317 if test -n "$ac_init_help"; then
1318
1319 cat <<\_ACEOF
1320
1321 Optional Features:
1322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1324 --enable-maintainer-mode enable make rules and dependencies not useful
1325 (and sometimes confusing) to the casual installer
1326 --disable-dependency-tracking speeds up one-time build
1327 --enable-dependency-tracking do not reject slow dependency extractors
1328 --disable-rpath do not hardcode runtime library paths
1329 --disable-nls do not use Native Language Support
1330
1331 Optional Packages:
1332 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1333 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1334 --with-gnu-ld assume the C compiler uses GNU ld default=no
1335 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1336 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1337 --with-included-gettext use the GNU gettext library included here
1338 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1339 --without-libintl-prefix don't search for libintl in includedir and libdir
1340 --with-docs Build the docs (requires sgmltools)
1341 --with-profiling Compile with profiling support
1342
1343 Some influential environment variables:
1344 CC C compiler command
1345 CFLAGS C compiler flags
1346 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1347 nonstandard directory <lib dir>
1348 LIBS libraries to pass to the linker, e.g. -l<library>
1349 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1350 you have headers in a nonstandard directory <include dir>
1351 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1352 the first program found out of: `bison -y', `byacc', `yacc'.
1353 YFLAGS The list of arguments that will be passed by default to $YACC.
1354 This script will default YFLAGS to the empty string to avoid a
1355 default value of `-d' given by some make applications.
1356 CPP C preprocessor
1357
1358 Use these variables to override the choices made by `configure' or to help
1359 it to find libraries and programs with nonstandard names/locations.
1360
1361 _ACEOF
1362 ac_status=$?
1363 fi
1364
1365 if test "$ac_init_help" = "recursive"; then
1366 # If there are subdirs, report their specific --help.
1367 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1368 test -d "$ac_dir" || continue
1369 ac_builddir=.
1370
1371 case "$ac_dir" in
1372 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373 *)
1374 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1375 # A ".." for each directory in $ac_dir_suffix.
1376 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1377 case $ac_top_builddir_sub in
1378 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1380 esac ;;
1381 esac
1382 ac_abs_top_builddir=$ac_pwd
1383 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1384 # for backward compatibility:
1385 ac_top_builddir=$ac_top_build_prefix
1386
1387 case $srcdir in
1388 .) # We are building in place.
1389 ac_srcdir=.
1390 ac_top_srcdir=$ac_top_builddir_sub
1391 ac_abs_top_srcdir=$ac_pwd ;;
1392 [\\/]* | ?:[\\/]* ) # Absolute name.
1393 ac_srcdir=$srcdir$ac_dir_suffix;
1394 ac_top_srcdir=$srcdir
1395 ac_abs_top_srcdir=$srcdir ;;
1396 *) # Relative name.
1397 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1398 ac_top_srcdir=$ac_top_build_prefix$srcdir
1399 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1400 esac
1401 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1402
1403 cd "$ac_dir" || { ac_status=$?; continue; }
1404 # Check for guested configure.
1405 if test -f "$ac_srcdir/configure.gnu"; then
1406 echo &&
1407 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1408 elif test -f "$ac_srcdir/configure"; then
1409 echo &&
1410 $SHELL "$ac_srcdir/configure" --help=recursive
1411 else
1412 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1413 fi || ac_status=$?
1414 cd "$ac_pwd" || { ac_status=$?; break; }
1415 done
1416 fi
1417
1418 test -n "$ac_init_help" && exit $ac_status
1419 if $ac_init_version; then
1420 cat <<\_ACEOF
1421 configure
1422 generated by GNU Autoconf 2.61
1423
1424 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1425 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1426 This configure script is free software; the Free Software Foundation
1427 gives unlimited permission to copy, distribute and modify it.
1428 _ACEOF
1429 exit
1430 fi
1431 cat >config.log <<_ACEOF
1432 This file contains any messages produced by compilers while
1433 running configure, to aid debugging if configure makes a mistake.
1434
1435 It was created by $as_me, which was
1436 generated by GNU Autoconf 2.61. Invocation command line was
1437
1438 $ $0 $@
1439
1440 _ACEOF
1441 exec 5>>config.log
1442 {
1443 cat <<_ASUNAME
1444 ## --------- ##
1445 ## Platform. ##
1446 ## --------- ##
1447
1448 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1449 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1450 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1451 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1452 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1453
1454 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1455 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1456
1457 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1458 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1459 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1460 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1461 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1462 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1463 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1464
1465 _ASUNAME
1466
1467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468 for as_dir in $PATH
1469 do
1470 IFS=$as_save_IFS
1471 test -z "$as_dir" && as_dir=.
1472 echo "PATH: $as_dir"
1473 done
1474 IFS=$as_save_IFS
1475
1476 } >&5
1477
1478 cat >&5 <<_ACEOF
1479
1480
1481 ## ----------- ##
1482 ## Core tests. ##
1483 ## ----------- ##
1484
1485 _ACEOF
1486
1487
1488 # Keep a trace of the command line.
1489 # Strip out --no-create and --no-recursion so they do not pile up.
1490 # Strip out --silent because we don't want to record it for future runs.
1491 # Also quote any args containing shell meta-characters.
1492 # Make two passes to allow for proper duplicate-argument suppression.
1493 ac_configure_args=
1494 ac_configure_args0=
1495 ac_configure_args1=
1496 ac_must_keep_next=false
1497 for ac_pass in 1 2
1498 do
1499 for ac_arg
1500 do
1501 case $ac_arg in
1502 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1504 | -silent | --silent | --silen | --sile | --sil)
1505 continue ;;
1506 *\'*)
1507 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1508 esac
1509 case $ac_pass in
1510 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1511 2)
1512 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1513 if test $ac_must_keep_next = true; then
1514 ac_must_keep_next=false # Got value, back to normal.
1515 else
1516 case $ac_arg in
1517 *=* | --config-cache | -C | -disable-* | --disable-* \
1518 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1519 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1520 | -with-* | --with-* | -without-* | --without-* | --x)
1521 case "$ac_configure_args0 " in
1522 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1523 esac
1524 ;;
1525 -* ) ac_must_keep_next=true ;;
1526 esac
1527 fi
1528 ac_configure_args="$ac_configure_args '$ac_arg'"
1529 ;;
1530 esac
1531 done
1532 done
1533 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1534 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1535
1536 # When interrupted or exit'd, cleanup temporary files, and complete
1537 # config.log. We remove comments because anyway the quotes in there
1538 # would cause problems or look ugly.
1539 # WARNING: Use '\'' to represent an apostrophe within the trap.
1540 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1541 trap 'exit_status=$?
1542 # Save into config.log some information that might help in debugging.
1543 {
1544 echo
1545
1546 cat <<\_ASBOX
1547 ## ---------------- ##
1548 ## Cache variables. ##
1549 ## ---------------- ##
1550 _ASBOX
1551 echo
1552 # The following way of writing the cache mishandles newlines in values,
1553 (
1554 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1555 eval ac_val=\$$ac_var
1556 case $ac_val in #(
1557 *${as_nl}*)
1558 case $ac_var in #(
1559 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1560 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1561 esac
1562 case $ac_var in #(
1563 _ | IFS | as_nl) ;; #(
1564 *) $as_unset $ac_var ;;
1565 esac ;;
1566 esac
1567 done
1568 (set) 2>&1 |
1569 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1570 *${as_nl}ac_space=\ *)
1571 sed -n \
1572 "s/'\''/'\''\\\\'\'''\''/g;
1573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1574 ;; #(
1575 *)
1576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1577 ;;
1578 esac |
1579 sort
1580 )
1581 echo
1582
1583 cat <<\_ASBOX
1584 ## ----------------- ##
1585 ## Output variables. ##
1586 ## ----------------- ##
1587 _ASBOX
1588 echo
1589 for ac_var in $ac_subst_vars
1590 do
1591 eval ac_val=\$$ac_var
1592 case $ac_val in
1593 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1594 esac
1595 echo "$ac_var='\''$ac_val'\''"
1596 done | sort
1597 echo
1598
1599 if test -n "$ac_subst_files"; then
1600 cat <<\_ASBOX
1601 ## ------------------- ##
1602 ## File substitutions. ##
1603 ## ------------------- ##
1604 _ASBOX
1605 echo
1606 for ac_var in $ac_subst_files
1607 do
1608 eval ac_val=\$$ac_var
1609 case $ac_val in
1610 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1611 esac
1612 echo "$ac_var='\''$ac_val'\''"
1613 done | sort
1614 echo
1615 fi
1616
1617 if test -s confdefs.h; then
1618 cat <<\_ASBOX
1619 ## ----------- ##
1620 ## confdefs.h. ##
1621 ## ----------- ##
1622 _ASBOX
1623 echo
1624 cat confdefs.h
1625 echo
1626 fi
1627 test "$ac_signal" != 0 &&
1628 echo "$as_me: caught signal $ac_signal"
1629 echo "$as_me: exit $exit_status"
1630 } >&5
1631 rm -f core *.core core.conftest.* &&
1632 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1633 exit $exit_status
1634 ' 0
1635 for ac_signal in 1 2 13 15; do
1636 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1637 done
1638 ac_signal=0
1639
1640 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1641 rm -f -r conftest* confdefs.h
1642
1643 # Predefined preprocessor variables.
1644
1645 cat >>confdefs.h <<_ACEOF
1646 #define PACKAGE_NAME "$PACKAGE_NAME"
1647 _ACEOF
1648
1649
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1652 _ACEOF
1653
1654
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1657 _ACEOF
1658
1659
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_STRING "$PACKAGE_STRING"
1662 _ACEOF
1663
1664
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1667 _ACEOF
1668
1669
1670 # Let the site file select an alternate cache file if it wants to.
1671 # Prefer explicitly selected file to automatically selected ones.
1672 if test -n "$CONFIG_SITE"; then
1673 set x "$CONFIG_SITE"
1674 elif test "x$prefix" != xNONE; then
1675 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1676 else
1677 set x "$ac_default_prefix/share/config.site" \
1678 "$ac_default_prefix/etc/config.site"
1679 fi
1680 shift
1681 for ac_site_file
1682 do
1683 if test -r "$ac_site_file"; then
1684 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1685 echo "$as_me: loading site script $ac_site_file" >&6;}
1686 sed 's/^/| /' "$ac_site_file" >&5
1687 . "$ac_site_file"
1688 fi
1689 done
1690
1691 if test -r "$cache_file"; then
1692 # Some versions of bash will fail to source /dev/null (special
1693 # files actually), so we avoid doing that.
1694 if test -f "$cache_file"; then
1695 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1696 echo "$as_me: loading cache $cache_file" >&6;}
1697 case $cache_file in
1698 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1699 *) . "./$cache_file";;
1700 esac
1701 fi
1702 else
1703 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1704 echo "$as_me: creating cache $cache_file" >&6;}
1705 >$cache_file
1706 fi
1707
1708 # Check that the precious variables saved in the cache have kept the same
1709 # value.
1710 ac_cache_corrupted=false
1711 for ac_var in $ac_precious_vars; do
1712 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1713 eval ac_new_set=\$ac_env_${ac_var}_set
1714 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1715 eval ac_new_val=\$ac_env_${ac_var}_value
1716 case $ac_old_set,$ac_new_set in
1717 set,)
1718 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1719 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1720 ac_cache_corrupted=: ;;
1721 ,set)
1722 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1723 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1724 ac_cache_corrupted=: ;;
1725 ,);;
1726 *)
1727 if test "x$ac_old_val" != "x$ac_new_val"; then
1728 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1729 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1730 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1731 echo "$as_me: former value: $ac_old_val" >&2;}
1732 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1733 echo "$as_me: current value: $ac_new_val" >&2;}
1734 ac_cache_corrupted=:
1735 fi;;
1736 esac
1737 # Pass precious variables to config.status.
1738 if test "$ac_new_set" = set; then
1739 case $ac_new_val in
1740 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1741 *) ac_arg=$ac_var=$ac_new_val ;;
1742 esac
1743 case " $ac_configure_args " in
1744 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1745 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1746 esac
1747 fi
1748 done
1749 if $ac_cache_corrupted; then
1750 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1751 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1752 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1753 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1754 { (exit 1); exit 1; }; }
1755 fi
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773 ac_ext=c
1774 ac_cpp='$CPP $CPPFLAGS'
1775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1778
1779
1780
1781
1782 ac_aux_dir=
1783 for ac_dir in build/autotools "$srcdir"/build/autotools; do
1784 if test -f "$ac_dir/install-sh"; then
1785 ac_aux_dir=$ac_dir
1786 ac_install_sh="$ac_aux_dir/install-sh -c"
1787 break
1788 elif test -f "$ac_dir/install.sh"; then
1789 ac_aux_dir=$ac_dir
1790 ac_install_sh="$ac_aux_dir/install.sh -c"
1791 break
1792 elif test -f "$ac_dir/shtool"; then
1793 ac_aux_dir=$ac_dir
1794 ac_install_sh="$ac_aux_dir/shtool install -c"
1795 break
1796 fi
1797 done
1798 if test -z "$ac_aux_dir"; then
1799 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build/autotools \"$srcdir\"/build/autotools" >&5
1800 echo "$as_me: error: cannot find install-sh or install.sh in build/autotools \"$srcdir\"/build/autotools" >&2;}
1801 { (exit 1); exit 1; }; }
1802 fi
1803
1804 # These three variables are undocumented and unsupported,
1805 # and are intended to be withdrawn in a future Autoconf release.
1806 # They can cause serious problems if a builder's source tree is in a directory
1807 # whose full name contains unusual characters.
1808 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1809 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1810 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1811
1812
1813 # Make sure we can run config.sub.
1814 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1815 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1816 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1817 { (exit 1); exit 1; }; }
1818
1819 { echo "$as_me:$LINENO: checking build system type" >&5
1820 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1821 if test "${ac_cv_build+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 else
1824 ac_build_alias=$build_alias
1825 test "x$ac_build_alias" = x &&
1826 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1827 test "x$ac_build_alias" = x &&
1828 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1829 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1830 { (exit 1); exit 1; }; }
1831 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1832 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1833 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1834 { (exit 1); exit 1; }; }
1835
1836 fi
1837 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1838 echo "${ECHO_T}$ac_cv_build" >&6; }
1839 case $ac_cv_build in
1840 *-*-*) ;;
1841 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1842 echo "$as_me: error: invalid value of canonical build" >&2;}
1843 { (exit 1); exit 1; }; };;
1844 esac
1845 build=$ac_cv_build
1846 ac_save_IFS=$IFS; IFS='-'
1847 set x $ac_cv_build
1848 shift
1849 build_cpu=$1
1850 build_vendor=$2
1851 shift; shift
1852 # Remember, the first character of IFS is used to create $*,
1853 # except with old shells:
1854 build_os=$*
1855 IFS=$ac_save_IFS
1856 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1857
1858
1859 { echo "$as_me:$LINENO: checking host system type" >&5
1860 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1861 if test "${ac_cv_host+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864 if test "x$host_alias" = x; then
1865 ac_cv_host=$ac_cv_build
1866 else
1867 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1868 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1869 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1870 { (exit 1); exit 1; }; }
1871 fi
1872
1873 fi
1874 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1875 echo "${ECHO_T}$ac_cv_host" >&6; }
1876 case $ac_cv_host in
1877 *-*-*) ;;
1878 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1879 echo "$as_me: error: invalid value of canonical host" >&2;}
1880 { (exit 1); exit 1; }; };;
1881 esac
1882 host=$ac_cv_host
1883 ac_save_IFS=$IFS; IFS='-'
1884 set x $ac_cv_host
1885 shift
1886 host_cpu=$1
1887 host_vendor=$2
1888 shift; shift
1889 # Remember, the first character of IFS is used to create $*,
1890 # except with old shells:
1891 host_os=$*
1892 IFS=$ac_save_IFS
1893 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1894
1895
1896
1897 am__api_version="1.9"
1898 # Find a good install program. We prefer a C program (faster),
1899 # so one script is as good as another. But avoid the broken or
1900 # incompatible versions:
1901 # SysV /etc/install, /usr/sbin/install
1902 # SunOS /usr/etc/install
1903 # IRIX /sbin/install
1904 # AIX /bin/install
1905 # AmigaOS /C/install, which installs bootblocks on floppy discs
1906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1909 # OS/2's system install, which has a completely different semantic
1910 # ./install, which can be erroneously created by make from ./install.sh.
1911 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1912 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1913 if test -z "$INSTALL"; then
1914 if test "${ac_cv_path_install+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
1922 # Account for people who put trailing slashes in PATH elements.
1923 case $as_dir/ in
1924 ./ | .// | /cC/* | \
1925 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1926 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1927 /usr/ucb/* ) ;;
1928 *)
1929 # OSF1 and SCO ODT 3.0 have their own names for install.
1930 # Don't use installbsd from OSF since it installs stuff as root
1931 # by default.
1932 for ac_prog in ginstall scoinst install; do
1933 for ac_exec_ext in '' $ac_executable_extensions; do
1934 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1935 if test $ac_prog = install &&
1936 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1937 # AIX install. It has an incompatible calling convention.
1938 :
1939 elif test $ac_prog = install &&
1940 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1941 # program-specific install script used by HP pwplus--don't use.
1942 :
1943 else
1944 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1945 break 3
1946 fi
1947 fi
1948 done
1949 done
1950 ;;
1951 esac
1952 done
1953 IFS=$as_save_IFS
1954
1955
1956 fi
1957 if test "${ac_cv_path_install+set}" = set; then
1958 INSTALL=$ac_cv_path_install
1959 else
1960 # As a last resort, use the slow shell script. Don't cache a
1961 # value for INSTALL within a source directory, because that will
1962 # break other packages using the cache if that directory is
1963 # removed, or if the value is a relative name.
1964 INSTALL=$ac_install_sh
1965 fi
1966 fi
1967 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1968 echo "${ECHO_T}$INSTALL" >&6; }
1969
1970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1971 # It thinks the first close brace ends the variable substitution.
1972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1973
1974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1975
1976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1977
1978 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1979 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1980 # Just in case
1981 sleep 1
1982 echo timestamp > conftest.file
1983 # Do `set' in a subshell so we don't clobber the current shell's
1984 # arguments. Must try -L first in case configure is actually a
1985 # symlink; some systems play weird games with the mod time of symlinks
1986 # (eg FreeBSD returns the mod time of the symlink's containing
1987 # directory).
1988 if (
1989 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1990 if test "$*" = "X"; then
1991 # -L didn't work.
1992 set X `ls -t $srcdir/configure conftest.file`
1993 fi
1994 rm -f conftest.file
1995 if test "$*" != "X $srcdir/configure conftest.file" \
1996 && test "$*" != "X conftest.file $srcdir/configure"; then
1997
1998 # If neither matched, then we have a broken ls. This can happen
1999 # if, for instance, CONFIG_SHELL is bash and it inherits a
2000 # broken ls alias from the environment. This has actually
2001 # happened. Such a system could not be considered "sane".
2002 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2003 alias in your environment" >&5
2004 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2005 alias in your environment" >&2;}
2006 { (exit 1); exit 1; }; }
2007 fi
2008
2009 test "$2" = conftest.file
2010 )
2011 then
2012 # Ok.
2013 :
2014 else
2015 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2016 Check your system clock" >&5
2017 echo "$as_me: error: newly created file is older than distributed files!
2018 Check your system clock" >&2;}
2019 { (exit 1); exit 1; }; }
2020 fi
2021 { echo "$as_me:$LINENO: result: yes" >&5
2022 echo "${ECHO_T}yes" >&6; }
2023 test "$program_prefix" != NONE &&
2024 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2025 # Use a double $ so make ignores it.
2026 test "$program_suffix" != NONE &&
2027 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2028 # Double any \ or $. echo might interpret backslashes.
2029 # By default was `s,x,x', remove it if useless.
2030 cat <<\_ACEOF >conftest.sed
2031 s/[\\$]/&&/g;s/;s,x,x,$//
2032 _ACEOF
2033 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2034 rm -f conftest.sed
2035
2036 # expand $ac_aux_dir to an absolute path
2037 am_aux_dir=`cd $ac_aux_dir && pwd`
2038
2039 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2040 # Use eval to expand $SHELL
2041 if eval "$MISSING --run true"; then
2042 am_missing_run="$MISSING --run "
2043 else
2044 am_missing_run=
2045 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2046 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2047 fi
2048
2049 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2050 # We used to keeping the `.' as first argument, in order to
2051 # allow $(mkdir_p) to be used without argument. As in
2052 # $(mkdir_p) $(somedir)
2053 # where $(somedir) is conditionally defined. However this is wrong
2054 # for two reasons:
2055 # 1. if the package is installed by a user who cannot write `.'
2056 # make install will fail,
2057 # 2. the above comment should most certainly read
2058 # $(mkdir_p) $(DESTDIR)$(somedir)
2059 # so it does not work when $(somedir) is undefined and
2060 # $(DESTDIR) is not.
2061 # To support the latter case, we have to write
2062 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2063 # so the `.' trick is pointless.
2064 mkdir_p='mkdir -p --'
2065 else
2066 # On NextStep and OpenStep, the `mkdir' command does not
2067 # recognize any option. It will interpret all options as
2068 # directories to create, and then abort because `.' already
2069 # exists.
2070 for d in ./-p ./--version;
2071 do
2072 test -d $d && rmdir $d
2073 done
2074 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2075 if test -f "$ac_aux_dir/mkinstalldirs"; then
2076 mkdir_p='$(mkinstalldirs)'
2077 else
2078 mkdir_p='$(install_sh) -d'
2079 fi
2080 fi
2081
2082 for ac_prog in gawk mawk nawk awk
2083 do
2084 # Extract the first word of "$ac_prog", so it can be a program name with args.
2085 set dummy $ac_prog; ac_word=$2
2086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2088 if test "${ac_cv_prog_AWK+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091 if test -n "$AWK"; then
2092 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2101 ac_cv_prog_AWK="$ac_prog"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 break 2
2104 fi
2105 done
2106 done
2107 IFS=$as_save_IFS
2108
2109 fi
2110 fi
2111 AWK=$ac_cv_prog_AWK
2112 if test -n "$AWK"; then
2113 { echo "$as_me:$LINENO: result: $AWK" >&5
2114 echo "${ECHO_T}$AWK" >&6; }
2115 else
2116 { echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6; }
2118 fi
2119
2120
2121 test -n "$AWK" && break
2122 done
2123
2124 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2125 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2126 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2127 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 cat >conftest.make <<\_ACEOF
2131 SHELL = /bin/sh
2132 all:
2133 @echo '@@@%%%=$(MAKE)=@@@%%%'
2134 _ACEOF
2135 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2136 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2137 *@@@%%%=?*=@@@%%%*)
2138 eval ac_cv_prog_make_${ac_make}_set=yes;;
2139 *)
2140 eval ac_cv_prog_make_${ac_make}_set=no;;
2141 esac
2142 rm -f conftest.make
2143 fi
2144 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2145 { echo "$as_me:$LINENO: result: yes" >&5
2146 echo "${ECHO_T}yes" >&6; }
2147 SET_MAKE=
2148 else
2149 { echo "$as_me:$LINENO: result: no" >&5
2150 echo "${ECHO_T}no" >&6; }
2151 SET_MAKE="MAKE=${MAKE-make}"
2152 fi
2153
2154 rm -rf .tst 2>/dev/null
2155 mkdir .tst 2>/dev/null
2156 if test -d .tst; then
2157 am__leading_dot=.
2158 else
2159 am__leading_dot=_
2160 fi
2161 rmdir .tst 2>/dev/null
2162
2163 # test to see if srcdir already configured
2164 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2165 test -f $srcdir/config.status; then
2166 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2167 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2168 { (exit 1); exit 1; }; }
2169 fi
2170
2171 # test whether we have cygpath
2172 if test -z "$CYGPATH_W"; then
2173 if (cygpath --version) >/dev/null 2>/dev/null; then
2174 CYGPATH_W='cygpath -w'
2175 else
2176 CYGPATH_W=echo
2177 fi
2178 fi
2179
2180
2181 # Define the identity of the package.
2182 PACKAGE=lifelines
2183 VERSION=3.0.61
2184
2185
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE "$PACKAGE"
2188 _ACEOF
2189
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define VERSION "$VERSION"
2193 _ACEOF
2194
2195 # Some tools Automake needs.
2196
2197 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2198
2199
2200 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2201
2202
2203 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2204
2205
2206 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2207
2208
2209 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2210
2211 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2212
2213 # Installed binaries are usually stripped using `strip' when the user
2214 # run `make install-strip'. However `strip' might not be the right
2215 # tool to use in cross-compilation environments, therefore Automake
2216 # will honor the `STRIP' environment variable to overrule this program.
2217 if test "$cross_compiling" != no; then
2218 if test -n "$ac_tool_prefix"; then
2219 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2220 set dummy ${ac_tool_prefix}strip; ac_word=$2
2221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2223 if test "${ac_cv_prog_STRIP+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226 if test -n "$STRIP"; then
2227 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2228 else
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232 IFS=$as_save_IFS
2233 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2236 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 break 2
2239 fi
2240 done
2241 done
2242 IFS=$as_save_IFS
2243
2244 fi
2245 fi
2246 STRIP=$ac_cv_prog_STRIP
2247 if test -n "$STRIP"; then
2248 { echo "$as_me:$LINENO: result: $STRIP" >&5
2249 echo "${ECHO_T}$STRIP" >&6; }
2250 else
2251 { echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6; }
2253 fi
2254
2255
2256 fi
2257 if test -z "$ac_cv_prog_STRIP"; then
2258 ac_ct_STRIP=$STRIP
2259 # Extract the first word of "strip", so it can be a program name with args.
2260 set dummy strip; ac_word=$2
2261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2263 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266 if test -n "$ac_ct_STRIP"; then
2267 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2271 do
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2276 ac_cv_prog_ac_ct_STRIP="strip"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 break 2
2279 fi
2280 done
2281 done
2282 IFS=$as_save_IFS
2283
2284 fi
2285 fi
2286 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2287 if test -n "$ac_ct_STRIP"; then
2288 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2289 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2290 else
2291 { echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6; }
2293 fi
2294
2295 if test "x$ac_ct_STRIP" = x; then
2296 STRIP=":"
2297 else
2298 case $cross_compiling:$ac_tool_warned in
2299 yes:)
2300 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2301 whose name does not start with the host triplet. If you think this
2302 configuration is useful to you, please write to [email protected]." >&5
2303 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2304 whose name does not start with the host triplet. If you think this
2305 configuration is useful to you, please write to [email protected]." >&2;}
2306 ac_tool_warned=yes ;;
2307 esac
2308 STRIP=$ac_ct_STRIP
2309 fi
2310 else
2311 STRIP="$ac_cv_prog_STRIP"
2312 fi
2313
2314 fi
2315 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2316
2317 # We need awk for the "check" target. The system "awk" is bad on
2318 # some platforms.
2319 # Always define AMTAR for backward compatibility.
2320
2321 AMTAR=${AMTAR-"${am_missing_run}tar"}
2322
2323 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2324
2325
2326
2327
2328
2329
2330 ac_config_headers="$ac_config_headers config.h"
2331
2332 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2333 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2334 # Check whether --enable-maintainer-mode was given.
2335 if test "${enable_maintainer_mode+set}" = set; then
2336 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2337 else
2338 USE_MAINTAINER_MODE=no
2339 fi
2340
2341 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2342 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2343
2344
2345 if test $USE_MAINTAINER_MODE = yes; then
2346 MAINTAINER_MODE_TRUE=
2347 MAINTAINER_MODE_FALSE='#'
2348 else
2349 MAINTAINER_MODE_TRUE='#'
2350 MAINTAINER_MODE_FALSE=
2351 fi
2352
2353 MAINT=$MAINTAINER_MODE_TRUE
2354
2355
2356
2357
2358 ac_ext=c
2359 ac_cpp='$CPP $CPPFLAGS'
2360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363 if test -n "$ac_tool_prefix"; then
2364 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2365 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2368 if test "${ac_cv_prog_CC+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371 if test -n "$CC"; then
2372 ac_cv_prog_CC="$CC" # Let the user override the test.
2373 else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2376 do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 2
2384 fi
2385 done
2386 done
2387 IFS=$as_save_IFS
2388
2389 fi
2390 fi
2391 CC=$ac_cv_prog_CC
2392 if test -n "$CC"; then
2393 { echo "$as_me:$LINENO: result: $CC" >&5
2394 echo "${ECHO_T}$CC" >&6; }
2395 else
2396 { echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6; }
2398 fi
2399
2400
2401 fi
2402 if test -z "$ac_cv_prog_CC"; then
2403 ac_ct_CC=$CC
2404 # Extract the first word of "gcc", so it can be a program name with args.
2405 set dummy gcc; ac_word=$2
2406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411 if test -n "$ac_ct_CC"; then
2412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2421 ac_cv_prog_ac_ct_CC="gcc"
2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 break 2
2424 fi
2425 done
2426 done
2427 IFS=$as_save_IFS
2428
2429 fi
2430 fi
2431 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2432 if test -n "$ac_ct_CC"; then
2433 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2434 echo "${ECHO_T}$ac_ct_CC" >&6; }
2435 else
2436 { echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6; }
2438 fi
2439
2440 if test "x$ac_ct_CC" = x; then
2441 CC=""
2442 else
2443 case $cross_compiling:$ac_tool_warned in
2444 yes:)
2445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2446 whose name does not start with the host triplet. If you think this
2447 configuration is useful to you, please write to [email protected]." >&5
2448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2449 whose name does not start with the host triplet. If you think this
2450 configuration is useful to you, please write to [email protected]." >&2;}
2451 ac_tool_warned=yes ;;
2452 esac
2453 CC=$ac_ct_CC
2454 fi
2455 else
2456 CC="$ac_cv_prog_CC"
2457 fi
2458
2459 if test -z "$CC"; then
2460 if test -n "$ac_tool_prefix"; then
2461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2462 set dummy ${ac_tool_prefix}cc; ac_word=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_CC+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC="$CC" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 ac_cv_prog_CC="${ac_tool_prefix}cc"
2479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480 break 2
2481 fi
2482 done
2483 done
2484 IFS=$as_save_IFS
2485
2486 fi
2487 fi
2488 CC=$ac_cv_prog_CC
2489 if test -n "$CC"; then
2490 { echo "$as_me:$LINENO: result: $CC" >&5
2491 echo "${ECHO_T}$CC" >&6; }
2492 else
2493 { echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6; }
2495 fi
2496
2497
2498 fi
2499 fi
2500 if test -z "$CC"; then
2501 # Extract the first word of "cc", so it can be a program name with args.
2502 set dummy cc; ac_word=$2
2503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2505 if test "${ac_cv_prog_CC+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508 if test -n "$CC"; then
2509 ac_cv_prog_CC="$CC" # Let the user override the test.
2510 else
2511 ac_prog_rejected=no
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2520 ac_prog_rejected=yes
2521 continue
2522 fi
2523 ac_cv_prog_CC="cc"
2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2526 fi
2527 done
2528 done
2529 IFS=$as_save_IFS
2530
2531 if test $ac_prog_rejected = yes; then
2532 # We found a bogon in the path, so make sure we never use it.
2533 set dummy $ac_cv_prog_CC
2534 shift
2535 if test $# != 0; then
2536 # We chose a different compiler from the bogus one.
2537 # However, it has the same basename, so the bogon will be chosen
2538 # first if we set CC to just the basename; use the full file name.
2539 shift
2540 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2541 fi
2542 fi
2543 fi
2544 fi
2545 CC=$ac_cv_prog_CC
2546 if test -n "$CC"; then
2547 { echo "$as_me:$LINENO: result: $CC" >&5
2548 echo "${ECHO_T}$CC" >&6; }
2549 else
2550 { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2552 fi
2553
2554
2555 fi
2556 if test -z "$CC"; then
2557 if test -n "$ac_tool_prefix"; then
2558 for ac_prog in cl.exe
2559 do
2560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2580 fi
2581 done
2582 done
2583 IFS=$as_save_IFS
2584
2585 fi
2586 fi
2587 CC=$ac_cv_prog_CC
2588 if test -n "$CC"; then
2589 { echo "$as_me:$LINENO: result: $CC" >&5
2590 echo "${ECHO_T}$CC" >&6; }
2591 else
2592 { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2594 fi
2595
2596
2597 test -n "$CC" && break
2598 done
2599 fi
2600 if test -z "$CC"; then
2601 ac_ct_CC=$CC
2602 for ac_prog in cl.exe
2603 do
2604 # Extract the first word of "$ac_prog", so it can be a program name with args.
2605 set dummy $ac_prog; ac_word=$2
2606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611 if test -n "$ac_ct_CC"; then
2612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 ac_cv_prog_ac_ct_CC="$ac_prog"
2622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2624 fi
2625 done
2626 done
2627 IFS=$as_save_IFS
2628
2629 fi
2630 fi
2631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2632 if test -n "$ac_ct_CC"; then
2633 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2634 echo "${ECHO_T}$ac_ct_CC" >&6; }
2635 else
2636 { echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6; }
2638 fi
2639
2640
2641 test -n "$ac_ct_CC" && break
2642 done
2643
2644 if test "x$ac_ct_CC" = x; then
2645 CC=""
2646 else
2647 case $cross_compiling:$ac_tool_warned in
2648 yes:)
2649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2650 whose name does not start with the host triplet. If you think this
2651 configuration is useful to you, please write to [email protected]." >&5
2652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2653 whose name does not start with the host triplet. If you think this
2654 configuration is useful to you, please write to [email protected]." >&2;}
2655 ac_tool_warned=yes ;;
2656 esac
2657 CC=$ac_ct_CC
2658 fi
2659 fi
2660
2661 fi
2662
2663
2664 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: no acceptable C compiler found in \$PATH
2667 See \`config.log' for more details." >&2;}
2668 { (exit 1); exit 1; }; }
2669
2670 # Provide some information about the compiler.
2671 echo "$as_me:$LINENO: checking for C compiler version" >&5
2672 ac_compiler=`set X $ac_compile; echo $2`
2673 { (ac_try="$ac_compiler --version >&5"
2674 case "(($ac_try" in
2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676 *) ac_try_echo=$ac_try;;
2677 esac
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679 (eval "$ac_compiler --version >&5") 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }
2683 { (ac_try="$ac_compiler -v >&5"
2684 case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687 esac
2688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689 (eval "$ac_compiler -v >&5") 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2693 { (ac_try="$ac_compiler -V >&5"
2694 case "(($ac_try" in
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2697 esac
2698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699 (eval "$ac_compiler -V >&5") 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }
2703
2704 cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h. */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2710
2711 int
2712 main ()
2713 {
2714
2715 ;
2716 return 0;
2717 }
2718 _ACEOF
2719 ac_clean_files_save=$ac_clean_files
2720 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2721 # Try to create an executable without -o first, disregard a.out.
2722 # It will help us diagnose broken compilers, and finding out an intuition
2723 # of exeext.
2724 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2725 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2726 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2727 #
2728 # List of possible output files, starting from the most likely.
2729 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2730 # only as a last resort. b.out is created by i960 compilers.
2731 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2732 #
2733 # The IRIX 6 linker writes into existing files which may not be
2734 # executable, retaining their permissions. Remove them first so a
2735 # subsequent execution test works.
2736 ac_rmfiles=
2737 for ac_file in $ac_files
2738 do
2739 case $ac_file in
2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2741 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2742 esac
2743 done
2744 rm -f $ac_rmfiles
2745
2746 if { (ac_try="$ac_link_default"
2747 case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750 esac
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_link_default") 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; then
2756 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2757 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2758 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2759 # so that the user can short-circuit this test for compilers unknown to
2760 # Autoconf.
2761 for ac_file in $ac_files ''
2762 do
2763 test -f "$ac_file" || continue
2764 case $ac_file in
2765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2766 ;;
2767 [ab].out )
2768 # We found the default executable, but exeext='' is most
2769 # certainly right.
2770 break;;
2771 *.* )
2772 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2773 then :; else
2774 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2775 fi
2776 # We set ac_cv_exeext here because the later test for it is not
2777 # safe: cross compilers may not add the suffix if given an `-o'
2778 # argument, so we may need to know it at that point already.
2779 # Even if this section looks crufty: it has the advantage of
2780 # actually working.
2781 break;;
2782 * )
2783 break;;
2784 esac
2785 done
2786 test "$ac_cv_exeext" = no && ac_cv_exeext=
2787
2788 else
2789 ac_file=''
2790 fi
2791
2792 { echo "$as_me:$LINENO: result: $ac_file" >&5
2793 echo "${ECHO_T}$ac_file" >&6; }
2794 if test -z "$ac_file"; then
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2797
2798 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2799 See \`config.log' for more details." >&5
2800 echo "$as_me: error: C compiler cannot create executables
2801 See \`config.log' for more details." >&2;}
2802 { (exit 77); exit 77; }; }
2803 fi
2804
2805 ac_exeext=$ac_cv_exeext
2806
2807 # Check that the compiler produces executables we can run. If not, either
2808 # the compiler is broken, or we cross compile.
2809 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2810 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2811 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2812 # If not cross compiling, check that we can run a simple program.
2813 if test "$cross_compiling" != yes; then
2814 if { ac_try='./$ac_file'
2815 { (case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818 esac
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_try") 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2824 cross_compiling=no
2825 else
2826 if test "$cross_compiling" = maybe; then
2827 cross_compiling=yes
2828 else
2829 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2830 If you meant to cross compile, use \`--host'.
2831 See \`config.log' for more details." >&5
2832 echo "$as_me: error: cannot run C compiled programs.
2833 If you meant to cross compile, use \`--host'.
2834 See \`config.log' for more details." >&2;}
2835 { (exit 1); exit 1; }; }
2836 fi
2837 fi
2838 fi
2839 { echo "$as_me:$LINENO: result: yes" >&5
2840 echo "${ECHO_T}yes" >&6; }
2841
2842 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2843 ac_clean_files=$ac_clean_files_save
2844 # Check that the compiler produces executables we can run. If not, either
2845 # the compiler is broken, or we cross compile.
2846 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2847 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2848 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2849 echo "${ECHO_T}$cross_compiling" >&6; }
2850
2851 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2852 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2853 if { (ac_try="$ac_link"
2854 case "(($ac_try" in
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2857 esac
2858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859 (eval "$ac_link") 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; then
2863 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2864 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2865 # work properly (i.e., refer to `conftest.exe'), while it won't with
2866 # `rm'.
2867 for ac_file in conftest.exe conftest conftest.*; do
2868 test -f "$ac_file" || continue
2869 case $ac_file in
2870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2871 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2872 break;;
2873 * ) break;;
2874 esac
2875 done
2876 else
2877 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2878 See \`config.log' for more details." >&5
2879 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2880 See \`config.log' for more details." >&2;}
2881 { (exit 1); exit 1; }; }
2882 fi
2883
2884 rm -f conftest$ac_cv_exeext
2885 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2886 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2887
2888 rm -f conftest.$ac_ext
2889 EXEEXT=$ac_cv_exeext
2890 ac_exeext=$EXEEXT
2891 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2892 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2893 if test "${ac_cv_objext+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896 cat >conftest.$ac_ext <<_ACEOF
2897 /* confdefs.h. */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2902
2903 int
2904 main ()
2905 {
2906
2907 ;
2908 return 0;
2909 }
2910 _ACEOF
2911 rm -f conftest.o conftest.obj
2912 if { (ac_try="$ac_compile"
2913 case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compile") 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; then
2922 for ac_file in conftest.o conftest.obj conftest.*; do
2923 test -f "$ac_file" || continue;
2924 case $ac_file in
2925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2926 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2927 break;;
2928 esac
2929 done
2930 else
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2933
2934 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2935 See \`config.log' for more details." >&5
2936 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2937 See \`config.log' for more details." >&2;}
2938 { (exit 1); exit 1; }; }
2939 fi
2940
2941 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2942 fi
2943 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2944 echo "${ECHO_T}$ac_cv_objext" >&6; }
2945 OBJEXT=$ac_cv_objext
2946 ac_objext=$OBJEXT
2947 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2948 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2949 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952 cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h. */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2958
2959 int
2960 main ()
2961 {
2962 #ifndef __GNUC__
2963 choke me
2964 #endif
2965
2966 ;
2967 return 0;
2968 }
2969 _ACEOF
2970 rm -f conftest.$ac_objext
2971 if { (ac_try="$ac_compile"
2972 case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compile") 2>conftest.er1
2978 ac_status=$?
2979 grep -v '^ *+' conftest.er1 >conftest.err
2980 rm -f conftest.er1
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } && {
2984 test -z "$ac_c_werror_flag" ||
2985 test ! -s conftest.err
2986 } && test -s conftest.$ac_objext; then
2987 ac_compiler_gnu=yes
2988 else
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 ac_compiler_gnu=no
2993 fi
2994
2995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2997
2998 fi
2999 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3000 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3001 GCC=`test $ac_compiler_gnu = yes && echo yes`
3002 ac_test_CFLAGS=${CFLAGS+set}
3003 ac_save_CFLAGS=$CFLAGS
3004 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3005 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3006 if test "${ac_cv_prog_cc_g+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009 ac_save_c_werror_flag=$ac_c_werror_flag
3010 ac_c_werror_flag=yes
3011 ac_cv_prog_cc_g=no
3012 CFLAGS="-g"
3013 cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h. */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3019
3020 int
3021 main ()
3022 {
3023
3024 ;
3025 return 0;
3026 }
3027 _ACEOF
3028 rm -f conftest.$ac_objext
3029 if { (ac_try="$ac_compile"
3030 case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_compile") 2>conftest.er1
3036 ac_status=$?
3037 grep -v '^ *+' conftest.er1 >conftest.err
3038 rm -f conftest.er1
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } && {
3042 test -z "$ac_c_werror_flag" ||
3043 test ! -s conftest.err
3044 } && test -s conftest.$ac_objext; then
3045 ac_cv_prog_cc_g=yes
3046 else
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 CFLAGS=""
3051 cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h. */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057
3058 int
3059 main ()
3060 {
3061
3062 ;
3063 return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3068 case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>conftest.er1
3074 ac_status=$?
3075 grep -v '^ *+' conftest.er1 >conftest.err
3076 rm -f conftest.er1
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } && {
3080 test -z "$ac_c_werror_flag" ||
3081 test ! -s conftest.err
3082 } && test -s conftest.$ac_objext; then
3083 :
3084 else
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 ac_c_werror_flag=$ac_save_c_werror_flag
3089 CFLAGS="-g"
3090 cat >conftest.$ac_ext <<_ACEOF
3091 /* confdefs.h. */
3092 _ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h. */
3096
3097 int
3098 main ()
3099 {
3100
3101 ;
3102 return 0;
3103 }
3104 _ACEOF
3105 rm -f conftest.$ac_objext
3106 if { (ac_try="$ac_compile"
3107 case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_compile") 2>conftest.er1
3113 ac_status=$?
3114 grep -v '^ *+' conftest.er1 >conftest.err
3115 rm -f conftest.er1
3116 cat conftest.err >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); } && {
3119 test -z "$ac_c_werror_flag" ||
3120 test ! -s conftest.err
3121 } && test -s conftest.$ac_objext; then
3122 ac_cv_prog_cc_g=yes
3123 else
3124 echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3126
3127
3128 fi
3129
3130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3131 fi
3132
3133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134 fi
3135
3136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137 ac_c_werror_flag=$ac_save_c_werror_flag
3138 fi
3139 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3140 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3141 if test "$ac_test_CFLAGS" = set; then
3142 CFLAGS=$ac_save_CFLAGS
3143 elif test $ac_cv_prog_cc_g = yes; then
3144 if test "$GCC" = yes; then
3145 CFLAGS="-g -O2"
3146 else
3147 CFLAGS="-g"
3148 fi
3149 else
3150 if test "$GCC" = yes; then
3151 CFLAGS="-O2"
3152 else
3153 CFLAGS=
3154 fi
3155 fi
3156 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3157 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3158 if test "${ac_cv_prog_cc_c89+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161 ac_cv_prog_cc_c89=no
3162 ac_save_CC=$CC
3163 cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h. */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3169 #include <stdarg.h>
3170 #include <stdio.h>
3171 #include <sys/types.h>
3172 #include <sys/stat.h>
3173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3174 struct buf { int x; };
3175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3176 static char *e (p, i)
3177 char **p;
3178 int i;
3179 {
3180 return p[i];
3181 }
3182 static char *f (char * (*g) (char **, int), char **p, ...)
3183 {
3184 char *s;
3185 va_list v;
3186 va_start (v,p);
3187 s = g (p, va_arg (v,int));
3188 va_end (v);
3189 return s;
3190 }
3191
3192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3193 function prototypes and stuff, but not '\xHH' hex character constants.
3194 These don't provoke an error unfortunately, instead are silently treated
3195 as 'x'. The following induces an error, until -std is added to get
3196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3197 array size at least. It's necessary to write '\x00'==0 to get something
3198 that's true only with -std. */
3199 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3200
3201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3202 inside strings and character constants. */
3203 #define FOO(x) 'x'
3204 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3205
3206 int test (int i, double x);
3207 struct s1 {int (*f) (int a);};
3208 struct s2 {int (*f) (double a);};
3209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3210 int argc;
3211 char **argv;
3212 int
3213 main ()
3214 {
3215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3216 ;
3217 return 0;
3218 }
3219 _ACEOF
3220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3222 do
3223 CC="$ac_save_CC $ac_arg"
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } && {
3238 test -z "$ac_c_werror_flag" ||
3239 test ! -s conftest.err
3240 } && test -s conftest.$ac_objext; then
3241 ac_cv_prog_cc_c89=$ac_arg
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246
3247 fi
3248
3249 rm -f core conftest.err conftest.$ac_objext
3250 test "x$ac_cv_prog_cc_c89" != "xno" && break
3251 done
3252 rm -f conftest.$ac_ext
3253 CC=$ac_save_CC
3254
3255 fi
3256 # AC_CACHE_VAL
3257 case "x$ac_cv_prog_cc_c89" in
3258 x)
3259 { echo "$as_me:$LINENO: result: none needed" >&5
3260 echo "${ECHO_T}none needed" >&6; } ;;
3261 xno)
3262 { echo "$as_me:$LINENO: result: unsupported" >&5
3263 echo "${ECHO_T}unsupported" >&6; } ;;
3264 *)
3265 CC="$CC $ac_cv_prog_cc_c89"
3266 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3267 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3268 esac
3269
3270
3271 ac_ext=c
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 DEPDIR="${am__leading_dot}deps"
3277
3278 ac_config_commands="$ac_config_commands depfiles"
3279
3280
3281 am_make=${MAKE-make}
3282 cat > confinc << 'END'
3283 am__doit:
3284 @echo done
3285 .PHONY: am__doit
3286 END
3287 # If we don't find an include directive, just comment out the code.
3288 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3289 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3290 am__include="#"
3291 am__quote=
3292 _am_result=none
3293 # First try GNU make style include.
3294 echo "include confinc" > confmf
3295 # We grep out `Entering directory' and `Leaving directory'
3296 # messages which can occur if `w' ends up in MAKEFLAGS.
3297 # In particular we don't look at `^make:' because GNU make might
3298 # be invoked under some other name (usually "gmake"), in which
3299 # case it prints its new name instead of `make'.
3300 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3301 am__include=include
3302 am__quote=
3303 _am_result=GNU
3304 fi
3305 # Now try BSD make style include.
3306 if test "$am__include" = "#"; then
3307 echo '.include "confinc"' > confmf
3308 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3309 am__include=.include
3310 am__quote="\""
3311 _am_result=BSD
3312 fi
3313 fi
3314
3315
3316 { echo "$as_me:$LINENO: result: $_am_result" >&5
3317 echo "${ECHO_T}$_am_result" >&6; }
3318 rm -f confinc confmf
3319
3320 # Check whether --enable-dependency-tracking was given.
3321 if test "${enable_dependency_tracking+set}" = set; then
3322 enableval=$enable_dependency_tracking;
3323 fi
3324
3325 if test "x$enable_dependency_tracking" != xno; then
3326 am_depcomp="$ac_aux_dir/depcomp"
3327 AMDEPBACKSLASH='\'
3328 fi
3329
3330
3331 if test "x$enable_dependency_tracking" != xno; then
3332 AMDEP_TRUE=
3333 AMDEP_FALSE='#'
3334 else
3335 AMDEP_TRUE='#'
3336 AMDEP_FALSE=
3337 fi
3338
3339
3340
3341
3342 depcc="$CC" am_compiler_list=
3343
3344 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3345 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3346 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3350 # We make a subdir and do the tests there. Otherwise we can end up
3351 # making bogus files that we don't know about and never remove. For
3352 # instance it was reported that on HP-UX the gcc test will end up
3353 # making a dummy file named `D' -- because `-MD' means `put the output
3354 # in D'.
3355 mkdir conftest.dir
3356 # Copy depcomp to subdir because otherwise we won't find it if we're
3357 # using a relative directory.
3358 cp "$am_depcomp" conftest.dir
3359 cd conftest.dir
3360 # We will build objects and dependencies in a subdirectory because
3361 # it helps to detect inapplicable dependency modes. For instance
3362 # both Tru64's cc and ICC support -MD to output dependencies as a
3363 # side effect of compilation, but ICC will put the dependencies in
3364 # the current directory while Tru64 will put them in the object
3365 # directory.
3366 mkdir sub
3367
3368 am_cv_CC_dependencies_compiler_type=none
3369 if test "$am_compiler_list" = ""; then
3370 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3371 fi
3372 for depmode in $am_compiler_list; do
3373 # Setup a source with many dependencies, because some compilers
3374 # like to wrap large dependency lists on column 80 (with \), and
3375 # we should not choose a depcomp mode which is confused by this.
3376 #
3377 # We need to recreate these files for each test, as the compiler may
3378 # overwrite some of them when testing with obscure command lines.
3379 # This happens at least with the AIX C compiler.
3380 : > sub/conftest.c
3381 for i in 1 2 3 4 5 6; do
3382 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3383 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3384 # Solaris 8's {/usr,}/bin/sh.
3385 touch sub/conftst$i.h
3386 done
3387 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3388
3389 case $depmode in
3390 nosideeffect)
3391 # after this tag, mechanisms are not by side-effect, so they'll
3392 # only be used when explicitly requested
3393 if test "x$enable_dependency_tracking" = xyes; then
3394 continue
3395 else
3396 break
3397 fi
3398 ;;
3399 none) break ;;
3400 esac
3401 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3402 # mode. It turns out that the SunPro C++ compiler does not properly
3403 # handle `-M -o', and we need to detect this.
3404 if depmode=$depmode \
3405 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3406 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3407 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3408 >/dev/null 2>conftest.err &&
3409 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3410 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3411 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3412 # icc doesn't choke on unknown options, it will just issue warnings
3413 # or remarks (even with -Werror). So we grep stderr for any message
3414 # that says an option was ignored or not supported.
3415 # When given -MP, icc 7.0 and 7.1 complain thusly:
3416 # icc: Command line warning: ignoring option '-M'; no argument required
3417 # The diagnosis changed in icc 8.0:
3418 # icc: Command line remark: option '-MP' not supported
3419 if (grep 'ignoring option' conftest.err ||
3420 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3421 am_cv_CC_dependencies_compiler_type=$depmode
3422 break
3423 fi
3424 fi
3425 done
3426
3427 cd ..
3428 rm -rf conftest.dir
3429 else
3430 am_cv_CC_dependencies_compiler_type=none
3431 fi
3432
3433 fi
3434 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3435 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3436 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3437
3438
3439
3440 if
3441 test "x$enable_dependency_tracking" != xno \
3442 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3443 am__fastdepCC_TRUE=
3444 am__fastdepCC_FALSE='#'
3445 else
3446 am__fastdepCC_TRUE='#'
3447 am__fastdepCC_FALSE=
3448 fi
3449
3450
3451 if test -n "$ac_tool_prefix"; then
3452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3456 if test "${ac_cv_prog_RANLIB+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459 if test -n "$RANLIB"; then
3460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2
3472 fi
3473 done
3474 done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
3479 RANLIB=$ac_cv_prog_RANLIB
3480 if test -n "$RANLIB"; then
3481 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3482 echo "${ECHO_T}$RANLIB" >&6; }
3483 else
3484 { echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6; }
3486 fi
3487
3488
3489 fi
3490 if test -z "$ac_cv_prog_RANLIB"; then
3491 ac_ct_RANLIB=$RANLIB
3492 # Extract the first word of "ranlib", so it can be a program name with args.
3493 set dummy ranlib; ac_word=$2
3494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3496 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 else
3499 if test -n "$ac_ct_RANLIB"; then
3500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_ac_ct_RANLIB="ranlib"
3510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3512 fi
3513 done
3514 done
3515 IFS=$as_save_IFS
3516
3517 fi
3518 fi
3519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3520 if test -n "$ac_ct_RANLIB"; then
3521 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3522 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3523 else
3524 { echo "$as_me:$LINENO: result: no" >&5
3525 echo "${ECHO_T}no" >&6; }
3526 fi
3527
3528 if test "x$ac_ct_RANLIB" = x; then
3529 RANLIB=":"
3530 else
3531 case $cross_compiling:$ac_tool_warned in
3532 yes:)
3533 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3534 whose name does not start with the host triplet. If you think this
3535 configuration is useful to you, please write to [email protected]." >&5
3536 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3537 whose name does not start with the host triplet. If you think this
3538 configuration is useful to you, please write to [email protected]." >&2;}
3539 ac_tool_warned=yes ;;
3540 esac
3541 RANLIB=$ac_ct_RANLIB
3542 fi
3543 else
3544 RANLIB="$ac_cv_prog_RANLIB"
3545 fi
3546
3547 # Find a good install program. We prefer a C program (faster),
3548 # so one script is as good as another. But avoid the broken or
3549 # incompatible versions:
3550 # SysV /etc/install, /usr/sbin/install
3551 # SunOS /usr/etc/install
3552 # IRIX /sbin/install
3553 # AIX /bin/install
3554 # AmigaOS /C/install, which installs bootblocks on floppy discs
3555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3558 # OS/2's system install, which has a completely different semantic
3559 # ./install, which can be erroneously created by make from ./install.sh.
3560 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3561 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3562 if test -z "$INSTALL"; then
3563 if test "${ac_cv_path_install+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 # Account for people who put trailing slashes in PATH elements.
3572 case $as_dir/ in
3573 ./ | .// | /cC/* | \
3574 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3575 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3576 /usr/ucb/* ) ;;
3577 *)
3578 # OSF1 and SCO ODT 3.0 have their own names for install.
3579 # Don't use installbsd from OSF since it installs stuff as root
3580 # by default.
3581 for ac_prog in ginstall scoinst install; do
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3584 if test $ac_prog = install &&
3585 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3586 # AIX install. It has an incompatible calling convention.
3587 :
3588 elif test $ac_prog = install &&
3589 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3590 # program-specific install script used by HP pwplus--don't use.
3591 :
3592 else
3593 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3594 break 3
3595 fi
3596 fi
3597 done
3598 done
3599 ;;
3600 esac
3601 done
3602 IFS=$as_save_IFS
3603
3604
3605 fi
3606 if test "${ac_cv_path_install+set}" = set; then
3607 INSTALL=$ac_cv_path_install
3608 else
3609 # As a last resort, use the slow shell script. Don't cache a
3610 # value for INSTALL within a source directory, because that will
3611 # break other packages using the cache if that directory is
3612 # removed, or if the value is a relative name.
3613 INSTALL=$ac_install_sh
3614 fi
3615 fi
3616 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3617 echo "${ECHO_T}$INSTALL" >&6; }
3618
3619 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3620 # It thinks the first close brace ends the variable substitution.
3621 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3622
3623 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3624
3625 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3626
3627
3628 for ac_prog in 'bison -y' byacc
3629 do
3630 # Extract the first word of "$ac_prog", so it can be a program name with args.
3631 set dummy $ac_prog; ac_word=$2
3632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3634 if test "${ac_cv_prog_YACC+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637 if test -n "$YACC"; then
3638 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3639 else
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3642 do
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3647 ac_cv_prog_YACC="$ac_prog"
3648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 break 2
3650 fi
3651 done
3652 done
3653 IFS=$as_save_IFS
3654
3655 fi
3656 fi
3657 YACC=$ac_cv_prog_YACC
3658 if test -n "$YACC"; then
3659 { echo "$as_me:$LINENO: result: $YACC" >&5
3660 echo "${ECHO_T}$YACC" >&6; }
3661 else
3662 { echo "$as_me:$LINENO: result: no" >&5
3663 echo "${ECHO_T}no" >&6; }
3664 fi
3665
3666
3667 test -n "$YACC" && break
3668 done
3669 test -n "$YACC" || YACC="yacc"
3670
3671 if test "$YACC" != "bison -y";
3672 then
3673 echo "LifeLines requires GNU Bison to compile src/interp/yacc.y."
3674 exit
3675 fi
3676
3677
3678 ALL_LINGUAS="da de el eo es fr it nl pl rw sv"
3679
3680 MKINSTALLDIRS=
3681 if test -n "$ac_aux_dir"; then
3682 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3683 fi
3684 if test -z "$MKINSTALLDIRS"; then
3685 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3686 fi
3687
3688
3689
3690
3691
3692 # Extract the first word of "msgfmt", so it can be a program name with args.
3693 set dummy msgfmt; ac_word=$2
3694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3696 if test "${ac_cv_path_MSGFMT+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699 case "$MSGFMT" in
3700 /*)
3701 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3702 ;;
3703 *)
3704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3705 for ac_dir in $PATH; do
3706 test -z "$ac_dir" && ac_dir=.
3707 if test -f $ac_dir/$ac_word; then
3708 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3709 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3710 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3711 break
3712 fi
3713 fi
3714 done
3715 IFS="$ac_save_ifs"
3716 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3717 ;;
3718 esac
3719 fi
3720 MSGFMT="$ac_cv_path_MSGFMT"
3721 if test "$MSGFMT" != ":"; then
3722 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
3723 echo "${ECHO_T}$MSGFMT" >&6; }
3724 else
3725 { echo "$as_me:$LINENO: result: no" >&5
3726 echo "${ECHO_T}no" >&6; }
3727 fi
3728
3729 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3730 set dummy gmsgfmt; ac_word=$2
3731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3733 if test "${ac_cv_path_GMSGFMT+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 case $GMSGFMT in
3737 [\\/]* | ?:[\\/]*)
3738 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3739 ;;
3740 *)
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3751 fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3755
3756 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3757 ;;
3758 esac
3759 fi
3760 GMSGFMT=$ac_cv_path_GMSGFMT
3761 if test -n "$GMSGFMT"; then
3762 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3763 echo "${ECHO_T}$GMSGFMT" >&6; }
3764 else
3765 { echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; }
3767 fi
3768
3769
3770
3771 # Extract the first word of "xgettext", so it can be a program name with args.
3772 set dummy xgettext; ac_word=$2
3773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3775 if test "${ac_cv_path_XGETTEXT+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778 case "$XGETTEXT" in
3779 /*)
3780 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3781 ;;
3782 *)
3783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3784 for ac_dir in $PATH; do
3785 test -z "$ac_dir" && ac_dir=.
3786 if test -f $ac_dir/$ac_word; then
3787 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3788 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3789 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3790 break
3791 fi
3792 fi
3793 done
3794 IFS="$ac_save_ifs"
3795 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3796 ;;
3797 esac
3798 fi
3799 XGETTEXT="$ac_cv_path_XGETTEXT"
3800 if test "$XGETTEXT" != ":"; then
3801 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3802 echo "${ECHO_T}$XGETTEXT" >&6; }
3803 else
3804 { echo "$as_me:$LINENO: result: no" >&5
3805 echo "${ECHO_T}no" >&6; }
3806 fi
3807
3808 rm -f messages.po
3809
3810 # Extract the first word of "msgmerge", so it can be a program name with args.
3811 set dummy msgmerge; ac_word=$2
3812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3814 if test "${ac_cv_path_MSGMERGE+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817 case "$MSGMERGE" in
3818 /*)
3819 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3820 ;;
3821 *)
3822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3823 for ac_dir in $PATH; do
3824 test -z "$ac_dir" && ac_dir=.
3825 if test -f $ac_dir/$ac_word; then
3826 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3827 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
3828 break
3829 fi
3830 fi
3831 done
3832 IFS="$ac_save_ifs"
3833 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3834 ;;
3835 esac
3836 fi
3837 MSGMERGE="$ac_cv_path_MSGMERGE"
3838 if test "$MSGMERGE" != ":"; then
3839 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3840 echo "${ECHO_T}$MSGMERGE" >&6; }
3841 else
3842 { echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6; }
3844 fi
3845
3846
3847 if test "$GMSGFMT" != ":"; then
3848 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3849 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3850 : ;
3851 else
3852 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3853 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3854 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3855 GMSGFMT=":"
3856 fi
3857 fi
3858
3859 if test "$XGETTEXT" != ":"; then
3860 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3861 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3862 : ;
3863 else
3864 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3865 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
3866 XGETTEXT=":"
3867 fi
3868 rm -f messages.po
3869 fi
3870
3871 ac_config_commands="$ac_config_commands default-1"
3872
3873
3874
3875
3876 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3877 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3878 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 ac_check_lib_save_LIBS=$LIBS
3882 LIBS="-lcposix $LIBS"
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889
3890 /* Override any GCC internal prototype to avoid an error.
3891 Use char because int might match the return type of a GCC
3892 builtin and then its argument prototype would still apply. */
3893 #ifdef __cplusplus
3894 extern "C"
3895 #endif
3896 char strerror ();
3897 int
3898 main ()
3899 {
3900 return strerror ();
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 rm -f conftest.$ac_objext conftest$ac_exeext
3906 if { (ac_try="$ac_link"
3907 case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3910 esac
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_link") 2>conftest.er1
3913 ac_status=$?
3914 grep -v '^ *+' conftest.er1 >conftest.err
3915 rm -f conftest.er1
3916 cat conftest.err >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } && {
3919 test -z "$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3921 } && test -s conftest$ac_exeext &&
3922 $as_test_x conftest$ac_exeext; then
3923 ac_cv_lib_cposix_strerror=yes
3924 else
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3927
3928 ac_cv_lib_cposix_strerror=no
3929 fi
3930
3931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3932 conftest$ac_exeext conftest.$ac_ext
3933 LIBS=$ac_check_lib_save_LIBS
3934 fi
3935 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3936 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3937 if test $ac_cv_lib_cposix_strerror = yes; then
3938 LIBS="$LIBS -lcposix"
3939 fi
3940
3941
3942
3943 ac_ext=c
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3949 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3950 # On Suns, sometimes $CPP names a directory.
3951 if test -n "$CPP" && test -d "$CPP"; then
3952 CPP=
3953 fi
3954 if test -z "$CPP"; then
3955 if test "${ac_cv_prog_CPP+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958 # Double quotes because CPP needs to be expanded
3959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3960 do
3961 ac_preproc_ok=false
3962 for ac_c_preproc_warn_flag in '' yes
3963 do
3964 # Use a header file that comes with gcc, so configuring glibc
3965 # with a fresh cross-compiler works.
3966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3967 # <limits.h> exists even on freestanding compilers.
3968 # On the NeXT, cc -E runs the code through the compiler's parser,
3969 # not just through cpp. "Syntax error" is here to catch this case.
3970 cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h. */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976 #ifdef __STDC__
3977 # include <limits.h>
3978 #else
3979 # include <assert.h>
3980 #endif
3981 Syntax error
3982 _ACEOF
3983 if { (ac_try="$ac_cpp conftest.$ac_ext"
3984 case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3987 esac
3988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3990 ac_status=$?
3991 grep -v '^ *+' conftest.er1 >conftest.err
3992 rm -f conftest.er1
3993 cat conftest.err >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } >/dev/null && {
3996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3997 test ! -s conftest.err
3998 }; then
3999 :
4000 else
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4003
4004 # Broken: fails on valid input.
4005 continue
4006 fi
4007
4008 rm -f conftest.err conftest.$ac_ext
4009
4010 # OK, works on sane cases. Now check whether nonexistent headers
4011 # can be detected and how.
4012 cat >conftest.$ac_ext <<_ACEOF
4013 /* confdefs.h. */
4014 _ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 #include <ac_nonexistent.h>
4019 _ACEOF
4020 if { (ac_try="$ac_cpp conftest.$ac_ext"
4021 case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024 esac
4025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4027 ac_status=$?
4028 grep -v '^ *+' conftest.er1 >conftest.err
4029 rm -f conftest.er1
4030 cat conftest.err >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } >/dev/null && {
4033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4034 test ! -s conftest.err
4035 }; then
4036 # Broken: success on invalid input.
4037 continue
4038 else
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042 # Passes both tests.
4043 ac_preproc_ok=:
4044 break
4045 fi
4046
4047 rm -f conftest.err conftest.$ac_ext
4048
4049 done
4050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4051 rm -f conftest.err conftest.$ac_ext
4052 if $ac_preproc_ok; then
4053 break
4054 fi
4055
4056 done
4057 ac_cv_prog_CPP=$CPP
4058
4059 fi
4060 CPP=$ac_cv_prog_CPP
4061 else
4062 ac_cv_prog_CPP=$CPP
4063 fi
4064 { echo "$as_me:$LINENO: result: $CPP" >&5
4065 echo "${ECHO_T}$CPP" >&6; }
4066 ac_preproc_ok=false
4067 for ac_c_preproc_warn_flag in '' yes
4068 do
4069 # Use a header file that comes with gcc, so configuring glibc
4070 # with a fresh cross-compiler works.
4071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4072 # <limits.h> exists even on freestanding compilers.
4073 # On the NeXT, cc -E runs the code through the compiler's parser,
4074 # not just through cpp. "Syntax error" is here to catch this case.
4075 cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h. */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4081 #ifdef __STDC__
4082 # include <limits.h>
4083 #else
4084 # include <assert.h>
4085 #endif
4086 Syntax error
4087 _ACEOF
4088 if { (ac_try="$ac_cpp conftest.$ac_ext"
4089 case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092 esac
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4095 ac_status=$?
4096 grep -v '^ *+' conftest.er1 >conftest.err
4097 rm -f conftest.er1
4098 cat conftest.err >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } >/dev/null && {
4101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4102 test ! -s conftest.err
4103 }; then
4104 :
4105 else
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109 # Broken: fails on valid input.
4110 continue
4111 fi
4112
4113 rm -f conftest.err conftest.$ac_ext
4114
4115 # OK, works on sane cases. Now check whether nonexistent headers
4116 # can be detected and how.
4117 cat >conftest.$ac_ext <<_ACEOF
4118 /* confdefs.h. */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4123 #include <ac_nonexistent.h>
4124 _ACEOF
4125 if { (ac_try="$ac_cpp conftest.$ac_ext"
4126 case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129 esac
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4132 ac_status=$?
4133 grep -v '^ *+' conftest.er1 >conftest.err
4134 rm -f conftest.er1
4135 cat conftest.err >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } >/dev/null && {
4138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4139 test ! -s conftest.err
4140 }; then
4141 # Broken: success on invalid input.
4142 continue
4143 else
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 # Passes both tests.
4148 ac_preproc_ok=:
4149 break
4150 fi
4151
4152 rm -f conftest.err conftest.$ac_ext
4153
4154 done
4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156 rm -f conftest.err conftest.$ac_ext
4157 if $ac_preproc_ok; then
4158 :
4159 else
4160 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4161 See \`config.log' for more details." >&5
4162 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4163 See \`config.log' for more details." >&2;}
4164 { (exit 1); exit 1; }; }
4165 fi
4166
4167 ac_ext=c
4168 ac_cpp='$CPP $CPPFLAGS'
4169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4172
4173
4174 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4175 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4176 if test "${ac_cv_path_GREP+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179 # Extract the first word of "grep ggrep" to use in msg output
4180 if test -z "$GREP"; then
4181 set dummy grep ggrep; ac_prog_name=$2
4182 if test "${ac_cv_path_GREP+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185 ac_path_GREP_found=false
4186 # Loop through the user's path and test for each of PROGNAME-LIST
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4189 do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_prog in grep ggrep; do
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4195 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4196 # Check for GNU ac_path_GREP and select it if it is found.
4197 # Check for GNU $ac_path_GREP
4198 case `"$ac_path_GREP" --version 2>&1` in
4199 *GNU*)
4200 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4201 *)
4202 ac_count=0
4203 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4204 while :
4205 do
4206 cat "conftest.in" "conftest.in" >"conftest.tmp"
4207 mv "conftest.tmp" "conftest.in"
4208 cp "conftest.in" "conftest.nl"
4209 echo 'GREP' >> "conftest.nl"
4210 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4212 ac_count=`expr $ac_count + 1`
4213 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4214 # Best one so far, save it but keep looking for a better one
4215 ac_cv_path_GREP="$ac_path_GREP"
4216 ac_path_GREP_max=$ac_count
4217 fi
4218 # 10*(2^10) chars as input seems more than enough
4219 test $ac_count -gt 10 && break
4220 done
4221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4222 esac
4223
4224
4225 $ac_path_GREP_found && break 3
4226 done
4227 done
4228
4229 done
4230 IFS=$as_save_IFS
4231
4232
4233 fi
4234
4235 GREP="$ac_cv_path_GREP"
4236 if test -z "$GREP"; then
4237 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4238 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4239 { (exit 1); exit 1; }; }
4240 fi
4241
4242 else
4243 ac_cv_path_GREP=$GREP
4244 fi
4245
4246
4247 fi
4248 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4249 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4250 GREP="$ac_cv_path_GREP"
4251
4252
4253 { echo "$as_me:$LINENO: checking for egrep" >&5
4254 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4255 if test "${ac_cv_path_EGREP+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4259 then ac_cv_path_EGREP="$GREP -E"
4260 else
4261 # Extract the first word of "egrep" to use in msg output
4262 if test -z "$EGREP"; then
4263 set dummy egrep; ac_prog_name=$2
4264 if test "${ac_cv_path_EGREP+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267 ac_path_EGREP_found=false
4268 # Loop through the user's path and test for each of PROGNAME-LIST
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4271 do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_prog in egrep; do
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4277 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4278 # Check for GNU ac_path_EGREP and select it if it is found.
4279 # Check for GNU $ac_path_EGREP
4280 case `"$ac_path_EGREP" --version 2>&1` in
4281 *GNU*)
4282 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4283 *)
4284 ac_count=0
4285 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4286 while :
4287 do
4288 cat "conftest.in" "conftest.in" >"conftest.tmp"
4289 mv "conftest.tmp" "conftest.in"
4290 cp "conftest.in" "conftest.nl"
4291 echo 'EGREP' >> "conftest.nl"
4292 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4294 ac_count=`expr $ac_count + 1`
4295 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4296 # Best one so far, save it but keep looking for a better one
4297 ac_cv_path_EGREP="$ac_path_EGREP"
4298 ac_path_EGREP_max=$ac_count
4299 fi
4300 # 10*(2^10) chars as input seems more than enough
4301 test $ac_count -gt 10 && break
4302 done
4303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4304 esac
4305
4306
4307 $ac_path_EGREP_found && break 3
4308 done
4309 done
4310
4311 done
4312 IFS=$as_save_IFS
4313
4314
4315 fi
4316
4317 EGREP="$ac_cv_path_EGREP"
4318 if test -z "$EGREP"; then
4319 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4320 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4321 { (exit 1); exit 1; }; }
4322 fi
4323
4324 else
4325 ac_cv_path_EGREP=$EGREP
4326 fi
4327
4328
4329 fi
4330 fi
4331 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4332 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4333 EGREP="$ac_cv_path_EGREP"
4334
4335
4336 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4337 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4338 if test "${ac_cv_header_stdc+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341 cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h. */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 #include <stdlib.h>
4348 #include <stdarg.h>
4349 #include <string.h>
4350 #include <float.h>
4351
4352 int
4353 main ()
4354 {
4355
4356 ;
4357 return 0;
4358 }
4359 _ACEOF
4360 rm -f conftest.$ac_objext
4361 if { (ac_try="$ac_compile"
4362 case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365 esac
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_compile") 2>conftest.er1
4368 ac_status=$?
4369 grep -v '^ *+' conftest.er1 >conftest.err
4370 rm -f conftest.er1
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } && {
4374 test -z "$ac_c_werror_flag" ||
4375 test ! -s conftest.err
4376 } && test -s conftest.$ac_objext; then
4377 ac_cv_header_stdc=yes
4378 else
4379 echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4381
4382 ac_cv_header_stdc=no
4383 fi
4384
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386
4387 if test $ac_cv_header_stdc = yes; then
4388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4389 cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h. */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4395 #include <string.h>
4396
4397 _ACEOF
4398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4399 $EGREP "memchr" >/dev/null 2>&1; then
4400 :
4401 else
4402 ac_cv_header_stdc=no
4403 fi
4404 rm -f conftest*
4405
4406 fi
4407
4408 if test $ac_cv_header_stdc = yes; then
4409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 #include <stdlib.h>
4417
4418 _ACEOF
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 $EGREP "free" >/dev/null 2>&1; then
4421 :
4422 else
4423 ac_cv_header_stdc=no
4424 fi
4425 rm -f conftest*
4426
4427 fi
4428
4429 if test $ac_cv_header_stdc = yes; then
4430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4431 if test "$cross_compiling" = yes; then
4432 :
4433 else
4434 cat >conftest.$ac_ext <<_ACEOF
4435 /* confdefs.h. */
4436 _ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4440 #include <ctype.h>
4441 #include <stdlib.h>
4442 #if ((' ' & 0x0FF) == 0x020)
4443 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4444 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4445 #else
4446 # define ISLOWER(c) \
4447 (('a' <= (c) && (c) <= 'i') \
4448 || ('j' <= (c) && (c) <= 'r') \
4449 || ('s' <= (c) && (c) <= 'z'))
4450 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4451 #endif
4452
4453 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4454 int
4455 main ()
4456 {
4457 int i;
4458 for (i = 0; i < 256; i++)
4459 if (XOR (islower (i), ISLOWER (i))
4460 || toupper (i) != TOUPPER (i))
4461 return 2;
4462 return 0;
4463 }
4464 _ACEOF
4465 rm -f conftest$ac_exeext
4466 if { (ac_try="$ac_link"
4467 case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4470 esac
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_link") 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4476 { (case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4479 esac
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_try") 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 :
4486 else
4487 echo "$as_me: program exited with status $ac_status" >&5
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4490
4491 ( exit $ac_status )
4492 ac_cv_header_stdc=no
4493 fi
4494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4495 fi
4496
4497
4498 fi
4499 fi
4500 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4501 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4502 if test $ac_cv_header_stdc = yes; then
4503
4504 cat >>confdefs.h <<\_ACEOF
4505 #define STDC_HEADERS 1
4506 _ACEOF
4507
4508 fi
4509
4510 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4511 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4512 if test "${ac_cv_c_const+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515 cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h. */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521
4522 int
4523 main ()
4524 {
4525 /* FIXME: Include the comments suggested by Paul. */
4526 #ifndef __cplusplus
4527 /* Ultrix mips cc rejects this. */
4528 typedef int charset[2];
4529 const charset cs;
4530 /* SunOS 4.1.1 cc rejects this. */
4531 char const *const *pcpcc;
4532 char **ppc;
4533 /* NEC SVR4.0.2 mips cc rejects this. */
4534 struct point {int x, y;};
4535 static struct point const zero = {0,0};
4536 /* AIX XL C 1.02.0.0 rejects this.
4537 It does not let you subtract one const X* pointer from another in
4538 an arm of an if-expression whose if-part is not a constant
4539 expression */
4540 const char *g = "string";
4541 pcpcc = &g + (g ? g-g : 0);
4542 /* HPUX 7.0 cc rejects these. */
4543 ++pcpcc;
4544 ppc = (char**) pcpcc;
4545 pcpcc = (char const *const *) ppc;
4546 { /* SCO 3.2v4 cc rejects this. */
4547 char *t;
4548 char const *s = 0 ? (char *) 0 : (char const *) 0;
4549
4550 *t++ = 0;
4551 if (s) return 0;
4552 }
4553 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4554 int x[] = {25, 17};
4555 const int *foo = &x[0];
4556 ++foo;
4557 }
4558 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4559 typedef const int *iptr;
4560 iptr p = 0;
4561 ++p;
4562 }
4563 { /* AIX XL C 1.02.0.0 rejects this saying
4564 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4565 struct s { int j; const int *ap[3]; };
4566 struct s *b; b->j = 5;
4567 }
4568 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4569 const int foo = 10;
4570 if (!foo) return 0;
4571 }
4572 return !cs[0] && !zero.x;
4573 #endif
4574
4575 ;
4576 return 0;
4577 }
4578 _ACEOF
4579 rm -f conftest.$ac_objext
4580 if { (ac_try="$ac_compile"
4581 case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584 esac
4585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586 (eval "$ac_compile") 2>conftest.er1
4587 ac_status=$?
4588 grep -v '^ *+' conftest.er1 >conftest.err
4589 rm -f conftest.er1
4590 cat conftest.err >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } && {
4593 test -z "$ac_c_werror_flag" ||
4594 test ! -s conftest.err
4595 } && test -s conftest.$ac_objext; then
4596 ac_cv_c_const=yes
4597 else
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4600
4601 ac_cv_c_const=no
4602 fi
4603
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 fi
4606 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4607 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4608 if test $ac_cv_c_const = no; then
4609
4610 cat >>confdefs.h <<\_ACEOF
4611 #define const
4612 _ACEOF
4613
4614 fi
4615
4616 { echo "$as_me:$LINENO: checking for inline" >&5
4617 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4618 if test "${ac_cv_c_inline+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621 ac_cv_c_inline=no
4622 for ac_kw in inline __inline__ __inline; do
4623 cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h. */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4629 #ifndef __cplusplus
4630 typedef int foo_t;
4631 static $ac_kw foo_t static_foo () {return 0; }
4632 $ac_kw foo_t foo () {return 0; }
4633 #endif
4634
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (ac_try="$ac_compile"
4638 case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_compile") 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } && {
4650 test -z "$ac_c_werror_flag" ||
4651 test ! -s conftest.err
4652 } && test -s conftest.$ac_objext; then
4653 ac_cv_c_inline=$ac_kw
4654 else
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4657
4658
4659 fi
4660
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 test "$ac_cv_c_inline" != no && break
4663 done
4664
4665 fi
4666 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4667 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4668
4669
4670 case $ac_cv_c_inline in
4671 inline | yes) ;;
4672 *)
4673 case $ac_cv_c_inline in
4674 no) ac_val=;;
4675 *) ac_val=$ac_cv_c_inline;;
4676 esac
4677 cat >>confdefs.h <<_ACEOF
4678 #ifndef __cplusplus
4679 #define inline $ac_val
4680 #endif
4681 _ACEOF
4682 ;;
4683 esac
4684
4685 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4696 inttypes.h stdint.h unistd.h
4697 do
4698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704 cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h. */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4710 $ac_includes_default
4711
4712 #include <$ac_header>
4713 _ACEOF
4714 rm -f conftest.$ac_objext
4715 if { (ac_try="$ac_compile"
4716 case "(($ac_try" in
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4719 esac
4720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4721 (eval "$ac_compile") 2>conftest.er1
4722 ac_status=$?
4723 grep -v '^ *+' conftest.er1 >conftest.err
4724 rm -f conftest.er1
4725 cat conftest.err >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } && {
4728 test -z "$ac_c_werror_flag" ||
4729 test ! -s conftest.err
4730 } && test -s conftest.$ac_objext; then
4731 eval "$as_ac_Header=yes"
4732 else
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4735
4736 eval "$as_ac_Header=no"
4737 fi
4738
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 fi
4741 ac_res=`eval echo '${'$as_ac_Header'}'`
4742 { echo "$as_me:$LINENO: result: $ac_res" >&5
4743 echo "${ECHO_T}$ac_res" >&6; }
4744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4745 cat >>confdefs.h <<_ACEOF
4746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4747 _ACEOF
4748
4749 fi
4750
4751 done
4752
4753
4754 { echo "$as_me:$LINENO: checking for off_t" >&5
4755 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
4756 if test "${ac_cv_type_off_t+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 else
4759 cat >conftest.$ac_ext <<_ACEOF
4760 /* confdefs.h. */
4761 _ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4765 $ac_includes_default
4766 typedef off_t ac__type_new_;
4767 int
4768 main ()
4769 {
4770 if ((ac__type_new_ *) 0)
4771 return 0;
4772 if (sizeof (ac__type_new_))
4773 return 0;
4774 ;
4775 return 0;
4776 }
4777 _ACEOF
4778 rm -f conftest.$ac_objext
4779 if { (ac_try="$ac_compile"
4780 case "(($ac_try" in
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4783 esac
4784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4785 (eval "$ac_compile") 2>conftest.er1
4786 ac_status=$?
4787 grep -v '^ *+' conftest.er1 >conftest.err
4788 rm -f conftest.er1
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } && {
4792 test -z "$ac_c_werror_flag" ||
4793 test ! -s conftest.err
4794 } && test -s conftest.$ac_objext; then
4795 ac_cv_type_off_t=yes
4796 else
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4799
4800 ac_cv_type_off_t=no
4801 fi
4802
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 fi
4805 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4806 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
4807 if test $ac_cv_type_off_t = yes; then
4808 :
4809 else
4810
4811 cat >>confdefs.h <<_ACEOF
4812 #define off_t long int
4813 _ACEOF
4814
4815 fi
4816
4817 { echo "$as_me:$LINENO: checking for size_t" >&5
4818 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4819 if test "${ac_cv_type_size_t+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822 cat >conftest.$ac_ext <<_ACEOF
4823 /* confdefs.h. */
4824 _ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4828 $ac_includes_default
4829 typedef size_t ac__type_new_;
4830 int
4831 main ()
4832 {
4833 if ((ac__type_new_ *) 0)
4834 return 0;
4835 if (sizeof (ac__type_new_))
4836 return 0;
4837 ;
4838 return 0;
4839 }
4840 _ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (ac_try="$ac_compile"
4843 case "(($ac_try" in
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4846 esac
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_compile") 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } && {
4855 test -z "$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4857 } && test -s conftest.$ac_objext; then
4858 ac_cv_type_size_t=yes
4859 else
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4862
4863 ac_cv_type_size_t=no
4864 fi
4865
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 fi
4868 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4869 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4870 if test $ac_cv_type_size_t = yes; then
4871 :
4872 else
4873
4874 cat >>confdefs.h <<_ACEOF
4875 #define size_t unsigned int
4876 _ACEOF
4877
4878 fi
4879
4880 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4881 # for constant arguments. Useless!
4882 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
4883 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
4884 if test "${ac_cv_working_alloca_h+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887 cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h. */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4893 #include <alloca.h>
4894 int
4895 main ()
4896 {
4897 char *p = (char *) alloca (2 * sizeof (int));
4898 if (p) return 0;
4899 ;
4900 return 0;
4901 }
4902 _ACEOF
4903 rm -f conftest.$ac_objext conftest$ac_exeext
4904 if { (ac_try="$ac_link"
4905 case "(($ac_try" in
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4908 esac
4909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910 (eval "$ac_link") 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && {
4917 test -z "$ac_c_werror_flag" ||
4918 test ! -s conftest.err
4919 } && test -s conftest$ac_exeext &&
4920 $as_test_x conftest$ac_exeext; then
4921 ac_cv_working_alloca_h=yes
4922 else
4923 echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4925
4926 ac_cv_working_alloca_h=no
4927 fi
4928
4929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4930 conftest$ac_exeext conftest.$ac_ext
4931 fi
4932 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4933 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
4934 if test $ac_cv_working_alloca_h = yes; then
4935
4936 cat >>confdefs.h <<\_ACEOF
4937 #define HAVE_ALLOCA_H 1
4938 _ACEOF
4939
4940 fi
4941
4942 { echo "$as_me:$LINENO: checking for alloca" >&5
4943 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
4944 if test "${ac_cv_func_alloca_works+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947 cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h. */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4953 #ifdef __GNUC__
4954 # define alloca __builtin_alloca
4955 #else
4956 # ifdef _MSC_VER
4957 # include <malloc.h>
4958 # define alloca _alloca
4959 # else
4960 # ifdef HAVE_ALLOCA_H
4961 # include <alloca.h>
4962 # else
4963 # ifdef _AIX
4964 #pragma alloca
4965 # else
4966 # ifndef alloca /* predefined by HP cc +Olibcalls */
4967 char *alloca ();
4968 # endif
4969 # endif
4970 # endif
4971 # endif
4972 #endif
4973
4974 int
4975 main ()
4976 {
4977 char *p = (char *) alloca (1);
4978 if (p) return 0;
4979 ;
4980 return 0;
4981 }
4982 _ACEOF
4983 rm -f conftest.$ac_objext conftest$ac_exeext
4984 if { (ac_try="$ac_link"
4985 case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988 esac
4989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4990 (eval "$ac_link") 2>conftest.er1
4991 ac_status=$?
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } && {
4997 test -z "$ac_c_werror_flag" ||
4998 test ! -s conftest.err
4999 } && test -s conftest$ac_exeext &&
5000 $as_test_x conftest$ac_exeext; then
5001 ac_cv_func_alloca_works=yes
5002 else
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 ac_cv_func_alloca_works=no
5007 fi
5008
5009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5010 conftest$ac_exeext conftest.$ac_ext
5011 fi
5012 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5013 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5014
5015 if test $ac_cv_func_alloca_works = yes; then
5016
5017 cat >>confdefs.h <<\_ACEOF
5018 #define HAVE_ALLOCA 1
5019 _ACEOF
5020
5021 else
5022 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5023 # that cause trouble. Some versions do not even contain alloca or
5024 # contain a buggy version. If you still want to use their alloca,
5025 # use ar to extract alloca.o from them instead of compiling alloca.c.
5026
5027 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5028
5029 cat >>confdefs.h <<\_ACEOF
5030 #define C_ALLOCA 1
5031 _ACEOF
5032
5033
5034 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5035 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5036 if test "${ac_cv_os_cray+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039 cat >conftest.$ac_ext <<_ACEOF
5040 /* confdefs.h. */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5045 #if defined CRAY && ! defined CRAY2
5046 webecray
5047 #else
5048 wenotbecray
5049 #endif
5050
5051 _ACEOF
5052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5053 $EGREP "webecray" >/dev/null 2>&1; then
5054 ac_cv_os_cray=yes
5055 else
5056 ac_cv_os_cray=no
5057 fi
5058 rm -f conftest*
5059
5060 fi
5061 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5062 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5063 if test $ac_cv_os_cray = yes; then
5064 for ac_func in _getb67 GETB67 getb67; do
5065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5079 #define $ac_func innocuous_$ac_func
5080
5081 /* System header to define __stub macros and hopefully few prototypes,
5082 which can conflict with char $ac_func (); below.
5083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084 <limits.h> exists even on freestanding compilers. */
5085
5086 #ifdef __STDC__
5087 # include <limits.h>
5088 #else
5089 # include <assert.h>
5090 #endif
5091
5092 #undef $ac_func
5093
5094 /* Override any GCC internal prototype to avoid an error.
5095 Use char because int might match the return type of a GCC
5096 builtin and then its argument prototype would still apply. */
5097 #ifdef __cplusplus
5098 extern "C"
5099 #endif
5100 char $ac_func ();
5101 /* The GNU C library defines this for functions which it implements
5102 to always fail with ENOSYS. Some functions are actually named
5103 something starting with __ and the normal name is an alias. */
5104 #if defined __stub_$ac_func || defined __stub___$ac_func
5105 choke me
5106 #endif
5107
5108 int
5109 main ()
5110 {
5111 return $ac_func ();
5112 ;
5113 return 0;
5114 }
5115 _ACEOF
5116 rm -f conftest.$ac_objext conftest$ac_exeext
5117 if { (ac_try="$ac_link"
5118 case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5121 esac
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123 (eval "$ac_link") 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } && {
5130 test -z "$ac_c_werror_flag" ||
5131 test ! -s conftest.err
5132 } && test -s conftest$ac_exeext &&
5133 $as_test_x conftest$ac_exeext; then
5134 eval "$as_ac_var=yes"
5135 else
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5138
5139 eval "$as_ac_var=no"
5140 fi
5141
5142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5143 conftest$ac_exeext conftest.$ac_ext
5144 fi
5145 ac_res=`eval echo '${'$as_ac_var'}'`
5146 { echo "$as_me:$LINENO: result: $ac_res" >&5
5147 echo "${ECHO_T}$ac_res" >&6; }
5148 if test `eval echo '${'$as_ac_var'}'` = yes; then
5149
5150 cat >>confdefs.h <<_ACEOF
5151 #define CRAY_STACKSEG_END $ac_func
5152 _ACEOF
5153
5154 break
5155 fi
5156
5157 done
5158 fi
5159
5160 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5161 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5162 if test "${ac_cv_c_stack_direction+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 if test "$cross_compiling" = yes; then
5166 ac_cv_c_stack_direction=0
5167 else
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 $ac_includes_default
5175 int
5176 find_stack_direction ()
5177 {
5178 static char *addr = 0;
5179 auto char dummy;
5180 if (addr == 0)
5181 {
5182 addr = &dummy;
5183 return find_stack_direction ();
5184 }
5185 else
5186 return (&dummy > addr) ? 1 : -1;
5187 }
5188
5189 int
5190 main ()
5191 {
5192 return find_stack_direction () < 0;
5193 }
5194 _ACEOF
5195 rm -f conftest$ac_exeext
5196 if { (ac_try="$ac_link"
5197 case "(($ac_try" in
5198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199 *) ac_try_echo=$ac_try;;
5200 esac
5201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5202 (eval "$ac_link") 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5206 { (case "(($ac_try" in
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5209 esac
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211 (eval "$ac_try") 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_c_stack_direction=1
5216 else
5217 echo "$as_me: program exited with status $ac_status" >&5
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5220
5221 ( exit $ac_status )
5222 ac_cv_c_stack_direction=-1
5223 fi
5224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5225 fi
5226
5227
5228 fi
5229 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5230 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
5231
5232 cat >>confdefs.h <<_ACEOF
5233 #define STACK_DIRECTION $ac_cv_c_stack_direction
5234 _ACEOF
5235
5236
5237 fi
5238
5239
5240
5241 for ac_header in stdlib.h unistd.h
5242 do
5243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 fi
5250 ac_res=`eval echo '${'$as_ac_Header'}'`
5251 { echo "$as_me:$LINENO: result: $ac_res" >&5
5252 echo "${ECHO_T}$ac_res" >&6; }
5253 else
5254 # Is the header compilable?
5255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5257 cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h. */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5263 $ac_includes_default
5264 #include <$ac_header>
5265 _ACEOF
5266 rm -f conftest.$ac_objext
5267 if { (ac_try="$ac_compile"
5268 case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271 esac
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_compile") 2>conftest.er1
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } && {
5280 test -z "$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5282 } && test -s conftest.$ac_objext; then
5283 ac_header_compiler=yes
5284 else
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5287
5288 ac_header_compiler=no
5289 fi
5290
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5293 echo "${ECHO_T}$ac_header_compiler" >&6; }
5294
5295 # Is the header present?
5296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5298 cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h. */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5304 #include <$ac_header>
5305 _ACEOF
5306 if { (ac_try="$ac_cpp conftest.$ac_ext"
5307 case "(($ac_try" in
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } >/dev/null && {
5319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5320 test ! -s conftest.err
5321 }; then
5322 ac_header_preproc=yes
5323 else
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 ac_header_preproc=no
5328 fi
5329
5330 rm -f conftest.err conftest.$ac_ext
5331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5332 echo "${ECHO_T}$ac_header_preproc" >&6; }
5333
5334 # So? What about this header?
5335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5336 yes:no: )
5337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5341 ac_header_preproc=yes
5342 ;;
5343 no:yes:* )
5344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5356
5357 ;;
5358 esac
5359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364 eval "$as_ac_Header=\$ac_header_preproc"
5365 fi
5366 ac_res=`eval echo '${'$as_ac_Header'}'`
5367 { echo "$as_me:$LINENO: result: $ac_res" >&5
5368 echo "${ECHO_T}$ac_res" >&6; }
5369
5370 fi
5371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5372 cat >>confdefs.h <<_ACEOF
5373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5374 _ACEOF
5375
5376 fi
5377
5378 done
5379
5380
5381 for ac_func in getpagesize
5382 do
5383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h. */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5397 #define $ac_func innocuous_$ac_func
5398
5399 /* System header to define __stub macros and hopefully few prototypes,
5400 which can conflict with char $ac_func (); below.
5401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5402 <limits.h> exists even on freestanding compilers. */
5403
5404 #ifdef __STDC__
5405 # include <limits.h>
5406 #else
5407 # include <assert.h>
5408 #endif
5409
5410 #undef $ac_func
5411
5412 /* Override any GCC internal prototype to avoid an error.
5413 Use char because int might match the return type of a GCC
5414 builtin and then its argument prototype would still apply. */
5415 #ifdef __cplusplus
5416 extern "C"
5417 #endif
5418 char $ac_func ();
5419 /* The GNU C library defines this for functions which it implements
5420 to always fail with ENOSYS. Some functions are actually named
5421 something starting with __ and the normal name is an alias. */
5422 #if defined __stub_$ac_func || defined __stub___$ac_func
5423 choke me
5424 #endif
5425
5426 int
5427 main ()
5428 {
5429 return $ac_func ();
5430 ;
5431 return 0;
5432 }
5433 _ACEOF
5434 rm -f conftest.$ac_objext conftest$ac_exeext
5435 if { (ac_try="$ac_link"
5436 case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439 esac
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_link") 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } && {
5448 test -z "$ac_c_werror_flag" ||
5449 test ! -s conftest.err
5450 } && test -s conftest$ac_exeext &&
5451 $as_test_x conftest$ac_exeext; then
5452 eval "$as_ac_var=yes"
5453 else
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457 eval "$as_ac_var=no"
5458 fi
5459
5460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5461 conftest$ac_exeext conftest.$ac_ext
5462 fi
5463 ac_res=`eval echo '${'$as_ac_var'}'`
5464 { echo "$as_me:$LINENO: result: $ac_res" >&5
5465 echo "${ECHO_T}$ac_res" >&6; }
5466 if test `eval echo '${'$as_ac_var'}'` = yes; then
5467 cat >>confdefs.h <<_ACEOF
5468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5469 _ACEOF
5470
5471 fi
5472 done
5473
5474 { echo "$as_me:$LINENO: checking for working mmap" >&5
5475 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
5476 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479 if test "$cross_compiling" = yes; then
5480 ac_cv_func_mmap_fixed_mapped=no
5481 else
5482 cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h. */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 $ac_includes_default
5489 /* malloc might have been renamed as rpl_malloc. */
5490 #undef malloc
5491
5492 /* Thanks to Mike Haertel and Jim Avera for this test.
5493 Here is a matrix of mmap possibilities:
5494 mmap private not fixed
5495 mmap private fixed at somewhere currently unmapped
5496 mmap private fixed at somewhere already mapped
5497 mmap shared not fixed
5498 mmap shared fixed at somewhere currently unmapped
5499 mmap shared fixed at somewhere already mapped
5500 For private mappings, we should verify that changes cannot be read()
5501 back from the file, nor mmap's back from the file at a different
5502 address. (There have been systems where private was not correctly
5503 implemented like the infamous i386 svr4.0, and systems where the
5504 VM page cache was not coherent with the file system buffer cache
5505 like early versions of FreeBSD and possibly contemporary NetBSD.)
5506 For shared mappings, we should conversely verify that changes get
5507 propagated back to all the places they're supposed to be.
5508
5509 Grep wants private fixed already mapped.
5510 The main things grep needs to know about mmap are:
5511 * does it exist and is it safe to write into the mmap'd area
5512 * how to use it (BSD variants) */
5513
5514 #include <fcntl.h>
5515 #include <sys/mman.h>
5516
5517 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5518 char *malloc ();
5519 #endif
5520
5521 /* This mess was copied from the GNU getpagesize.h. */
5522 #ifndef HAVE_GETPAGESIZE
5523 /* Assume that all systems that can run configure have sys/param.h. */
5524 # ifndef HAVE_SYS_PARAM_H
5525 # define HAVE_SYS_PARAM_H 1
5526 # endif
5527
5528 # ifdef _SC_PAGESIZE
5529 # define getpagesize() sysconf(_SC_PAGESIZE)
5530 # else /* no _SC_PAGESIZE */
5531 # ifdef HAVE_SYS_PARAM_H
5532 # include <sys/param.h>
5533 # ifdef EXEC_PAGESIZE
5534 # define getpagesize() EXEC_PAGESIZE
5535 # else /* no EXEC_PAGESIZE */
5536 # ifdef NBPG
5537 # define getpagesize() NBPG * CLSIZE
5538 # ifndef CLSIZE
5539 # define CLSIZE 1
5540 # endif /* no CLSIZE */
5541 # else /* no NBPG */
5542 # ifdef NBPC
5543 # define getpagesize() NBPC
5544 # else /* no NBPC */
5545 # ifdef PAGESIZE
5546 # define getpagesize() PAGESIZE
5547 # endif /* PAGESIZE */
5548 # endif /* no NBPC */
5549 # endif /* no NBPG */
5550 # endif /* no EXEC_PAGESIZE */
5551 # else /* no HAVE_SYS_PARAM_H */
5552 # define getpagesize() 8192 /* punt totally */
5553 # endif /* no HAVE_SYS_PARAM_H */
5554 # endif /* no _SC_PAGESIZE */
5555
5556 #endif /* no HAVE_GETPAGESIZE */
5557
5558 int
5559 main ()
5560 {
5561 char *data, *data2, *data3;
5562 int i, pagesize;
5563 int fd;
5564
5565 pagesize = getpagesize ();
5566
5567 /* First, make a file with some known garbage in it. */
5568 data = (char *) malloc (pagesize);
5569 if (!data)
5570 return 1;
5571 for (i = 0; i < pagesize; ++i)
5572 *(data + i) = rand ();
5573 umask (0);
5574 fd = creat ("conftest.mmap", 0600);
5575 if (fd < 0)
5576 return 1;
5577 if (write (fd, data, pagesize) != pagesize)
5578 return 1;
5579 close (fd);
5580
5581 /* Next, try to mmap the file at a fixed address which already has
5582 something else allocated at it. If we can, also make sure that
5583 we see the same garbage. */
5584 fd = open ("conftest.mmap", O_RDWR);
5585 if (fd < 0)
5586 return 1;
5587 data2 = (char *) malloc (2 * pagesize);
5588 if (!data2)
5589 return 1;
5590 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5591 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5592 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5593 return 1;
5594 for (i = 0; i < pagesize; ++i)
5595 if (*(data + i) != *(data2 + i))
5596 return 1;
5597
5598 /* Finally, make sure that changes to the mapped area do not
5599 percolate back to the file as seen by read(). (This is a bug on
5600 some variants of i386 svr4.0.) */
5601 for (i = 0; i < pagesize; ++i)
5602 *(data2 + i) = *(data2 + i) + 1;
5603 data3 = (char *) malloc (pagesize);
5604 if (!data3)
5605 return 1;
5606 if (read (fd, data3, pagesize) != pagesize)
5607 return 1;
5608 for (i = 0; i < pagesize; ++i)
5609 if (*(data + i) != *(data3 + i))
5610 return 1;
5611 close (fd);
5612 return 0;
5613 }
5614 _ACEOF
5615 rm -f conftest$ac_exeext
5616 if { (ac_try="$ac_link"
5617 case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_link") 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5626 { (case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629 esac
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_try") 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 ac_cv_func_mmap_fixed_mapped=yes
5636 else
5637 echo "$as_me: program exited with status $ac_status" >&5
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5640
5641 ( exit $ac_status )
5642 ac_cv_func_mmap_fixed_mapped=no
5643 fi
5644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5645 fi
5646
5647
5648 fi
5649 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5650 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
5651 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5652
5653 cat >>confdefs.h <<\_ACEOF
5654 #define HAVE_MMAP 1
5655 _ACEOF
5656
5657 fi
5658 rm -f conftest.mmap
5659
5660
5661 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5662 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
5663 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666 cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h. */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5672
5673 #include <features.h>
5674 #ifdef __GNU_LIBRARY__
5675 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5676 Lucky GNU user
5677 #endif
5678 #endif
5679
5680 _ACEOF
5681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5682 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5683 ac_cv_gnu_library_2_1=yes
5684 else
5685 ac_cv_gnu_library_2_1=no
5686 fi
5687 rm -f conftest*
5688
5689
5690
5691 fi
5692 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5693 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
5694
5695 GLIBC21="$ac_cv_gnu_library_2_1"
5696
5697
5698
5699
5700 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5701 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
5702 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705
5706 if test "$cross_compiling" = yes; then
5707
5708 # Guess based on the CPU.
5709 case "$host_cpu" in
5710 alpha* | i3456786 | m68k | s390*)
5711 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5712 *)
5713 gt_cv_int_divbyzero_sigfpe="guessing no";;
5714 esac
5715
5716 else
5717 cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h. */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5723
5724 #include <stdlib.h>
5725 #include <signal.h>
5726
5727 static void
5728 #ifdef __cplusplus
5729 sigfpe_handler (int sig)
5730 #else
5731 sigfpe_handler (sig) int sig;
5732 #endif
5733 {
5734 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5735 exit (sig != SIGFPE);
5736 }
5737
5738 int x = 1;
5739 int y = 0;
5740 int z;
5741 int nan;
5742
5743 int main ()
5744 {
5745 signal (SIGFPE, sigfpe_handler);
5746 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5747 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5748 signal (SIGTRAP, sigfpe_handler);
5749 #endif
5750 /* Linux/SPARC yields signal SIGILL. */
5751 #if defined (__sparc__) && defined (__linux__)
5752 signal (SIGILL, sigfpe_handler);
5753 #endif
5754
5755 z = x / y;
5756 nan = y / y;
5757 exit (1);
5758 }
5759
5760 _ACEOF
5761 rm -f conftest$ac_exeext
5762 if { (ac_try="$ac_link"
5763 case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766 esac
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_link") 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5772 { (case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775 esac
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_try") 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 gt_cv_int_divbyzero_sigfpe=yes
5782 else
5783 echo "$as_me: program exited with status $ac_status" >&5
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 ( exit $ac_status )
5788 gt_cv_int_divbyzero_sigfpe=no
5789 fi
5790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5791 fi
5792
5793
5794
5795 fi
5796 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5797 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
5798 case "$gt_cv_int_divbyzero_sigfpe" in
5799 *yes) value=1;;
5800 *) value=0;;
5801 esac
5802
5803 cat >>confdefs.h <<_ACEOF
5804 #define INTDIV0_RAISES_SIGFPE $value
5805 _ACEOF
5806
5807
5808
5809 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5810 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5811 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 #include <sys/types.h>
5821 #include <inttypes.h>
5822 int
5823 main ()
5824 {
5825 uintmax_t i = (uintmax_t) -1;
5826 ;
5827 return 0;
5828 }
5829 _ACEOF
5830 rm -f conftest.$ac_objext
5831 if { (ac_try="$ac_compile"
5832 case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835 esac
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_compile") 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } && {
5844 test -z "$ac_c_werror_flag" ||
5845 test ! -s conftest.err
5846 } && test -s conftest.$ac_objext; then
5847 jm_ac_cv_header_inttypes_h=yes
5848 else
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 jm_ac_cv_header_inttypes_h=no
5853 fi
5854
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 fi
5857 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5858 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5859 if test $jm_ac_cv_header_inttypes_h = yes; then
5860
5861 cat >>confdefs.h <<_ACEOF
5862 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5863 _ACEOF
5864
5865 fi
5866
5867
5868 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5869 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5870 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873 cat >conftest.$ac_ext <<_ACEOF
5874 /* confdefs.h. */
5875 _ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5879 #include <sys/types.h>
5880 #include <stdint.h>
5881 int
5882 main ()
5883 {
5884 uintmax_t i = (uintmax_t) -1;
5885 ;
5886 return 0;
5887 }
5888 _ACEOF
5889 rm -f conftest.$ac_objext
5890 if { (ac_try="$ac_compile"
5891 case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894 esac
5895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_compile") 2>conftest.er1
5897 ac_status=$?
5898 grep -v '^ *+' conftest.er1 >conftest.err
5899 rm -f conftest.er1
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } && {
5903 test -z "$ac_c_werror_flag" ||
5904 test ! -s conftest.err
5905 } && test -s conftest.$ac_objext; then
5906 jm_ac_cv_header_stdint_h=yes
5907 else
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5910
5911 jm_ac_cv_header_stdint_h=no
5912 fi
5913
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 fi
5916 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5917 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5918 if test $jm_ac_cv_header_stdint_h = yes; then
5919
5920 cat >>confdefs.h <<_ACEOF
5921 #define HAVE_STDINT_H_WITH_UINTMAX 1
5922 _ACEOF
5923
5924 fi
5925
5926
5927 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
5928 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
5929 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932 cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h. */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938 unsigned long long ull = 1; int i = 63;
5939 int
5940 main ()
5941 {
5942 unsigned long long ullmax = (unsigned long long) -1;
5943 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5944 ;
5945 return 0;
5946 }
5947 _ACEOF
5948 rm -f conftest.$ac_objext conftest$ac_exeext
5949 if { (ac_try="$ac_link"
5950 case "(($ac_try" in
5951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952 *) ac_try_echo=$ac_try;;
5953 esac
5954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5955 (eval "$ac_link") 2>conftest.er1
5956 ac_status=$?
5957 grep -v '^ *+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } && {
5962 test -z "$ac_c_werror_flag" ||
5963 test ! -s conftest.err
5964 } && test -s conftest$ac_exeext &&
5965 $as_test_x conftest$ac_exeext; then
5966 ac_cv_type_unsigned_long_long=yes
5967 else
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5970
5971 ac_cv_type_unsigned_long_long=no
5972 fi
5973
5974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5975 conftest$ac_exeext conftest.$ac_ext
5976 fi
5977 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5978 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
5979 if test $ac_cv_type_unsigned_long_long = yes; then
5980
5981 cat >>confdefs.h <<\_ACEOF
5982 #define HAVE_UNSIGNED_LONG_LONG 1
5983 _ACEOF
5984
5985 fi
5986
5987
5988
5989
5990 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5991
5992 test $ac_cv_type_unsigned_long_long = yes \
5993 && ac_type='unsigned long long' \
5994 || ac_type='unsigned long'
5995
5996 cat >>confdefs.h <<_ACEOF
5997 #define uintmax_t $ac_type
5998 _ACEOF
5999
6000 fi
6001
6002
6003 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6004 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6005 if test "${gt_cv_header_inttypes_h+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008
6009 cat >conftest.$ac_ext <<_ACEOF
6010 /* confdefs.h. */
6011 _ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6015 #include <sys/types.h>
6016 #include <inttypes.h>
6017 int
6018 main ()
6019 {
6020
6021 ;
6022 return 0;
6023 }
6024 _ACEOF
6025 rm -f conftest.$ac_objext
6026 if { (ac_try="$ac_compile"
6027 case "(($ac_try" in
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6030 esac
6031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032 (eval "$ac_compile") 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } && {
6039 test -z "$ac_c_werror_flag" ||
6040 test ! -s conftest.err
6041 } && test -s conftest.$ac_objext; then
6042 gt_cv_header_inttypes_h=yes
6043 else
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6046
6047 gt_cv_header_inttypes_h=no
6048 fi
6049
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051
6052 fi
6053 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6054 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
6055 if test $gt_cv_header_inttypes_h = yes; then
6056
6057 cat >>confdefs.h <<_ACEOF
6058 #define HAVE_INTTYPES_H 1
6059 _ACEOF
6060
6061 fi
6062
6063
6064
6065 if test $gt_cv_header_inttypes_h = yes; then
6066 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6067 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
6068 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071
6072 cat >conftest.$ac_ext <<_ACEOF
6073 /* confdefs.h. */
6074 _ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6078 #include <inttypes.h>
6079 #ifdef PRId32
6080 char *p = PRId32;
6081 #endif
6082
6083 int
6084 main ()
6085 {
6086
6087 ;
6088 return 0;
6089 }
6090 _ACEOF
6091 rm -f conftest.$ac_objext
6092 if { (ac_try="$ac_compile"
6093 case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096 esac
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_compile") 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } && {
6105 test -z "$ac_c_werror_flag" ||
6106 test ! -s conftest.err
6107 } && test -s conftest.$ac_objext; then
6108 gt_cv_inttypes_pri_broken=no
6109 else
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6112
6113 gt_cv_inttypes_pri_broken=yes
6114 fi
6115
6116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117
6118 fi
6119 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6120 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
6121 fi
6122 if test "$gt_cv_inttypes_pri_broken" = yes; then
6123
6124 cat >>confdefs.h <<_ACEOF
6125 #define PRI_MACROS_BROKEN 1
6126 _ACEOF
6127
6128 fi
6129
6130
6131 if test "X$prefix" = "XNONE"; then
6132 acl_final_prefix="$ac_default_prefix"
6133 else
6134 acl_final_prefix="$prefix"
6135 fi
6136 if test "X$exec_prefix" = "XNONE"; then
6137 acl_final_exec_prefix='${prefix}'
6138 else
6139 acl_final_exec_prefix="$exec_prefix"
6140 fi
6141 acl_save_prefix="$prefix"
6142 prefix="$acl_final_prefix"
6143 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6144 prefix="$acl_save_prefix"
6145
6146
6147 # Check whether --with-gnu-ld was given.
6148 if test "${with_gnu_ld+set}" = set; then
6149 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6150 else
6151 with_gnu_ld=no
6152 fi
6153
6154 ac_prog=ld
6155 if test "$GCC" = yes; then
6156 # Check if gcc -print-prog-name=ld gives a path.
6157 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6158 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6159 case $host in
6160 *-*-mingw*)
6161 # gcc leaves a trailing carriage return which upsets mingw
6162 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6163 *)
6164 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6165 esac
6166 case $ac_prog in
6167 # Accept absolute paths.
6168 [\\/]* | [A-Za-z]:[\\/]*)
6169 re_direlt='/[^/][^/]*/\.\./'
6170 # Canonicalize the path of ld
6171 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6172 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6173 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6174 done
6175 test -z "$LD" && LD="$ac_prog"
6176 ;;
6177 "")
6178 # If it fails, then pretend we aren't using GCC.
6179 ac_prog=ld
6180 ;;
6181 *)
6182 # If it is relative, then search for the first ld in PATH.
6183 with_gnu_ld=unknown
6184 ;;
6185 esac
6186 elif test "$with_gnu_ld" = yes; then
6187 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6188 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6189 else
6190 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6191 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6192 fi
6193 if test "${acl_cv_path_LD+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196 if test -z "$LD"; then
6197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6198 for ac_dir in $PATH; do
6199 test -z "$ac_dir" && ac_dir=.
6200 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6201 acl_cv_path_LD="$ac_dir/$ac_prog"
6202 # Check to see if the program is GNU ld. I'd rather use --version,
6203 # but apparently some GNU ld's only accept -v.
6204 # Break only if it was the GNU/non-GNU ld that we prefer.
6205 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6206 test "$with_gnu_ld" != no && break
6207 else
6208 test "$with_gnu_ld" != yes && break
6209 fi
6210 fi
6211 done
6212 IFS="$ac_save_ifs"
6213 else
6214 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6215 fi
6216 fi
6217
6218 LD="$acl_cv_path_LD"
6219 if test -n "$LD"; then
6220 { echo "$as_me:$LINENO: result: $LD" >&5
6221 echo "${ECHO_T}$LD" >&6; }
6222 else
6223 { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6225 fi
6226 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6227 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6228 { (exit 1); exit 1; }; }
6229 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6230 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6231 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6235 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6236 acl_cv_prog_gnu_ld=yes
6237 else
6238 acl_cv_prog_gnu_ld=no
6239 fi
6240 fi
6241 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6242 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6243 with_gnu_ld=$acl_cv_prog_gnu_ld
6244
6245
6246
6247 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6248 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6249 if test "${acl_cv_rpath+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252
6253 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6254 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6255 . ./conftest.sh
6256 rm -f ./conftest.sh
6257 acl_cv_rpath=done
6258
6259 fi
6260 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6261 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6262 wl="$acl_cv_wl"
6263 libext="$acl_cv_libext"
6264 shlibext="$acl_cv_shlibext"
6265 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6266 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6267 hardcode_direct="$acl_cv_hardcode_direct"
6268 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6269 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
6270 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
6271 # Check whether --enable-rpath was given.
6272 if test "${enable_rpath+set}" = set; then
6273 enableval=$enable_rpath; :
6274 else
6275 enable_rpath=yes
6276 fi
6277
6278
6279
6280
6281
6282
6283
6284
6285 use_additional=yes
6286
6287 acl_save_prefix="$prefix"
6288 prefix="$acl_final_prefix"
6289 acl_save_exec_prefix="$exec_prefix"
6290 exec_prefix="$acl_final_exec_prefix"
6291
6292 eval additional_includedir=\"$includedir\"
6293 eval additional_libdir=\"$libdir\"
6294
6295 exec_prefix="$acl_save_exec_prefix"
6296 prefix="$acl_save_prefix"
6297
6298
6299 # Check whether --with-libiconv-prefix was given.
6300 if test "${with_libiconv_prefix+set}" = set; then
6301 withval=$with_libiconv_prefix;
6302 if test "X$withval" = "Xno"; then
6303 use_additional=no
6304 else
6305 if test "X$withval" = "X"; then
6306
6307 acl_save_prefix="$prefix"
6308 prefix="$acl_final_prefix"
6309 acl_save_exec_prefix="$exec_prefix"
6310 exec_prefix="$acl_final_exec_prefix"
6311
6312 eval additional_includedir=\"$includedir\"
6313 eval additional_libdir=\"$libdir\"
6314
6315 exec_prefix="$acl_save_exec_prefix"
6316 prefix="$acl_save_prefix"
6317
6318 else
6319 additional_includedir="$withval/include"
6320 additional_libdir="$withval/lib"
6321 fi
6322 fi
6323
6324 fi
6325
6326 LIBICONV=
6327 LTLIBICONV=
6328 INCICONV=
6329 rpathdirs=
6330 ltrpathdirs=
6331 names_already_handled=
6332 names_next_round='iconv '
6333 while test -n "$names_next_round"; do
6334 names_this_round="$names_next_round"
6335 names_next_round=
6336 for name in $names_this_round; do
6337 already_handled=
6338 for n in $names_already_handled; do
6339 if test "$n" = "$name"; then
6340 already_handled=yes
6341 break
6342 fi
6343 done
6344 if test -z "$already_handled"; then
6345 names_already_handled="$names_already_handled $name"
6346 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6347 eval value=\"\$HAVE_LIB$uppername\"
6348 if test -n "$value"; then
6349 if test "$value" = yes; then
6350 eval value=\"\$LIB$uppername\"
6351 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6352 eval value=\"\$LTLIB$uppername\"
6353 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6354 else
6355 :
6356 fi
6357 else
6358 found_dir=
6359 found_la=
6360 found_so=
6361 found_a=
6362 if test $use_additional = yes; then
6363 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6364 found_dir="$additional_libdir"
6365 found_so="$additional_libdir/lib$name.$shlibext"
6366 if test -f "$additional_libdir/lib$name.la"; then
6367 found_la="$additional_libdir/lib$name.la"
6368 fi
6369 else
6370 if test -f "$additional_libdir/lib$name.$libext"; then
6371 found_dir="$additional_libdir"
6372 found_a="$additional_libdir/lib$name.$libext"
6373 if test -f "$additional_libdir/lib$name.la"; then
6374 found_la="$additional_libdir/lib$name.la"
6375 fi
6376 fi
6377 fi
6378 fi
6379 if test "X$found_dir" = "X"; then
6380 for x in $LDFLAGS $LTLIBICONV; do
6381
6382 acl_save_prefix="$prefix"
6383 prefix="$acl_final_prefix"
6384 acl_save_exec_prefix="$exec_prefix"
6385 exec_prefix="$acl_final_exec_prefix"
6386 eval x=\"$x\"
6387 exec_prefix="$acl_save_exec_prefix"
6388 prefix="$acl_save_prefix"
6389
6390 case "$x" in
6391 -L*)
6392 dir=`echo "X$x" | sed -e 's/^X-L//'`
6393 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6394 found_dir="$dir"
6395 found_so="$dir/lib$name.$shlibext"
6396 if test -f "$dir/lib$name.la"; then
6397 found_la="$dir/lib$name.la"
6398 fi
6399 else
6400 if test -f "$dir/lib$name.$libext"; then
6401 found_dir="$dir"
6402 found_a="$dir/lib$name.$libext"
6403 if test -f "$dir/lib$name.la"; then
6404 found_la="$dir/lib$name.la"
6405 fi
6406 fi
6407 fi
6408 ;;
6409 esac
6410 if test "X$found_dir" != "X"; then
6411 break
6412 fi
6413 done
6414 fi
6415 if test "X$found_dir" != "X"; then
6416 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6417 if test "X$found_so" != "X"; then
6418 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6419 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6420 else
6421 haveit=
6422 for x in $ltrpathdirs; do
6423 if test "X$x" = "X$found_dir"; then
6424 haveit=yes
6425 break
6426 fi
6427 done
6428 if test -z "$haveit"; then
6429 ltrpathdirs="$ltrpathdirs $found_dir"
6430 fi
6431 if test "$hardcode_direct" = yes; then
6432 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6433 else
6434 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6435 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6436 haveit=
6437 for x in $rpathdirs; do
6438 if test "X$x" = "X$found_dir"; then
6439 haveit=yes
6440 break
6441 fi
6442 done
6443 if test -z "$haveit"; then
6444 rpathdirs="$rpathdirs $found_dir"
6445 fi
6446 else
6447 haveit=
6448 for x in $LDFLAGS $LIBICONV; do
6449
6450 acl_save_prefix="$prefix"
6451 prefix="$acl_final_prefix"
6452 acl_save_exec_prefix="$exec_prefix"
6453 exec_prefix="$acl_final_exec_prefix"
6454 eval x=\"$x\"
6455 exec_prefix="$acl_save_exec_prefix"
6456 prefix="$acl_save_prefix"
6457
6458 if test "X$x" = "X-L$found_dir"; then
6459 haveit=yes
6460 break
6461 fi
6462 done
6463 if test -z "$haveit"; then
6464 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6465 fi
6466 if test "$hardcode_minus_L" != no; then
6467 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6468 else
6469 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6470 fi
6471 fi
6472 fi
6473 fi
6474 else
6475 if test "X$found_a" != "X"; then
6476 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6477 else
6478 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6479 fi
6480 fi
6481 additional_includedir=
6482 case "$found_dir" in
6483 */lib | */lib/)
6484 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6485 additional_includedir="$basedir/include"
6486 ;;
6487 esac
6488 if test "X$additional_includedir" != "X"; then
6489 if test "X$additional_includedir" != "X/usr/include"; then
6490 haveit=
6491 if test "X$additional_includedir" = "X/usr/local/include"; then
6492 if test -n "$GCC"; then
6493 case $host_os in
6494 linux*) haveit=yes;;
6495 esac
6496 fi
6497 fi
6498 if test -z "$haveit"; then
6499 for x in $CPPFLAGS $INCICONV; do
6500
6501 acl_save_prefix="$prefix"
6502 prefix="$acl_final_prefix"
6503 acl_save_exec_prefix="$exec_prefix"
6504 exec_prefix="$acl_final_exec_prefix"
6505 eval x=\"$x\"
6506 exec_prefix="$acl_save_exec_prefix"
6507 prefix="$acl_save_prefix"
6508
6509 if test "X$x" = "X-I$additional_includedir"; then
6510 haveit=yes
6511 break
6512 fi
6513 done
6514 if test -z "$haveit"; then
6515 if test -d "$additional_includedir"; then
6516 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6517 fi
6518 fi
6519 fi
6520 fi
6521 fi
6522 if test -n "$found_la"; then
6523 save_libdir="$libdir"
6524 case "$found_la" in
6525 */* | *\\*) . "$found_la" ;;
6526 *) . "./$found_la" ;;
6527 esac
6528 libdir="$save_libdir"
6529 for dep in $dependency_libs; do
6530 case "$dep" in
6531 -L*)
6532 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6533 if test "X$additional_libdir" != "X/usr/lib"; then
6534 haveit=
6535 if test "X$additional_libdir" = "X/usr/local/lib"; then
6536 if test -n "$GCC"; then
6537 case $host_os in
6538 linux*) haveit=yes;;
6539 esac
6540 fi
6541 fi
6542 if test -z "$haveit"; then
6543 haveit=
6544 for x in $LDFLAGS $LIBICONV; do
6545
6546 acl_save_prefix="$prefix"
6547 prefix="$acl_final_prefix"
6548 acl_save_exec_prefix="$exec_prefix"
6549 exec_prefix="$acl_final_exec_prefix"
6550 eval x=\"$x\"
6551 exec_prefix="$acl_save_exec_prefix"
6552 prefix="$acl_save_prefix"
6553
6554 if test "X$x" = "X-L$additional_libdir"; then
6555 haveit=yes
6556 break
6557 fi
6558 done
6559 if test -z "$haveit"; then
6560 if test -d "$additional_libdir"; then
6561 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6562 fi
6563 fi
6564 haveit=
6565 for x in $LDFLAGS $LTLIBICONV; do
6566
6567 acl_save_prefix="$prefix"
6568 prefix="$acl_final_prefix"
6569 acl_save_exec_prefix="$exec_prefix"
6570 exec_prefix="$acl_final_exec_prefix"
6571 eval x=\"$x\"
6572 exec_prefix="$acl_save_exec_prefix"
6573 prefix="$acl_save_prefix"
6574
6575 if test "X$x" = "X-L$additional_libdir"; then
6576 haveit=yes
6577 break
6578 fi
6579 done
6580 if test -z "$haveit"; then
6581 if test -d "$additional_libdir"; then
6582 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6583 fi
6584 fi
6585 fi
6586 fi
6587 ;;
6588 -R*)
6589 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6590 if test "$enable_rpath" != no; then
6591 haveit=
6592 for x in $rpathdirs; do
6593 if test "X$x" = "X$dir"; then
6594 haveit=yes
6595 break
6596 fi
6597 done
6598 if test -z "$haveit"; then
6599 rpathdirs="$rpathdirs $dir"
6600 fi
6601 haveit=
6602 for x in $ltrpathdirs; do
6603 if test "X$x" = "X$dir"; then
6604 haveit=yes
6605 break
6606 fi
6607 done
6608 if test -z "$haveit"; then
6609 ltrpathdirs="$ltrpathdirs $dir"
6610 fi
6611 fi
6612 ;;
6613 -l*)
6614 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6615 ;;
6616 *.la)
6617 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6618 ;;
6619 *)
6620 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6621 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6622 ;;
6623 esac
6624 done
6625 fi
6626 else
6627 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6628 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6629 fi
6630 fi
6631 fi
6632 done
6633 done
6634 if test "X$rpathdirs" != "X"; then
6635 if test -n "$hardcode_libdir_separator"; then
6636 alldirs=
6637 for found_dir in $rpathdirs; do
6638 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6639 done
6640 acl_save_libdir="$libdir"
6641 libdir="$alldirs"
6642 eval flag=\"$hardcode_libdir_flag_spec\"
6643 libdir="$acl_save_libdir"
6644 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6645 else
6646 for found_dir in $rpathdirs; do
6647 acl_save_libdir="$libdir"
6648 libdir="$found_dir"
6649 eval flag=\"$hardcode_libdir_flag_spec\"
6650 libdir="$acl_save_libdir"
6651 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6652 done
6653 fi
6654 fi
6655 if test "X$ltrpathdirs" != "X"; then
6656 for found_dir in $ltrpathdirs; do
6657 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6658 done
6659 fi
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
6675 stdlib.h string.h unistd.h sys/param.h
6676 do
6677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 fi
6684 ac_res=`eval echo '${'$as_ac_Header'}'`
6685 { echo "$as_me:$LINENO: result: $ac_res" >&5
6686 echo "${ECHO_T}$ac_res" >&6; }
6687 else
6688 # Is the header compilable?
6689 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6691 cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h. */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 $ac_includes_default
6698 #include <$ac_header>
6699 _ACEOF
6700 rm -f conftest.$ac_objext
6701 if { (ac_try="$ac_compile"
6702 case "(($ac_try" in
6703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704 *) ac_try_echo=$ac_try;;
6705 esac
6706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707 (eval "$ac_compile") 2>conftest.er1
6708 ac_status=$?
6709 grep -v '^ *+' conftest.er1 >conftest.err
6710 rm -f conftest.er1
6711 cat conftest.err >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } && {
6714 test -z "$ac_c_werror_flag" ||
6715 test ! -s conftest.err
6716 } && test -s conftest.$ac_objext; then
6717 ac_header_compiler=yes
6718 else
6719 echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6721
6722 ac_header_compiler=no
6723 fi
6724
6725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6727 echo "${ECHO_T}$ac_header_compiler" >&6; }
6728
6729 # Is the header present?
6730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #include <$ac_header>
6739 _ACEOF
6740 if { (ac_try="$ac_cpp conftest.$ac_ext"
6741 case "(($ac_try" in
6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743 *) ac_try_echo=$ac_try;;
6744 esac
6745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev/null && {
6753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6755 }; then
6756 ac_header_preproc=yes
6757 else
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6760
6761 ac_header_preproc=no
6762 fi
6763
6764 rm -f conftest.err conftest.$ac_ext
6765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6766 echo "${ECHO_T}$ac_header_preproc" >&6; }
6767
6768 # So? What about this header?
6769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6770 yes:no: )
6771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6775 ac_header_preproc=yes
6776 ;;
6777 no:yes:* )
6778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6790
6791 ;;
6792 esac
6793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798 eval "$as_ac_Header=\$ac_header_preproc"
6799 fi
6800 ac_res=`eval echo '${'$as_ac_Header'}'`
6801 { echo "$as_me:$LINENO: result: $ac_res" >&5
6802 echo "${ECHO_T}$ac_res" >&6; }
6803
6804 fi
6805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6806 cat >>confdefs.h <<_ACEOF
6807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6808 _ACEOF
6809
6810 fi
6811
6812 done
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
6836 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
6837 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
6838 do
6839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 else
6845 cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h. */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6853 #define $ac_func innocuous_$ac_func
6854
6855 /* System header to define __stub macros and hopefully few prototypes,
6856 which can conflict with char $ac_func (); below.
6857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6858 <limits.h> exists even on freestanding compilers. */
6859
6860 #ifdef __STDC__
6861 # include <limits.h>
6862 #else
6863 # include <assert.h>
6864 #endif
6865
6866 #undef $ac_func
6867
6868 /* Override any GCC internal prototype to avoid an error.
6869 Use char because int might match the return type of a GCC
6870 builtin and then its argument prototype would still apply. */
6871 #ifdef __cplusplus
6872 extern "C"
6873 #endif
6874 char $ac_func ();
6875 /* The GNU C library defines this for functions which it implements
6876 to always fail with ENOSYS. Some functions are actually named
6877 something starting with __ and the normal name is an alias. */
6878 #if defined __stub_$ac_func || defined __stub___$ac_func
6879 choke me
6880 #endif
6881
6882 int
6883 main ()
6884 {
6885 return $ac_func ();
6886 ;
6887 return 0;
6888 }
6889 _ACEOF
6890 rm -f conftest.$ac_objext conftest$ac_exeext
6891 if { (ac_try="$ac_link"
6892 case "(($ac_try" in
6893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894 *) ac_try_echo=$ac_try;;
6895 esac
6896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6897 (eval "$ac_link") 2>conftest.er1
6898 ac_status=$?
6899 grep -v '^ *+' conftest.er1 >conftest.err
6900 rm -f conftest.er1
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } && {
6904 test -z "$ac_c_werror_flag" ||
6905 test ! -s conftest.err
6906 } && test -s conftest$ac_exeext &&
6907 $as_test_x conftest$ac_exeext; then
6908 eval "$as_ac_var=yes"
6909 else
6910 echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6912
6913 eval "$as_ac_var=no"
6914 fi
6915
6916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6917 conftest$ac_exeext conftest.$ac_ext
6918 fi
6919 ac_res=`eval echo '${'$as_ac_var'}'`
6920 { echo "$as_me:$LINENO: result: $ac_res" >&5
6921 echo "${ECHO_T}$ac_res" >&6; }
6922 if test `eval echo '${'$as_ac_var'}'` = yes; then
6923 cat >>confdefs.h <<_ACEOF
6924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6925 _ACEOF
6926
6927 fi
6928 done
6929
6930
6931
6932
6933
6934
6935
6936 am_save_CPPFLAGS="$CPPFLAGS"
6937
6938 for element in $INCICONV; do
6939 haveit=
6940 for x in $CPPFLAGS; do
6941
6942 acl_save_prefix="$prefix"
6943 prefix="$acl_final_prefix"
6944 acl_save_exec_prefix="$exec_prefix"
6945 exec_prefix="$acl_final_exec_prefix"
6946 eval x=\"$x\"
6947 exec_prefix="$acl_save_exec_prefix"
6948 prefix="$acl_save_prefix"
6949
6950 if test "X$x" = "X$element"; then
6951 haveit=yes
6952 break
6953 fi
6954 done
6955 if test -z "$haveit"; then
6956 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6957 fi
6958 done
6959
6960
6961 { echo "$as_me:$LINENO: checking for iconv" >&5
6962 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6963 if test "${am_cv_func_iconv+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966
6967 am_cv_func_iconv="no, consider installing GNU libiconv"
6968 am_cv_lib_iconv=no
6969 cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h. */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 #include <stdlib.h>
6976 #include <iconv.h>
6977 int
6978 main ()
6979 {
6980 iconv_t cd = iconv_open("","");
6981 iconv(cd,NULL,NULL,NULL,NULL);
6982 iconv_close(cd);
6983 ;
6984 return 0;
6985 }
6986 _ACEOF
6987 rm -f conftest.$ac_objext conftest$ac_exeext
6988 if { (ac_try="$ac_link"
6989 case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992 esac
6993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994 (eval "$ac_link") 2>conftest.er1
6995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest$ac_exeext &&
7004 $as_test_x conftest$ac_exeext; then
7005 am_cv_func_iconv=yes
7006 else
7007 echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7009
7010
7011 fi
7012
7013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7014 conftest$ac_exeext conftest.$ac_ext
7015 if test "$am_cv_func_iconv" != yes; then
7016 am_save_LIBS="$LIBS"
7017 LIBS="$LIBS $LIBICONV"
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 #include <stdlib.h>
7025 #include <iconv.h>
7026 int
7027 main ()
7028 {
7029 iconv_t cd = iconv_open("","");
7030 iconv(cd,NULL,NULL,NULL,NULL);
7031 iconv_close(cd);
7032 ;
7033 return 0;
7034 }
7035 _ACEOF
7036 rm -f conftest.$ac_objext conftest$ac_exeext
7037 if { (ac_try="$ac_link"
7038 case "(($ac_try" in
7039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7040 *) ac_try_echo=$ac_try;;
7041 esac
7042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7043 (eval "$ac_link") 2>conftest.er1
7044 ac_status=$?
7045 grep -v '^ *+' conftest.er1 >conftest.err
7046 rm -f conftest.er1
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } && {
7050 test -z "$ac_c_werror_flag" ||
7051 test ! -s conftest.err
7052 } && test -s conftest$ac_exeext &&
7053 $as_test_x conftest$ac_exeext; then
7054 am_cv_lib_iconv=yes
7055 am_cv_func_iconv=yes
7056 else
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7059
7060
7061 fi
7062
7063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7064 conftest$ac_exeext conftest.$ac_ext
7065 LIBS="$am_save_LIBS"
7066 fi
7067
7068 fi
7069 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7070 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7071 if test "$am_cv_func_iconv" = yes; then
7072
7073 cat >>confdefs.h <<\_ACEOF
7074 #define HAVE_ICONV 1
7075 _ACEOF
7076
7077 fi
7078 if test "$am_cv_lib_iconv" = yes; then
7079 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7080 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7081 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7082 echo "${ECHO_T}$LIBICONV" >&6; }
7083 else
7084 CPPFLAGS="$am_save_CPPFLAGS"
7085 LIBICONV=
7086 LTLIBICONV=
7087 fi
7088
7089
7090
7091 if test "$am_cv_func_iconv" = yes; then
7092 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
7093 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
7094 if test "${am_cv_proto_iconv+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097
7098 cat >conftest.$ac_ext <<_ACEOF
7099 /* confdefs.h. */
7100 _ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7104
7105 #include <stdlib.h>
7106 #include <iconv.h>
7107 extern
7108 #ifdef __cplusplus
7109 "C"
7110 #endif
7111 #if defined(__STDC__) || defined(__cplusplus)
7112 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7113 #else
7114 size_t iconv();
7115 #endif
7116
7117 int
7118 main ()
7119 {
7120
7121 ;
7122 return 0;
7123 }
7124 _ACEOF
7125 rm -f conftest.$ac_objext
7126 if { (ac_try="$ac_compile"
7127 case "(($ac_try" in
7128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7129 *) ac_try_echo=$ac_try;;
7130 esac
7131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7132 (eval "$ac_compile") 2>conftest.er1
7133 ac_status=$?
7134 grep -v '^ *+' conftest.er1 >conftest.err
7135 rm -f conftest.er1
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } && {
7139 test -z "$ac_c_werror_flag" ||
7140 test ! -s conftest.err
7141 } && test -s conftest.$ac_objext; then
7142 am_cv_proto_iconv_arg1=""
7143 else
7144 echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.$ac_ext >&5
7146
7147 am_cv_proto_iconv_arg1="const"
7148 fi
7149
7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7152 fi
7153
7154 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7155 { echo "$as_me:$LINENO: result: ${ac_t:-
7156 }$am_cv_proto_iconv" >&5
7157 echo "${ECHO_T}${ac_t:-
7158 }$am_cv_proto_iconv" >&6; }
7159
7160 cat >>confdefs.h <<_ACEOF
7161 #define ICONV_CONST $am_cv_proto_iconv_arg1
7162 _ACEOF
7163
7164 fi
7165
7166
7167 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7168 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
7169 if test "${am_cv_langinfo_codeset+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 #include <langinfo.h>
7179 int
7180 main ()
7181 {
7182 char* cs = nl_langinfo(CODESET);
7183 ;
7184 return 0;
7185 }
7186 _ACEOF
7187 rm -f conftest.$ac_objext conftest$ac_exeext
7188 if { (ac_try="$ac_link"
7189 case "(($ac_try" in
7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7192 esac
7193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7194 (eval "$ac_link") 2>conftest.er1
7195 ac_status=$?
7196 grep -v '^ *+' conftest.er1 >conftest.err
7197 rm -f conftest.er1
7198 cat conftest.err >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } && {
7201 test -z "$ac_c_werror_flag" ||
7202 test ! -s conftest.err
7203 } && test -s conftest$ac_exeext &&
7204 $as_test_x conftest$ac_exeext; then
7205 am_cv_langinfo_codeset=yes
7206 else
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7209
7210 am_cv_langinfo_codeset=no
7211 fi
7212
7213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7214 conftest$ac_exeext conftest.$ac_ext
7215
7216 fi
7217 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7218 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
7219 if test $am_cv_langinfo_codeset = yes; then
7220
7221 cat >>confdefs.h <<\_ACEOF
7222 #define HAVE_LANGINFO_CODESET 1
7223 _ACEOF
7224
7225 fi
7226
7227 if test $ac_cv_header_locale_h = yes; then
7228
7229 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7230 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
7231 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234 cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h. */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 #include <locale.h>
7241 int
7242 main ()
7243 {
7244 return LC_MESSAGES
7245 ;
7246 return 0;
7247 }
7248 _ACEOF
7249 rm -f conftest.$ac_objext conftest$ac_exeext
7250 if { (ac_try="$ac_link"
7251 case "(($ac_try" in
7252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7253 *) ac_try_echo=$ac_try;;
7254 esac
7255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7256 (eval "$ac_link") 2>conftest.er1
7257 ac_status=$?
7258 grep -v '^ *+' conftest.er1 >conftest.err
7259 rm -f conftest.er1
7260 cat conftest.err >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } && {
7263 test -z "$ac_c_werror_flag" ||
7264 test ! -s conftest.err
7265 } && test -s conftest$ac_exeext &&
7266 $as_test_x conftest$ac_exeext; then
7267 am_cv_val_LC_MESSAGES=yes
7268 else
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7271
7272 am_cv_val_LC_MESSAGES=no
7273 fi
7274
7275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7276 conftest$ac_exeext conftest.$ac_ext
7277 fi
7278 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7279 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
7280 if test $am_cv_val_LC_MESSAGES = yes; then
7281
7282 cat >>confdefs.h <<\_ACEOF
7283 #define HAVE_LC_MESSAGES 1
7284 _ACEOF
7285
7286 fi
7287
7288 fi
7289
7290 for ac_prog in bison
7291 do
7292 # Extract the first word of "$ac_prog", so it can be a program name with args.
7293 set dummy $ac_prog; ac_word=$2
7294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7296 if test "${ac_cv_prog_INTLBISON+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299 if test -n "$INTLBISON"; then
7300 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7304 do
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7309 ac_cv_prog_INTLBISON="$ac_prog"
7310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7312 fi
7313 done
7314 done
7315 IFS=$as_save_IFS
7316
7317 fi
7318 fi
7319 INTLBISON=$ac_cv_prog_INTLBISON
7320 if test -n "$INTLBISON"; then
7321 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
7322 echo "${ECHO_T}$INTLBISON" >&6; }
7323 else
7324 { echo "$as_me:$LINENO: result: no" >&5
7325 echo "${ECHO_T}no" >&6; }
7326 fi
7327
7328
7329 test -n "$INTLBISON" && break
7330 done
7331
7332 if test -z "$INTLBISON"; then
7333 ac_verc_fail=yes
7334 else
7335 { echo "$as_me:$LINENO: checking version of bison" >&5
7336 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
7337 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7338 case $ac_prog_version in
7339 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7340 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7341 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7342 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7343 esac
7344 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
7345 echo "${ECHO_T}$ac_prog_version" >&6; }
7346 fi
7347 if test $ac_verc_fail = yes; then
7348 INTLBISON=:
7349 fi
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7366 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
7367 # Check whether --enable-nls was given.
7368 if test "${enable_nls+set}" = set; then
7369 enableval=$enable_nls; USE_NLS=$enableval
7370 else
7371 USE_NLS=yes
7372 fi
7373
7374 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7375 echo "${ECHO_T}$USE_NLS" >&6; }
7376
7377
7378
7379 BUILD_INCLUDED_LIBINTL=no
7380 USE_INCLUDED_LIBINTL=no
7381
7382 LIBINTL=
7383 LTLIBINTL=
7384 POSUB=
7385
7386 if test "$USE_NLS" = "yes"; then
7387 gt_use_preinstalled_gnugettext=no
7388
7389 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7390 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
7391
7392 # Check whether --with-included-gettext was given.
7393 if test "${with_included_gettext+set}" = set; then
7394 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
7395 else
7396 nls_cv_force_use_gnu_gettext=no
7397 fi
7398
7399 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7400 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
7401
7402 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7403 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7404
7405
7406
7407
7408
7409
7410 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7411 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
7412 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415 cat >conftest.$ac_ext <<_ACEOF
7416 /* confdefs.h. */
7417 _ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h. */
7421 #include <libintl.h>
7422 extern int _nl_msg_cat_cntr;
7423 extern int *_nl_domain_bindings;
7424 int
7425 main ()
7426 {
7427 bindtextdomain ("", "");
7428 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
7429 ;
7430 return 0;
7431 }
7432 _ACEOF
7433 rm -f conftest.$ac_objext conftest$ac_exeext
7434 if { (ac_try="$ac_link"
7435 case "(($ac_try" in
7436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7437 *) ac_try_echo=$ac_try;;
7438 esac
7439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7440 (eval "$ac_link") 2>conftest.er1
7441 ac_status=$?
7442 grep -v '^ *+' conftest.er1 >conftest.err
7443 rm -f conftest.er1
7444 cat conftest.err >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } && {
7447 test -z "$ac_c_werror_flag" ||
7448 test ! -s conftest.err
7449 } && test -s conftest$ac_exeext &&
7450 $as_test_x conftest$ac_exeext; then
7451 gt_cv_func_gnugettext2_libc=yes
7452 else
7453 echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7455
7456 gt_cv_func_gnugettext2_libc=no
7457 fi
7458
7459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7460 conftest$ac_exeext conftest.$ac_ext
7461 fi
7462 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
7463 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6; }
7464
7465 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
7466
7467
7468
7469 use_additional=yes
7470
7471 acl_save_prefix="$prefix"
7472 prefix="$acl_final_prefix"
7473 acl_save_exec_prefix="$exec_prefix"
7474 exec_prefix="$acl_final_exec_prefix"
7475
7476 eval additional_includedir=\"$includedir\"
7477 eval additional_libdir=\"$libdir\"
7478
7479 exec_prefix="$acl_save_exec_prefix"
7480 prefix="$acl_save_prefix"
7481
7482
7483 # Check whether --with-libintl-prefix was given.
7484 if test "${with_libintl_prefix+set}" = set; then
7485 withval=$with_libintl_prefix;
7486 if test "X$withval" = "Xno"; then
7487 use_additional=no
7488 else
7489 if test "X$withval" = "X"; then
7490
7491 acl_save_prefix="$prefix"
7492 prefix="$acl_final_prefix"
7493 acl_save_exec_prefix="$exec_prefix"
7494 exec_prefix="$acl_final_exec_prefix"
7495
7496 eval additional_includedir=\"$includedir\"
7497 eval additional_libdir=\"$libdir\"
7498
7499 exec_prefix="$acl_save_exec_prefix"
7500 prefix="$acl_save_prefix"
7501
7502 else
7503 additional_includedir="$withval/include"
7504 additional_libdir="$withval/lib"
7505 fi
7506 fi
7507
7508 fi
7509
7510 LIBINTL=
7511 LTLIBINTL=
7512 INCINTL=
7513 rpathdirs=
7514 ltrpathdirs=
7515 names_already_handled=
7516 names_next_round='intl '
7517 while test -n "$names_next_round"; do
7518 names_this_round="$names_next_round"
7519 names_next_round=
7520 for name in $names_this_round; do
7521 already_handled=
7522 for n in $names_already_handled; do
7523 if test "$n" = "$name"; then
7524 already_handled=yes
7525 break
7526 fi
7527 done
7528 if test -z "$already_handled"; then
7529 names_already_handled="$names_already_handled $name"
7530 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7531 eval value=\"\$HAVE_LIB$uppername\"
7532 if test -n "$value"; then
7533 if test "$value" = yes; then
7534 eval value=\"\$LIB$uppername\"
7535 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7536 eval value=\"\$LTLIB$uppername\"
7537 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7538 else
7539 :
7540 fi
7541 else
7542 found_dir=
7543 found_la=
7544 found_so=
7545 found_a=
7546 if test $use_additional = yes; then
7547 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7548 found_dir="$additional_libdir"
7549 found_so="$additional_libdir/lib$name.$shlibext"
7550 if test -f "$additional_libdir/lib$name.la"; then
7551 found_la="$additional_libdir/lib$name.la"
7552 fi
7553 else
7554 if test -f "$additional_libdir/lib$name.$libext"; then
7555 found_dir="$additional_libdir"
7556 found_a="$additional_libdir/lib$name.$libext"
7557 if test -f "$additional_libdir/lib$name.la"; then
7558 found_la="$additional_libdir/lib$name.la"
7559 fi
7560 fi
7561 fi
7562 fi
7563 if test "X$found_dir" = "X"; then
7564 for x in $LDFLAGS $LTLIBINTL; do
7565
7566 acl_save_prefix="$prefix"
7567 prefix="$acl_final_prefix"
7568 acl_save_exec_prefix="$exec_prefix"
7569 exec_prefix="$acl_final_exec_prefix"
7570 eval x=\"$x\"
7571 exec_prefix="$acl_save_exec_prefix"
7572 prefix="$acl_save_prefix"
7573
7574 case "$x" in
7575 -L*)
7576 dir=`echo "X$x" | sed -e 's/^X-L//'`
7577 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7578 found_dir="$dir"
7579 found_so="$dir/lib$name.$shlibext"
7580 if test -f "$dir/lib$name.la"; then
7581 found_la="$dir/lib$name.la"
7582 fi
7583 else
7584 if test -f "$dir/lib$name.$libext"; then
7585 found_dir="$dir"
7586 found_a="$dir/lib$name.$libext"
7587 if test -f "$dir/lib$name.la"; then
7588 found_la="$dir/lib$name.la"
7589 fi
7590 fi
7591 fi
7592 ;;
7593 esac
7594 if test "X$found_dir" != "X"; then
7595 break
7596 fi
7597 done
7598 fi
7599 if test "X$found_dir" != "X"; then
7600 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7601 if test "X$found_so" != "X"; then
7602 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7603 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7604 else
7605 haveit=
7606 for x in $ltrpathdirs; do
7607 if test "X$x" = "X$found_dir"; then
7608 haveit=yes
7609 break
7610 fi
7611 done
7612 if test -z "$haveit"; then
7613 ltrpathdirs="$ltrpathdirs $found_dir"
7614 fi
7615 if test "$hardcode_direct" = yes; then
7616 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7617 else
7618 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7619 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7620 haveit=
7621 for x in $rpathdirs; do
7622 if test "X$x" = "X$found_dir"; then
7623 haveit=yes
7624 break
7625 fi
7626 done
7627 if test -z "$haveit"; then
7628 rpathdirs="$rpathdirs $found_dir"
7629 fi
7630 else
7631 haveit=
7632 for x in $LDFLAGS $LIBINTL; do
7633
7634 acl_save_prefix="$prefix"
7635 prefix="$acl_final_prefix"
7636 acl_save_exec_prefix="$exec_prefix"
7637 exec_prefix="$acl_final_exec_prefix"
7638 eval x=\"$x\"
7639 exec_prefix="$acl_save_exec_prefix"
7640 prefix="$acl_save_prefix"
7641
7642 if test "X$x" = "X-L$found_dir"; then
7643 haveit=yes
7644 break
7645 fi
7646 done
7647 if test -z "$haveit"; then
7648 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7649 fi
7650 if test "$hardcode_minus_L" != no; then
7651 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7652 else
7653 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7654 fi
7655 fi
7656 fi
7657 fi
7658 else
7659 if test "X$found_a" != "X"; then
7660 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7661 else
7662 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7663 fi
7664 fi
7665 additional_includedir=
7666 case "$found_dir" in
7667 */lib | */lib/)
7668 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7669 additional_includedir="$basedir/include"
7670 ;;
7671 esac
7672 if test "X$additional_includedir" != "X"; then
7673 if test "X$additional_includedir" != "X/usr/include"; then
7674 haveit=
7675 if test "X$additional_includedir" = "X/usr/local/include"; then
7676 if test -n "$GCC"; then
7677 case $host_os in
7678 linux*) haveit=yes;;
7679 esac
7680 fi
7681 fi
7682 if test -z "$haveit"; then
7683 for x in $CPPFLAGS $INCINTL; do
7684
7685 acl_save_prefix="$prefix"
7686 prefix="$acl_final_prefix"
7687 acl_save_exec_prefix="$exec_prefix"
7688 exec_prefix="$acl_final_exec_prefix"
7689 eval x=\"$x\"
7690 exec_prefix="$acl_save_exec_prefix"
7691 prefix="$acl_save_prefix"
7692
7693 if test "X$x" = "X-I$additional_includedir"; then
7694 haveit=yes
7695 break
7696 fi
7697 done
7698 if test -z "$haveit"; then
7699 if test -d "$additional_includedir"; then
7700 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7701 fi
7702 fi
7703 fi
7704 fi
7705 fi
7706 if test -n "$found_la"; then
7707 save_libdir="$libdir"
7708 case "$found_la" in
7709 */* | *\\*) . "$found_la" ;;
7710 *) . "./$found_la" ;;
7711 esac
7712 libdir="$save_libdir"
7713 for dep in $dependency_libs; do
7714 case "$dep" in
7715 -L*)
7716 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7717 if test "X$additional_libdir" != "X/usr/lib"; then
7718 haveit=
7719 if test "X$additional_libdir" = "X/usr/local/lib"; then
7720 if test -n "$GCC"; then
7721 case $host_os in
7722 linux*) haveit=yes;;
7723 esac
7724 fi
7725 fi
7726 if test -z "$haveit"; then
7727 haveit=
7728 for x in $LDFLAGS $LIBINTL; do
7729
7730 acl_save_prefix="$prefix"
7731 prefix="$acl_final_prefix"
7732 acl_save_exec_prefix="$exec_prefix"
7733 exec_prefix="$acl_final_exec_prefix"
7734 eval x=\"$x\"
7735 exec_prefix="$acl_save_exec_prefix"
7736 prefix="$acl_save_prefix"
7737
7738 if test "X$x" = "X-L$additional_libdir"; then
7739 haveit=yes
7740 break
7741 fi
7742 done
7743 if test -z "$haveit"; then
7744 if test -d "$additional_libdir"; then
7745 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7746 fi
7747 fi
7748 haveit=
7749 for x in $LDFLAGS $LTLIBINTL; do
7750
7751 acl_save_prefix="$prefix"
7752 prefix="$acl_final_prefix"
7753 acl_save_exec_prefix="$exec_prefix"
7754 exec_prefix="$acl_final_exec_prefix"
7755 eval x=\"$x\"
7756 exec_prefix="$acl_save_exec_prefix"
7757 prefix="$acl_save_prefix"
7758
7759 if test "X$x" = "X-L$additional_libdir"; then
7760 haveit=yes
7761 break
7762 fi
7763 done
7764 if test -z "$haveit"; then
7765 if test -d "$additional_libdir"; then
7766 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7767 fi
7768 fi
7769 fi
7770 fi
7771 ;;
7772 -R*)
7773 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7774 if test "$enable_rpath" != no; then
7775 haveit=
7776 for x in $rpathdirs; do
7777 if test "X$x" = "X$dir"; then
7778 haveit=yes
7779 break
7780 fi
7781 done
7782 if test -z "$haveit"; then
7783 rpathdirs="$rpathdirs $dir"
7784 fi
7785 haveit=
7786 for x in $ltrpathdirs; do
7787 if test "X$x" = "X$dir"; then
7788 haveit=yes
7789 break
7790 fi
7791 done
7792 if test -z "$haveit"; then
7793 ltrpathdirs="$ltrpathdirs $dir"
7794 fi
7795 fi
7796 ;;
7797 -l*)
7798 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7799 ;;
7800 *.la)
7801 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7802 ;;
7803 *)
7804 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7805 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7806 ;;
7807 esac
7808 done
7809 fi
7810 else
7811 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7812 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7813 fi
7814 fi
7815 fi
7816 done
7817 done
7818 if test "X$rpathdirs" != "X"; then
7819 if test -n "$hardcode_libdir_separator"; then
7820 alldirs=
7821 for found_dir in $rpathdirs; do
7822 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7823 done
7824 acl_save_libdir="$libdir"
7825 libdir="$alldirs"
7826 eval flag=\"$hardcode_libdir_flag_spec\"
7827 libdir="$acl_save_libdir"
7828 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7829 else
7830 for found_dir in $rpathdirs; do
7831 acl_save_libdir="$libdir"
7832 libdir="$found_dir"
7833 eval flag=\"$hardcode_libdir_flag_spec\"
7834 libdir="$acl_save_libdir"
7835 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7836 done
7837 fi
7838 fi
7839 if test "X$ltrpathdirs" != "X"; then
7840 for found_dir in $ltrpathdirs; do
7841 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7842 done
7843 fi
7844
7845 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7846 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7847 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850 gt_save_CPPFLAGS="$CPPFLAGS"
7851 CPPFLAGS="$CPPFLAGS $INCINTL"
7852 gt_save_LIBS="$LIBS"
7853 LIBS="$LIBS $LIBINTL"
7854 cat >conftest.$ac_ext <<_ACEOF
7855 /* confdefs.h. */
7856 _ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h. */
7860 #include <libintl.h>
7861 extern int _nl_msg_cat_cntr;
7862 extern
7863 #ifdef __cplusplus
7864 "C"
7865 #endif
7866 const char *_nl_expand_alias ();
7867 int
7868 main ()
7869 {
7870 bindtextdomain ("", "");
7871 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7872 ;
7873 return 0;
7874 }
7875 _ACEOF
7876 rm -f conftest.$ac_objext conftest$ac_exeext
7877 if { (ac_try="$ac_link"
7878 case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7881 esac
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_link") 2>conftest.er1
7884 ac_status=$?
7885 grep -v '^ *+' conftest.er1 >conftest.err
7886 rm -f conftest.er1
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } && {
7890 test -z "$ac_c_werror_flag" ||
7891 test ! -s conftest.err
7892 } && test -s conftest$ac_exeext &&
7893 $as_test_x conftest$ac_exeext; then
7894 gt_cv_func_gnugettext2_libintl=yes
7895 else
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7898
7899 gt_cv_func_gnugettext2_libintl=no
7900 fi
7901
7902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7903 conftest$ac_exeext conftest.$ac_ext
7904 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
7905 LIBS="$LIBS $LIBICONV"
7906 cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h. */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 #include <libintl.h>
7913 extern int _nl_msg_cat_cntr;
7914 extern
7915 #ifdef __cplusplus
7916 "C"
7917 #endif
7918 const char *_nl_expand_alias ();
7919 int
7920 main ()
7921 {
7922 bindtextdomain ("", "");
7923 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7924 ;
7925 return 0;
7926 }
7927 _ACEOF
7928 rm -f conftest.$ac_objext conftest$ac_exeext
7929 if { (ac_try="$ac_link"
7930 case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933 esac
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_link") 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } && {
7942 test -z "$ac_c_werror_flag" ||
7943 test ! -s conftest.err
7944 } && test -s conftest$ac_exeext &&
7945 $as_test_x conftest$ac_exeext; then
7946 LIBINTL="$LIBINTL $LIBICONV"
7947 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7948 gt_cv_func_gnugettext2_libintl=yes
7949
7950 else
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7953
7954
7955 fi
7956
7957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7958 conftest$ac_exeext conftest.$ac_ext
7959 fi
7960 CPPFLAGS="$gt_save_CPPFLAGS"
7961 LIBS="$gt_save_LIBS"
7962 fi
7963 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
7964 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6; }
7965 fi
7966
7967 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
7968 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
7969 && test "$PACKAGE" != gettext; }; then
7970 gt_use_preinstalled_gnugettext=yes
7971 else
7972 LIBINTL=
7973 LTLIBINTL=
7974 INCINTL=
7975 fi
7976
7977
7978 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
7979 nls_cv_use_gnu_gettext=yes
7980 fi
7981 fi
7982
7983 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7984 INTLOBJS="\$(GETTOBJS)"
7985 BUILD_INCLUDED_LIBINTL=yes
7986 USE_INCLUDED_LIBINTL=yes
7987 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
7988 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
7989 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
7990 fi
7991
7992 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7993 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7994 CATOBJEXT=.gmo
7995 fi
7996
7997
7998 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7999 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8000
8001 cat >>confdefs.h <<\_ACEOF
8002 #define ENABLE_NLS 1
8003 _ACEOF
8004
8005 else
8006 USE_NLS=no
8007 fi
8008 fi
8009
8010 if test "$USE_NLS" = "yes"; then
8011
8012 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8013 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8014 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
8015 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
8016 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
8017 echo "${ECHO_T}$LIBINTL" >&6; }
8018
8019 for element in $INCINTL; do
8020 haveit=
8021 for x in $CPPFLAGS; do
8022
8023 acl_save_prefix="$prefix"
8024 prefix="$acl_final_prefix"
8025 acl_save_exec_prefix="$exec_prefix"
8026 exec_prefix="$acl_final_exec_prefix"
8027 eval x=\"$x\"
8028 exec_prefix="$acl_save_exec_prefix"
8029 prefix="$acl_save_prefix"
8030
8031 if test "X$x" = "X$element"; then
8032 haveit=yes
8033 break
8034 fi
8035 done
8036 if test -z "$haveit"; then
8037 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8038 fi
8039 done
8040
8041 fi
8042
8043
8044 cat >>confdefs.h <<\_ACEOF
8045 #define HAVE_GETTEXT 1
8046 _ACEOF
8047
8048
8049 cat >>confdefs.h <<\_ACEOF
8050 #define HAVE_DCGETTEXT 1
8051 _ACEOF
8052
8053 fi
8054
8055 POSUB=po
8056 fi
8057
8058
8059 if test "$PACKAGE" = gettext; then
8060 BUILD_INCLUDED_LIBINTL=yes
8061 fi
8062
8063
8064
8065
8066
8067
8068 nls_cv_header_intl=
8069 nls_cv_header_libgt=
8070
8071 DATADIRNAME=share
8072
8073
8074 INSTOBJEXT=.mo
8075
8076
8077 GENCAT=gencat
8078
8079
8080 INTL_LIBTOOL_SUFFIX_PREFIX=
8081
8082
8083
8084 INTLLIBS="$LIBINTL"
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097 am_save_CPPFLAGS="$CPPFLAGS"
8098
8099 for element in $INCICONV; do
8100 haveit=
8101 for x in $CPPFLAGS; do
8102
8103 acl_save_prefix="$prefix"
8104 prefix="$acl_final_prefix"
8105 acl_save_exec_prefix="$exec_prefix"
8106 exec_prefix="$acl_final_exec_prefix"
8107 eval x=\"$x\"
8108 exec_prefix="$acl_save_exec_prefix"
8109 prefix="$acl_save_prefix"
8110
8111 if test "X$x" = "X$element"; then
8112 haveit=yes
8113 break
8114 fi
8115 done
8116 if test -z "$haveit"; then
8117 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8118 fi
8119 done
8120
8121
8122 { echo "$as_me:$LINENO: checking for iconv" >&5
8123 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
8124 if test "${am_cv_func_iconv+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 else
8127
8128 am_cv_func_iconv="no, consider installing GNU libiconv"
8129 am_cv_lib_iconv=no
8130 cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h. */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8136 #include <stdlib.h>
8137 #include <iconv.h>
8138 int
8139 main ()
8140 {
8141 iconv_t cd = iconv_open("","");
8142 iconv(cd,NULL,NULL,NULL,NULL);
8143 iconv_close(cd);
8144 ;
8145 return 0;
8146 }
8147 _ACEOF
8148 rm -f conftest.$ac_objext conftest$ac_exeext
8149 if { (ac_try="$ac_link"
8150 case "(($ac_try" in
8151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152 *) ac_try_echo=$ac_try;;
8153 esac
8154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8155 (eval "$ac_link") 2>conftest.er1
8156 ac_status=$?
8157 grep -v '^ *+' conftest.er1 >conftest.err
8158 rm -f conftest.er1
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } && {
8162 test -z "$ac_c_werror_flag" ||
8163 test ! -s conftest.err
8164 } && test -s conftest$ac_exeext &&
8165 $as_test_x conftest$ac_exeext; then
8166 am_cv_func_iconv=yes
8167 else
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8170
8171
8172 fi
8173
8174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8175 conftest$ac_exeext conftest.$ac_ext
8176 if test "$am_cv_func_iconv" != yes; then
8177 am_save_LIBS="$LIBS"
8178 LIBS="$LIBS $LIBICONV"
8179 cat >conftest.$ac_ext <<_ACEOF
8180 /* confdefs.h. */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8185 #include <stdlib.h>
8186 #include <iconv.h>
8187 int
8188 main ()
8189 {
8190 iconv_t cd = iconv_open("","");
8191 iconv(cd,NULL,NULL,NULL,NULL);
8192 iconv_close(cd);
8193 ;
8194 return 0;
8195 }
8196 _ACEOF
8197 rm -f conftest.$ac_objext conftest$ac_exeext
8198 if { (ac_try="$ac_link"
8199 case "(($ac_try" in
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8202 esac
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204 (eval "$ac_link") 2>conftest.er1
8205 ac_status=$?
8206 grep -v '^ *+' conftest.er1 >conftest.err
8207 rm -f conftest.er1
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } && {
8211 test -z "$ac_c_werror_flag" ||
8212 test ! -s conftest.err
8213 } && test -s conftest$ac_exeext &&
8214 $as_test_x conftest$ac_exeext; then
8215 am_cv_lib_iconv=yes
8216 am_cv_func_iconv=yes
8217 else
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8220
8221
8222 fi
8223
8224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8225 conftest$ac_exeext conftest.$ac_ext
8226 LIBS="$am_save_LIBS"
8227 fi
8228
8229 fi
8230 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8231 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
8232 if test "$am_cv_func_iconv" = yes; then
8233
8234 cat >>confdefs.h <<\_ACEOF
8235 #define HAVE_ICONV 1
8236 _ACEOF
8237
8238 fi
8239 if test "$am_cv_lib_iconv" = yes; then
8240 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8241 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
8242 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
8243 echo "${ECHO_T}$LIBICONV" >&6; }
8244 else
8245 CPPFLAGS="$am_save_CPPFLAGS"
8246 LIBICONV=
8247 LTLIBICONV=
8248 fi
8249
8250
8251
8252 if test "$am_cv_func_iconv" = yes; then
8253 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
8254 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
8255 if test "${am_cv_proto_iconv+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 else
8258
8259 cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h. */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265
8266 #include <stdlib.h>
8267 #include <iconv.h>
8268 extern
8269 #ifdef __cplusplus
8270 "C"
8271 #endif
8272 #if defined(__STDC__) || defined(__cplusplus)
8273 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8274 #else
8275 size_t iconv();
8276 #endif
8277
8278 int
8279 main ()
8280 {
8281
8282 ;
8283 return 0;
8284 }
8285 _ACEOF
8286 rm -f conftest.$ac_objext
8287 if { (ac_try="$ac_compile"
8288 case "(($ac_try" in
8289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290 *) ac_try_echo=$ac_try;;
8291 esac
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 (eval "$ac_compile") 2>conftest.er1
8294 ac_status=$?
8295 grep -v '^ *+' conftest.er1 >conftest.err
8296 rm -f conftest.er1
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } && {
8300 test -z "$ac_c_werror_flag" ||
8301 test ! -s conftest.err
8302 } && test -s conftest.$ac_objext; then
8303 am_cv_proto_iconv_arg1=""
8304 else
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308 am_cv_proto_iconv_arg1="const"
8309 fi
8310
8311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8312 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8313 fi
8314
8315 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8316 { echo "$as_me:$LINENO: result: ${ac_t:-
8317 }$am_cv_proto_iconv" >&5
8318 echo "${ECHO_T}${ac_t:-
8319 }$am_cv_proto_iconv" >&6; }
8320
8321 cat >>confdefs.h <<_ACEOF
8322 #define ICONV_CONST $am_cv_proto_iconv_arg1
8323 _ACEOF
8324
8325 fi
8326
8327
8328
8329 if test "${ac_cv_c_compiler_gnu}" = "yes"; then
8330 # -ansi breaks compile of liflines/askprogram.c [pere 2000-12-31]
8331 for flag in \
8332 -W \
8333 -Wall \
8334 -Wcast-align \
8335 -Wmissing-declarations \
8336 -Wmissing-prototypes \
8337 -Wreturn-type \
8338 -Wstrict-prototypes \
8339 -pedantic
8340 do
8341 case "$CFLAGS" in
8342 "$flag" | "$flag "* | *" $flag" | *" $flag "* )
8343 :
8344 ;;
8345 *)
8346 CFLAGS="$CFLAGS $flag"
8347 ;;
8348 esac
8349
8350 done
8351
8352 CFLAGS="${CFLAGS} -g"
8353 fi
8354
8355 # OS-Specific Fixups
8356 # Cygwin - fixes linker problems
8357 # Darwin - will pick up Fink-installed headers and libraries
8358 case $host in
8359 *pc-cygwin*)
8360 CFLAGS="${CFLAGS} -DBROKEN_LINKER"
8361 ;;
8362 *apple-darwin*)
8363 CPPFLAGS="${CPPFLAGS} -I/sw/include";
8364 LDFLAGS="${LDFLAGS} -L/sw/lib"
8365 ;;
8366 esac
8367
8368
8369 # Shall we build the docs?
8370
8371 # Check whether --with-docs was given.
8372 if test "${with_docs+set}" = set; then
8373 withval=$with_docs; with_docs=$withval
8374 else
8375 with_docs=no
8376
8377 fi
8378
8379
8380 DOCS_TARGET=""
8381 if test "$with_docs" = "yes"
8382 then
8383 echo Looking for sgmltools
8384 # Extract the first word of "sgmltools", so it can be a program name with args.
8385 set dummy sgmltools; ac_word=$2
8386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8388 if test "${ac_cv_path_SGMLTOOLS+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 else
8391 case $SGMLTOOLS in
8392 [\\/]* | ?:[\\/]*)
8393 ac_cv_path_SGMLTOOLS="$SGMLTOOLS" # Let the user override the test with a path.
8394 ;;
8395 *)
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8398 do
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403 ac_cv_path_SGMLTOOLS="$as_dir/$ac_word$ac_exec_ext"
8404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 break 2
8406 fi
8407 done
8408 done
8409 IFS=$as_save_IFS
8410
8411 test -z "$ac_cv_path_SGMLTOOLS" && ac_cv_path_SGMLTOOLS="FAIL"
8412 ;;
8413 esac
8414 fi
8415 SGMLTOOLS=$ac_cv_path_SGMLTOOLS
8416 if test -n "$SGMLTOOLS"; then
8417 { echo "$as_me:$LINENO: result: $SGMLTOOLS" >&5
8418 echo "${ECHO_T}$SGMLTOOLS" >&6; }
8419 else
8420 { echo "$as_me:$LINENO: result: no" >&5
8421 echo "${ECHO_T}no" >&6; }
8422 fi
8423
8424
8425 if test "$SGMLTOOLS" = "FAIL"; then
8426 { echo "$as_me:$LINENO: result: ******************************************************************* " >&5
8427 echo "${ECHO_T}******************************************************************* " >&6; }
8428 { echo "$as_me:$LINENO: result: *** Cannot find sgmltools to build docs. skipping building docs *** " >&5
8429 echo "${ECHO_T}*** Cannot find sgmltools to build docs. skipping building docs *** " >&6; }
8430 { echo "$as_me:$LINENO: result: *** Visit http://sgmltools-lite.sourceforge.net and install it. *** " >&5
8431 echo "${ECHO_T}*** Visit http://sgmltools-lite.sourceforge.net and install it. *** " >&6; }
8432 { echo "$as_me:$LINENO: result: ******************************************************************* " >&5
8433 echo "${ECHO_T}******************************************************************* " >&6; }
8434 else
8435 DOCS_TARGET="simple"
8436
8437 fi
8438 fi
8439
8440
8441
8442
8443 # Compile with profiling, to find bottlenecks
8444
8445 # Check whether --with-profiling was given.
8446 if test "${with_profiling+set}" = set; then
8447 withval=$with_profiling; # Does it work for other compilers then GCC? [pere 2000-12-30]
8448 if test "${ac_cv_c_compiler_gnu}" = "yes"; then
8449 CFLAGS="${CFLAGS} -pg -a"
8450 LDFLAGS="${LDFLAGS} -pg -a"
8451
8452 # Make sure 'config.h' is changed if profiling is turned on, to
8453 # trigger recompile for every source file.
8454
8455 cat >>confdefs.h <<\_ACEOF
8456 #define PROFILING 1
8457 _ACEOF
8458
8459 else
8460 echo "Do not know how to perform profiling using this compiler!"
8461 fi
8462
8463
8464 fi
8465
8466
8467
8468 echo Looking for header files
8469
8470
8471
8472
8473
8474 for ac_header in getopt.h dirent.h pwd.h locale.h windows.h
8475 do
8476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 fi
8483 ac_res=`eval echo '${'$as_ac_Header'}'`
8484 { echo "$as_me:$LINENO: result: $ac_res" >&5
8485 echo "${ECHO_T}$ac_res" >&6; }
8486 else
8487 # Is the header compilable?
8488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h. */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496 $ac_includes_default
8497 #include <$ac_header>
8498 _ACEOF
8499 rm -f conftest.$ac_objext
8500 if { (ac_try="$ac_compile"
8501 case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504 esac
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_compile") 2>conftest.er1
8507 ac_status=$?
8508 grep -v '^ *+' conftest.er1 >conftest.err
8509 rm -f conftest.er1
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } && {
8513 test -z "$ac_c_werror_flag" ||
8514 test ! -s conftest.err
8515 } && test -s conftest.$ac_objext; then
8516 ac_header_compiler=yes
8517 else
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8520
8521 ac_header_compiler=no
8522 fi
8523
8524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8526 echo "${ECHO_T}$ac_header_compiler" >&6; }
8527
8528 # Is the header present?
8529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8531 cat >conftest.$ac_ext <<_ACEOF
8532 /* confdefs.h. */
8533 _ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 #include <$ac_header>
8538 _ACEOF
8539 if { (ac_try="$ac_cpp conftest.$ac_ext"
8540 case "(($ac_try" in
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8543 esac
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8546 ac_status=$?
8547 grep -v '^ *+' conftest.er1 >conftest.err
8548 rm -f conftest.er1
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } >/dev/null && {
8552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8553 test ! -s conftest.err
8554 }; then
8555 ac_header_preproc=yes
8556 else
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8559
8560 ac_header_preproc=no
8561 fi
8562
8563 rm -f conftest.err conftest.$ac_ext
8564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8565 echo "${ECHO_T}$ac_header_preproc" >&6; }
8566
8567 # So? What about this header?
8568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8569 yes:no: )
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8574 ac_header_preproc=yes
8575 ;;
8576 no:yes:* )
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8589
8590 ;;
8591 esac
8592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597 eval "$as_ac_Header=\$ac_header_preproc"
8598 fi
8599 ac_res=`eval echo '${'$as_ac_Header'}'`
8600 { echo "$as_me:$LINENO: result: $ac_res" >&5
8601 echo "${ECHO_T}$ac_res" >&6; }
8602
8603 fi
8604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8605 cat >>confdefs.h <<_ACEOF
8606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8607 _ACEOF
8608
8609 fi
8610
8611 done
8612
8613
8614
8615 for ac_header in wchar.h wctype.h
8616 do
8617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 fi
8624 ac_res=`eval echo '${'$as_ac_Header'}'`
8625 { echo "$as_me:$LINENO: result: $ac_res" >&5
8626 echo "${ECHO_T}$ac_res" >&6; }
8627 else
8628 # Is the header compilable?
8629 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8631 cat >conftest.$ac_ext <<_ACEOF
8632 /* confdefs.h. */
8633 _ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8637 $ac_includes_default
8638 #include <$ac_header>
8639 _ACEOF
8640 rm -f conftest.$ac_objext
8641 if { (ac_try="$ac_compile"
8642 case "(($ac_try" in
8643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8645 esac
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647 (eval "$ac_compile") 2>conftest.er1
8648 ac_status=$?
8649 grep -v '^ *+' conftest.er1 >conftest.err
8650 rm -f conftest.er1
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } && {
8654 test -z "$ac_c_werror_flag" ||
8655 test ! -s conftest.err
8656 } && test -s conftest.$ac_objext; then
8657 ac_header_compiler=yes
8658 else
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8661
8662 ac_header_compiler=no
8663 fi
8664
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8667 echo "${ECHO_T}$ac_header_compiler" >&6; }
8668
8669 # Is the header present?
8670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8672 cat >conftest.$ac_ext <<_ACEOF
8673 /* confdefs.h. */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 #include <$ac_header>
8679 _ACEOF
8680 if { (ac_try="$ac_cpp conftest.$ac_ext"
8681 case "(($ac_try" in
8682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683 *) ac_try_echo=$ac_try;;
8684 esac
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8687 ac_status=$?
8688 grep -v '^ *+' conftest.er1 >conftest.err
8689 rm -f conftest.er1
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } >/dev/null && {
8693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8694 test ! -s conftest.err
8695 }; then
8696 ac_header_preproc=yes
8697 else
8698 echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8700
8701 ac_header_preproc=no
8702 fi
8703
8704 rm -f conftest.err conftest.$ac_ext
8705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8706 echo "${ECHO_T}$ac_header_preproc" >&6; }
8707
8708 # So? What about this header?
8709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8710 yes:no: )
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8715 ac_header_preproc=yes
8716 ;;
8717 no:yes:* )
8718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8730
8731 ;;
8732 esac
8733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738 eval "$as_ac_Header=\$ac_header_preproc"
8739 fi
8740 ac_res=`eval echo '${'$as_ac_Header'}'`
8741 { echo "$as_me:$LINENO: result: $ac_res" >&5
8742 echo "${ECHO_T}$ac_res" >&6; }
8743
8744 fi
8745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8746 cat >>confdefs.h <<_ACEOF
8747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8748 _ACEOF
8749
8750 fi
8751
8752 done
8753
8754
8755 for ac_header in math.h
8756 do
8757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 fi
8764 ac_res=`eval echo '${'$as_ac_Header'}'`
8765 { echo "$as_me:$LINENO: result: $ac_res" >&5
8766 echo "${ECHO_T}$ac_res" >&6; }
8767 else
8768 # Is the header compilable?
8769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8771 cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h. */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8777 $ac_includes_default
8778 #include <$ac_header>
8779 _ACEOF
8780 rm -f conftest.$ac_objext
8781 if { (ac_try="$ac_compile"
8782 case "(($ac_try" in
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8785 esac
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 (eval "$ac_compile") 2>conftest.er1
8788 ac_status=$?
8789 grep -v '^ *+' conftest.er1 >conftest.err
8790 rm -f conftest.er1
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } && {
8794 test -z "$ac_c_werror_flag" ||
8795 test ! -s conftest.err
8796 } && test -s conftest.$ac_objext; then
8797 ac_header_compiler=yes
8798 else
8799 echo "$as_me: failed program was:" >&5
8800 sed 's/^/| /' conftest.$ac_ext >&5
8801
8802 ac_header_compiler=no
8803 fi
8804
8805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8807 echo "${ECHO_T}$ac_header_compiler" >&6; }
8808
8809 # Is the header present?
8810 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8812 cat >conftest.$ac_ext <<_ACEOF
8813 /* confdefs.h. */
8814 _ACEOF
8815 cat confdefs.h >>conftest.$ac_ext
8816 cat >>conftest.$ac_ext <<_ACEOF
8817 /* end confdefs.h. */
8818 #include <$ac_header>
8819 _ACEOF
8820 if { (ac_try="$ac_cpp conftest.$ac_ext"
8821 case "(($ac_try" in
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8824 esac
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8827 ac_status=$?
8828 grep -v '^ *+' conftest.er1 >conftest.err
8829 rm -f conftest.er1
8830 cat conftest.err >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } >/dev/null && {
8833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8834 test ! -s conftest.err
8835 }; then
8836 ac_header_preproc=yes
8837 else
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8840
8841 ac_header_preproc=no
8842 fi
8843
8844 rm -f conftest.err conftest.$ac_ext
8845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8846 echo "${ECHO_T}$ac_header_preproc" >&6; }
8847
8848 # So? What about this header?
8849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8850 yes:no: )
8851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8855 ac_header_preproc=yes
8856 ;;
8857 no:yes:* )
8858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8870
8871 ;;
8872 esac
8873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 else
8878 eval "$as_ac_Header=\$ac_header_preproc"
8879 fi
8880 ac_res=`eval echo '${'$as_ac_Header'}'`
8881 { echo "$as_me:$LINENO: result: $ac_res" >&5
8882 echo "${ECHO_T}$ac_res" >&6; }
8883
8884 fi
8885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8886 cat >>confdefs.h <<_ACEOF
8887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8888 _ACEOF
8889
8890 fi
8891
8892 done
8893
8894
8895
8896 for ac_header in ncurses/curses.h ncursesw/curses.h
8897 do
8898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 fi
8905 ac_res=`eval echo '${'$as_ac_Header'}'`
8906 { echo "$as_me:$LINENO: result: $ac_res" >&5
8907 echo "${ECHO_T}$ac_res" >&6; }
8908 else
8909 # Is the header compilable?
8910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8912 cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h. */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8918 $ac_includes_default
8919 #include <$ac_header>
8920 _ACEOF
8921 rm -f conftest.$ac_objext
8922 if { (ac_try="$ac_compile"
8923 case "(($ac_try" in
8924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925 *) ac_try_echo=$ac_try;;
8926 esac
8927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928 (eval "$ac_compile") 2>conftest.er1
8929 ac_status=$?
8930 grep -v '^ *+' conftest.er1 >conftest.err
8931 rm -f conftest.er1
8932 cat conftest.err >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } && {
8935 test -z "$ac_c_werror_flag" ||
8936 test ! -s conftest.err
8937 } && test -s conftest.$ac_objext; then
8938 ac_header_compiler=yes
8939 else
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943 ac_header_compiler=no
8944 fi
8945
8946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8948 echo "${ECHO_T}$ac_header_compiler" >&6; }
8949
8950 # Is the header present?
8951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8953 cat >conftest.$ac_ext <<_ACEOF
8954 /* confdefs.h. */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 #include <$ac_header>
8960 _ACEOF
8961 if { (ac_try="$ac_cpp conftest.$ac_ext"
8962 case "(($ac_try" in
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8965 esac
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } >/dev/null && {
8974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8975 test ! -s conftest.err
8976 }; then
8977 ac_header_preproc=yes
8978 else
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8981
8982 ac_header_preproc=no
8983 fi
8984
8985 rm -f conftest.err conftest.$ac_ext
8986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8987 echo "${ECHO_T}$ac_header_preproc" >&6; }
8988
8989 # So? What about this header?
8990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8991 yes:no: )
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8996 ac_header_preproc=yes
8997 ;;
8998 no:yes:* )
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9011
9012 ;;
9013 esac
9014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019 eval "$as_ac_Header=\$ac_header_preproc"
9020 fi
9021 ac_res=`eval echo '${'$as_ac_Header'}'`
9022 { echo "$as_me:$LINENO: result: $ac_res" >&5
9023 echo "${ECHO_T}$ac_res" >&6; }
9024
9025 fi
9026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9027 cat >>confdefs.h <<_ACEOF
9028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9029 _ACEOF
9030
9031 fi
9032
9033 done
9034
9035
9036 echo Looking for library functions
9037
9038
9039
9040
9041
9042 for ac_func in _vsnprintf heapwalk _heapwalk getpwuid setlocale
9043 do
9044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050 cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h. */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9058 #define $ac_func innocuous_$ac_func
9059
9060 /* System header to define __stub macros and hopefully few prototypes,
9061 which can conflict with char $ac_func (); below.
9062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9063 <limits.h> exists even on freestanding compilers. */
9064
9065 #ifdef __STDC__
9066 # include <limits.h>
9067 #else
9068 # include <assert.h>
9069 #endif
9070
9071 #undef $ac_func
9072
9073 /* Override any GCC internal prototype to avoid an error.
9074 Use char because int might match the return type of a GCC
9075 builtin and then its argument prototype would still apply. */
9076 #ifdef __cplusplus
9077 extern "C"
9078 #endif
9079 char $ac_func ();
9080 /* The GNU C library defines this for functions which it implements
9081 to always fail with ENOSYS. Some functions are actually named
9082 something starting with __ and the normal name is an alias. */
9083 #if defined __stub_$ac_func || defined __stub___$ac_func
9084 choke me
9085 #endif
9086
9087 int
9088 main ()
9089 {
9090 return $ac_func ();
9091 ;
9092 return 0;
9093 }
9094 _ACEOF
9095 rm -f conftest.$ac_objext conftest$ac_exeext
9096 if { (ac_try="$ac_link"
9097 case "(($ac_try" in
9098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099 *) ac_try_echo=$ac_try;;
9100 esac
9101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102 (eval "$ac_link") 2>conftest.er1
9103 ac_status=$?
9104 grep -v '^ *+' conftest.er1 >conftest.err
9105 rm -f conftest.er1
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } && {
9109 test -z "$ac_c_werror_flag" ||
9110 test ! -s conftest.err
9111 } && test -s conftest$ac_exeext &&
9112 $as_test_x conftest$ac_exeext; then
9113 eval "$as_ac_var=yes"
9114 else
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9117
9118 eval "$as_ac_var=no"
9119 fi
9120
9121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9122 conftest$ac_exeext conftest.$ac_ext
9123 fi
9124 ac_res=`eval echo '${'$as_ac_var'}'`
9125 { echo "$as_me:$LINENO: result: $ac_res" >&5
9126 echo "${ECHO_T}$ac_res" >&6; }
9127 if test `eval echo '${'$as_ac_var'}'` = yes; then
9128 cat >>confdefs.h <<_ACEOF
9129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9130 _ACEOF
9131
9132 fi
9133 done
9134
9135
9136
9137
9138
9139
9140 for ac_func in wcscoll towlower towupper iswspace iswalpha
9141 do
9142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 else
9148 cat >conftest.$ac_ext <<_ACEOF
9149 /* confdefs.h. */
9150 _ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9156 #define $ac_func innocuous_$ac_func
9157
9158 /* System header to define __stub macros and hopefully few prototypes,
9159 which can conflict with char $ac_func (); below.
9160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9161 <limits.h> exists even on freestanding compilers. */
9162
9163 #ifdef __STDC__
9164 # include <limits.h>
9165 #else
9166 # include <assert.h>
9167 #endif
9168
9169 #undef $ac_func
9170
9171 /* Override any GCC internal prototype to avoid an error.
9172 Use char because int might match the return type of a GCC
9173 builtin and then its argument prototype would still apply. */
9174 #ifdef __cplusplus
9175 extern "C"
9176 #endif
9177 char $ac_func ();
9178 /* The GNU C library defines this for functions which it implements
9179 to always fail with ENOSYS. Some functions are actually named
9180 something starting with __ and the normal name is an alias. */
9181 #if defined __stub_$ac_func || defined __stub___$ac_func
9182 choke me
9183 #endif
9184
9185 int
9186 main ()
9187 {
9188 return $ac_func ();
9189 ;
9190 return 0;
9191 }
9192 _ACEOF
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (ac_try="$ac_link"
9195 case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9198 esac
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_link") 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } && {
9207 test -z "$ac_c_werror_flag" ||
9208 test ! -s conftest.err
9209 } && test -s conftest$ac_exeext &&
9210 $as_test_x conftest$ac_exeext; then
9211 eval "$as_ac_var=yes"
9212 else
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9215
9216 eval "$as_ac_var=no"
9217 fi
9218
9219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9220 conftest$ac_exeext conftest.$ac_ext
9221 fi
9222 ac_res=`eval echo '${'$as_ac_var'}'`
9223 { echo "$as_me:$LINENO: result: $ac_res" >&5
9224 echo "${ECHO_T}$ac_res" >&6; }
9225 if test `eval echo '${'$as_ac_var'}'` = yes; then
9226 cat >>confdefs.h <<_ACEOF
9227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9228 _ACEOF
9229
9230 fi
9231 done
9232
9233
9234 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
9235 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
9236 if test "${ac_cv_lib_m_sin_+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239 ac_check_lib_save_LIBS=$LIBS
9240 LIBS="-lm $LIBS"
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h. */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247
9248 /* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
9251 #ifdef __cplusplus
9252 extern "C"
9253 #endif
9254 char sin ();
9255 int
9256 main ()
9257 {
9258 return sin ();
9259 ;
9260 return 0;
9261 }
9262 _ACEOF
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (ac_try="$ac_link"
9265 case "(($ac_try" in
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9268 esac
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_link") 2>conftest.er1
9271 ac_status=$?
9272 grep -v '^ *+' conftest.er1 >conftest.err
9273 rm -f conftest.er1
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } && {
9277 test -z "$ac_c_werror_flag" ||
9278 test ! -s conftest.err
9279 } && test -s conftest$ac_exeext &&
9280 $as_test_x conftest$ac_exeext; then
9281 ac_cv_lib_m_sin_=yes
9282 else
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9285
9286 ac_cv_lib_m_sin_=no
9287 fi
9288
9289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9290 conftest$ac_exeext conftest.$ac_ext
9291 LIBS=$ac_check_lib_save_LIBS
9292 fi
9293 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin_" >&5
9294 echo "${ECHO_T}$ac_cv_lib_m_sin_" >&6; }
9295 if test $ac_cv_lib_m_sin_ = yes; then
9296 cat >>confdefs.h <<_ACEOF
9297 #define HAVE_LIBM 1
9298 _ACEOF
9299
9300 LIBS="-lm $LIBS"
9301
9302 fi
9303
9304
9305 { echo "$as_me:$LINENO: checking for cos in -lm" >&5
9306 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; }
9307 if test "${ac_cv_lib_m_cos_+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310 ac_check_lib_save_LIBS=$LIBS
9311 LIBS="-lm $LIBS"
9312 cat >conftest.$ac_ext <<_ACEOF
9313 /* confdefs.h. */
9314 _ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9318
9319 /* Override any GCC internal prototype to avoid an error.
9320 Use char because int might match the return type of a GCC
9321 builtin and then its argument prototype would still apply. */
9322 #ifdef __cplusplus
9323 extern "C"
9324 #endif
9325 char cos ();
9326 int
9327 main ()
9328 {
9329 return cos ();
9330 ;
9331 return 0;
9332 }
9333 _ACEOF
9334 rm -f conftest.$ac_objext conftest$ac_exeext
9335 if { (ac_try="$ac_link"
9336 case "(($ac_try" in
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9339 esac
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_link") 2>conftest.er1
9342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && {
9348 test -z "$ac_c_werror_flag" ||
9349 test ! -s conftest.err
9350 } && test -s conftest$ac_exeext &&
9351 $as_test_x conftest$ac_exeext; then
9352 ac_cv_lib_m_cos_=yes
9353 else
9354 echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9356
9357 ac_cv_lib_m_cos_=no
9358 fi
9359
9360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9361 conftest$ac_exeext conftest.$ac_ext
9362 LIBS=$ac_check_lib_save_LIBS
9363 fi
9364 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos_" >&5
9365 echo "${ECHO_T}$ac_cv_lib_m_cos_" >&6; }
9366 if test $ac_cv_lib_m_cos_ = yes; then
9367 cat >>confdefs.h <<_ACEOF
9368 #define HAVE_LIBM 1
9369 _ACEOF
9370
9371 LIBS="-lm $LIBS"
9372
9373 fi
9374
9375
9376 { echo "$as_me:$LINENO: checking for tan in -lm" >&5
9377 echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6; }
9378 if test "${ac_cv_lib_m_tan_+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 else
9381 ac_check_lib_save_LIBS=$LIBS
9382 LIBS="-lm $LIBS"
9383 cat >conftest.$ac_ext <<_ACEOF
9384 /* confdefs.h. */
9385 _ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9389
9390 /* Override any GCC internal prototype to avoid an error.
9391 Use char because int might match the return type of a GCC
9392 builtin and then its argument prototype would still apply. */
9393 #ifdef __cplusplus
9394 extern "C"
9395 #endif
9396 char tan ();
9397 int
9398 main ()
9399 {
9400 return tan ();
9401 ;
9402 return 0;
9403 }
9404 _ACEOF
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (ac_try="$ac_link"
9407 case "(($ac_try" in
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9410 esac
9411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_link") 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } && {
9419 test -z "$ac_c_werror_flag" ||
9420 test ! -s conftest.err
9421 } && test -s conftest$ac_exeext &&
9422 $as_test_x conftest$ac_exeext; then
9423 ac_cv_lib_m_tan_=yes
9424 else
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428 ac_cv_lib_m_tan_=no
9429 fi
9430
9431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9432 conftest$ac_exeext conftest.$ac_ext
9433 LIBS=$ac_check_lib_save_LIBS
9434 fi
9435 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan_" >&5
9436 echo "${ECHO_T}$ac_cv_lib_m_tan_" >&6; }
9437 if test $ac_cv_lib_m_tan_ = yes; then
9438 cat >>confdefs.h <<_ACEOF
9439 #define HAVE_LIBM 1
9440 _ACEOF
9441
9442 LIBS="-lm $LIBS"
9443
9444 fi
9445
9446
9447 { echo "$as_me:$LINENO: checking for asin in -lm" >&5
9448 echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6; }
9449 if test "${ac_cv_lib_m_asin_+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9452 ac_check_lib_save_LIBS=$LIBS
9453 LIBS="-lm $LIBS"
9454 cat >conftest.$ac_ext <<_ACEOF
9455 /* confdefs.h. */
9456 _ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h. */
9460
9461 /* Override any GCC internal prototype to avoid an error.
9462 Use char because int might match the return type of a GCC
9463 builtin and then its argument prototype would still apply. */
9464 #ifdef __cplusplus
9465 extern "C"
9466 #endif
9467 char asin ();
9468 int
9469 main ()
9470 {
9471 return asin ();
9472 ;
9473 return 0;
9474 }
9475 _ACEOF
9476 rm -f conftest.$ac_objext conftest$ac_exeext
9477 if { (ac_try="$ac_link"
9478 case "(($ac_try" in
9479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9480 *) ac_try_echo=$ac_try;;
9481 esac
9482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9483 (eval "$ac_link") 2>conftest.er1
9484 ac_status=$?
9485 grep -v '^ *+' conftest.er1 >conftest.err
9486 rm -f conftest.er1
9487 cat conftest.err >&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); } && {
9490 test -z "$ac_c_werror_flag" ||
9491 test ! -s conftest.err
9492 } && test -s conftest$ac_exeext &&
9493 $as_test_x conftest$ac_exeext; then
9494 ac_cv_lib_m_asin_=yes
9495 else
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9498
9499 ac_cv_lib_m_asin_=no
9500 fi
9501
9502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9503 conftest$ac_exeext conftest.$ac_ext
9504 LIBS=$ac_check_lib_save_LIBS
9505 fi
9506 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin_" >&5
9507 echo "${ECHO_T}$ac_cv_lib_m_asin_" >&6; }
9508 if test $ac_cv_lib_m_asin_ = yes; then
9509 cat >>confdefs.h <<_ACEOF
9510 #define HAVE_LIBM 1
9511 _ACEOF
9512
9513 LIBS="-lm $LIBS"
9514
9515 fi
9516
9517
9518 { echo "$as_me:$LINENO: checking for acos in -lm" >&5
9519 echo $ECHO_N "checking for acos in -lm... $ECHO_C" >&6; }
9520 if test "${ac_cv_lib_m_acos_+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 else
9523 ac_check_lib_save_LIBS=$LIBS
9524 LIBS="-lm $LIBS"
9525 cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h. */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531
9532 /* Override any GCC internal prototype to avoid an error.
9533 Use char because int might match the return type of a GCC
9534 builtin and then its argument prototype would still apply. */
9535 #ifdef __cplusplus
9536 extern "C"
9537 #endif
9538 char acos ();
9539 int
9540 main ()
9541 {
9542 return acos ();
9543 ;
9544 return 0;
9545 }
9546 _ACEOF
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (ac_try="$ac_link"
9549 case "(($ac_try" in
9550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551 *) ac_try_echo=$ac_try;;
9552 esac
9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 (eval "$ac_link") 2>conftest.er1
9555 ac_status=$?
9556 grep -v '^ *+' conftest.er1 >conftest.err
9557 rm -f conftest.er1
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } && {
9561 test -z "$ac_c_werror_flag" ||
9562 test ! -s conftest.err
9563 } && test -s conftest$ac_exeext &&
9564 $as_test_x conftest$ac_exeext; then
9565 ac_cv_lib_m_acos_=yes
9566 else
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9569
9570 ac_cv_lib_m_acos_=no
9571 fi
9572
9573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9574 conftest$ac_exeext conftest.$ac_ext
9575 LIBS=$ac_check_lib_save_LIBS
9576 fi
9577 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos_" >&5
9578 echo "${ECHO_T}$ac_cv_lib_m_acos_" >&6; }
9579 if test $ac_cv_lib_m_acos_ = yes; then
9580 cat >>confdefs.h <<_ACEOF
9581 #define HAVE_LIBM 1
9582 _ACEOF
9583
9584 LIBS="-lm $LIBS"
9585
9586 fi
9587
9588
9589 { echo "$as_me:$LINENO: checking for atan in -lm" >&5
9590 echo $ECHO_N "checking for atan in -lm... $ECHO_C" >&6; }
9591 if test "${ac_cv_lib_m_atan_+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594 ac_check_lib_save_LIBS=$LIBS
9595 LIBS="-lm $LIBS"
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h. */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602
9603 /* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
9606 #ifdef __cplusplus
9607 extern "C"
9608 #endif
9609 char atan ();
9610 int
9611 main ()
9612 {
9613 return atan ();
9614 ;
9615 return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9620 case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_link") 2>conftest.er1
9626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } && {
9632 test -z "$ac_c_werror_flag" ||
9633 test ! -s conftest.err
9634 } && test -s conftest$ac_exeext &&
9635 $as_test_x conftest$ac_exeext; then
9636 ac_cv_lib_m_atan_=yes
9637 else
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9640
9641 ac_cv_lib_m_atan_=no
9642 fi
9643
9644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9645 conftest$ac_exeext conftest.$ac_ext
9646 LIBS=$ac_check_lib_save_LIBS
9647 fi
9648 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan_" >&5
9649 echo "${ECHO_T}$ac_cv_lib_m_atan_" >&6; }
9650 if test $ac_cv_lib_m_atan_ = yes; then
9651 cat >>confdefs.h <<_ACEOF
9652 #define HAVE_LIBM 1
9653 _ACEOF
9654
9655 LIBS="-lm $LIBS"
9656
9657 fi
9658
9659
9660 echo Looking for curses-compatible screen output library
9661
9662 { echo "$as_me:$LINENO: checking for tparm in -lncursesw" >&5
9663 echo $ECHO_N "checking for tparm in -lncursesw... $ECHO_C" >&6; }
9664 if test "${ac_cv_lib_ncursesw_tparm+set}" = set; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 else
9667 ac_check_lib_save_LIBS=$LIBS
9668 LIBS="-lncursesw $LIBS"
9669 cat >conftest.$ac_ext <<_ACEOF
9670 /* confdefs.h. */
9671 _ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h. */
9675
9676 /* Override any GCC internal prototype to avoid an error.
9677 Use char because int might match the return type of a GCC
9678 builtin and then its argument prototype would still apply. */
9679 #ifdef __cplusplus
9680 extern "C"
9681 #endif
9682 char tparm ();
9683 int
9684 main ()
9685 {
9686 return tparm ();
9687 ;
9688 return 0;
9689 }
9690 _ACEOF
9691 rm -f conftest.$ac_objext conftest$ac_exeext
9692 if { (ac_try="$ac_link"
9693 case "(($ac_try" in
9694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9695 *) ac_try_echo=$ac_try;;
9696 esac
9697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9698 (eval "$ac_link") 2>conftest.er1
9699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } && {
9705 test -z "$ac_c_werror_flag" ||
9706 test ! -s conftest.err
9707 } && test -s conftest$ac_exeext &&
9708 $as_test_x conftest$ac_exeext; then
9709 ac_cv_lib_ncursesw_tparm=yes
9710 else
9711 echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9713
9714 ac_cv_lib_ncursesw_tparm=no
9715 fi
9716
9717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9718 conftest$ac_exeext conftest.$ac_ext
9719 LIBS=$ac_check_lib_save_LIBS
9720 fi
9721 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_tparm" >&5
9722 echo "${ECHO_T}$ac_cv_lib_ncursesw_tparm" >&6; }
9723 if test $ac_cv_lib_ncursesw_tparm = yes; then
9724 cat >>confdefs.h <<_ACEOF
9725 #define HAVE_LIBNCURSESW 1
9726 _ACEOF
9727
9728 LIBS="-lncursesw $LIBS"
9729
9730 fi
9731
9732 if test "$ac_cv_lib_ncursesw_tparm" = "yes"; then
9733 echo Using ncursesw
9734 else
9735
9736 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
9737 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
9738 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741 ac_check_lib_save_LIBS=$LIBS
9742 LIBS="-lncurses $LIBS"
9743 cat >conftest.$ac_ext <<_ACEOF
9744 /* confdefs.h. */
9745 _ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9749
9750 /* Override any GCC internal prototype to avoid an error.
9751 Use char because int might match the return type of a GCC
9752 builtin and then its argument prototype would still apply. */
9753 #ifdef __cplusplus
9754 extern "C"
9755 #endif
9756 char tparm ();
9757 int
9758 main ()
9759 {
9760 return tparm ();
9761 ;
9762 return 0;
9763 }
9764 _ACEOF
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (ac_try="$ac_link"
9767 case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9770 esac
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_link") 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } && {
9779 test -z "$ac_c_werror_flag" ||
9780 test ! -s conftest.err
9781 } && test -s conftest$ac_exeext &&
9782 $as_test_x conftest$ac_exeext; then
9783 ac_cv_lib_ncurses_tparm=yes
9784 else
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9787
9788 ac_cv_lib_ncurses_tparm=no
9789 fi
9790
9791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9792 conftest$ac_exeext conftest.$ac_ext
9793 LIBS=$ac_check_lib_save_LIBS
9794 fi
9795 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
9796 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
9797 if test $ac_cv_lib_ncurses_tparm = yes; then
9798 cat >>confdefs.h <<_ACEOF
9799 #define HAVE_LIBNCURSES 1
9800 _ACEOF
9801
9802 LIBS="-lncurses $LIBS"
9803
9804 fi
9805
9806 if test "$ac_cv_lib_ncurses_tparm" = "yes"; then
9807 echo Using ncurses
9808 else
9809 echo Looking for curses
9810
9811 { echo "$as_me:$LINENO: checking for main in -lcurses" >&5
9812 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6; }
9813 if test "${ac_cv_lib_curses_main+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816 ac_check_lib_save_LIBS=$LIBS
9817 LIBS="-lcurses $LIBS"
9818 cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h. */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824
9825
9826 int
9827 main ()
9828 {
9829 return main ();
9830 ;
9831 return 0;
9832 }
9833 _ACEOF
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (ac_try="$ac_link"
9836 case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9839 esac
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_link") 2>conftest.er1
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } && {
9848 test -z "$ac_c_werror_flag" ||
9849 test ! -s conftest.err
9850 } && test -s conftest$ac_exeext &&
9851 $as_test_x conftest$ac_exeext; then
9852 ac_cv_lib_curses_main=yes
9853 else
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9856
9857 ac_cv_lib_curses_main=no
9858 fi
9859
9860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9861 conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9863 fi
9864 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
9865 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6; }
9866 if test $ac_cv_lib_curses_main = yes; then
9867 cat >>confdefs.h <<_ACEOF
9868 #define HAVE_LIBCURSES 1
9869 _ACEOF
9870
9871 LIBS="-lcurses $LIBS"
9872
9873 fi
9874
9875 if test "$ac_cv_lib_curses_main" = "yes"; then
9876 echo Using curses
9877 else
9878 case $host in
9879 *mingw32*)
9880 echo "Didn't find an up-to-date ncurses or curses library!"
9881 echo "Using LifeLines version of curses for Windows."
9882 ;;
9883 *)
9884 echo "Didn't find an up-to-date ncurses or curses library!"
9885 echo "Link problems may result!"
9886 ;;
9887 esac
9888 fi
9889 fi
9890 fi
9891
9892
9893
9894
9895
9896
9897
9898 for ac_func in sleep scandir alphasort getopt snprintf vsnprintf
9899 do
9900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h. */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9914 #define $ac_func innocuous_$ac_func
9915
9916 /* System header to define __stub macros and hopefully few prototypes,
9917 which can conflict with char $ac_func (); below.
9918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9919 <limits.h> exists even on freestanding compilers. */
9920
9921 #ifdef __STDC__
9922 # include <limits.h>
9923 #else
9924 # include <assert.h>
9925 #endif
9926
9927 #undef $ac_func
9928
9929 /* Override any GCC internal prototype to avoid an error.
9930 Use char because int might match the return type of a GCC
9931 builtin and then its argument prototype would still apply. */
9932 #ifdef __cplusplus
9933 extern "C"
9934 #endif
9935 char $ac_func ();
9936 /* The GNU C library defines this for functions which it implements
9937 to always fail with ENOSYS. Some functions are actually named
9938 something starting with __ and the normal name is an alias. */
9939 #if defined __stub_$ac_func || defined __stub___$ac_func
9940 choke me
9941 #endif
9942
9943 int
9944 main ()
9945 {
9946 return $ac_func ();
9947 ;
9948 return 0;
9949 }
9950 _ACEOF
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (ac_try="$ac_link"
9953 case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9956 esac
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_link") 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } && {
9965 test -z "$ac_c_werror_flag" ||
9966 test ! -s conftest.err
9967 } && test -s conftest$ac_exeext &&
9968 $as_test_x conftest$ac_exeext; then
9969 eval "$as_ac_var=yes"
9970 else
9971 echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9973
9974 eval "$as_ac_var=no"
9975 fi
9976
9977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9978 conftest$ac_exeext conftest.$ac_ext
9979 fi
9980 ac_res=`eval echo '${'$as_ac_var'}'`
9981 { echo "$as_me:$LINENO: result: $ac_res" >&5
9982 echo "${ECHO_T}$ac_res" >&6; }
9983 if test `eval echo '${'$as_ac_var'}'` = yes; then
9984 cat >>confdefs.h <<_ACEOF
9985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9986 _ACEOF
9987
9988 else
9989 case " $LIBOBJS " in
9990 *" $ac_func.$ac_objext "* ) ;;
9991 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9992 ;;
9993 esac
9994
9995 fi
9996 done
9997
9998
9999
10000
10001
10002 for ac_func in nl_langinfo wcslen has_key
10003 do
10004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010 cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h. */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10018 #define $ac_func innocuous_$ac_func
10019
10020 /* System header to define __stub macros and hopefully few prototypes,
10021 which can conflict with char $ac_func (); below.
10022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023 <limits.h> exists even on freestanding compilers. */
10024
10025 #ifdef __STDC__
10026 # include <limits.h>
10027 #else
10028 # include <assert.h>
10029 #endif
10030
10031 #undef $ac_func
10032
10033 /* Override any GCC internal prototype to avoid an error.
10034 Use char because int might match the return type of a GCC
10035 builtin and then its argument prototype would still apply. */
10036 #ifdef __cplusplus
10037 extern "C"
10038 #endif
10039 char $ac_func ();
10040 /* The GNU C library defines this for functions which it implements
10041 to always fail with ENOSYS. Some functions are actually named
10042 something starting with __ and the normal name is an alias. */
10043 #if defined __stub_$ac_func || defined __stub___$ac_func
10044 choke me
10045 #endif
10046
10047 int
10048 main ()
10049 {
10050 return $ac_func ();
10051 ;
10052 return 0;
10053 }
10054 _ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (ac_try="$ac_link"
10057 case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10060 esac
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_link") 2>conftest.er1
10063 ac_status=$?
10064 grep -v '^ *+' conftest.er1 >conftest.err
10065 rm -f conftest.er1
10066 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } && {
10069 test -z "$ac_c_werror_flag" ||
10070 test ! -s conftest.err
10071 } && test -s conftest$ac_exeext &&
10072 $as_test_x conftest$ac_exeext; then
10073 eval "$as_ac_var=yes"
10074 else
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078 eval "$as_ac_var=no"
10079 fi
10080
10081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10082 conftest$ac_exeext conftest.$ac_ext
10083 fi
10084 ac_res=`eval echo '${'$as_ac_var'}'`
10085 { echo "$as_me:$LINENO: result: $ac_res" >&5
10086 echo "${ECHO_T}$ac_res" >&6; }
10087 if test `eval echo '${'$as_ac_var'}'` = yes; then
10088 cat >>confdefs.h <<_ACEOF
10089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10090 _ACEOF
10091
10092 else
10093 case " $LIBOBJS " in
10094 *" $ac_func.$ac_objext "* ) ;;
10095 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10096 ;;
10097 esac
10098
10099 fi
10100 done
10101
10102
10103
10104 for ac_func in _llnull
10105 do
10106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h. */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10120 #define $ac_func innocuous_$ac_func
10121
10122 /* System header to define __stub macros and hopefully few prototypes,
10123 which can conflict with char $ac_func (); below.
10124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10125 <limits.h> exists even on freestanding compilers. */
10126
10127 #ifdef __STDC__
10128 # include <limits.h>
10129 #else
10130 # include <assert.h>
10131 #endif
10132
10133 #undef $ac_func
10134
10135 /* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
10138 #ifdef __cplusplus
10139 extern "C"
10140 #endif
10141 char $ac_func ();
10142 /* The GNU C library defines this for functions which it implements
10143 to always fail with ENOSYS. Some functions are actually named
10144 something starting with __ and the normal name is an alias. */
10145 #if defined __stub_$ac_func || defined __stub___$ac_func
10146 choke me
10147 #endif
10148
10149 int
10150 main ()
10151 {
10152 return $ac_func ();
10153 ;
10154 return 0;
10155 }
10156 _ACEOF
10157 rm -f conftest.$ac_objext conftest$ac_exeext
10158 if { (ac_try="$ac_link"
10159 case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10162 esac
10163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164 (eval "$ac_link") 2>conftest.er1
10165 ac_status=$?
10166 grep -v '^ *+' conftest.er1 >conftest.err
10167 rm -f conftest.er1
10168 cat conftest.err >&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } && {
10171 test -z "$ac_c_werror_flag" ||
10172 test ! -s conftest.err
10173 } && test -s conftest$ac_exeext &&
10174 $as_test_x conftest$ac_exeext; then
10175 eval "$as_ac_var=yes"
10176 else
10177 echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10179
10180 eval "$as_ac_var=no"
10181 fi
10182
10183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10184 conftest$ac_exeext conftest.$ac_ext
10185 fi
10186 ac_res=`eval echo '${'$as_ac_var'}'`
10187 { echo "$as_me:$LINENO: result: $ac_res" >&5
10188 echo "${ECHO_T}$ac_res" >&6; }
10189 if test `eval echo '${'$as_ac_var'}'` = yes; then
10190 cat >>confdefs.h <<_ACEOF
10191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10192 _ACEOF
10193
10194 else
10195 case " $LIBOBJS " in
10196 *" $ac_func.$ac_objext "* ) ;;
10197 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10198 ;;
10199 esac
10200
10201 fi
10202 done
10203
10204
10205
10206
10207 echo Looking for header files and libraries to support heap walking
10208 case $host in
10209 *apple-darwin*)
10210 HAVE_ALLOC_H=no
10211 HAVE_MALLOC_H=no
10212 HAVE_HEAPWALK=no
10213 HAVE__HEAPWALK=no
10214 ;;
10215 *)
10216
10217
10218 for ac_header in alloc.h malloc.h
10219 do
10220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 fi
10227 ac_res=`eval echo '${'$as_ac_Header'}'`
10228 { echo "$as_me:$LINENO: result: $ac_res" >&5
10229 echo "${ECHO_T}$ac_res" >&6; }
10230 else
10231 # Is the header compilable?
10232 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10234 cat >conftest.$ac_ext <<_ACEOF
10235 /* confdefs.h. */
10236 _ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h. */
10240 $ac_includes_default
10241 #include <$ac_header>
10242 _ACEOF
10243 rm -f conftest.$ac_objext
10244 if { (ac_try="$ac_compile"
10245 case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_compile") 2>conftest.er1
10251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } && {
10257 test -z "$ac_c_werror_flag" ||
10258 test ! -s conftest.err
10259 } && test -s conftest.$ac_objext; then
10260 ac_header_compiler=yes
10261 else
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265 ac_header_compiler=no
10266 fi
10267
10268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10270 echo "${ECHO_T}$ac_header_compiler" >&6; }
10271
10272 # Is the header present?
10273 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10275 cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h. */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10281 #include <$ac_header>
10282 _ACEOF
10283 if { (ac_try="$ac_cpp conftest.$ac_ext"
10284 case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10287 esac
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10290 ac_status=$?
10291 grep -v '^ *+' conftest.er1 >conftest.err
10292 rm -f conftest.er1
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } >/dev/null && {
10296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10297 test ! -s conftest.err
10298 }; then
10299 ac_header_preproc=yes
10300 else
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10303
10304 ac_header_preproc=no
10305 fi
10306
10307 rm -f conftest.err conftest.$ac_ext
10308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10309 echo "${ECHO_T}$ac_header_preproc" >&6; }
10310
10311 # So? What about this header?
10312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10313 yes:no: )
10314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10318 ac_header_preproc=yes
10319 ;;
10320 no:yes:* )
10321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10333
10334 ;;
10335 esac
10336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341 eval "$as_ac_Header=\$ac_header_preproc"
10342 fi
10343 ac_res=`eval echo '${'$as_ac_Header'}'`
10344 { echo "$as_me:$LINENO: result: $ac_res" >&5
10345 echo "${ECHO_T}$ac_res" >&6; }
10346
10347 fi
10348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10349 cat >>confdefs.h <<_ACEOF
10350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10351 _ACEOF
10352
10353 fi
10354
10355 done
10356
10357
10358
10359 for ac_func in heapwalk _heapwalk
10360 do
10361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10362 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h. */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10375 #define $ac_func innocuous_$ac_func
10376
10377 /* System header to define __stub macros and hopefully few prototypes,
10378 which can conflict with char $ac_func (); below.
10379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10380 <limits.h> exists even on freestanding compilers. */
10381
10382 #ifdef __STDC__
10383 # include <limits.h>
10384 #else
10385 # include <assert.h>
10386 #endif
10387
10388 #undef $ac_func
10389
10390 /* Override any GCC internal prototype to avoid an error.
10391 Use char because int might match the return type of a GCC
10392 builtin and then its argument prototype would still apply. */
10393 #ifdef __cplusplus
10394 extern "C"
10395 #endif
10396 char $ac_func ();
10397 /* The GNU C library defines this for functions which it implements
10398 to always fail with ENOSYS. Some functions are actually named
10399 something starting with __ and the normal name is an alias. */
10400 #if defined __stub_$ac_func || defined __stub___$ac_func
10401 choke me
10402 #endif
10403
10404 int
10405 main ()
10406 {
10407 return $ac_func ();
10408 ;
10409 return 0;
10410 }
10411 _ACEOF
10412 rm -f conftest.$ac_objext conftest$ac_exeext
10413 if { (ac_try="$ac_link"
10414 case "(($ac_try" in
10415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10416 *) ac_try_echo=$ac_try;;
10417 esac
10418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10419 (eval "$ac_link") 2>conftest.er1
10420 ac_status=$?
10421 grep -v '^ *+' conftest.er1 >conftest.err
10422 rm -f conftest.er1
10423 cat conftest.err >&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } && {
10426 test -z "$ac_c_werror_flag" ||
10427 test ! -s conftest.err
10428 } && test -s conftest$ac_exeext &&
10429 $as_test_x conftest$ac_exeext; then
10430 eval "$as_ac_var=yes"
10431 else
10432 echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10434
10435 eval "$as_ac_var=no"
10436 fi
10437
10438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10439 conftest$ac_exeext conftest.$ac_ext
10440 fi
10441 ac_res=`eval echo '${'$as_ac_var'}'`
10442 { echo "$as_me:$LINENO: result: $ac_res" >&5
10443 echo "${ECHO_T}$ac_res" >&6; }
10444 if test `eval echo '${'$as_ac_var'}'` = yes; then
10445 cat >>confdefs.h <<_ACEOF
10446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10447 _ACEOF
10448
10449 fi
10450 done
10451
10452 ;;
10453 esac
10454
10455 echo Looking for ngettext
10456 saved_libs="$LIBS"
10457 LIBS="$LIBS $LIBINTL"
10458 cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h. */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10464 #include <libintl.h>
10465 int
10466 main ()
10467 {
10468 ngettext("","",0);
10469 ;
10470 return 0;
10471 }
10472 _ACEOF
10473 rm -f conftest.$ac_objext conftest$ac_exeext
10474 if { (ac_try="$ac_link"
10475 case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10478 esac
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_link") 2>conftest.er1
10481 ac_status=$?
10482 grep -v '^ *+' conftest.er1 >conftest.err
10483 rm -f conftest.er1
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest$ac_exeext &&
10490 $as_test_x conftest$ac_exeext; then
10491 ac_cv_func_ngettext=yes
10492 else
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10495
10496 ac_cv_func_ngettext=no
10497 fi
10498
10499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10500 conftest$ac_exeext conftest.$ac_ext
10501 if test "$ac_cv_func_ngettext" = yes; then
10502 echo "found ngettext"
10503
10504 cat >>confdefs.h <<\_ACEOF
10505 #define HAVE_NGETTEXT 1
10506 _ACEOF
10507
10508 else
10509 echo "couldn't find ngettext"
10510 LIBS="$saved_libs"
10511 fi
10512
10513 case $host_os in
10514 *windows*)
10515
10516 cat >>confdefs.h <<\_ACEOF
10517 #define LINES_CONFIG_FILE "lines.cfg"
10518 _ACEOF
10519
10520 ;;
10521 *)
10522
10523 cat >>confdefs.h <<\_ACEOF
10524 #define LINES_CONFIG_FILE ".linesrc"
10525 _ACEOF
10526
10527 ;;
10528 esac
10529
10530 echo Looking for bind_textdomain_codeset
10531 saved_libs="$LIBS"
10532 LIBS="$LIBS $LIBINTL"
10533 cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h. */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10539 #include <libintl.h>
10540 int
10541 main ()
10542 {
10543 bind_textdomain_codeset("","");
10544 ;
10545 return 0;
10546 }
10547 _ACEOF
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (ac_try="$ac_link"
10550 case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10553 esac
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_link") 2>conftest.er1
10556 ac_status=$?
10557 grep -v '^ *+' conftest.er1 >conftest.err
10558 rm -f conftest.er1
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && {
10562 test -z "$ac_c_werror_flag" ||
10563 test ! -s conftest.err
10564 } && test -s conftest$ac_exeext &&
10565 $as_test_x conftest$ac_exeext; then
10566 ac_cv_func_bind_textdomain_codeset=yes
10567 else
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571 ac_cv_func_bind_textdomain_codeset=no
10572 fi
10573
10574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10575 conftest$ac_exeext conftest.$ac_ext
10576 if test "$ac_cv_func_bind_textdomain_codeset" = yes; then
10577 echo "found bind_textdomain_codeset"
10578
10579 cat >>confdefs.h <<\_ACEOF
10580 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
10581 _ACEOF
10582
10583 else
10584 echo "couldn't find bind_textdomain_codeset"
10585 LIBS="$saved_libs"
10586 fi
10587
10588
10589 ac_config_files="$ac_config_files Makefile src/Makefile src/arch/Makefile src/btree/Makefile src/interp/Makefile src/gedlib/Makefile src/stdlib/Makefile src/liflines/Makefile src/tools/Makefile src/ui/Makefile src/hdrs/Makefile src/hdrs/win32/Makefile docs/Makefile reports/Makefile reports/st/Makefile tt/Makefile win32/Makefile build/Makefile intl/Makefile po/Makefile.in"
10590
10591 cat >confcache <<\_ACEOF
10592 # This file is a shell script that caches the results of configure
10593 # tests run on this system so they can be shared between configure
10594 # scripts and configure runs, see configure's option --config-cache.
10595 # It is not useful on other systems. If it contains results you don't
10596 # want to keep, you may remove or edit it.
10597 #
10598 # config.status only pays attention to the cache file if you give it
10599 # the --recheck option to rerun configure.
10600 #
10601 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10602 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10603 # following values.
10604
10605 _ACEOF
10606
10607 # The following way of writing the cache mishandles newlines in values,
10608 # but we know of no workaround that is simple, portable, and efficient.
10609 # So, we kill variables containing newlines.
10610 # Ultrix sh set writes to stderr and can't be redirected directly,
10611 # and sets the high bit in the cache file unless we assign to the vars.
10612 (
10613 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10614 eval ac_val=\$$ac_var
10615 case $ac_val in #(
10616 *${as_nl}*)
10617 case $ac_var in #(
10618 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10619 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10620 esac
10621 case $ac_var in #(
10622 _ | IFS | as_nl) ;; #(
10623 *) $as_unset $ac_var ;;
10624 esac ;;
10625 esac
10626 done
10627
10628 (set) 2>&1 |
10629 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10630 *${as_nl}ac_space=\ *)
10631 # `set' does not quote correctly, so add quotes (double-quote
10632 # substitution turns \\\\ into \\, and sed turns \\ into \).
10633 sed -n \
10634 "s/'/'\\\\''/g;
10635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10636 ;; #(
10637 *)
10638 # `set' quotes correctly as required by POSIX, so do not add quotes.
10639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10640 ;;
10641 esac |
10642 sort
10643 ) |
10644 sed '
10645 /^ac_cv_env_/b end
10646 t clear
10647 :clear
10648 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10649 t end
10650 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10651 :end' >>confcache
10652 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10653 if test -w "$cache_file"; then
10654 test "x$cache_file" != "x/dev/null" &&
10655 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10656 echo "$as_me: updating cache $cache_file" >&6;}
10657 cat confcache >$cache_file
10658 else
10659 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10660 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10661 fi
10662 fi
10663 rm -f confcache
10664
10665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10666 # Let make expand exec_prefix.
10667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10668
10669 DEFS=-DHAVE_CONFIG_H
10670
10671 ac_libobjs=
10672 ac_ltlibobjs=
10673 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10674 # 1. Remove the extension, and $U if already installed.
10675 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10676 ac_i=`echo "$ac_i" | sed "$ac_script"`
10677 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10678 # will be set to the directory where LIBOBJS objects are built.
10679 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10680 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10681 done
10682 LIBOBJS=$ac_libobjs
10683
10684 LTLIBOBJS=$ac_ltlibobjs
10685
10686
10687 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10688 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10689 Usually this means the macro was only invoked conditionally." >&5
10690 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10691 Usually this means the macro was only invoked conditionally." >&2;}
10692 { (exit 1); exit 1; }; }
10693 fi
10694 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10695 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10696 Usually this means the macro was only invoked conditionally." >&5
10697 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10698 Usually this means the macro was only invoked conditionally." >&2;}
10699 { (exit 1); exit 1; }; }
10700 fi
10701 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10702 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10703 Usually this means the macro was only invoked conditionally." >&5
10704 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10705 Usually this means the macro was only invoked conditionally." >&2;}
10706 { (exit 1); exit 1; }; }
10707 fi
10708
10709 : ${CONFIG_STATUS=./config.status}
10710 ac_clean_files_save=$ac_clean_files
10711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10712 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10713 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10714 cat >$CONFIG_STATUS <<_ACEOF
10715 #! $SHELL
10716 # Generated by $as_me.
10717 # Run this file to recreate the current configuration.
10718 # Compiler output produced by configure, useful for debugging
10719 # configure, is in config.log if it exists.
10720
10721 debug=false
10722 ac_cs_recheck=false
10723 ac_cs_silent=false
10724 SHELL=\${CONFIG_SHELL-$SHELL}
10725 _ACEOF
10726
10727 cat >>$CONFIG_STATUS <<\_ACEOF
10728 ## --------------------- ##
10729 ## M4sh Initialization. ##
10730 ## --------------------- ##
10731
10732 # Be more Bourne compatible
10733 DUALCASE=1; export DUALCASE # for MKS sh
10734 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10735 emulate sh
10736 NULLCMD=:
10737 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10738 # is contrary to our usage. Disable this feature.
10739 alias -g '${1+"$@"}'='"$@"'
10740 setopt NO_GLOB_SUBST
10741 else
10742 case `(set -o) 2>/dev/null` in
10743 *posix*) set -o posix ;;
10744 esac
10745
10746 fi
10747
10748
10749
10750
10751 # PATH needs CR
10752 # Avoid depending upon Character Ranges.
10753 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10754 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10755 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10756 as_cr_digits='0123456789'
10757 as_cr_alnum=$as_cr_Letters$as_cr_digits
10758
10759 # The user is always right.
10760 if test "${PATH_SEPARATOR+set}" != set; then
10761 echo "#! /bin/sh" >conf$$.sh
10762 echo "exit 0" >>conf$$.sh
10763 chmod +x conf$$.sh
10764 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10765 PATH_SEPARATOR=';'
10766 else
10767 PATH_SEPARATOR=:
10768 fi
10769 rm -f conf$$.sh
10770 fi
10771
10772 # Support unset when possible.
10773 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10774 as_unset=unset
10775 else
10776 as_unset=false
10777 fi
10778
10779
10780 # IFS
10781 # We need space, tab and new line, in precisely that order. Quoting is
10782 # there to prevent editors from complaining about space-tab.
10783 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10784 # splitting by setting IFS to empty value.)
10785 as_nl='
10786 '
10787 IFS=" "" $as_nl"
10788
10789 # Find who we are. Look in the path if we contain no directory separator.
10790 case $0 in
10791 *[\\/]* ) as_myself=$0 ;;
10792 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793 for as_dir in $PATH
10794 do
10795 IFS=$as_save_IFS
10796 test -z "$as_dir" && as_dir=.
10797 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10798 done
10799 IFS=$as_save_IFS
10800
10801 ;;
10802 esac
10803 # We did not find ourselves, most probably we were run as `sh COMMAND'
10804 # in which case we are not to be found in the path.
10805 if test "x$as_myself" = x; then
10806 as_myself=$0
10807 fi
10808 if test ! -f "$as_myself"; then
10809 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10810 { (exit 1); exit 1; }
10811 fi
10812
10813 # Work around bugs in pre-3.0 UWIN ksh.
10814 for as_var in ENV MAIL MAILPATH
10815 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10816 done
10817 PS1='$ '
10818 PS2='> '
10819 PS4='+ '
10820
10821 # NLS nuisances.
10822 for as_var in \
10823 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10824 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10825 LC_TELEPHONE LC_TIME
10826 do
10827 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10828 eval $as_var=C; export $as_var
10829 else
10830 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10831 fi
10832 done
10833
10834 # Required to use basename.
10835 if expr a : '\(a\)' >/dev/null 2>&1 &&
10836 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10837 as_expr=expr
10838 else
10839 as_expr=false
10840 fi
10841
10842 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10843 as_basename=basename
10844 else
10845 as_basename=false
10846 fi
10847
10848
10849 # Name of the executable.
10850 as_me=`$as_basename -- "$0" ||
10851 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10852 X"$0" : 'X\(//\)$' \| \
10853 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10854 echo X/"$0" |
10855 sed '/^.*\/\([^/][^/]*\)\/*$/{
10856 s//\1/
10857 q
10858 }
10859 /^X\/\(\/\/\)$/{
10860 s//\1/
10861 q
10862 }
10863 /^X\/\(\/\).*/{
10864 s//\1/
10865 q
10866 }
10867 s/.*/./; q'`
10868
10869 # CDPATH.
10870 $as_unset CDPATH
10871
10872
10873
10874 as_lineno_1=$LINENO
10875 as_lineno_2=$LINENO
10876 test "x$as_lineno_1" != "x$as_lineno_2" &&
10877 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10878
10879 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10880 # uniformly replaced by the line number. The first 'sed' inserts a
10881 # line-number line after each line using $LINENO; the second 'sed'
10882 # does the real work. The second script uses 'N' to pair each
10883 # line-number line with the line containing $LINENO, and appends
10884 # trailing '-' during substitution so that $LINENO is not a special
10885 # case at line end.
10886 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10887 # scripts with optimization help from Paolo Bonzini. Blame Lee
10888 # E. McMahon (1931-1989) for sed's syntax. :-)
10889 sed -n '
10890 p
10891 /[$]LINENO/=
10892 ' <$as_myself |
10893 sed '
10894 s/[$]LINENO.*/&-/
10895 t lineno
10896 b
10897 :lineno
10898 N
10899 :loop
10900 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10901 t loop
10902 s/-\n.*//
10903 ' >$as_me.lineno &&
10904 chmod +x "$as_me.lineno" ||
10905 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10906 { (exit 1); exit 1; }; }
10907
10908 # Don't try to exec as it changes $[0], causing all sort of problems
10909 # (the dirname of $[0] is not the place where we might find the
10910 # original and so on. Autoconf is especially sensitive to this).
10911 . "./$as_me.lineno"
10912 # Exit status is that of the last command.
10913 exit
10914 }
10915
10916
10917 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10918 as_dirname=dirname
10919 else
10920 as_dirname=false
10921 fi
10922
10923 ECHO_C= ECHO_N= ECHO_T=
10924 case `echo -n x` in
10925 -n*)
10926 case `echo 'x\c'` in
10927 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10928 *) ECHO_C='\c';;
10929 esac;;
10930 *)
10931 ECHO_N='-n';;
10932 esac
10933
10934 if expr a : '\(a\)' >/dev/null 2>&1 &&
10935 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10936 as_expr=expr
10937 else
10938 as_expr=false
10939 fi
10940
10941 rm -f conf$$ conf$$.exe conf$$.file
10942 if test -d conf$$.dir; then
10943 rm -f conf$$.dir/conf$$.file
10944 else
10945 rm -f conf$$.dir
10946 mkdir conf$$.dir
10947 fi
10948 echo >conf$$.file
10949 if ln -s conf$$.file conf$$ 2>/dev/null; then
10950 as_ln_s='ln -s'
10951 # ... but there are two gotchas:
10952 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10953 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10954 # In both cases, we have to default to `cp -p'.
10955 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10956 as_ln_s='cp -p'
10957 elif ln conf$$.file conf$$ 2>/dev/null; then
10958 as_ln_s=ln
10959 else
10960 as_ln_s='cp -p'
10961 fi
10962 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10963 rmdir conf$$.dir 2>/dev/null
10964
10965 if mkdir -p . 2>/dev/null; then
10966 as_mkdir_p=:
10967 else
10968 test -d ./-p && rmdir ./-p
10969 as_mkdir_p=false
10970 fi
10971
10972 if test -x / >/dev/null 2>&1; then
10973 as_test_x='test -x'
10974 else
10975 if ls -dL / >/dev/null 2>&1; then
10976 as_ls_L_option=L
10977 else
10978 as_ls_L_option=
10979 fi
10980 as_test_x='
10981 eval sh -c '\''
10982 if test -d "$1"; then
10983 test -d "$1/.";
10984 else
10985 case $1 in
10986 -*)set "./$1";;
10987 esac;
10988 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10989 ???[sx]*):;;*)false;;esac;fi
10990 '\'' sh
10991 '
10992 fi
10993 as_executable_p=$as_test_x
10994
10995 # Sed expression to map a string onto a valid CPP name.
10996 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10997
10998 # Sed expression to map a string onto a valid variable name.
10999 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11000
11001
11002 exec 6>&1
11003
11004 # Save the log message, to keep $[0] and so on meaningful, and to
11005 # report actual input values of CONFIG_FILES etc. instead of their
11006 # values after options handling.
11007 ac_log="
11008 This file was extended by $as_me, which was
11009 generated by GNU Autoconf 2.61. Invocation command line was
11010
11011 CONFIG_FILES = $CONFIG_FILES
11012 CONFIG_HEADERS = $CONFIG_HEADERS
11013 CONFIG_LINKS = $CONFIG_LINKS
11014 CONFIG_COMMANDS = $CONFIG_COMMANDS
11015 $ $0 $@
11016
11017 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11018 "
11019
11020 _ACEOF
11021
11022 cat >>$CONFIG_STATUS <<_ACEOF
11023 # Files that config.status was made for.
11024 config_files="$ac_config_files"
11025 config_headers="$ac_config_headers"
11026 config_commands="$ac_config_commands"
11027
11028 _ACEOF
11029
11030 cat >>$CONFIG_STATUS <<\_ACEOF
11031 ac_cs_usage="\
11032 \`$as_me' instantiates files from templates according to the
11033 current configuration.
11034
11035 Usage: $0 [OPTIONS] [FILE]...
11036
11037 -h, --help print this help, then exit
11038 -V, --version print version number and configuration settings, then exit
11039 -q, --quiet do not print progress messages
11040 -d, --debug don't remove temporary files
11041 --recheck update $as_me by reconfiguring in the same conditions
11042 --file=FILE[:TEMPLATE]
11043 instantiate the configuration file FILE
11044 --header=FILE[:TEMPLATE]
11045 instantiate the configuration header FILE
11046
11047 Configuration files:
11048 $config_files
11049
11050 Configuration headers:
11051 $config_headers
11052
11053 Configuration commands:
11054 $config_commands
11055
11056 Report bugs to <[email protected]>."
11057
11058 _ACEOF
11059 cat >>$CONFIG_STATUS <<_ACEOF
11060 ac_cs_version="\\
11061 config.status
11062 configured by $0, generated by GNU Autoconf 2.61,
11063 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11064
11065 Copyright (C) 2006 Free Software Foundation, Inc.
11066 This config.status script is free software; the Free Software Foundation
11067 gives unlimited permission to copy, distribute and modify it."
11068
11069 ac_pwd='$ac_pwd'
11070 srcdir='$srcdir'
11071 INSTALL='$INSTALL'
11072 _ACEOF
11073
11074 cat >>$CONFIG_STATUS <<\_ACEOF
11075 # If no file are specified by the user, then we need to provide default
11076 # value. By we need to know if files were specified by the user.
11077 ac_need_defaults=:
11078 while test $# != 0
11079 do
11080 case $1 in
11081 --*=*)
11082 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11083 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11084 ac_shift=:
11085 ;;
11086 *)
11087 ac_option=$1
11088 ac_optarg=$2
11089 ac_shift=shift
11090 ;;
11091 esac
11092
11093 case $ac_option in
11094 # Handling of the options.
11095 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11096 ac_cs_recheck=: ;;
11097 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11098 echo "$ac_cs_version"; exit ;;
11099 --debug | --debu | --deb | --de | --d | -d )
11100 debug=: ;;
11101 --file | --fil | --fi | --f )
11102 $ac_shift
11103 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11104 ac_need_defaults=false;;
11105 --header | --heade | --head | --hea )
11106 $ac_shift
11107 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11108 ac_need_defaults=false;;
11109 --he | --h)
11110 # Conflict between --help and --header
11111 { echo "$as_me: error: ambiguous option: $1
11112 Try \`$0 --help' for more information." >&2
11113 { (exit 1); exit 1; }; };;
11114 --help | --hel | -h )
11115 echo "$ac_cs_usage"; exit ;;
11116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11117 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11118 ac_cs_silent=: ;;
11119
11120 # This is an error.
11121 -*) { echo "$as_me: error: unrecognized option: $1
11122 Try \`$0 --help' for more information." >&2
11123 { (exit 1); exit 1; }; } ;;
11124
11125 *) ac_config_targets="$ac_config_targets $1"
11126 ac_need_defaults=false ;;
11127
11128 esac
11129 shift
11130 done
11131
11132 ac_configure_extra_args=
11133
11134 if $ac_cs_silent; then
11135 exec 6>/dev/null
11136 ac_configure_extra_args="$ac_configure_extra_args --silent"
11137 fi
11138
11139 _ACEOF
11140 cat >>$CONFIG_STATUS <<_ACEOF
11141 if \$ac_cs_recheck; then
11142 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11143 CONFIG_SHELL=$SHELL
11144 export CONFIG_SHELL
11145 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11146 fi
11147
11148 _ACEOF
11149 cat >>$CONFIG_STATUS <<\_ACEOF
11150 exec 5>>config.log
11151 {
11152 echo
11153 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11154 ## Running $as_me. ##
11155 _ASBOX
11156 echo "$ac_log"
11157 } >&5
11158
11159 _ACEOF
11160 cat >>$CONFIG_STATUS <<_ACEOF
11161 #
11162 # INIT-COMMANDS
11163 #
11164 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11165 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11166 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11167 # from automake.
11168 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
11169 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11170 LINGUAS="${LINGUAS-%UNSET%}"
11171
11172
11173 _ACEOF
11174
11175 cat >>$CONFIG_STATUS <<\_ACEOF
11176
11177 # Handling of arguments.
11178 for ac_config_target in $ac_config_targets
11179 do
11180 case $ac_config_target in
11181 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11182 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11183 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11184 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11185 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11186 "src/arch/Makefile") CONFIG_FILES="$CONFIG_FILES src/arch/Makefile" ;;
11187 "src/btree/Makefile") CONFIG_FILES="$CONFIG_FILES src/btree/Makefile" ;;
11188 "src/interp/Makefile") CONFIG_FILES="$CONFIG_FILES src/interp/Makefile" ;;
11189 "src/gedlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/gedlib/Makefile" ;;
11190 "src/stdlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/stdlib/Makefile" ;;
11191 "src/liflines/Makefile") CONFIG_FILES="$CONFIG_FILES src/liflines/Makefile" ;;
11192 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
11193 "src/ui/Makefile") CONFIG_FILES="$CONFIG_FILES src/ui/Makefile" ;;
11194 "src/hdrs/Makefile") CONFIG_FILES="$CONFIG_FILES src/hdrs/Makefile" ;;
11195 "src/hdrs/win32/Makefile") CONFIG_FILES="$CONFIG_FILES src/hdrs/win32/Makefile" ;;
11196 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
11197 "reports/Makefile") CONFIG_FILES="$CONFIG_FILES reports/Makefile" ;;
11198 "reports/st/Makefile") CONFIG_FILES="$CONFIG_FILES reports/st/Makefile" ;;
11199 "tt/Makefile") CONFIG_FILES="$CONFIG_FILES tt/Makefile" ;;
11200 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
11201 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
11202 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
11203 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11204
11205 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11206 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11207 { (exit 1); exit 1; }; };;
11208 esac
11209 done
11210
11211
11212 # If the user did not use the arguments to specify the items to instantiate,
11213 # then the envvar interface is used. Set only those that are not.
11214 # We use the long form for the default assignment because of an extremely
11215 # bizarre bug on SunOS 4.1.3.
11216 if $ac_need_defaults; then
11217 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11218 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11219 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11220 fi
11221
11222 # Have a temporary directory for convenience. Make it in the build tree
11223 # simply because there is no reason against having it here, and in addition,
11224 # creating and moving files from /tmp can sometimes cause problems.
11225 # Hook for its removal unless debugging.
11226 # Note that there is a small window in which the directory will not be cleaned:
11227 # after its creation but before its name has been assigned to `$tmp'.
11228 $debug ||
11229 {
11230 tmp=
11231 trap 'exit_status=$?
11232 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11233 ' 0
11234 trap '{ (exit 1); exit 1; }' 1 2 13 15
11235 }
11236 # Create a (secure) tmp directory for tmp files.
11237
11238 {
11239 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11240 test -n "$tmp" && test -d "$tmp"
11241 } ||
11242 {
11243 tmp=./conf$$-$RANDOM
11244 (umask 077 && mkdir "$tmp")
11245 } ||
11246 {
11247 echo "$me: cannot create a temporary directory in ." >&2
11248 { (exit 1); exit 1; }
11249 }
11250
11251 #
11252 # Set up the sed scripts for CONFIG_FILES section.
11253 #
11254
11255 # No need to generate the scripts if there are no CONFIG_FILES.
11256 # This happens for instance when ./config.status config.h
11257 if test -n "$CONFIG_FILES"; then
11258
11259 _ACEOF
11260
11261
11262
11263 ac_delim='%!_!# '
11264 for ac_last_try in false false false false false :; do
11265 cat >conf$$subs.sed <<_ACEOF
11266 SHELL!$SHELL$ac_delim
11267 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11268 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11269 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11270 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11271 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11272 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11273 exec_prefix!$exec_prefix$ac_delim
11274 prefix!$prefix$ac_delim
11275 program_transform_name!$program_transform_name$ac_delim
11276 bindir!$bindir$ac_delim
11277 sbindir!$sbindir$ac_delim
11278 libexecdir!$libexecdir$ac_delim
11279 datarootdir!$datarootdir$ac_delim
11280 datadir!$datadir$ac_delim
11281 sysconfdir!$sysconfdir$ac_delim
11282 sharedstatedir!$sharedstatedir$ac_delim
11283 localstatedir!$localstatedir$ac_delim
11284 includedir!$includedir$ac_delim
11285 oldincludedir!$oldincludedir$ac_delim
11286 docdir!$docdir$ac_delim
11287 infodir!$infodir$ac_delim
11288 htmldir!$htmldir$ac_delim
11289 dvidir!$dvidir$ac_delim
11290 pdfdir!$pdfdir$ac_delim
11291 psdir!$psdir$ac_delim
11292 libdir!$libdir$ac_delim
11293 localedir!$localedir$ac_delim
11294 mandir!$mandir$ac_delim
11295 DEFS!$DEFS$ac_delim
11296 ECHO_C!$ECHO_C$ac_delim
11297 ECHO_N!$ECHO_N$ac_delim
11298 ECHO_T!$ECHO_T$ac_delim
11299 LIBS!$LIBS$ac_delim
11300 build_alias!$build_alias$ac_delim
11301 host_alias!$host_alias$ac_delim
11302 target_alias!$target_alias$ac_delim
11303 build!$build$ac_delim
11304 build_cpu!$build_cpu$ac_delim
11305 build_vendor!$build_vendor$ac_delim
11306 build_os!$build_os$ac_delim
11307 host!$host$ac_delim
11308 host_cpu!$host_cpu$ac_delim
11309 host_vendor!$host_vendor$ac_delim
11310 host_os!$host_os$ac_delim
11311 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11312 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11313 INSTALL_DATA!$INSTALL_DATA$ac_delim
11314 CYGPATH_W!$CYGPATH_W$ac_delim
11315 PACKAGE!$PACKAGE$ac_delim
11316 VERSION!$VERSION$ac_delim
11317 ACLOCAL!$ACLOCAL$ac_delim
11318 AUTOCONF!$AUTOCONF$ac_delim
11319 AUTOMAKE!$AUTOMAKE$ac_delim
11320 AUTOHEADER!$AUTOHEADER$ac_delim
11321 MAKEINFO!$MAKEINFO$ac_delim
11322 install_sh!$install_sh$ac_delim
11323 STRIP!$STRIP$ac_delim
11324 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
11325 mkdir_p!$mkdir_p$ac_delim
11326 AWK!$AWK$ac_delim
11327 SET_MAKE!$SET_MAKE$ac_delim
11328 am__leading_dot!$am__leading_dot$ac_delim
11329 AMTAR!$AMTAR$ac_delim
11330 am__tar!$am__tar$ac_delim
11331 am__untar!$am__untar$ac_delim
11332 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
11333 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
11334 MAINT!$MAINT$ac_delim
11335 CC!$CC$ac_delim
11336 CFLAGS!$CFLAGS$ac_delim
11337 LDFLAGS!$LDFLAGS$ac_delim
11338 CPPFLAGS!$CPPFLAGS$ac_delim
11339 ac_ct_CC!$ac_ct_CC$ac_delim
11340 EXEEXT!$EXEEXT$ac_delim
11341 OBJEXT!$OBJEXT$ac_delim
11342 DEPDIR!$DEPDIR$ac_delim
11343 am__include!$am__include$ac_delim
11344 am__quote!$am__quote$ac_delim
11345 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
11346 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
11347 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
11348 CCDEPMODE!$CCDEPMODE$ac_delim
11349 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
11350 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
11351 RANLIB!$RANLIB$ac_delim
11352 YACC!$YACC$ac_delim
11353 YFLAGS!$YFLAGS$ac_delim
11354 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
11355 MSGFMT!$MSGFMT$ac_delim
11356 GMSGFMT!$GMSGFMT$ac_delim
11357 XGETTEXT!$XGETTEXT$ac_delim
11358 MSGMERGE!$MSGMERGE$ac_delim
11359 CPP!$CPP$ac_delim
11360 GREP!$GREP$ac_delim
11361 EGREP!$EGREP$ac_delim
11362 ALLOCA!$ALLOCA$ac_delim
11363 _ACEOF
11364
11365 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11366 break
11367 elif $ac_last_try; then
11368 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11369 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11370 { (exit 1); exit 1; }; }
11371 else
11372 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11373 fi
11374 done
11375
11376 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11377 if test -n "$ac_eof"; then
11378 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11379 ac_eof=`expr $ac_eof + 1`
11380 fi
11381
11382 cat >>$CONFIG_STATUS <<_ACEOF
11383 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11384 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11385 _ACEOF
11386 sed '
11387 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11388 s/^/s,@/; s/!/@,|#_!!_#|/
11389 :n
11390 t n
11391 s/'"$ac_delim"'$/,g/; t
11392 s/$/\\/; p
11393 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11394 ' >>$CONFIG_STATUS <conf$$subs.sed
11395 rm -f conf$$subs.sed
11396 cat >>$CONFIG_STATUS <<_ACEOF
11397 CEOF$ac_eof
11398 _ACEOF
11399
11400
11401 ac_delim='%!_!# '
11402 for ac_last_try in false false false false false :; do
11403 cat >conf$$subs.sed <<_ACEOF
11404 GLIBC21!$GLIBC21$ac_delim
11405 LIBICONV!$LIBICONV$ac_delim
11406 LTLIBICONV!$LTLIBICONV$ac_delim
11407 INTLBISON!$INTLBISON$ac_delim
11408 USE_NLS!$USE_NLS$ac_delim
11409 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
11410 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
11411 CATOBJEXT!$CATOBJEXT$ac_delim
11412 INTLOBJS!$INTLOBJS$ac_delim
11413 DATADIRNAME!$DATADIRNAME$ac_delim
11414 INSTOBJEXT!$INSTOBJEXT$ac_delim
11415 GENCAT!$GENCAT$ac_delim
11416 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
11417 INTLLIBS!$INTLLIBS$ac_delim
11418 LIBINTL!$LIBINTL$ac_delim
11419 LTLIBINTL!$LTLIBINTL$ac_delim
11420 POSUB!$POSUB$ac_delim
11421 SGMLTOOLS!$SGMLTOOLS$ac_delim
11422 DOCS_TARGET!$DOCS_TARGET$ac_delim
11423 LIBOBJS!$LIBOBJS$ac_delim
11424 LTLIBOBJS!$LTLIBOBJS$ac_delim
11425 _ACEOF
11426
11427 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
11428 break
11429 elif $ac_last_try; then
11430 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11431 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11432 { (exit 1); exit 1; }; }
11433 else
11434 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11435 fi
11436 done
11437
11438 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11439 if test -n "$ac_eof"; then
11440 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11441 ac_eof=`expr $ac_eof + 1`
11442 fi
11443
11444 cat >>$CONFIG_STATUS <<_ACEOF
11445 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11447 _ACEOF
11448 sed '
11449 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11450 s/^/s,@/; s/!/@,|#_!!_#|/
11451 :n
11452 t n
11453 s/'"$ac_delim"'$/,g/; t
11454 s/$/\\/; p
11455 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11456 ' >>$CONFIG_STATUS <conf$$subs.sed
11457 rm -f conf$$subs.sed
11458 cat >>$CONFIG_STATUS <<_ACEOF
11459 :end
11460 s/|#_!!_#|//g
11461 CEOF$ac_eof
11462 _ACEOF
11463
11464
11465 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11466 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11467 # trailing colons and then remove the whole line if VPATH becomes empty
11468 # (actually we leave an empty line to preserve line numbers).
11469 if test "x$srcdir" = x.; then
11470 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11471 s/:*\$(srcdir):*/:/
11472 s/:*\${srcdir}:*/:/
11473 s/:*@srcdir@:*/:/
11474 s/^\([^=]*=[ ]*\):*/\1/
11475 s/:*$//
11476 s/^[^=]*=[ ]*$//
11477 }'
11478 fi
11479
11480 cat >>$CONFIG_STATUS <<\_ACEOF
11481 fi # test -n "$CONFIG_FILES"
11482
11483
11484 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11485 do
11486 case $ac_tag in
11487 :[FHLC]) ac_mode=$ac_tag; continue;;
11488 esac
11489 case $ac_mode$ac_tag in
11490 :[FHL]*:*);;
11491 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11492 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11493 { (exit 1); exit 1; }; };;
11494 :[FH]-) ac_tag=-:-;;
11495 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11496 esac
11497 ac_save_IFS=$IFS
11498 IFS=:
11499 set x $ac_tag
11500 IFS=$ac_save_IFS
11501 shift
11502 ac_file=$1
11503 shift
11504
11505 case $ac_mode in
11506 :L) ac_source=$1;;
11507 :[FH])
11508 ac_file_inputs=
11509 for ac_f
11510 do
11511 case $ac_f in
11512 -) ac_f="$tmp/stdin";;
11513 *) # Look for the file first in the build tree, then in the source tree
11514 # (if the path is not absolute). The absolute path cannot be DOS-style,
11515 # because $ac_f cannot contain `:'.
11516 test -f "$ac_f" ||
11517 case $ac_f in
11518 [\\/$]*) false;;
11519 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11520 esac ||
11521 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11522 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11523 { (exit 1); exit 1; }; };;
11524 esac
11525 ac_file_inputs="$ac_file_inputs $ac_f"
11526 done
11527
11528 # Let's still pretend it is `configure' which instantiates (i.e., don't
11529 # use $as_me), people would be surprised to read:
11530 # /* config.h. Generated by config.status. */
11531 configure_input="Generated from "`IFS=:
11532 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11533 if test x"$ac_file" != x-; then
11534 configure_input="$ac_file. $configure_input"
11535 { echo "$as_me:$LINENO: creating $ac_file" >&5
11536 echo "$as_me: creating $ac_file" >&6;}
11537 fi
11538
11539 case $ac_tag in
11540 *:-:* | *:-) cat >"$tmp/stdin";;
11541 esac
11542 ;;
11543 esac
11544
11545 ac_dir=`$as_dirname -- "$ac_file" ||
11546 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11547 X"$ac_file" : 'X\(//\)[^/]' \| \
11548 X"$ac_file" : 'X\(//\)$' \| \
11549 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11550 echo X"$ac_file" |
11551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11552 s//\1/
11553 q
11554 }
11555 /^X\(\/\/\)[^/].*/{
11556 s//\1/
11557 q
11558 }
11559 /^X\(\/\/\)$/{
11560 s//\1/
11561 q
11562 }
11563 /^X\(\/\).*/{
11564 s//\1/
11565 q
11566 }
11567 s/.*/./; q'`
11568 { as_dir="$ac_dir"
11569 case $as_dir in #(
11570 -*) as_dir=./$as_dir;;
11571 esac
11572 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11573 as_dirs=
11574 while :; do
11575 case $as_dir in #(
11576 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11577 *) as_qdir=$as_dir;;
11578 esac
11579 as_dirs="'$as_qdir' $as_dirs"
11580 as_dir=`$as_dirname -- "$as_dir" ||
11581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11582 X"$as_dir" : 'X\(//\)[^/]' \| \
11583 X"$as_dir" : 'X\(//\)$' \| \
11584 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11585 echo X"$as_dir" |
11586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11587 s//\1/
11588 q
11589 }
11590 /^X\(\/\/\)[^/].*/{
11591 s//\1/
11592 q
11593 }
11594 /^X\(\/\/\)$/{
11595 s//\1/
11596 q
11597 }
11598 /^X\(\/\).*/{
11599 s//\1/
11600 q
11601 }
11602 s/.*/./; q'`
11603 test -d "$as_dir" && break
11604 done
11605 test -z "$as_dirs" || eval "mkdir $as_dirs"
11606 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11607 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11608 { (exit 1); exit 1; }; }; }
11609 ac_builddir=.
11610
11611 case "$ac_dir" in
11612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11613 *)
11614 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11615 # A ".." for each directory in $ac_dir_suffix.
11616 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11617 case $ac_top_builddir_sub in
11618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11620 esac ;;
11621 esac
11622 ac_abs_top_builddir=$ac_pwd
11623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11624 # for backward compatibility:
11625 ac_top_builddir=$ac_top_build_prefix
11626
11627 case $srcdir in
11628 .) # We are building in place.
11629 ac_srcdir=.
11630 ac_top_srcdir=$ac_top_builddir_sub
11631 ac_abs_top_srcdir=$ac_pwd ;;
11632 [\\/]* | ?:[\\/]* ) # Absolute name.
11633 ac_srcdir=$srcdir$ac_dir_suffix;
11634 ac_top_srcdir=$srcdir
11635 ac_abs_top_srcdir=$srcdir ;;
11636 *) # Relative name.
11637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11638 ac_top_srcdir=$ac_top_build_prefix$srcdir
11639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11640 esac
11641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11642
11643
11644 case $ac_mode in
11645 :F)
11646 #
11647 # CONFIG_FILE
11648 #
11649
11650 case $INSTALL in
11651 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11652 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11653 esac
11654 _ACEOF
11655
11656 cat >>$CONFIG_STATUS <<\_ACEOF
11657 # If the template does not know about datarootdir, expand it.
11658 # FIXME: This hack should be removed a few years after 2.60.
11659 ac_datarootdir_hack=; ac_datarootdir_seen=
11660
11661 case `sed -n '/datarootdir/ {
11662 p
11663 q
11664 }
11665 /@datadir@/p
11666 /@docdir@/p
11667 /@infodir@/p
11668 /@localedir@/p
11669 /@mandir@/p
11670 ' $ac_file_inputs` in
11671 *datarootdir*) ac_datarootdir_seen=yes;;
11672 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11673 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11674 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11675 _ACEOF
11676 cat >>$CONFIG_STATUS <<_ACEOF
11677 ac_datarootdir_hack='
11678 s&@datadir@&$datadir&g
11679 s&@docdir@&$docdir&g
11680 s&@infodir@&$infodir&g
11681 s&@localedir@&$localedir&g
11682 s&@mandir@&$mandir&g
11683 s&\\\${datarootdir}&$datarootdir&g' ;;
11684 esac
11685 _ACEOF
11686
11687 # Neutralize VPATH when `$srcdir' = `.'.
11688 # Shell code in configure.ac might set extrasub.
11689 # FIXME: do we really want to maintain this feature?
11690 cat >>$CONFIG_STATUS <<_ACEOF
11691 sed "$ac_vpsub
11692 $extrasub
11693 _ACEOF
11694 cat >>$CONFIG_STATUS <<\_ACEOF
11695 :t
11696 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11697 s&@configure_input@&$configure_input&;t t
11698 s&@top_builddir@&$ac_top_builddir_sub&;t t
11699 s&@srcdir@&$ac_srcdir&;t t
11700 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11701 s&@top_srcdir@&$ac_top_srcdir&;t t
11702 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11703 s&@builddir@&$ac_builddir&;t t
11704 s&@abs_builddir@&$ac_abs_builddir&;t t
11705 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11706 s&@INSTALL@&$ac_INSTALL&;t t
11707 $ac_datarootdir_hack
11708 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11709
11710 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11711 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11712 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11713 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11714 which seems to be undefined. Please make sure it is defined." >&5
11715 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11716 which seems to be undefined. Please make sure it is defined." >&2;}
11717
11718 rm -f "$tmp/stdin"
11719 case $ac_file in
11720 -) cat "$tmp/out"; rm -f "$tmp/out";;
11721 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11722 esac
11723 ;;
11724 :H)
11725 #
11726 # CONFIG_HEADER
11727 #
11728 _ACEOF
11729
11730 # Transform confdefs.h into a sed script `conftest.defines', that
11731 # substitutes the proper values into config.h.in to produce config.h.
11732 rm -f conftest.defines conftest.tail
11733 # First, append a space to every undef/define line, to ease matching.
11734 echo 's/$/ /' >conftest.defines
11735 # Then, protect against being on the right side of a sed subst, or in
11736 # an unquoted here document, in config.status. If some macros were
11737 # called several times there might be several #defines for the same
11738 # symbol, which is useless. But do not sort them, since the last
11739 # AC_DEFINE must be honored.
11740 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11741 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11742 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11743 # PARAMS is the parameter list in the macro definition--in most cases, it's
11744 # just an empty string.
11745 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11746 ac_dB='\\)[ (].*,\\1define\\2'
11747 ac_dC=' '
11748 ac_dD=' ,'
11749
11750 uniq confdefs.h |
11751 sed -n '
11752 t rset
11753 :rset
11754 s/^[ ]*#[ ]*define[ ][ ]*//
11755 t ok
11756 d
11757 :ok
11758 s/[\\&,]/\\&/g
11759 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11760 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11761 ' >>conftest.defines
11762
11763 # Remove the space that was appended to ease matching.
11764 # Then replace #undef with comments. This is necessary, for
11765 # example, in the case of _POSIX_SOURCE, which is predefined and required
11766 # on some systems where configure will not decide to define it.
11767 # (The regexp can be short, since the line contains either #define or #undef.)
11768 echo 's/ $//
11769 s,^[ #]*u.*,/* & */,' >>conftest.defines
11770
11771 # Break up conftest.defines:
11772 ac_max_sed_lines=50
11773
11774 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11775 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11776 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11777 # et cetera.
11778 ac_in='$ac_file_inputs'
11779 ac_out='"$tmp/out1"'
11780 ac_nxt='"$tmp/out2"'
11781
11782 while :
11783 do
11784 # Write a here document:
11785 cat >>$CONFIG_STATUS <<_ACEOF
11786 # First, check the format of the line:
11787 cat >"\$tmp/defines.sed" <<\\CEOF
11788 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11789 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11790 b
11791 :def
11792 _ACEOF
11793 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11794 echo 'CEOF
11795 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11796 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11797 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11798 grep . conftest.tail >/dev/null || break
11799 rm -f conftest.defines
11800 mv conftest.tail conftest.defines
11801 done
11802 rm -f conftest.defines conftest.tail
11803
11804 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11805 cat >>$CONFIG_STATUS <<\_ACEOF
11806 if test x"$ac_file" != x-; then
11807 echo "/* $configure_input */" >"$tmp/config.h"
11808 cat "$ac_result" >>"$tmp/config.h"
11809 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11810 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11811 echo "$as_me: $ac_file is unchanged" >&6;}
11812 else
11813 rm -f $ac_file
11814 mv "$tmp/config.h" $ac_file
11815 fi
11816 else
11817 echo "/* $configure_input */"
11818 cat "$ac_result"
11819 fi
11820 rm -f "$tmp/out12"
11821 # Compute $ac_file's index in $config_headers.
11822 _am_stamp_count=1
11823 for _am_header in $config_headers :; do
11824 case $_am_header in
11825 $ac_file | $ac_file:* )
11826 break ;;
11827 * )
11828 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11829 esac
11830 done
11831 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
11832 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11833 X$ac_file : 'X\(//\)[^/]' \| \
11834 X$ac_file : 'X\(//\)$' \| \
11835 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
11836 echo X$ac_file |
11837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11838 s//\1/
11839 q
11840 }
11841 /^X\(\/\/\)[^/].*/{
11842 s//\1/
11843 q
11844 }
11845 /^X\(\/\/\)$/{
11846 s//\1/
11847 q
11848 }
11849 /^X\(\/\).*/{
11850 s//\1/
11851 q
11852 }
11853 s/.*/./; q'`/stamp-h$_am_stamp_count
11854 ;;
11855
11856 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11857 echo "$as_me: executing $ac_file commands" >&6;}
11858 ;;
11859 esac
11860
11861
11862 case $ac_file$ac_mode in
11863 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11864 # Strip MF so we end up with the name of the file.
11865 mf=`echo "$mf" | sed -e 's/:.*$//'`
11866 # Check whether this is an Automake generated Makefile or not.
11867 # We used to match only the files named `Makefile.in', but
11868 # some people rename them; so instead we look at the file content.
11869 # Grep'ing the first line is not enough: some people post-process
11870 # each Makefile.in and add a new line on top of each file to say so.
11871 # So let's grep whole file.
11872 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11873 dirpart=`$as_dirname -- "$mf" ||
11874 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11875 X"$mf" : 'X\(//\)[^/]' \| \
11876 X"$mf" : 'X\(//\)$' \| \
11877 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11878 echo X"$mf" |
11879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11880 s//\1/
11881 q
11882 }
11883 /^X\(\/\/\)[^/].*/{
11884 s//\1/
11885 q
11886 }
11887 /^X\(\/\/\)$/{
11888 s//\1/
11889 q
11890 }
11891 /^X\(\/\).*/{
11892 s//\1/
11893 q
11894 }
11895 s/.*/./; q'`
11896 else
11897 continue
11898 fi
11899 # Extract the definition of DEPDIR, am__include, and am__quote
11900 # from the Makefile without running `make'.
11901 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11902 test -z "$DEPDIR" && continue
11903 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11904 test -z "am__include" && continue
11905 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11906 # When using ansi2knr, U may be empty or an underscore; expand it
11907 U=`sed -n 's/^U = //p' < "$mf"`
11908 # Find all dependency output files, they are included files with
11909 # $(DEPDIR) in their names. We invoke sed twice because it is the
11910 # simplest approach to changing $(DEPDIR) to its actual value in the
11911 # expansion.
11912 for file in `sed -n "
11913 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11914 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11915 # Make sure the directory exists.
11916 test -f "$dirpart/$file" && continue
11917 fdir=`$as_dirname -- "$file" ||
11918 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11919 X"$file" : 'X\(//\)[^/]' \| \
11920 X"$file" : 'X\(//\)$' \| \
11921 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11922 echo X"$file" |
11923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11924 s//\1/
11925 q
11926 }
11927 /^X\(\/\/\)[^/].*/{
11928 s//\1/
11929 q
11930 }
11931 /^X\(\/\/\)$/{
11932 s//\1/
11933 q
11934 }
11935 /^X\(\/\).*/{
11936 s//\1/
11937 q
11938 }
11939 s/.*/./; q'`
11940 { as_dir=$dirpart/$fdir
11941 case $as_dir in #(
11942 -*) as_dir=./$as_dir;;
11943 esac
11944 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11945 as_dirs=
11946 while :; do
11947 case $as_dir in #(
11948 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11949 *) as_qdir=$as_dir;;
11950 esac
11951 as_dirs="'$as_qdir' $as_dirs"
11952 as_dir=`$as_dirname -- "$as_dir" ||
11953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11954 X"$as_dir" : 'X\(//\)[^/]' \| \
11955 X"$as_dir" : 'X\(//\)$' \| \
11956 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11957 echo X"$as_dir" |
11958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11959 s//\1/
11960 q
11961 }
11962 /^X\(\/\/\)[^/].*/{
11963 s//\1/
11964 q
11965 }
11966 /^X\(\/\/\)$/{
11967 s//\1/
11968 q
11969 }
11970 /^X\(\/\).*/{
11971 s//\1/
11972 q
11973 }
11974 s/.*/./; q'`
11975 test -d "$as_dir" && break
11976 done
11977 test -z "$as_dirs" || eval "mkdir $as_dirs"
11978 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11979 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11980 { (exit 1); exit 1; }; }; }
11981 # echo "creating $dirpart/$file"
11982 echo '# dummy' > "$dirpart/$file"
11983 done
11984 done
11985 ;;
11986 "default-1":C)
11987 for ac_file in $CONFIG_FILES; do
11988 # Support "outfile[:infile[:infile...]]"
11989 case "$ac_file" in
11990 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11991 esac
11992 # PO directories have a Makefile.in generated from Makefile.in.in.
11993 case "$ac_file" in */Makefile.in)
11994 # Adjust a relative srcdir.
11995 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11996 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
11997 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11998 # In autoconf-2.13 it is called $ac_given_srcdir.
11999 # In autoconf-2.50 it is called $srcdir.
12000 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12001 case "$ac_given_srcdir" in
12002 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12003 /*) top_srcdir="$ac_given_srcdir" ;;
12004 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12005 esac
12006 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12007 rm -f "$ac_dir/POTFILES"
12008 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12009 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12010 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
12011 # on $ac_dir but don't depend on user-specified configuration
12012 # parameters.
12013 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12014 # The LINGUAS file contains the set of available languages.
12015 if test -n "$ALL_LINGUAS"; then
12016 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12017 fi
12018 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12019 # Hide the ALL_LINGUAS assigment from automake.
12020 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12021 fi
12022 case "$ac_given_srcdir" in
12023 .) srcdirpre= ;;
12024 *) srcdirpre='$(srcdir)/' ;;
12025 esac
12026 POFILES=
12027 GMOFILES=
12028 UPDATEPOFILES=
12029 DUMMYPOFILES=
12030 for lang in $ALL_LINGUAS; do
12031 POFILES="$POFILES $srcdirpre$lang.po"
12032 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12033 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12034 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12035 done
12036 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12037 # environment variable.
12038 INST_LINGUAS=
12039 if test -n "$ALL_LINGUAS"; then
12040 for presentlang in $ALL_LINGUAS; do
12041 useit=no
12042 if test "%UNSET%" != "$LINGUAS"; then
12043 desiredlanguages="$LINGUAS"
12044 else
12045 desiredlanguages="$ALL_LINGUAS"
12046 fi
12047 for desiredlang in $desiredlanguages; do
12048 # Use the presentlang catalog if desiredlang is
12049 # a. equal to presentlang, or
12050 # b. a variant of presentlang (because in this case,
12051 # presentlang can be used as a fallback for messages
12052 # which are not translated in the desiredlang catalog).
12053 case "$desiredlang" in
12054 "$presentlang"*) useit=yes;;
12055 esac
12056 done
12057 if test $useit = yes; then
12058 INST_LINGUAS="$INST_LINGUAS $presentlang"
12059 fi
12060 done
12061 fi
12062 CATALOGS=
12063 if test -n "$INST_LINGUAS"; then
12064 for lang in $INST_LINGUAS; do
12065 CATALOGS="$CATALOGS $lang.gmo"
12066 done
12067 fi
12068 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12069 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12070 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12071 if test -f "$f"; then
12072 case "$f" in
12073 *.orig | *.bak | *~) ;;
12074 *) cat "$f" >> "$ac_dir/Makefile" ;;
12075 esac
12076 fi
12077 done
12078 fi
12079 ;;
12080 esac
12081 done ;;
12082
12083 esac
12084 done # for ac_tag
12085
12086
12087 { (exit 0); exit 0; }
12088 _ACEOF
12089 chmod +x $CONFIG_STATUS
12090 ac_clean_files=$ac_clean_files_save
12091
12092
12093 # configure is writing to config.log, and then calls config.status.
12094 # config.status does its own redirection, appending to config.log.
12095 # Unfortunately, on DOS this fails, as config.log is still kept open
12096 # by configure, so config.status won't be able to write to it; its
12097 # output is simply discarded. So we exec the FD to /dev/null,
12098 # effectively closing config.log, so it can be properly (re)opened and
12099 # appended to by config.status. When coming back to configure, we
12100 # need to make the FD available again.
12101 if test "$no_create" != yes; then
12102 ac_cs_success=:
12103 ac_config_status_args=
12104 test "$silent" = yes &&
12105 ac_config_status_args="$ac_config_status_args --quiet"
12106 exec 5>/dev/null
12107 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12108 exec 5>>config.log
12109 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12110 # would make configure fail if this is the last instruction.
12111 $ac_cs_success || { (exit 1); exit 1; }
12112 fi
12113