Debian Codegraph @

configure

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for briquolo 0.5.7.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell [email protected] about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='briquolo'
576 PACKAGE_TARNAME='briquolo'
577 PACKAGE_VERSION='0.5.7'
578 PACKAGE_STRING='briquolo 0.5.7'
579 PACKAGE_BUGREPORT='[email protected]'
580
581 ac_unique_file="src/MenuJeu.h"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 target
664 target_cpu
665 target_vendor
666 target_os
667 INSTALL_PROGRAM
668 INSTALL_SCRIPT
669 INSTALL_DATA
670 CYGPATH_W
671 PACKAGE
672 VERSION
673 ACLOCAL
674 AUTOCONF
675 AUTOMAKE
676 AUTOHEADER
677 MAKEINFO
678 install_sh
679 STRIP
680 INSTALL_STRIP_PROGRAM
681 mkdir_p
682 AWK
683 SET_MAKE
684 am__leading_dot
685 AMTAR
686 am__tar
687 am__untar
688 CXX
689 CXXFLAGS
690 LDFLAGS
691 CPPFLAGS
692 ac_ct_CXX
693 EXEEXT
694 OBJEXT
695 DEPDIR
696 am__include
697 am__quote
698 AMDEP_TRUE
699 AMDEP_FALSE
700 AMDEPBACKSLASH
701 CXXDEPMODE
702 am__fastdepCXX_TRUE
703 am__fastdepCXX_FALSE
704 CC
705 CFLAGS
706 ac_ct_CC
707 CCDEPMODE
708 am__fastdepCC_TRUE
709 am__fastdepCC_FALSE
710 RANLIB
711 YACC
712 YFLAGS
713 ALLOCA
714 CPP
715 GREP
716 EGREP
717 LIBOBJS
718 freetypeconfig
719 pngconfig
720 SDL_CONFIG
721 SDL_CFLAGS
722 SDL_LIBS
723 MKINSTALLDIRS
724 USE_NLS
725 MSGFMT
726 GMSGFMT
727 XGETTEXT
728 MSGMERGE
729 GLIBC21
730 HAVE_POSIX_PRINTF
731 HAVE_ASPRINTF
732 HAVE_SNPRINTF
733 HAVE_WPRINTF
734 LIBICONV
735 LTLIBICONV
736 INTLBISON
737 BUILD_INCLUDED_LIBINTL
738 USE_INCLUDED_LIBINTL
739 CATOBJEXT
740 DATADIRNAME
741 INSTOBJEXT
742 GENCAT
743 INTLOBJS
744 INTL_LIBTOOL_SUFFIX_PREFIX
745 INTLLIBS
746 LIBINTL
747 LTLIBINTL
748 POSUB
749 XMKMF
750 LTLIBOBJS'
751 ac_subst_files=''
752 ac_precious_vars='build_alias
753 host_alias
754 target_alias
755 CXX
756 CXXFLAGS
757 LDFLAGS
758 LIBS
759 CPPFLAGS
760 CCC
761 CC
762 CFLAGS
763 YACC
764 YFLAGS
765 CPP
766 XMKMF'
767
768
769 # Initialize some variables set by options.
770 ac_init_help=
771 ac_init_version=false
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
774 cache_file=/dev/null
775 exec_prefix=NONE
776 no_create=
777 no_recursion=
778 prefix=NONE
779 program_prefix=NONE
780 program_suffix=NONE
781 program_transform_name=s,x,x,
782 silent=
783 site=
784 srcdir=
785 verbose=
786 x_includes=NONE
787 x_libraries=NONE
788
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 includedir='${prefix}/include'
804 oldincludedir='/usr/include'
805 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806 infodir='${datarootdir}/info'
807 htmldir='${docdir}'
808 dvidir='${docdir}'
809 pdfdir='${docdir}'
810 psdir='${docdir}'
811 libdir='${exec_prefix}/lib'
812 localedir='${datarootdir}/locale'
813 mandir='${datarootdir}/man'
814
815 ac_prev=
816 ac_dashdash=
817 for ac_option
818 do
819 # If the previous option needs an argument, assign it.
820 if test -n "$ac_prev"; then
821 eval $ac_prev=\$ac_option
822 ac_prev=
823 continue
824 fi
825
826 case $ac_option in
827 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828 *) ac_optarg=yes ;;
829 esac
830
831 # Accept the important Cygnus configure options, so we can diagnose typos.
832
833 case $ac_dashdash$ac_option in
834 --)
835 ac_dashdash=yes ;;
836
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 ac_prev=bindir ;;
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 bindir=$ac_optarg ;;
841
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
846
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
853
854 --config-cache | -C)
855 cache_file=config.cache ;;
856
857 -datadir | --datadir | --datadi | --datad)
858 ac_prev=datadir ;;
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
861
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
868
869 -disable-* | --disable-*)
870 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
875 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_$ac_feature=no ;;
877
878 -docdir | --docdir | --docdi | --doc | --do)
879 ac_prev=docdir ;;
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 docdir=$ac_optarg ;;
882
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 ac_prev=dvidir ;;
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 dvidir=$ac_optarg ;;
887
888 -enable-* | --enable-*)
889 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
892 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
893 { (exit 1); exit 1; }; }
894 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
895 eval enable_$ac_feature=\$ac_optarg ;;
896
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
905
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
908 with_gas=yes ;;
909
910 -help | --help | --hel | --he | -h)
911 ac_init_help=long ;;
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
916
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
921
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 ac_prev=htmldir ;;
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 | --ht=*)
926 htmldir=$ac_optarg ;;
927
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
934
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 ac_prev=infodir ;;
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
939
940 -libdir | --libdir | --libdi | --libd)
941 ac_prev=libdir ;;
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
943 libdir=$ac_optarg ;;
944
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
951
952 -localedir | --localedir | --localedi | --localed | --locale)
953 ac_prev=localedir ;;
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
956
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
963
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 ac_prev=mandir ;;
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 mandir=$ac_optarg ;;
968
969 -nfp | --nfp | --nf)
970 # Obsolete; use --without-fp.
971 with_fp=no ;;
972
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
975 no_create=yes ;;
976
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979 no_recursion=yes ;;
980
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
989
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 ac_prev=prefix ;;
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993 prefix=$ac_optarg ;;
994
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1001
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1008
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1025
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 ac_prev=pdfdir ;;
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1030
1031 -psdir | --psdir | --psdi | --psd | --ps)
1032 ac_prev=psdir ;;
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034 psdir=$ac_optarg ;;
1035
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 silent=yes ;;
1039
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 ac_prev=sbindir ;;
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 | --sbi=* | --sb=*)
1044 sbindir=$ac_optarg ;;
1045
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1049 | --sha | --sh)
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 | --sha=* | --sh=*)
1055 sharedstatedir=$ac_optarg ;;
1056
1057 -site | --site | --sit)
1058 ac_prev=site ;;
1059 -site=* | --site=* | --sit=*)
1060 site=$ac_optarg ;;
1061
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 ac_prev=srcdir ;;
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1066
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1073
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1078
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080 verbose=yes ;;
1081
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1084
1085 -with-* | --with-*)
1086 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089 { echo "$as_me: error: invalid package name: $ac_package" >&2
1090 { (exit 1); exit 1; }; }
1091 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1092 eval with_$ac_package=\$ac_optarg ;;
1093
1094 -without-* | --without-*)
1095 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1098 { echo "$as_me: error: invalid package name: $ac_package" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1101 eval with_$ac_package=no ;;
1102
1103 --x)
1104 # Obsolete; use --with-x.
1105 with_x=yes ;;
1106
1107 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108 | --x-incl | --x-inc | --x-in | --x-i)
1109 ac_prev=x_includes ;;
1110 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112 x_includes=$ac_optarg ;;
1113
1114 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116 ac_prev=x_libraries ;;
1117 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119 x_libraries=$ac_optarg ;;
1120
1121 -*) { echo "$as_me: error: unrecognized option: $ac_option
1122 Try \`$0 --help' for more information." >&2
1123 { (exit 1); exit 1; }; }
1124 ;;
1125
1126 *=*)
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1130 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1131 { (exit 1); exit 1; }; }
1132 eval $ac_envvar=\$ac_optarg
1133 export $ac_envvar ;;
1134
1135 *)
1136 # FIXME: should be removed in autoconf 3.0.
1137 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1138 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1140 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1141 ;;
1142
1143 esac
1144 done
1145
1146 if test -n "$ac_prev"; then
1147 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1148 { echo "$as_me: error: missing argument to $ac_option" >&2
1149 { (exit 1); exit 1; }; }
1150 fi
1151
1152 # Be sure to have absolute directory names.
1153 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1154 datadir sysconfdir sharedstatedir localstatedir includedir \
1155 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1156 libdir localedir mandir
1157 do
1158 eval ac_val=\$$ac_var
1159 case $ac_val in
1160 [\\/$]* | ?:[\\/]* ) continue;;
1161 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1162 esac
1163 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1164 { (exit 1); exit 1; }; }
1165 done
1166
1167 # There might be people who depend on the old broken behavior: `$host'
1168 # used to hold the argument of --host etc.
1169 # FIXME: To remove some day.
1170 build=$build_alias
1171 host=$host_alias
1172 target=$target_alias
1173
1174 # FIXME: To remove some day.
1175 if test "x$host_alias" != x; then
1176 if test "x$build_alias" = x; then
1177 cross_compiling=maybe
1178 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1179 If a cross compiler is detected then cross compile mode will be used." >&2
1180 elif test "x$build_alias" != "x$host_alias"; then
1181 cross_compiling=yes
1182 fi
1183 fi
1184
1185 ac_tool_prefix=
1186 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1187
1188 test "$silent" = yes && exec 6>/dev/null
1189
1190
1191 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1192 ac_ls_di=`ls -di .` &&
1193 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1194 { echo "$as_me: error: Working directory cannot be determined" >&2
1195 { (exit 1); exit 1; }; }
1196 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1197 { echo "$as_me: error: pwd does not report name of working directory" >&2
1198 { (exit 1); exit 1; }; }
1199
1200
1201 # Find the source files, if location was not specified.
1202 if test -z "$srcdir"; then
1203 ac_srcdir_defaulted=yes
1204 # Try the directory containing this script, then the parent directory.
1205 ac_confdir=`$as_dirname -- "$0" ||
1206 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1207 X"$0" : 'X\(//\)[^/]' \| \
1208 X"$0" : 'X\(//\)$' \| \
1209 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1210 echo X"$0" |
1211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212 s//\1/
1213 q
1214 }
1215 /^X\(\/\/\)[^/].*/{
1216 s//\1/
1217 q
1218 }
1219 /^X\(\/\/\)$/{
1220 s//\1/
1221 q
1222 }
1223 /^X\(\/\).*/{
1224 s//\1/
1225 q
1226 }
1227 s/.*/./; q'`
1228 srcdir=$ac_confdir
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 srcdir=..
1231 fi
1232 else
1233 ac_srcdir_defaulted=no
1234 fi
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1236 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1237 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1238 { (exit 1); exit 1; }; }
1239 fi
1240 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1241 ac_abs_confdir=`(
1242 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1243 { (exit 1); exit 1; }; }
1244 pwd)`
1245 # When building in place, set srcdir=.
1246 if test "$ac_abs_confdir" = "$ac_pwd"; then
1247 srcdir=.
1248 fi
1249 # Remove unnecessary trailing slashes from srcdir.
1250 # Double slashes in file names in object file debugging info
1251 # mess up M-x gdb in Emacs.
1252 case $srcdir in
1253 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1254 esac
1255 for ac_var in $ac_precious_vars; do
1256 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1257 eval ac_env_${ac_var}_value=\$${ac_var}
1258 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1259 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1260 done
1261
1262 #
1263 # Report the --help message.
1264 #
1265 if test "$ac_init_help" = "long"; then
1266 # Omit some internal or obsolete options to make the list less imposing.
1267 # This message is too long to be a string in the A/UX 3.1 sh.
1268 cat <<_ACEOF
1269 \`configure' configures briquolo 0.5.7 to adapt to many kinds of systems.
1270
1271 Usage: $0 [OPTION]... [VAR=VALUE]...
1272
1273 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1274 VAR=VALUE. See below for descriptions of some of the useful variables.
1275
1276 Defaults for the options are specified in brackets.
1277
1278 Configuration:
1279 -h, --help display this help and exit
1280 --help=short display options specific to this package
1281 --help=recursive display the short help of all the included packages
1282 -V, --version display version information and exit
1283 -q, --quiet, --silent do not print \`checking...' messages
1284 --cache-file=FILE cache test results in FILE [disabled]
1285 -C, --config-cache alias for \`--cache-file=config.cache'
1286 -n, --no-create do not create output files
1287 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1288
1289 Installation directories:
1290 --prefix=PREFIX install architecture-independent files in PREFIX
1291 [$ac_default_prefix]
1292 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1293 [PREFIX]
1294
1295 By default, \`make install' will install all the files in
1296 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1297 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1298 for instance \`--prefix=\$HOME'.
1299
1300 For better control, use the options below.
1301
1302 Fine tuning of the installation directories:
1303 --bindir=DIR user executables [EPREFIX/bin]
1304 --sbindir=DIR system admin executables [EPREFIX/sbin]
1305 --libexecdir=DIR program executables [EPREFIX/libexec]
1306 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1307 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1308 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1309 --libdir=DIR object code libraries [EPREFIX/lib]
1310 --includedir=DIR C header files [PREFIX/include]
1311 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1312 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1313 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1314 --infodir=DIR info documentation [DATAROOTDIR/info]
1315 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1316 --mandir=DIR man documentation [DATAROOTDIR/man]
1317 --docdir=DIR documentation root [DATAROOTDIR/doc/briquolo]
1318 --htmldir=DIR html documentation [DOCDIR]
1319 --dvidir=DIR dvi documentation [DOCDIR]
1320 --pdfdir=DIR pdf documentation [DOCDIR]
1321 --psdir=DIR ps documentation [DOCDIR]
1322 _ACEOF
1323
1324 cat <<\_ACEOF
1325
1326 Program names:
1327 --program-prefix=PREFIX prepend PREFIX to installed program names
1328 --program-suffix=SUFFIX append SUFFIX to installed program names
1329 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1330
1331 X features:
1332 --x-includes=DIR X include files are in DIR
1333 --x-libraries=DIR X library files are in DIR
1334
1335 System types:
1336 --build=BUILD configure for building on BUILD [guessed]
1337 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1338 --target=TARGET configure for building compilers for TARGET [HOST]
1339 _ACEOF
1340 fi
1341
1342 if test -n "$ac_init_help"; then
1343 case $ac_init_help in
1344 short | recursive ) echo "Configuration of briquolo 0.5.7:";;
1345 esac
1346 cat <<\_ACEOF
1347
1348 Optional Features:
1349 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1350 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1351 --disable-dependency-tracking speeds up one-time build
1352 --enable-dependency-tracking do not reject slow dependency extractors
1353 --disable-sdltest Do not try to compile and run a test SDL program
1354 --disable-nls do not use Native Language Support
1355 --disable-rpath do not hardcode runtime library paths
1356 --enable-debug Enable debugging default=no
1357
1358 Optional Packages:
1359 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1360 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1361 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1362 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1363 --with-gnu-ld assume the C compiler uses GNU ld default=no
1364 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1365 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1366 --with-included-gettext use the GNU gettext library included here
1367 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1368 --without-libintl-prefix don't search for libintl in includedir and libdir
1369 --with-x use the X Window System
1370
1371 Some influential environment variables:
1372 CXX C++ compiler command
1373 CXXFLAGS C++ compiler flags
1374 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1375 nonstandard directory <lib dir>
1376 LIBS libraries to pass to the linker, e.g. -l<library>
1377 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1378 you have headers in a nonstandard directory <include dir>
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1382 the first program found out of: `bison -y', `byacc', `yacc'.
1383 YFLAGS The list of arguments that will be passed by default to $YACC.
1384 This script will default YFLAGS to the empty string to avoid a
1385 default value of `-d' given by some make applications.
1386 CPP C preprocessor
1387 XMKMF Path to xmkmf, Makefile generator for X Window System
1388
1389 Use these variables to override the choices made by `configure' or to help
1390 it to find libraries and programs with nonstandard names/locations.
1391
1392 Report bugs to <[email protected]>.
1393 _ACEOF
1394 ac_status=$?
1395 fi
1396
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" || continue
1401 ac_builddir=.
1402
1403 case "$ac_dir" in
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *)
1406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413 esac
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1418
1419 case $srcdir in
1420 .) # We are building in place.
1421 ac_srcdir=.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 esac
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1443 else
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1447 done
1448 fi
1449
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1452 cat <<\_ACEOF
1453 briquolo configure 0.5.7
1454 generated by GNU Autoconf 2.61
1455
1456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1460 _ACEOF
1461 exit
1462 fi
1463 cat >config.log <<_ACEOF
1464 This file contains any messages produced by compilers while
1465 running configure, to aid debugging if configure makes a mistake.
1466
1467 It was created by briquolo $as_me 0.5.7, which was
1468 generated by GNU Autoconf 2.61. Invocation command line was
1469
1470 $ $0 $@
1471
1472 _ACEOF
1473 exec 5>>config.log
1474 {
1475 cat <<_ASUNAME
1476 ## --------- ##
1477 ## Platform. ##
1478 ## --------- ##
1479
1480 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1485
1486 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1488
1489 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1490 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1491 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1492 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1493 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1494 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1495 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1496
1497 _ASUNAME
1498
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 for as_dir in $PATH
1501 do
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1505 done
1506 IFS=$as_save_IFS
1507
1508 } >&5
1509
1510 cat >&5 <<_ACEOF
1511
1512
1513 ## ----------- ##
1514 ## Core tests. ##
1515 ## ----------- ##
1516
1517 _ACEOF
1518
1519
1520 # Keep a trace of the command line.
1521 # Strip out --no-create and --no-recursion so they do not pile up.
1522 # Strip out --silent because we don't want to record it for future runs.
1523 # Also quote any args containing shell meta-characters.
1524 # Make two passes to allow for proper duplicate-argument suppression.
1525 ac_configure_args=
1526 ac_configure_args0=
1527 ac_configure_args1=
1528 ac_must_keep_next=false
1529 for ac_pass in 1 2
1530 do
1531 for ac_arg
1532 do
1533 case $ac_arg in
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1537 continue ;;
1538 *\'*)
1539 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1540 esac
1541 case $ac_pass in
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1543 2)
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1547 else
1548 case $ac_arg in
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555 esac
1556 ;;
1557 -* ) ac_must_keep_next=true ;;
1558 esac
1559 fi
1560 ac_configure_args="$ac_configure_args '$ac_arg'"
1561 ;;
1562 esac
1563 done
1564 done
1565 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1567
1568 # When interrupted or exit'd, cleanup temporary files, and complete
1569 # config.log. We remove comments because anyway the quotes in there
1570 # would cause problems or look ugly.
1571 # WARNING: Use '\'' to represent an apostrophe within the trap.
1572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573 trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1575 {
1576 echo
1577
1578 cat <<\_ASBOX
1579 ## ---------------- ##
1580 ## Cache variables. ##
1581 ## ---------------- ##
1582 _ASBOX
1583 echo
1584 # The following way of writing the cache mishandles newlines in values,
1585 (
1586 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in #(
1589 *${as_nl}*)
1590 case $ac_var in #(
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593 esac
1594 case $ac_var in #(
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1597 esac ;;
1598 esac
1599 done
1600 (set) 2>&1 |
1601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1603 sed -n \
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606 ;; #(
1607 *)
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1609 ;;
1610 esac |
1611 sort
1612 )
1613 echo
1614
1615 cat <<\_ASBOX
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1619 _ASBOX
1620 echo
1621 for ac_var in $ac_subst_vars
1622 do
1623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
1628 done | sort
1629 echo
1630
1631 if test -n "$ac_subst_files"; then
1632 cat <<\_ASBOX
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1636 _ASBOX
1637 echo
1638 for ac_var in $ac_subst_files
1639 do
1640 eval ac_val=\$$ac_var
1641 case $ac_val in
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 esac
1644 echo "$ac_var='\''$ac_val'\''"
1645 done | sort
1646 echo
1647 fi
1648
1649 if test -s confdefs.h; then
1650 cat <<\_ASBOX
1651 ## ----------- ##
1652 ## confdefs.h. ##
1653 ## ----------- ##
1654 _ASBOX
1655 echo
1656 cat confdefs.h
1657 echo
1658 fi
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1662 } >&5
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1665 exit $exit_status
1666 ' 0
1667 for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669 done
1670 ac_signal=0
1671
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest* confdefs.h
1674
1675 # Predefined preprocessor variables.
1676
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1679 _ACEOF
1680
1681
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684 _ACEOF
1685
1686
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1689 _ACEOF
1690
1691
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1694 _ACEOF
1695
1696
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699 _ACEOF
1700
1701
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer explicitly selected file to automatically selected ones.
1704 if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706 elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1708 else
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1711 fi
1712 shift
1713 for ac_site_file
1714 do
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717 echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1719 . "$ac_site_file"
1720 fi
1721 done
1722
1723 if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728 echo "$as_me: loading cache $cache_file" >&6;}
1729 case $cache_file in
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1732 esac
1733 fi
1734 else
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736 echo "$as_me: creating cache $cache_file" >&6;}
1737 >$cache_file
1738 fi
1739
1740 # Check that the precious variables saved in the cache have kept the same
1741 # value.
1742 ac_cache_corrupted=false
1743 for ac_var in $ac_precious_vars; do
1744 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1745 eval ac_new_set=\$ac_env_${ac_var}_set
1746 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1747 eval ac_new_val=\$ac_env_${ac_var}_value
1748 case $ac_old_set,$ac_new_set in
1749 set,)
1750 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1751 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1752 ac_cache_corrupted=: ;;
1753 ,set)
1754 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1755 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1756 ac_cache_corrupted=: ;;
1757 ,);;
1758 *)
1759 if test "x$ac_old_val" != "x$ac_new_val"; then
1760 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1761 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1762 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1763 echo "$as_me: former value: $ac_old_val" >&2;}
1764 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1765 echo "$as_me: current value: $ac_new_val" >&2;}
1766 ac_cache_corrupted=:
1767 fi;;
1768 esac
1769 # Pass precious variables to config.status.
1770 if test "$ac_new_set" = set; then
1771 case $ac_new_val in
1772 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 *) ac_arg=$ac_var=$ac_new_val ;;
1774 esac
1775 case " $ac_configure_args " in
1776 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1777 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1778 esac
1779 fi
1780 done
1781 if $ac_cache_corrupted; then
1782 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1783 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1784 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1785 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1786 { (exit 1); exit 1; }; }
1787 fi
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813 ac_ext=c
1814 ac_cpp='$CPP $CPPFLAGS'
1815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1818
1819
1820
1821
1822 ac_config_headers="$ac_config_headers config.h"
1823
1824
1825 ac_aux_dir=
1826 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1827 if test -f "$ac_dir/install-sh"; then
1828 ac_aux_dir=$ac_dir
1829 ac_install_sh="$ac_aux_dir/install-sh -c"
1830 break
1831 elif test -f "$ac_dir/install.sh"; then
1832 ac_aux_dir=$ac_dir
1833 ac_install_sh="$ac_aux_dir/install.sh -c"
1834 break
1835 elif test -f "$ac_dir/shtool"; then
1836 ac_aux_dir=$ac_dir
1837 ac_install_sh="$ac_aux_dir/shtool install -c"
1838 break
1839 fi
1840 done
1841 if test -z "$ac_aux_dir"; then
1842 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1843 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1844 { (exit 1); exit 1; }; }
1845 fi
1846
1847 # These three variables are undocumented and unsupported,
1848 # and are intended to be withdrawn in a future Autoconf release.
1849 # They can cause serious problems if a builder's source tree is in a directory
1850 # whose full name contains unusual characters.
1851 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1852 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1853 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1854
1855
1856 # Make sure we can run config.sub.
1857 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1858 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1859 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1860 { (exit 1); exit 1; }; }
1861
1862 { echo "$as_me:$LINENO: checking build system type" >&5
1863 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1864 if test "${ac_cv_build+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867 ac_build_alias=$build_alias
1868 test "x$ac_build_alias" = x &&
1869 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1870 test "x$ac_build_alias" = x &&
1871 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1872 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1873 { (exit 1); exit 1; }; }
1874 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1875 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1876 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1877 { (exit 1); exit 1; }; }
1878
1879 fi
1880 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1881 echo "${ECHO_T}$ac_cv_build" >&6; }
1882 case $ac_cv_build in
1883 *-*-*) ;;
1884 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1885 echo "$as_me: error: invalid value of canonical build" >&2;}
1886 { (exit 1); exit 1; }; };;
1887 esac
1888 build=$ac_cv_build
1889 ac_save_IFS=$IFS; IFS='-'
1890 set x $ac_cv_build
1891 shift
1892 build_cpu=$1
1893 build_vendor=$2
1894 shift; shift
1895 # Remember, the first character of IFS is used to create $*,
1896 # except with old shells:
1897 build_os=$*
1898 IFS=$ac_save_IFS
1899 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1900
1901
1902 { echo "$as_me:$LINENO: checking host system type" >&5
1903 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1904 if test "${ac_cv_host+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 if test "x$host_alias" = x; then
1908 ac_cv_host=$ac_cv_build
1909 else
1910 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1911 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1912 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1913 { (exit 1); exit 1; }; }
1914 fi
1915
1916 fi
1917 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1918 echo "${ECHO_T}$ac_cv_host" >&6; }
1919 case $ac_cv_host in
1920 *-*-*) ;;
1921 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1922 echo "$as_me: error: invalid value of canonical host" >&2;}
1923 { (exit 1); exit 1; }; };;
1924 esac
1925 host=$ac_cv_host
1926 ac_save_IFS=$IFS; IFS='-'
1927 set x $ac_cv_host
1928 shift
1929 host_cpu=$1
1930 host_vendor=$2
1931 shift; shift
1932 # Remember, the first character of IFS is used to create $*,
1933 # except with old shells:
1934 host_os=$*
1935 IFS=$ac_save_IFS
1936 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1937
1938
1939 { echo "$as_me:$LINENO: checking target system type" >&5
1940 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1941 if test "${ac_cv_target+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944 if test "x$target_alias" = x; then
1945 ac_cv_target=$ac_cv_host
1946 else
1947 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1948 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1949 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1950 { (exit 1); exit 1; }; }
1951 fi
1952
1953 fi
1954 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1955 echo "${ECHO_T}$ac_cv_target" >&6; }
1956 case $ac_cv_target in
1957 *-*-*) ;;
1958 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1959 echo "$as_me: error: invalid value of canonical target" >&2;}
1960 { (exit 1); exit 1; }; };;
1961 esac
1962 target=$ac_cv_target
1963 ac_save_IFS=$IFS; IFS='-'
1964 set x $ac_cv_target
1965 shift
1966 target_cpu=$1
1967 target_vendor=$2
1968 shift; shift
1969 # Remember, the first character of IFS is used to create $*,
1970 # except with old shells:
1971 target_os=$*
1972 IFS=$ac_save_IFS
1973 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1974
1975
1976 # The aliases save the names the user supplied, while $host etc.
1977 # will get canonicalized.
1978 test -n "$target_alias" &&
1979 test "$program_prefix$program_suffix$program_transform_name" = \
1980 NONENONEs,x,x, &&
1981 program_prefix=${target_alias}-
1982
1983 am__api_version="1.9"
1984 # Find a good install program. We prefer a C program (faster),
1985 # so one script is as good as another. But avoid the broken or
1986 # incompatible versions:
1987 # SysV /etc/install, /usr/sbin/install
1988 # SunOS /usr/etc/install
1989 # IRIX /sbin/install
1990 # AIX /bin/install
1991 # AmigaOS /C/install, which installs bootblocks on floppy discs
1992 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1993 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1994 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1995 # OS/2's system install, which has a completely different semantic
1996 # ./install, which can be erroneously created by make from ./install.sh.
1997 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1998 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1999 if test -z "$INSTALL"; then
2000 if test "${ac_cv_path_install+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 for as_dir in $PATH
2005 do
2006 IFS=$as_save_IFS
2007 test -z "$as_dir" && as_dir=.
2008 # Account for people who put trailing slashes in PATH elements.
2009 case $as_dir/ in
2010 ./ | .// | /cC/* | \
2011 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2012 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2013 /usr/ucb/* ) ;;
2014 *)
2015 # OSF1 and SCO ODT 3.0 have their own names for install.
2016 # Don't use installbsd from OSF since it installs stuff as root
2017 # by default.
2018 for ac_prog in ginstall scoinst install; do
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2021 if test $ac_prog = install &&
2022 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2023 # AIX install. It has an incompatible calling convention.
2024 :
2025 elif test $ac_prog = install &&
2026 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2027 # program-specific install script used by HP pwplus--don't use.
2028 :
2029 else
2030 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2031 break 3
2032 fi
2033 fi
2034 done
2035 done
2036 ;;
2037 esac
2038 done
2039 IFS=$as_save_IFS
2040
2041
2042 fi
2043 if test "${ac_cv_path_install+set}" = set; then
2044 INSTALL=$ac_cv_path_install
2045 else
2046 # As a last resort, use the slow shell script. Don't cache a
2047 # value for INSTALL within a source directory, because that will
2048 # break other packages using the cache if that directory is
2049 # removed, or if the value is a relative name.
2050 INSTALL=$ac_install_sh
2051 fi
2052 fi
2053 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2054 echo "${ECHO_T}$INSTALL" >&6; }
2055
2056 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2057 # It thinks the first close brace ends the variable substitution.
2058 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2059
2060 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2061
2062 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2063
2064 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2065 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2066 # Just in case
2067 sleep 1
2068 echo timestamp > conftest.file
2069 # Do `set' in a subshell so we don't clobber the current shell's
2070 # arguments. Must try -L first in case configure is actually a
2071 # symlink; some systems play weird games with the mod time of symlinks
2072 # (eg FreeBSD returns the mod time of the symlink's containing
2073 # directory).
2074 if (
2075 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2076 if test "$*" = "X"; then
2077 # -L didn't work.
2078 set X `ls -t $srcdir/configure conftest.file`
2079 fi
2080 rm -f conftest.file
2081 if test "$*" != "X $srcdir/configure conftest.file" \
2082 && test "$*" != "X conftest.file $srcdir/configure"; then
2083
2084 # If neither matched, then we have a broken ls. This can happen
2085 # if, for instance, CONFIG_SHELL is bash and it inherits a
2086 # broken ls alias from the environment. This has actually
2087 # happened. Such a system could not be considered "sane".
2088 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2089 alias in your environment" >&5
2090 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2091 alias in your environment" >&2;}
2092 { (exit 1); exit 1; }; }
2093 fi
2094
2095 test "$2" = conftest.file
2096 )
2097 then
2098 # Ok.
2099 :
2100 else
2101 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2102 Check your system clock" >&5
2103 echo "$as_me: error: newly created file is older than distributed files!
2104 Check your system clock" >&2;}
2105 { (exit 1); exit 1; }; }
2106 fi
2107 { echo "$as_me:$LINENO: result: yes" >&5
2108 echo "${ECHO_T}yes" >&6; }
2109 test "$program_prefix" != NONE &&
2110 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2111 # Use a double $ so make ignores it.
2112 test "$program_suffix" != NONE &&
2113 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2114 # Double any \ or $. echo might interpret backslashes.
2115 # By default was `s,x,x', remove it if useless.
2116 cat <<\_ACEOF >conftest.sed
2117 s/[\\$]/&&/g;s/;s,x,x,$//
2118 _ACEOF
2119 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2120 rm -f conftest.sed
2121
2122 # expand $ac_aux_dir to an absolute path
2123 am_aux_dir=`cd $ac_aux_dir && pwd`
2124
2125 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2126 # Use eval to expand $SHELL
2127 if eval "$MISSING --run true"; then
2128 am_missing_run="$MISSING --run "
2129 else
2130 am_missing_run=
2131 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2132 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2133 fi
2134
2135 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2136 # We used to keeping the `.' as first argument, in order to
2137 # allow $(mkdir_p) to be used without argument. As in
2138 # $(mkdir_p) $(somedir)
2139 # where $(somedir) is conditionally defined. However this is wrong
2140 # for two reasons:
2141 # 1. if the package is installed by a user who cannot write `.'
2142 # make install will fail,
2143 # 2. the above comment should most certainly read
2144 # $(mkdir_p) $(DESTDIR)$(somedir)
2145 # so it does not work when $(somedir) is undefined and
2146 # $(DESTDIR) is not.
2147 # To support the latter case, we have to write
2148 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2149 # so the `.' trick is pointless.
2150 mkdir_p='mkdir -p --'
2151 else
2152 # On NextStep and OpenStep, the `mkdir' command does not
2153 # recognize any option. It will interpret all options as
2154 # directories to create, and then abort because `.' already
2155 # exists.
2156 for d in ./-p ./--version;
2157 do
2158 test -d $d && rmdir $d
2159 done
2160 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2161 if test -f "$ac_aux_dir/mkinstalldirs"; then
2162 mkdir_p='$(mkinstalldirs)'
2163 else
2164 mkdir_p='$(install_sh) -d'
2165 fi
2166 fi
2167
2168 for ac_prog in gawk mawk nawk awk
2169 do
2170 # Extract the first word of "$ac_prog", so it can be a program name with args.
2171 set dummy $ac_prog; ac_word=$2
2172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174 if test "${ac_cv_prog_AWK+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177 if test -n "$AWK"; then
2178 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2179 else
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2182 do
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2187 ac_cv_prog_AWK="$ac_prog"
2188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189 break 2
2190 fi
2191 done
2192 done
2193 IFS=$as_save_IFS
2194
2195 fi
2196 fi
2197 AWK=$ac_cv_prog_AWK
2198 if test -n "$AWK"; then
2199 { echo "$as_me:$LINENO: result: $AWK" >&5
2200 echo "${ECHO_T}$AWK" >&6; }
2201 else
2202 { echo "$as_me:$LINENO: result: no" >&5
2203 echo "${ECHO_T}no" >&6; }
2204 fi
2205
2206
2207 test -n "$AWK" && break
2208 done
2209
2210 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2211 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2212 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2213 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216 cat >conftest.make <<\_ACEOF
2217 SHELL = /bin/sh
2218 all:
2219 @echo '@@@%%%=$(MAKE)=@@@%%%'
2220 _ACEOF
2221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2222 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2223 *@@@%%%=?*=@@@%%%*)
2224 eval ac_cv_prog_make_${ac_make}_set=yes;;
2225 *)
2226 eval ac_cv_prog_make_${ac_make}_set=no;;
2227 esac
2228 rm -f conftest.make
2229 fi
2230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2231 { echo "$as_me:$LINENO: result: yes" >&5
2232 echo "${ECHO_T}yes" >&6; }
2233 SET_MAKE=
2234 else
2235 { echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6; }
2237 SET_MAKE="MAKE=${MAKE-make}"
2238 fi
2239
2240 rm -rf .tst 2>/dev/null
2241 mkdir .tst 2>/dev/null
2242 if test -d .tst; then
2243 am__leading_dot=.
2244 else
2245 am__leading_dot=_
2246 fi
2247 rmdir .tst 2>/dev/null
2248
2249 # test to see if srcdir already configured
2250 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2251 test -f $srcdir/config.status; then
2252 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2253 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2254 { (exit 1); exit 1; }; }
2255 fi
2256
2257 # test whether we have cygpath
2258 if test -z "$CYGPATH_W"; then
2259 if (cygpath --version) >/dev/null 2>/dev/null; then
2260 CYGPATH_W='cygpath -w'
2261 else
2262 CYGPATH_W=echo
2263 fi
2264 fi
2265
2266
2267 # Define the identity of the package.
2268 PACKAGE='briquolo'
2269 VERSION='0.5.7'
2270
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE "$PACKAGE"
2274 _ACEOF
2275
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define VERSION "$VERSION"
2279 _ACEOF
2280
2281 # Some tools Automake needs.
2282
2283 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2284
2285
2286 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2287
2288
2289 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2290
2291
2292 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2293
2294
2295 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2296
2297 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2298
2299 # Installed binaries are usually stripped using `strip' when the user
2300 # run `make install-strip'. However `strip' might not be the right
2301 # tool to use in cross-compilation environments, therefore Automake
2302 # will honor the `STRIP' environment variable to overrule this program.
2303 if test "$cross_compiling" != no; then
2304 if test -n "$ac_tool_prefix"; then
2305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2306 set dummy ${ac_tool_prefix}strip; ac_word=$2
2307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2309 if test "${ac_cv_prog_STRIP+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312 if test -n "$STRIP"; then
2313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2317 do
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 break 2
2325 fi
2326 done
2327 done
2328 IFS=$as_save_IFS
2329
2330 fi
2331 fi
2332 STRIP=$ac_cv_prog_STRIP
2333 if test -n "$STRIP"; then
2334 { echo "$as_me:$LINENO: result: $STRIP" >&5
2335 echo "${ECHO_T}$STRIP" >&6; }
2336 else
2337 { echo "$as_me:$LINENO: result: no" >&5
2338 echo "${ECHO_T}no" >&6; }
2339 fi
2340
2341
2342 fi
2343 if test -z "$ac_cv_prog_STRIP"; then
2344 ac_ct_STRIP=$STRIP
2345 # Extract the first word of "strip", so it can be a program name with args.
2346 set dummy strip; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 if test -n "$ac_ct_STRIP"; then
2353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_ac_ct_STRIP="strip"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2365 fi
2366 done
2367 done
2368 IFS=$as_save_IFS
2369
2370 fi
2371 fi
2372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2373 if test -n "$ac_ct_STRIP"; then
2374 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2375 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2376 else
2377 { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2379 fi
2380
2381 if test "x$ac_ct_STRIP" = x; then
2382 STRIP=":"
2383 else
2384 case $cross_compiling:$ac_tool_warned in
2385 yes:)
2386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2387 whose name does not start with the host triplet. If you think this
2388 configuration is useful to you, please write to [email protected]." >&5
2389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2390 whose name does not start with the host triplet. If you think this
2391 configuration is useful to you, please write to [email protected]." >&2;}
2392 ac_tool_warned=yes ;;
2393 esac
2394 STRIP=$ac_ct_STRIP
2395 fi
2396 else
2397 STRIP="$ac_cv_prog_STRIP"
2398 fi
2399
2400 fi
2401 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2402
2403 # We need awk for the "check" target. The system "awk" is bad on
2404 # some platforms.
2405 # Always define AMTAR for backward compatibility.
2406
2407 AMTAR=${AMTAR-"${am_missing_run}tar"}
2408
2409 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2410
2411
2412
2413
2414
2415
2416 # Checks for programs.
2417 ac_ext=cpp
2418 ac_cpp='$CXXCPP $CPPFLAGS'
2419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2422 if test -z "$CXX"; then
2423 if test -n "$CCC"; then
2424 CXX=$CCC
2425 else
2426 if test -n "$ac_tool_prefix"; then
2427 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2428 do
2429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433 if test "${ac_cv_prog_CXX+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436 if test -n "$CXX"; then
2437 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450 done
2451 done
2452 IFS=$as_save_IFS
2453
2454 fi
2455 fi
2456 CXX=$ac_cv_prog_CXX
2457 if test -n "$CXX"; then
2458 { echo "$as_me:$LINENO: result: $CXX" >&5
2459 echo "${ECHO_T}$CXX" >&6; }
2460 else
2461 { echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6; }
2463 fi
2464
2465
2466 test -n "$CXX" && break
2467 done
2468 fi
2469 if test -z "$CXX"; then
2470 ac_ct_CXX=$CXX
2471 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2472 do
2473 # Extract the first word of "$ac_prog", so it can be a program name with args.
2474 set dummy $ac_prog; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480 if test -n "$ac_ct_CXX"; then
2481 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 ac_cv_prog_ac_ct_CXX="$ac_prog"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2501 if test -n "$ac_ct_CXX"; then
2502 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2503 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2504 else
2505 { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2507 fi
2508
2509
2510 test -n "$ac_ct_CXX" && break
2511 done
2512
2513 if test "x$ac_ct_CXX" = x; then
2514 CXX="g++"
2515 else
2516 case $cross_compiling:$ac_tool_warned in
2517 yes:)
2518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2519 whose name does not start with the host triplet. If you think this
2520 configuration is useful to you, please write to [email protected]." >&5
2521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet. If you think this
2523 configuration is useful to you, please write to [email protected]." >&2;}
2524 ac_tool_warned=yes ;;
2525 esac
2526 CXX=$ac_ct_CXX
2527 fi
2528 fi
2529
2530 fi
2531 fi
2532 # Provide some information about the compiler.
2533 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2534 ac_compiler=`set X $ac_compile; echo $2`
2535 { (ac_try="$ac_compiler --version >&5"
2536 case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2539 esac
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_compiler --version >&5") 2>&5
2542 ac_status=$?
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }
2545 { (ac_try="$ac_compiler -v >&5"
2546 case "(($ac_try" in
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2549 esac
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_compiler -v >&5") 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }
2555 { (ac_try="$ac_compiler -V >&5"
2556 case "(($ac_try" in
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2559 esac
2560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2561 (eval "$ac_compiler -V >&5") 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }
2565
2566 cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h. */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2572
2573 int
2574 main ()
2575 {
2576
2577 ;
2578 return 0;
2579 }
2580 _ACEOF
2581 ac_clean_files_save=$ac_clean_files
2582 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2583 # Try to create an executable without -o first, disregard a.out.
2584 # It will help us diagnose broken compilers, and finding out an intuition
2585 # of exeext.
2586 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2587 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2588 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2589 #
2590 # List of possible output files, starting from the most likely.
2591 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2592 # only as a last resort. b.out is created by i960 compilers.
2593 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2594 #
2595 # The IRIX 6 linker writes into existing files which may not be
2596 # executable, retaining their permissions. Remove them first so a
2597 # subsequent execution test works.
2598 ac_rmfiles=
2599 for ac_file in $ac_files
2600 do
2601 case $ac_file in
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2603 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2604 esac
2605 done
2606 rm -f $ac_rmfiles
2607
2608 if { (ac_try="$ac_link_default"
2609 case "(($ac_try" in
2610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611 *) ac_try_echo=$ac_try;;
2612 esac
2613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2614 (eval "$ac_link_default") 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; then
2618 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2619 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2620 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2621 # so that the user can short-circuit this test for compilers unknown to
2622 # Autoconf.
2623 for ac_file in $ac_files ''
2624 do
2625 test -f "$ac_file" || continue
2626 case $ac_file in
2627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2628 ;;
2629 [ab].out )
2630 # We found the default executable, but exeext='' is most
2631 # certainly right.
2632 break;;
2633 *.* )
2634 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2635 then :; else
2636 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2637 fi
2638 # We set ac_cv_exeext here because the later test for it is not
2639 # safe: cross compilers may not add the suffix if given an `-o'
2640 # argument, so we may need to know it at that point already.
2641 # Even if this section looks crufty: it has the advantage of
2642 # actually working.
2643 break;;
2644 * )
2645 break;;
2646 esac
2647 done
2648 test "$ac_cv_exeext" = no && ac_cv_exeext=
2649
2650 else
2651 ac_file=''
2652 fi
2653
2654 { echo "$as_me:$LINENO: result: $ac_file" >&5
2655 echo "${ECHO_T}$ac_file" >&6; }
2656 if test -z "$ac_file"; then
2657 echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2659
2660 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2661 See \`config.log' for more details." >&5
2662 echo "$as_me: error: C++ compiler cannot create executables
2663 See \`config.log' for more details." >&2;}
2664 { (exit 77); exit 77; }; }
2665 fi
2666
2667 ac_exeext=$ac_cv_exeext
2668
2669 # Check that the compiler produces executables we can run. If not, either
2670 # the compiler is broken, or we cross compile.
2671 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2672 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2673 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2674 # If not cross compiling, check that we can run a simple program.
2675 if test "$cross_compiling" != yes; then
2676 if { ac_try='./$ac_file'
2677 { (case "(($ac_try" in
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2680 esac
2681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682 (eval "$ac_try") 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; }; then
2686 cross_compiling=no
2687 else
2688 if test "$cross_compiling" = maybe; then
2689 cross_compiling=yes
2690 else
2691 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2692 If you meant to cross compile, use \`--host'.
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: cannot run C++ compiled programs.
2695 If you meant to cross compile, use \`--host'.
2696 See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
2698 fi
2699 fi
2700 fi
2701 { echo "$as_me:$LINENO: result: yes" >&5
2702 echo "${ECHO_T}yes" >&6; }
2703
2704 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2705 ac_clean_files=$ac_clean_files_save
2706 # Check that the compiler produces executables we can run. If not, either
2707 # the compiler is broken, or we cross compile.
2708 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2709 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2710 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2711 echo "${ECHO_T}$cross_compiling" >&6; }
2712
2713 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2714 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2715 if { (ac_try="$ac_link"
2716 case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_link") 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; then
2725 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2726 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2727 # work properly (i.e., refer to `conftest.exe'), while it won't with
2728 # `rm'.
2729 for ac_file in conftest.exe conftest conftest.*; do
2730 test -f "$ac_file" || continue
2731 case $ac_file in
2732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2733 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2734 break;;
2735 * ) break;;
2736 esac
2737 done
2738 else
2739 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2740 See \`config.log' for more details." >&5
2741 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2742 See \`config.log' for more details." >&2;}
2743 { (exit 1); exit 1; }; }
2744 fi
2745
2746 rm -f conftest$ac_cv_exeext
2747 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2748 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2749
2750 rm -f conftest.$ac_ext
2751 EXEEXT=$ac_cv_exeext
2752 ac_exeext=$EXEEXT
2753 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2754 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2755 if test "${ac_cv_objext+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758 cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h. */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2764
2765 int
2766 main ()
2767 {
2768
2769 ;
2770 return 0;
2771 }
2772 _ACEOF
2773 rm -f conftest.o conftest.obj
2774 if { (ac_try="$ac_compile"
2775 case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; then
2784 for ac_file in conftest.o conftest.obj conftest.*; do
2785 test -f "$ac_file" || continue;
2786 case $ac_file in
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2788 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2789 break;;
2790 esac
2791 done
2792 else
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2797 See \`config.log' for more details." >&5
2798 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2799 See \`config.log' for more details." >&2;}
2800 { (exit 1); exit 1; }; }
2801 fi
2802
2803 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2804 fi
2805 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2806 echo "${ECHO_T}$ac_cv_objext" >&6; }
2807 OBJEXT=$ac_cv_objext
2808 ac_objext=$OBJEXT
2809 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2810 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2811 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 else
2814 cat >conftest.$ac_ext <<_ACEOF
2815 /* confdefs.h. */
2816 _ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2820
2821 int
2822 main ()
2823 {
2824 #ifndef __GNUC__
2825 choke me
2826 #endif
2827
2828 ;
2829 return 0;
2830 }
2831 _ACEOF
2832 rm -f conftest.$ac_objext
2833 if { (ac_try="$ac_compile"
2834 case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837 esac
2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_compile") 2>conftest.er1
2840 ac_status=$?
2841 grep -v '^ *+' conftest.er1 >conftest.err
2842 rm -f conftest.er1
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } && {
2846 test -z "$ac_cxx_werror_flag" ||
2847 test ! -s conftest.err
2848 } && test -s conftest.$ac_objext; then
2849 ac_compiler_gnu=yes
2850 else
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854 ac_compiler_gnu=no
2855 fi
2856
2857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2859
2860 fi
2861 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2862 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2863 GXX=`test $ac_compiler_gnu = yes && echo yes`
2864 ac_test_CXXFLAGS=${CXXFLAGS+set}
2865 ac_save_CXXFLAGS=$CXXFLAGS
2866 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2867 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2868 if test "${ac_cv_prog_cxx_g+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2872 ac_cxx_werror_flag=yes
2873 ac_cv_prog_cxx_g=no
2874 CXXFLAGS="-g"
2875 cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h. */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2881
2882 int
2883 main ()
2884 {
2885
2886 ;
2887 return 0;
2888 }
2889 _ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (ac_try="$ac_compile"
2892 case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compile") 2>conftest.er1
2898 ac_status=$?
2899 grep -v '^ *+' conftest.er1 >conftest.err
2900 rm -f conftest.er1
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } && {
2904 test -z "$ac_cxx_werror_flag" ||
2905 test ! -s conftest.err
2906 } && test -s conftest.$ac_objext; then
2907 ac_cv_prog_cxx_g=yes
2908 else
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 CXXFLAGS=""
2913 cat >conftest.$ac_ext <<_ACEOF
2914 /* confdefs.h. */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2919
2920 int
2921 main ()
2922 {
2923
2924 ;
2925 return 0;
2926 }
2927 _ACEOF
2928 rm -f conftest.$ac_objext
2929 if { (ac_try="$ac_compile"
2930 case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } && {
2942 test -z "$ac_cxx_werror_flag" ||
2943 test ! -s conftest.err
2944 } && test -s conftest.$ac_objext; then
2945 :
2946 else
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2949
2950 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2951 CXXFLAGS="-g"
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
2963 ;
2964 return 0;
2965 }
2966 _ACEOF
2967 rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2969 case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compile") 2>conftest.er1
2975 ac_status=$?
2976 grep -v '^ *+' conftest.er1 >conftest.err
2977 rm -f conftest.er1
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } && {
2981 test -z "$ac_cxx_werror_flag" ||
2982 test ! -s conftest.err
2983 } && test -s conftest.$ac_objext; then
2984 ac_cv_prog_cxx_g=yes
2985 else
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2988
2989
2990 fi
2991
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 fi
2994
2995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996 fi
2997
2998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3000 fi
3001 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3002 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3003 if test "$ac_test_CXXFLAGS" = set; then
3004 CXXFLAGS=$ac_save_CXXFLAGS
3005 elif test $ac_cv_prog_cxx_g = yes; then
3006 if test "$GXX" = yes; then
3007 CXXFLAGS="-g -O2"
3008 else
3009 CXXFLAGS="-g"
3010 fi
3011 else
3012 if test "$GXX" = yes; then
3013 CXXFLAGS="-O2"
3014 else
3015 CXXFLAGS=
3016 fi
3017 fi
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 DEPDIR="${am__leading_dot}deps"
3024
3025 ac_config_commands="$ac_config_commands depfiles"
3026
3027
3028 am_make=${MAKE-make}
3029 cat > confinc << 'END'
3030 am__doit:
3031 @echo done
3032 .PHONY: am__doit
3033 END
3034 # If we don't find an include directive, just comment out the code.
3035 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3036 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3037 am__include="#"
3038 am__quote=
3039 _am_result=none
3040 # First try GNU make style include.
3041 echo "include confinc" > confmf
3042 # We grep out `Entering directory' and `Leaving directory'
3043 # messages which can occur if `w' ends up in MAKEFLAGS.
3044 # In particular we don't look at `^make:' because GNU make might
3045 # be invoked under some other name (usually "gmake"), in which
3046 # case it prints its new name instead of `make'.
3047 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3048 am__include=include
3049 am__quote=
3050 _am_result=GNU
3051 fi
3052 # Now try BSD make style include.
3053 if test "$am__include" = "#"; then
3054 echo '.include "confinc"' > confmf
3055 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3056 am__include=.include
3057 am__quote="\""
3058 _am_result=BSD
3059 fi
3060 fi
3061
3062
3063 { echo "$as_me:$LINENO: result: $_am_result" >&5
3064 echo "${ECHO_T}$_am_result" >&6; }
3065 rm -f confinc confmf
3066
3067 # Check whether --enable-dependency-tracking was given.
3068 if test "${enable_dependency_tracking+set}" = set; then
3069 enableval=$enable_dependency_tracking;
3070 fi
3071
3072 if test "x$enable_dependency_tracking" != xno; then
3073 am_depcomp="$ac_aux_dir/depcomp"
3074 AMDEPBACKSLASH='\'
3075 fi
3076
3077
3078 if test "x$enable_dependency_tracking" != xno; then
3079 AMDEP_TRUE=
3080 AMDEP_FALSE='#'
3081 else
3082 AMDEP_TRUE='#'
3083 AMDEP_FALSE=
3084 fi
3085
3086
3087
3088
3089 depcc="$CXX" am_compiler_list=
3090
3091 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3092 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3093 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3097 # We make a subdir and do the tests there. Otherwise we can end up
3098 # making bogus files that we don't know about and never remove. For
3099 # instance it was reported that on HP-UX the gcc test will end up
3100 # making a dummy file named `D' -- because `-MD' means `put the output
3101 # in D'.
3102 mkdir conftest.dir
3103 # Copy depcomp to subdir because otherwise we won't find it if we're
3104 # using a relative directory.
3105 cp "$am_depcomp" conftest.dir
3106 cd conftest.dir
3107 # We will build objects and dependencies in a subdirectory because
3108 # it helps to detect inapplicable dependency modes. For instance
3109 # both Tru64's cc and ICC support -MD to output dependencies as a
3110 # side effect of compilation, but ICC will put the dependencies in
3111 # the current directory while Tru64 will put them in the object
3112 # directory.
3113 mkdir sub
3114
3115 am_cv_CXX_dependencies_compiler_type=none
3116 if test "$am_compiler_list" = ""; then
3117 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3118 fi
3119 for depmode in $am_compiler_list; do
3120 # Setup a source with many dependencies, because some compilers
3121 # like to wrap large dependency lists on column 80 (with \), and
3122 # we should not choose a depcomp mode which is confused by this.
3123 #
3124 # We need to recreate these files for each test, as the compiler may
3125 # overwrite some of them when testing with obscure command lines.
3126 # This happens at least with the AIX C compiler.
3127 : > sub/conftest.c
3128 for i in 1 2 3 4 5 6; do
3129 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3130 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3131 # Solaris 8's {/usr,}/bin/sh.
3132 touch sub/conftst$i.h
3133 done
3134 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3135
3136 case $depmode in
3137 nosideeffect)
3138 # after this tag, mechanisms are not by side-effect, so they'll
3139 # only be used when explicitly requested
3140 if test "x$enable_dependency_tracking" = xyes; then
3141 continue
3142 else
3143 break
3144 fi
3145 ;;
3146 none) break ;;
3147 esac
3148 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3149 # mode. It turns out that the SunPro C++ compiler does not properly
3150 # handle `-M -o', and we need to detect this.
3151 if depmode=$depmode \
3152 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3153 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3154 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3155 >/dev/null 2>conftest.err &&
3156 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3157 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3158 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3159 # icc doesn't choke on unknown options, it will just issue warnings
3160 # or remarks (even with -Werror). So we grep stderr for any message
3161 # that says an option was ignored or not supported.
3162 # When given -MP, icc 7.0 and 7.1 complain thusly:
3163 # icc: Command line warning: ignoring option '-M'; no argument required
3164 # The diagnosis changed in icc 8.0:
3165 # icc: Command line remark: option '-MP' not supported
3166 if (grep 'ignoring option' conftest.err ||
3167 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3168 am_cv_CXX_dependencies_compiler_type=$depmode
3169 break
3170 fi
3171 fi
3172 done
3173
3174 cd ..
3175 rm -rf conftest.dir
3176 else
3177 am_cv_CXX_dependencies_compiler_type=none
3178 fi
3179
3180 fi
3181 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3182 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3183 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3184
3185
3186
3187 if
3188 test "x$enable_dependency_tracking" != xno \
3189 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3190 am__fastdepCXX_TRUE=
3191 am__fastdepCXX_FALSE='#'
3192 else
3193 am__fastdepCXX_TRUE='#'
3194 am__fastdepCXX_FALSE=
3195 fi
3196
3197
3198 ac_ext=c
3199 ac_cpp='$CPP $CPPFLAGS'
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203 if test -n "$ac_tool_prefix"; then
3204 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3205 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3208 if test "${ac_cv_prog_CC+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211 if test -n "$CC"; then
3212 ac_cv_prog_CC="$CC" # Let the user override the test.
3213 else
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH
3216 do
3217 IFS=$as_save_IFS
3218 test -z "$as_dir" && as_dir=.
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3221 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 break 2
3224 fi
3225 done
3226 done
3227 IFS=$as_save_IFS
3228
3229 fi
3230 fi
3231 CC=$ac_cv_prog_CC
3232 if test -n "$CC"; then
3233 { echo "$as_me:$LINENO: result: $CC" >&5
3234 echo "${ECHO_T}$CC" >&6; }
3235 else
3236 { echo "$as_me:$LINENO: result: no" >&5
3237 echo "${ECHO_T}no" >&6; }
3238 fi
3239
3240
3241 fi
3242 if test -z "$ac_cv_prog_CC"; then
3243 ac_ct_CC=$CC
3244 # Extract the first word of "gcc", so it can be a program name with args.
3245 set dummy gcc; ac_word=$2
3246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3248 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 if test -n "$ac_ct_CC"; then
3252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_ac_ct_CC="gcc"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3264 fi
3265 done
3266 done
3267 IFS=$as_save_IFS
3268
3269 fi
3270 fi
3271 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3272 if test -n "$ac_ct_CC"; then
3273 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3274 echo "${ECHO_T}$ac_ct_CC" >&6; }
3275 else
3276 { echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6; }
3278 fi
3279
3280 if test "x$ac_ct_CC" = x; then
3281 CC=""
3282 else
3283 case $cross_compiling:$ac_tool_warned in
3284 yes:)
3285 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3286 whose name does not start with the host triplet. If you think this
3287 configuration is useful to you, please write to [email protected]." >&5
3288 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3289 whose name does not start with the host triplet. If you think this
3290 configuration is useful to you, please write to [email protected]." >&2;}
3291 ac_tool_warned=yes ;;
3292 esac
3293 CC=$ac_ct_CC
3294 fi
3295 else
3296 CC="$ac_cv_prog_CC"
3297 fi
3298
3299 if test -z "$CC"; then
3300 if test -n "$ac_tool_prefix"; then
3301 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3302 set dummy ${ac_tool_prefix}cc; ac_word=$2
3303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3305 if test "${ac_cv_prog_CC+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC="$CC" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3313 do
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_CC="${ac_tool_prefix}cc"
3319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3321 fi
3322 done
3323 done
3324 IFS=$as_save_IFS
3325
3326 fi
3327 fi
3328 CC=$ac_cv_prog_CC
3329 if test -n "$CC"; then
3330 { echo "$as_me:$LINENO: result: $CC" >&5
3331 echo "${ECHO_T}$CC" >&6; }
3332 else
3333 { echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6; }
3335 fi
3336
3337
3338 fi
3339 fi
3340 if test -z "$CC"; then
3341 # Extract the first word of "cc", so it can be a program name with args.
3342 set dummy cc; ac_word=$2
3343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3345 if test "${ac_cv_prog_CC+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
3350 else
3351 ac_prog_rejected=no
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3360 ac_prog_rejected=yes
3361 continue
3362 fi
3363 ac_cv_prog_CC="cc"
3364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 break 2
3366 fi
3367 done
3368 done
3369 IFS=$as_save_IFS
3370
3371 if test $ac_prog_rejected = yes; then
3372 # We found a bogon in the path, so make sure we never use it.
3373 set dummy $ac_cv_prog_CC
3374 shift
3375 if test $# != 0; then
3376 # We chose a different compiler from the bogus one.
3377 # However, it has the same basename, so the bogon will be chosen
3378 # first if we set CC to just the basename; use the full file name.
3379 shift
3380 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3381 fi
3382 fi
3383 fi
3384 fi
3385 CC=$ac_cv_prog_CC
3386 if test -n "$CC"; then
3387 { echo "$as_me:$LINENO: result: $CC" >&5
3388 echo "${ECHO_T}$CC" >&6; }
3389 else
3390 { echo "$as_me:$LINENO: result: no" >&5
3391 echo "${ECHO_T}no" >&6; }
3392 fi
3393
3394
3395 fi
3396 if test -z "$CC"; then
3397 if test -n "$ac_tool_prefix"; then
3398 for ac_prog in cl.exe
3399 do
3400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3404 if test "${ac_cv_prog_CC+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 else
3407 if test -n "$CC"; then
3408 ac_cv_prog_CC="$CC" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3412 do
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 2
3420 fi
3421 done
3422 done
3423 IFS=$as_save_IFS
3424
3425 fi
3426 fi
3427 CC=$ac_cv_prog_CC
3428 if test -n "$CC"; then
3429 { echo "$as_me:$LINENO: result: $CC" >&5
3430 echo "${ECHO_T}$CC" >&6; }
3431 else
3432 { echo "$as_me:$LINENO: result: no" >&5
3433 echo "${ECHO_T}no" >&6; }
3434 fi
3435
3436
3437 test -n "$CC" && break
3438 done
3439 fi
3440 if test -z "$CC"; then
3441 ac_ct_CC=$CC
3442 for ac_prog in cl.exe
3443 do
3444 # Extract the first word of "$ac_prog", so it can be a program name with args.
3445 set dummy $ac_prog; ac_word=$2
3446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3448 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451 if test -n "$ac_ct_CC"; then
3452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3453 else
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 for as_dir in $PATH
3456 do
3457 IFS=$as_save_IFS
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3461 ac_cv_prog_ac_ct_CC="$ac_prog"
3462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 break 2
3464 fi
3465 done
3466 done
3467 IFS=$as_save_IFS
3468
3469 fi
3470 fi
3471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472 if test -n "$ac_ct_CC"; then
3473 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3474 echo "${ECHO_T}$ac_ct_CC" >&6; }
3475 else
3476 { echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6; }
3478 fi
3479
3480
3481 test -n "$ac_ct_CC" && break
3482 done
3483
3484 if test "x$ac_ct_CC" = x; then
3485 CC=""
3486 else
3487 case $cross_compiling:$ac_tool_warned in
3488 yes:)
3489 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3490 whose name does not start with the host triplet. If you think this
3491 configuration is useful to you, please write to [email protected]." >&5
3492 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3493 whose name does not start with the host triplet. If you think this
3494 configuration is useful to you, please write to [email protected]." >&2;}
3495 ac_tool_warned=yes ;;
3496 esac
3497 CC=$ac_ct_CC
3498 fi
3499 fi
3500
3501 fi
3502
3503
3504 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3505 See \`config.log' for more details." >&5
3506 echo "$as_me: error: no acceptable C compiler found in \$PATH
3507 See \`config.log' for more details." >&2;}
3508 { (exit 1); exit 1; }; }
3509
3510 # Provide some information about the compiler.
3511 echo "$as_me:$LINENO: checking for C compiler version" >&5
3512 ac_compiler=`set X $ac_compile; echo $2`
3513 { (ac_try="$ac_compiler --version >&5"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519 (eval "$ac_compiler --version >&5") 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }
3523 { (ac_try="$ac_compiler -v >&5"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_compiler -v >&5") 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }
3533 { (ac_try="$ac_compiler -V >&5"
3534 case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_compiler -V >&5") 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }
3543
3544 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3545 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3546 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555
3556 int
3557 main ()
3558 {
3559 #ifndef __GNUC__
3560 choke me
3561 #endif
3562
3563 ;
3564 return 0;
3565 }
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (ac_try="$ac_compile"
3569 case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_compile") 2>conftest.er1
3575 ac_status=$?
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } && {
3581 test -z "$ac_c_werror_flag" ||
3582 test ! -s conftest.err
3583 } && test -s conftest.$ac_objext; then
3584 ac_compiler_gnu=yes
3585 else
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3588
3589 ac_compiler_gnu=no
3590 fi
3591
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3594
3595 fi
3596 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3597 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3598 GCC=`test $ac_compiler_gnu = yes && echo yes`
3599 ac_test_CFLAGS=${CFLAGS+set}
3600 ac_save_CFLAGS=$CFLAGS
3601 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3602 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3603 if test "${ac_cv_prog_cc_g+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 ac_save_c_werror_flag=$ac_c_werror_flag
3607 ac_c_werror_flag=yes
3608 ac_cv_prog_cc_g=no
3609 CFLAGS="-g"
3610 cat >conftest.$ac_ext <<_ACEOF
3611 /* confdefs.h. */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3616
3617 int
3618 main ()
3619 {
3620
3621 ;
3622 return 0;
3623 }
3624 _ACEOF
3625 rm -f conftest.$ac_objext
3626 if { (ac_try="$ac_compile"
3627 case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_compile") 2>conftest.er1
3633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } && {
3639 test -z "$ac_c_werror_flag" ||
3640 test ! -s conftest.err
3641 } && test -s conftest.$ac_objext; then
3642 ac_cv_prog_cc_g=yes
3643 else
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3646
3647 CFLAGS=""
3648 cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h. */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3654
3655 int
3656 main ()
3657 {
3658
3659 ;
3660 return 0;
3661 }
3662 _ACEOF
3663 rm -f conftest.$ac_objext
3664 if { (ac_try="$ac_compile"
3665 case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_compile") 2>conftest.er1
3671 ac_status=$?
3672 grep -v '^ *+' conftest.er1 >conftest.err
3673 rm -f conftest.er1
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } && {
3677 test -z "$ac_c_werror_flag" ||
3678 test ! -s conftest.err
3679 } && test -s conftest.$ac_objext; then
3680 :
3681 else
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 ac_c_werror_flag=$ac_save_c_werror_flag
3686 CFLAGS="-g"
3687 cat >conftest.$ac_ext <<_ACEOF
3688 /* confdefs.h. */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3693
3694 int
3695 main ()
3696 {
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
3704 case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707 esac
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709 (eval "$ac_compile") 2>conftest.er1
3710 ac_status=$?
3711 grep -v '^ *+' conftest.er1 >conftest.err
3712 rm -f conftest.er1
3713 cat conftest.err >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } && {
3716 test -z "$ac_c_werror_flag" ||
3717 test ! -s conftest.err
3718 } && test -s conftest.$ac_objext; then
3719 ac_cv_prog_cc_g=yes
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724
3725 fi
3726
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 fi
3729
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731 fi
3732
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 ac_c_werror_flag=$ac_save_c_werror_flag
3735 fi
3736 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3737 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3738 if test "$ac_test_CFLAGS" = set; then
3739 CFLAGS=$ac_save_CFLAGS
3740 elif test $ac_cv_prog_cc_g = yes; then
3741 if test "$GCC" = yes; then
3742 CFLAGS="-g -O2"
3743 else
3744 CFLAGS="-g"
3745 fi
3746 else
3747 if test "$GCC" = yes; then
3748 CFLAGS="-O2"
3749 else
3750 CFLAGS=
3751 fi
3752 fi
3753 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3754 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3755 if test "${ac_cv_prog_cc_c89+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758 ac_cv_prog_cc_c89=no
3759 ac_save_CC=$CC
3760 cat >conftest.$ac_ext <<_ACEOF
3761 /* confdefs.h. */
3762 _ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3766 #include <stdarg.h>
3767 #include <stdio.h>
3768 #include <sys/types.h>
3769 #include <sys/stat.h>
3770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3771 struct buf { int x; };
3772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3773 static char *e (p, i)
3774 char **p;
3775 int i;
3776 {
3777 return p[i];
3778 }
3779 static char *f (char * (*g) (char **, int), char **p, ...)
3780 {
3781 char *s;
3782 va_list v;
3783 va_start (v,p);
3784 s = g (p, va_arg (v,int));
3785 va_end (v);
3786 return s;
3787 }
3788
3789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3790 function prototypes and stuff, but not '\xHH' hex character constants.
3791 These don't provoke an error unfortunately, instead are silently treated
3792 as 'x'. The following induces an error, until -std is added to get
3793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3794 array size at least. It's necessary to write '\x00'==0 to get something
3795 that's true only with -std. */
3796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3797
3798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3799 inside strings and character constants. */
3800 #define FOO(x) 'x'
3801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3802
3803 int test (int i, double x);
3804 struct s1 {int (*f) (int a);};
3805 struct s2 {int (*f) (double a);};
3806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3807 int argc;
3808 char **argv;
3809 int
3810 main ()
3811 {
3812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3813 ;
3814 return 0;
3815 }
3816 _ACEOF
3817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3819 do
3820 CC="$ac_save_CC $ac_arg"
3821 rm -f conftest.$ac_objext
3822 if { (ac_try="$ac_compile"
3823 case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3826 esac
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_compile") 2>conftest.er1
3829 ac_status=$?
3830 grep -v '^ *+' conftest.er1 >conftest.err
3831 rm -f conftest.er1
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } && {
3835 test -z "$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3837 } && test -s conftest.$ac_objext; then
3838 ac_cv_prog_cc_c89=$ac_arg
3839 else
3840 echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843
3844 fi
3845
3846 rm -f core conftest.err conftest.$ac_objext
3847 test "x$ac_cv_prog_cc_c89" != "xno" && break
3848 done
3849 rm -f conftest.$ac_ext
3850 CC=$ac_save_CC
3851
3852 fi
3853 # AC_CACHE_VAL
3854 case "x$ac_cv_prog_cc_c89" in
3855 x)
3856 { echo "$as_me:$LINENO: result: none needed" >&5
3857 echo "${ECHO_T}none needed" >&6; } ;;
3858 xno)
3859 { echo "$as_me:$LINENO: result: unsupported" >&5
3860 echo "${ECHO_T}unsupported" >&6; } ;;
3861 *)
3862 CC="$CC $ac_cv_prog_cc_c89"
3863 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3864 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3865 esac
3866
3867
3868 ac_ext=c
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873
3874 depcc="$CC" am_compiler_list=
3875
3876 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3877 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3878 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3882 # We make a subdir and do the tests there. Otherwise we can end up
3883 # making bogus files that we don't know about and never remove. For
3884 # instance it was reported that on HP-UX the gcc test will end up
3885 # making a dummy file named `D' -- because `-MD' means `put the output
3886 # in D'.
3887 mkdir conftest.dir
3888 # Copy depcomp to subdir because otherwise we won't find it if we're
3889 # using a relative directory.
3890 cp "$am_depcomp" conftest.dir
3891 cd conftest.dir
3892 # We will build objects and dependencies in a subdirectory because
3893 # it helps to detect inapplicable dependency modes. For instance
3894 # both Tru64's cc and ICC support -MD to output dependencies as a
3895 # side effect of compilation, but ICC will put the dependencies in
3896 # the current directory while Tru64 will put them in the object
3897 # directory.
3898 mkdir sub
3899
3900 am_cv_CC_dependencies_compiler_type=none
3901 if test "$am_compiler_list" = ""; then
3902 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3903 fi
3904 for depmode in $am_compiler_list; do
3905 # Setup a source with many dependencies, because some compilers
3906 # like to wrap large dependency lists on column 80 (with \), and
3907 # we should not choose a depcomp mode which is confused by this.
3908 #
3909 # We need to recreate these files for each test, as the compiler may
3910 # overwrite some of them when testing with obscure command lines.
3911 # This happens at least with the AIX C compiler.
3912 : > sub/conftest.c
3913 for i in 1 2 3 4 5 6; do
3914 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3915 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3916 # Solaris 8's {/usr,}/bin/sh.
3917 touch sub/conftst$i.h
3918 done
3919 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3920
3921 case $depmode in
3922 nosideeffect)
3923 # after this tag, mechanisms are not by side-effect, so they'll
3924 # only be used when explicitly requested
3925 if test "x$enable_dependency_tracking" = xyes; then
3926 continue
3927 else
3928 break
3929 fi
3930 ;;
3931 none) break ;;
3932 esac
3933 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3934 # mode. It turns out that the SunPro C++ compiler does not properly
3935 # handle `-M -o', and we need to detect this.
3936 if depmode=$depmode \
3937 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3938 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3939 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3940 >/dev/null 2>conftest.err &&
3941 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3942 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3943 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3944 # icc doesn't choke on unknown options, it will just issue warnings
3945 # or remarks (even with -Werror). So we grep stderr for any message
3946 # that says an option was ignored or not supported.
3947 # When given -MP, icc 7.0 and 7.1 complain thusly:
3948 # icc: Command line warning: ignoring option '-M'; no argument required
3949 # The diagnosis changed in icc 8.0:
3950 # icc: Command line remark: option '-MP' not supported
3951 if (grep 'ignoring option' conftest.err ||
3952 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3953 am_cv_CC_dependencies_compiler_type=$depmode
3954 break
3955 fi
3956 fi
3957 done
3958
3959 cd ..
3960 rm -rf conftest.dir
3961 else
3962 am_cv_CC_dependencies_compiler_type=none
3963 fi
3964
3965 fi
3966 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3967 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3968 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3969
3970
3971
3972 if
3973 test "x$enable_dependency_tracking" != xno \
3974 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3975 am__fastdepCC_TRUE=
3976 am__fastdepCC_FALSE='#'
3977 else
3978 am__fastdepCC_TRUE='#'
3979 am__fastdepCC_FALSE=
3980 fi
3981
3982
3983 # Find a good install program. We prefer a C program (faster),
3984 # so one script is as good as another. But avoid the broken or
3985 # incompatible versions:
3986 # SysV /etc/install, /usr/sbin/install
3987 # SunOS /usr/etc/install
3988 # IRIX /sbin/install
3989 # AIX /bin/install
3990 # AmigaOS /C/install, which installs bootblocks on floppy discs
3991 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3992 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3993 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3994 # OS/2's system install, which has a completely different semantic
3995 # ./install, which can be erroneously created by make from ./install.sh.
3996 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3997 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3998 if test -z "$INSTALL"; then
3999 if test "${ac_cv_path_install+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 # Account for people who put trailing slashes in PATH elements.
4008 case $as_dir/ in
4009 ./ | .// | /cC/* | \
4010 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4011 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4012 /usr/ucb/* ) ;;
4013 *)
4014 # OSF1 and SCO ODT 3.0 have their own names for install.
4015 # Don't use installbsd from OSF since it installs stuff as root
4016 # by default.
4017 for ac_prog in ginstall scoinst install; do
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4020 if test $ac_prog = install &&
4021 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4022 # AIX install. It has an incompatible calling convention.
4023 :
4024 elif test $ac_prog = install &&
4025 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4026 # program-specific install script used by HP pwplus--don't use.
4027 :
4028 else
4029 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4030 break 3
4031 fi
4032 fi
4033 done
4034 done
4035 ;;
4036 esac
4037 done
4038 IFS=$as_save_IFS
4039
4040
4041 fi
4042 if test "${ac_cv_path_install+set}" = set; then
4043 INSTALL=$ac_cv_path_install
4044 else
4045 # As a last resort, use the slow shell script. Don't cache a
4046 # value for INSTALL within a source directory, because that will
4047 # break other packages using the cache if that directory is
4048 # removed, or if the value is a relative name.
4049 INSTALL=$ac_install_sh
4050 fi
4051 fi
4052 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4053 echo "${ECHO_T}$INSTALL" >&6; }
4054
4055 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4056 # It thinks the first close brace ends the variable substitution.
4057 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4058
4059 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4060
4061 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4062
4063 if test -n "$ac_tool_prefix"; then
4064 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4065 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4068 if test "${ac_cv_prog_RANLIB+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 if test -n "$RANLIB"; then
4072 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4073 else
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4076 do
4077 IFS=$as_save_IFS
4078 test -z "$as_dir" && as_dir=.
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4081 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4083 break 2
4084 fi
4085 done
4086 done
4087 IFS=$as_save_IFS
4088
4089 fi
4090 fi
4091 RANLIB=$ac_cv_prog_RANLIB
4092 if test -n "$RANLIB"; then
4093 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4094 echo "${ECHO_T}$RANLIB" >&6; }
4095 else
4096 { echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6; }
4098 fi
4099
4100
4101 fi
4102 if test -z "$ac_cv_prog_RANLIB"; then
4103 ac_ct_RANLIB=$RANLIB
4104 # Extract the first word of "ranlib", so it can be a program name with args.
4105 set dummy ranlib; ac_word=$2
4106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4108 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 if test -n "$ac_ct_RANLIB"; then
4112 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4116 do
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121 ac_cv_prog_ac_ct_RANLIB="ranlib"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 break 2
4124 fi
4125 done
4126 done
4127 IFS=$as_save_IFS
4128
4129 fi
4130 fi
4131 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4132 if test -n "$ac_ct_RANLIB"; then
4133 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4134 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4135 else
4136 { echo "$as_me:$LINENO: result: no" >&5
4137 echo "${ECHO_T}no" >&6; }
4138 fi
4139
4140 if test "x$ac_ct_RANLIB" = x; then
4141 RANLIB=":"
4142 else
4143 case $cross_compiling:$ac_tool_warned in
4144 yes:)
4145 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4146 whose name does not start with the host triplet. If you think this
4147 configuration is useful to you, please write to [email protected]." >&5
4148 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4149 whose name does not start with the host triplet. If you think this
4150 configuration is useful to you, please write to [email protected]." >&2;}
4151 ac_tool_warned=yes ;;
4152 esac
4153 RANLIB=$ac_ct_RANLIB
4154 fi
4155 else
4156 RANLIB="$ac_cv_prog_RANLIB"
4157 fi
4158
4159 for ac_prog in 'bison -y' byacc
4160 do
4161 # Extract the first word of "$ac_prog", so it can be a program name with args.
4162 set dummy $ac_prog; ac_word=$2
4163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4165 if test "${ac_cv_prog_YACC+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168 if test -n "$YACC"; then
4169 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4173 do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4178 ac_cv_prog_YACC="$ac_prog"
4179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182 done
4183 done
4184 IFS=$as_save_IFS
4185
4186 fi
4187 fi
4188 YACC=$ac_cv_prog_YACC
4189 if test -n "$YACC"; then
4190 { echo "$as_me:$LINENO: result: $YACC" >&5
4191 echo "${ECHO_T}$YACC" >&6; }
4192 else
4193 { echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6; }
4195 fi
4196
4197
4198 test -n "$YACC" && break
4199 done
4200 test -n "$YACC" || YACC="yacc"
4201
4202
4203 # Checks for header files.
4204
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4211 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4212 # On Suns, sometimes $CPP names a directory.
4213 if test -n "$CPP" && test -d "$CPP"; then
4214 CPP=
4215 fi
4216 if test -z "$CPP"; then
4217 if test "${ac_cv_prog_CPP+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220 # Double quotes because CPP needs to be expanded
4221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4222 do
4223 ac_preproc_ok=false
4224 for ac_c_preproc_warn_flag in '' yes
4225 do
4226 # Use a header file that comes with gcc, so configuring glibc
4227 # with a fresh cross-compiler works.
4228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229 # <limits.h> exists even on freestanding compilers.
4230 # On the NeXT, cc -E runs the code through the compiler's parser,
4231 # not just through cpp. "Syntax error" is here to catch this case.
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 #ifdef __STDC__
4239 # include <limits.h>
4240 #else
4241 # include <assert.h>
4242 #endif
4243 Syntax error
4244 _ACEOF
4245 if { (ac_try="$ac_cpp conftest.$ac_ext"
4246 case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249 esac
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4252 ac_status=$?
4253 grep -v '^ *+' conftest.er1 >conftest.err
4254 rm -f conftest.er1
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } >/dev/null && {
4258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4259 test ! -s conftest.err
4260 }; then
4261 :
4262 else
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4265
4266 # Broken: fails on valid input.
4267 continue
4268 fi
4269
4270 rm -f conftest.err conftest.$ac_ext
4271
4272 # OK, works on sane cases. Now check whether nonexistent headers
4273 # can be detected and how.
4274 cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h. */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4280 #include <ac_nonexistent.h>
4281 _ACEOF
4282 if { (ac_try="$ac_cpp conftest.$ac_ext"
4283 case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } >/dev/null && {
4295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4296 test ! -s conftest.err
4297 }; then
4298 # Broken: success on invalid input.
4299 continue
4300 else
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4303
4304 # Passes both tests.
4305 ac_preproc_ok=:
4306 break
4307 fi
4308
4309 rm -f conftest.err conftest.$ac_ext
4310
4311 done
4312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4313 rm -f conftest.err conftest.$ac_ext
4314 if $ac_preproc_ok; then
4315 break
4316 fi
4317
4318 done
4319 ac_cv_prog_CPP=$CPP
4320
4321 fi
4322 CPP=$ac_cv_prog_CPP
4323 else
4324 ac_cv_prog_CPP=$CPP
4325 fi
4326 { echo "$as_me:$LINENO: result: $CPP" >&5
4327 echo "${ECHO_T}$CPP" >&6; }
4328 ac_preproc_ok=false
4329 for ac_c_preproc_warn_flag in '' yes
4330 do
4331 # Use a header file that comes with gcc, so configuring glibc
4332 # with a fresh cross-compiler works.
4333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4334 # <limits.h> exists even on freestanding compilers.
4335 # On the NeXT, cc -E runs the code through the compiler's parser,
4336 # not just through cpp. "Syntax error" is here to catch this case.
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h. */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 #ifdef __STDC__
4344 # include <limits.h>
4345 #else
4346 # include <assert.h>
4347 #endif
4348 Syntax error
4349 _ACEOF
4350 if { (ac_try="$ac_cpp conftest.$ac_ext"
4351 case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4354 esac
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4357 ac_status=$?
4358 grep -v '^ *+' conftest.er1 >conftest.err
4359 rm -f conftest.er1
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } >/dev/null && {
4363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4364 test ! -s conftest.err
4365 }; then
4366 :
4367 else
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371 # Broken: fails on valid input.
4372 continue
4373 fi
4374
4375 rm -f conftest.err conftest.$ac_ext
4376
4377 # OK, works on sane cases. Now check whether nonexistent headers
4378 # can be detected and how.
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h. */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 #include <ac_nonexistent.h>
4386 _ACEOF
4387 if { (ac_try="$ac_cpp conftest.$ac_ext"
4388 case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391 esac
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } >/dev/null && {
4400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4401 test ! -s conftest.err
4402 }; then
4403 # Broken: success on invalid input.
4404 continue
4405 else
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 # Passes both tests.
4410 ac_preproc_ok=:
4411 break
4412 fi
4413
4414 rm -f conftest.err conftest.$ac_ext
4415
4416 done
4417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4418 rm -f conftest.err conftest.$ac_ext
4419 if $ac_preproc_ok; then
4420 :
4421 else
4422 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4423 See \`config.log' for more details." >&5
4424 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4425 See \`config.log' for more details." >&2;}
4426 { (exit 1); exit 1; }; }
4427 fi
4428
4429 ac_ext=c
4430 ac_cpp='$CPP $CPPFLAGS'
4431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434
4435
4436 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4437 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4438 if test "${ac_cv_path_GREP+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 # Extract the first word of "grep ggrep" to use in msg output
4442 if test -z "$GREP"; then
4443 set dummy grep ggrep; ac_prog_name=$2
4444 if test "${ac_cv_path_GREP+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 ac_path_GREP_found=false
4448 # Loop through the user's path and test for each of PROGNAME-LIST
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4451 do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_prog in grep ggrep; do
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4457 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4458 # Check for GNU ac_path_GREP and select it if it is found.
4459 # Check for GNU $ac_path_GREP
4460 case `"$ac_path_GREP" --version 2>&1` in
4461 *GNU*)
4462 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4463 *)
4464 ac_count=0
4465 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4466 while :
4467 do
4468 cat "conftest.in" "conftest.in" >"conftest.tmp"
4469 mv "conftest.tmp" "conftest.in"
4470 cp "conftest.in" "conftest.nl"
4471 echo 'GREP' >> "conftest.nl"
4472 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4474 ac_count=`expr $ac_count + 1`
4475 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4476 # Best one so far, save it but keep looking for a better one
4477 ac_cv_path_GREP="$ac_path_GREP"
4478 ac_path_GREP_max=$ac_count
4479 fi
4480 # 10*(2^10) chars as input seems more than enough
4481 test $ac_count -gt 10 && break
4482 done
4483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4484 esac
4485
4486
4487 $ac_path_GREP_found && break 3
4488 done
4489 done
4490
4491 done
4492 IFS=$as_save_IFS
4493
4494
4495 fi
4496
4497 GREP="$ac_cv_path_GREP"
4498 if test -z "$GREP"; then
4499 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4500 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4501 { (exit 1); exit 1; }; }
4502 fi
4503
4504 else
4505 ac_cv_path_GREP=$GREP
4506 fi
4507
4508
4509 fi
4510 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4511 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4512 GREP="$ac_cv_path_GREP"
4513
4514
4515 { echo "$as_me:$LINENO: checking for egrep" >&5
4516 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4517 if test "${ac_cv_path_EGREP+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4521 then ac_cv_path_EGREP="$GREP -E"
4522 else
4523 # Extract the first word of "egrep" to use in msg output
4524 if test -z "$EGREP"; then
4525 set dummy egrep; ac_prog_name=$2
4526 if test "${ac_cv_path_EGREP+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529 ac_path_EGREP_found=false
4530 # Loop through the user's path and test for each of PROGNAME-LIST
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4533 do
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_prog in egrep; do
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4539 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4540 # Check for GNU ac_path_EGREP and select it if it is found.
4541 # Check for GNU $ac_path_EGREP
4542 case `"$ac_path_EGREP" --version 2>&1` in
4543 *GNU*)
4544 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4545 *)
4546 ac_count=0
4547 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4548 while :
4549 do
4550 cat "conftest.in" "conftest.in" >"conftest.tmp"
4551 mv "conftest.tmp" "conftest.in"
4552 cp "conftest.in" "conftest.nl"
4553 echo 'EGREP' >> "conftest.nl"
4554 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4556 ac_count=`expr $ac_count + 1`
4557 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4558 # Best one so far, save it but keep looking for a better one
4559 ac_cv_path_EGREP="$ac_path_EGREP"
4560 ac_path_EGREP_max=$ac_count
4561 fi
4562 # 10*(2^10) chars as input seems more than enough
4563 test $ac_count -gt 10 && break
4564 done
4565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4566 esac
4567
4568
4569 $ac_path_EGREP_found && break 3
4570 done
4571 done
4572
4573 done
4574 IFS=$as_save_IFS
4575
4576
4577 fi
4578
4579 EGREP="$ac_cv_path_EGREP"
4580 if test -z "$EGREP"; then
4581 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4582 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4583 { (exit 1); exit 1; }; }
4584 fi
4585
4586 else
4587 ac_cv_path_EGREP=$EGREP
4588 fi
4589
4590
4591 fi
4592 fi
4593 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4594 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4595 EGREP="$ac_cv_path_EGREP"
4596
4597
4598 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4599 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4600 if test "${ac_cv_header_stdc+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603 cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h. */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 #include <stdlib.h>
4610 #include <stdarg.h>
4611 #include <string.h>
4612 #include <float.h>
4613
4614 int
4615 main ()
4616 {
4617
4618 ;
4619 return 0;
4620 }
4621 _ACEOF
4622 rm -f conftest.$ac_objext
4623 if { (ac_try="$ac_compile"
4624 case "(($ac_try" in
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4627 esac
4628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4629 (eval "$ac_compile") 2>conftest.er1
4630 ac_status=$?
4631 grep -v '^ *+' conftest.er1 >conftest.err
4632 rm -f conftest.er1
4633 cat conftest.err >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } && {
4636 test -z "$ac_c_werror_flag" ||
4637 test ! -s conftest.err
4638 } && test -s conftest.$ac_objext; then
4639 ac_cv_header_stdc=yes
4640 else
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644 ac_cv_header_stdc=no
4645 fi
4646
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648
4649 if test $ac_cv_header_stdc = yes; then
4650 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4651 cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h. */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 #include <string.h>
4658
4659 _ACEOF
4660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4661 $EGREP "memchr" >/dev/null 2>&1; then
4662 :
4663 else
4664 ac_cv_header_stdc=no
4665 fi
4666 rm -f conftest*
4667
4668 fi
4669
4670 if test $ac_cv_header_stdc = yes; then
4671 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4672 cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h. */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4678 #include <stdlib.h>
4679
4680 _ACEOF
4681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4682 $EGREP "free" >/dev/null 2>&1; then
4683 :
4684 else
4685 ac_cv_header_stdc=no
4686 fi
4687 rm -f conftest*
4688
4689 fi
4690
4691 if test $ac_cv_header_stdc = yes; then
4692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4693 if test "$cross_compiling" = yes; then
4694 :
4695 else
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h. */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4702 #include <ctype.h>
4703 #include <stdlib.h>
4704 #if ((' ' & 0x0FF) == 0x020)
4705 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4706 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4707 #else
4708 # define ISLOWER(c) \
4709 (('a' <= (c) && (c) <= 'i') \
4710 || ('j' <= (c) && (c) <= 'r') \
4711 || ('s' <= (c) && (c) <= 'z'))
4712 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4713 #endif
4714
4715 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4716 int
4717 main ()
4718 {
4719 int i;
4720 for (i = 0; i < 256; i++)
4721 if (XOR (islower (i), ISLOWER (i))
4722 || toupper (i) != TOUPPER (i))
4723 return 2;
4724 return 0;
4725 }
4726 _ACEOF
4727 rm -f conftest$ac_exeext
4728 if { (ac_try="$ac_link"
4729 case "(($ac_try" in
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4732 esac
4733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734 (eval "$ac_link") 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4738 { (case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741 esac
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_try") 2>&5
4744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; }; then
4747 :
4748 else
4749 echo "$as_me: program exited with status $ac_status" >&5
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4752
4753 ( exit $ac_status )
4754 ac_cv_header_stdc=no
4755 fi
4756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4757 fi
4758
4759
4760 fi
4761 fi
4762 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4763 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4764 if test $ac_cv_header_stdc = yes; then
4765
4766 cat >>confdefs.h <<\_ACEOF
4767 #define STDC_HEADERS 1
4768 _ACEOF
4769
4770 fi
4771
4772 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4783 inttypes.h stdint.h unistd.h
4784 do
4785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791 cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h. */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 $ac_includes_default
4798
4799 #include <$ac_header>
4800 _ACEOF
4801 rm -f conftest.$ac_objext
4802 if { (ac_try="$ac_compile"
4803 case "(($ac_try" in
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4806 esac
4807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808 (eval "$ac_compile") 2>conftest.er1
4809 ac_status=$?
4810 grep -v '^ *+' conftest.er1 >conftest.err
4811 rm -f conftest.er1
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } && {
4815 test -z "$ac_c_werror_flag" ||
4816 test ! -s conftest.err
4817 } && test -s conftest.$ac_objext; then
4818 eval "$as_ac_Header=yes"
4819 else
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 eval "$as_ac_Header=no"
4824 fi
4825
4826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827 fi
4828 ac_res=`eval echo '${'$as_ac_Header'}'`
4829 { echo "$as_me:$LINENO: result: $ac_res" >&5
4830 echo "${ECHO_T}$ac_res" >&6; }
4831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4832 cat >>confdefs.h <<_ACEOF
4833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4834 _ACEOF
4835
4836 fi
4837
4838 done
4839
4840
4841 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4842 # for constant arguments. Useless!
4843 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
4844 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
4845 if test "${ac_cv_working_alloca_h+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #include <alloca.h>
4855 int
4856 main ()
4857 {
4858 char *p = (char *) alloca (2 * sizeof (int));
4859 if (p) return 0;
4860 ;
4861 return 0;
4862 }
4863 _ACEOF
4864 rm -f conftest.$ac_objext conftest$ac_exeext
4865 if { (ac_try="$ac_link"
4866 case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869 esac
4870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871 (eval "$ac_link") 2>conftest.er1
4872 ac_status=$?
4873 grep -v '^ *+' conftest.er1 >conftest.err
4874 rm -f conftest.er1
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } && {
4878 test -z "$ac_c_werror_flag" ||
4879 test ! -s conftest.err
4880 } && test -s conftest$ac_exeext &&
4881 $as_test_x conftest$ac_exeext; then
4882 ac_cv_working_alloca_h=yes
4883 else
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4886
4887 ac_cv_working_alloca_h=no
4888 fi
4889
4890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4891 conftest$ac_exeext conftest.$ac_ext
4892 fi
4893 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4894 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
4895 if test $ac_cv_working_alloca_h = yes; then
4896
4897 cat >>confdefs.h <<\_ACEOF
4898 #define HAVE_ALLOCA_H 1
4899 _ACEOF
4900
4901 fi
4902
4903 { echo "$as_me:$LINENO: checking for alloca" >&5
4904 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
4905 if test "${ac_cv_func_alloca_works+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 #ifdef __GNUC__
4915 # define alloca __builtin_alloca
4916 #else
4917 # ifdef _MSC_VER
4918 # include <malloc.h>
4919 # define alloca _alloca
4920 # else
4921 # ifdef HAVE_ALLOCA_H
4922 # include <alloca.h>
4923 # else
4924 # ifdef _AIX
4925 #pragma alloca
4926 # else
4927 # ifndef alloca /* predefined by HP cc +Olibcalls */
4928 char *alloca ();
4929 # endif
4930 # endif
4931 # endif
4932 # endif
4933 #endif
4934
4935 int
4936 main ()
4937 {
4938 char *p = (char *) alloca (1);
4939 if (p) return 0;
4940 ;
4941 return 0;
4942 }
4943 _ACEOF
4944 rm -f conftest.$ac_objext conftest$ac_exeext
4945 if { (ac_try="$ac_link"
4946 case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949 esac
4950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951 (eval "$ac_link") 2>conftest.er1
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } && {
4958 test -z "$ac_c_werror_flag" ||
4959 test ! -s conftest.err
4960 } && test -s conftest$ac_exeext &&
4961 $as_test_x conftest$ac_exeext; then
4962 ac_cv_func_alloca_works=yes
4963 else
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 ac_cv_func_alloca_works=no
4968 fi
4969
4970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4971 conftest$ac_exeext conftest.$ac_ext
4972 fi
4973 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4974 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
4975
4976 if test $ac_cv_func_alloca_works = yes; then
4977
4978 cat >>confdefs.h <<\_ACEOF
4979 #define HAVE_ALLOCA 1
4980 _ACEOF
4981
4982 else
4983 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4984 # that cause trouble. Some versions do not even contain alloca or
4985 # contain a buggy version. If you still want to use their alloca,
4986 # use ar to extract alloca.o from them instead of compiling alloca.c.
4987
4988 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4989
4990 cat >>confdefs.h <<\_ACEOF
4991 #define C_ALLOCA 1
4992 _ACEOF
4993
4994
4995 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4996 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
4997 if test "${ac_cv_os_cray+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h. */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 #if defined CRAY && ! defined CRAY2
5007 webecray
5008 #else
5009 wenotbecray
5010 #endif
5011
5012 _ACEOF
5013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5014 $EGREP "webecray" >/dev/null 2>&1; then
5015 ac_cv_os_cray=yes
5016 else
5017 ac_cv_os_cray=no
5018 fi
5019 rm -f conftest*
5020
5021 fi
5022 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5023 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5024 if test $ac_cv_os_cray = yes; then
5025 for ac_func in _getb67 GETB67 getb67; do
5026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032 cat >conftest.$ac_ext <<_ACEOF
5033 /* confdefs.h. */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5040 #define $ac_func innocuous_$ac_func
5041
5042 /* System header to define __stub macros and hopefully few prototypes,
5043 which can conflict with char $ac_func (); below.
5044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045 <limits.h> exists even on freestanding compilers. */
5046
5047 #ifdef __STDC__
5048 # include <limits.h>
5049 #else
5050 # include <assert.h>
5051 #endif
5052
5053 #undef $ac_func
5054
5055 /* Override any GCC internal prototype to avoid an error.
5056 Use char because int might match the return type of a GCC
5057 builtin and then its argument prototype would still apply. */
5058 #ifdef __cplusplus
5059 extern "C"
5060 #endif
5061 char $ac_func ();
5062 /* The GNU C library defines this for functions which it implements
5063 to always fail with ENOSYS. Some functions are actually named
5064 something starting with __ and the normal name is an alias. */
5065 #if defined __stub_$ac_func || defined __stub___$ac_func
5066 choke me
5067 #endif
5068
5069 int
5070 main ()
5071 {
5072 return $ac_func ();
5073 ;
5074 return 0;
5075 }
5076 _ACEOF
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (ac_try="$ac_link"
5079 case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082 esac
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_link") 2>conftest.er1
5085 ac_status=$?
5086 grep -v '^ *+' conftest.er1 >conftest.err
5087 rm -f conftest.er1
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } && {
5091 test -z "$ac_c_werror_flag" ||
5092 test ! -s conftest.err
5093 } && test -s conftest$ac_exeext &&
5094 $as_test_x conftest$ac_exeext; then
5095 eval "$as_ac_var=yes"
5096 else
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100 eval "$as_ac_var=no"
5101 fi
5102
5103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5104 conftest$ac_exeext conftest.$ac_ext
5105 fi
5106 ac_res=`eval echo '${'$as_ac_var'}'`
5107 { echo "$as_me:$LINENO: result: $ac_res" >&5
5108 echo "${ECHO_T}$ac_res" >&6; }
5109 if test `eval echo '${'$as_ac_var'}'` = yes; then
5110
5111 cat >>confdefs.h <<_ACEOF
5112 #define CRAY_STACKSEG_END $ac_func
5113 _ACEOF
5114
5115 break
5116 fi
5117
5118 done
5119 fi
5120
5121 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5122 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5123 if test "${ac_cv_c_stack_direction+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126 if test "$cross_compiling" = yes; then
5127 ac_cv_c_stack_direction=0
5128 else
5129 cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h. */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 $ac_includes_default
5136 int
5137 find_stack_direction ()
5138 {
5139 static char *addr = 0;
5140 auto char dummy;
5141 if (addr == 0)
5142 {
5143 addr = &dummy;
5144 return find_stack_direction ();
5145 }
5146 else
5147 return (&dummy > addr) ? 1 : -1;
5148 }
5149
5150 int
5151 main ()
5152 {
5153 return find_stack_direction () < 0;
5154 }
5155 _ACEOF
5156 rm -f conftest$ac_exeext
5157 if { (ac_try="$ac_link"
5158 case "(($ac_try" in
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5161 esac
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163 (eval "$ac_link") 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5167 { (case "(($ac_try" in
5168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5170 esac
5171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172 (eval "$ac_try") 2>&5
5173 ac_status=$?
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; }; then
5176 ac_cv_c_stack_direction=1
5177 else
5178 echo "$as_me: program exited with status $ac_status" >&5
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5181
5182 ( exit $ac_status )
5183 ac_cv_c_stack_direction=-1
5184 fi
5185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5186 fi
5187
5188
5189 fi
5190 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5191 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
5192
5193 cat >>confdefs.h <<_ACEOF
5194 #define STACK_DIRECTION $ac_cv_c_stack_direction
5195 _ACEOF
5196
5197
5198 fi
5199
5200
5201
5202
5203
5204
5205 ac_header_dirent=no
5206 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5207 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5208 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5209 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213 cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h. */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 #include <sys/types.h>
5220 #include <$ac_hdr>
5221
5222 int
5223 main ()
5224 {
5225 if ((DIR *) 0)
5226 return 0;
5227 ;
5228 return 0;
5229 }
5230 _ACEOF
5231 rm -f conftest.$ac_objext
5232 if { (ac_try="$ac_compile"
5233 case "(($ac_try" in
5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5236 esac
5237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238 (eval "$ac_compile") 2>conftest.er1
5239 ac_status=$?
5240 grep -v '^ *+' conftest.er1 >conftest.err
5241 rm -f conftest.er1
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } && {
5245 test -z "$ac_c_werror_flag" ||
5246 test ! -s conftest.err
5247 } && test -s conftest.$ac_objext; then
5248 eval "$as_ac_Header=yes"
5249 else
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5252
5253 eval "$as_ac_Header=no"
5254 fi
5255
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257 fi
5258 ac_res=`eval echo '${'$as_ac_Header'}'`
5259 { echo "$as_me:$LINENO: result: $ac_res" >&5
5260 echo "${ECHO_T}$ac_res" >&6; }
5261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5262 cat >>confdefs.h <<_ACEOF
5263 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5264 _ACEOF
5265
5266 ac_header_dirent=$ac_hdr; break
5267 fi
5268
5269 done
5270 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5271 if test $ac_header_dirent = dirent.h; then
5272 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5273 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5274 if test "${ac_cv_search_opendir+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277 ac_func_search_save_LIBS=$LIBS
5278 cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h. */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284
5285 /* Override any GCC internal prototype to avoid an error.
5286 Use char because int might match the return type of a GCC
5287 builtin and then its argument prototype would still apply. */
5288 #ifdef __cplusplus
5289 extern "C"
5290 #endif
5291 char opendir ();
5292 int
5293 main ()
5294 {
5295 return opendir ();
5296 ;
5297 return 0;
5298 }
5299 _ACEOF
5300 for ac_lib in '' dir; do
5301 if test -z "$ac_lib"; then
5302 ac_res="none required"
5303 else
5304 ac_res=-l$ac_lib
5305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5306 fi
5307 rm -f conftest.$ac_objext conftest$ac_exeext
5308 if { (ac_try="$ac_link"
5309 case "(($ac_try" in
5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5312 esac
5313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314 (eval "$ac_link") 2>conftest.er1
5315 ac_status=$?
5316 grep -v '^ *+' conftest.er1 >conftest.err
5317 rm -f conftest.er1
5318 cat conftest.err >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } && {
5321 test -z "$ac_c_werror_flag" ||
5322 test ! -s conftest.err
5323 } && test -s conftest$ac_exeext &&
5324 $as_test_x conftest$ac_exeext; then
5325 ac_cv_search_opendir=$ac_res
5326 else
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330
5331 fi
5332
5333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5334 conftest$ac_exeext
5335 if test "${ac_cv_search_opendir+set}" = set; then
5336 break
5337 fi
5338 done
5339 if test "${ac_cv_search_opendir+set}" = set; then
5340 :
5341 else
5342 ac_cv_search_opendir=no
5343 fi
5344 rm conftest.$ac_ext
5345 LIBS=$ac_func_search_save_LIBS
5346 fi
5347 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5348 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5349 ac_res=$ac_cv_search_opendir
5350 if test "$ac_res" != no; then
5351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5352
5353 fi
5354
5355 else
5356 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5357 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5358 if test "${ac_cv_search_opendir+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361 ac_func_search_save_LIBS=$LIBS
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h. */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368
5369 /* Override any GCC internal prototype to avoid an error.
5370 Use char because int might match the return type of a GCC
5371 builtin and then its argument prototype would still apply. */
5372 #ifdef __cplusplus
5373 extern "C"
5374 #endif
5375 char opendir ();
5376 int
5377 main ()
5378 {
5379 return opendir ();
5380 ;
5381 return 0;
5382 }
5383 _ACEOF
5384 for ac_lib in '' x; do
5385 if test -z "$ac_lib"; then
5386 ac_res="none required"
5387 else
5388 ac_res=-l$ac_lib
5389 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5390 fi
5391 rm -f conftest.$ac_objext conftest$ac_exeext
5392 if { (ac_try="$ac_link"
5393 case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5396 esac
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_link") 2>conftest.er1
5399 ac_status=$?
5400 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } && {
5405 test -z "$ac_c_werror_flag" ||
5406 test ! -s conftest.err
5407 } && test -s conftest$ac_exeext &&
5408 $as_test_x conftest$ac_exeext; then
5409 ac_cv_search_opendir=$ac_res
5410 else
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5413
5414
5415 fi
5416
5417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5418 conftest$ac_exeext
5419 if test "${ac_cv_search_opendir+set}" = set; then
5420 break
5421 fi
5422 done
5423 if test "${ac_cv_search_opendir+set}" = set; then
5424 :
5425 else
5426 ac_cv_search_opendir=no
5427 fi
5428 rm conftest.$ac_ext
5429 LIBS=$ac_func_search_save_LIBS
5430 fi
5431 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5432 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5433 ac_res=$ac_cv_search_opendir
5434 if test "$ac_res" != no; then
5435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5436
5437 fi
5438
5439 fi
5440
5441 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5442 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5443 if test "${ac_cv_header_stdc+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446 cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h. */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 #include <stdlib.h>
5453 #include <stdarg.h>
5454 #include <string.h>
5455 #include <float.h>
5456
5457 int
5458 main ()
5459 {
5460
5461 ;
5462 return 0;
5463 }
5464 _ACEOF
5465 rm -f conftest.$ac_objext
5466 if { (ac_try="$ac_compile"
5467 case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5470 esac
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_compile") 2>conftest.er1
5473 ac_status=$?
5474 grep -v '^ *+' conftest.er1 >conftest.err
5475 rm -f conftest.er1
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } && {
5479 test -z "$ac_c_werror_flag" ||
5480 test ! -s conftest.err
5481 } && test -s conftest.$ac_objext; then
5482 ac_cv_header_stdc=yes
5483 else
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487 ac_cv_header_stdc=no
5488 fi
5489
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491
5492 if test $ac_cv_header_stdc = yes; then
5493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5494 cat >conftest.$ac_ext <<_ACEOF
5495 /* confdefs.h. */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 #include <string.h>
5501
5502 _ACEOF
5503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5504 $EGREP "memchr" >/dev/null 2>&1; then
5505 :
5506 else
5507 ac_cv_header_stdc=no
5508 fi
5509 rm -f conftest*
5510
5511 fi
5512
5513 if test $ac_cv_header_stdc = yes; then
5514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5515 cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h. */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521 #include <stdlib.h>
5522
5523 _ACEOF
5524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5525 $EGREP "free" >/dev/null 2>&1; then
5526 :
5527 else
5528 ac_cv_header_stdc=no
5529 fi
5530 rm -f conftest*
5531
5532 fi
5533
5534 if test $ac_cv_header_stdc = yes; then
5535 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5536 if test "$cross_compiling" = yes; then
5537 :
5538 else
5539 cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h. */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 #include <ctype.h>
5546 #include <stdlib.h>
5547 #if ((' ' & 0x0FF) == 0x020)
5548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5550 #else
5551 # define ISLOWER(c) \
5552 (('a' <= (c) && (c) <= 'i') \
5553 || ('j' <= (c) && (c) <= 'r') \
5554 || ('s' <= (c) && (c) <= 'z'))
5555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5556 #endif
5557
5558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5559 int
5560 main ()
5561 {
5562 int i;
5563 for (i = 0; i < 256; i++)
5564 if (XOR (islower (i), ISLOWER (i))
5565 || toupper (i) != TOUPPER (i))
5566 return 2;
5567 return 0;
5568 }
5569 _ACEOF
5570 rm -f conftest$ac_exeext
5571 if { (ac_try="$ac_link"
5572 case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_link") 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5581 { (case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584 esac
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_try") 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5590 :
5591 else
5592 echo "$as_me: program exited with status $ac_status" >&5
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5595
5596 ( exit $ac_status )
5597 ac_cv_header_stdc=no
5598 fi
5599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5600 fi
5601
5602
5603 fi
5604 fi
5605 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5606 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5607 if test $ac_cv_header_stdc = yes; then
5608
5609 cat >>confdefs.h <<\_ACEOF
5610 #define STDC_HEADERS 1
5611 _ACEOF
5612
5613 fi
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630 for ac_header in argz.h fcntl.h langinfo.h libintl.h limits.h locale.h malloc.h stddef.h stdio_ext.h stdlib.h string.h strings.h sys/param.h sys/timeb.h unistd.h
5631 do
5632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 fi
5639 ac_res=`eval echo '${'$as_ac_Header'}'`
5640 { echo "$as_me:$LINENO: result: $ac_res" >&5
5641 echo "${ECHO_T}$ac_res" >&6; }
5642 else
5643 # Is the header compilable?
5644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5646 cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h. */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 $ac_includes_default
5653 #include <$ac_header>
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.$ac_objext; then
5672 ac_header_compiler=yes
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677 ac_header_compiler=no
5678 fi
5679
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5682 echo "${ECHO_T}$ac_header_compiler" >&6; }
5683
5684 # Is the header present?
5685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5687 cat >conftest.$ac_ext <<_ACEOF
5688 /* confdefs.h. */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 #include <$ac_header>
5694 _ACEOF
5695 if { (ac_try="$ac_cpp conftest.$ac_ext"
5696 case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5699 esac
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5702 ac_status=$?
5703 grep -v '^ *+' conftest.er1 >conftest.err
5704 rm -f conftest.er1
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } >/dev/null && {
5708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5709 test ! -s conftest.err
5710 }; then
5711 ac_header_preproc=yes
5712 else
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5715
5716 ac_header_preproc=no
5717 fi
5718
5719 rm -f conftest.err conftest.$ac_ext
5720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5721 echo "${ECHO_T}$ac_header_preproc" >&6; }
5722
5723 # So? What about this header?
5724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5725 yes:no: )
5726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5730 ac_header_preproc=yes
5731 ;;
5732 no:yes:* )
5733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5745 ( cat <<\_ASBOX
5746 ## --------------------------------------- ##
5747 ## Report this to [email protected] ##
5748 ## --------------------------------------- ##
5749 _ASBOX
5750 ) | sed "s/^/$as_me: WARNING: /" >&2
5751 ;;
5752 esac
5753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758 eval "$as_ac_Header=\$ac_header_preproc"
5759 fi
5760 ac_res=`eval echo '${'$as_ac_Header'}'`
5761 { echo "$as_me:$LINENO: result: $ac_res" >&5
5762 echo "${ECHO_T}$ac_res" >&6; }
5763
5764 fi
5765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5766 cat >>confdefs.h <<_ACEOF
5767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5768 _ACEOF
5769
5770 fi
5771
5772 done
5773
5774
5775 # Checks for typedefs, structures, and compiler characteristics.
5776 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
5777 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
5778 if test "${ac_cv_header_stdbool_h+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781 cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h. */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787
5788 #include <stdbool.h>
5789 #ifndef bool
5790 "error: bool is not defined"
5791 #endif
5792 #ifndef false
5793 "error: false is not defined"
5794 #endif
5795 #if false
5796 "error: false is not 0"
5797 #endif
5798 #ifndef true
5799 "error: true is not defined"
5800 #endif
5801 #if true != 1
5802 "error: true is not 1"
5803 #endif
5804 #ifndef __bool_true_false_are_defined
5805 "error: __bool_true_false_are_defined is not defined"
5806 #endif
5807
5808 struct s { _Bool s: 1; _Bool t; } s;
5809
5810 char a[true == 1 ? 1 : -1];
5811 char b[false == 0 ? 1 : -1];
5812 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5813 char d[(bool) 0.5 == true ? 1 : -1];
5814 bool e = &s;
5815 char f[(_Bool) 0.0 == false ? 1 : -1];
5816 char g[true];
5817 char h[sizeof (_Bool)];
5818 char i[sizeof s.t];
5819 enum { j = false, k = true, l = false * true, m = true * 256 };
5820 _Bool n[m];
5821 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5822 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5823 # if defined __xlc__ || defined __GNUC__
5824 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
5825 reported by James Lemley on 2005-10-05; see
5826 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
5827 This test is not quite right, since xlc is allowed to
5828 reject this program, as the initializer for xlcbug is
5829 not one of the forms that C requires support for.
5830 However, doing the test right would require a runtime
5831 test, and that would make cross-compilation harder.
5832 Let us hope that IBM fixes the xlc bug, and also adds
5833 support for this kind of constant expression. In the
5834 meantime, this test will reject xlc, which is OK, since
5835 our stdbool.h substitute should suffice. We also test
5836 this with GCC, where it should work, to detect more
5837 quickly whether someone messes up the test in the
5838 future. */
5839 char digs[] = "0123456789";
5840 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
5841 # endif
5842 /* Catch a bug in an HP-UX C compiler. See
5843 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5844 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5845 */
5846 _Bool q = true;
5847 _Bool *pq = &q;
5848
5849 int
5850 main ()
5851 {
5852
5853 *pq |= q;
5854 *pq |= ! q;
5855 /* Refer to every declared value, to avoid compiler optimizations. */
5856 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5857 + !m + !n + !o + !p + !q + !pq);
5858
5859 ;
5860 return 0;
5861 }
5862 _ACEOF
5863 rm -f conftest.$ac_objext
5864 if { (ac_try="$ac_compile"
5865 case "(($ac_try" in
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5868 esac
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_compile") 2>conftest.er1
5871 ac_status=$?
5872 grep -v '^ *+' conftest.er1 >conftest.err
5873 rm -f conftest.er1
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } && {
5877 test -z "$ac_c_werror_flag" ||
5878 test ! -s conftest.err
5879 } && test -s conftest.$ac_objext; then
5880 ac_cv_header_stdbool_h=yes
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885 ac_cv_header_stdbool_h=no
5886 fi
5887
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 fi
5890 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5891 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
5892 { echo "$as_me:$LINENO: checking for _Bool" >&5
5893 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
5894 if test "${ac_cv_type__Bool+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897 cat >conftest.$ac_ext <<_ACEOF
5898 /* confdefs.h. */
5899 _ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h. */
5903 $ac_includes_default
5904 typedef _Bool ac__type_new_;
5905 int
5906 main ()
5907 {
5908 if ((ac__type_new_ *) 0)
5909 return 0;
5910 if (sizeof (ac__type_new_))
5911 return 0;
5912 ;
5913 return 0;
5914 }
5915 _ACEOF
5916 rm -f conftest.$ac_objext
5917 if { (ac_try="$ac_compile"
5918 case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_compile") 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && {
5930 test -z "$ac_c_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest.$ac_objext; then
5933 ac_cv_type__Bool=yes
5934 else
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5937
5938 ac_cv_type__Bool=no
5939 fi
5940
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 fi
5943 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
5944 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
5945 if test $ac_cv_type__Bool = yes; then
5946
5947 cat >>confdefs.h <<_ACEOF
5948 #define HAVE__BOOL 1
5949 _ACEOF
5950
5951
5952 fi
5953
5954 if test $ac_cv_header_stdbool_h = yes; then
5955
5956 cat >>confdefs.h <<\_ACEOF
5957 #define HAVE_STDBOOL_H 1
5958 _ACEOF
5959
5960 fi
5961
5962 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5963 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5964 if test "${ac_cv_c_const+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973
5974 int
5975 main ()
5976 {
5977 /* FIXME: Include the comments suggested by Paul. */
5978 #ifndef __cplusplus
5979 /* Ultrix mips cc rejects this. */
5980 typedef int charset[2];
5981 const charset cs;
5982 /* SunOS 4.1.1 cc rejects this. */
5983 char const *const *pcpcc;
5984 char **ppc;
5985 /* NEC SVR4.0.2 mips cc rejects this. */
5986 struct point {int x, y;};
5987 static struct point const zero = {0,0};
5988 /* AIX XL C 1.02.0.0 rejects this.
5989 It does not let you subtract one const X* pointer from another in
5990 an arm of an if-expression whose if-part is not a constant
5991 expression */
5992 const char *g = "string";
5993 pcpcc = &g + (g ? g-g : 0);
5994 /* HPUX 7.0 cc rejects these. */
5995 ++pcpcc;
5996 ppc = (char**) pcpcc;
5997 pcpcc = (char const *const *) ppc;
5998 { /* SCO 3.2v4 cc rejects this. */
5999 char *t;
6000 char const *s = 0 ? (char *) 0 : (char const *) 0;
6001
6002 *t++ = 0;
6003 if (s) return 0;
6004 }
6005 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6006 int x[] = {25, 17};
6007 const int *foo = &x[0];
6008 ++foo;
6009 }
6010 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6011 typedef const int *iptr;
6012 iptr p = 0;
6013 ++p;
6014 }
6015 { /* AIX XL C 1.02.0.0 rejects this saying
6016 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6017 struct s { int j; const int *ap[3]; };
6018 struct s *b; b->j = 5;
6019 }
6020 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6021 const int foo = 10;
6022 if (!foo) return 0;
6023 }
6024 return !cs[0] && !zero.x;
6025 #endif
6026
6027 ;
6028 return 0;
6029 }
6030 _ACEOF
6031 rm -f conftest.$ac_objext
6032 if { (ac_try="$ac_compile"
6033 case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_compile") 2>conftest.er1
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } && {
6045 test -z "$ac_c_werror_flag" ||
6046 test ! -s conftest.err
6047 } && test -s conftest.$ac_objext; then
6048 ac_cv_c_const=yes
6049 else
6050 echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6052
6053 ac_cv_c_const=no
6054 fi
6055
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 fi
6058 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6059 echo "${ECHO_T}$ac_cv_c_const" >&6; }
6060 if test $ac_cv_c_const = no; then
6061
6062 cat >>confdefs.h <<\_ACEOF
6063 #define const
6064 _ACEOF
6065
6066 fi
6067
6068 { echo "$as_me:$LINENO: checking for inline" >&5
6069 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6070 if test "${ac_cv_c_inline+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073 ac_cv_c_inline=no
6074 for ac_kw in inline __inline__ __inline; do
6075 cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h. */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6081 #ifndef __cplusplus
6082 typedef int foo_t;
6083 static $ac_kw foo_t static_foo () {return 0; }
6084 $ac_kw foo_t foo () {return 0; }
6085 #endif
6086
6087 _ACEOF
6088 rm -f conftest.$ac_objext
6089 if { (ac_try="$ac_compile"
6090 case "(($ac_try" in
6091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092 *) ac_try_echo=$ac_try;;
6093 esac
6094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6095 (eval "$ac_compile") 2>conftest.er1
6096 ac_status=$?
6097 grep -v '^ *+' conftest.er1 >conftest.err
6098 rm -f conftest.er1
6099 cat conftest.err >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } && {
6102 test -z "$ac_c_werror_flag" ||
6103 test ! -s conftest.err
6104 } && test -s conftest.$ac_objext; then
6105 ac_cv_c_inline=$ac_kw
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6109
6110
6111 fi
6112
6113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 test "$ac_cv_c_inline" != no && break
6115 done
6116
6117 fi
6118 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6119 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6120
6121
6122 case $ac_cv_c_inline in
6123 inline | yes) ;;
6124 *)
6125 case $ac_cv_c_inline in
6126 no) ac_val=;;
6127 *) ac_val=$ac_cv_c_inline;;
6128 esac
6129 cat >>confdefs.h <<_ACEOF
6130 #ifndef __cplusplus
6131 #define inline $ac_val
6132 #endif
6133 _ACEOF
6134 ;;
6135 esac
6136
6137 { echo "$as_me:$LINENO: checking for size_t" >&5
6138 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6139 if test "${ac_cv_type_size_t+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142 cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h. */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6148 $ac_includes_default
6149 typedef size_t ac__type_new_;
6150 int
6151 main ()
6152 {
6153 if ((ac__type_new_ *) 0)
6154 return 0;
6155 if (sizeof (ac__type_new_))
6156 return 0;
6157 ;
6158 return 0;
6159 }
6160 _ACEOF
6161 rm -f conftest.$ac_objext
6162 if { (ac_try="$ac_compile"
6163 case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166 esac
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_compile") 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && {
6175 test -z "$ac_c_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest.$ac_objext; then
6178 ac_cv_type_size_t=yes
6179 else
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183 ac_cv_type_size_t=no
6184 fi
6185
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 fi
6188 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6189 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6190 if test $ac_cv_type_size_t = yes; then
6191 :
6192 else
6193
6194 cat >>confdefs.h <<_ACEOF
6195 #define size_t unsigned int
6196 _ACEOF
6197
6198 fi
6199
6200 { echo "$as_me:$LINENO: checking for working volatile" >&5
6201 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
6202 if test "${ac_cv_c_volatile+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211
6212 int
6213 main ()
6214 {
6215
6216 volatile int x;
6217 int * volatile y = (int *) 0;
6218 return !x && !y;
6219 ;
6220 return 0;
6221 }
6222 _ACEOF
6223 rm -f conftest.$ac_objext
6224 if { (ac_try="$ac_compile"
6225 case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228 esac
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
6240 ac_cv_c_volatile=yes
6241 else
6242 echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6244
6245 ac_cv_c_volatile=no
6246 fi
6247
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 fi
6250 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6251 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
6252 if test $ac_cv_c_volatile = no; then
6253
6254 cat >>confdefs.h <<\_ACEOF
6255 #define volatile
6256 _ACEOF
6257
6258 fi
6259
6260
6261 # Checks for library functions.
6262
6263
6264 for ac_header in stdlib.h
6265 do
6266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 fi
6273 ac_res=`eval echo '${'$as_ac_Header'}'`
6274 { echo "$as_me:$LINENO: result: $ac_res" >&5
6275 echo "${ECHO_T}$ac_res" >&6; }
6276 else
6277 # Is the header compilable?
6278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6280 cat >conftest.$ac_ext <<_ACEOF
6281 /* confdefs.h. */
6282 _ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6286 $ac_includes_default
6287 #include <$ac_header>
6288 _ACEOF
6289 rm -f conftest.$ac_objext
6290 if { (ac_try="$ac_compile"
6291 case "(($ac_try" in
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6294 esac
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_compile") 2>conftest.er1
6297 ac_status=$?
6298 grep -v '^ *+' conftest.er1 >conftest.err
6299 rm -f conftest.er1
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } && {
6303 test -z "$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6305 } && test -s conftest.$ac_objext; then
6306 ac_header_compiler=yes
6307 else
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6310
6311 ac_header_compiler=no
6312 fi
6313
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6316 echo "${ECHO_T}$ac_header_compiler" >&6; }
6317
6318 # Is the header present?
6319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6321 cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h. */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 #include <$ac_header>
6328 _ACEOF
6329 if { (ac_try="$ac_cpp conftest.$ac_ext"
6330 case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333 esac
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } >/dev/null && {
6342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 }; then
6345 ac_header_preproc=yes
6346 else
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350 ac_header_preproc=no
6351 fi
6352
6353 rm -f conftest.err conftest.$ac_ext
6354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6355 echo "${ECHO_T}$ac_header_preproc" >&6; }
6356
6357 # So? What about this header?
6358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6359 yes:no: )
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6364 ac_header_preproc=yes
6365 ;;
6366 no:yes:* )
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6379 ( cat <<\_ASBOX
6380 ## --------------------------------------- ##
6381 ## Report this to [email protected] ##
6382 ## --------------------------------------- ##
6383 _ASBOX
6384 ) | sed "s/^/$as_me: WARNING: /" >&2
6385 ;;
6386 esac
6387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392 eval "$as_ac_Header=\$ac_header_preproc"
6393 fi
6394 ac_res=`eval echo '${'$as_ac_Header'}'`
6395 { echo "$as_me:$LINENO: result: $ac_res" >&5
6396 echo "${ECHO_T}$ac_res" >&6; }
6397
6398 fi
6399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6400 cat >>confdefs.h <<_ACEOF
6401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6402 _ACEOF
6403
6404 fi
6405
6406 done
6407
6408 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6409 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
6410 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413 if test "$cross_compiling" = yes; then
6414 ac_cv_func_malloc_0_nonnull=no
6415 else
6416 cat >conftest.$ac_ext <<_ACEOF
6417 /* confdefs.h. */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6423 # include <stdlib.h>
6424 #else
6425 char *malloc ();
6426 #endif
6427
6428 int
6429 main ()
6430 {
6431 return ! malloc (0);
6432 ;
6433 return 0;
6434 }
6435 _ACEOF
6436 rm -f conftest$ac_exeext
6437 if { (ac_try="$ac_link"
6438 case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441 esac
6442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_link") 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6447 { (case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_try") 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 ac_cv_func_malloc_0_nonnull=yes
6457 else
6458 echo "$as_me: program exited with status $ac_status" >&5
6459 echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6461
6462 ( exit $ac_status )
6463 ac_cv_func_malloc_0_nonnull=no
6464 fi
6465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6466 fi
6467
6468
6469 fi
6470 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6471 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
6472 if test $ac_cv_func_malloc_0_nonnull = yes; then
6473
6474 cat >>confdefs.h <<\_ACEOF
6475 #define HAVE_MALLOC 1
6476 _ACEOF
6477
6478 else
6479 cat >>confdefs.h <<\_ACEOF
6480 #define HAVE_MALLOC 0
6481 _ACEOF
6482
6483 case " $LIBOBJS " in
6484 *" malloc.$ac_objext "* ) ;;
6485 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6486 ;;
6487 esac
6488
6489
6490 cat >>confdefs.h <<\_ACEOF
6491 #define malloc rpl_malloc
6492 _ACEOF
6493
6494 fi
6495
6496
6497
6498
6499
6500 for ac_header in stdlib.h unistd.h
6501 do
6502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 fi
6509 ac_res=`eval echo '${'$as_ac_Header'}'`
6510 { echo "$as_me:$LINENO: result: $ac_res" >&5
6511 echo "${ECHO_T}$ac_res" >&6; }
6512 else
6513 # Is the header compilable?
6514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6516 cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h. */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 $ac_includes_default
6523 #include <$ac_header>
6524 _ACEOF
6525 rm -f conftest.$ac_objext
6526 if { (ac_try="$ac_compile"
6527 case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6530 esac
6531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532 (eval "$ac_compile") 2>conftest.er1
6533 ac_status=$?
6534 grep -v '^ *+' conftest.er1 >conftest.err
6535 rm -f conftest.er1
6536 cat conftest.err >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } && {
6539 test -z "$ac_c_werror_flag" ||
6540 test ! -s conftest.err
6541 } && test -s conftest.$ac_objext; then
6542 ac_header_compiler=yes
6543 else
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6546
6547 ac_header_compiler=no
6548 fi
6549
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6552 echo "${ECHO_T}$ac_header_compiler" >&6; }
6553
6554 # Is the header present?
6555 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6557 cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h. */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6563 #include <$ac_header>
6564 _ACEOF
6565 if { (ac_try="$ac_cpp conftest.$ac_ext"
6566 case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569 esac
6570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } >/dev/null && {
6578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6579 test ! -s conftest.err
6580 }; then
6581 ac_header_preproc=yes
6582 else
6583 echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6585
6586 ac_header_preproc=no
6587 fi
6588
6589 rm -f conftest.err conftest.$ac_ext
6590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6591 echo "${ECHO_T}$ac_header_preproc" >&6; }
6592
6593 # So? What about this header?
6594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6595 yes:no: )
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6600 ac_header_preproc=yes
6601 ;;
6602 no:yes:* )
6603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6615 ( cat <<\_ASBOX
6616 ## --------------------------------------- ##
6617 ## Report this to [email protected] ##
6618 ## --------------------------------------- ##
6619 _ASBOX
6620 ) | sed "s/^/$as_me: WARNING: /" >&2
6621 ;;
6622 esac
6623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628 eval "$as_ac_Header=\$ac_header_preproc"
6629 fi
6630 ac_res=`eval echo '${'$as_ac_Header'}'`
6631 { echo "$as_me:$LINENO: result: $ac_res" >&5
6632 echo "${ECHO_T}$ac_res" >&6; }
6633
6634 fi
6635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6636 cat >>confdefs.h <<_ACEOF
6637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6638 _ACEOF
6639
6640 fi
6641
6642 done
6643
6644
6645 for ac_func in getpagesize
6646 do
6647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h. */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6661 #define $ac_func innocuous_$ac_func
6662
6663 /* System header to define __stub macros and hopefully few prototypes,
6664 which can conflict with char $ac_func (); below.
6665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6666 <limits.h> exists even on freestanding compilers. */
6667
6668 #ifdef __STDC__
6669 # include <limits.h>
6670 #else
6671 # include <assert.h>
6672 #endif
6673
6674 #undef $ac_func
6675
6676 /* Override any GCC internal prototype to avoid an error.
6677 Use char because int might match the return type of a GCC
6678 builtin and then its argument prototype would still apply. */
6679 #ifdef __cplusplus
6680 extern "C"
6681 #endif
6682 char $ac_func ();
6683 /* The GNU C library defines this for functions which it implements
6684 to always fail with ENOSYS. Some functions are actually named
6685 something starting with __ and the normal name is an alias. */
6686 #if defined __stub_$ac_func || defined __stub___$ac_func
6687 choke me
6688 #endif
6689
6690 int
6691 main ()
6692 {
6693 return $ac_func ();
6694 ;
6695 return 0;
6696 }
6697 _ACEOF
6698 rm -f conftest.$ac_objext conftest$ac_exeext
6699 if { (ac_try="$ac_link"
6700 case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703 esac
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_link") 2>conftest.er1
6706 ac_status=$?
6707 grep -v '^ *+' conftest.er1 >conftest.err
6708 rm -f conftest.er1
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } && {
6712 test -z "$ac_c_werror_flag" ||
6713 test ! -s conftest.err
6714 } && test -s conftest$ac_exeext &&
6715 $as_test_x conftest$ac_exeext; then
6716 eval "$as_ac_var=yes"
6717 else
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6720
6721 eval "$as_ac_var=no"
6722 fi
6723
6724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6725 conftest$ac_exeext conftest.$ac_ext
6726 fi
6727 ac_res=`eval echo '${'$as_ac_var'}'`
6728 { echo "$as_me:$LINENO: result: $ac_res" >&5
6729 echo "${ECHO_T}$ac_res" >&6; }
6730 if test `eval echo '${'$as_ac_var'}'` = yes; then
6731 cat >>confdefs.h <<_ACEOF
6732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6733 _ACEOF
6734
6735 fi
6736 done
6737
6738 { echo "$as_me:$LINENO: checking for working mmap" >&5
6739 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6740 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743 if test "$cross_compiling" = yes; then
6744 ac_cv_func_mmap_fixed_mapped=no
6745 else
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h. */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 $ac_includes_default
6753 /* malloc might have been renamed as rpl_malloc. */
6754 #undef malloc
6755
6756 /* Thanks to Mike Haertel and Jim Avera for this test.
6757 Here is a matrix of mmap possibilities:
6758 mmap private not fixed
6759 mmap private fixed at somewhere currently unmapped
6760 mmap private fixed at somewhere already mapped
6761 mmap shared not fixed
6762 mmap shared fixed at somewhere currently unmapped
6763 mmap shared fixed at somewhere already mapped
6764 For private mappings, we should verify that changes cannot be read()
6765 back from the file, nor mmap's back from the file at a different
6766 address. (There have been systems where private was not correctly
6767 implemented like the infamous i386 svr4.0, and systems where the
6768 VM page cache was not coherent with the file system buffer cache
6769 like early versions of FreeBSD and possibly contemporary NetBSD.)
6770 For shared mappings, we should conversely verify that changes get
6771 propagated back to all the places they're supposed to be.
6772
6773 Grep wants private fixed already mapped.
6774 The main things grep needs to know about mmap are:
6775 * does it exist and is it safe to write into the mmap'd area
6776 * how to use it (BSD variants) */
6777
6778 #include <fcntl.h>
6779 #include <sys/mman.h>
6780
6781 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6782 char *malloc ();
6783 #endif
6784
6785 /* This mess was copied from the GNU getpagesize.h. */
6786 #ifndef HAVE_GETPAGESIZE
6787 /* Assume that all systems that can run configure have sys/param.h. */
6788 # ifndef HAVE_SYS_PARAM_H
6789 # define HAVE_SYS_PARAM_H 1
6790 # endif
6791
6792 # ifdef _SC_PAGESIZE
6793 # define getpagesize() sysconf(_SC_PAGESIZE)
6794 # else /* no _SC_PAGESIZE */
6795 # ifdef HAVE_SYS_PARAM_H
6796 # include <sys/param.h>
6797 # ifdef EXEC_PAGESIZE
6798 # define getpagesize() EXEC_PAGESIZE
6799 # else /* no EXEC_PAGESIZE */
6800 # ifdef NBPG
6801 # define getpagesize() NBPG * CLSIZE
6802 # ifndef CLSIZE
6803 # define CLSIZE 1
6804 # endif /* no CLSIZE */
6805 # else /* no NBPG */
6806 # ifdef NBPC
6807 # define getpagesize() NBPC
6808 # else /* no NBPC */
6809 # ifdef PAGESIZE
6810 # define getpagesize() PAGESIZE
6811 # endif /* PAGESIZE */
6812 # endif /* no NBPC */
6813 # endif /* no NBPG */
6814 # endif /* no EXEC_PAGESIZE */
6815 # else /* no HAVE_SYS_PARAM_H */
6816 # define getpagesize() 8192 /* punt totally */
6817 # endif /* no HAVE_SYS_PARAM_H */
6818 # endif /* no _SC_PAGESIZE */
6819
6820 #endif /* no HAVE_GETPAGESIZE */
6821
6822 int
6823 main ()
6824 {
6825 char *data, *data2, *data3;
6826 int i, pagesize;
6827 int fd;
6828
6829 pagesize = getpagesize ();
6830
6831 /* First, make a file with some known garbage in it. */
6832 data = (char *) malloc (pagesize);
6833 if (!data)
6834 return 1;
6835 for (i = 0; i < pagesize; ++i)
6836 *(data + i) = rand ();
6837 umask (0);
6838 fd = creat ("conftest.mmap", 0600);
6839 if (fd < 0)
6840 return 1;
6841 if (write (fd, data, pagesize) != pagesize)
6842 return 1;
6843 close (fd);
6844
6845 /* Next, try to mmap the file at a fixed address which already has
6846 something else allocated at it. If we can, also make sure that
6847 we see the same garbage. */
6848 fd = open ("conftest.mmap", O_RDWR);
6849 if (fd < 0)
6850 return 1;
6851 data2 = (char *) malloc (2 * pagesize);
6852 if (!data2)
6853 return 1;
6854 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6855 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6856 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6857 return 1;
6858 for (i = 0; i < pagesize; ++i)
6859 if (*(data + i) != *(data2 + i))
6860 return 1;
6861
6862 /* Finally, make sure that changes to the mapped area do not
6863 percolate back to the file as seen by read(). (This is a bug on
6864 some variants of i386 svr4.0.) */
6865 for (i = 0; i < pagesize; ++i)
6866 *(data2 + i) = *(data2 + i) + 1;
6867 data3 = (char *) malloc (pagesize);
6868 if (!data3)
6869 return 1;
6870 if (read (fd, data3, pagesize) != pagesize)
6871 return 1;
6872 for (i = 0; i < pagesize; ++i)
6873 if (*(data + i) != *(data3 + i))
6874 return 1;
6875 close (fd);
6876 return 0;
6877 }
6878 _ACEOF
6879 rm -f conftest$ac_exeext
6880 if { (ac_try="$ac_link"
6881 case "(($ac_try" in
6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6884 esac
6885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6886 (eval "$ac_link") 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6890 { (case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893 esac
6894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895 (eval "$ac_try") 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 ac_cv_func_mmap_fixed_mapped=yes
6900 else
6901 echo "$as_me: program exited with status $ac_status" >&5
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6904
6905 ( exit $ac_status )
6906 ac_cv_func_mmap_fixed_mapped=no
6907 fi
6908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6909 fi
6910
6911
6912 fi
6913 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6914 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6915 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6916
6917 cat >>confdefs.h <<\_ACEOF
6918 #define HAVE_MMAP 1
6919 _ACEOF
6920
6921 fi
6922 rm -f conftest.mmap
6923
6924
6925 for ac_header in stdlib.h
6926 do
6927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 fi
6934 ac_res=`eval echo '${'$as_ac_Header'}'`
6935 { echo "$as_me:$LINENO: result: $ac_res" >&5
6936 echo "${ECHO_T}$ac_res" >&6; }
6937 else
6938 # Is the header compilable?
6939 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6941 cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h. */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947 $ac_includes_default
6948 #include <$ac_header>
6949 _ACEOF
6950 rm -f conftest.$ac_objext
6951 if { (ac_try="$ac_compile"
6952 case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955 esac
6956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957 (eval "$ac_compile") 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } && {
6964 test -z "$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 } && test -s conftest.$ac_objext; then
6967 ac_header_compiler=yes
6968 else
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6971
6972 ac_header_compiler=no
6973 fi
6974
6975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6977 echo "${ECHO_T}$ac_header_compiler" >&6; }
6978
6979 # Is the header present?
6980 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6982 cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h. */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 #include <$ac_header>
6989 _ACEOF
6990 if { (ac_try="$ac_cpp conftest.$ac_ext"
6991 case "(($ac_try" in
6992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993 *) ac_try_echo=$ac_try;;
6994 esac
6995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } >/dev/null && {
7003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7004 test ! -s conftest.err
7005 }; then
7006 ac_header_preproc=yes
7007 else
7008 echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7010
7011 ac_header_preproc=no
7012 fi
7013
7014 rm -f conftest.err conftest.$ac_ext
7015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7016 echo "${ECHO_T}$ac_header_preproc" >&6; }
7017
7018 # So? What about this header?
7019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7020 yes:no: )
7021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7025 ac_header_preproc=yes
7026 ;;
7027 no:yes:* )
7028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7035 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7040 ( cat <<\_ASBOX
7041 ## --------------------------------------- ##
7042 ## Report this to [email protected] ##
7043 ## --------------------------------------- ##
7044 _ASBOX
7045 ) | sed "s/^/$as_me: WARNING: /" >&2
7046 ;;
7047 esac
7048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053 eval "$as_ac_Header=\$ac_header_preproc"
7054 fi
7055 ac_res=`eval echo '${'$as_ac_Header'}'`
7056 { echo "$as_me:$LINENO: result: $ac_res" >&5
7057 echo "${ECHO_T}$ac_res" >&6; }
7058
7059 fi
7060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7061 cat >>confdefs.h <<_ACEOF
7062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7063 _ACEOF
7064
7065 fi
7066
7067 done
7068
7069 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
7070 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
7071 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074 if test "$cross_compiling" = yes; then
7075 ac_cv_func_realloc_0_nonnull=no
7076 else
7077 cat >conftest.$ac_ext <<_ACEOF
7078 /* confdefs.h. */
7079 _ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7083 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7084 # include <stdlib.h>
7085 #else
7086 char *realloc ();
7087 #endif
7088
7089 int
7090 main ()
7091 {
7092 return ! realloc (0, 0);
7093 ;
7094 return 0;
7095 }
7096 _ACEOF
7097 rm -f conftest$ac_exeext
7098 if { (ac_try="$ac_link"
7099 case "(($ac_try" in
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7102 esac
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_link") 2>&5
7105 ac_status=$?
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7108 { (case "(($ac_try" in
7109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110 *) ac_try_echo=$ac_try;;
7111 esac
7112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7113 (eval "$ac_try") 2>&5
7114 ac_status=$?
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; }; then
7117 ac_cv_func_realloc_0_nonnull=yes
7118 else
7119 echo "$as_me: program exited with status $ac_status" >&5
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7122
7123 ( exit $ac_status )
7124 ac_cv_func_realloc_0_nonnull=no
7125 fi
7126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7127 fi
7128
7129
7130 fi
7131 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
7132 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
7133 if test $ac_cv_func_realloc_0_nonnull = yes; then
7134
7135 cat >>confdefs.h <<\_ACEOF
7136 #define HAVE_REALLOC 1
7137 _ACEOF
7138
7139 else
7140 cat >>confdefs.h <<\_ACEOF
7141 #define HAVE_REALLOC 0
7142 _ACEOF
7143
7144 case " $LIBOBJS " in
7145 *" realloc.$ac_objext "* ) ;;
7146 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
7147 ;;
7148 esac
7149
7150
7151 cat >>confdefs.h <<\_ACEOF
7152 #define realloc rpl_realloc
7153 _ACEOF
7154
7155 fi
7156
7157
7158
7159 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7160 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
7161 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 rm -f conftest.sym conftest.file
7165 echo >conftest.file
7166 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7167 if test "$cross_compiling" = yes; then
7168 ac_cv_func_lstat_dereferences_slashed_symlink=no
7169 else
7170 cat >conftest.$ac_ext <<_ACEOF
7171 /* confdefs.h. */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176 $ac_includes_default
7177 int
7178 main ()
7179 {
7180 struct stat sbuf;
7181 /* Linux will dereference the symlink and fail.
7182 That is better in the sense that it means we will not
7183 have to compile and use the lstat wrapper. */
7184 return lstat ("conftest.sym/", &sbuf) == 0;
7185 ;
7186 return 0;
7187 }
7188 _ACEOF
7189 rm -f conftest$ac_exeext
7190 if { (ac_try="$ac_link"
7191 case "(($ac_try" in
7192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7194 esac
7195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7196 (eval "$ac_link") 2>&5
7197 ac_status=$?
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7200 { (case "(($ac_try" in
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7203 esac
7204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205 (eval "$ac_try") 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7209 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7210 else
7211 echo "$as_me: program exited with status $ac_status" >&5
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7214
7215 ( exit $ac_status )
7216 ac_cv_func_lstat_dereferences_slashed_symlink=no
7217 fi
7218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7219 fi
7220
7221
7222 else
7223 # If the `ln -s' command failed, then we probably don't even
7224 # have an lstat function.
7225 ac_cv_func_lstat_dereferences_slashed_symlink=no
7226 fi
7227 rm -f conftest.sym conftest.file
7228
7229 fi
7230 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7231 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7232
7233 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7234
7235 cat >>confdefs.h <<_ACEOF
7236 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7237 _ACEOF
7238
7239
7240 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7241 case " $LIBOBJS " in
7242 *" lstat.$ac_objext "* ) ;;
7243 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7244 ;;
7245 esac
7246
7247 fi
7248
7249 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7250 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
7251 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254 if test "$cross_compiling" = yes; then
7255 ac_cv_func_stat_empty_string_bug=yes
7256 else
7257 cat >conftest.$ac_ext <<_ACEOF
7258 /* confdefs.h. */
7259 _ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7263 $ac_includes_default
7264 int
7265 main ()
7266 {
7267 struct stat sbuf;
7268 return stat ("", &sbuf) == 0;
7269 ;
7270 return 0;
7271 }
7272 _ACEOF
7273 rm -f conftest$ac_exeext
7274 if { (ac_try="$ac_link"
7275 case "(($ac_try" in
7276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277 *) ac_try_echo=$ac_try;;
7278 esac
7279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280 (eval "$ac_link") 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7284 { (case "(($ac_try" in
7285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7286 *) ac_try_echo=$ac_try;;
7287 esac
7288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7289 (eval "$ac_try") 2>&5
7290 ac_status=$?
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; }; then
7293 ac_cv_func_stat_empty_string_bug=no
7294 else
7295 echo "$as_me: program exited with status $ac_status" >&5
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7298
7299 ( exit $ac_status )
7300 ac_cv_func_stat_empty_string_bug=yes
7301 fi
7302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7303 fi
7304
7305
7306 fi
7307 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7308 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
7309 if test $ac_cv_func_stat_empty_string_bug = yes; then
7310 case " $LIBOBJS " in
7311 *" stat.$ac_objext "* ) ;;
7312 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7313 ;;
7314 esac
7315
7316
7317 cat >>confdefs.h <<_ACEOF
7318 #define HAVE_STAT_EMPTY_STRING_BUG 1
7319 _ACEOF
7320
7321 fi
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341 for ac_func in __argz_count __argz_next __argz_stringify getcwd mempcpy mkdir munmap nl_langinfo pow setlocale sqrt stpcpy strcasecmp strchr strcspn strdup strstr strtoul
7342 do
7343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349 cat >conftest.$ac_ext <<_ACEOF
7350 /* confdefs.h. */
7351 _ACEOF
7352 cat confdefs.h >>conftest.$ac_ext
7353 cat >>conftest.$ac_ext <<_ACEOF
7354 /* end confdefs.h. */
7355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7357 #define $ac_func innocuous_$ac_func
7358
7359 /* System header to define __stub macros and hopefully few prototypes,
7360 which can conflict with char $ac_func (); below.
7361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7362 <limits.h> exists even on freestanding compilers. */
7363
7364 #ifdef __STDC__
7365 # include <limits.h>
7366 #else
7367 # include <assert.h>
7368 #endif
7369
7370 #undef $ac_func
7371
7372 /* Override any GCC internal prototype to avoid an error.
7373 Use char because int might match the return type of a GCC
7374 builtin and then its argument prototype would still apply. */
7375 #ifdef __cplusplus
7376 extern "C"
7377 #endif
7378 char $ac_func ();
7379 /* The GNU C library defines this for functions which it implements
7380 to always fail with ENOSYS. Some functions are actually named
7381 something starting with __ and the normal name is an alias. */
7382 #if defined __stub_$ac_func || defined __stub___$ac_func
7383 choke me
7384 #endif
7385
7386 int
7387 main ()
7388 {
7389 return $ac_func ();
7390 ;
7391 return 0;
7392 }
7393 _ACEOF
7394 rm -f conftest.$ac_objext conftest$ac_exeext
7395 if { (ac_try="$ac_link"
7396 case "(($ac_try" in
7397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7399 esac
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401 (eval "$ac_link") 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_c_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest$ac_exeext &&
7411 $as_test_x conftest$ac_exeext; then
7412 eval "$as_ac_var=yes"
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7416
7417 eval "$as_ac_var=no"
7418 fi
7419
7420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7421 conftest$ac_exeext conftest.$ac_ext
7422 fi
7423 ac_res=`eval echo '${'$as_ac_var'}'`
7424 { echo "$as_me:$LINENO: result: $ac_res" >&5
7425 echo "${ECHO_T}$ac_res" >&6; }
7426 if test `eval echo '${'$as_ac_var'}'` = yes; then
7427 cat >>confdefs.h <<_ACEOF
7428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7429 _ACEOF
7430
7431 fi
7432 done
7433
7434
7435
7436 # Extract the first word of "freetype-config", so it can be a program name with args.
7437 set dummy freetype-config; ac_word=$2
7438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7440 if test "${ac_cv_path_freetypeconfig+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443 case $freetypeconfig in
7444 [\\/]* | ?:[\\/]*)
7445 ac_cv_path_freetypeconfig="$freetypeconfig" # Let the user override the test with a path.
7446 ;;
7447 *)
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 as_dummy="$prefix/bin:$PATH"
7450 for as_dir in $as_dummy
7451 do
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_path_freetypeconfig="$as_dir/$ac_word$ac_exec_ext"
7457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 break 2
7459 fi
7460 done
7461 done
7462 IFS=$as_save_IFS
7463
7464 ;;
7465 esac
7466 fi
7467 freetypeconfig=$ac_cv_path_freetypeconfig
7468 if test -n "$freetypeconfig"; then
7469 { echo "$as_me:$LINENO: result: $freetypeconfig" >&5
7470 echo "${ECHO_T}$freetypeconfig" >&6; }
7471 else
7472 { echo "$as_me:$LINENO: result: no" >&5
7473 echo "${ECHO_T}no" >&6; }
7474 fi
7475
7476
7477 if test "x$freetypeconfig" = "x"
7478 then
7479 echo "freetype-config not found"
7480 else
7481 echo "freetype-config found"
7482 CXXFLAGS="$CXXFLAGS `$freetypeconfig --cflags`"
7483 LIBS="$LIBS `$freetypeconfig --libs`"
7484 fi
7485
7486 # Extract the first word of "libpng-config", so it can be a program name with args.
7487 set dummy libpng-config; ac_word=$2
7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490 if test "${ac_cv_path_pngconfig+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 case $pngconfig in
7494 [\\/]* | ?:[\\/]*)
7495 ac_cv_path_pngconfig="$pngconfig" # Let the user override the test with a path.
7496 ;;
7497 *)
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 as_dummy="$prefix/bin:$PATH"
7500 for as_dir in $as_dummy
7501 do
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7506 ac_cv_path_pngconfig="$as_dir/$ac_word$ac_exec_ext"
7507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 break 2
7509 fi
7510 done
7511 done
7512 IFS=$as_save_IFS
7513
7514 ;;
7515 esac
7516 fi
7517 pngconfig=$ac_cv_path_pngconfig
7518 if test -n "$pngconfig"; then
7519 { echo "$as_me:$LINENO: result: $pngconfig" >&5
7520 echo "${ECHO_T}$pngconfig" >&6; }
7521 else
7522 { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7524 fi
7525
7526
7527 if test "x$pngconfig" = "x"
7528 then
7529 echo "libpng-config not found. We search for libpng manually"
7530
7531 { echo "$as_me:$LINENO: checking for png_access_version_number in -lpng" >&5
7532 echo $ECHO_N "checking for png_access_version_number in -lpng... $ECHO_C" >&6; }
7533 if test "${ac_cv_lib_png_png_access_version_number+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536 ac_check_lib_save_LIBS=$LIBS
7537 LIBS="-lpng -lm -lz $LIBS"
7538 cat >conftest.$ac_ext <<_ACEOF
7539 /* confdefs.h. */
7540 _ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7544
7545 /* Override any GCC internal prototype to avoid an error.
7546 Use char because int might match the return type of a GCC
7547 builtin and then its argument prototype would still apply. */
7548 #ifdef __cplusplus
7549 extern "C"
7550 #endif
7551 char png_access_version_number ();
7552 int
7553 main ()
7554 {
7555 return png_access_version_number ();
7556 ;
7557 return 0;
7558 }
7559 _ACEOF
7560 rm -f conftest.$ac_objext conftest$ac_exeext
7561 if { (ac_try="$ac_link"
7562 case "(($ac_try" in
7563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7565 esac
7566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7567 (eval "$ac_link") 2>conftest.er1
7568 ac_status=$?
7569 grep -v '^ *+' conftest.er1 >conftest.err
7570 rm -f conftest.er1
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } && {
7574 test -z "$ac_c_werror_flag" ||
7575 test ! -s conftest.err
7576 } && test -s conftest$ac_exeext &&
7577 $as_test_x conftest$ac_exeext; then
7578 ac_cv_lib_png_png_access_version_number=yes
7579 else
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7582
7583 ac_cv_lib_png_png_access_version_number=no
7584 fi
7585
7586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7587 conftest$ac_exeext conftest.$ac_ext
7588 LIBS=$ac_check_lib_save_LIBS
7589 fi
7590 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_access_version_number" >&5
7591 echo "${ECHO_T}$ac_cv_lib_png_png_access_version_number" >&6; }
7592 if test $ac_cv_lib_png_png_access_version_number = yes; then
7593 cat >>confdefs.h <<_ACEOF
7594 #define HAVE_LIBPNG 1
7595 _ACEOF
7596
7597 LIBS="-lpng $LIBS"
7598
7599 else
7600 { { echo "$as_me:$LINENO: error: *** You need libpng" >&5
7601 echo "$as_me: error: *** You need libpng" >&2;}
7602 { (exit 1); exit 1; }; }
7603 fi
7604
7605 LIBS="$LIBS -lpng -lz"
7606 else
7607 CXXFLAGS="$CXXFLAGS `$pngconfig --cppflags` `libpng-config --cflags`"
7608 LIBS="$LIBS `$pngconfig --ldflags` `$pngconfig --libs`"
7609 fi
7610
7611
7612 SDL_VERSION=1.2.4
7613
7614 # Check whether --with-sdl-prefix was given.
7615 if test "${with_sdl_prefix+set}" = set; then
7616 withval=$with_sdl_prefix; sdl_prefix="$withval"
7617 else
7618 sdl_prefix=""
7619 fi
7620
7621
7622 # Check whether --with-sdl-exec-prefix was given.
7623 if test "${with_sdl_exec_prefix+set}" = set; then
7624 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
7625 else
7626 sdl_exec_prefix=""
7627 fi
7628
7629 # Check whether --enable-sdltest was given.
7630 if test "${enable_sdltest+set}" = set; then
7631 enableval=$enable_sdltest;
7632 else
7633 enable_sdltest=yes
7634 fi
7635
7636
7637 if test x$sdl_exec_prefix != x ; then
7638 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
7639 if test x${SDL_CONFIG+set} != xset ; then
7640 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
7641 fi
7642 fi
7643 if test x$sdl_prefix != x ; then
7644 sdl_args="$sdl_args --prefix=$sdl_prefix"
7645 if test x${SDL_CONFIG+set} != xset ; then
7646 SDL_CONFIG=$sdl_prefix/bin/sdl-config
7647 fi
7648 fi
7649
7650 if test "x$prefix" != xNONE; then
7651 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
7652 fi
7653 # Extract the first word of "sdl-config", so it can be a program name with args.
7654 set dummy sdl-config; ac_word=$2
7655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7657 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660 case $SDL_CONFIG in
7661 [\\/]* | ?:[\\/]*)
7662 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7663 ;;
7664 *)
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668 IFS=$as_save_IFS
7669 test -z "$as_dir" && as_dir=.
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7672 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 break 2
7675 fi
7676 done
7677 done
7678 IFS=$as_save_IFS
7679
7680 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7681 ;;
7682 esac
7683 fi
7684 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
7685 if test -n "$SDL_CONFIG"; then
7686 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
7687 echo "${ECHO_T}$SDL_CONFIG" >&6; }
7688 else
7689 { echo "$as_me:$LINENO: result: no" >&5
7690 echo "${ECHO_T}no" >&6; }
7691 fi
7692
7693
7694 min_sdl_version=$SDL_VERSION
7695 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
7696 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
7697 no_sdl=""
7698 if test "$SDL_CONFIG" = "no" ; then
7699 no_sdl=yes
7700 else
7701 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
7702 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
7703
7704 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
7705 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7706 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
7707 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7708 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
7709 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7710 if test "x$enable_sdltest" = "xyes" ; then
7711 ac_save_CFLAGS="$CFLAGS"
7712 ac_save_CXXFLAGS="$CXXFLAGS"
7713 ac_save_LIBS="$LIBS"
7714 CFLAGS="$CFLAGS $SDL_CFLAGS"
7715 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7716 LIBS="$LIBS $SDL_LIBS"
7717 rm -f conf.sdltest
7718 if test "$cross_compiling" = yes; then
7719 echo $ac_n "cross compiling; assumed OK... $ac_c"
7720 else
7721 cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h. */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727
7728 #include <stdio.h>
7729 #include <stdlib.h>
7730 #include <string.h>
7731 #include "SDL.h"
7732
7733 char*
7734 my_strdup (char *str)
7735 {
7736 char *new_str;
7737
7738 if (str)
7739 {
7740 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
7741 strcpy (new_str, str);
7742 }
7743 else
7744 new_str = NULL;
7745
7746 return new_str;
7747 }
7748
7749 int main (int argc, char *argv[])
7750 {
7751 int major, minor, micro;
7752 char *tmp_version;
7753
7754 /* This hangs on some systems (?)
7755 system ("touch conf.sdltest");
7756 */
7757 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
7758
7759 /* HP/UX 9 (%@#!) writes to sscanf strings */
7760 tmp_version = my_strdup("$min_sdl_version");
7761 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7762 printf("%s, bad version string\n", "$min_sdl_version");
7763 exit(1);
7764 }
7765
7766 if (($sdl_major_version > major) ||
7767 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
7768 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
7769 {
7770 return 0;
7771 }
7772 else
7773 {
7774 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
7775 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
7776 printf("*** best to upgrade to the required version.\n");
7777 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
7778 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
7779 printf("*** config.cache before re-running configure\n");
7780 return 1;
7781 }
7782 }
7783
7784
7785 _ACEOF
7786 rm -f conftest$ac_exeext
7787 if { (ac_try="$ac_link"
7788 case "(($ac_try" in
7789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790 *) ac_try_echo=$ac_try;;
7791 esac
7792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7793 (eval "$ac_link") 2>&5
7794 ac_status=$?
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7797 { (case "(($ac_try" in
7798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7800 esac
7801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7802 (eval "$ac_try") 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; }; then
7806 :
7807 else
7808 echo "$as_me: program exited with status $ac_status" >&5
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7811
7812 ( exit $ac_status )
7813 no_sdl=yes
7814 fi
7815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7816 fi
7817
7818
7819 CFLAGS="$ac_save_CFLAGS"
7820 CXXFLAGS="$ac_save_CXXFLAGS"
7821 LIBS="$ac_save_LIBS"
7822 fi
7823 fi
7824 if test "x$no_sdl" = x ; then
7825 { echo "$as_me:$LINENO: result: yes" >&5
7826 echo "${ECHO_T}yes" >&6; }
7827 :
7828 else
7829 { echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6; }
7831 if test "$SDL_CONFIG" = "no" ; then
7832 echo "*** The sdl-config script installed by SDL could not be found"
7833 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
7834 echo "*** your path, or set the SDL_CONFIG environment variable to the"
7835 echo "*** full path to sdl-config."
7836 else
7837 if test -f conf.sdltest ; then
7838 :
7839 else
7840 echo "*** Could not run SDL test program, checking why..."
7841 CFLAGS="$CFLAGS $SDL_CFLAGS"
7842 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7843 LIBS="$LIBS $SDL_LIBS"
7844 cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h. */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850
7851 #include <stdio.h>
7852 #include "SDL.h"
7853
7854 int main(int argc, char *argv[])
7855 { return 0; }
7856 #undef main
7857 #define main K_and_R_C_main
7858
7859 int
7860 main ()
7861 {
7862 return 0;
7863 ;
7864 return 0;
7865 }
7866 _ACEOF
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (ac_try="$ac_link"
7869 case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_link") 2>conftest.er1
7875 ac_status=$?
7876 grep -v '^ *+' conftest.er1 >conftest.err
7877 rm -f conftest.er1
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } && {
7881 test -z "$ac_c_werror_flag" ||
7882 test ! -s conftest.err
7883 } && test -s conftest$ac_exeext &&
7884 $as_test_x conftest$ac_exeext; then
7885 echo "*** The test program compiled, but did not run. This usually means"
7886 echo "*** that the run-time linker is not finding SDL or finding the wrong"
7887 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
7888 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7889 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7890 echo "*** is required on your system"
7891 echo "***"
7892 echo "*** If you have an old version installed, it is best to remove it, although"
7893 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7894 else
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7897
7898 echo "*** The test program failed to compile or link. See the file config.log for the"
7899 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
7900 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
7901 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
7902 fi
7903
7904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7905 conftest$ac_exeext conftest.$ac_ext
7906 CFLAGS="$ac_save_CFLAGS"
7907 CXXFLAGS="$ac_save_CXXFLAGS"
7908 LIBS="$ac_save_LIBS"
7909 fi
7910 fi
7911 SDL_CFLAGS=""
7912 SDL_LIBS=""
7913 { { echo "$as_me:$LINENO: error: *** You need libSDL >= $SDL_VERSION " >&5
7914 echo "$as_me: error: *** You need libSDL >= $SDL_VERSION " >&2;}
7915 { (exit 1); exit 1; }; }
7916 fi
7917
7918
7919 rm -f conf.sdltest
7920
7921 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7922 LIBS="$LIBS $SDL_LIBS"
7923
7924
7925 MKINSTALLDIRS=
7926 if test -n "$ac_aux_dir"; then
7927 case "$ac_aux_dir" in
7928 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7929 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7930 esac
7931 fi
7932 if test -z "$MKINSTALLDIRS"; then
7933 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7934 fi
7935
7936
7937
7938 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7939 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
7940 # Check whether --enable-nls was given.
7941 if test "${enable_nls+set}" = set; then
7942 enableval=$enable_nls; USE_NLS=$enableval
7943 else
7944 USE_NLS=yes
7945 fi
7946
7947 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7948 echo "${ECHO_T}$USE_NLS" >&6; }
7949
7950
7951
7952
7953
7954
7955 # Prepare PATH_SEPARATOR.
7956 # The user is always right.
7957 if test "${PATH_SEPARATOR+set}" != set; then
7958 echo "#! /bin/sh" >conf$$.sh
7959 echo "exit 0" >>conf$$.sh
7960 chmod +x conf$$.sh
7961 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7962 PATH_SEPARATOR=';'
7963 else
7964 PATH_SEPARATOR=:
7965 fi
7966 rm -f conf$$.sh
7967 fi
7968
7969 # Find out how to test for executable files. Don't use a zero-byte file,
7970 # as systems may use methods other than mode bits to determine executability.
7971 cat >conf$$.file <<_ASEOF
7972 #! /bin/sh
7973 exit 0
7974 _ASEOF
7975 chmod +x conf$$.file
7976 if test -x conf$$.file >/dev/null 2>&1; then
7977 ac_executable_p="test -x"
7978 else
7979 ac_executable_p="test -f"
7980 fi
7981 rm -f conf$$.file
7982
7983 # Extract the first word of "msgfmt", so it can be a program name with args.
7984 set dummy msgfmt; ac_word=$2
7985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7987 if test "${ac_cv_path_MSGFMT+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990 case "$MSGFMT" in
7991 [\\/]* | ?:[\\/]*)
7992 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7993 ;;
7994 *)
7995 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7996 for ac_dir in $PATH; do
7997 IFS="$ac_save_IFS"
7998 test -z "$ac_dir" && ac_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8001 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
8002 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8003 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8004 break 2
8005 fi
8006 fi
8007 done
8008 done
8009 IFS="$ac_save_IFS"
8010 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8011 ;;
8012 esac
8013 fi
8014 MSGFMT="$ac_cv_path_MSGFMT"
8015 if test "$MSGFMT" != ":"; then
8016 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
8017 echo "${ECHO_T}$MSGFMT" >&6; }
8018 else
8019 { echo "$as_me:$LINENO: result: no" >&5
8020 echo "${ECHO_T}no" >&6; }
8021 fi
8022
8023 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8024 set dummy gmsgfmt; ac_word=$2
8025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8027 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030 case $GMSGFMT in
8031 [\\/]* | ?:[\\/]*)
8032 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8033 ;;
8034 *)
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8037 do
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8042 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8045 fi
8046 done
8047 done
8048 IFS=$as_save_IFS
8049
8050 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8051 ;;
8052 esac
8053 fi
8054 GMSGFMT=$ac_cv_path_GMSGFMT
8055 if test -n "$GMSGFMT"; then
8056 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8057 echo "${ECHO_T}$GMSGFMT" >&6; }
8058 else
8059 { echo "$as_me:$LINENO: result: no" >&5
8060 echo "${ECHO_T}no" >&6; }
8061 fi
8062
8063
8064
8065
8066 # Prepare PATH_SEPARATOR.
8067 # The user is always right.
8068 if test "${PATH_SEPARATOR+set}" != set; then
8069 echo "#! /bin/sh" >conf$$.sh
8070 echo "exit 0" >>conf$$.sh
8071 chmod +x conf$$.sh
8072 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8073 PATH_SEPARATOR=';'
8074 else
8075 PATH_SEPARATOR=:
8076 fi
8077 rm -f conf$$.sh
8078 fi
8079
8080 # Find out how to test for executable files. Don't use a zero-byte file,
8081 # as systems may use methods other than mode bits to determine executability.
8082 cat >conf$$.file <<_ASEOF
8083 #! /bin/sh
8084 exit 0
8085 _ASEOF
8086 chmod +x conf$$.file
8087 if test -x conf$$.file >/dev/null 2>&1; then
8088 ac_executable_p="test -x"
8089 else
8090 ac_executable_p="test -f"
8091 fi
8092 rm -f conf$$.file
8093
8094 # Extract the first word of "xgettext", so it can be a program name with args.
8095 set dummy xgettext; ac_word=$2
8096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101 case "$XGETTEXT" in
8102 [\\/]* | ?:[\\/]*)
8103 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8104 ;;
8105 *)
8106 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8107 for ac_dir in $PATH; do
8108 IFS="$ac_save_IFS"
8109 test -z "$ac_dir" && ac_dir=.
8110 for ac_exec_ext in '' $ac_executable_extensions; do
8111 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8112 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8113 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8114 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8115 break 2
8116 fi
8117 fi
8118 done
8119 done
8120 IFS="$ac_save_IFS"
8121 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8122 ;;
8123 esac
8124 fi
8125 XGETTEXT="$ac_cv_path_XGETTEXT"
8126 if test "$XGETTEXT" != ":"; then
8127 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8128 echo "${ECHO_T}$XGETTEXT" >&6; }
8129 else
8130 { echo "$as_me:$LINENO: result: no" >&5
8131 echo "${ECHO_T}no" >&6; }
8132 fi
8133
8134 rm -f messages.po
8135
8136
8137 # Prepare PATH_SEPARATOR.
8138 # The user is always right.
8139 if test "${PATH_SEPARATOR+set}" != set; then
8140 echo "#! /bin/sh" >conf$$.sh
8141 echo "exit 0" >>conf$$.sh
8142 chmod +x conf$$.sh
8143 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8144 PATH_SEPARATOR=';'
8145 else
8146 PATH_SEPARATOR=:
8147 fi
8148 rm -f conf$$.sh
8149 fi
8150
8151 # Find out how to test for executable files. Don't use a zero-byte file,
8152 # as systems may use methods other than mode bits to determine executability.
8153 cat >conf$$.file <<_ASEOF
8154 #! /bin/sh
8155 exit 0
8156 _ASEOF
8157 chmod +x conf$$.file
8158 if test -x conf$$.file >/dev/null 2>&1; then
8159 ac_executable_p="test -x"
8160 else
8161 ac_executable_p="test -f"
8162 fi
8163 rm -f conf$$.file
8164
8165 # Extract the first word of "msgmerge", so it can be a program name with args.
8166 set dummy msgmerge; ac_word=$2
8167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8169 if test "${ac_cv_path_MSGMERGE+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172 case "$MSGMERGE" in
8173 [\\/]* | ?:[\\/]*)
8174 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8175 ;;
8176 *)
8177 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8178 for ac_dir in $PATH; do
8179 IFS="$ac_save_IFS"
8180 test -z "$ac_dir" && ac_dir=.
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8183 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
8184 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8185 break 2
8186 fi
8187 fi
8188 done
8189 done
8190 IFS="$ac_save_IFS"
8191 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8192 ;;
8193 esac
8194 fi
8195 MSGMERGE="$ac_cv_path_MSGMERGE"
8196 if test "$MSGMERGE" != ":"; then
8197 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
8198 echo "${ECHO_T}$MSGMERGE" >&6; }
8199 else
8200 { echo "$as_me:$LINENO: result: no" >&5
8201 echo "${ECHO_T}no" >&6; }
8202 fi
8203
8204
8205 if test "$GMSGFMT" != ":"; then
8206 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
8207 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8208 : ;
8209 else
8210 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
8211 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
8212 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
8213 GMSGFMT=":"
8214 fi
8215 fi
8216
8217 if test "$XGETTEXT" != ":"; then
8218 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8219 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8220 : ;
8221 else
8222 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8223 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
8224 XGETTEXT=":"
8225 fi
8226 rm -f messages.po
8227 fi
8228
8229 ac_config_commands="$ac_config_commands default-1"
8230
8231
8232
8233 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
8234 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
8235 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238 ac_check_lib_save_LIBS=$LIBS
8239 LIBS="-lcposix $LIBS"
8240 cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h. */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246
8247 /* Override any GCC internal prototype to avoid an error.
8248 Use char because int might match the return type of a GCC
8249 builtin and then its argument prototype would still apply. */
8250 #ifdef __cplusplus
8251 extern "C"
8252 #endif
8253 char strerror ();
8254 int
8255 main ()
8256 {
8257 return strerror ();
8258 ;
8259 return 0;
8260 }
8261 _ACEOF
8262 rm -f conftest.$ac_objext conftest$ac_exeext
8263 if { (ac_try="$ac_link"
8264 case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_link") 2>conftest.er1
8270 ac_status=$?
8271 grep -v '^ *+' conftest.er1 >conftest.err
8272 rm -f conftest.er1
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest$ac_exeext &&
8279 $as_test_x conftest$ac_exeext; then
8280 ac_cv_lib_cposix_strerror=yes
8281 else
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8284
8285 ac_cv_lib_cposix_strerror=no
8286 fi
8287
8288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8289 conftest$ac_exeext conftest.$ac_ext
8290 LIBS=$ac_check_lib_save_LIBS
8291 fi
8292 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8293 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8294 if test $ac_cv_lib_cposix_strerror = yes; then
8295 LIBS="$LIBS -lcposix"
8296 fi
8297
8298
8299
8300
8301 { echo "$as_me:$LINENO: checking for signed" >&5
8302 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8303 if test "${bh_cv_c_signed+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
8306 cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h. */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8312
8313 int
8314 main ()
8315 {
8316 signed char x;
8317 ;
8318 return 0;
8319 }
8320 _ACEOF
8321 rm -f conftest.$ac_objext
8322 if { (ac_try="$ac_compile"
8323 case "(($ac_try" in
8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325 *) ac_try_echo=$ac_try;;
8326 esac
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328 (eval "$ac_compile") 2>conftest.er1
8329 ac_status=$?
8330 grep -v '^ *+' conftest.er1 >conftest.err
8331 rm -f conftest.er1
8332 cat conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && {
8335 test -z "$ac_c_werror_flag" ||
8336 test ! -s conftest.err
8337 } && test -s conftest.$ac_objext; then
8338 bh_cv_c_signed=yes
8339 else
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8342
8343 bh_cv_c_signed=no
8344 fi
8345
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 fi
8348 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8349 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8350 if test $bh_cv_c_signed = no; then
8351
8352 cat >>confdefs.h <<\_ACEOF
8353 #define signed
8354 _ACEOF
8355
8356 fi
8357
8358 { echo "$as_me:$LINENO: checking for off_t" >&5
8359 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8360 if test "${ac_cv_type_off_t+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363 cat >conftest.$ac_ext <<_ACEOF
8364 /* confdefs.h. */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8369 $ac_includes_default
8370 typedef off_t ac__type_new_;
8371 int
8372 main ()
8373 {
8374 if ((ac__type_new_ *) 0)
8375 return 0;
8376 if (sizeof (ac__type_new_))
8377 return 0;
8378 ;
8379 return 0;
8380 }
8381 _ACEOF
8382 rm -f conftest.$ac_objext
8383 if { (ac_try="$ac_compile"
8384 case "(($ac_try" in
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8387 esac
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389 (eval "$ac_compile") 2>conftest.er1
8390 ac_status=$?
8391 grep -v '^ *+' conftest.er1 >conftest.err
8392 rm -f conftest.er1
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } && {
8396 test -z "$ac_c_werror_flag" ||
8397 test ! -s conftest.err
8398 } && test -s conftest.$ac_objext; then
8399 ac_cv_type_off_t=yes
8400 else
8401 echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.$ac_ext >&5
8403
8404 ac_cv_type_off_t=no
8405 fi
8406
8407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 fi
8409 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8410 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8411 if test $ac_cv_type_off_t = yes; then
8412 :
8413 else
8414
8415 cat >>confdefs.h <<_ACEOF
8416 #define off_t long int
8417 _ACEOF
8418
8419 fi
8420
8421
8422 { echo "$as_me:$LINENO: checking for long long" >&5
8423 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8424 if test "${ac_cv_type_long_long+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427 cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h. */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433 long long ll = 1LL; int i = 63;
8434 int
8435 main ()
8436 {
8437 long long llmax = (long long) -1;
8438 return ll << i | ll >> i | llmax / ll | llmax % ll;
8439 ;
8440 return 0;
8441 }
8442 _ACEOF
8443 rm -f conftest.$ac_objext conftest$ac_exeext
8444 if { (ac_try="$ac_link"
8445 case "(($ac_try" in
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8448 esac
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_link") 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } && {
8457 test -z "$ac_c_werror_flag" ||
8458 test ! -s conftest.err
8459 } && test -s conftest$ac_exeext &&
8460 $as_test_x conftest$ac_exeext; then
8461 ac_cv_type_long_long=yes
8462 else
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8465
8466 ac_cv_type_long_long=no
8467 fi
8468
8469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8470 conftest$ac_exeext conftest.$ac_ext
8471 fi
8472 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8473 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8474 if test $ac_cv_type_long_long = yes; then
8475
8476 cat >>confdefs.h <<\_ACEOF
8477 #define HAVE_LONG_LONG 1
8478 _ACEOF
8479
8480 fi
8481
8482
8483 { echo "$as_me:$LINENO: checking for long double" >&5
8484 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8485 if test "${gt_cv_c_long_double+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488 if test "$GCC" = yes; then
8489 gt_cv_c_long_double=yes
8490 else
8491 cat >conftest.$ac_ext <<_ACEOF
8492 /* confdefs.h. */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8497
8498 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8499 long double foo = 0.0;
8500 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8501 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8502
8503 int
8504 main ()
8505 {
8506
8507 ;
8508 return 0;
8509 }
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8513 case "(($ac_try" in
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8516 esac
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_compile") 2>conftest.er1
8519 ac_status=$?
8520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && {
8525 test -z "$ac_c_werror_flag" ||
8526 test ! -s conftest.err
8527 } && test -s conftest.$ac_objext; then
8528 gt_cv_c_long_double=yes
8529 else
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533 gt_cv_c_long_double=no
8534 fi
8535
8536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 fi
8538 fi
8539 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8540 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8541 if test $gt_cv_c_long_double = yes; then
8542
8543 cat >>confdefs.h <<\_ACEOF
8544 #define HAVE_LONG_DOUBLE 1
8545 _ACEOF
8546
8547 fi
8548
8549
8550 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8551 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8552 if test "${gt_cv_c_wchar_t+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555 cat >conftest.$ac_ext <<_ACEOF
8556 /* confdefs.h. */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8561 #include <stddef.h>
8562 wchar_t foo = (wchar_t)'\0';
8563 int
8564 main ()
8565 {
8566
8567 ;
8568 return 0;
8569 }
8570 _ACEOF
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8573 case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_compile") 2>conftest.er1
8579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } && {
8585 test -z "$ac_c_werror_flag" ||
8586 test ! -s conftest.err
8587 } && test -s conftest.$ac_objext; then
8588 gt_cv_c_wchar_t=yes
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8592
8593 gt_cv_c_wchar_t=no
8594 fi
8595
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597 fi
8598 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8599 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8600 if test $gt_cv_c_wchar_t = yes; then
8601
8602 cat >>confdefs.h <<\_ACEOF
8603 #define HAVE_WCHAR_T 1
8604 _ACEOF
8605
8606 fi
8607
8608
8609 { echo "$as_me:$LINENO: checking for wint_t" >&5
8610 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8611 if test "${gt_cv_c_wint_t+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614 cat >conftest.$ac_ext <<_ACEOF
8615 /* confdefs.h. */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 #include <wchar.h>
8621 wint_t foo = (wchar_t)'\0';
8622 int
8623 main ()
8624 {
8625
8626 ;
8627 return 0;
8628 }
8629 _ACEOF
8630 rm -f conftest.$ac_objext
8631 if { (ac_try="$ac_compile"
8632 case "(($ac_try" in
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8635 esac
8636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_compile") 2>conftest.er1
8638 ac_status=$?
8639 grep -v '^ *+' conftest.er1 >conftest.err
8640 rm -f conftest.er1
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } && {
8644 test -z "$ac_c_werror_flag" ||
8645 test ! -s conftest.err
8646 } && test -s conftest.$ac_objext; then
8647 gt_cv_c_wint_t=yes
8648 else
8649 echo "$as_me: failed program was:" >&5
8650 sed 's/^/| /' conftest.$ac_ext >&5
8651
8652 gt_cv_c_wint_t=no
8653 fi
8654
8655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8656 fi
8657 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8658 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8659 if test $gt_cv_c_wint_t = yes; then
8660
8661 cat >>confdefs.h <<\_ACEOF
8662 #define HAVE_WINT_T 1
8663 _ACEOF
8664
8665 fi
8666
8667
8668 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8669 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8670 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673 cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h. */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8679 #include <sys/types.h>
8680 #include <inttypes.h>
8681 int
8682 main ()
8683 {
8684 uintmax_t i = (uintmax_t) -1;
8685 ;
8686 return 0;
8687 }
8688 _ACEOF
8689 rm -f conftest.$ac_objext
8690 if { (ac_try="$ac_compile"
8691 case "(($ac_try" in
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8694 esac
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_compile") 2>conftest.er1
8697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } && {
8703 test -z "$ac_c_werror_flag" ||
8704 test ! -s conftest.err
8705 } && test -s conftest.$ac_objext; then
8706 jm_ac_cv_header_inttypes_h=yes
8707 else
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711 jm_ac_cv_header_inttypes_h=no
8712 fi
8713
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 fi
8716 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8717 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
8718 if test $jm_ac_cv_header_inttypes_h = yes; then
8719
8720 cat >>confdefs.h <<_ACEOF
8721 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8722 _ACEOF
8723
8724 fi
8725
8726
8727 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8728 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8729 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 else
8732 cat >conftest.$ac_ext <<_ACEOF
8733 /* confdefs.h. */
8734 _ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8738 #include <sys/types.h>
8739 #include <stdint.h>
8740 int
8741 main ()
8742 {
8743 uintmax_t i = (uintmax_t) -1;
8744 ;
8745 return 0;
8746 }
8747 _ACEOF
8748 rm -f conftest.$ac_objext
8749 if { (ac_try="$ac_compile"
8750 case "(($ac_try" in
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8753 esac
8754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_compile") 2>conftest.er1
8756 ac_status=$?
8757 grep -v '^ *+' conftest.er1 >conftest.err
8758 rm -f conftest.er1
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } && {
8762 test -z "$ac_c_werror_flag" ||
8763 test ! -s conftest.err
8764 } && test -s conftest.$ac_objext; then
8765 jm_ac_cv_header_stdint_h=yes
8766 else
8767 echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8769
8770 jm_ac_cv_header_stdint_h=no
8771 fi
8772
8773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774 fi
8775 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8776 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
8777 if test $jm_ac_cv_header_stdint_h = yes; then
8778
8779 cat >>confdefs.h <<_ACEOF
8780 #define HAVE_STDINT_H_WITH_UINTMAX 1
8781 _ACEOF
8782
8783 fi
8784
8785
8786
8787
8788 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8789 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8790 if test "${gt_cv_c_intmax_t+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793 cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h. */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799
8800 #include <stddef.h>
8801 #include <stdlib.h>
8802 #if HAVE_STDINT_H_WITH_UINTMAX
8803 #include <stdint.h>
8804 #endif
8805 #if HAVE_INTTYPES_H_WITH_UINTMAX
8806 #include <inttypes.h>
8807 #endif
8808
8809 int
8810 main ()
8811 {
8812 intmax_t x = -1;
8813 ;
8814 return 0;
8815 }
8816 _ACEOF
8817 rm -f conftest.$ac_objext
8818 if { (ac_try="$ac_compile"
8819 case "(($ac_try" in
8820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821 *) ac_try_echo=$ac_try;;
8822 esac
8823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824 (eval "$ac_compile") 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } && {
8831 test -z "$ac_c_werror_flag" ||
8832 test ! -s conftest.err
8833 } && test -s conftest.$ac_objext; then
8834 gt_cv_c_intmax_t=yes
8835 else
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8838
8839 gt_cv_c_intmax_t=no
8840 fi
8841
8842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843 fi
8844 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8845 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8846 if test $gt_cv_c_intmax_t = yes; then
8847
8848 cat >>confdefs.h <<\_ACEOF
8849 #define HAVE_INTMAX_T 1
8850 _ACEOF
8851
8852 fi
8853
8854
8855
8856 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8857 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8858 if test "${gt_cv_func_printf_posix+set}" = set; then
8859 echo $ECHO_N "(cached) $ECHO_C" >&6
8860 else
8861
8862 if test "$cross_compiling" = yes; then
8863
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h. */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8870
8871 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8872 notposix
8873 #endif
8874
8875 _ACEOF
8876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8877 $EGREP "notposix" >/dev/null 2>&1; then
8878 gt_cv_func_printf_posix="guessing no"
8879 else
8880 gt_cv_func_printf_posix="guessing yes"
8881 fi
8882 rm -f conftest*
8883
8884
8885 else
8886 cat >conftest.$ac_ext <<_ACEOF
8887 /* confdefs.h. */
8888 _ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892
8893 #include <stdio.h>
8894 #include <string.h>
8895 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8896 dollar expansion (possibly an autoconf bug). */
8897 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8898 static char buf[100];
8899 int main ()
8900 {
8901 sprintf (buf, format, 33, 55);
8902 return (strcmp (buf, "55 33") != 0);
8903 }
8904 _ACEOF
8905 rm -f conftest$ac_exeext
8906 if { (ac_try="$ac_link"
8907 case "(($ac_try" in
8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909 *) ac_try_echo=$ac_try;;
8910 esac
8911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8912 (eval "$ac_link") 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8916 { (case "(($ac_try" in
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8919 esac
8920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8921 (eval "$ac_try") 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
8925 gt_cv_func_printf_posix=yes
8926 else
8927 echo "$as_me: program exited with status $ac_status" >&5
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8930
8931 ( exit $ac_status )
8932 gt_cv_func_printf_posix=no
8933 fi
8934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8935 fi
8936
8937
8938
8939 fi
8940 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8941 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8942 case $gt_cv_func_printf_posix in
8943 *yes)
8944
8945 cat >>confdefs.h <<\_ACEOF
8946 #define HAVE_POSIX_PRINTF 1
8947 _ACEOF
8948
8949 ;;
8950 esac
8951
8952
8953 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8954 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
8955 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 else
8958 cat >conftest.$ac_ext <<_ACEOF
8959 /* confdefs.h. */
8960 _ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8964
8965 #include <features.h>
8966 #ifdef __GNU_LIBRARY__
8967 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8968 Lucky GNU user
8969 #endif
8970 #endif
8971
8972 _ACEOF
8973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8974 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8975 ac_cv_gnu_library_2_1=yes
8976 else
8977 ac_cv_gnu_library_2_1=no
8978 fi
8979 rm -f conftest*
8980
8981
8982
8983 fi
8984 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8985 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
8986
8987 GLIBC21="$ac_cv_gnu_library_2_1"
8988
8989
8990
8991
8992 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8993 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
8994 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997
8998 if test "$cross_compiling" = yes; then
8999
9000 # Guess based on the CPU.
9001 case "$host_cpu" in
9002 alpha* | i3456786 | m68k | s390*)
9003 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9004 *)
9005 gt_cv_int_divbyzero_sigfpe="guessing no";;
9006 esac
9007
9008 else
9009 cat >conftest.$ac_ext <<_ACEOF
9010 /* confdefs.h. */
9011 _ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9015
9016 #include <stdlib.h>
9017 #include <signal.h>
9018
9019 static void
9020 #ifdef __cplusplus
9021 sigfpe_handler (int sig)
9022 #else
9023 sigfpe_handler (sig) int sig;
9024 #endif
9025 {
9026 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9027 exit (sig != SIGFPE);
9028 }
9029
9030 int x = 1;
9031 int y = 0;
9032 int z;
9033 int nan;
9034
9035 int main ()
9036 {
9037 signal (SIGFPE, sigfpe_handler);
9038 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9039 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9040 signal (SIGTRAP, sigfpe_handler);
9041 #endif
9042 /* Linux/SPARC yields signal SIGILL. */
9043 #if defined (__sparc__) && defined (__linux__)
9044 signal (SIGILL, sigfpe_handler);
9045 #endif
9046
9047 z = x / y;
9048 nan = y / y;
9049 exit (1);
9050 }
9051
9052 _ACEOF
9053 rm -f conftest$ac_exeext
9054 if { (ac_try="$ac_link"
9055 case "(($ac_try" in
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9058 esac
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060 (eval "$ac_link") 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9064 { (case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_try") 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 gt_cv_int_divbyzero_sigfpe=yes
9074 else
9075 echo "$as_me: program exited with status $ac_status" >&5
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9078
9079 ( exit $ac_status )
9080 gt_cv_int_divbyzero_sigfpe=no
9081 fi
9082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9083 fi
9084
9085
9086
9087 fi
9088 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9089 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9090 case "$gt_cv_int_divbyzero_sigfpe" in
9091 *yes) value=1;;
9092 *) value=0;;
9093 esac
9094
9095 cat >>confdefs.h <<_ACEOF
9096 #define INTDIV0_RAISES_SIGFPE $value
9097 _ACEOF
9098
9099
9100
9101 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9102 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9103 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106 cat >conftest.$ac_ext <<_ACEOF
9107 /* confdefs.h. */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 unsigned long long ull = 1ULL; int i = 63;
9113 int
9114 main ()
9115 {
9116 unsigned long long ullmax = (unsigned long long) -1;
9117 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9118 ;
9119 return 0;
9120 }
9121 _ACEOF
9122 rm -f conftest.$ac_objext conftest$ac_exeext
9123 if { (ac_try="$ac_link"
9124 case "(($ac_try" in
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9127 esac
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_link") 2>conftest.er1
9130 ac_status=$?
9131 grep -v '^ *+' conftest.er1 >conftest.err
9132 rm -f conftest.er1
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } && {
9136 test -z "$ac_c_werror_flag" ||
9137 test ! -s conftest.err
9138 } && test -s conftest$ac_exeext &&
9139 $as_test_x conftest$ac_exeext; then
9140 ac_cv_type_unsigned_long_long=yes
9141 else
9142 echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9144
9145 ac_cv_type_unsigned_long_long=no
9146 fi
9147
9148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9149 conftest$ac_exeext conftest.$ac_ext
9150 fi
9151 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9152 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9153 if test $ac_cv_type_unsigned_long_long = yes; then
9154
9155 cat >>confdefs.h <<\_ACEOF
9156 #define HAVE_UNSIGNED_LONG_LONG 1
9157 _ACEOF
9158
9159 fi
9160
9161
9162
9163
9164 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
9165
9166 test $ac_cv_type_unsigned_long_long = yes \
9167 && ac_type='unsigned long long' \
9168 || ac_type='unsigned long'
9169
9170 cat >>confdefs.h <<_ACEOF
9171 #define uintmax_t $ac_type
9172 _ACEOF
9173
9174 else
9175
9176 cat >>confdefs.h <<\_ACEOF
9177 #define HAVE_UINTMAX_T 1
9178 _ACEOF
9179
9180 fi
9181
9182
9183 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9184 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9185 if test "${gt_cv_header_inttypes_h+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9187 else
9188
9189 cat >conftest.$ac_ext <<_ACEOF
9190 /* confdefs.h. */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9195 #include <sys/types.h>
9196 #include <inttypes.h>
9197 int
9198 main ()
9199 {
9200
9201 ;
9202 return 0;
9203 }
9204 _ACEOF
9205 rm -f conftest.$ac_objext
9206 if { (ac_try="$ac_compile"
9207 case "(($ac_try" in
9208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209 *) ac_try_echo=$ac_try;;
9210 esac
9211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212 (eval "$ac_compile") 2>conftest.er1
9213 ac_status=$?
9214 grep -v '^ *+' conftest.er1 >conftest.err
9215 rm -f conftest.er1
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } && {
9219 test -z "$ac_c_werror_flag" ||
9220 test ! -s conftest.err
9221 } && test -s conftest.$ac_objext; then
9222 gt_cv_header_inttypes_h=yes
9223 else
9224 echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.$ac_ext >&5
9226
9227 gt_cv_header_inttypes_h=no
9228 fi
9229
9230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231
9232 fi
9233 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9234 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
9235 if test $gt_cv_header_inttypes_h = yes; then
9236
9237 cat >>confdefs.h <<_ACEOF
9238 #define HAVE_INTTYPES_H 1
9239 _ACEOF
9240
9241 fi
9242
9243
9244
9245 if test $gt_cv_header_inttypes_h = yes; then
9246 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9247 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
9248 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 else
9251
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h. */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9258 #include <inttypes.h>
9259 #ifdef PRId32
9260 char *p = PRId32;
9261 #endif
9262
9263 int
9264 main ()
9265 {
9266
9267 ;
9268 return 0;
9269 }
9270 _ACEOF
9271 rm -f conftest.$ac_objext
9272 if { (ac_try="$ac_compile"
9273 case "(($ac_try" in
9274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9275 *) ac_try_echo=$ac_try;;
9276 esac
9277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9278 (eval "$ac_compile") 2>conftest.er1
9279 ac_status=$?
9280 grep -v '^ *+' conftest.er1 >conftest.err
9281 rm -f conftest.er1
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } && {
9285 test -z "$ac_c_werror_flag" ||
9286 test ! -s conftest.err
9287 } && test -s conftest.$ac_objext; then
9288 gt_cv_inttypes_pri_broken=no
9289 else
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9292
9293 gt_cv_inttypes_pri_broken=yes
9294 fi
9295
9296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297
9298 fi
9299 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9300 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
9301 fi
9302 if test "$gt_cv_inttypes_pri_broken" = yes; then
9303
9304 cat >>confdefs.h <<_ACEOF
9305 #define PRI_MACROS_BROKEN 1
9306 _ACEOF
9307
9308 fi
9309
9310
9311
9312 for ac_header in stdint.h
9313 do
9314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 fi
9321 ac_res=`eval echo '${'$as_ac_Header'}'`
9322 { echo "$as_me:$LINENO: result: $ac_res" >&5
9323 echo "${ECHO_T}$ac_res" >&6; }
9324 else
9325 # Is the header compilable?
9326 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9328 cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h. */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 $ac_includes_default
9335 #include <$ac_header>
9336 _ACEOF
9337 rm -f conftest.$ac_objext
9338 if { (ac_try="$ac_compile"
9339 case "(($ac_try" in
9340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341 *) ac_try_echo=$ac_try;;
9342 esac
9343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9344 (eval "$ac_compile") 2>conftest.er1
9345 ac_status=$?
9346 grep -v '^ *+' conftest.er1 >conftest.err
9347 rm -f conftest.er1
9348 cat conftest.err >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } && {
9351 test -z "$ac_c_werror_flag" ||
9352 test ! -s conftest.err
9353 } && test -s conftest.$ac_objext; then
9354 ac_header_compiler=yes
9355 else
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9358
9359 ac_header_compiler=no
9360 fi
9361
9362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9364 echo "${ECHO_T}$ac_header_compiler" >&6; }
9365
9366 # Is the header present?
9367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h. */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 #include <$ac_header>
9376 _ACEOF
9377 if { (ac_try="$ac_cpp conftest.$ac_ext"
9378 case "(($ac_try" in
9379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380 *) ac_try_echo=$ac_try;;
9381 esac
9382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } >/dev/null && {
9390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9391 test ! -s conftest.err
9392 }; then
9393 ac_header_preproc=yes
9394 else
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9397
9398 ac_header_preproc=no
9399 fi
9400
9401 rm -f conftest.err conftest.$ac_ext
9402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9403 echo "${ECHO_T}$ac_header_preproc" >&6; }
9404
9405 # So? What about this header?
9406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9407 yes:no: )
9408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9412 ac_header_preproc=yes
9413 ;;
9414 no:yes:* )
9415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9418 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9421 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9422 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9427 ( cat <<\_ASBOX
9428 ## --------------------------------------- ##
9429 ## Report this to [email protected] ##
9430 ## --------------------------------------- ##
9431 _ASBOX
9432 ) | sed "s/^/$as_me: WARNING: /" >&2
9433 ;;
9434 esac
9435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440 eval "$as_ac_Header=\$ac_header_preproc"
9441 fi
9442 ac_res=`eval echo '${'$as_ac_Header'}'`
9443 { echo "$as_me:$LINENO: result: $ac_res" >&5
9444 echo "${ECHO_T}$ac_res" >&6; }
9445
9446 fi
9447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9448 cat >>confdefs.h <<_ACEOF
9449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9450 _ACEOF
9451
9452 fi
9453
9454 done
9455
9456 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9457 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
9458 result=
9459 cat >conftest.$ac_ext <<_ACEOF
9460 /* confdefs.h. */
9461 _ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465
9466 #include <limits.h>
9467 #if HAVE_STDINT_H
9468 #include <stdint.h>
9469 #endif
9470 #ifdef SIZE_MAX
9471 Found it
9472 #endif
9473
9474 _ACEOF
9475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9476 $EGREP "Found it" >/dev/null 2>&1; then
9477 result=yes
9478 fi
9479 rm -f conftest*
9480
9481 if test -z "$result"; then
9482 if test "$cross_compiling" = yes; then
9483 # Depending upon the size, compute the lo and hi bounds.
9484 cat >conftest.$ac_ext <<_ACEOF
9485 /* confdefs.h. */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 #include <stddef.h>
9491 int
9492 main ()
9493 {
9494 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9495 test_array [0] = 0
9496
9497 ;
9498 return 0;
9499 }
9500 _ACEOF
9501 rm -f conftest.$ac_objext
9502 if { (ac_try="$ac_compile"
9503 case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506 esac
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_compile") 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest.$ac_objext; then
9518 ac_lo=0 ac_mid=0
9519 while :; do
9520 cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h. */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 #include <stddef.h>
9527 int
9528 main ()
9529 {
9530 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9531 test_array [0] = 0
9532
9533 ;
9534 return 0;
9535 }
9536 _ACEOF
9537 rm -f conftest.$ac_objext
9538 if { (ac_try="$ac_compile"
9539 case "(($ac_try" in
9540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541 *) ac_try_echo=$ac_try;;
9542 esac
9543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544 (eval "$ac_compile") 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && {
9551 test -z "$ac_c_werror_flag" ||
9552 test ! -s conftest.err
9553 } && test -s conftest.$ac_objext; then
9554 ac_hi=$ac_mid; break
9555 else
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559 ac_lo=`expr $ac_mid + 1`
9560 if test $ac_lo -le $ac_mid; then
9561 ac_lo= ac_hi=
9562 break
9563 fi
9564 ac_mid=`expr 2 '*' $ac_mid + 1`
9565 fi
9566
9567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568 done
9569 else
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9572
9573 cat >conftest.$ac_ext <<_ACEOF
9574 /* confdefs.h. */
9575 _ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9579 #include <stddef.h>
9580 int
9581 main ()
9582 {
9583 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9584 test_array [0] = 0
9585
9586 ;
9587 return 0;
9588 }
9589 _ACEOF
9590 rm -f conftest.$ac_objext
9591 if { (ac_try="$ac_compile"
9592 case "(($ac_try" in
9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594 *) ac_try_echo=$ac_try;;
9595 esac
9596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597 (eval "$ac_compile") 2>conftest.er1
9598 ac_status=$?
9599 grep -v '^ *+' conftest.er1 >conftest.err
9600 rm -f conftest.er1
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } && {
9604 test -z "$ac_c_werror_flag" ||
9605 test ! -s conftest.err
9606 } && test -s conftest.$ac_objext; then
9607 ac_hi=-1 ac_mid=-1
9608 while :; do
9609 cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h. */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615 #include <stddef.h>
9616 int
9617 main ()
9618 {
9619 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9620 test_array [0] = 0
9621
9622 ;
9623 return 0;
9624 }
9625 _ACEOF
9626 rm -f conftest.$ac_objext
9627 if { (ac_try="$ac_compile"
9628 case "(($ac_try" in
9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9631 esac
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_compile") 2>conftest.er1
9634 ac_status=$?
9635 grep -v '^ *+' conftest.er1 >conftest.err
9636 rm -f conftest.er1
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_c_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest.$ac_objext; then
9643 ac_lo=$ac_mid; break
9644 else
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9647
9648 ac_hi=`expr '(' $ac_mid ')' - 1`
9649 if test $ac_mid -le $ac_hi; then
9650 ac_lo= ac_hi=
9651 break
9652 fi
9653 ac_mid=`expr 2 '*' $ac_mid`
9654 fi
9655
9656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9657 done
9658 else
9659 echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.$ac_ext >&5
9661
9662 ac_lo= ac_hi=
9663 fi
9664
9665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666 fi
9667
9668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9669 # Binary search between lo and hi bounds.
9670 while test "x$ac_lo" != "x$ac_hi"; do
9671 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9672 cat >conftest.$ac_ext <<_ACEOF
9673 /* confdefs.h. */
9674 _ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9678 #include <stddef.h>
9679 int
9680 main ()
9681 {
9682 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9683 test_array [0] = 0
9684
9685 ;
9686 return 0;
9687 }
9688 _ACEOF
9689 rm -f conftest.$ac_objext
9690 if { (ac_try="$ac_compile"
9691 case "(($ac_try" in
9692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693 *) ac_try_echo=$ac_try;;
9694 esac
9695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696 (eval "$ac_compile") 2>conftest.er1
9697 ac_status=$?
9698 grep -v '^ *+' conftest.er1 >conftest.err
9699 rm -f conftest.er1
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } && {
9703 test -z "$ac_c_werror_flag" ||
9704 test ! -s conftest.err
9705 } && test -s conftest.$ac_objext; then
9706 ac_hi=$ac_mid
9707 else
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9710
9711 ac_lo=`expr '(' $ac_mid ')' + 1`
9712 fi
9713
9714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715 done
9716 case $ac_lo in
9717 ?*) res_hi=$ac_lo;;
9718 '') result=? ;;
9719 esac
9720 else
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h. */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 #include <stddef.h>
9728 static long int longval () { return ~(size_t)0 / 10; }
9729 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
9730 #include <stdio.h>
9731 #include <stdlib.h>
9732 int
9733 main ()
9734 {
9735
9736 FILE *f = fopen ("conftest.val", "w");
9737 if (! f)
9738 return 1;
9739 if ((~(size_t)0 / 10) < 0)
9740 {
9741 long int i = longval ();
9742 if (i != (~(size_t)0 / 10))
9743 return 1;
9744 fprintf (f, "%ld\n", i);
9745 }
9746 else
9747 {
9748 unsigned long int i = ulongval ();
9749 if (i != (~(size_t)0 / 10))
9750 return 1;
9751 fprintf (f, "%lu\n", i);
9752 }
9753 return ferror (f) || fclose (f) != 0;
9754
9755 ;
9756 return 0;
9757 }
9758 _ACEOF
9759 rm -f conftest$ac_exeext
9760 if { (ac_try="$ac_link"
9761 case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9764 esac
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_link") 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9770 { (case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9773 esac
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_try") 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; }; then
9779 res_hi=`cat conftest.val`
9780 else
9781 echo "$as_me: program exited with status $ac_status" >&5
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9784
9785 ( exit $ac_status )
9786 result=?
9787 fi
9788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9789 fi
9790 rm -f conftest.val
9791
9792 if test "$cross_compiling" = yes; then
9793 # Depending upon the size, compute the lo and hi bounds.
9794 cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h. */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9800 #include <stddef.h>
9801 int
9802 main ()
9803 {
9804 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9805 test_array [0] = 0
9806
9807 ;
9808 return 0;
9809 }
9810 _ACEOF
9811 rm -f conftest.$ac_objext
9812 if { (ac_try="$ac_compile"
9813 case "(($ac_try" in
9814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815 *) ac_try_echo=$ac_try;;
9816 esac
9817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818 (eval "$ac_compile") 2>conftest.er1
9819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } && {
9825 test -z "$ac_c_werror_flag" ||
9826 test ! -s conftest.err
9827 } && test -s conftest.$ac_objext; then
9828 ac_lo=0 ac_mid=0
9829 while :; do
9830 cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h. */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 #include <stddef.h>
9837 int
9838 main ()
9839 {
9840 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9841 test_array [0] = 0
9842
9843 ;
9844 return 0;
9845 }
9846 _ACEOF
9847 rm -f conftest.$ac_objext
9848 if { (ac_try="$ac_compile"
9849 case "(($ac_try" in
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9852 esac
9853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9854 (eval "$ac_compile") 2>conftest.er1
9855 ac_status=$?
9856 grep -v '^ *+' conftest.er1 >conftest.err
9857 rm -f conftest.er1
9858 cat conftest.err >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } && {
9861 test -z "$ac_c_werror_flag" ||
9862 test ! -s conftest.err
9863 } && test -s conftest.$ac_objext; then
9864 ac_hi=$ac_mid; break
9865 else
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9868
9869 ac_lo=`expr $ac_mid + 1`
9870 if test $ac_lo -le $ac_mid; then
9871 ac_lo= ac_hi=
9872 break
9873 fi
9874 ac_mid=`expr 2 '*' $ac_mid + 1`
9875 fi
9876
9877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9878 done
9879 else
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9882
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h. */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 #include <stddef.h>
9890 int
9891 main ()
9892 {
9893 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9894 test_array [0] = 0
9895
9896 ;
9897 return 0;
9898 }
9899 _ACEOF
9900 rm -f conftest.$ac_objext
9901 if { (ac_try="$ac_compile"
9902 case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9905 esac
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_compile") 2>conftest.er1
9908 ac_status=$?
9909 grep -v '^ *+' conftest.er1 >conftest.err
9910 rm -f conftest.er1
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } && {
9914 test -z "$ac_c_werror_flag" ||
9915 test ! -s conftest.err
9916 } && test -s conftest.$ac_objext; then
9917 ac_hi=-1 ac_mid=-1
9918 while :; do
9919 cat >conftest.$ac_ext <<_ACEOF
9920 /* confdefs.h. */
9921 _ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h. */
9925 #include <stddef.h>
9926 int
9927 main ()
9928 {
9929 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9930 test_array [0] = 0
9931
9932 ;
9933 return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext
9937 if { (ac_try="$ac_compile"
9938 case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_compile") 2>conftest.er1
9944 ac_status=$?
9945 grep -v '^ *+' conftest.er1 >conftest.err
9946 rm -f conftest.er1
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } && {
9950 test -z "$ac_c_werror_flag" ||
9951 test ! -s conftest.err
9952 } && test -s conftest.$ac_objext; then
9953 ac_lo=$ac_mid; break
9954 else
9955 echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.$ac_ext >&5
9957
9958 ac_hi=`expr '(' $ac_mid ')' - 1`
9959 if test $ac_mid -le $ac_hi; then
9960 ac_lo= ac_hi=
9961 break
9962 fi
9963 ac_mid=`expr 2 '*' $ac_mid`
9964 fi
9965
9966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967 done
9968 else
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972 ac_lo= ac_hi=
9973 fi
9974
9975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9976 fi
9977
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 # Binary search between lo and hi bounds.
9980 while test "x$ac_lo" != "x$ac_hi"; do
9981 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9982 cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h. */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 #include <stddef.h>
9989 int
9990 main ()
9991 {
9992 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9993 test_array [0] = 0
9994
9995 ;
9996 return 0;
9997 }
9998 _ACEOF
9999 rm -f conftest.$ac_objext
10000 if { (ac_try="$ac_compile"
10001 case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004 esac
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_compile") 2>conftest.er1
10007 ac_status=$?
10008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } && {
10013 test -z "$ac_c_werror_flag" ||
10014 test ! -s conftest.err
10015 } && test -s conftest.$ac_objext; then
10016 ac_hi=$ac_mid
10017 else
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10020
10021 ac_lo=`expr '(' $ac_mid ')' + 1`
10022 fi
10023
10024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10025 done
10026 case $ac_lo in
10027 ?*) res_lo=$ac_lo;;
10028 '') result=? ;;
10029 esac
10030 else
10031 cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h. */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 #include <stddef.h>
10038 static long int longval () { return ~(size_t)0 % 10; }
10039 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10040 #include <stdio.h>
10041 #include <stdlib.h>
10042 int
10043 main ()
10044 {
10045
10046 FILE *f = fopen ("conftest.val", "w");
10047 if (! f)
10048 return 1;
10049 if ((~(size_t)0 % 10) < 0)
10050 {
10051 long int i = longval ();
10052 if (i != (~(size_t)0 % 10))
10053 return 1;
10054 fprintf (f, "%ld\n", i);
10055 }
10056 else
10057 {
10058 unsigned long int i = ulongval ();
10059 if (i != (~(size_t)0 % 10))
10060 return 1;
10061 fprintf (f, "%lu\n", i);
10062 }
10063 return ferror (f) || fclose (f) != 0;
10064
10065 ;
10066 return 0;
10067 }
10068 _ACEOF
10069 rm -f conftest$ac_exeext
10070 if { (ac_try="$ac_link"
10071 case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10074 esac
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_link") 2>&5
10077 ac_status=$?
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10080 { (case "(($ac_try" in
10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10083 esac
10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085 (eval "$ac_try") 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10089 res_lo=`cat conftest.val`
10090 else
10091 echo "$as_me: program exited with status $ac_status" >&5
10092 echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.$ac_ext >&5
10094
10095 ( exit $ac_status )
10096 result=?
10097 fi
10098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10099 fi
10100 rm -f conftest.val
10101
10102 if test "$cross_compiling" = yes; then
10103 # Depending upon the size, compute the lo and hi bounds.
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h. */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 #include <stddef.h>
10111 int
10112 main ()
10113 {
10114 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10115 test_array [0] = 0
10116
10117 ;
10118 return 0;
10119 }
10120 _ACEOF
10121 rm -f conftest.$ac_objext
10122 if { (ac_try="$ac_compile"
10123 case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10126 esac
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_compile") 2>conftest.er1
10129 ac_status=$?
10130 grep -v '^ *+' conftest.er1 >conftest.err
10131 rm -f conftest.er1
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } && {
10135 test -z "$ac_c_werror_flag" ||
10136 test ! -s conftest.err
10137 } && test -s conftest.$ac_objext; then
10138 ac_lo=0 ac_mid=0
10139 while :; do
10140 cat >conftest.$ac_ext <<_ACEOF
10141 /* confdefs.h. */
10142 _ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h. */
10146 #include <stddef.h>
10147 int
10148 main ()
10149 {
10150 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10151 test_array [0] = 0
10152
10153 ;
10154 return 0;
10155 }
10156 _ACEOF
10157 rm -f conftest.$ac_objext
10158 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
10174 ac_hi=$ac_mid; break
10175 else
10176 echo "$as_me: failed program was:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10178
10179 ac_lo=`expr $ac_mid + 1`
10180 if test $ac_lo -le $ac_mid; then
10181 ac_lo= ac_hi=
10182 break
10183 fi
10184 ac_mid=`expr 2 '*' $ac_mid + 1`
10185 fi
10186
10187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10188 done
10189 else
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10192
10193 cat >conftest.$ac_ext <<_ACEOF
10194 /* confdefs.h. */
10195 _ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10199 #include <stddef.h>
10200 int
10201 main ()
10202 {
10203 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10204 test_array [0] = 0
10205
10206 ;
10207 return 0;
10208 }
10209 _ACEOF
10210 rm -f conftest.$ac_objext
10211 if { (ac_try="$ac_compile"
10212 case "(($ac_try" in
10213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214 *) ac_try_echo=$ac_try;;
10215 esac
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_compile") 2>conftest.er1
10218 ac_status=$?
10219 grep -v '^ *+' conftest.er1 >conftest.err
10220 rm -f conftest.er1
10221 cat conftest.err >&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } && {
10224 test -z "$ac_c_werror_flag" ||
10225 test ! -s conftest.err
10226 } && test -s conftest.$ac_objext; then
10227 ac_hi=-1 ac_mid=-1
10228 while :; do
10229 cat >conftest.$ac_ext <<_ACEOF
10230 /* confdefs.h. */
10231 _ACEOF
10232 cat confdefs.h >>conftest.$ac_ext
10233 cat >>conftest.$ac_ext <<_ACEOF
10234 /* end confdefs.h. */
10235 #include <stddef.h>
10236 int
10237 main ()
10238 {
10239 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10240 test_array [0] = 0
10241
10242 ;
10243 return 0;
10244 }
10245 _ACEOF
10246 rm -f conftest.$ac_objext
10247 if { (ac_try="$ac_compile"
10248 case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10251 esac
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_compile") 2>conftest.er1
10254 ac_status=$?
10255 grep -v '^ *+' conftest.er1 >conftest.err
10256 rm -f conftest.er1
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && {
10260 test -z "$ac_c_werror_flag" ||
10261 test ! -s conftest.err
10262 } && test -s conftest.$ac_objext; then
10263 ac_lo=$ac_mid; break
10264 else
10265 echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10267
10268 ac_hi=`expr '(' $ac_mid ')' - 1`
10269 if test $ac_mid -le $ac_hi; then
10270 ac_lo= ac_hi=
10271 break
10272 fi
10273 ac_mid=`expr 2 '*' $ac_mid`
10274 fi
10275
10276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10277 done
10278 else
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10281
10282 ac_lo= ac_hi=
10283 fi
10284
10285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10286 fi
10287
10288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10289 # Binary search between lo and hi bounds.
10290 while test "x$ac_lo" != "x$ac_hi"; do
10291 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10292 cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h. */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298 #include <stddef.h>
10299 int
10300 main ()
10301 {
10302 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10303 test_array [0] = 0
10304
10305 ;
10306 return 0;
10307 }
10308 _ACEOF
10309 rm -f conftest.$ac_objext
10310 if { (ac_try="$ac_compile"
10311 case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10314 esac
10315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316 (eval "$ac_compile") 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } && {
10323 test -z "$ac_c_werror_flag" ||
10324 test ! -s conftest.err
10325 } && test -s conftest.$ac_objext; then
10326 ac_hi=$ac_mid
10327 else
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331 ac_lo=`expr '(' $ac_mid ')' + 1`
10332 fi
10333
10334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10335 done
10336 case $ac_lo in
10337 ?*) fits_in_uint=$ac_lo;;
10338 '') result=? ;;
10339 esac
10340 else
10341 cat >conftest.$ac_ext <<_ACEOF
10342 /* confdefs.h. */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 #include <stddef.h>
10348 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10349 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10350 #include <stdio.h>
10351 #include <stdlib.h>
10352 int
10353 main ()
10354 {
10355
10356 FILE *f = fopen ("conftest.val", "w");
10357 if (! f)
10358 return 1;
10359 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10360 {
10361 long int i = longval ();
10362 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10363 return 1;
10364 fprintf (f, "%ld\n", i);
10365 }
10366 else
10367 {
10368 unsigned long int i = ulongval ();
10369 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10370 return 1;
10371 fprintf (f, "%lu\n", i);
10372 }
10373 return ferror (f) || fclose (f) != 0;
10374
10375 ;
10376 return 0;
10377 }
10378 _ACEOF
10379 rm -f conftest$ac_exeext
10380 if { (ac_try="$ac_link"
10381 case "(($ac_try" in
10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383 *) ac_try_echo=$ac_try;;
10384 esac
10385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386 (eval "$ac_link") 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10390 { (case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10393 esac
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_try") 2>&5
10396 ac_status=$?
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10399 fits_in_uint=`cat conftest.val`
10400 else
10401 echo "$as_me: program exited with status $ac_status" >&5
10402 echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10404
10405 ( exit $ac_status )
10406 result=?
10407 fi
10408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10409 fi
10410 rm -f conftest.val
10411
10412 if test "$fits_in_uint" = 1; then
10413 cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h. */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 #include <stddef.h>
10420 extern size_t foo;
10421 extern unsigned long foo;
10422
10423 int
10424 main ()
10425 {
10426
10427 ;
10428 return 0;
10429 }
10430 _ACEOF
10431 rm -f conftest.$ac_objext
10432 if { (ac_try="$ac_compile"
10433 case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10436 esac
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_compile") 2>conftest.er1
10439 ac_status=$?
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && {
10445 test -z "$ac_c_werror_flag" ||
10446 test ! -s conftest.err
10447 } && test -s conftest.$ac_objext; then
10448 fits_in_uint=0
10449 else
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10452
10453
10454 fi
10455
10456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10457 fi
10458 if test -z "$result"; then
10459 if test "$fits_in_uint" = 1; then
10460 result="$res_hi$res_lo"U
10461 else
10462 result="$res_hi$res_lo"UL
10463 fi
10464 else
10465 result='~(size_t)0'
10466 fi
10467 fi
10468 { echo "$as_me:$LINENO: result: $result" >&5
10469 echo "${ECHO_T}$result" >&6; }
10470 if test "$result" != yes; then
10471
10472 cat >>confdefs.h <<_ACEOF
10473 #define SIZE_MAX $result
10474 _ACEOF
10475
10476 fi
10477
10478
10479
10480
10481 for ac_header in stdint.h
10482 do
10483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 fi
10490 ac_res=`eval echo '${'$as_ac_Header'}'`
10491 { echo "$as_me:$LINENO: result: $ac_res" >&5
10492 echo "${ECHO_T}$ac_res" >&6; }
10493 else
10494 # Is the header compilable?
10495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10497 cat >conftest.$ac_ext <<_ACEOF
10498 /* confdefs.h. */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503 $ac_includes_default
10504 #include <$ac_header>
10505 _ACEOF
10506 rm -f conftest.$ac_objext
10507 if { (ac_try="$ac_compile"
10508 case "(($ac_try" in
10509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510 *) ac_try_echo=$ac_try;;
10511 esac
10512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513 (eval "$ac_compile") 2>conftest.er1
10514 ac_status=$?
10515 grep -v '^ *+' conftest.er1 >conftest.err
10516 rm -f conftest.er1
10517 cat conftest.err >&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } && {
10520 test -z "$ac_c_werror_flag" ||
10521 test ! -s conftest.err
10522 } && test -s conftest.$ac_objext; then
10523 ac_header_compiler=yes
10524 else
10525 echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.$ac_ext >&5
10527
10528 ac_header_compiler=no
10529 fi
10530
10531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10533 echo "${ECHO_T}$ac_header_compiler" >&6; }
10534
10535 # Is the header present?
10536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10538 cat >conftest.$ac_ext <<_ACEOF
10539 /* confdefs.h. */
10540 _ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10544 #include <$ac_header>
10545 _ACEOF
10546 if { (ac_try="$ac_cpp conftest.$ac_ext"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } >/dev/null && {
10559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 }; then
10562 ac_header_preproc=yes
10563 else
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10566
10567 ac_header_preproc=no
10568 fi
10569
10570 rm -f conftest.err conftest.$ac_ext
10571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10572 echo "${ECHO_T}$ac_header_preproc" >&6; }
10573
10574 # So? What about this header?
10575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10576 yes:no: )
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10581 ac_header_preproc=yes
10582 ;;
10583 no:yes:* )
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10596 ( cat <<\_ASBOX
10597 ## --------------------------------------- ##
10598 ## Report this to [email protected] ##
10599 ## --------------------------------------- ##
10600 _ASBOX
10601 ) | sed "s/^/$as_me: WARNING: /" >&2
10602 ;;
10603 esac
10604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 else
10609 eval "$as_ac_Header=\$ac_header_preproc"
10610 fi
10611 ac_res=`eval echo '${'$as_ac_Header'}'`
10612 { echo "$as_me:$LINENO: result: $ac_res" >&5
10613 echo "${ECHO_T}$ac_res" >&6; }
10614
10615 fi
10616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10617 cat >>confdefs.h <<_ACEOF
10618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10619 _ACEOF
10620
10621 fi
10622
10623 done
10624
10625
10626
10627 if test "X$prefix" = "XNONE"; then
10628 acl_final_prefix="$ac_default_prefix"
10629 else
10630 acl_final_prefix="$prefix"
10631 fi
10632 if test "X$exec_prefix" = "XNONE"; then
10633 acl_final_exec_prefix='${prefix}'
10634 else
10635 acl_final_exec_prefix="$exec_prefix"
10636 fi
10637 acl_save_prefix="$prefix"
10638 prefix="$acl_final_prefix"
10639 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10640 prefix="$acl_save_prefix"
10641
10642
10643 # Check whether --with-gnu-ld was given.
10644 if test "${with_gnu_ld+set}" = set; then
10645 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10646 else
10647 with_gnu_ld=no
10648 fi
10649
10650 # Prepare PATH_SEPARATOR.
10651 # The user is always right.
10652 if test "${PATH_SEPARATOR+set}" != set; then
10653 echo "#! /bin/sh" >conf$$.sh
10654 echo "exit 0" >>conf$$.sh
10655 chmod +x conf$$.sh
10656 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10657 PATH_SEPARATOR=';'
10658 else
10659 PATH_SEPARATOR=:
10660 fi
10661 rm -f conf$$.sh
10662 fi
10663 ac_prog=ld
10664 if test "$GCC" = yes; then
10665 # Check if gcc -print-prog-name=ld gives a path.
10666 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10667 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
10668 case $host in
10669 *-*-mingw*)
10670 # gcc leaves a trailing carriage return which upsets mingw
10671 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10672 *)
10673 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10674 esac
10675 case $ac_prog in
10676 # Accept absolute paths.
10677 [\\/]* | [A-Za-z]:[\\/]*)
10678 re_direlt='/[^/][^/]*/\.\./'
10679 # Canonicalize the path of ld
10680 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10681 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10682 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10683 done
10684 test -z "$LD" && LD="$ac_prog"
10685 ;;
10686 "")
10687 # If it fails, then pretend we aren't using GCC.
10688 ac_prog=ld
10689 ;;
10690 *)
10691 # If it is relative, then search for the first ld in PATH.
10692 with_gnu_ld=unknown
10693 ;;
10694 esac
10695 elif test "$with_gnu_ld" = yes; then
10696 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10697 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10698 else
10699 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10700 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10701 fi
10702 if test "${acl_cv_path_LD+set}" = set; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 else
10705 if test -z "$LD"; then
10706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10707 for ac_dir in $PATH; do
10708 test -z "$ac_dir" && ac_dir=.
10709 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10710 acl_cv_path_LD="$ac_dir/$ac_prog"
10711 # Check to see if the program is GNU ld. I'd rather use --version,
10712 # but apparently some GNU ld's only accept -v.
10713 # Break only if it was the GNU/non-GNU ld that we prefer.
10714 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10715 *GNU* | *'with BFD'*)
10716 test "$with_gnu_ld" != no && break ;;
10717 *)
10718 test "$with_gnu_ld" != yes && break ;;
10719 esac
10720 fi
10721 done
10722 IFS="$ac_save_ifs"
10723 else
10724 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10725 fi
10726 fi
10727
10728 LD="$acl_cv_path_LD"
10729 if test -n "$LD"; then
10730 { echo "$as_me:$LINENO: result: $LD" >&5
10731 echo "${ECHO_T}$LD" >&6; }
10732 else
10733 { echo "$as_me:$LINENO: result: no" >&5
10734 echo "${ECHO_T}no" >&6; }
10735 fi
10736 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10737 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10738 { (exit 1); exit 1; }; }
10739 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10740 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10741 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10745 case `$LD -v 2>&1 </dev/null` in
10746 *GNU* | *'with BFD'*)
10747 acl_cv_prog_gnu_ld=yes ;;
10748 *)
10749 acl_cv_prog_gnu_ld=no ;;
10750 esac
10751 fi
10752 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10753 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
10754 with_gnu_ld=$acl_cv_prog_gnu_ld
10755
10756
10757
10758 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10759 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
10760 if test "${acl_cv_rpath+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763
10764 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10765 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10766 . ./conftest.sh
10767 rm -f ./conftest.sh
10768 acl_cv_rpath=done
10769
10770 fi
10771 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10772 echo "${ECHO_T}$acl_cv_rpath" >&6; }
10773 wl="$acl_cv_wl"
10774 libext="$acl_cv_libext"
10775 shlibext="$acl_cv_shlibext"
10776 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10777 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10778 hardcode_direct="$acl_cv_hardcode_direct"
10779 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10780 # Check whether --enable-rpath was given.
10781 if test "${enable_rpath+set}" = set; then
10782 enableval=$enable_rpath; :
10783 else
10784 enable_rpath=yes
10785 fi
10786
10787
10788
10789
10790
10791
10792
10793
10794 use_additional=yes
10795
10796 acl_save_prefix="$prefix"
10797 prefix="$acl_final_prefix"
10798 acl_save_exec_prefix="$exec_prefix"
10799 exec_prefix="$acl_final_exec_prefix"
10800
10801 eval additional_includedir=\"$includedir\"
10802 eval additional_libdir=\"$libdir\"
10803
10804 exec_prefix="$acl_save_exec_prefix"
10805 prefix="$acl_save_prefix"
10806
10807
10808 # Check whether --with-libiconv-prefix was given.
10809 if test "${with_libiconv_prefix+set}" = set; then
10810 withval=$with_libiconv_prefix;
10811 if test "X$withval" = "Xno"; then
10812 use_additional=no
10813 else
10814 if test "X$withval" = "X"; then
10815
10816 acl_save_prefix="$prefix"
10817 prefix="$acl_final_prefix"
10818 acl_save_exec_prefix="$exec_prefix"
10819 exec_prefix="$acl_final_exec_prefix"
10820
10821 eval additional_includedir=\"$includedir\"
10822 eval additional_libdir=\"$libdir\"
10823
10824 exec_prefix="$acl_save_exec_prefix"
10825 prefix="$acl_save_prefix"
10826
10827 else
10828 additional_includedir="$withval/include"
10829 additional_libdir="$withval/lib"
10830 fi
10831 fi
10832
10833 fi
10834
10835 LIBICONV=
10836 LTLIBICONV=
10837 INCICONV=
10838 rpathdirs=
10839 ltrpathdirs=
10840 names_already_handled=
10841 names_next_round='iconv '
10842 while test -n "$names_next_round"; do
10843 names_this_round="$names_next_round"
10844 names_next_round=
10845 for name in $names_this_round; do
10846 already_handled=
10847 for n in $names_already_handled; do
10848 if test "$n" = "$name"; then
10849 already_handled=yes
10850 break
10851 fi
10852 done
10853 if test -z "$already_handled"; then
10854 names_already_handled="$names_already_handled $name"
10855 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10856 eval value=\"\$HAVE_LIB$uppername\"
10857 if test -n "$value"; then
10858 if test "$value" = yes; then
10859 eval value=\"\$LIB$uppername\"
10860 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10861 eval value=\"\$LTLIB$uppername\"
10862 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10863 else
10864 :
10865 fi
10866 else
10867 found_dir=
10868 found_la=
10869 found_so=
10870 found_a=
10871 if test $use_additional = yes; then
10872 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10873 found_dir="$additional_libdir"
10874 found_so="$additional_libdir/lib$name.$shlibext"
10875 if test -f "$additional_libdir/lib$name.la"; then
10876 found_la="$additional_libdir/lib$name.la"
10877 fi
10878 else
10879 if test -f "$additional_libdir/lib$name.$libext"; then
10880 found_dir="$additional_libdir"
10881 found_a="$additional_libdir/lib$name.$libext"
10882 if test -f "$additional_libdir/lib$name.la"; then
10883 found_la="$additional_libdir/lib$name.la"
10884 fi
10885 fi
10886 fi
10887 fi
10888 if test "X$found_dir" = "X"; then
10889 for x in $LDFLAGS $LTLIBICONV; do
10890
10891 acl_save_prefix="$prefix"
10892 prefix="$acl_final_prefix"
10893 acl_save_exec_prefix="$exec_prefix"
10894 exec_prefix="$acl_final_exec_prefix"
10895 eval x=\"$x\"
10896 exec_prefix="$acl_save_exec_prefix"
10897 prefix="$acl_save_prefix"
10898
10899 case "$x" in
10900 -L*)
10901 dir=`echo "X$x" | sed -e 's/^X-L//'`
10902 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10903 found_dir="$dir"
10904 found_so="$dir/lib$name.$shlibext"
10905 if test -f "$dir/lib$name.la"; then
10906 found_la="$dir/lib$name.la"
10907 fi
10908 else
10909 if test -f "$dir/lib$name.$libext"; then
10910 found_dir="$dir"
10911 found_a="$dir/lib$name.$libext"
10912 if test -f "$dir/lib$name.la"; then
10913 found_la="$dir/lib$name.la"
10914 fi
10915 fi
10916 fi
10917 ;;
10918 esac
10919 if test "X$found_dir" != "X"; then
10920 break
10921 fi
10922 done
10923 fi
10924 if test "X$found_dir" != "X"; then
10925 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10926 if test "X$found_so" != "X"; then
10927 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10928 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10929 else
10930 haveit=
10931 for x in $ltrpathdirs; do
10932 if test "X$x" = "X$found_dir"; then
10933 haveit=yes
10934 break
10935 fi
10936 done
10937 if test -z "$haveit"; then
10938 ltrpathdirs="$ltrpathdirs $found_dir"
10939 fi
10940 if test "$hardcode_direct" = yes; then
10941 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10942 else
10943 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10944 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10945 haveit=
10946 for x in $rpathdirs; do
10947 if test "X$x" = "X$found_dir"; then
10948 haveit=yes
10949 break
10950 fi
10951 done
10952 if test -z "$haveit"; then
10953 rpathdirs="$rpathdirs $found_dir"
10954 fi
10955 else
10956 haveit=
10957 for x in $LDFLAGS $LIBICONV; do
10958
10959 acl_save_prefix="$prefix"
10960 prefix="$acl_final_prefix"
10961 acl_save_exec_prefix="$exec_prefix"
10962 exec_prefix="$acl_final_exec_prefix"
10963 eval x=\"$x\"
10964 exec_prefix="$acl_save_exec_prefix"
10965 prefix="$acl_save_prefix"
10966
10967 if test "X$x" = "X-L$found_dir"; then
10968 haveit=yes
10969 break
10970 fi
10971 done
10972 if test -z "$haveit"; then
10973 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10974 fi
10975 if test "$hardcode_minus_L" != no; then
10976 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10977 else
10978 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10979 fi
10980 fi
10981 fi
10982 fi
10983 else
10984 if test "X$found_a" != "X"; then
10985 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10986 else
10987 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10988 fi
10989 fi
10990 additional_includedir=
10991 case "$found_dir" in
10992 */lib | */lib/)
10993 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10994 additional_includedir="$basedir/include"
10995 ;;
10996 esac
10997 if test "X$additional_includedir" != "X"; then
10998 if test "X$additional_includedir" != "X/usr/include"; then
10999 haveit=
11000 if test "X$additional_includedir" = "X/usr/local/include"; then
11001 if test -n "$GCC"; then
11002 case $host_os in
11003 linux*) haveit=yes;;
11004 esac
11005 fi
11006 fi
11007 if test -z "$haveit"; then
11008 for x in $CPPFLAGS $INCICONV; do
11009
11010 acl_save_prefix="$prefix"
11011 prefix="$acl_final_prefix"
11012 acl_save_exec_prefix="$exec_prefix"
11013 exec_prefix="$acl_final_exec_prefix"
11014 eval x=\"$x\"
11015 exec_prefix="$acl_save_exec_prefix"
11016 prefix="$acl_save_prefix"
11017
11018 if test "X$x" = "X-I$additional_includedir"; then
11019 haveit=yes
11020 break
11021 fi
11022 done
11023 if test -z "$haveit"; then
11024 if test -d "$additional_includedir"; then
11025 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11026 fi
11027 fi
11028 fi
11029 fi
11030 fi
11031 if test -n "$found_la"; then
11032 save_libdir="$libdir"
11033 case "$found_la" in
11034 */* | *\\*) . "$found_la" ;;
11035 *) . "./$found_la" ;;
11036 esac
11037 libdir="$save_libdir"
11038 for dep in $dependency_libs; do
11039 case "$dep" in
11040 -L*)
11041 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11042 if test "X$additional_libdir" != "X/usr/lib"; then
11043 haveit=
11044 if test "X$additional_libdir" = "X/usr/local/lib"; then
11045 if test -n "$GCC"; then
11046 case $host_os in
11047 linux*) haveit=yes;;
11048 esac
11049 fi
11050 fi
11051 if test -z "$haveit"; then
11052 haveit=
11053 for x in $LDFLAGS $LIBICONV; do
11054
11055 acl_save_prefix="$prefix"
11056 prefix="$acl_final_prefix"
11057 acl_save_exec_prefix="$exec_prefix"
11058 exec_prefix="$acl_final_exec_prefix"
11059 eval x=\"$x\"
11060 exec_prefix="$acl_save_exec_prefix"
11061 prefix="$acl_save_prefix"
11062
11063 if test "X$x" = "X-L$additional_libdir"; then
11064 haveit=yes
11065 break
11066 fi
11067 done
11068 if test -z "$haveit"; then
11069 if test -d "$additional_libdir"; then
11070 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11071 fi
11072 fi
11073 haveit=
11074 for x in $LDFLAGS $LTLIBICONV; do
11075
11076 acl_save_prefix="$prefix"
11077 prefix="$acl_final_prefix"
11078 acl_save_exec_prefix="$exec_prefix"
11079 exec_prefix="$acl_final_exec_prefix"
11080 eval x=\"$x\"
11081 exec_prefix="$acl_save_exec_prefix"
11082 prefix="$acl_save_prefix"
11083
11084 if test "X$x" = "X-L$additional_libdir"; then
11085 haveit=yes
11086 break
11087 fi
11088 done
11089 if test -z "$haveit"; then
11090 if test -d "$additional_libdir"; then
11091 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11092 fi
11093 fi
11094 fi
11095 fi
11096 ;;
11097 -R*)
11098 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11099 if test "$enable_rpath" != no; then
11100 haveit=
11101 for x in $rpathdirs; do
11102 if test "X$x" = "X$dir"; then
11103 haveit=yes
11104 break
11105 fi
11106 done
11107 if test -z "$haveit"; then
11108 rpathdirs="$rpathdirs $dir"
11109 fi
11110 haveit=
11111 for x in $ltrpathdirs; do
11112 if test "X$x" = "X$dir"; then
11113 haveit=yes
11114 break
11115 fi
11116 done
11117 if test -z "$haveit"; then
11118 ltrpathdirs="$ltrpathdirs $dir"
11119 fi
11120 fi
11121 ;;
11122 -l*)
11123 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11124 ;;
11125 *.la)
11126 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11127 ;;
11128 *)
11129 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11130 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11131 ;;
11132 esac
11133 done
11134 fi
11135 else
11136 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11137 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11138 fi
11139 fi
11140 fi
11141 done
11142 done
11143 if test "X$rpathdirs" != "X"; then
11144 if test -n "$hardcode_libdir_separator"; then
11145 alldirs=
11146 for found_dir in $rpathdirs; do
11147 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11148 done
11149 acl_save_libdir="$libdir"
11150 libdir="$alldirs"
11151 eval flag=\"$hardcode_libdir_flag_spec\"
11152 libdir="$acl_save_libdir"
11153 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11154 else
11155 for found_dir in $rpathdirs; do
11156 acl_save_libdir="$libdir"
11157 libdir="$found_dir"
11158 eval flag=\"$hardcode_libdir_flag_spec\"
11159 libdir="$acl_save_libdir"
11160 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11161 done
11162 fi
11163 fi
11164 if test "X$ltrpathdirs" != "X"; then
11165 for found_dir in $ltrpathdirs; do
11166 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11167 done
11168 fi
11169
11170
11171
11172
11173
11174
11175
11176
11177 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11178 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11179 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11181 else
11182 cat >conftest.$ac_ext <<_ACEOF
11183 /* confdefs.h. */
11184 _ACEOF
11185 cat confdefs.h >>conftest.$ac_ext
11186 cat >>conftest.$ac_ext <<_ACEOF
11187 /* end confdefs.h. */
11188 $ac_includes_default
11189 typedef ptrdiff_t ac__type_new_;
11190 int
11191 main ()
11192 {
11193 if ((ac__type_new_ *) 0)
11194 return 0;
11195 if (sizeof (ac__type_new_))
11196 return 0;
11197 ;
11198 return 0;
11199 }
11200 _ACEOF
11201 rm -f conftest.$ac_objext
11202 if { (ac_try="$ac_compile"
11203 case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11206 esac
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_compile") 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } && {
11215 test -z "$ac_c_werror_flag" ||
11216 test ! -s conftest.err
11217 } && test -s conftest.$ac_objext; then
11218 ac_cv_type_ptrdiff_t=yes
11219 else
11220 echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.$ac_ext >&5
11222
11223 ac_cv_type_ptrdiff_t=no
11224 fi
11225
11226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11227 fi
11228 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11229 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11230 if test $ac_cv_type_ptrdiff_t = yes; then
11231 :
11232 else
11233
11234 cat >>confdefs.h <<\_ACEOF
11235 #define ptrdiff_t long
11236 _ACEOF
11237
11238
11239 fi
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11252 stdlib.h string.h unistd.h sys/param.h
11253 do
11254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 fi
11261 ac_res=`eval echo '${'$as_ac_Header'}'`
11262 { echo "$as_me:$LINENO: result: $ac_res" >&5
11263 echo "${ECHO_T}$ac_res" >&6; }
11264 else
11265 # Is the header compilable?
11266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11268 cat >conftest.$ac_ext <<_ACEOF
11269 /* confdefs.h. */
11270 _ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h. */
11274 $ac_includes_default
11275 #include <$ac_header>
11276 _ACEOF
11277 rm -f conftest.$ac_objext
11278 if { (ac_try="$ac_compile"
11279 case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11282 esac
11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_compile") 2>conftest.er1
11285 ac_status=$?
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } && {
11291 test -z "$ac_c_werror_flag" ||
11292 test ! -s conftest.err
11293 } && test -s conftest.$ac_objext; then
11294 ac_header_compiler=yes
11295 else
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299 ac_header_compiler=no
11300 fi
11301
11302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11304 echo "${ECHO_T}$ac_header_compiler" >&6; }
11305
11306 # Is the header present?
11307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 #include <$ac_header>
11316 _ACEOF
11317 if { (ac_try="$ac_cpp conftest.$ac_ext"
11318 case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11321 esac
11322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11324 ac_status=$?
11325 grep -v '^ *+' conftest.er1 >conftest.err
11326 rm -f conftest.er1
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } >/dev/null && {
11330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11331 test ! -s conftest.err
11332 }; then
11333 ac_header_preproc=yes
11334 else
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11337
11338 ac_header_preproc=no
11339 fi
11340
11341 rm -f conftest.err conftest.$ac_ext
11342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11343 echo "${ECHO_T}$ac_header_preproc" >&6; }
11344
11345 # So? What about this header?
11346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11347 yes:no: )
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11352 ac_header_preproc=yes
11353 ;;
11354 no:yes:* )
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11367 ( cat <<\_ASBOX
11368 ## --------------------------------------- ##
11369 ## Report this to [email protected] ##
11370 ## --------------------------------------- ##
11371 _ASBOX
11372 ) | sed "s/^/$as_me: WARNING: /" >&2
11373 ;;
11374 esac
11375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380 eval "$as_ac_Header=\$ac_header_preproc"
11381 fi
11382 ac_res=`eval echo '${'$as_ac_Header'}'`
11383 { echo "$as_me:$LINENO: result: $ac_res" >&5
11384 echo "${ECHO_T}$ac_res" >&6; }
11385
11386 fi
11387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11388 cat >>confdefs.h <<_ACEOF
11389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11390 _ACEOF
11391
11392 fi
11393
11394 done
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11420 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11421 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11422 __fsetlocking
11423 do
11424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11425 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11429 else
11430 cat >conftest.$ac_ext <<_ACEOF
11431 /* confdefs.h. */
11432 _ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h. */
11436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11438 #define $ac_func innocuous_$ac_func
11439
11440 /* System header to define __stub macros and hopefully few prototypes,
11441 which can conflict with char $ac_func (); below.
11442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11443 <limits.h> exists even on freestanding compilers. */
11444
11445 #ifdef __STDC__
11446 # include <limits.h>
11447 #else
11448 # include <assert.h>
11449 #endif
11450
11451 #undef $ac_func
11452
11453 /* Override any GCC internal prototype to avoid an error.
11454 Use char because int might match the return type of a GCC
11455 builtin and then its argument prototype would still apply. */
11456 #ifdef __cplusplus
11457 extern "C"
11458 #endif
11459 char $ac_func ();
11460 /* The GNU C library defines this for functions which it implements
11461 to always fail with ENOSYS. Some functions are actually named
11462 something starting with __ and the normal name is an alias. */
11463 #if defined __stub_$ac_func || defined __stub___$ac_func
11464 choke me
11465 #endif
11466
11467 int
11468 main ()
11469 {
11470 return $ac_func ();
11471 ;
11472 return 0;
11473 }
11474 _ACEOF
11475 rm -f conftest.$ac_objext conftest$ac_exeext
11476 if { (ac_try="$ac_link"
11477 case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11480 esac
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_link") 2>conftest.er1
11483 ac_status=$?
11484 grep -v '^ *+' conftest.er1 >conftest.err
11485 rm -f conftest.er1
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } && {
11489 test -z "$ac_c_werror_flag" ||
11490 test ! -s conftest.err
11491 } && test -s conftest$ac_exeext &&
11492 $as_test_x conftest$ac_exeext; then
11493 eval "$as_ac_var=yes"
11494 else
11495 echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11497
11498 eval "$as_ac_var=no"
11499 fi
11500
11501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11502 conftest$ac_exeext conftest.$ac_ext
11503 fi
11504 ac_res=`eval echo '${'$as_ac_var'}'`
11505 { echo "$as_me:$LINENO: result: $ac_res" >&5
11506 echo "${ECHO_T}$ac_res" >&6; }
11507 if test `eval echo '${'$as_ac_var'}'` = yes; then
11508 cat >>confdefs.h <<_ACEOF
11509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11510 _ACEOF
11511
11512 fi
11513 done
11514
11515
11516
11517 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11518 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11519 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 else
11522 cat >conftest.$ac_ext <<_ACEOF
11523 /* confdefs.h. */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528 #include <stdio.h>
11529 int
11530 main ()
11531 {
11532
11533 #ifndef _snprintf
11534 char *p = (char *) _snprintf;
11535 #endif
11536
11537 ;
11538 return 0;
11539 }
11540 _ACEOF
11541 rm -f conftest.$ac_objext
11542 if { (ac_try="$ac_compile"
11543 case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11546 esac
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_compile") 2>conftest.er1
11549 ac_status=$?
11550 grep -v '^ *+' conftest.er1 >conftest.err
11551 rm -f conftest.er1
11552 cat conftest.err >&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } && {
11555 test -z "$ac_c_werror_flag" ||
11556 test ! -s conftest.err
11557 } && test -s conftest.$ac_objext; then
11558 ac_cv_have_decl__snprintf=yes
11559 else
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11562
11563 ac_cv_have_decl__snprintf=no
11564 fi
11565
11566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11567 fi
11568 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11569 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11570 if test $ac_cv_have_decl__snprintf = yes; then
11571 gt_value=1
11572 else
11573 gt_value=0
11574 fi
11575
11576 cat >>confdefs.h <<_ACEOF
11577 #define HAVE_DECL__SNPRINTF $gt_value
11578 _ACEOF
11579
11580
11581
11582 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11583 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11584 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587 cat >conftest.$ac_ext <<_ACEOF
11588 /* confdefs.h. */
11589 _ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593 #include <stdio.h>
11594 int
11595 main ()
11596 {
11597
11598 #ifndef _snwprintf
11599 char *p = (char *) _snwprintf;
11600 #endif
11601
11602 ;
11603 return 0;
11604 }
11605 _ACEOF
11606 rm -f conftest.$ac_objext
11607 if { (ac_try="$ac_compile"
11608 case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11611 esac
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613 (eval "$ac_compile") 2>conftest.er1
11614 ac_status=$?
11615 grep -v '^ *+' conftest.er1 >conftest.err
11616 rm -f conftest.er1
11617 cat conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } && {
11620 test -z "$ac_c_werror_flag" ||
11621 test ! -s conftest.err
11622 } && test -s conftest.$ac_objext; then
11623 ac_cv_have_decl__snwprintf=yes
11624 else
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11627
11628 ac_cv_have_decl__snwprintf=no
11629 fi
11630
11631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632 fi
11633 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11634 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11635 if test $ac_cv_have_decl__snwprintf = yes; then
11636 gt_value=1
11637 else
11638 gt_value=0
11639 fi
11640
11641 cat >>confdefs.h <<_ACEOF
11642 #define HAVE_DECL__SNWPRINTF $gt_value
11643 _ACEOF
11644
11645
11646
11647
11648 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11649 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11650 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653 cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h. */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659 #include <stdio.h>
11660 int
11661 main ()
11662 {
11663
11664 #ifndef feof_unlocked
11665 char *p = (char *) feof_unlocked;
11666 #endif
11667
11668 ;
11669 return 0;
11670 }
11671 _ACEOF
11672 rm -f conftest.$ac_objext
11673 if { (ac_try="$ac_compile"
11674 case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11677 esac
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_compile") 2>conftest.er1
11680 ac_status=$?
11681 grep -v '^ *+' conftest.er1 >conftest.err
11682 rm -f conftest.er1
11683 cat conftest.err >&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } && {
11686 test -z "$ac_c_werror_flag" ||
11687 test ! -s conftest.err
11688 } && test -s conftest.$ac_objext; then
11689 ac_cv_have_decl_feof_unlocked=yes
11690 else
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11693
11694 ac_cv_have_decl_feof_unlocked=no
11695 fi
11696
11697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698 fi
11699 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11700 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11701 if test $ac_cv_have_decl_feof_unlocked = yes; then
11702 gt_value=1
11703 else
11704 gt_value=0
11705 fi
11706
11707 cat >>confdefs.h <<_ACEOF
11708 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11709 _ACEOF
11710
11711
11712
11713 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11714 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11715 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718 cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h. */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724 #include <stdio.h>
11725 int
11726 main ()
11727 {
11728
11729 #ifndef fgets_unlocked
11730 char *p = (char *) fgets_unlocked;
11731 #endif
11732
11733 ;
11734 return 0;
11735 }
11736 _ACEOF
11737 rm -f conftest.$ac_objext
11738 if { (ac_try="$ac_compile"
11739 case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11742 esac
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_compile") 2>conftest.er1
11745 ac_status=$?
11746 grep -v '^ *+' conftest.er1 >conftest.err
11747 rm -f conftest.er1
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } && {
11751 test -z "$ac_c_werror_flag" ||
11752 test ! -s conftest.err
11753 } && test -s conftest.$ac_objext; then
11754 ac_cv_have_decl_fgets_unlocked=yes
11755 else
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11758
11759 ac_cv_have_decl_fgets_unlocked=no
11760 fi
11761
11762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763 fi
11764 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11765 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11766 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11767 gt_value=1
11768 else
11769 gt_value=0
11770 fi
11771
11772 cat >>confdefs.h <<_ACEOF
11773 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11774 _ACEOF
11775
11776
11777
11778 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11779 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11780 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 else
11783 cat >conftest.$ac_ext <<_ACEOF
11784 /* confdefs.h. */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11789 #include <stdio.h>
11790 int
11791 main ()
11792 {
11793
11794 #ifndef getc_unlocked
11795 char *p = (char *) getc_unlocked;
11796 #endif
11797
11798 ;
11799 return 0;
11800 }
11801 _ACEOF
11802 rm -f conftest.$ac_objext
11803 if { (ac_try="$ac_compile"
11804 case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807 esac
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_compile") 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } && {
11816 test -z "$ac_c_werror_flag" ||
11817 test ! -s conftest.err
11818 } && test -s conftest.$ac_objext; then
11819 ac_cv_have_decl_getc_unlocked=yes
11820 else
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 ac_cv_have_decl_getc_unlocked=no
11825 fi
11826
11827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828 fi
11829 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11830 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
11831 if test $ac_cv_have_decl_getc_unlocked = yes; then
11832 gt_value=1
11833 else
11834 gt_value=0
11835 fi
11836
11837 cat >>confdefs.h <<_ACEOF
11838 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11839 _ACEOF
11840
11841
11842
11843 case $gt_cv_func_printf_posix in
11844 *yes) HAVE_POSIX_PRINTF=1 ;;
11845 *) HAVE_POSIX_PRINTF=0 ;;
11846 esac
11847
11848 if test "$ac_cv_func_asprintf" = yes; then
11849 HAVE_ASPRINTF=1
11850 else
11851 HAVE_ASPRINTF=0
11852 fi
11853
11854 if test "$ac_cv_func_snprintf" = yes; then
11855 HAVE_SNPRINTF=1
11856 else
11857 HAVE_SNPRINTF=0
11858 fi
11859
11860 if test "$ac_cv_func_wprintf" = yes; then
11861 HAVE_WPRINTF=1
11862 else
11863 HAVE_WPRINTF=0
11864 fi
11865
11866
11867
11868
11869
11870
11871
11872 am_save_CPPFLAGS="$CPPFLAGS"
11873
11874 for element in $INCICONV; do
11875 haveit=
11876 for x in $CPPFLAGS; do
11877
11878 acl_save_prefix="$prefix"
11879 prefix="$acl_final_prefix"
11880 acl_save_exec_prefix="$exec_prefix"
11881 exec_prefix="$acl_final_exec_prefix"
11882 eval x=\"$x\"
11883 exec_prefix="$acl_save_exec_prefix"
11884 prefix="$acl_save_prefix"
11885
11886 if test "X$x" = "X$element"; then
11887 haveit=yes
11888 break
11889 fi
11890 done
11891 if test -z "$haveit"; then
11892 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11893 fi
11894 done
11895
11896
11897 { echo "$as_me:$LINENO: checking for iconv" >&5
11898 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
11899 if test "${am_cv_func_iconv+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11901 else
11902
11903 am_cv_func_iconv="no, consider installing GNU libiconv"
11904 am_cv_lib_iconv=no
11905 cat >conftest.$ac_ext <<_ACEOF
11906 /* confdefs.h. */
11907 _ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11911 #include <stdlib.h>
11912 #include <iconv.h>
11913 int
11914 main ()
11915 {
11916 iconv_t cd = iconv_open("","");
11917 iconv(cd,NULL,NULL,NULL,NULL);
11918 iconv_close(cd);
11919 ;
11920 return 0;
11921 }
11922 _ACEOF
11923 rm -f conftest.$ac_objext conftest$ac_exeext
11924 if { (ac_try="$ac_link"
11925 case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11928 esac
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_link") 2>conftest.er1
11931 ac_status=$?
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } && {
11937 test -z "$ac_c_werror_flag" ||
11938 test ! -s conftest.err
11939 } && test -s conftest$ac_exeext &&
11940 $as_test_x conftest$ac_exeext; then
11941 am_cv_func_iconv=yes
11942 else
11943 echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11945
11946
11947 fi
11948
11949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11950 conftest$ac_exeext conftest.$ac_ext
11951 if test "$am_cv_func_iconv" != yes; then
11952 am_save_LIBS="$LIBS"
11953 LIBS="$LIBS $LIBICONV"
11954 cat >conftest.$ac_ext <<_ACEOF
11955 /* confdefs.h. */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11960 #include <stdlib.h>
11961 #include <iconv.h>
11962 int
11963 main ()
11964 {
11965 iconv_t cd = iconv_open("","");
11966 iconv(cd,NULL,NULL,NULL,NULL);
11967 iconv_close(cd);
11968 ;
11969 return 0;
11970 }
11971 _ACEOF
11972 rm -f conftest.$ac_objext conftest$ac_exeext
11973 if { (ac_try="$ac_link"
11974 case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11977 esac
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_link") 2>conftest.er1
11980 ac_status=$?
11981 grep -v '^ *+' conftest.er1 >conftest.err
11982 rm -f conftest.er1
11983 cat conftest.err >&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } && {
11986 test -z "$ac_c_werror_flag" ||
11987 test ! -s conftest.err
11988 } && test -s conftest$ac_exeext &&
11989 $as_test_x conftest$ac_exeext; then
11990 am_cv_lib_iconv=yes
11991 am_cv_func_iconv=yes
11992 else
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996
11997 fi
11998
11999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12000 conftest$ac_exeext conftest.$ac_ext
12001 LIBS="$am_save_LIBS"
12002 fi
12003
12004 fi
12005 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12006 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12007 if test "$am_cv_func_iconv" = yes; then
12008
12009 cat >>confdefs.h <<\_ACEOF
12010 #define HAVE_ICONV 1
12011 _ACEOF
12012
12013 fi
12014 if test "$am_cv_lib_iconv" = yes; then
12015 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12016 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12017 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12018 echo "${ECHO_T}$LIBICONV" >&6; }
12019 else
12020 CPPFLAGS="$am_save_CPPFLAGS"
12021 LIBICONV=
12022 LTLIBICONV=
12023 fi
12024
12025
12026
12027 if test "$am_cv_func_iconv" = yes; then
12028 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12029 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12030 if test "${am_cv_proto_iconv+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 else
12033
12034 cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h. */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040
12041 #include <stdlib.h>
12042 #include <iconv.h>
12043 extern
12044 #ifdef __cplusplus
12045 "C"
12046 #endif
12047 #if defined(__STDC__) || defined(__cplusplus)
12048 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12049 #else
12050 size_t iconv();
12051 #endif
12052
12053 int
12054 main ()
12055 {
12056
12057 ;
12058 return 0;
12059 }
12060 _ACEOF
12061 rm -f conftest.$ac_objext
12062 if { (ac_try="$ac_compile"
12063 case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066 esac
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_compile") 2>conftest.er1
12069 ac_status=$?
12070 grep -v '^ *+' conftest.er1 >conftest.err
12071 rm -f conftest.er1
12072 cat conftest.err >&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } && {
12075 test -z "$ac_c_werror_flag" ||
12076 test ! -s conftest.err
12077 } && test -s conftest.$ac_objext; then
12078 am_cv_proto_iconv_arg1=""
12079 else
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12082
12083 am_cv_proto_iconv_arg1="const"
12084 fi
12085
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087 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);"
12088 fi
12089
12090 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12091 { echo "$as_me:$LINENO: result: ${ac_t:-
12092 }$am_cv_proto_iconv" >&5
12093 echo "${ECHO_T}${ac_t:-
12094 }$am_cv_proto_iconv" >&6; }
12095
12096 cat >>confdefs.h <<_ACEOF
12097 #define ICONV_CONST $am_cv_proto_iconv_arg1
12098 _ACEOF
12099
12100 fi
12101
12102
12103 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12104 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12105 if test "${am_cv_langinfo_codeset+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108 cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h. */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 #include <langinfo.h>
12115 int
12116 main ()
12117 {
12118 char* cs = nl_langinfo(CODESET);
12119 ;
12120 return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (ac_try="$ac_link"
12125 case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12128 esac
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_link") 2>conftest.er1
12131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && {
12137 test -z "$ac_c_werror_flag" ||
12138 test ! -s conftest.err
12139 } && test -s conftest$ac_exeext &&
12140 $as_test_x conftest$ac_exeext; then
12141 am_cv_langinfo_codeset=yes
12142 else
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12145
12146 am_cv_langinfo_codeset=no
12147 fi
12148
12149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12150 conftest$ac_exeext conftest.$ac_ext
12151
12152 fi
12153 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12154 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12155 if test $am_cv_langinfo_codeset = yes; then
12156
12157 cat >>confdefs.h <<\_ACEOF
12158 #define HAVE_LANGINFO_CODESET 1
12159 _ACEOF
12160
12161 fi
12162
12163 if test $ac_cv_header_locale_h = yes; then
12164
12165 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12166 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12167 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176 #include <locale.h>
12177 int
12178 main ()
12179 {
12180 return LC_MESSAGES
12181 ;
12182 return 0;
12183 }
12184 _ACEOF
12185 rm -f conftest.$ac_objext conftest$ac_exeext
12186 if { (ac_try="$ac_link"
12187 case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12190 esac
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_link") 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } && {
12199 test -z "$ac_c_werror_flag" ||
12200 test ! -s conftest.err
12201 } && test -s conftest$ac_exeext &&
12202 $as_test_x conftest$ac_exeext; then
12203 am_cv_val_LC_MESSAGES=yes
12204 else
12205 echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12207
12208 am_cv_val_LC_MESSAGES=no
12209 fi
12210
12211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12212 conftest$ac_exeext conftest.$ac_ext
12213 fi
12214 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12215 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
12216 if test $am_cv_val_LC_MESSAGES = yes; then
12217
12218 cat >>confdefs.h <<\_ACEOF
12219 #define HAVE_LC_MESSAGES 1
12220 _ACEOF
12221
12222 fi
12223
12224 fi
12225
12226 for ac_prog in bison
12227 do
12228 # Extract the first word of "$ac_prog", so it can be a program name with args.
12229 set dummy $ac_prog; ac_word=$2
12230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12232 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 else
12235 if test -n "$INTLBISON"; then
12236 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12237 else
12238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12240 do
12241 IFS=$as_save_IFS
12242 test -z "$as_dir" && as_dir=.
12243 for ac_exec_ext in '' $ac_executable_extensions; do
12244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12245 ac_cv_prog_INTLBISON="$ac_prog"
12246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12247 break 2
12248 fi
12249 done
12250 done
12251 IFS=$as_save_IFS
12252
12253 fi
12254 fi
12255 INTLBISON=$ac_cv_prog_INTLBISON
12256 if test -n "$INTLBISON"; then
12257 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12258 echo "${ECHO_T}$INTLBISON" >&6; }
12259 else
12260 { echo "$as_me:$LINENO: result: no" >&5
12261 echo "${ECHO_T}no" >&6; }
12262 fi
12263
12264
12265 test -n "$INTLBISON" && break
12266 done
12267
12268 if test -z "$INTLBISON"; then
12269 ac_verc_fail=yes
12270 else
12271 { echo "$as_me:$LINENO: checking version of bison" >&5
12272 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12273 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12274 case $ac_prog_version in
12275 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12276 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12277 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12278 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12279 esac
12280 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12281 echo "${ECHO_T}$ac_prog_version" >&6; }
12282 fi
12283 if test $ac_verc_fail = yes; then
12284 INTLBISON=:
12285 fi
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12303 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12304 # Check whether --enable-nls was given.
12305 if test "${enable_nls+set}" = set; then
12306 enableval=$enable_nls; USE_NLS=$enableval
12307 else
12308 USE_NLS=yes
12309 fi
12310
12311 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12312 echo "${ECHO_T}$USE_NLS" >&6; }
12313
12314
12315
12316
12317 BUILD_INCLUDED_LIBINTL=no
12318 USE_INCLUDED_LIBINTL=no
12319
12320 LIBINTL=
12321 LTLIBINTL=
12322 POSUB=
12323
12324 if test "$USE_NLS" = "yes"; then
12325 gt_use_preinstalled_gnugettext=no
12326
12327 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12328 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12329
12330 # Check whether --with-included-gettext was given.
12331 if test "${with_included_gettext+set}" = set; then
12332 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12333 else
12334 nls_cv_force_use_gnu_gettext=no
12335 fi
12336
12337 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12338 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12339
12340 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12341 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12342
12343
12344
12345
12346
12347
12348 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12349 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12350 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12352 else
12353 cat >conftest.$ac_ext <<_ACEOF
12354 /* confdefs.h. */
12355 _ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12359 #include <libintl.h>
12360 extern int _nl_msg_cat_cntr;
12361 extern int *_nl_domain_bindings;
12362 int
12363 main ()
12364 {
12365 bindtextdomain ("", "");
12366 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12367 ;
12368 return 0;
12369 }
12370 _ACEOF
12371 rm -f conftest.$ac_objext conftest$ac_exeext
12372 if { (ac_try="$ac_link"
12373 case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12376 esac
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_link") 2>conftest.er1
12379 ac_status=$?
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } && {
12385 test -z "$ac_c_werror_flag" ||
12386 test ! -s conftest.err
12387 } && test -s conftest$ac_exeext &&
12388 $as_test_x conftest$ac_exeext; then
12389 gt_cv_func_gnugettext1_libc=yes
12390 else
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12393
12394 gt_cv_func_gnugettext1_libc=no
12395 fi
12396
12397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12398 conftest$ac_exeext conftest.$ac_ext
12399 fi
12400 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12401 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12402
12403 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12404
12405
12406
12407 use_additional=yes
12408
12409 acl_save_prefix="$prefix"
12410 prefix="$acl_final_prefix"
12411 acl_save_exec_prefix="$exec_prefix"
12412 exec_prefix="$acl_final_exec_prefix"
12413
12414 eval additional_includedir=\"$includedir\"
12415 eval additional_libdir=\"$libdir\"
12416
12417 exec_prefix="$acl_save_exec_prefix"
12418 prefix="$acl_save_prefix"
12419
12420
12421 # Check whether --with-libintl-prefix was given.
12422 if test "${with_libintl_prefix+set}" = set; then
12423 withval=$with_libintl_prefix;
12424 if test "X$withval" = "Xno"; then
12425 use_additional=no
12426 else
12427 if test "X$withval" = "X"; then
12428
12429 acl_save_prefix="$prefix"
12430 prefix="$acl_final_prefix"
12431 acl_save_exec_prefix="$exec_prefix"
12432 exec_prefix="$acl_final_exec_prefix"
12433
12434 eval additional_includedir=\"$includedir\"
12435 eval additional_libdir=\"$libdir\"
12436
12437 exec_prefix="$acl_save_exec_prefix"
12438 prefix="$acl_save_prefix"
12439
12440 else
12441 additional_includedir="$withval/include"
12442 additional_libdir="$withval/lib"
12443 fi
12444 fi
12445
12446 fi
12447
12448 LIBINTL=
12449 LTLIBINTL=
12450 INCINTL=
12451 rpathdirs=
12452 ltrpathdirs=
12453 names_already_handled=
12454 names_next_round='intl '
12455 while test -n "$names_next_round"; do
12456 names_this_round="$names_next_round"
12457 names_next_round=
12458 for name in $names_this_round; do
12459 already_handled=
12460 for n in $names_already_handled; do
12461 if test "$n" = "$name"; then
12462 already_handled=yes
12463 break
12464 fi
12465 done
12466 if test -z "$already_handled"; then
12467 names_already_handled="$names_already_handled $name"
12468 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12469 eval value=\"\$HAVE_LIB$uppername\"
12470 if test -n "$value"; then
12471 if test "$value" = yes; then
12472 eval value=\"\$LIB$uppername\"
12473 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12474 eval value=\"\$LTLIB$uppername\"
12475 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12476 else
12477 :
12478 fi
12479 else
12480 found_dir=
12481 found_la=
12482 found_so=
12483 found_a=
12484 if test $use_additional = yes; then
12485 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12486 found_dir="$additional_libdir"
12487 found_so="$additional_libdir/lib$name.$shlibext"
12488 if test -f "$additional_libdir/lib$name.la"; then
12489 found_la="$additional_libdir/lib$name.la"
12490 fi
12491 else
12492 if test -f "$additional_libdir/lib$name.$libext"; then
12493 found_dir="$additional_libdir"
12494 found_a="$additional_libdir/lib$name.$libext"
12495 if test -f "$additional_libdir/lib$name.la"; then
12496 found_la="$additional_libdir/lib$name.la"
12497 fi
12498 fi
12499 fi
12500 fi
12501 if test "X$found_dir" = "X"; then
12502 for x in $LDFLAGS $LTLIBINTL; do
12503
12504 acl_save_prefix="$prefix"
12505 prefix="$acl_final_prefix"
12506 acl_save_exec_prefix="$exec_prefix"
12507 exec_prefix="$acl_final_exec_prefix"
12508 eval x=\"$x\"
12509 exec_prefix="$acl_save_exec_prefix"
12510 prefix="$acl_save_prefix"
12511
12512 case "$x" in
12513 -L*)
12514 dir=`echo "X$x" | sed -e 's/^X-L//'`
12515 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12516 found_dir="$dir"
12517 found_so="$dir/lib$name.$shlibext"
12518 if test -f "$dir/lib$name.la"; then
12519 found_la="$dir/lib$name.la"
12520 fi
12521 else
12522 if test -f "$dir/lib$name.$libext"; then
12523 found_dir="$dir"
12524 found_a="$dir/lib$name.$libext"
12525 if test -f "$dir/lib$name.la"; then
12526 found_la="$dir/lib$name.la"
12527 fi
12528 fi
12529 fi
12530 ;;
12531 esac
12532 if test "X$found_dir" != "X"; then
12533 break
12534 fi
12535 done
12536 fi
12537 if test "X$found_dir" != "X"; then
12538 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12539 if test "X$found_so" != "X"; then
12540 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12541 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12542 else
12543 haveit=
12544 for x in $ltrpathdirs; do
12545 if test "X$x" = "X$found_dir"; then
12546 haveit=yes
12547 break
12548 fi
12549 done
12550 if test -z "$haveit"; then
12551 ltrpathdirs="$ltrpathdirs $found_dir"
12552 fi
12553 if test "$hardcode_direct" = yes; then
12554 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12555 else
12556 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12557 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12558 haveit=
12559 for x in $rpathdirs; do
12560 if test "X$x" = "X$found_dir"; then
12561 haveit=yes
12562 break
12563 fi
12564 done
12565 if test -z "$haveit"; then
12566 rpathdirs="$rpathdirs $found_dir"
12567 fi
12568 else
12569 haveit=
12570 for x in $LDFLAGS $LIBINTL; do
12571
12572 acl_save_prefix="$prefix"
12573 prefix="$acl_final_prefix"
12574 acl_save_exec_prefix="$exec_prefix"
12575 exec_prefix="$acl_final_exec_prefix"
12576 eval x=\"$x\"
12577 exec_prefix="$acl_save_exec_prefix"
12578 prefix="$acl_save_prefix"
12579
12580 if test "X$x" = "X-L$found_dir"; then
12581 haveit=yes
12582 break
12583 fi
12584 done
12585 if test -z "$haveit"; then
12586 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12587 fi
12588 if test "$hardcode_minus_L" != no; then
12589 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12590 else
12591 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12592 fi
12593 fi
12594 fi
12595 fi
12596 else
12597 if test "X$found_a" != "X"; then
12598 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12599 else
12600 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12601 fi
12602 fi
12603 additional_includedir=
12604 case "$found_dir" in
12605 */lib | */lib/)
12606 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12607 additional_includedir="$basedir/include"
12608 ;;
12609 esac
12610 if test "X$additional_includedir" != "X"; then
12611 if test "X$additional_includedir" != "X/usr/include"; then
12612 haveit=
12613 if test "X$additional_includedir" = "X/usr/local/include"; then
12614 if test -n "$GCC"; then
12615 case $host_os in
12616 linux*) haveit=yes;;
12617 esac
12618 fi
12619 fi
12620 if test -z "$haveit"; then
12621 for x in $CPPFLAGS $INCINTL; do
12622
12623 acl_save_prefix="$prefix"
12624 prefix="$acl_final_prefix"
12625 acl_save_exec_prefix="$exec_prefix"
12626 exec_prefix="$acl_final_exec_prefix"
12627 eval x=\"$x\"
12628 exec_prefix="$acl_save_exec_prefix"
12629 prefix="$acl_save_prefix"
12630
12631 if test "X$x" = "X-I$additional_includedir"; then
12632 haveit=yes
12633 break
12634 fi
12635 done
12636 if test -z "$haveit"; then
12637 if test -d "$additional_includedir"; then
12638 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12639 fi
12640 fi
12641 fi
12642 fi
12643 fi
12644 if test -n "$found_la"; then
12645 save_libdir="$libdir"
12646 case "$found_la" in
12647 */* | *\\*) . "$found_la" ;;
12648 *) . "./$found_la" ;;
12649 esac
12650 libdir="$save_libdir"
12651 for dep in $dependency_libs; do
12652 case "$dep" in
12653 -L*)
12654 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12655 if test "X$additional_libdir" != "X/usr/lib"; then
12656 haveit=
12657 if test "X$additional_libdir" = "X/usr/local/lib"; then
12658 if test -n "$GCC"; then
12659 case $host_os in
12660 linux*) haveit=yes;;
12661 esac
12662 fi
12663 fi
12664 if test -z "$haveit"; then
12665 haveit=
12666 for x in $LDFLAGS $LIBINTL; do
12667
12668 acl_save_prefix="$prefix"
12669 prefix="$acl_final_prefix"
12670 acl_save_exec_prefix="$exec_prefix"
12671 exec_prefix="$acl_final_exec_prefix"
12672 eval x=\"$x\"
12673 exec_prefix="$acl_save_exec_prefix"
12674 prefix="$acl_save_prefix"
12675
12676 if test "X$x" = "X-L$additional_libdir"; then
12677 haveit=yes
12678 break
12679 fi
12680 done
12681 if test -z "$haveit"; then
12682 if test -d "$additional_libdir"; then
12683 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12684 fi
12685 fi
12686 haveit=
12687 for x in $LDFLAGS $LTLIBINTL; do
12688
12689 acl_save_prefix="$prefix"
12690 prefix="$acl_final_prefix"
12691 acl_save_exec_prefix="$exec_prefix"
12692 exec_prefix="$acl_final_exec_prefix"
12693 eval x=\"$x\"
12694 exec_prefix="$acl_save_exec_prefix"
12695 prefix="$acl_save_prefix"
12696
12697 if test "X$x" = "X-L$additional_libdir"; then
12698 haveit=yes
12699 break
12700 fi
12701 done
12702 if test -z "$haveit"; then
12703 if test -d "$additional_libdir"; then
12704 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12705 fi
12706 fi
12707 fi
12708 fi
12709 ;;
12710 -R*)
12711 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12712 if test "$enable_rpath" != no; then
12713 haveit=
12714 for x in $rpathdirs; do
12715 if test "X$x" = "X$dir"; then
12716 haveit=yes
12717 break
12718 fi
12719 done
12720 if test -z "$haveit"; then
12721 rpathdirs="$rpathdirs $dir"
12722 fi
12723 haveit=
12724 for x in $ltrpathdirs; do
12725 if test "X$x" = "X$dir"; then
12726 haveit=yes
12727 break
12728 fi
12729 done
12730 if test -z "$haveit"; then
12731 ltrpathdirs="$ltrpathdirs $dir"
12732 fi
12733 fi
12734 ;;
12735 -l*)
12736 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12737 ;;
12738 *.la)
12739 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12740 ;;
12741 *)
12742 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12743 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12744 ;;
12745 esac
12746 done
12747 fi
12748 else
12749 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12750 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12751 fi
12752 fi
12753 fi
12754 done
12755 done
12756 if test "X$rpathdirs" != "X"; then
12757 if test -n "$hardcode_libdir_separator"; then
12758 alldirs=
12759 for found_dir in $rpathdirs; do
12760 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12761 done
12762 acl_save_libdir="$libdir"
12763 libdir="$alldirs"
12764 eval flag=\"$hardcode_libdir_flag_spec\"
12765 libdir="$acl_save_libdir"
12766 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12767 else
12768 for found_dir in $rpathdirs; do
12769 acl_save_libdir="$libdir"
12770 libdir="$found_dir"
12771 eval flag=\"$hardcode_libdir_flag_spec\"
12772 libdir="$acl_save_libdir"
12773 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12774 done
12775 fi
12776 fi
12777 if test "X$ltrpathdirs" != "X"; then
12778 for found_dir in $ltrpathdirs; do
12779 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12780 done
12781 fi
12782
12783 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12784 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
12785 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 else
12788 gt_save_CPPFLAGS="$CPPFLAGS"
12789 CPPFLAGS="$CPPFLAGS $INCINTL"
12790 gt_save_LIBS="$LIBS"
12791 LIBS="$LIBS $LIBINTL"
12792 cat >conftest.$ac_ext <<_ACEOF
12793 /* confdefs.h. */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 #include <libintl.h>
12799 extern int _nl_msg_cat_cntr;
12800 extern
12801 #ifdef __cplusplus
12802 "C"
12803 #endif
12804 const char *_nl_expand_alias ();
12805 int
12806 main ()
12807 {
12808 bindtextdomain ("", "");
12809 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12810 ;
12811 return 0;
12812 }
12813 _ACEOF
12814 rm -f conftest.$ac_objext conftest$ac_exeext
12815 if { (ac_try="$ac_link"
12816 case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819 esac
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_link") 2>conftest.er1
12822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && {
12828 test -z "$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12830 } && test -s conftest$ac_exeext &&
12831 $as_test_x conftest$ac_exeext; then
12832 gt_cv_func_gnugettext1_libintl=yes
12833 else
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12836
12837 gt_cv_func_gnugettext1_libintl=no
12838 fi
12839
12840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12841 conftest$ac_exeext conftest.$ac_ext
12842 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12843 LIBS="$LIBS $LIBICONV"
12844 cat >conftest.$ac_ext <<_ACEOF
12845 /* confdefs.h. */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12850 #include <libintl.h>
12851 extern int _nl_msg_cat_cntr;
12852 extern
12853 #ifdef __cplusplus
12854 "C"
12855 #endif
12856 const char *_nl_expand_alias ();
12857 int
12858 main ()
12859 {
12860 bindtextdomain ("", "");
12861 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12862 ;
12863 return 0;
12864 }
12865 _ACEOF
12866 rm -f conftest.$ac_objext conftest$ac_exeext
12867 if { (ac_try="$ac_link"
12868 case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12871 esac
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_link") 2>conftest.er1
12874 ac_status=$?
12875 grep -v '^ *+' conftest.er1 >conftest.err
12876 rm -f conftest.er1
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } && {
12880 test -z "$ac_c_werror_flag" ||
12881 test ! -s conftest.err
12882 } && test -s conftest$ac_exeext &&
12883 $as_test_x conftest$ac_exeext; then
12884 LIBINTL="$LIBINTL $LIBICONV"
12885 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12886 gt_cv_func_gnugettext1_libintl=yes
12887
12888 else
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12891
12892
12893 fi
12894
12895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12896 conftest$ac_exeext conftest.$ac_ext
12897 fi
12898 CPPFLAGS="$gt_save_CPPFLAGS"
12899 LIBS="$gt_save_LIBS"
12900 fi
12901 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12902 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
12903 fi
12904
12905 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12906 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12907 && test "$PACKAGE" != gettext-runtime \
12908 && test "$PACKAGE" != gettext-tools; }; then
12909 gt_use_preinstalled_gnugettext=yes
12910 else
12911 LIBINTL=
12912 LTLIBINTL=
12913 INCINTL=
12914 fi
12915
12916
12917 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12918 nls_cv_use_gnu_gettext=yes
12919 fi
12920 fi
12921
12922 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12923 BUILD_INCLUDED_LIBINTL=yes
12924 USE_INCLUDED_LIBINTL=yes
12925 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12926 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12927 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12928 fi
12929
12930 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12931 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12932 CATOBJEXT=.gmo
12933 fi
12934
12935
12936 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12937 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12938
12939 cat >>confdefs.h <<\_ACEOF
12940 #define ENABLE_NLS 1
12941 _ACEOF
12942
12943 else
12944 USE_NLS=no
12945 fi
12946 fi
12947
12948 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
12949 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
12950 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12951 echo "${ECHO_T}$USE_NLS" >&6; }
12952 if test "$USE_NLS" = "yes"; then
12953 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12954 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
12955 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12956 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12957 gt_source="external libintl"
12958 else
12959 gt_source="libc"
12960 fi
12961 else
12962 gt_source="included intl directory"
12963 fi
12964 { echo "$as_me:$LINENO: result: $gt_source" >&5
12965 echo "${ECHO_T}$gt_source" >&6; }
12966 fi
12967
12968 if test "$USE_NLS" = "yes"; then
12969
12970 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12971 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12972 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
12973 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
12974 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
12975 echo "${ECHO_T}$LIBINTL" >&6; }
12976
12977 for element in $INCINTL; do
12978 haveit=
12979 for x in $CPPFLAGS; do
12980
12981 acl_save_prefix="$prefix"
12982 prefix="$acl_final_prefix"
12983 acl_save_exec_prefix="$exec_prefix"
12984 exec_prefix="$acl_final_exec_prefix"
12985 eval x=\"$x\"
12986 exec_prefix="$acl_save_exec_prefix"
12987 prefix="$acl_save_prefix"
12988
12989 if test "X$x" = "X$element"; then
12990 haveit=yes
12991 break
12992 fi
12993 done
12994 if test -z "$haveit"; then
12995 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12996 fi
12997 done
12998
12999 fi
13000
13001
13002 cat >>confdefs.h <<\_ACEOF
13003 #define HAVE_GETTEXT 1
13004 _ACEOF
13005
13006
13007 cat >>confdefs.h <<\_ACEOF
13008 #define HAVE_DCGETTEXT 1
13009 _ACEOF
13010
13011 fi
13012
13013 POSUB=po
13014 fi
13015
13016
13017 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13018 BUILD_INCLUDED_LIBINTL=yes
13019 fi
13020
13021
13022
13023
13024
13025 nls_cv_header_intl=
13026 nls_cv_header_libgt=
13027
13028 DATADIRNAME=share
13029
13030
13031 INSTOBJEXT=.mo
13032
13033
13034 GENCAT=gencat
13035
13036
13037 if test "$USE_INCLUDED_LIBINTL" = yes; then
13038 INTLOBJS="\$(GETTOBJS)"
13039 fi
13040
13041
13042 INTL_LIBTOOL_SUFFIX_PREFIX=
13043
13044
13045
13046 INTLLIBS="$LIBINTL"
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059 am_save_CPPFLAGS="$CPPFLAGS"
13060
13061 for element in $INCICONV; do
13062 haveit=
13063 for x in $CPPFLAGS; do
13064
13065 acl_save_prefix="$prefix"
13066 prefix="$acl_final_prefix"
13067 acl_save_exec_prefix="$exec_prefix"
13068 exec_prefix="$acl_final_exec_prefix"
13069 eval x=\"$x\"
13070 exec_prefix="$acl_save_exec_prefix"
13071 prefix="$acl_save_prefix"
13072
13073 if test "X$x" = "X$element"; then
13074 haveit=yes
13075 break
13076 fi
13077 done
13078 if test -z "$haveit"; then
13079 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13080 fi
13081 done
13082
13083
13084 { echo "$as_me:$LINENO: checking for iconv" >&5
13085 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13086 if test "${am_cv_func_iconv+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089
13090 am_cv_func_iconv="no, consider installing GNU libiconv"
13091 am_cv_lib_iconv=no
13092 cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h. */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13098 #include <stdlib.h>
13099 #include <iconv.h>
13100 int
13101 main ()
13102 {
13103 iconv_t cd = iconv_open("","");
13104 iconv(cd,NULL,NULL,NULL,NULL);
13105 iconv_close(cd);
13106 ;
13107 return 0;
13108 }
13109 _ACEOF
13110 rm -f conftest.$ac_objext conftest$ac_exeext
13111 if { (ac_try="$ac_link"
13112 case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13115 esac
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_link") 2>conftest.er1
13118 ac_status=$?
13119 grep -v '^ *+' conftest.er1 >conftest.err
13120 rm -f conftest.er1
13121 cat conftest.err >&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } && {
13124 test -z "$ac_c_werror_flag" ||
13125 test ! -s conftest.err
13126 } && test -s conftest$ac_exeext &&
13127 $as_test_x conftest$ac_exeext; then
13128 am_cv_func_iconv=yes
13129 else
13130 echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13132
13133
13134 fi
13135
13136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13137 conftest$ac_exeext conftest.$ac_ext
13138 if test "$am_cv_func_iconv" != yes; then
13139 am_save_LIBS="$LIBS"
13140 LIBS="$LIBS $LIBICONV"
13141 cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h. */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 #include <stdlib.h>
13148 #include <iconv.h>
13149 int
13150 main ()
13151 {
13152 iconv_t cd = iconv_open("","");
13153 iconv(cd,NULL,NULL,NULL,NULL);
13154 iconv_close(cd);
13155 ;
13156 return 0;
13157 }
13158 _ACEOF
13159 rm -f conftest.$ac_objext conftest$ac_exeext
13160 if { (ac_try="$ac_link"
13161 case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13164 esac
13165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166 (eval "$ac_link") 2>conftest.er1
13167 ac_status=$?
13168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } && {
13173 test -z "$ac_c_werror_flag" ||
13174 test ! -s conftest.err
13175 } && test -s conftest$ac_exeext &&
13176 $as_test_x conftest$ac_exeext; then
13177 am_cv_lib_iconv=yes
13178 am_cv_func_iconv=yes
13179 else
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13182
13183
13184 fi
13185
13186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13187 conftest$ac_exeext conftest.$ac_ext
13188 LIBS="$am_save_LIBS"
13189 fi
13190
13191 fi
13192 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13193 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13194 if test "$am_cv_func_iconv" = yes; then
13195
13196 cat >>confdefs.h <<\_ACEOF
13197 #define HAVE_ICONV 1
13198 _ACEOF
13199
13200 fi
13201 if test "$am_cv_lib_iconv" = yes; then
13202 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13203 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13204 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13205 echo "${ECHO_T}$LIBICONV" >&6; }
13206 else
13207 CPPFLAGS="$am_save_CPPFLAGS"
13208 LIBICONV=
13209 LTLIBICONV=
13210 fi
13211
13212
13213
13214 if test "$am_cv_func_iconv" = yes; then
13215 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13216 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13217 if test "${am_cv_proto_iconv+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 else
13220
13221 cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h. */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13227
13228 #include <stdlib.h>
13229 #include <iconv.h>
13230 extern
13231 #ifdef __cplusplus
13232 "C"
13233 #endif
13234 #if defined(__STDC__) || defined(__cplusplus)
13235 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13236 #else
13237 size_t iconv();
13238 #endif
13239
13240 int
13241 main ()
13242 {
13243
13244 ;
13245 return 0;
13246 }
13247 _ACEOF
13248 rm -f conftest.$ac_objext
13249 if { (ac_try="$ac_compile"
13250 case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13253 esac
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_compile") 2>conftest.er1
13256 ac_status=$?
13257 grep -v '^ *+' conftest.er1 >conftest.err
13258 rm -f conftest.er1
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } && {
13262 test -z "$ac_c_werror_flag" ||
13263 test ! -s conftest.err
13264 } && test -s conftest.$ac_objext; then
13265 am_cv_proto_iconv_arg1=""
13266 else
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13269
13270 am_cv_proto_iconv_arg1="const"
13271 fi
13272
13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274 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);"
13275 fi
13276
13277 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13278 { echo "$as_me:$LINENO: result: ${ac_t:-
13279 }$am_cv_proto_iconv" >&5
13280 echo "${ECHO_T}${ac_t:-
13281 }$am_cv_proto_iconv" >&6; }
13282
13283 cat >>confdefs.h <<_ACEOF
13284 #define ICONV_CONST $am_cv_proto_iconv_arg1
13285 _ACEOF
13286
13287 fi
13288
13289 LIBS="$LIBS $INTLLIBS $LIBICONV"
13290 if test "x$prefix" = "xNONE"
13291 then
13292 LOCALEDIR=$ac_default_prefix/share/locale
13293 else
13294 LOCALEDIR=$prefix/share/locale
13295 fi
13296
13297 cat >>confdefs.h <<_ACEOF
13298 #define LOCALEDIR "$LOCALEDIR"
13299 _ACEOF
13300
13301
13302 #check host OS
13303 { echo "$as_me:$LINENO: checking host OS" >&5
13304 echo $ECHO_N "checking host OS... $ECHO_C" >&6; }
13305 case "${host}" in
13306 *-*-cygwin* | *-*-mingw32* )
13307 LIB_GL=opengl32
13308 LIB_GLU=glu32
13309 PROGRAM_EXT=".exe"
13310 { echo "$as_me:$LINENO: result: Host OS is Win32" >&5
13311 echo "${ECHO_T}Host OS is Win32" >&6; }
13312 LIBS="-l$LIB_GL -l$LIB_GLU $LIBS"
13313 LIBS="-lSDL_mixer $LIBS"
13314 LIBS="-lSDL_ttf $LIBS"
13315 LIBS="$LIBS -lwinmm"
13316 ;;
13317 *)
13318 { echo "$as_me:$LINENO: checking for X" >&5
13319 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
13320
13321
13322 # Check whether --with-x was given.
13323 if test "${with_x+set}" = set; then
13324 withval=$with_x;
13325 fi
13326
13327 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13328 if test "x$with_x" = xno; then
13329 # The user explicitly disabled X.
13330 have_x=disabled
13331 else
13332 case $x_includes,$x_libraries in #(
13333 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
13334 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
13335 { (exit 1); exit 1; }; };; #(
13336 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 else
13339 # One or both of the vars are not set, and there is no cached value.
13340 ac_x_includes=no ac_x_libraries=no
13341 rm -f -r conftest.dir
13342 if mkdir conftest.dir; then
13343 cd conftest.dir
13344 cat >Imakefile <<'_ACEOF'
13345 incroot:
13346 @echo incroot='${INCROOT}'
13347 usrlibdir:
13348 @echo usrlibdir='${USRLIBDIR}'
13349 libdir:
13350 @echo libdir='${LIBDIR}'
13351 _ACEOF
13352 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13353 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13354 for ac_var in incroot usrlibdir libdir; do
13355 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13356 done
13357 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13358 for ac_extension in a so sl; do
13359 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13360 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13361 ac_im_usrlibdir=$ac_im_libdir; break
13362 fi
13363 done
13364 # Screen out bogus values from the imake configuration. They are
13365 # bogus both because they are the default anyway, and because
13366 # using them would break gcc on systems where it needs fixed includes.
13367 case $ac_im_incroot in
13368 /usr/include) ac_x_includes= ;;
13369 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13370 esac
13371 case $ac_im_usrlibdir in
13372 /usr/lib | /lib) ;;
13373 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13374 esac
13375 fi
13376 cd ..
13377 rm -f -r conftest.dir
13378 fi
13379
13380 # Standard set of common directories for X headers.
13381 # Check X11 before X11Rn because it is often a symlink to the current release.
13382 ac_x_header_dirs='
13383 /usr/X11/include
13384 /usr/X11R6/include
13385 /usr/X11R5/include
13386 /usr/X11R4/include
13387
13388 /usr/include/X11
13389 /usr/include/X11R6
13390 /usr/include/X11R5
13391 /usr/include/X11R4
13392
13393 /usr/local/X11/include
13394 /usr/local/X11R6/include
13395 /usr/local/X11R5/include
13396 /usr/local/X11R4/include
13397
13398 /usr/local/include/X11
13399 /usr/local/include/X11R6
13400 /usr/local/include/X11R5
13401 /usr/local/include/X11R4
13402
13403 /usr/X386/include
13404 /usr/x386/include
13405 /usr/XFree86/include/X11
13406
13407 /usr/include
13408 /usr/local/include
13409 /usr/unsupported/include
13410 /usr/athena/include
13411 /usr/local/x11r5/include
13412 /usr/lpp/Xamples/include
13413
13414 /usr/openwin/include
13415 /usr/openwin/share/include'
13416
13417 if test "$ac_x_includes" = no; then
13418 # Guess where to find include files, by looking for Xlib.h.
13419 # First, try using that file with no special directory specified.
13420 cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h. */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 #include <X11/Xlib.h>
13427 _ACEOF
13428 if { (ac_try="$ac_cpp conftest.$ac_ext"
13429 case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13432 esac
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13435 ac_status=$?
13436 grep -v '^ *+' conftest.er1 >conftest.err
13437 rm -f conftest.er1
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } >/dev/null && {
13441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13442 test ! -s conftest.err
13443 }; then
13444 # We can compile using X headers with no special include directory.
13445 ac_x_includes=
13446 else
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13449
13450 for ac_dir in $ac_x_header_dirs; do
13451 if test -r "$ac_dir/X11/Xlib.h"; then
13452 ac_x_includes=$ac_dir
13453 break
13454 fi
13455 done
13456 fi
13457
13458 rm -f conftest.err conftest.$ac_ext
13459 fi # $ac_x_includes = no
13460
13461 if test "$ac_x_libraries" = no; then
13462 # Check for the libraries.
13463 # See if we find them without any special options.
13464 # Don't add to $LIBS permanently.
13465 ac_save_LIBS=$LIBS
13466 LIBS="-lX11 $LIBS"
13467 cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h. */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 #include <X11/Xlib.h>
13474 int
13475 main ()
13476 {
13477 XrmInitialize ()
13478 ;
13479 return 0;
13480 }
13481 _ACEOF
13482 rm -f conftest.$ac_objext conftest$ac_exeext
13483 if { (ac_try="$ac_link"
13484 case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13487 esac
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_link") 2>conftest.er1
13490 ac_status=$?
13491 grep -v '^ *+' conftest.er1 >conftest.err
13492 rm -f conftest.er1
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } && {
13496 test -z "$ac_c_werror_flag" ||
13497 test ! -s conftest.err
13498 } && test -s conftest$ac_exeext &&
13499 $as_test_x conftest$ac_exeext; then
13500 LIBS=$ac_save_LIBS
13501 # We can link X programs with no special library path.
13502 ac_x_libraries=
13503 else
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13506
13507 LIBS=$ac_save_LIBS
13508 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13509 do
13510 # Don't even attempt the hair of trying to link an X program!
13511 for ac_extension in a so sl; do
13512 if test -r "$ac_dir/libX11.$ac_extension"; then
13513 ac_x_libraries=$ac_dir
13514 break 2
13515 fi
13516 done
13517 done
13518 fi
13519
13520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13521 conftest$ac_exeext conftest.$ac_ext
13522 fi # $ac_x_libraries = no
13523
13524 case $ac_x_includes,$ac_x_libraries in #(
13525 no,* | *,no | *\'*)
13526 # Didn't find X, or a directory has "'" in its name.
13527 ac_cv_have_x="have_x=no";; #(
13528 *)
13529 # Record where we found X for the cache.
13530 ac_cv_have_x="have_x=yes\
13531 ac_x_includes='$ac_x_includes'\
13532 ac_x_libraries='$ac_x_libraries'"
13533 esac
13534 fi
13535 ;; #(
13536 *) have_x=yes;;
13537 esac
13538 eval "$ac_cv_have_x"
13539 fi # $with_x != no
13540
13541 if test "$have_x" != yes; then
13542 { echo "$as_me:$LINENO: result: $have_x" >&5
13543 echo "${ECHO_T}$have_x" >&6; }
13544 no_x=yes
13545 else
13546 # If each of the values was on the command line, it overrides each guess.
13547 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13548 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13549 # Update the cache value to reflect the command line values.
13550 ac_cv_have_x="have_x=yes\
13551 ac_x_includes='$x_includes'\
13552 ac_x_libraries='$x_libraries'"
13553 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
13554 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
13555 fi
13556
13557 if test "x$x_includes" != "x"
13558 then
13559 CPPFLAGS="$CPPFLAGS -I$x_includes"
13560 fi
13561
13562 if test "x$x_libraries" != "x"
13563 then
13564 LIBS="$LIBS -L$x_libraries"
13565 fi
13566
13567 LIB_GL=GL
13568 LIB_GLU=GLU
13569 PROGRAM_EXT=
13570 { echo "$as_me:$LINENO: result: Host OS is not Win32" >&5
13571 echo "${ECHO_T}Host OS is not Win32" >&6; }
13572
13573 as_ac_Lib=`echo "ac_cv_lib_$LIB_GL''_glVertex3f" | $as_tr_sh`
13574 { echo "$as_me:$LINENO: checking for glVertex3f in -l$LIB_GL" >&5
13575 echo $ECHO_N "checking for glVertex3f in -l$LIB_GL... $ECHO_C" >&6; }
13576 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 else
13579 ac_check_lib_save_LIBS=$LIBS
13580 LIBS="-l$LIB_GL $LIBS"
13581 cat >conftest.$ac_ext <<_ACEOF
13582 /* confdefs.h. */
13583 _ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13587
13588 /* Override any GCC internal prototype to avoid an error.
13589 Use char because int might match the return type of a GCC
13590 builtin and then its argument prototype would still apply. */
13591 #ifdef __cplusplus
13592 extern "C"
13593 #endif
13594 char glVertex3f ();
13595 int
13596 main ()
13597 {
13598 return glVertex3f ();
13599 ;
13600 return 0;
13601 }
13602 _ACEOF
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (ac_try="$ac_link"
13605 case "(($ac_try" in
13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607 *) ac_try_echo=$ac_try;;
13608 esac
13609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13610 (eval "$ac_link") 2>conftest.er1
13611 ac_status=$?
13612 grep -v '^ *+' conftest.er1 >conftest.err
13613 rm -f conftest.er1
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } && {
13617 test -z "$ac_c_werror_flag" ||
13618 test ! -s conftest.err
13619 } && test -s conftest$ac_exeext &&
13620 $as_test_x conftest$ac_exeext; then
13621 eval "$as_ac_Lib=yes"
13622 else
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13625
13626 eval "$as_ac_Lib=no"
13627 fi
13628
13629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13630 conftest$ac_exeext conftest.$ac_ext
13631 LIBS=$ac_check_lib_save_LIBS
13632 fi
13633 ac_res=`eval echo '${'$as_ac_Lib'}'`
13634 { echo "$as_me:$LINENO: result: $ac_res" >&5
13635 echo "${ECHO_T}$ac_res" >&6; }
13636 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13637 cat >>confdefs.h <<_ACEOF
13638 #define `echo "HAVE_LIB$LIB_GL" | $as_tr_cpp` 1
13639 _ACEOF
13640
13641 LIBS="-l$LIB_GL $LIBS"
13642
13643 else
13644 { { echo "$as_me:$LINENO: error: *** You need OpenGL" >&5
13645 echo "$as_me: error: *** You need OpenGL" >&2;}
13646 { (exit 1); exit 1; }; }
13647 fi
13648
13649
13650
13651 as_ac_Lib=`echo "ac_cv_lib_$LIB_GLU''_gluLookAt" | $as_tr_sh`
13652 { echo "$as_me:$LINENO: checking for gluLookAt in -l$LIB_GLU" >&5
13653 echo $ECHO_N "checking for gluLookAt in -l$LIB_GLU... $ECHO_C" >&6; }
13654 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13656 else
13657 ac_check_lib_save_LIBS=$LIBS
13658 LIBS="-l$LIB_GLU -lm $LIBS"
13659 cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h. */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665
13666 /* Override any GCC internal prototype to avoid an error.
13667 Use char because int might match the return type of a GCC
13668 builtin and then its argument prototype would still apply. */
13669 #ifdef __cplusplus
13670 extern "C"
13671 #endif
13672 char gluLookAt ();
13673 int
13674 main ()
13675 {
13676 return gluLookAt ();
13677 ;
13678 return 0;
13679 }
13680 _ACEOF
13681 rm -f conftest.$ac_objext conftest$ac_exeext
13682 if { (ac_try="$ac_link"
13683 case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13686 esac
13687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688 (eval "$ac_link") 2>conftest.er1
13689 ac_status=$?
13690 grep -v '^ *+' conftest.er1 >conftest.err
13691 rm -f conftest.er1
13692 cat conftest.err >&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } && {
13695 test -z "$ac_c_werror_flag" ||
13696 test ! -s conftest.err
13697 } && test -s conftest$ac_exeext &&
13698 $as_test_x conftest$ac_exeext; then
13699 eval "$as_ac_Lib=yes"
13700 else
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13703
13704 eval "$as_ac_Lib=no"
13705 fi
13706
13707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13708 conftest$ac_exeext conftest.$ac_ext
13709 LIBS=$ac_check_lib_save_LIBS
13710 fi
13711 ac_res=`eval echo '${'$as_ac_Lib'}'`
13712 { echo "$as_me:$LINENO: result: $ac_res" >&5
13713 echo "${ECHO_T}$ac_res" >&6; }
13714 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13715 cat >>confdefs.h <<_ACEOF
13716 #define `echo "HAVE_LIB$LIB_GLU" | $as_tr_cpp` 1
13717 _ACEOF
13718
13719 LIBS="-l$LIB_GLU $LIBS"
13720
13721 else
13722 { { echo "$as_me:$LINENO: error: *** You need Glu" >&5
13723 echo "$as_me: error: *** You need Glu" >&2;}
13724 { (exit 1); exit 1; }; }
13725 fi
13726
13727
13728
13729 { echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5
13730 echo $ECHO_N "checking for Mix_OpenAudio in -lSDL_mixer... $ECHO_C" >&6; }
13731 if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734 ac_check_lib_save_LIBS=$LIBS
13735 LIBS="-lSDL_mixer $LIBS"
13736 cat >conftest.$ac_ext <<_ACEOF
13737 /* confdefs.h. */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742
13743 /* Override any GCC internal prototype to avoid an error.
13744 Use char because int might match the return type of a GCC
13745 builtin and then its argument prototype would still apply. */
13746 #ifdef __cplusplus
13747 extern "C"
13748 #endif
13749 char Mix_OpenAudio ();
13750 int
13751 main ()
13752 {
13753 return Mix_OpenAudio ();
13754 ;
13755 return 0;
13756 }
13757 _ACEOF
13758 rm -f conftest.$ac_objext conftest$ac_exeext
13759 if { (ac_try="$ac_link"
13760 case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13763 esac
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_link") 2>conftest.er1
13766 ac_status=$?
13767 grep -v '^ *+' conftest.er1 >conftest.err
13768 rm -f conftest.er1
13769 cat conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } && {
13772 test -z "$ac_c_werror_flag" ||
13773 test ! -s conftest.err
13774 } && test -s conftest$ac_exeext &&
13775 $as_test_x conftest$ac_exeext; then
13776 ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
13777 else
13778 echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13780
13781 ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
13782 fi
13783
13784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13785 conftest$ac_exeext conftest.$ac_ext
13786 LIBS=$ac_check_lib_save_LIBS
13787 fi
13788 { echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
13789 echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
13790 if test $ac_cv_lib_SDL_mixer_Mix_OpenAudio = yes; then
13791 cat >>confdefs.h <<_ACEOF
13792 #define HAVE_LIBSDL_MIXER 1
13793 _ACEOF
13794
13795 LIBS="-lSDL_mixer $LIBS"
13796
13797 else
13798 { { echo "$as_me:$LINENO: error: SDL-mixer" >&5
13799 echo "$as_me: error: SDL-mixer" >&2;}
13800 { (exit 1); exit 1; }; }
13801 fi
13802
13803 LIBS="$LIBS -lSDL_mixer"
13804
13805
13806 { echo "$as_me:$LINENO: checking for TTF_Init in -lSDL_ttf" >&5
13807 echo $ECHO_N "checking for TTF_Init in -lSDL_ttf... $ECHO_C" >&6; }
13808 if test "${ac_cv_lib_SDL_ttf_TTF_Init+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811 ac_check_lib_save_LIBS=$LIBS
13812 LIBS="-lSDL_ttf $LIBS"
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h. */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819
13820 /* Override any GCC internal prototype to avoid an error.
13821 Use char because int might match the return type of a GCC
13822 builtin and then its argument prototype would still apply. */
13823 #ifdef __cplusplus
13824 extern "C"
13825 #endif
13826 char TTF_Init ();
13827 int
13828 main ()
13829 {
13830 return TTF_Init ();
13831 ;
13832 return 0;
13833 }
13834 _ACEOF
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (ac_try="$ac_link"
13837 case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13840 esac
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_link") 2>conftest.er1
13843 ac_status=$?
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } && {
13849 test -z "$ac_c_werror_flag" ||
13850 test ! -s conftest.err
13851 } && test -s conftest$ac_exeext &&
13852 $as_test_x conftest$ac_exeext; then
13853 ac_cv_lib_SDL_ttf_TTF_Init=yes
13854 else
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858 ac_cv_lib_SDL_ttf_TTF_Init=no
13859 fi
13860
13861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13862 conftest$ac_exeext conftest.$ac_ext
13863 LIBS=$ac_check_lib_save_LIBS
13864 fi
13865 { echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_Init" >&5
13866 echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_Init" >&6; }
13867 if test $ac_cv_lib_SDL_ttf_TTF_Init = yes; then
13868 cat >>confdefs.h <<_ACEOF
13869 #define HAVE_LIBSDL_TTF 1
13870 _ACEOF
13871
13872 LIBS="-lSDL_ttf $LIBS"
13873
13874 else
13875 { { echo "$as_me:$LINENO: error: SDL_ttf" >&5
13876 echo "$as_me: error: SDL_ttf" >&2;}
13877 { (exit 1); exit 1; }; }
13878 fi
13879
13880 LIBS="$LIBS -lSDL_ttf"
13881 esac
13882
13883
13884 # Check whether --enable-debug was given.
13885 if test "${enable_debug+set}" = set; then
13886 enableval=$enable_debug; mogl_debug=1
13887 else
13888 mogl_debug=0
13889 fi
13890
13891 if test $mogl_debug -eq 1
13892 then
13893 CXXFLAGS="-Wall -g $CXXFLAGS"
13894 else
13895 CXXFLAGS="-Wall $CXXFLAGS"
13896 fi
13897
13898 CPPFLAGS="-DDATADIR_BRIQUOLO=\\\"$datadir/$PACKAGE\\\" $CPPFLAGS"
13899
13900 ac_config_files="$ac_config_files po/Makefile.in m4/Makefile intl/Makefile Makefile desktop/Makefile data/Makefile data/data/Makefile data/tableau/Makefile data/tableau/old/Makefile data/tableau/new/Makefile src/MOGL/Makefile src/Makefile"
13901
13902 cat >confcache <<\_ACEOF
13903 # This file is a shell script that caches the results of configure
13904 # tests run on this system so they can be shared between configure
13905 # scripts and configure runs, see configure's option --config-cache.
13906 # It is not useful on other systems. If it contains results you don't
13907 # want to keep, you may remove or edit it.
13908 #
13909 # config.status only pays attention to the cache file if you give it
13910 # the --recheck option to rerun configure.
13911 #
13912 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13913 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13914 # following values.
13915
13916 _ACEOF
13917
13918 # The following way of writing the cache mishandles newlines in values,
13919 # but we know of no workaround that is simple, portable, and efficient.
13920 # So, we kill variables containing newlines.
13921 # Ultrix sh set writes to stderr and can't be redirected directly,
13922 # and sets the high bit in the cache file unless we assign to the vars.
13923 (
13924 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13925 eval ac_val=\$$ac_var
13926 case $ac_val in #(
13927 *${as_nl}*)
13928 case $ac_var in #(
13929 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13930 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13931 esac
13932 case $ac_var in #(
13933 _ | IFS | as_nl) ;; #(
13934 *) $as_unset $ac_var ;;
13935 esac ;;
13936 esac
13937 done
13938
13939 (set) 2>&1 |
13940 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13941 *${as_nl}ac_space=\ *)
13942 # `set' does not quote correctly, so add quotes (double-quote
13943 # substitution turns \\\\ into \\, and sed turns \\ into \).
13944 sed -n \
13945 "s/'/'\\\\''/g;
13946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13947 ;; #(
13948 *)
13949 # `set' quotes correctly as required by POSIX, so do not add quotes.
13950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13951 ;;
13952 esac |
13953 sort
13954 ) |
13955 sed '
13956 /^ac_cv_env_/b end
13957 t clear
13958 :clear
13959 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13960 t end
13961 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13962 :end' >>confcache
13963 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13964 if test -w "$cache_file"; then
13965 test "x$cache_file" != "x/dev/null" &&
13966 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13967 echo "$as_me: updating cache $cache_file" >&6;}
13968 cat confcache >$cache_file
13969 else
13970 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13971 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13972 fi
13973 fi
13974 rm -f confcache
13975
13976 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13977 # Let make expand exec_prefix.
13978 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13979
13980 DEFS=-DHAVE_CONFIG_H
13981
13982 ac_libobjs=
13983 ac_ltlibobjs=
13984 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13985 # 1. Remove the extension, and $U if already installed.
13986 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13987 ac_i=`echo "$ac_i" | sed "$ac_script"`
13988 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13989 # will be set to the directory where LIBOBJS objects are built.
13990 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13991 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13992 done
13993 LIBOBJS=$ac_libobjs
13994
13995 LTLIBOBJS=$ac_ltlibobjs
13996
13997
13998 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13999 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14000 Usually this means the macro was only invoked conditionally." >&5
14001 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14002 Usually this means the macro was only invoked conditionally." >&2;}
14003 { (exit 1); exit 1; }; }
14004 fi
14005 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14006 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
14007 Usually this means the macro was only invoked conditionally." >&5
14008 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
14009 Usually this means the macro was only invoked conditionally." >&2;}
14010 { (exit 1); exit 1; }; }
14011 fi
14012 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14013 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14014 Usually this means the macro was only invoked conditionally." >&5
14015 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14016 Usually this means the macro was only invoked conditionally." >&2;}
14017 { (exit 1); exit 1; }; }
14018 fi
14019
14020 : ${CONFIG_STATUS=./config.status}
14021 ac_clean_files_save=$ac_clean_files
14022 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14023 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14024 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14025 cat >$CONFIG_STATUS <<_ACEOF
14026 #! $SHELL
14027 # Generated by $as_me.
14028 # Run this file to recreate the current configuration.
14029 # Compiler output produced by configure, useful for debugging
14030 # configure, is in config.log if it exists.
14031
14032 debug=false
14033 ac_cs_recheck=false
14034 ac_cs_silent=false
14035 SHELL=\${CONFIG_SHELL-$SHELL}
14036 _ACEOF
14037
14038 cat >>$CONFIG_STATUS <<\_ACEOF
14039 ## --------------------- ##
14040 ## M4sh Initialization. ##
14041 ## --------------------- ##
14042
14043 # Be more Bourne compatible
14044 DUALCASE=1; export DUALCASE # for MKS sh
14045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14046 emulate sh
14047 NULLCMD=:
14048 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14049 # is contrary to our usage. Disable this feature.
14050 alias -g '${1+"$@"}'='"$@"'
14051 setopt NO_GLOB_SUBST
14052 else
14053 case `(set -o) 2>/dev/null` in
14054 *posix*) set -o posix ;;
14055 esac
14056
14057 fi
14058
14059
14060
14061
14062 # PATH needs CR
14063 # Avoid depending upon Character Ranges.
14064 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14065 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14066 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14067 as_cr_digits='0123456789'
14068 as_cr_alnum=$as_cr_Letters$as_cr_digits
14069
14070 # The user is always right.
14071 if test "${PATH_SEPARATOR+set}" != set; then
14072 echo "#! /bin/sh" >conf$$.sh
14073 echo "exit 0" >>conf$$.sh
14074 chmod +x conf$$.sh
14075 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14076 PATH_SEPARATOR=';'
14077 else
14078 PATH_SEPARATOR=:
14079 fi
14080 rm -f conf$$.sh
14081 fi
14082
14083 # Support unset when possible.
14084 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14085 as_unset=unset
14086 else
14087 as_unset=false
14088 fi
14089
14090
14091 # IFS
14092 # We need space, tab and new line, in precisely that order. Quoting is
14093 # there to prevent editors from complaining about space-tab.
14094 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14095 # splitting by setting IFS to empty value.)
14096 as_nl='
14097 '
14098 IFS=" "" $as_nl"
14099
14100 # Find who we are. Look in the path if we contain no directory separator.
14101 case $0 in
14102 *[\\/]* ) as_myself=$0 ;;
14103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14105 do
14106 IFS=$as_save_IFS
14107 test -z "$as_dir" && as_dir=.
14108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14109 done
14110 IFS=$as_save_IFS
14111
14112 ;;
14113 esac
14114 # We did not find ourselves, most probably we were run as `sh COMMAND'
14115 # in which case we are not to be found in the path.
14116 if test "x$as_myself" = x; then
14117 as_myself=$0
14118 fi
14119 if test ! -f "$as_myself"; then
14120 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14121 { (exit 1); exit 1; }
14122 fi
14123
14124 # Work around bugs in pre-3.0 UWIN ksh.
14125 for as_var in ENV MAIL MAILPATH
14126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14127 done
14128 PS1='$ '
14129 PS2='> '
14130 PS4='+ '
14131
14132 # NLS nuisances.
14133 for as_var in \
14134 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14135 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14136 LC_TELEPHONE LC_TIME
14137 do
14138 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14139 eval $as_var=C; export $as_var
14140 else
14141 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14142 fi
14143 done
14144
14145 # Required to use basename.
14146 if expr a : '\(a\)' >/dev/null 2>&1 &&
14147 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14148 as_expr=expr
14149 else
14150 as_expr=false
14151 fi
14152
14153 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14154 as_basename=basename
14155 else
14156 as_basename=false
14157 fi
14158
14159
14160 # Name of the executable.
14161 as_me=`$as_basename -- "$0" ||
14162 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14163 X"$0" : 'X\(//\)$' \| \
14164 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14165 echo X/"$0" |
14166 sed '/^.*\/\([^/][^/]*\)\/*$/{
14167 s//\1/
14168 q
14169 }
14170 /^X\/\(\/\/\)$/{
14171 s//\1/
14172 q
14173 }
14174 /^X\/\(\/\).*/{
14175 s//\1/
14176 q
14177 }
14178 s/.*/./; q'`
14179
14180 # CDPATH.
14181 $as_unset CDPATH
14182
14183
14184
14185 as_lineno_1=$LINENO
14186 as_lineno_2=$LINENO
14187 test "x$as_lineno_1" != "x$as_lineno_2" &&
14188 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14189
14190 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14191 # uniformly replaced by the line number. The first 'sed' inserts a
14192 # line-number line after each line using $LINENO; the second 'sed'
14193 # does the real work. The second script uses 'N' to pair each
14194 # line-number line with the line containing $LINENO, and appends
14195 # trailing '-' during substitution so that $LINENO is not a special
14196 # case at line end.
14197 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14198 # scripts with optimization help from Paolo Bonzini. Blame Lee
14199 # E. McMahon (1931-1989) for sed's syntax. :-)
14200 sed -n '
14201 p
14202 /[$]LINENO/=
14203 ' <$as_myself |
14204 sed '
14205 s/[$]LINENO.*/&-/
14206 t lineno
14207 b
14208 :lineno
14209 N
14210 :loop
14211 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14212 t loop
14213 s/-\n.*//
14214 ' >$as_me.lineno &&
14215 chmod +x "$as_me.lineno" ||
14216 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14217 { (exit 1); exit 1; }; }
14218
14219 # Don't try to exec as it changes $[0], causing all sort of problems
14220 # (the dirname of $[0] is not the place where we might find the
14221 # original and so on. Autoconf is especially sensitive to this).
14222 . "./$as_me.lineno"
14223 # Exit status is that of the last command.
14224 exit
14225 }
14226
14227
14228 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14229 as_dirname=dirname
14230 else
14231 as_dirname=false
14232 fi
14233
14234 ECHO_C= ECHO_N= ECHO_T=
14235 case `echo -n x` in
14236 -n*)
14237 case `echo 'x\c'` in
14238 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14239 *) ECHO_C='\c';;
14240 esac;;
14241 *)
14242 ECHO_N='-n';;
14243 esac
14244
14245 if expr a : '\(a\)' >/dev/null 2>&1 &&
14246 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14247 as_expr=expr
14248 else
14249 as_expr=false
14250 fi
14251
14252 rm -f conf$$ conf$$.exe conf$$.file
14253 if test -d conf$$.dir; then
14254 rm -f conf$$.dir/conf$$.file
14255 else
14256 rm -f conf$$.dir
14257 mkdir conf$$.dir
14258 fi
14259 echo >conf$$.file
14260 if ln -s conf$$.file conf$$ 2>/dev/null; then
14261 as_ln_s='ln -s'
14262 # ... but there are two gotchas:
14263 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14264 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14265 # In both cases, we have to default to `cp -p'.
14266 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14267 as_ln_s='cp -p'
14268 elif ln conf$$.file conf$$ 2>/dev/null; then
14269 as_ln_s=ln
14270 else
14271 as_ln_s='cp -p'
14272 fi
14273 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14274 rmdir conf$$.dir 2>/dev/null
14275
14276 if mkdir -p . 2>/dev/null; then
14277 as_mkdir_p=:
14278 else
14279 test -d ./-p && rmdir ./-p
14280 as_mkdir_p=false
14281 fi
14282
14283 if test -x / >/dev/null 2>&1; then
14284 as_test_x='test -x'
14285 else
14286 if ls -dL / >/dev/null 2>&1; then
14287 as_ls_L_option=L
14288 else
14289 as_ls_L_option=
14290 fi
14291 as_test_x='
14292 eval sh -c '\''
14293 if test -d "$1"; then
14294 test -d "$1/.";
14295 else
14296 case $1 in
14297 -*)set "./$1";;
14298 esac;
14299 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14300 ???[sx]*):;;*)false;;esac;fi
14301 '\'' sh
14302 '
14303 fi
14304 as_executable_p=$as_test_x
14305
14306 # Sed expression to map a string onto a valid CPP name.
14307 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14308
14309 # Sed expression to map a string onto a valid variable name.
14310 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14311
14312
14313 exec 6>&1
14314
14315 # Save the log message, to keep $[0] and so on meaningful, and to
14316 # report actual input values of CONFIG_FILES etc. instead of their
14317 # values after options handling.
14318 ac_log="
14319 This file was extended by briquolo $as_me 0.5.7, which was
14320 generated by GNU Autoconf 2.61. Invocation command line was
14321
14322 CONFIG_FILES = $CONFIG_FILES
14323 CONFIG_HEADERS = $CONFIG_HEADERS
14324 CONFIG_LINKS = $CONFIG_LINKS
14325 CONFIG_COMMANDS = $CONFIG_COMMANDS
14326 $ $0 $@
14327
14328 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14329 "
14330
14331 _ACEOF
14332
14333 cat >>$CONFIG_STATUS <<_ACEOF
14334 # Files that config.status was made for.
14335 config_files="$ac_config_files"
14336 config_headers="$ac_config_headers"
14337 config_commands="$ac_config_commands"
14338
14339 _ACEOF
14340
14341 cat >>$CONFIG_STATUS <<\_ACEOF
14342 ac_cs_usage="\
14343 \`$as_me' instantiates files from templates according to the
14344 current configuration.
14345
14346 Usage: $0 [OPTIONS] [FILE]...
14347
14348 -h, --help print this help, then exit
14349 -V, --version print version number and configuration settings, then exit
14350 -q, --quiet do not print progress messages
14351 -d, --debug don't remove temporary files
14352 --recheck update $as_me by reconfiguring in the same conditions
14353 --file=FILE[:TEMPLATE]
14354 instantiate the configuration file FILE
14355 --header=FILE[:TEMPLATE]
14356 instantiate the configuration header FILE
14357
14358 Configuration files:
14359 $config_files
14360
14361 Configuration headers:
14362 $config_headers
14363
14364 Configuration commands:
14365 $config_commands
14366
14367 Report bugs to <[email protected]>."
14368
14369 _ACEOF
14370 cat >>$CONFIG_STATUS <<_ACEOF
14371 ac_cs_version="\\
14372 briquolo config.status 0.5.7
14373 configured by $0, generated by GNU Autoconf 2.61,
14374 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14375
14376 Copyright (C) 2006 Free Software Foundation, Inc.
14377 This config.status script is free software; the Free Software Foundation
14378 gives unlimited permission to copy, distribute and modify it."
14379
14380 ac_pwd='$ac_pwd'
14381 srcdir='$srcdir'
14382 INSTALL='$INSTALL'
14383 _ACEOF
14384
14385 cat >>$CONFIG_STATUS <<\_ACEOF
14386 # If no file are specified by the user, then we need to provide default
14387 # value. By we need to know if files were specified by the user.
14388 ac_need_defaults=:
14389 while test $# != 0
14390 do
14391 case $1 in
14392 --*=*)
14393 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14394 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14395 ac_shift=:
14396 ;;
14397 *)
14398 ac_option=$1
14399 ac_optarg=$2
14400 ac_shift=shift
14401 ;;
14402 esac
14403
14404 case $ac_option in
14405 # Handling of the options.
14406 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14407 ac_cs_recheck=: ;;
14408 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14409 echo "$ac_cs_version"; exit ;;
14410 --debug | --debu | --deb | --de | --d | -d )
14411 debug=: ;;
14412 --file | --fil | --fi | --f )
14413 $ac_shift
14414 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14415 ac_need_defaults=false;;
14416 --header | --heade | --head | --hea )
14417 $ac_shift
14418 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14419 ac_need_defaults=false;;
14420 --he | --h)
14421 # Conflict between --help and --header
14422 { echo "$as_me: error: ambiguous option: $1
14423 Try \`$0 --help' for more information." >&2
14424 { (exit 1); exit 1; }; };;
14425 --help | --hel | -h )
14426 echo "$ac_cs_usage"; exit ;;
14427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14428 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14429 ac_cs_silent=: ;;
14430
14431 # This is an error.
14432 -*) { echo "$as_me: error: unrecognized option: $1
14433 Try \`$0 --help' for more information." >&2
14434 { (exit 1); exit 1; }; } ;;
14435
14436 *) ac_config_targets="$ac_config_targets $1"
14437 ac_need_defaults=false ;;
14438
14439 esac
14440 shift
14441 done
14442
14443 ac_configure_extra_args=
14444
14445 if $ac_cs_silent; then
14446 exec 6>/dev/null
14447 ac_configure_extra_args="$ac_configure_extra_args --silent"
14448 fi
14449
14450 _ACEOF
14451 cat >>$CONFIG_STATUS <<_ACEOF
14452 if \$ac_cs_recheck; then
14453 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14454 CONFIG_SHELL=$SHELL
14455 export CONFIG_SHELL
14456 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14457 fi
14458
14459 _ACEOF
14460 cat >>$CONFIG_STATUS <<\_ACEOF
14461 exec 5>>config.log
14462 {
14463 echo
14464 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14465 ## Running $as_me. ##
14466 _ASBOX
14467 echo "$ac_log"
14468 } >&5
14469
14470 _ACEOF
14471 cat >>$CONFIG_STATUS <<_ACEOF
14472 #
14473 # INIT-COMMANDS
14474 #
14475 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14476 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14477 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14478 # from automake.
14479 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14480 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14481 LINGUAS="${LINGUAS-%UNSET%}"
14482
14483
14484 _ACEOF
14485
14486 cat >>$CONFIG_STATUS <<\_ACEOF
14487
14488 # Handling of arguments.
14489 for ac_config_target in $ac_config_targets
14490 do
14491 case $ac_config_target in
14492 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14493 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14494 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14495 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14496 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
14497 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
14498 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14499 "desktop/Makefile") CONFIG_FILES="$CONFIG_FILES desktop/Makefile" ;;
14500 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
14501 "data/data/Makefile") CONFIG_FILES="$CONFIG_FILES data/data/Makefile" ;;
14502 "data/tableau/Makefile") CONFIG_FILES="$CONFIG_FILES data/tableau/Makefile" ;;
14503 "data/tableau/old/Makefile") CONFIG_FILES="$CONFIG_FILES data/tableau/old/Makefile" ;;
14504 "data/tableau/new/Makefile") CONFIG_FILES="$CONFIG_FILES data/tableau/new/Makefile" ;;
14505 "src/MOGL/Makefile") CONFIG_FILES="$CONFIG_FILES src/MOGL/Makefile" ;;
14506 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14507
14508 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14509 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14510 { (exit 1); exit 1; }; };;
14511 esac
14512 done
14513
14514
14515 # If the user did not use the arguments to specify the items to instantiate,
14516 # then the envvar interface is used. Set only those that are not.
14517 # We use the long form for the default assignment because of an extremely
14518 # bizarre bug on SunOS 4.1.3.
14519 if $ac_need_defaults; then
14520 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14521 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14522 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14523 fi
14524
14525 # Have a temporary directory for convenience. Make it in the build tree
14526 # simply because there is no reason against having it here, and in addition,
14527 # creating and moving files from /tmp can sometimes cause problems.
14528 # Hook for its removal unless debugging.
14529 # Note that there is a small window in which the directory will not be cleaned:
14530 # after its creation but before its name has been assigned to `$tmp'.
14531 $debug ||
14532 {
14533 tmp=
14534 trap 'exit_status=$?
14535 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14536 ' 0
14537 trap '{ (exit 1); exit 1; }' 1 2 13 15
14538 }
14539 # Create a (secure) tmp directory for tmp files.
14540
14541 {
14542 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14543 test -n "$tmp" && test -d "$tmp"
14544 } ||
14545 {
14546 tmp=./conf$$-$RANDOM
14547 (umask 077 && mkdir "$tmp")
14548 } ||
14549 {
14550 echo "$me: cannot create a temporary directory in ." >&2
14551 { (exit 1); exit 1; }
14552 }
14553
14554 #
14555 # Set up the sed scripts for CONFIG_FILES section.
14556 #
14557
14558 # No need to generate the scripts if there are no CONFIG_FILES.
14559 # This happens for instance when ./config.status config.h
14560 if test -n "$CONFIG_FILES"; then
14561
14562 _ACEOF
14563
14564
14565
14566 ac_delim='%!_!# '
14567 for ac_last_try in false false false false false :; do
14568 cat >conf$$subs.sed <<_ACEOF
14569 SHELL!$SHELL$ac_delim
14570 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14571 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14572 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14573 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14574 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14575 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14576 exec_prefix!$exec_prefix$ac_delim
14577 prefix!$prefix$ac_delim
14578 program_transform_name!$program_transform_name$ac_delim
14579 bindir!$bindir$ac_delim
14580 sbindir!$sbindir$ac_delim
14581 libexecdir!$libexecdir$ac_delim
14582 datarootdir!$datarootdir$ac_delim
14583 datadir!$datadir$ac_delim
14584 sysconfdir!$sysconfdir$ac_delim
14585 sharedstatedir!$sharedstatedir$ac_delim
14586 localstatedir!$localstatedir$ac_delim
14587 includedir!$includedir$ac_delim
14588 oldincludedir!$oldincludedir$ac_delim
14589 docdir!$docdir$ac_delim
14590 infodir!$infodir$ac_delim
14591 htmldir!$htmldir$ac_delim
14592 dvidir!$dvidir$ac_delim
14593 pdfdir!$pdfdir$ac_delim
14594 psdir!$psdir$ac_delim
14595 libdir!$libdir$ac_delim
14596 localedir!$localedir$ac_delim
14597 mandir!$mandir$ac_delim
14598 DEFS!$DEFS$ac_delim
14599 ECHO_C!$ECHO_C$ac_delim
14600 ECHO_N!$ECHO_N$ac_delim
14601 ECHO_T!$ECHO_T$ac_delim
14602 LIBS!$LIBS$ac_delim
14603 build_alias!$build_alias$ac_delim
14604 host_alias!$host_alias$ac_delim
14605 target_alias!$target_alias$ac_delim
14606 build!$build$ac_delim
14607 build_cpu!$build_cpu$ac_delim
14608 build_vendor!$build_vendor$ac_delim
14609 build_os!$build_os$ac_delim
14610 host!$host$ac_delim
14611 host_cpu!$host_cpu$ac_delim
14612 host_vendor!$host_vendor$ac_delim
14613 host_os!$host_os$ac_delim
14614 target!$target$ac_delim
14615 target_cpu!$target_cpu$ac_delim
14616 target_vendor!$target_vendor$ac_delim
14617 target_os!$target_os$ac_delim
14618 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14619 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14620 INSTALL_DATA!$INSTALL_DATA$ac_delim
14621 CYGPATH_W!$CYGPATH_W$ac_delim
14622 PACKAGE!$PACKAGE$ac_delim
14623 VERSION!$VERSION$ac_delim
14624 ACLOCAL!$ACLOCAL$ac_delim
14625 AUTOCONF!$AUTOCONF$ac_delim
14626 AUTOMAKE!$AUTOMAKE$ac_delim
14627 AUTOHEADER!$AUTOHEADER$ac_delim
14628 MAKEINFO!$MAKEINFO$ac_delim
14629 install_sh!$install_sh$ac_delim
14630 STRIP!$STRIP$ac_delim
14631 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
14632 mkdir_p!$mkdir_p$ac_delim
14633 AWK!$AWK$ac_delim
14634 SET_MAKE!$SET_MAKE$ac_delim
14635 am__leading_dot!$am__leading_dot$ac_delim
14636 AMTAR!$AMTAR$ac_delim
14637 am__tar!$am__tar$ac_delim
14638 am__untar!$am__untar$ac_delim
14639 CXX!$CXX$ac_delim
14640 CXXFLAGS!$CXXFLAGS$ac_delim
14641 LDFLAGS!$LDFLAGS$ac_delim
14642 CPPFLAGS!$CPPFLAGS$ac_delim
14643 ac_ct_CXX!$ac_ct_CXX$ac_delim
14644 EXEEXT!$EXEEXT$ac_delim
14645 OBJEXT!$OBJEXT$ac_delim
14646 DEPDIR!$DEPDIR$ac_delim
14647 am__include!$am__include$ac_delim
14648 am__quote!$am__quote$ac_delim
14649 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
14650 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
14651 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
14652 CXXDEPMODE!$CXXDEPMODE$ac_delim
14653 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
14654 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
14655 CC!$CC$ac_delim
14656 CFLAGS!$CFLAGS$ac_delim
14657 ac_ct_CC!$ac_ct_CC$ac_delim
14658 CCDEPMODE!$CCDEPMODE$ac_delim
14659 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
14660 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
14661 RANLIB!$RANLIB$ac_delim
14662 YACC!$YACC$ac_delim
14663 YFLAGS!$YFLAGS$ac_delim
14664 ALLOCA!$ALLOCA$ac_delim
14665 CPP!$CPP$ac_delim
14666 _ACEOF
14667
14668 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14669 break
14670 elif $ac_last_try; then
14671 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14672 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14673 { (exit 1); exit 1; }; }
14674 else
14675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14676 fi
14677 done
14678
14679 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14680 if test -n "$ac_eof"; then
14681 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14682 ac_eof=`expr $ac_eof + 1`
14683 fi
14684
14685 cat >>$CONFIG_STATUS <<_ACEOF
14686 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14688 _ACEOF
14689 sed '
14690 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14691 s/^/s,@/; s/!/@,|#_!!_#|/
14692 :n
14693 t n
14694 s/'"$ac_delim"'$/,g/; t
14695 s/$/\\/; p
14696 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14697 ' >>$CONFIG_STATUS <conf$$subs.sed
14698 rm -f conf$$subs.sed
14699 cat >>$CONFIG_STATUS <<_ACEOF
14700 CEOF$ac_eof
14701 _ACEOF
14702
14703
14704 ac_delim='%!_!# '
14705 for ac_last_try in false false false false false :; do
14706 cat >conf$$subs.sed <<_ACEOF
14707 GREP!$GREP$ac_delim
14708 EGREP!$EGREP$ac_delim
14709 LIBOBJS!$LIBOBJS$ac_delim
14710 freetypeconfig!$freetypeconfig$ac_delim
14711 pngconfig!$pngconfig$ac_delim
14712 SDL_CONFIG!$SDL_CONFIG$ac_delim
14713 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
14714 SDL_LIBS!$SDL_LIBS$ac_delim
14715 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
14716 USE_NLS!$USE_NLS$ac_delim
14717 MSGFMT!$MSGFMT$ac_delim
14718 GMSGFMT!$GMSGFMT$ac_delim
14719 XGETTEXT!$XGETTEXT$ac_delim
14720 MSGMERGE!$MSGMERGE$ac_delim
14721 GLIBC21!$GLIBC21$ac_delim
14722 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
14723 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
14724 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
14725 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
14726 LIBICONV!$LIBICONV$ac_delim
14727 LTLIBICONV!$LTLIBICONV$ac_delim
14728 INTLBISON!$INTLBISON$ac_delim
14729 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
14730 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
14731 CATOBJEXT!$CATOBJEXT$ac_delim
14732 DATADIRNAME!$DATADIRNAME$ac_delim
14733 INSTOBJEXT!$INSTOBJEXT$ac_delim
14734 GENCAT!$GENCAT$ac_delim
14735 INTLOBJS!$INTLOBJS$ac_delim
14736 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
14737 INTLLIBS!$INTLLIBS$ac_delim
14738 LIBINTL!$LIBINTL$ac_delim
14739 LTLIBINTL!$LTLIBINTL$ac_delim
14740 POSUB!$POSUB$ac_delim
14741 XMKMF!$XMKMF$ac_delim
14742 LTLIBOBJS!$LTLIBOBJS$ac_delim
14743 _ACEOF
14744
14745 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then
14746 break
14747 elif $ac_last_try; then
14748 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14749 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14750 { (exit 1); exit 1; }; }
14751 else
14752 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14753 fi
14754 done
14755
14756 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14757 if test -n "$ac_eof"; then
14758 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14759 ac_eof=`expr $ac_eof + 1`
14760 fi
14761
14762 cat >>$CONFIG_STATUS <<_ACEOF
14763 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14765 _ACEOF
14766 sed '
14767 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14768 s/^/s,@/; s/!/@,|#_!!_#|/
14769 :n
14770 t n
14771 s/'"$ac_delim"'$/,g/; t
14772 s/$/\\/; p
14773 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14774 ' >>$CONFIG_STATUS <conf$$subs.sed
14775 rm -f conf$$subs.sed
14776 cat >>$CONFIG_STATUS <<_ACEOF
14777 :end
14778 s/|#_!!_#|//g
14779 CEOF$ac_eof
14780 _ACEOF
14781
14782
14783 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14784 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14785 # trailing colons and then remove the whole line if VPATH becomes empty
14786 # (actually we leave an empty line to preserve line numbers).
14787 if test "x$srcdir" = x.; then
14788 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14789 s/:*\$(srcdir):*/:/
14790 s/:*\${srcdir}:*/:/
14791 s/:*@srcdir@:*/:/
14792 s/^\([^=]*=[ ]*\):*/\1/
14793 s/:*$//
14794 s/^[^=]*=[ ]*$//
14795 }'
14796 fi
14797
14798 cat >>$CONFIG_STATUS <<\_ACEOF
14799 fi # test -n "$CONFIG_FILES"
14800
14801
14802 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14803 do
14804 case $ac_tag in
14805 :[FHLC]) ac_mode=$ac_tag; continue;;
14806 esac
14807 case $ac_mode$ac_tag in
14808 :[FHL]*:*);;
14809 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14810 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14811 { (exit 1); exit 1; }; };;
14812 :[FH]-) ac_tag=-:-;;
14813 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14814 esac
14815 ac_save_IFS=$IFS
14816 IFS=:
14817 set x $ac_tag
14818 IFS=$ac_save_IFS
14819 shift
14820 ac_file=$1
14821 shift
14822
14823 case $ac_mode in
14824 :L) ac_source=$1;;
14825 :[FH])
14826 ac_file_inputs=
14827 for ac_f
14828 do
14829 case $ac_f in
14830 -) ac_f="$tmp/stdin";;
14831 *) # Look for the file first in the build tree, then in the source tree
14832 # (if the path is not absolute). The absolute path cannot be DOS-style,
14833 # because $ac_f cannot contain `:'.
14834 test -f "$ac_f" ||
14835 case $ac_f in
14836 [\\/$]*) false;;
14837 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14838 esac ||
14839 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14840 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14841 { (exit 1); exit 1; }; };;
14842 esac
14843 ac_file_inputs="$ac_file_inputs $ac_f"
14844 done
14845
14846 # Let's still pretend it is `configure' which instantiates (i.e., don't
14847 # use $as_me), people would be surprised to read:
14848 # /* config.h. Generated by config.status. */
14849 configure_input="Generated from "`IFS=:
14850 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14851 if test x"$ac_file" != x-; then
14852 configure_input="$ac_file. $configure_input"
14853 { echo "$as_me:$LINENO: creating $ac_file" >&5
14854 echo "$as_me: creating $ac_file" >&6;}
14855 fi
14856
14857 case $ac_tag in
14858 *:-:* | *:-) cat >"$tmp/stdin";;
14859 esac
14860 ;;
14861 esac
14862
14863 ac_dir=`$as_dirname -- "$ac_file" ||
14864 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14865 X"$ac_file" : 'X\(//\)[^/]' \| \
14866 X"$ac_file" : 'X\(//\)$' \| \
14867 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14868 echo X"$ac_file" |
14869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14870 s//\1/
14871 q
14872 }
14873 /^X\(\/\/\)[^/].*/{
14874 s//\1/
14875 q
14876 }
14877 /^X\(\/\/\)$/{
14878 s//\1/
14879 q
14880 }
14881 /^X\(\/\).*/{
14882 s//\1/
14883 q
14884 }
14885 s/.*/./; q'`
14886 { as_dir="$ac_dir"
14887 case $as_dir in #(
14888 -*) as_dir=./$as_dir;;
14889 esac
14890 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14891 as_dirs=
14892 while :; do
14893 case $as_dir in #(
14894 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14895 *) as_qdir=$as_dir;;
14896 esac
14897 as_dirs="'$as_qdir' $as_dirs"
14898 as_dir=`$as_dirname -- "$as_dir" ||
14899 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14900 X"$as_dir" : 'X\(//\)[^/]' \| \
14901 X"$as_dir" : 'X\(//\)$' \| \
14902 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14903 echo X"$as_dir" |
14904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14905 s//\1/
14906 q
14907 }
14908 /^X\(\/\/\)[^/].*/{
14909 s//\1/
14910 q
14911 }
14912 /^X\(\/\/\)$/{
14913 s//\1/
14914 q
14915 }
14916 /^X\(\/\).*/{
14917 s//\1/
14918 q
14919 }
14920 s/.*/./; q'`
14921 test -d "$as_dir" && break
14922 done
14923 test -z "$as_dirs" || eval "mkdir $as_dirs"
14924 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14925 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14926 { (exit 1); exit 1; }; }; }
14927 ac_builddir=.
14928
14929 case "$ac_dir" in
14930 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14931 *)
14932 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14933 # A ".." for each directory in $ac_dir_suffix.
14934 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14935 case $ac_top_builddir_sub in
14936 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14937 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14938 esac ;;
14939 esac
14940 ac_abs_top_builddir=$ac_pwd
14941 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14942 # for backward compatibility:
14943 ac_top_builddir=$ac_top_build_prefix
14944
14945 case $srcdir in
14946 .) # We are building in place.
14947 ac_srcdir=.
14948 ac_top_srcdir=$ac_top_builddir_sub
14949 ac_abs_top_srcdir=$ac_pwd ;;
14950 [\\/]* | ?:[\\/]* ) # Absolute name.
14951 ac_srcdir=$srcdir$ac_dir_suffix;
14952 ac_top_srcdir=$srcdir
14953 ac_abs_top_srcdir=$srcdir ;;
14954 *) # Relative name.
14955 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14956 ac_top_srcdir=$ac_top_build_prefix$srcdir
14957 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14958 esac
14959 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14960
14961
14962 case $ac_mode in
14963 :F)
14964 #
14965 # CONFIG_FILE
14966 #
14967
14968 case $INSTALL in
14969 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14970 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14971 esac
14972 _ACEOF
14973
14974 cat >>$CONFIG_STATUS <<\_ACEOF
14975 # If the template does not know about datarootdir, expand it.
14976 # FIXME: This hack should be removed a few years after 2.60.
14977 ac_datarootdir_hack=; ac_datarootdir_seen=
14978
14979 case `sed -n '/datarootdir/ {
14980 p
14981 q
14982 }
14983 /@datadir@/p
14984 /@docdir@/p
14985 /@infodir@/p
14986 /@localedir@/p
14987 /@mandir@/p
14988 ' $ac_file_inputs` in
14989 *datarootdir*) ac_datarootdir_seen=yes;;
14990 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14991 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14992 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14993 _ACEOF
14994 cat >>$CONFIG_STATUS <<_ACEOF
14995 ac_datarootdir_hack='
14996 s&@datadir@&$datadir&g
14997 s&@docdir@&$docdir&g
14998 s&@infodir@&$infodir&g
14999 s&@localedir@&$localedir&g
15000 s&@mandir@&$mandir&g
15001 s&\\\${datarootdir}&$datarootdir&g' ;;
15002 esac
15003 _ACEOF
15004
15005 # Neutralize VPATH when `$srcdir' = `.'.
15006 # Shell code in configure.ac might set extrasub.
15007 # FIXME: do we really want to maintain this feature?
15008 cat >>$CONFIG_STATUS <<_ACEOF
15009 sed "$ac_vpsub
15010 $extrasub
15011 _ACEOF
15012 cat >>$CONFIG_STATUS <<\_ACEOF
15013 :t
15014 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15015 s&@configure_input@&$configure_input&;t t
15016 s&@top_builddir@&$ac_top_builddir_sub&;t t
15017 s&@srcdir@&$ac_srcdir&;t t
15018 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15019 s&@top_srcdir@&$ac_top_srcdir&;t t
15020 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15021 s&@builddir@&$ac_builddir&;t t
15022 s&@abs_builddir@&$ac_abs_builddir&;t t
15023 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15024 s&@INSTALL@&$ac_INSTALL&;t t
15025 $ac_datarootdir_hack
15026 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
15027
15028 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15029 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15030 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15031 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15032 which seems to be undefined. Please make sure it is defined." >&5
15033 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15034 which seems to be undefined. Please make sure it is defined." >&2;}
15035
15036 rm -f "$tmp/stdin"
15037 case $ac_file in
15038 -) cat "$tmp/out"; rm -f "$tmp/out";;
15039 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15040 esac
15041 ;;
15042 :H)
15043 #
15044 # CONFIG_HEADER
15045 #
15046 _ACEOF
15047
15048 # Transform confdefs.h into a sed script `conftest.defines', that
15049 # substitutes the proper values into config.h.in to produce config.h.
15050 rm -f conftest.defines conftest.tail
15051 # First, append a space to every undef/define line, to ease matching.
15052 echo 's/$/ /' >conftest.defines
15053 # Then, protect against being on the right side of a sed subst, or in
15054 # an unquoted here document, in config.status. If some macros were
15055 # called several times there might be several #defines for the same
15056 # symbol, which is useless. But do not sort them, since the last
15057 # AC_DEFINE must be honored.
15058 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15059 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15060 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15061 # PARAMS is the parameter list in the macro definition--in most cases, it's
15062 # just an empty string.
15063 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15064 ac_dB='\\)[ (].*,\\1define\\2'
15065 ac_dC=' '
15066 ac_dD=' ,'
15067
15068 uniq confdefs.h |
15069 sed -n '
15070 t rset
15071 :rset
15072 s/^[ ]*#[ ]*define[ ][ ]*//
15073 t ok
15074 d
15075 :ok
15076 s/[\\&,]/\\&/g
15077 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15078 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15079 ' >>conftest.defines
15080
15081 # Remove the space that was appended to ease matching.
15082 # Then replace #undef with comments. This is necessary, for
15083 # example, in the case of _POSIX_SOURCE, which is predefined and required
15084 # on some systems where configure will not decide to define it.
15085 # (The regexp can be short, since the line contains either #define or #undef.)
15086 echo 's/ $//
15087 s,^[ #]*u.*,/* & */,' >>conftest.defines
15088
15089 # Break up conftest.defines:
15090 ac_max_sed_lines=50
15091
15092 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15093 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15094 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15095 # et cetera.
15096 ac_in='$ac_file_inputs'
15097 ac_out='"$tmp/out1"'
15098 ac_nxt='"$tmp/out2"'
15099
15100 while :
15101 do
15102 # Write a here document:
15103 cat >>$CONFIG_STATUS <<_ACEOF
15104 # First, check the format of the line:
15105 cat >"\$tmp/defines.sed" <<\\CEOF
15106 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15107 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15108 b
15109 :def
15110 _ACEOF
15111 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15112 echo 'CEOF
15113 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15114 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15115 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15116 grep . conftest.tail >/dev/null || break
15117 rm -f conftest.defines
15118 mv conftest.tail conftest.defines
15119 done
15120 rm -f conftest.defines conftest.tail
15121
15122 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15123 cat >>$CONFIG_STATUS <<\_ACEOF
15124 if test x"$ac_file" != x-; then
15125 echo "/* $configure_input */" >"$tmp/config.h"
15126 cat "$ac_result" >>"$tmp/config.h"
15127 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15128 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15129 echo "$as_me: $ac_file is unchanged" >&6;}
15130 else
15131 rm -f $ac_file
15132 mv "$tmp/config.h" $ac_file
15133 fi
15134 else
15135 echo "/* $configure_input */"
15136 cat "$ac_result"
15137 fi
15138 rm -f "$tmp/out12"
15139 # Compute $ac_file's index in $config_headers.
15140 _am_stamp_count=1
15141 for _am_header in $config_headers :; do
15142 case $_am_header in
15143 $ac_file | $ac_file:* )
15144 break ;;
15145 * )
15146 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15147 esac
15148 done
15149 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
15150 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15151 X$ac_file : 'X\(//\)[^/]' \| \
15152 X$ac_file : 'X\(//\)$' \| \
15153 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
15154 echo X$ac_file |
15155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15156 s//\1/
15157 q
15158 }
15159 /^X\(\/\/\)[^/].*/{
15160 s//\1/
15161 q
15162 }
15163 /^X\(\/\/\)$/{
15164 s//\1/
15165 q
15166 }
15167 /^X\(\/\).*/{
15168 s//\1/
15169 q
15170 }
15171 s/.*/./; q'`/stamp-h$_am_stamp_count
15172 ;;
15173
15174 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15175 echo "$as_me: executing $ac_file commands" >&6;}
15176 ;;
15177 esac
15178
15179
15180 case $ac_file$ac_mode in
15181 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15182 # Strip MF so we end up with the name of the file.
15183 mf=`echo "$mf" | sed -e 's/:.*$//'`
15184 # Check whether this is an Automake generated Makefile or not.
15185 # We used to match only the files named `Makefile.in', but
15186 # some people rename them; so instead we look at the file content.
15187 # Grep'ing the first line is not enough: some people post-process
15188 # each Makefile.in and add a new line on top of each file to say so.
15189 # So let's grep whole file.
15190 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15191 dirpart=`$as_dirname -- "$mf" ||
15192 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15193 X"$mf" : 'X\(//\)[^/]' \| \
15194 X"$mf" : 'X\(//\)$' \| \
15195 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15196 echo X"$mf" |
15197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15198 s//\1/
15199 q
15200 }
15201 /^X\(\/\/\)[^/].*/{
15202 s//\1/
15203 q
15204 }
15205 /^X\(\/\/\)$/{
15206 s//\1/
15207 q
15208 }
15209 /^X\(\/\).*/{
15210 s//\1/
15211 q
15212 }
15213 s/.*/./; q'`
15214 else
15215 continue
15216 fi
15217 # Extract the definition of DEPDIR, am__include, and am__quote
15218 # from the Makefile without running `make'.
15219 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15220 test -z "$DEPDIR" && continue
15221 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15222 test -z "am__include" && continue
15223 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15224 # When using ansi2knr, U may be empty or an underscore; expand it
15225 U=`sed -n 's/^U = //p' < "$mf"`
15226 # Find all dependency output files, they are included files with
15227 # $(DEPDIR) in their names. We invoke sed twice because it is the
15228 # simplest approach to changing $(DEPDIR) to its actual value in the
15229 # expansion.
15230 for file in `sed -n "
15231 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15232 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15233 # Make sure the directory exists.
15234 test -f "$dirpart/$file" && continue
15235 fdir=`$as_dirname -- "$file" ||
15236 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15237 X"$file" : 'X\(//\)[^/]' \| \
15238 X"$file" : 'X\(//\)$' \| \
15239 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15240 echo X"$file" |
15241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15242 s//\1/
15243 q
15244 }
15245 /^X\(\/\/\)[^/].*/{
15246 s//\1/
15247 q
15248 }
15249 /^X\(\/\/\)$/{
15250 s//\1/
15251 q
15252 }
15253 /^X\(\/\).*/{
15254 s//\1/
15255 q
15256 }
15257 s/.*/./; q'`
15258 { as_dir=$dirpart/$fdir
15259 case $as_dir in #(
15260 -*) as_dir=./$as_dir;;
15261 esac
15262 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15263 as_dirs=
15264 while :; do
15265 case $as_dir in #(
15266 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15267 *) as_qdir=$as_dir;;
15268 esac
15269 as_dirs="'$as_qdir' $as_dirs"
15270 as_dir=`$as_dirname -- "$as_dir" ||
15271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15272 X"$as_dir" : 'X\(//\)[^/]' \| \
15273 X"$as_dir" : 'X\(//\)$' \| \
15274 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15275 echo X"$as_dir" |
15276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15277 s//\1/
15278 q
15279 }
15280 /^X\(\/\/\)[^/].*/{
15281 s//\1/
15282 q
15283 }
15284 /^X\(\/\/\)$/{
15285 s//\1/
15286 q
15287 }
15288 /^X\(\/\).*/{
15289 s//\1/
15290 q
15291 }
15292 s/.*/./; q'`
15293 test -d "$as_dir" && break
15294 done
15295 test -z "$as_dirs" || eval "mkdir $as_dirs"
15296 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15297 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15298 { (exit 1); exit 1; }; }; }
15299 # echo "creating $dirpart/$file"
15300 echo '# dummy' > "$dirpart/$file"
15301 done
15302 done
15303 ;;
15304 "default-1":C)
15305 for ac_file in $CONFIG_FILES; do
15306 # Support "outfile[:infile[:infile...]]"
15307 case "$ac_file" in
15308 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15309 esac
15310 # PO directories have a Makefile.in generated from Makefile.in.in.
15311 case "$ac_file" in */Makefile.in)
15312 # Adjust a relative srcdir.
15313 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15314 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15315 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15316 # In autoconf-2.13 it is called $ac_given_srcdir.
15317 # In autoconf-2.50 it is called $srcdir.
15318 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15319 case "$ac_given_srcdir" in
15320 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15321 /*) top_srcdir="$ac_given_srcdir" ;;
15322 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15323 esac
15324 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15325 rm -f "$ac_dir/POTFILES"
15326 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15327 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15328 POMAKEFILEDEPS="POTFILES.in"
15329 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15330 # on $ac_dir but don't depend on user-specified configuration
15331 # parameters.
15332 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15333 # The LINGUAS file contains the set of available languages.
15334 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15335 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15336 fi
15337 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15338 # Hide the ALL_LINGUAS assigment from automake.
15339 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15340 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15341 else
15342 # The set of available languages was given in configure.in.
15343 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15344 fi
15345 # Compute POFILES
15346 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15347 # Compute UPDATEPOFILES
15348 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15349 # Compute DUMMYPOFILES
15350 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15351 # Compute GMOFILES
15352 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15353 case "$ac_given_srcdir" in
15354 .) srcdirpre= ;;
15355 *) srcdirpre='$(srcdir)/' ;;
15356 esac
15357 POFILES=
15358 UPDATEPOFILES=
15359 DUMMYPOFILES=
15360 GMOFILES=
15361 for lang in $ALL_LINGUAS; do
15362 POFILES="$POFILES $srcdirpre$lang.po"
15363 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15364 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15365 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15366 done
15367 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15368 # environment variable.
15369 INST_LINGUAS=
15370 if test -n "$ALL_LINGUAS"; then
15371 for presentlang in $ALL_LINGUAS; do
15372 useit=no
15373 if test "%UNSET%" != "$LINGUAS"; then
15374 desiredlanguages="$LINGUAS"
15375 else
15376 desiredlanguages="$ALL_LINGUAS"
15377 fi
15378 for desiredlang in $desiredlanguages; do
15379 # Use the presentlang catalog if desiredlang is
15380 # a. equal to presentlang, or
15381 # b. a variant of presentlang (because in this case,
15382 # presentlang can be used as a fallback for messages
15383 # which are not translated in the desiredlang catalog).
15384 case "$desiredlang" in
15385 "$presentlang"*) useit=yes;;
15386 esac
15387 done
15388 if test $useit = yes; then
15389 INST_LINGUAS="$INST_LINGUAS $presentlang"
15390 fi
15391 done
15392 fi
15393 CATALOGS=
15394 if test -n "$INST_LINGUAS"; then
15395 for lang in $INST_LINGUAS; do
15396 CATALOGS="$CATALOGS $lang.gmo"
15397 done
15398 fi
15399 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15400 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15401 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15402 if test -f "$f"; then
15403 case "$f" in
15404 *.orig | *.bak | *~) ;;
15405 *) cat "$f" >> "$ac_dir/Makefile" ;;
15406 esac
15407 fi
15408 done
15409 fi
15410 ;;
15411 esac
15412 done ;;
15413
15414 esac
15415 done # for ac_tag
15416
15417
15418 { (exit 0); exit 0; }
15419 _ACEOF
15420 chmod +x $CONFIG_STATUS
15421 ac_clean_files=$ac_clean_files_save
15422
15423
15424 # configure is writing to config.log, and then calls config.status.
15425 # config.status does its own redirection, appending to config.log.
15426 # Unfortunately, on DOS this fails, as config.log is still kept open
15427 # by configure, so config.status won't be able to write to it; its
15428 # output is simply discarded. So we exec the FD to /dev/null,
15429 # effectively closing config.log, so it can be properly (re)opened and
15430 # appended to by config.status. When coming back to configure, we
15431 # need to make the FD available again.
15432 if test "$no_create" != yes; then
15433 ac_cs_success=:
15434 ac_config_status_args=
15435 test "$silent" = yes &&
15436 ac_config_status_args="$ac_config_status_args --quiet"
15437 exec 5>/dev/null
15438 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15439 exec 5>>config.log
15440 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15441 # would make configure fail if this is the last instruction.
15442 $ac_cs_success || { (exit 1); exit 1; }
15443 fi
15444