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