2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="configure.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP PKG_CONFIG ac_pt_PKG_CONFIG PACKAGE_CFLAGS PACKAGE_LIBS GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
774 ac_env_PKG_CONFIG_value=$PKG_CONFIG
775 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
776 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
777 ac_env_PACKAGE_CFLAGS_set=${PACKAGE_CFLAGS+set}
778 ac_env_PACKAGE_CFLAGS_value=$PACKAGE_CFLAGS
779 ac_cv_env_PACKAGE_CFLAGS_set=${PACKAGE_CFLAGS+set}
780 ac_cv_env_PACKAGE_CFLAGS_value=$PACKAGE_CFLAGS
781 ac_env_PACKAGE_LIBS_set=${PACKAGE_LIBS+set}
782 ac_env_PACKAGE_LIBS_value=$PACKAGE_LIBS
783 ac_cv_env_PACKAGE_LIBS_set=${PACKAGE_LIBS+set}
784 ac_cv_env_PACKAGE_LIBS_value=$PACKAGE_LIBS
787 # Report the --help message.
789 if test "$ac_init_help" = "long"; then
790 # Omit some internal or obsolete options to make the list less imposing.
791 # This message is too long to be a string in the A/UX 3.1 sh.
793 \`configure' configures this package to adapt to many kinds of systems.
795 Usage: $0 [OPTION]... [VAR=VALUE]...
797 To assign environment variables (e.g., CC, CFLAGS...), specify them as
798 VAR=VALUE. See below for descriptions of some of the useful variables.
800 Defaults for the options are specified in brackets.
803 -h, --help display this help and exit
804 --help=short display options specific to this package
805 --help=recursive display the short help of all the included packages
806 -V, --version display version information and exit
807 -q, --quiet, --silent do not print \`checking...' messages
808 --cache-file=FILE cache test results in FILE [disabled]
809 -C, --config-cache alias for \`--cache-file=config.cache'
810 -n, --no-create do not create output files
811 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816 Installation directories:
817 --prefix=PREFIX install architecture-independent files in PREFIX
819 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
822 By default, \`make install' will install all the files in
823 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
824 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825 for instance \`--prefix=\$HOME'.
827 For better control, use the options below.
829 Fine tuning of the installation directories:
830 --bindir=DIR user executables [EPREFIX/bin]
831 --sbindir=DIR system admin executables [EPREFIX/sbin]
832 --libexecdir=DIR program executables [EPREFIX/libexec]
833 --datadir=DIR read-only architecture-independent data [PREFIX/share]
834 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
835 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
836 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
837 --libdir=DIR object code libraries [EPREFIX/lib]
838 --includedir=DIR C header files [PREFIX/include]
839 --oldincludedir=DIR C header files for non-gcc [/usr/include]
840 --infodir=DIR info documentation [PREFIX/info]
841 --mandir=DIR man documentation [PREFIX/man]
847 --program-prefix=PREFIX prepend PREFIX to installed program names
848 --program-suffix=SUFFIX append SUFFIX to installed program names
849 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
853 if test -n "$ac_init_help"; then
858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --disable-dependency-tracking Speeds up one-time builds
863 --enable-dependency-tracking Do not reject slow dependency extractors
865 Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
873 PKG_CONFIG path to pkg-config utility
875 C compiler flags for PACKAGE, overriding pkg-config
877 linker flags for PACKAGE, overriding pkg-config
879 Use these variables to override the choices made by `configure' or to help
880 it to find libraries and programs with nonstandard names/locations.
885 if test "$ac_init_help" = "recursive"; then
886 # If there are subdirs, report their specific --help.
888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889 test -d $ac_dir || continue
892 if test "$ac_dir" != .; then
893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894 # A "../" for each directory in $ac_dir_suffix.
895 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
897 ac_dir_suffix= ac_top_builddir=
901 .) # No --srcdir option. We are building in place.
903 if test -z "$ac_top_builddir"; then
906 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
908 [\\/]* | ?:[\\/]* ) # Absolute path.
909 ac_srcdir=$srcdir$ac_dir_suffix;
910 ac_top_srcdir=$srcdir ;;
912 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913 ac_top_srcdir=$ac_top_builddir$srcdir ;;
916 # Do not use `cd foo && pwd` to compute absolute paths, because
917 # the directories may not exist.
919 .) ac_abs_builddir="$ac_dir";;
922 .) ac_abs_builddir=`pwd`;;
923 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
924 *) ac_abs_builddir=`pwd`/"$ac_dir";;
927 case $ac_abs_builddir in
928 .) ac_abs_top_builddir=${ac_top_builddir}.;;
930 case ${ac_top_builddir}. in
931 .) ac_abs_top_builddir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
936 case $ac_abs_builddir in
937 .) ac_abs_srcdir=$ac_srcdir;;
940 .) ac_abs_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
942 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
945 case $ac_abs_builddir in
946 .) ac_abs_top_srcdir=$ac_top_srcdir;;
948 case $ac_top_srcdir in
949 .) ac_abs_top_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 # Check for guested configure; otherwise get Cygnus style configure.
957 if test -f $ac_srcdir/configure.gnu; then
959 $SHELL $ac_srcdir/configure.gnu --help=recursive
960 elif test -f $ac_srcdir/configure; then
962 $SHELL $ac_srcdir/configure --help=recursive
963 elif test -f $ac_srcdir/configure.ac ||
964 test -f $ac_srcdir/configure.in; then
968 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 test -n "$ac_init_help" && exit 0
975 if $ac_init_version; then
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
989 It was created by $as_me, which was
990 generated by GNU Autoconf 2.59. Invocation command line was
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_must_keep_next=false
1055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1063 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1065 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true; then
1067 ac_must_keep_next=false # Got value, back to normal.
1070 *=* | --config-cache | -C | -disable-* | --disable-* \
1071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073 | -with-* | --with-* | -without-* | --without-* | --x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1078 -* ) ac_must_keep_next=true ;;
1081 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log. We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097 # Save into config.log some information that might help in debugging.
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1107 # The following way of writing the cache mishandles newlines in values,
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1130 for ac_var in $ac_subst_vars
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1137 if test -n "$ac_subst_files"; then
1144 for ac_var in $ac_subst_files
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1152 if test -s confdefs.h; then
1159 sed "/^$/d" confdefs.h | sort
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1166 rm -f core *.core &&
1167 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1170 for ac_signal in 1 2 13 15; do
1171 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1180 # Predefined preprocessor variables.
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE; then
1211 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1213 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1216 for ac_site_file in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's/^/| /' "$ac_site_file" >&5
1225 if test -r "$cache_file"; then
1226 # Some versions of bash will fail to source /dev/null (special
1227 # files actually), so we avoid doing that.
1228 if test -f "$cache_file"; then
1229 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1232 [\\/]* | ?:[\\/]* ) . $cache_file;;
1233 *) . ./$cache_file;;
1237 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1242 # Check that the precious variables saved in the cache have kept the same
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248 eval ac_new_set=\$ac_env_${ac_var}_set
1249 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250 eval ac_new_val="\$ac_env_${ac_var}_value"
1251 case $ac_old_set,$ac_new_set in
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1262 if test "x$ac_old_val" != "x$ac_new_val"; then
1263 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1266 echo "$as_me: former value: $ac_old_val" >&2;}
1267 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1268 echo "$as_me: current value: $ac_new_val" >&2;}
1269 ac_cache_corrupted=:
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg=$ac_var=$ac_new_val ;;
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285 if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317 am__api_version="1.7"
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320 if test -f $ac_dir/install-sh; then
1322 ac_install_sh="$ac_aux_dir/install-sh -c"
1324 elif test -f $ac_dir/install.sh; then
1326 ac_install_sh="$ac_aux_dir/install.sh -c"
1328 elif test -f $ac_dir/shtool; then
1330 ac_install_sh="$ac_aux_dir/shtool install -c"
1334 if test -z "$ac_aux_dir"; then
1335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337 { (exit 1); exit 1; }; }
1339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343 # Find a good install program. We prefer a C program (faster),
1344 # so one script is as good as another. But avoid the broken or
1345 # incompatible versions:
1346 # SysV /etc/install, /usr/sbin/install
1347 # SunOS /usr/etc/install
1348 # IRIX /sbin/install
1350 # AmigaOS /C/install, which installs bootblocks on floppy discs
1351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1354 # OS/2's system install, which has a completely different semantic
1355 # ./install, which can be erroneously created by make from ./install.sh.
1356 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1357 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1358 if test -z "$INSTALL"; then
1359 if test "${ac_cv_path_install+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366 test -z "$as_dir" && as_dir=.
1367 # Account for people who put trailing slashes in PATH elements.
1369 ./ | .// | /cC/* | \
1370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1371 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1374 # OSF1 and SCO ODT 3.0 have their own names for install.
1375 # Don't use installbsd from OSF since it installs stuff as root
1377 for ac_prog in ginstall scoinst install; do
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1380 if test $ac_prog = install &&
1381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1382 # AIX install. It has an incompatible calling convention.
1384 elif test $ac_prog = install &&
1385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1386 # program-specific install script used by HP pwplus--don't use.
1389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1401 if test "${ac_cv_path_install+set}" = set; then
1402 INSTALL=$ac_cv_path_install
1404 # As a last resort, use the slow shell script. We don't cache a
1405 # path for INSTALL within a source directory, because that will
1406 # break other packages using the cache if that directory is
1407 # removed, or if the path is relative.
1408 INSTALL=$ac_install_sh
1411 echo "$as_me:$LINENO: result: $INSTALL" >&5
1412 echo "${ECHO_T}$INSTALL" >&6
1414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1415 # It thinks the first close brace ends the variable substitution.
1416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1423 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1426 echo timestamp > conftest.file
1427 # Do `set' in a subshell so we don't clobber the current shell's
1428 # arguments. Must try -L first in case configure is actually a
1429 # symlink; some systems play weird games with the mod time of symlinks
1430 # (eg FreeBSD returns the mod time of the symlink's containing
1433 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1434 if test "$*" = "X"; then
1436 set X `ls -t $srcdir/configure conftest.file`
1439 if test "$*" != "X $srcdir/configure conftest.file" \
1440 && test "$*" != "X conftest.file $srcdir/configure"; then
1442 # If neither matched, then we have a broken ls. This can happen
1443 # if, for instance, CONFIG_SHELL is bash and it inherits a
1444 # broken ls alias from the environment. This has actually
1445 # happened. Such a system could not be considered "sane".
1446 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1447 alias in your environment" >&5
1448 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1449 alias in your environment" >&2;}
1450 { (exit 1); exit 1; }; }
1453 test "$2" = conftest.file
1459 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1460 Check your system clock" >&5
1461 echo "$as_me: error: newly created file is older than distributed files!
1462 Check your system clock" >&2;}
1463 { (exit 1); exit 1; }; }
1465 echo "$as_me:$LINENO: result: yes" >&5
1466 echo "${ECHO_T}yes" >&6
1467 test "$program_prefix" != NONE &&
1468 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1469 # Use a double $ so make ignores it.
1470 test "$program_suffix" != NONE &&
1471 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1472 # Double any \ or $. echo might interpret backslashes.
1473 # By default was `s,x,x', remove it if useless.
1474 cat <<\_ACEOF >conftest.sed
1475 s/[\\$]/&&/g;s/;s,x,x,$//
1477 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1481 # expand $ac_aux_dir to an absolute path
1482 am_aux_dir=`cd $ac_aux_dir && pwd`
1484 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1485 # Use eval to expand $SHELL
1486 if eval "$MISSING --run true"; then
1487 am_missing_run="$MISSING --run "
1490 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1491 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1494 for ac_prog in gawk mawk nawk awk
1496 # Extract the first word of "$ac_prog", so it can be a program name with args.
1497 set dummy $ac_prog; ac_word=$2
1498 echo "$as_me:$LINENO: checking for $ac_word" >&5
1499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500 if test "${ac_cv_prog_AWK+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1503 if test -n "$AWK"; then
1504 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510 test -z "$as_dir" && as_dir=.
1511 for ac_exec_ext in '' $ac_executable_extensions; do
1512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513 ac_cv_prog_AWK="$ac_prog"
1514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 if test -n "$AWK"; then
1524 echo "$as_me:$LINENO: result: $AWK" >&5
1525 echo "${ECHO_T}$AWK" >&6
1527 echo "$as_me:$LINENO: result: no" >&5
1528 echo "${ECHO_T}no" >&6
1531 test -n "$AWK" && break
1534 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1535 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1536 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1537 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 cat >conftest.make <<\_ACEOF
1542 @echo 'ac_maketemp="$(MAKE)"'
1544 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1545 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1546 if test -n "$ac_maketemp"; then
1547 eval ac_cv_prog_make_${ac_make}_set=yes
1549 eval ac_cv_prog_make_${ac_make}_set=no
1553 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1554 echo "$as_me:$LINENO: result: yes" >&5
1555 echo "${ECHO_T}yes" >&6
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1560 SET_MAKE="MAKE=${MAKE-make}"
1563 rm -rf .tst 2>/dev/null
1564 mkdir .tst 2>/dev/null
1565 if test -d .tst; then
1570 rmdir .tst 2>/dev/null
1572 # test to see if srcdir already configured
1573 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1574 test -f $srcdir/config.status; then
1575 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1576 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1577 { (exit 1); exit 1; }; }
1580 # test whether we have cygpath
1581 if test -z "$CYGPATH_W"; then
1582 if (cygpath --version) >/dev/null 2>/dev/null; then
1583 CYGPATH_W='cygpath -w'
1590 # Define the identity of the package.
1595 cat >>confdefs.h <<_ACEOF
1596 #define PACKAGE "$PACKAGE"
1600 cat >>confdefs.h <<_ACEOF
1601 #define VERSION "$VERSION"
1604 # Some tools Automake needs.
1606 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1609 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1612 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1615 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1618 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1621 AMTAR=${AMTAR-"${am_missing_run}tar"}
1623 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1625 # Installed binaries are usually stripped using `strip' when the user
1626 # run `make install-strip'. However `strip' might not be the right
1627 # tool to use in cross-compilation environments, therefore Automake
1628 # will honor the `STRIP' environment variable to overrule this program.
1629 if test "$cross_compiling" != no; then
1630 if test -n "$ac_tool_prefix"; then
1631 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1632 set dummy ${ac_tool_prefix}strip; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_STRIP+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 if test -n "$STRIP"; then
1639 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 STRIP=$ac_cv_prog_STRIP
1658 if test -n "$STRIP"; then
1659 echo "$as_me:$LINENO: result: $STRIP" >&5
1660 echo "${ECHO_T}$STRIP" >&6
1662 echo "$as_me:$LINENO: result: no" >&5
1663 echo "${ECHO_T}no" >&6
1667 if test -z "$ac_cv_prog_STRIP"; then
1669 # Extract the first word of "strip", so it can be a program name with args.
1670 set dummy strip; ac_word=$2
1671 echo "$as_me:$LINENO: checking for $ac_word" >&5
1672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1676 if test -n "$ac_ct_STRIP"; then
1677 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_ac_ct_STRIP="strip"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1696 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1697 if test -n "$ac_ct_STRIP"; then
1698 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1699 echo "${ECHO_T}$ac_ct_STRIP" >&6
1701 echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1707 STRIP="$ac_cv_prog_STRIP"
1711 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1713 # We need awk for the "check" target. The system "awk" is bad on
1718 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1719 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1720 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1721 if test "${enable_maintainer_mode+set}" = set; then
1722 enableval="$enable_maintainer_mode"
1723 USE_MAINTAINER_MODE=$enableval
1725 USE_MAINTAINER_MODE=no
1727 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1728 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1731 if test $USE_MAINTAINER_MODE = yes; then
1732 MAINTAINER_MODE_TRUE=
1733 MAINTAINER_MODE_FALSE='#'
1735 MAINTAINER_MODE_TRUE='#'
1736 MAINTAINER_MODE_FALSE=
1739 MAINT=$MAINTAINER_MODE_TRUE
1742 ac_config_headers="$ac_config_headers config.h"
1745 DEPDIR="${am__leading_dot}deps"
1747 ac_config_commands="$ac_config_commands depfiles"
1750 am_make=${MAKE-make}
1751 cat > confinc << 'END'
1756 # If we don't find an include directive, just comment out the code.
1757 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1758 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1762 # First try GNU make style include.
1763 echo "include confinc" > confmf
1764 # We grep out `Entering directory' and `Leaving directory'
1765 # messages which can occur if `w' ends up in MAKEFLAGS.
1766 # In particular we don't look at `^make:' because GNU make might
1767 # be invoked under some other name (usually "gmake"), in which
1768 # case it prints its new name instead of `make'.
1769 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1774 # Now try BSD make style include.
1775 if test "$am__include" = "#"; then
1776 echo '.include "confinc"' > confmf
1777 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1778 am__include=.include
1785 echo "$as_me:$LINENO: result: $_am_result" >&5
1786 echo "${ECHO_T}$_am_result" >&6
1787 rm -f confinc confmf
1789 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1790 if test "${enable_dependency_tracking+set}" = set; then
1791 enableval="$enable_dependency_tracking"
1794 if test "x$enable_dependency_tracking" != xno; then
1795 am_depcomp="$ac_aux_dir/depcomp"
1800 if test "x$enable_dependency_tracking" != xno; then
1811 ac_cpp='$CPP $CPPFLAGS'
1812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1815 if test -n "$ac_tool_prefix"; then
1816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 if test -n "$CC"; then
1844 echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1847 echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1852 if test -z "$ac_cv_prog_CC"; then
1854 # Extract the first word of "gcc", so it can be a program name with args.
1855 set dummy gcc; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 if test -n "$ac_ct_CC"; then
1862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_ac_ct_CC="gcc"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881 if test -n "$ac_ct_CC"; then
1882 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883 echo "${ECHO_T}$ac_ct_CC" >&6
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1894 if test -z "$CC"; then
1895 if test -n "$ac_tool_prefix"; then
1896 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1897 set dummy ${ac_tool_prefix}cc; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_CC+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 if test -n "$CC"; then
1904 ac_cv_prog_CC="$CC" # Let the user override the test.
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 test -z "$as_dir" && as_dir=.
1911 for ac_exec_ext in '' $ac_executable_extensions; do
1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913 ac_cv_prog_CC="${ac_tool_prefix}cc"
1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 if test -n "$CC"; then
1924 echo "$as_me:$LINENO: result: $CC" >&5
1925 echo "${ECHO_T}$CC" >&6
1927 echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1932 if test -z "$ac_cv_prog_CC"; then
1934 # Extract the first word of "cc", so it can be a program name with args.
1935 set dummy cc; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 if test -n "$ac_ct_CC"; then
1942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 test -z "$as_dir" && as_dir=.
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951 ac_cv_prog_ac_ct_CC="cc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1961 if test -n "$ac_ct_CC"; then
1962 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1963 echo "${ECHO_T}$ac_ct_CC" >&6
1965 echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1975 if test -z "$CC"; then
1976 # Extract the first word of "cc", so it can be a program name with args.
1977 set dummy cc; ac_word=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 if test -n "$CC"; then
1984 ac_cv_prog_CC="$CC" # Let the user override the test.
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1995 ac_prog_rejected=yes
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 if test $ac_prog_rejected = yes; then
2006 # We found a bogon in the path, so make sure we never use it.
2007 set dummy $ac_cv_prog_CC
2009 if test $# != 0; then
2010 # We chose a different compiler from the bogus one.
2011 # However, it has the same basename, so the bogon will be chosen
2012 # first if we set CC to just the basename; use the full file name.
2014 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2020 if test -n "$CC"; then
2021 echo "$as_me:$LINENO: result: $CC" >&5
2022 echo "${ECHO_T}$CC" >&6
2024 echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2029 if test -z "$CC"; then
2030 if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2035 echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 if test -n "$CC"; then
2041 ac_cv_prog_CC="$CC" # Let the user override the test.
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 if test -n "$CC"; then
2061 echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6
2064 echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2068 test -n "$CC" && break
2071 if test -z "$CC"; then
2075 # Extract the first word of "$ac_prog", so it can be a program name with args.
2076 set dummy $ac_prog; ac_word=$2
2077 echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 if test -n "$ac_ct_CC"; then
2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092 ac_cv_prog_ac_ct_CC="$ac_prog"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102 if test -n "$ac_ct_CC"; then
2103 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104 echo "${ECHO_T}$ac_ct_CC" >&6
2106 echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6
2110 test -n "$ac_ct_CC" && break
2119 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&2;}
2123 { (exit 1); exit 1; }; }
2125 # Provide some information about the compiler.
2126 echo "$as_me:$LINENO:" \
2127 "checking for C compiler version" >&5
2128 ac_compiler=`set X $ac_compile; echo $2`
2129 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2130 (eval $ac_compiler --version </dev/null >&5) 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2135 (eval $ac_compiler -v </dev/null >&5) 2>&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2140 (eval $ac_compiler -V </dev/null >&5) 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2145 cat >conftest.$ac_ext <<_ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h. */
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2165 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2169 (eval $ac_link_default) 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 # Find the output, starting from the most likely. This scheme is
2174 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2177 # Be careful to initialize this variable, since it used to be cached.
2178 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2180 # b.out is created by i960 compilers.
2181 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2183 test -f "$ac_file" || continue
2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2188 # This is the source file.
2191 # We found the default executable, but exeext='' is most
2195 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 # FIXME: I believe we export ac_cv_exeext for Libtool,
2197 # but it would be cool to find out if it's true. Does anybody
2198 # maintain Libtool? --akim.
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2209 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&2;}
2213 { (exit 77); exit 77; }; }
2216 ac_exeext=$ac_cv_exeext
2217 echo "$as_me:$LINENO: result: $ac_file" >&5
2218 echo "${ECHO_T}$ac_file" >&6
2220 # Check the compiler produces executables we can run. If not, either
2221 # the compiler is broken, or we cross compile.
2222 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2224 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225 # If not cross compiling, check that we can run a simple program.
2226 if test "$cross_compiling" != yes; then
2227 if { ac_try='./$ac_file'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2235 if test "$cross_compiling" = maybe; then
2238 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&2;}
2244 { (exit 1); exit 1; }; }
2248 echo "$as_me:$LINENO: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6
2251 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252 ac_clean_files=$ac_clean_files_save
2253 # Check the compiler produces executables we can run. If not, either
2254 # the compiler is broken, or we cross compile.
2255 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2257 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258 echo "${ECHO_T}$cross_compiling" >&6
2260 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2263 (eval $ac_link) 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; then
2267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2269 # work properly (i.e., refer to `conftest.exe'), while it won't with
2271 for ac_file in conftest.exe conftest conftest.*; do
2272 test -f "$ac_file" || continue
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&2;}
2286 { (exit 1); exit 1; }; }
2289 rm -f conftest$ac_cv_exeext
2290 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291 echo "${ECHO_T}$ac_cv_exeext" >&6
2293 rm -f conftest.$ac_ext
2294 EXEEXT=$ac_cv_exeext
2296 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2298 if test "${ac_cv_objext+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 cat >conftest.$ac_ext <<_ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2316 rm -f conftest.o conftest.obj
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; then
2322 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2325 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2333 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2340 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2342 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2343 echo "${ECHO_T}$ac_cv_objext" >&6
2344 OBJEXT=$ac_cv_objext
2346 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2347 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2348 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 cat >conftest.$ac_ext <<_ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>conftest.er1
2373 grep -v '^ *+' conftest.er1 >conftest.err
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2401 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2402 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2403 GCC=`test $ac_compiler_gnu = yes && echo yes`
2404 ac_test_CFLAGS=${CFLAGS+set}
2405 ac_save_CFLAGS=$CFLAGS
2407 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2408 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2409 if test "${ac_cv_prog_cc_g+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 cat >conftest.$ac_ext <<_ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>conftest.er1
2431 grep -v '^ *+' conftest.er1 >conftest.err
2433 cat conftest.err >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; } &&
2442 { ac_try='test -s conftest.$ac_objext'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
2450 echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2457 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2458 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2459 if test "$ac_test_CFLAGS" = set; then
2460 CFLAGS=$ac_save_CFLAGS
2461 elif test $ac_cv_prog_cc_g = yes; then
2462 if test "$GCC" = yes; then
2468 if test "$GCC" = yes; then
2474 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2475 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2476 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 ac_cv_prog_cc_stdc=no
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2489 #include <sys/types.h>
2490 #include <sys/stat.h>
2491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2492 struct buf { int x; };
2493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2494 static char *e (p, i)
2500 static char *f (char * (*g) (char **, int), char **p, ...)
2505 s = g (p, va_arg (v,int));
2510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2511 function prototypes and stuff, but not '\xHH' hex character constants.
2512 These don't provoke an error unfortunately, instead are silently treated
2513 as 'x'. The following induces an error, until -std1 is added to get
2514 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2515 array size at least. It's necessary to write '\x00'==0 to get something
2516 that's true only with -std1. */
2517 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2519 int test (int i, double x);
2520 struct s1 {int (*f) (int a);};
2521 struct s2 {int (*f) (double a);};
2522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2528 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2533 # Don't try gcc -ansi; that turns off useful extensions and
2534 # breaks some systems' header files.
2535 # AIX -qlanglvl=ansi
2536 # Ultrix and OSF/1 -std1
2537 # HP-UX 10.20 and later -Ae
2538 # HP-UX older versions -Aa -D_HPUX_SOURCE
2539 # SVR4 -Xc -D__EXTENSIONS__
2540 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2542 CC="$ac_save_CC $ac_arg"
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>conftest.er1
2547 grep -v '^ *+' conftest.er1 >conftest.err
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
2552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 ac_cv_prog_cc_stdc=$ac_arg
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2571 rm -f conftest.err conftest.$ac_objext
2573 rm -f conftest.$ac_ext conftest.$ac_objext
2578 case "x$ac_cv_prog_cc_stdc" in
2580 echo "$as_me:$LINENO: result: none needed" >&5
2581 echo "${ECHO_T}none needed" >&6 ;;
2583 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2584 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2585 CC="$CC $ac_cv_prog_cc_stdc" ;;
2588 # Some people use a C++ compiler to compile C. Since we use `exit',
2589 # in C++ we need to declare it. In case someone uses the same compiler
2590 # for both compiling C and C++ we need to have the C++ compiler decide
2591 # the declaration of exit, since it's the most demanding environment.
2592 cat >conftest.$ac_ext <<_ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>conftest.er1
2601 grep -v '^ *+' conftest.er1 >conftest.err
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2618 for ac_declaration in \
2620 'extern "C" void std::exit (int) throw (); using std::exit;' \
2621 'extern "C" void std::exit (int); using std::exit;' \
2622 'extern "C" void exit (int) throw ();' \
2623 'extern "C" void exit (int);' \
2626 cat >conftest.$ac_ext <<_ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2642 rm -f conftest.$ac_objext
2643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644 (eval $ac_compile) 2>conftest.er1
2646 grep -v '^ *+' conftest.er1 >conftest.err
2648 cat conftest.err >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 cat >conftest.$ac_ext <<_ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2686 rm -f conftest.$ac_objext
2687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688 (eval $ac_compile) 2>conftest.er1
2690 grep -v '^ *+' conftest.er1 >conftest.err
2692 cat conftest.err >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); } &&
2695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2709 echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716 if test -n "$ac_declaration"; then
2717 echo '#ifdef __cplusplus' >>confdefs.h
2718 echo $ac_declaration >>confdefs.h
2719 echo '#endif' >>confdefs.h
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734 depcc="$CC" am_compiler_list=
2736 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2737 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2738 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2742 # We make a subdir and do the tests there. Otherwise we can end up
2743 # making bogus files that we don't know about and never remove. For
2744 # instance it was reported that on HP-UX the gcc test will end up
2745 # making a dummy file named `D' -- because `-MD' means `put the output
2748 # Copy depcomp to subdir because otherwise we won't find it if we're
2749 # using a relative directory.
2750 cp "$am_depcomp" conftest.dir
2752 # We will build objects and dependencies in a subdirectory because
2753 # it helps to detect inapplicable dependency modes. For instance
2754 # both Tru64's cc and ICC support -MD to output dependencies as a
2755 # side effect of compilation, but ICC will put the dependencies in
2756 # the current directory while Tru64 will put them in the object
2760 am_cv_CC_dependencies_compiler_type=none
2761 if test "$am_compiler_list" = ""; then
2762 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2764 for depmode in $am_compiler_list; do
2765 # Setup a source with many dependencies, because some compilers
2766 # like to wrap large dependency lists on column 80 (with \), and
2767 # we should not choose a depcomp mode which is confused by this.
2769 # We need to recreate these files for each test, as the compiler may
2770 # overwrite some of them when testing with obscure command lines.
2771 # This happens at least with the AIX C compiler.
2773 for i in 1 2 3 4 5 6; do
2774 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2781 # after this tag, mechanisms are not by side-effect, so they'll
2782 # only be used when explicitly requested
2783 if test "x$enable_dependency_tracking" = xyes; then
2791 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2792 # mode. It turns out that the SunPro C++ compiler does not properly
2793 # handle `-M -o', and we need to detect this.
2794 if depmode=$depmode \
2795 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2797 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2798 >/dev/null 2>conftest.err &&
2799 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2800 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2801 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2802 # icc doesn't choke on unknown options, it will just issue warnings
2803 # (even with -Werror). So we grep stderr for any message
2804 # that says an option was ignored.
2805 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2806 am_cv_CC_dependencies_compiler_type=$depmode
2815 am_cv_CC_dependencies_compiler_type=none
2819 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2820 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2821 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2826 test "x$enable_dependency_tracking" != xno \
2827 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2829 am__fastdepCC_FALSE='#'
2831 am__fastdepCC_TRUE='#'
2832 am__fastdepCC_FALSE=
2838 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2839 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2840 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 ac_check_lib_save_LIBS=$LIBS
2844 LIBS="-lcposix $LIBS"
2845 cat >conftest.$ac_ext <<_ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h. */
2852 /* Override any gcc2 internal prototype to avoid an error. */
2856 /* We use char because int might match the return type of a gcc2
2857 builtin and then its argument prototype would still apply. */
2867 rm -f conftest.$ac_objext conftest$ac_exeext
2868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2869 (eval $ac_link) 2>conftest.er1
2871 grep -v '^ *+' conftest.er1 >conftest.err
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; } &&
2882 { ac_try='test -s conftest$ac_exeext'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2888 ac_cv_lib_cposix_strerror=yes
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2893 ac_cv_lib_cposix_strerror=no
2895 rm -f conftest.err conftest.$ac_objext \
2896 conftest$ac_exeext conftest.$ac_ext
2897 LIBS=$ac_check_lib_save_LIBS
2899 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2900 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2901 if test $ac_cv_lib_cposix_strerror = yes; then
2902 LIBS="$LIBS -lcposix"
2908 ac_cpp='$CPP $CPPFLAGS'
2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912 if test -n "$ac_tool_prefix"; then
2913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2915 echo "$as_me:$LINENO: checking for $ac_word" >&5
2916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2917 if test "${ac_cv_prog_CC+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 if test -n "$CC"; then
2921 ac_cv_prog_CC="$CC" # Let the user override the test.
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 if test -n "$CC"; then
2941 echo "$as_me:$LINENO: result: $CC" >&5
2942 echo "${ECHO_T}$CC" >&6
2944 echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6
2949 if test -z "$ac_cv_prog_CC"; then
2951 # Extract the first word of "gcc", so it can be a program name with args.
2952 set dummy gcc; ac_word=$2
2953 echo "$as_me:$LINENO: checking for $ac_word" >&5
2954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968 ac_cv_prog_ac_ct_CC="gcc"
2969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978 if test -n "$ac_ct_CC"; then
2979 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2980 echo "${ECHO_T}$ac_ct_CC" >&6
2982 echo "$as_me:$LINENO: result: no" >&5
2983 echo "${ECHO_T}no" >&6
2991 if test -z "$CC"; then
2992 if test -n "$ac_tool_prefix"; then
2993 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2994 set dummy ${ac_tool_prefix}cc; ac_word=$2
2995 echo "$as_me:$LINENO: checking for $ac_word" >&5
2996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2997 if test "${ac_cv_prog_CC+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_CC="${ac_tool_prefix}cc"
3011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 if test -n "$CC"; then
3021 echo "$as_me:$LINENO: result: $CC" >&5
3022 echo "${ECHO_T}$CC" >&6
3024 echo "$as_me:$LINENO: result: no" >&5
3025 echo "${ECHO_T}no" >&6
3029 if test -z "$ac_cv_prog_CC"; then
3031 # Extract the first word of "cc", so it can be a program name with args.
3032 set dummy cc; ac_word=$2
3033 echo "$as_me:$LINENO: checking for $ac_word" >&5
3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 if test -n "$ac_ct_CC"; then
3039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048 ac_cv_prog_ac_ct_CC="cc"
3049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3058 if test -n "$ac_ct_CC"; then
3059 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3060 echo "${ECHO_T}$ac_ct_CC" >&6
3062 echo "$as_me:$LINENO: result: no" >&5
3063 echo "${ECHO_T}no" >&6
3072 if test -z "$CC"; then
3073 # Extract the first word of "cc", so it can be a program name with args.
3074 set dummy cc; ac_word=$2
3075 echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3077 if test "${ac_cv_prog_CC+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 if test -n "$CC"; then
3081 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3092 ac_prog_rejected=yes
3096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 if test $ac_prog_rejected = yes; then
3103 # We found a bogon in the path, so make sure we never use it.
3104 set dummy $ac_cv_prog_CC
3106 if test $# != 0; then
3107 # We chose a different compiler from the bogus one.
3108 # However, it has the same basename, so the bogon will be chosen
3109 # first if we set CC to just the basename; use the full file name.
3111 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3117 if test -n "$CC"; then
3118 echo "$as_me:$LINENO: result: $CC" >&5
3119 echo "${ECHO_T}$CC" >&6
3121 echo "$as_me:$LINENO: result: no" >&5
3122 echo "${ECHO_T}no" >&6
3126 if test -z "$CC"; then
3127 if test -n "$ac_tool_prefix"; then
3130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3132 echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3134 if test "${ac_cv_prog_CC+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 if test -n "$CC"; then
3158 echo "$as_me:$LINENO: result: $CC" >&5
3159 echo "${ECHO_T}$CC" >&6
3161 echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6
3165 test -n "$CC" && break
3168 if test -z "$CC"; then
3172 # Extract the first word of "$ac_prog", so it can be a program name with args.
3173 set dummy $ac_prog; ac_word=$2
3174 echo "$as_me:$LINENO: checking for $ac_word" >&5
3175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 if test -n "$ac_ct_CC"; then
3180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_ac_ct_CC="$ac_prog"
3190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3199 if test -n "$ac_ct_CC"; then
3200 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3201 echo "${ECHO_T}$ac_ct_CC" >&6
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3207 test -n "$ac_ct_CC" && break
3216 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3217 See \`config.log' for more details." >&5
3218 echo "$as_me: error: no acceptable C compiler found in \$PATH
3219 See \`config.log' for more details." >&2;}
3220 { (exit 1); exit 1; }; }
3222 # Provide some information about the compiler.
3223 echo "$as_me:$LINENO:" \
3224 "checking for C compiler version" >&5
3225 ac_compiler=`set X $ac_compile; echo $2`
3226 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3227 (eval $ac_compiler --version </dev/null >&5) 2>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }
3231 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3232 (eval $ac_compiler -v </dev/null >&5) 2>&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }
3236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3237 (eval $ac_compiler -V </dev/null >&5) 2>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }
3242 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3243 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3244 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 cat >conftest.$ac_ext <<_ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3265 rm -f conftest.$ac_objext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267 (eval $ac_compile) 2>conftest.er1
3269 grep -v '^ *+' conftest.er1 >conftest.err
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; } &&
3280 { ac_try='test -s conftest.$ac_objext'
3281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; }; then
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3294 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3297 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3298 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3299 GCC=`test $ac_compiler_gnu = yes && echo yes`
3300 ac_test_CFLAGS=${CFLAGS+set}
3301 ac_save_CFLAGS=$CFLAGS
3303 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3304 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3305 if test "${ac_cv_prog_cc_g+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 cat >conftest.$ac_ext <<_ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3323 rm -f conftest.$ac_objext
3324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3325 (eval $ac_compile) 2>conftest.er1
3327 grep -v '^ *+' conftest.er1 >conftest.err
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } &&
3332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; } &&
3338 { ac_try='test -s conftest.$ac_objext'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; }; then
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3353 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3354 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3355 if test "$ac_test_CFLAGS" = set; then
3356 CFLAGS=$ac_save_CFLAGS
3357 elif test $ac_cv_prog_cc_g = yes; then
3358 if test "$GCC" = yes; then
3364 if test "$GCC" = yes; then
3370 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3371 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3372 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 ac_cv_prog_cc_stdc=no
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3385 #include <sys/types.h>
3386 #include <sys/stat.h>
3387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3388 struct buf { int x; };
3389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3390 static char *e (p, i)
3396 static char *f (char * (*g) (char **, int), char **p, ...)
3401 s = g (p, va_arg (v,int));
3406 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3407 function prototypes and stuff, but not '\xHH' hex character constants.
3408 These don't provoke an error unfortunately, instead are silently treated
3409 as 'x'. The following induces an error, until -std1 is added to get
3410 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3411 array size at least. It's necessary to write '\x00'==0 to get something
3412 that's true only with -std1. */
3413 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3415 int test (int i, double x);
3416 struct s1 {int (*f) (int a);};
3417 struct s2 {int (*f) (double a);};
3418 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3424 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3429 # Don't try gcc -ansi; that turns off useful extensions and
3430 # breaks some systems' header files.
3431 # AIX -qlanglvl=ansi
3432 # Ultrix and OSF/1 -std1
3433 # HP-UX 10.20 and later -Ae
3434 # HP-UX older versions -Aa -D_HPUX_SOURCE
3435 # SVR4 -Xc -D__EXTENSIONS__
3436 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3438 CC="$ac_save_CC $ac_arg"
3439 rm -f conftest.$ac_objext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>conftest.er1
3443 grep -v '^ *+' conftest.er1 >conftest.err
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; } &&
3454 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3460 ac_cv_prog_cc_stdc=$ac_arg
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3467 rm -f conftest.err conftest.$ac_objext
3469 rm -f conftest.$ac_ext conftest.$ac_objext
3474 case "x$ac_cv_prog_cc_stdc" in
3476 echo "$as_me:$LINENO: result: none needed" >&5
3477 echo "${ECHO_T}none needed" >&6 ;;
3479 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3480 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3481 CC="$CC $ac_cv_prog_cc_stdc" ;;
3484 # Some people use a C++ compiler to compile C. Since we use `exit',
3485 # in C++ we need to declare it. In case someone uses the same compiler
3486 # for both compiling C and C++ we need to have the C++ compiler decide
3487 # the declaration of exit, since it's the most demanding environment.
3488 cat >conftest.$ac_ext <<_ACEOF
3493 rm -f conftest.$ac_objext
3494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>conftest.er1
3497 grep -v '^ *+' conftest.er1 >conftest.err
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } &&
3502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; } &&
3508 { ac_try='test -s conftest.$ac_objext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 for ac_declaration in \
3516 'extern "C" void std::exit (int) throw (); using std::exit;' \
3517 'extern "C" void std::exit (int); using std::exit;' \
3518 'extern "C" void exit (int) throw ();' \
3519 'extern "C" void exit (int);' \
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3538 rm -f conftest.$ac_objext
3539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3540 (eval $ac_compile) 2>conftest.er1
3542 grep -v '^ *+' conftest.er1 >conftest.err
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } &&
3547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; } &&
3553 { ac_try='test -s conftest.$ac_objext'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3567 cat >conftest.$ac_ext <<_ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3582 rm -f conftest.$ac_objext
3583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3584 (eval $ac_compile) 2>conftest.er1
3586 grep -v '^ *+' conftest.er1 >conftest.err
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } &&
3591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; } &&
3597 { ac_try='test -s conftest.$ac_objext'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3612 if test -n "$ac_declaration"; then
3613 echo '#ifdef __cplusplus' >>confdefs.h
3614 echo $ac_declaration >>confdefs.h
3615 echo '#endif' >>confdefs.h
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 depcc="$CC" am_compiler_list=
3632 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3633 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3634 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3638 # We make a subdir and do the tests there. Otherwise we can end up
3639 # making bogus files that we don't know about and never remove. For
3640 # instance it was reported that on HP-UX the gcc test will end up
3641 # making a dummy file named `D' -- because `-MD' means `put the output
3644 # Copy depcomp to subdir because otherwise we won't find it if we're
3645 # using a relative directory.
3646 cp "$am_depcomp" conftest.dir
3648 # We will build objects and dependencies in a subdirectory because
3649 # it helps to detect inapplicable dependency modes. For instance
3650 # both Tru64's cc and ICC support -MD to output dependencies as a
3651 # side effect of compilation, but ICC will put the dependencies in
3652 # the current directory while Tru64 will put them in the object
3656 am_cv_CC_dependencies_compiler_type=none
3657 if test "$am_compiler_list" = ""; then
3658 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3660 for depmode in $am_compiler_list; do
3661 # Setup a source with many dependencies, because some compilers
3662 # like to wrap large dependency lists on column 80 (with \), and
3663 # we should not choose a depcomp mode which is confused by this.
3665 # We need to recreate these files for each test, as the compiler may
3666 # overwrite some of them when testing with obscure command lines.
3667 # This happens at least with the AIX C compiler.
3669 for i in 1 2 3 4 5 6; do
3670 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3673 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3677 # after this tag, mechanisms are not by side-effect, so they'll
3678 # only be used when explicitly requested
3679 if test "x$enable_dependency_tracking" = xyes; then
3687 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3688 # mode. It turns out that the SunPro C++ compiler does not properly
3689 # handle `-M -o', and we need to detect this.
3690 if depmode=$depmode \
3691 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3692 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3693 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3694 >/dev/null 2>conftest.err &&
3695 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3696 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3697 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3698 # icc doesn't choke on unknown options, it will just issue warnings
3699 # (even with -Werror). So we grep stderr for any message
3700 # that says an option was ignored.
3701 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3702 am_cv_CC_dependencies_compiler_type=$depmode
3711 am_cv_CC_dependencies_compiler_type=none
3715 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3716 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3717 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3722 test "x$enable_dependency_tracking" != xno \
3723 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3725 am__fastdepCC_FALSE='#'
3727 am__fastdepCC_TRUE='#'
3728 am__fastdepCC_FALSE=
3735 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3736 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3737 if test "${am_cv_prog_cc_stdc+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 am_cv_prog_cc_stdc=no
3742 # Don't try gcc -ansi; that turns off useful extensions and
3743 # breaks some systems' header files.
3744 # AIX -qlanglvl=ansi
3745 # Ultrix and OSF/1 -std1
3746 # HP-UX 10.20 and later -Ae
3747 # HP-UX older versions -Aa -D_HPUX_SOURCE
3748 # SVR4 -Xc -D__EXTENSIONS__
3749 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3751 CC="$ac_save_CC $ac_arg"
3752 cat >conftest.$ac_ext <<_ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3760 #include <sys/types.h>
3761 #include <sys/stat.h>
3762 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3763 struct buf { int x; };
3764 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3765 static char *e (p, i)
3771 static char *f (char * (*g) (char **, int), char **p, ...)
3776 s = g (p, va_arg (v,int));
3780 int test (int i, double x);
3781 struct s1 {int (*f) (int a);};
3782 struct s2 {int (*f) (double a);};
3783 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3791 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3797 rm -f conftest.$ac_objext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3799 (eval $ac_compile) 2>conftest.er1
3801 grep -v '^ *+' conftest.er1 >conftest.err
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } &&
3806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; } &&
3812 { ac_try='test -s conftest.$ac_objext'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; }; then
3818 am_cv_prog_cc_stdc="$ac_arg"; break
3820 echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830 if test -z "$am_cv_prog_cc_stdc"; then
3831 echo "$as_me:$LINENO: result: none needed" >&5
3832 echo "${ECHO_T}none needed" >&6
3834 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3835 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3837 case "x$am_cv_prog_cc_stdc" in
3839 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3843 ac_cpp='$CPP $CPPFLAGS'
3844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3848 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3849 # On Suns, sometimes $CPP names a directory.
3850 if test -n "$CPP" && test -d "$CPP"; then
3853 if test -z "$CPP"; then
3854 if test "${ac_cv_prog_CPP+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 # Double quotes because CPP needs to be expanded
3858 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3861 for ac_c_preproc_warn_flag in '' yes
3863 # Use a header file that comes with gcc, so configuring glibc
3864 # with a fresh cross-compiler works.
3865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3866 # <limits.h> exists even on freestanding compilers.
3867 # On the NeXT, cc -E runs the code through the compiler's parser,
3868 # not just through cpp. "Syntax error" is here to catch this case.
3869 cat >conftest.$ac_ext <<_ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3876 # include <limits.h>
3878 # include <assert.h>
3882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } >/dev/null; then
3890 if test -s conftest.err; then
3891 ac_cpp_err=$ac_c_preproc_warn_flag
3892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3899 if test -z "$ac_cpp_err"; then
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 # Broken: fails on valid input.
3908 rm -f conftest.err conftest.$ac_ext
3910 # OK, works on sane cases. Now check whether non-existent headers
3911 # can be detected and how.
3912 cat >conftest.$ac_ext <<_ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3918 #include <ac_nonexistent.h>
3920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3923 grep -v '^ *+' conftest.er1 >conftest.err
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } >/dev/null; then
3928 if test -s conftest.err; then
3929 ac_cpp_err=$ac_c_preproc_warn_flag
3930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3937 if test -z "$ac_cpp_err"; then
3938 # Broken: success on invalid input.
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 # Passes both tests.
3948 rm -f conftest.err conftest.$ac_ext
3951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3952 rm -f conftest.err conftest.$ac_ext
3953 if $ac_preproc_ok; then
3965 echo "$as_me:$LINENO: result: $CPP" >&5
3966 echo "${ECHO_T}$CPP" >&6
3968 for ac_c_preproc_warn_flag in '' yes
3970 # Use a header file that comes with gcc, so configuring glibc
3971 # with a fresh cross-compiler works.
3972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973 # <limits.h> exists even on freestanding compilers.
3974 # On the NeXT, cc -E runs the code through the compiler's parser,
3975 # not just through cpp. "Syntax error" is here to catch this case.
3976 cat >conftest.$ac_ext <<_ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3983 # include <limits.h>
3985 # include <assert.h>
3989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3992 grep -v '^ *+' conftest.er1 >conftest.err
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } >/dev/null; then
3997 if test -s conftest.err; then
3998 ac_cpp_err=$ac_c_preproc_warn_flag
3999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4006 if test -z "$ac_cpp_err"; then
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 # Broken: fails on valid input.
4015 rm -f conftest.err conftest.$ac_ext
4017 # OK, works on sane cases. Now check whether non-existent headers
4018 # can be detected and how.
4019 cat >conftest.$ac_ext <<_ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 #include <ac_nonexistent.h>
4027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4030 grep -v '^ *+' conftest.er1 >conftest.err
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } >/dev/null; then
4035 if test -s conftest.err; then
4036 ac_cpp_err=$ac_c_preproc_warn_flag
4037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4044 if test -z "$ac_cpp_err"; then
4045 # Broken: success on invalid input.
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 # Passes both tests.
4055 rm -f conftest.err conftest.$ac_ext
4058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4059 rm -f conftest.err conftest.$ac_ext
4060 if $ac_preproc_ok; then
4063 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4064 See \`config.log' for more details." >&5
4065 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4066 See \`config.log' for more details." >&2;}
4067 { (exit 1); exit 1; }; }
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 echo "$as_me:$LINENO: checking for egrep" >&5
4078 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4079 if test "${ac_cv_prog_egrep+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4083 then ac_cv_prog_egrep='grep -E'
4084 else ac_cv_prog_egrep='egrep'
4087 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4088 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4089 EGREP=$ac_cv_prog_egrep
4092 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4093 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4094 if test "${ac_cv_header_stdc+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 cat >conftest.$ac_ext <<_ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4116 rm -f conftest.$ac_objext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_cv_header_stdc=yes
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4142 ac_cv_header_stdc=no
4144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4146 if test $ac_cv_header_stdc = yes; then
4147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4148 cat >conftest.$ac_ext <<_ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "memchr" >/dev/null 2>&1; then
4161 ac_cv_header_stdc=no
4167 if test $ac_cv_header_stdc = yes; then
4168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169 cat >conftest.$ac_ext <<_ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179 $EGREP "free" >/dev/null 2>&1; then
4182 ac_cv_header_stdc=no
4188 if test $ac_cv_header_stdc = yes; then
4189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4190 if test "$cross_compiling" = yes; then
4193 cat >conftest.$ac_ext <<_ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4200 #if ((' ' & 0x0FF) == 0x020)
4201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4204 # define ISLOWER(c) \
4205 (('a' <= (c) && (c) <= 'i') \
4206 || ('j' <= (c) && (c) <= 'r') \
4207 || ('s' <= (c) && (c) <= 'z'))
4208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4216 for (i = 0; i < 256; i++)
4217 if (XOR (islower (i), ISLOWER (i))
4218 || toupper (i) != TOUPPER (i))
4223 rm -f conftest$ac_exeext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4236 echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4241 ac_cv_header_stdc=no
4243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4247 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4248 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4249 if test $ac_cv_header_stdc = yes; then
4251 cat >>confdefs.h <<\_ACEOF
4252 #define STDC_HEADERS 1
4260 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4261 if test -n "$ac_tool_prefix"; then
4262 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4263 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4264 echo "$as_me:$LINENO: checking for $ac_word" >&5
4265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4266 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4293 if test -n "$PKG_CONFIG"; then
4294 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4295 echo "${ECHO_T}$PKG_CONFIG" >&6
4297 echo "$as_me:$LINENO: result: no" >&5
4298 echo "${ECHO_T}no" >&6
4302 if test -z "$ac_cv_path_PKG_CONFIG"; then
4303 ac_pt_PKG_CONFIG=$PKG_CONFIG
4304 # Extract the first word of "pkg-config", so it can be a program name with args.
4305 set dummy pkg-config; ac_word=$2
4306 echo "$as_me:$LINENO: checking for $ac_word" >&5
4307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4308 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 case $ac_pt_PKG_CONFIG in
4313 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4335 if test -n "$ac_pt_PKG_CONFIG"; then
4336 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4337 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4339 echo "$as_me:$LINENO: result: no" >&5
4340 echo "${ECHO_T}no" >&6
4343 PKG_CONFIG=$ac_pt_PKG_CONFIG
4345 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4349 if test -n "$PKG_CONFIG"; then
4350 _pkg_min_version=0.9.0
4351 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4352 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4353 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4354 echo "$as_me:$LINENO: result: yes" >&5
4355 echo "${ECHO_T}yes" >&6
4357 echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6
4365 echo "$as_me:$LINENO: checking for PACKAGE" >&5
4366 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6
4368 if test -n "$PKG_CONFIG"; then
4369 if test -n "$PACKAGE_CFLAGS"; then
4370 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
4372 if test -n "$PKG_CONFIG" && \
4373 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" libgnomeui-2.0 esound \"") >&5
4374 ($PKG_CONFIG --exists --print-errors " libgnomeui-2.0 esound ") 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; then
4378 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags " libgnomeui-2.0 esound " 2>/dev/null`
4386 if test -n "$PKG_CONFIG"; then
4387 if test -n "$PACKAGE_LIBS"; then
4388 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
4390 if test -n "$PKG_CONFIG" && \
4391 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" libgnomeui-2.0 esound \"") >&5
4392 ($PKG_CONFIG --exists --print-errors " libgnomeui-2.0 esound ") 2>&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; then
4396 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs " libgnomeui-2.0 esound " 2>/dev/null`
4407 if test $pkg_failed = yes; then
4409 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4410 _pkg_short_errors_supported=yes
4412 _pkg_short_errors_supported=no
4414 if test $_pkg_short_errors_supported = yes; then
4415 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " libgnomeui-2.0 esound "`
4417 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " libgnomeui-2.0 esound "`
4419 # Put the nasty error message in config.log where it belongs
4420 echo "$PACKAGE_PKG_ERRORS" >&5
4422 { { echo "$as_me:$LINENO: error: Package requirements ( libgnomeui-2.0 esound ) were not met:
4426 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4427 installed software in a non-standard prefix.
4429 Alternatively, you may set the environment variables PACKAGE_CFLAGS
4430 and PACKAGE_LIBS to avoid the need to call pkg-config.
4431 See the pkg-config man page for more details.
4433 echo "$as_me: error: Package requirements ( libgnomeui-2.0 esound ) were not met:
4437 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4438 installed software in a non-standard prefix.
4440 Alternatively, you may set the environment variables PACKAGE_CFLAGS
4441 and PACKAGE_LIBS to avoid the need to call pkg-config.
4442 See the pkg-config man page for more details.
4444 { (exit 1); exit 1; }; }
4445 elif test $pkg_failed = untried; then
4446 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
4447 is in your PATH or set the PKG_CONFIG environment variable to the full
4450 Alternatively, you may set the environment variables PACKAGE_CFLAGS
4451 and PACKAGE_LIBS to avoid the need to call pkg-config.
4452 See the pkg-config man page for more details.
4454 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4455 See \`config.log' for more details." >&5
4456 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
4457 is in your PATH or set the PKG_CONFIG environment variable to the full
4460 Alternatively, you may set the environment variables PACKAGE_CFLAGS
4461 and PACKAGE_LIBS to avoid the need to call pkg-config.
4462 See the pkg-config man page for more details.
4464 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4465 See \`config.log' for more details." >&2;}
4466 { (exit 1); exit 1; }; }
4468 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
4469 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
4470 echo "$as_me:$LINENO: result: yes" >&5
4471 echo "${ECHO_T}yes" >&6
4478 echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
4479 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6
4480 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 ac_check_lib_save_LIBS=$LIBS
4485 cat >conftest.$ac_ext <<_ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4492 /* Override any gcc2 internal prototype to avoid an error. */
4496 /* We use char because int might match the return type of a gcc2
4497 builtin and then its argument prototype would still apply. */
4498 char glXQueryVersion ();
4507 rm -f conftest.$ac_objext conftest$ac_exeext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4509 (eval $ac_link) 2>conftest.er1
4511 grep -v '^ *+' conftest.er1 >conftest.err
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try='test -s conftest$ac_exeext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_cv_lib_GL_glXQueryVersion=yes
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4533 ac_cv_lib_GL_glXQueryVersion=no
4535 rm -f conftest.err conftest.$ac_objext \
4536 conftest$ac_exeext conftest.$ac_ext
4537 LIBS=$ac_check_lib_save_LIBS
4539 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
4540 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6
4541 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
4542 cat >>confdefs.h <<_ACEOF
4543 #define HAVE_LIBGL 1
4551 GETTEXT_PACKAGE=dream
4553 cat >>confdefs.h <<_ACEOF
4554 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
4559 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4570 inttypes.h stdint.h unistd.h
4572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573 echo "$as_me:$LINENO: checking for $ac_header" >&5
4574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 $ac_includes_default
4586 #include <$ac_header>
4588 rm -f conftest.$ac_objext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590 (eval $ac_compile) 2>conftest.er1
4592 grep -v '^ *+' conftest.er1 >conftest.err
4594 cat conftest.err >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; } &&
4603 { ac_try='test -s conftest.$ac_objext'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4609 eval "$as_ac_Header=yes"
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4614 eval "$as_ac_Header=no"
4616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4621 cat >>confdefs.h <<_ACEOF
4622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4632 for ac_header in locale.h
4634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4636 echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4644 # Is the header compilable?
4645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4647 cat >conftest.$ac_ext <<_ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653 $ac_includes_default
4654 #include <$ac_header>
4656 rm -f conftest.$ac_objext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4658 (eval $ac_compile) 2>conftest.er1
4660 grep -v '^ *+' conftest.er1 >conftest.err
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; } &&
4671 { ac_try='test -s conftest.$ac_objext'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; }; then
4677 ac_header_compiler=yes
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4682 ac_header_compiler=no
4684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4686 echo "${ECHO_T}$ac_header_compiler" >&6
4688 # Is the header present?
4689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4691 cat >conftest.$ac_ext <<_ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h. */
4697 #include <$ac_header>
4699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4702 grep -v '^ *+' conftest.er1 >conftest.err
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } >/dev/null; then
4707 if test -s conftest.err; then
4708 ac_cpp_err=$ac_c_preproc_warn_flag
4709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4716 if test -z "$ac_cpp_err"; then
4717 ac_header_preproc=yes
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 ac_header_preproc=no
4724 rm -f conftest.err conftest.$ac_ext
4725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4726 echo "${ECHO_T}$ac_header_preproc" >&6
4728 # So? What about this header?
4729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4735 ac_header_preproc=yes
4738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4752 ## ------------------------------------------ ##
4753 ## Report this to the AC_PACKAGE_NAME lists. ##
4754 ## ------------------------------------------ ##
4757 sed "s/^/$as_me: WARNING: /" >&2
4760 echo "$as_me:$LINENO: checking for $ac_header" >&5
4761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 eval "$as_ac_Header=\$ac_header_preproc"
4767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4772 cat >>confdefs.h <<_ACEOF
4773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4780 if test $ac_cv_header_locale_h = yes; then
4781 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4782 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4783 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 cat >conftest.$ac_ext <<_ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4801 rm -f conftest.$ac_objext conftest$ac_exeext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4803 (eval $ac_link) 2>conftest.er1
4805 grep -v '^ *+' conftest.er1 >conftest.err
4807 cat conftest.err >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } &&
4810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; } &&
4816 { ac_try='test -s conftest$ac_exeext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 am_cv_val_LC_MESSAGES=yes
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 am_cv_val_LC_MESSAGES=no
4829 rm -f conftest.err conftest.$ac_objext \
4830 conftest$ac_exeext conftest.$ac_ext
4832 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4833 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4834 if test $am_cv_val_LC_MESSAGES = yes; then
4836 cat >>confdefs.h <<\_ACEOF
4837 #define HAVE_LC_MESSAGES 1
4845 gt_cv_have_gettext=no
4851 if test "${ac_cv_header_libintl_h+set}" = set; then
4852 echo "$as_me:$LINENO: checking for libintl.h" >&5
4853 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4854 if test "${ac_cv_header_libintl_h+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4858 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4860 # Is the header compilable?
4861 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4862 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4863 cat >conftest.$ac_ext <<_ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 $ac_includes_default
4870 #include <libintl.h>
4872 rm -f conftest.$ac_objext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874 (eval $ac_compile) 2>conftest.er1
4876 grep -v '^ *+' conftest.er1 >conftest.err
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
4881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; } &&
4887 { ac_try='test -s conftest.$ac_objext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_header_compiler=yes
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4898 ac_header_compiler=no
4900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4902 echo "${ECHO_T}$ac_header_compiler" >&6
4904 # Is the header present?
4905 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4906 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 #include <libintl.h>
4915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4918 grep -v '^ *+' conftest.er1 >conftest.err
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } >/dev/null; then
4923 if test -s conftest.err; then
4924 ac_cpp_err=$ac_c_preproc_warn_flag
4925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4932 if test -z "$ac_cpp_err"; then
4933 ac_header_preproc=yes
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4938 ac_header_preproc=no
4940 rm -f conftest.err conftest.$ac_ext
4941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4942 echo "${ECHO_T}$ac_header_preproc" >&6
4944 # So? What about this header?
4945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4947 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4948 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4950 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4951 ac_header_preproc=yes
4954 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4955 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4956 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4957 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4958 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4959 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4960 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4961 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4962 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4963 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4964 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4965 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4968 ## ------------------------------------------ ##
4969 ## Report this to the AC_PACKAGE_NAME lists. ##
4970 ## ------------------------------------------ ##
4973 sed "s/^/$as_me: WARNING: /" >&2
4976 echo "$as_me:$LINENO: checking for libintl.h" >&5
4977 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4978 if test "${ac_cv_header_libintl_h+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 ac_cv_header_libintl_h=$ac_header_preproc
4983 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4984 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4987 if test $ac_cv_header_libintl_h = yes; then
4988 gt_cv_func_dgettext_libintl="no"
4989 libintl_extra_libs=""
4992 # First check in libc
4994 echo "$as_me:$LINENO: checking for ngettext in libc" >&5
4995 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
4996 if test "${gt_cv_func_ngettext_libc+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 cat >conftest.$ac_ext <<_ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5006 #include <libintl.h>
5011 return !ngettext ("","", 1)
5016 rm -f conftest.$ac_objext conftest$ac_exeext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5018 (eval $ac_link) 2>conftest.er1
5020 grep -v '^ *+' conftest.er1 >conftest.err
5022 cat conftest.err >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } &&
5025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; } &&
5031 { ac_try='test -s conftest$ac_exeext'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; }; then
5037 gt_cv_func_ngettext_libc=yes
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5042 gt_cv_func_ngettext_libc=no
5044 rm -f conftest.err conftest.$ac_objext \
5045 conftest$ac_exeext conftest.$ac_ext
5048 echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
5049 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
5051 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5052 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
5053 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
5054 if test "${gt_cv_func_dgettext_libc+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 cat >conftest.$ac_ext <<_ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5064 #include <libintl.h>
5069 return !dgettext ("","")
5074 rm -f conftest.$ac_objext conftest$ac_exeext
5075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5076 (eval $ac_link) 2>conftest.er1
5078 grep -v '^ *+' conftest.er1 >conftest.err
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; } &&
5089 { ac_try='test -s conftest$ac_exeext'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; }; then
5095 gt_cv_func_dgettext_libc=yes
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5100 gt_cv_func_dgettext_libc=no
5102 rm -f conftest.err conftest.$ac_objext \
5103 conftest$ac_exeext conftest.$ac_ext
5106 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
5107 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
5110 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5112 for ac_func in bind_textdomain_codeset
5114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5115 echo "$as_me:$LINENO: checking for $ac_func" >&5
5116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5117 if eval "test \"\${$as_ac_var+set}\" = set"; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 cat >conftest.$ac_ext <<_ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5128 #define $ac_func innocuous_$ac_func
5130 /* System header to define __stub macros and hopefully few prototypes,
5131 which can conflict with char $ac_func (); below.
5132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5133 <limits.h> exists even on freestanding compilers. */
5136 # include <limits.h>
5138 # include <assert.h>
5143 /* Override any gcc2 internal prototype to avoid an error. */
5148 /* We use char because int might match the return type of a gcc2
5149 builtin and then its argument prototype would still apply. */
5151 /* The GNU C library defines this for functions which it implements
5152 to always fail with ENOSYS. Some functions are actually named
5153 something starting with __ and the normal name is an alias. */
5154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5157 char (*f) () = $ac_func;
5166 return f != $ac_func;
5171 rm -f conftest.$ac_objext conftest$ac_exeext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5173 (eval $ac_link) 2>conftest.er1
5175 grep -v '^ *+' conftest.er1 >conftest.err
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } &&
5180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; } &&
5186 { ac_try='test -s conftest$ac_exeext'
5187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; }; then
5192 eval "$as_ac_var=yes"
5194 echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5197 eval "$as_ac_var=no"
5199 rm -f conftest.err conftest.$ac_objext \
5200 conftest$ac_exeext conftest.$ac_ext
5202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5204 if test `eval echo '${'$as_ac_var'}'` = yes; then
5205 cat >>confdefs.h <<_ACEOF
5206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5215 # If we don't have everything we want, check in libintl
5217 if test "$gt_cv_func_dgettext_libc" != "yes" \
5218 || test "$gt_cv_func_ngettext_libc" != "yes" \
5219 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
5221 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5222 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5223 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 ac_check_lib_save_LIBS=$LIBS
5228 cat >conftest.$ac_ext <<_ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5235 /* Override any gcc2 internal prototype to avoid an error. */
5239 /* We use char because int might match the return type of a gcc2
5240 builtin and then its argument prototype would still apply. */
5241 char bindtextdomain ();
5250 rm -f conftest.$ac_objext conftest$ac_exeext
5251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5252 (eval $ac_link) 2>conftest.er1
5254 grep -v '^ *+' conftest.er1 >conftest.err
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } &&
5259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try='test -s conftest$ac_exeext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_cv_lib_intl_bindtextdomain=yes
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5276 ac_cv_lib_intl_bindtextdomain=no
5278 rm -f conftest.err conftest.$ac_objext \
5279 conftest$ac_exeext conftest.$ac_ext
5280 LIBS=$ac_check_lib_save_LIBS
5282 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5283 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5284 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5285 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
5286 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
5287 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 ac_check_lib_save_LIBS=$LIBS
5292 cat >conftest.$ac_ext <<_ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5299 /* Override any gcc2 internal prototype to avoid an error. */
5303 /* We use char because int might match the return type of a gcc2
5304 builtin and then its argument prototype would still apply. */
5314 rm -f conftest.$ac_objext conftest$ac_exeext
5315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5316 (eval $ac_link) 2>conftest.er1
5318 grep -v '^ *+' conftest.er1 >conftest.err
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } &&
5323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; } &&
5329 { ac_try='test -s conftest$ac_exeext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5335 ac_cv_lib_intl_ngettext=yes
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5340 ac_cv_lib_intl_ngettext=no
5342 rm -f conftest.err conftest.$ac_objext \
5343 conftest$ac_exeext conftest.$ac_ext
5344 LIBS=$ac_check_lib_save_LIBS
5346 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
5347 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
5348 if test $ac_cv_lib_intl_ngettext = yes; then
5349 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
5350 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
5351 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 ac_check_lib_save_LIBS=$LIBS
5356 cat >conftest.$ac_ext <<_ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5363 /* Override any gcc2 internal prototype to avoid an error. */
5367 /* We use char because int might match the return type of a gcc2
5368 builtin and then its argument prototype would still apply. */
5378 rm -f conftest.$ac_objext conftest$ac_exeext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5380 (eval $ac_link) 2>conftest.er1
5382 grep -v '^ *+' conftest.er1 >conftest.err
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; } &&
5393 { ac_try='test -s conftest$ac_exeext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 ac_cv_lib_intl_dgettext=yes
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 ac_cv_lib_intl_dgettext=no
5406 rm -f conftest.err conftest.$ac_objext \
5407 conftest$ac_exeext conftest.$ac_ext
5408 LIBS=$ac_check_lib_save_LIBS
5410 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
5411 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
5412 if test $ac_cv_lib_intl_dgettext = yes; then
5413 gt_cv_func_dgettext_libintl=yes
5421 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
5422 echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
5423 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
5424 echo "$as_me:$LINENO: result: " >&5
5425 echo "${ECHO_T}" >&6
5426 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
5427 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
5428 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 ac_check_lib_save_LIBS=$LIBS
5432 LIBS="-lintl -liconv $LIBS"
5433 cat >conftest.$ac_ext <<_ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5440 /* Override any gcc2 internal prototype to avoid an error. */
5444 /* We use char because int might match the return type of a gcc2
5445 builtin and then its argument prototype would still apply. */
5455 rm -f conftest.$ac_objext conftest$ac_exeext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5457 (eval $ac_link) 2>conftest.er1
5459 grep -v '^ *+' conftest.er1 >conftest.err
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
5464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; } &&
5470 { ac_try='test -s conftest$ac_exeext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 ac_cv_lib_intl_ngettext=yes
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 ac_cv_lib_intl_ngettext=no
5483 rm -f conftest.err conftest.$ac_objext \
5484 conftest$ac_exeext conftest.$ac_ext
5485 LIBS=$ac_check_lib_save_LIBS
5487 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
5488 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
5489 if test $ac_cv_lib_intl_ngettext = yes; then
5490 echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
5491 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
5492 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 ac_check_lib_save_LIBS=$LIBS
5496 LIBS="-lintl -liconv $LIBS"
5497 cat >conftest.$ac_ext <<_ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5504 /* Override any gcc2 internal prototype to avoid an error. */
5508 /* We use char because int might match the return type of a gcc2
5509 builtin and then its argument prototype would still apply. */
5519 rm -f conftest.$ac_objext conftest$ac_exeext
5520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521 (eval $ac_link) 2>conftest.er1
5523 grep -v '^ *+' conftest.er1 >conftest.err
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } &&
5528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; } &&
5534 { ac_try='test -s conftest$ac_exeext'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 ac_cv_lib_intl_dcgettext=yes
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 ac_cv_lib_intl_dcgettext=no
5547 rm -f conftest.err conftest.$ac_objext \
5548 conftest$ac_exeext conftest.$ac_ext
5549 LIBS=$ac_check_lib_save_LIBS
5551 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
5552 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
5553 if test $ac_cv_lib_intl_dcgettext = yes; then
5554 gt_cv_func_dgettext_libintl=yes
5555 libintl_extra_libs=-liconv
5567 # If we found libintl, then check in it for bind_textdomain_codeset();
5568 # we'll prefer libc if neither have bind_textdomain_codeset(),
5569 # and both have dgettext and ngettext
5571 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
5572 glib_save_LIBS="$LIBS"
5573 LIBS="$LIBS -lintl $libintl_extra_libs"
5574 unset ac_cv_func_bind_textdomain_codeset
5576 for ac_func in bind_textdomain_codeset
5578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5579 echo "$as_me:$LINENO: checking for $ac_func" >&5
5580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5581 if eval "test \"\${$as_ac_var+set}\" = set"; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 cat >conftest.$ac_ext <<_ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5592 #define $ac_func innocuous_$ac_func
5594 /* System header to define __stub macros and hopefully few prototypes,
5595 which can conflict with char $ac_func (); below.
5596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5597 <limits.h> exists even on freestanding compilers. */
5600 # include <limits.h>
5602 # include <assert.h>
5607 /* Override any gcc2 internal prototype to avoid an error. */
5612 /* We use char because int might match the return type of a gcc2
5613 builtin and then its argument prototype would still apply. */
5615 /* The GNU C library defines this for functions which it implements
5616 to always fail with ENOSYS. Some functions are actually named
5617 something starting with __ and the normal name is an alias. */
5618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5621 char (*f) () = $ac_func;
5630 return f != $ac_func;
5635 rm -f conftest.$ac_objext conftest$ac_exeext
5636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5637 (eval $ac_link) 2>conftest.er1
5639 grep -v '^ *+' conftest.er1 >conftest.err
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } &&
5644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; } &&
5650 { ac_try='test -s conftest$ac_exeext'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
5656 eval "$as_ac_var=yes"
5658 echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5661 eval "$as_ac_var=no"
5663 rm -f conftest.err conftest.$ac_objext \
5664 conftest$ac_exeext conftest.$ac_ext
5666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5668 if test `eval echo '${'$as_ac_var'}'` = yes; then
5669 cat >>confdefs.h <<_ACEOF
5670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5676 LIBS="$glib_save_LIBS"
5678 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
5679 gt_cv_func_dgettext_libc=no
5681 if test "$gt_cv_func_dgettext_libc" = "yes" \
5682 && test "$gt_cv_func_ngettext_libc" = "yes"; then
5683 gt_cv_func_dgettext_libintl=no
5689 if test "$gt_cv_func_dgettext_libc" = "yes" \
5690 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
5691 gt_cv_have_gettext=yes
5694 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
5695 INTLLIBS="-lintl $libintl_extra_libs"
5698 if test "$gt_cv_have_gettext" = "yes"; then
5700 cat >>confdefs.h <<\_ACEOF
5701 #define HAVE_GETTEXT 1
5704 # Extract the first word of "msgfmt", so it can be a program name with args.
5705 set dummy msgfmt; ac_word=$2
5706 echo "$as_me:$LINENO: checking for $ac_word" >&5
5707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5708 if test "${ac_cv_path_MSGFMT+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5717 for ac_dir in $PATH; do
5718 test -z "$ac_dir" && ac_dir=.
5719 if test -f $ac_dir/$ac_word; then
5720 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5721 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5727 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5731 MSGFMT="$ac_cv_path_MSGFMT"
5732 if test "$MSGFMT" != "no"; then
5733 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5734 echo "${ECHO_T}$MSGFMT" >&6
5736 echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6
5739 if test "$MSGFMT" != "no"; then
5740 glib_save_LIBS="$LIBS"
5741 LIBS="$LIBS $INTLLIBS"
5743 for ac_func in dcgettext
5745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5746 echo "$as_me:$LINENO: checking for $ac_func" >&5
5747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5748 if eval "test \"\${$as_ac_var+set}\" = set"; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 cat >conftest.$ac_ext <<_ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5759 #define $ac_func innocuous_$ac_func
5761 /* System header to define __stub macros and hopefully few prototypes,
5762 which can conflict with char $ac_func (); below.
5763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5764 <limits.h> exists even on freestanding compilers. */
5767 # include <limits.h>
5769 # include <assert.h>
5774 /* Override any gcc2 internal prototype to avoid an error. */
5779 /* We use char because int might match the return type of a gcc2
5780 builtin and then its argument prototype would still apply. */
5782 /* The GNU C library defines this for functions which it implements
5783 to always fail with ENOSYS. Some functions are actually named
5784 something starting with __ and the normal name is an alias. */
5785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5788 char (*f) () = $ac_func;
5797 return f != $ac_func;
5802 rm -f conftest.$ac_objext conftest$ac_exeext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5804 (eval $ac_link) 2>conftest.er1
5806 grep -v '^ *+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; } &&
5817 { ac_try='test -s conftest$ac_exeext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 eval "$as_ac_var=yes"
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5828 eval "$as_ac_var=no"
5830 rm -f conftest.err conftest.$ac_objext \
5831 conftest$ac_exeext conftest.$ac_ext
5833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5835 if test `eval echo '${'$as_ac_var'}'` = yes; then
5836 cat >>confdefs.h <<_ACEOF
5837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5843 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5844 set dummy gmsgfmt; ac_word=$2
5845 echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5847 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5873 GMSGFMT=$ac_cv_path_GMSGFMT
5875 if test -n "$GMSGFMT"; then
5876 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5877 echo "${ECHO_T}$GMSGFMT" >&6
5879 echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6
5883 # Extract the first word of "xgettext", so it can be a program name with args.
5884 set dummy xgettext; ac_word=$2
5885 echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5887 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5896 for ac_dir in $PATH; do
5897 test -z "$ac_dir" && ac_dir=.
5898 if test -f $ac_dir/$ac_word; then
5899 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5900 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5906 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5910 XGETTEXT="$ac_cv_path_XGETTEXT"
5911 if test "$XGETTEXT" != ":"; then
5912 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5913 echo "${ECHO_T}$XGETTEXT" >&6
5915 echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6
5919 cat >conftest.$ac_ext <<_ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5929 extern int _nl_msg_cat_cntr;
5930 return _nl_msg_cat_cntr
5935 rm -f conftest.$ac_objext conftest$ac_exeext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937 (eval $ac_link) 2>conftest.er1
5939 grep -v '^ *+' conftest.er1 >conftest.err
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } &&
5944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest$ac_exeext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5964 echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
5965 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
5966 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 cat >conftest.$ac_ext <<_ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5975 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
5976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5977 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
5979 /* System header to define __stub macros and hopefully few prototypes,
5980 which can conflict with char bind_textdomain_codeset (); below.
5981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5982 <limits.h> exists even on freestanding compilers. */
5985 # include <limits.h>
5987 # include <assert.h>
5990 #undef bind_textdomain_codeset
5992 /* Override any gcc2 internal prototype to avoid an error. */
5997 /* We use char because int might match the return type of a gcc2
5998 builtin and then its argument prototype would still apply. */
5999 char bind_textdomain_codeset ();
6000 /* The GNU C library defines this for functions which it implements
6001 to always fail with ENOSYS. Some functions are actually named
6002 something starting with __ and the normal name is an alias. */
6003 #if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
6006 char (*f) () = bind_textdomain_codeset;
6015 return f != bind_textdomain_codeset;
6020 rm -f conftest.$ac_objext conftest$ac_exeext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6022 (eval $ac_link) 2>conftest.er1
6024 grep -v '^ *+' conftest.er1 >conftest.err
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; } &&
6035 { ac_try='test -s conftest$ac_exeext'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
6041 ac_cv_func_bind_textdomain_codeset=yes
6043 echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6046 ac_cv_func_bind_textdomain_codeset=no
6048 rm -f conftest.err conftest.$ac_objext \
6049 conftest$ac_exeext conftest.$ac_ext
6051 echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
6052 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
6053 if test $ac_cv_func_bind_textdomain_codeset = yes; then
6068 rm -f conftest.err conftest.$ac_objext \
6069 conftest$ac_exeext conftest.$ac_ext
6070 LIBS="$glib_save_LIBS"
6073 gt_cv_have_gettext=no
6081 if test "$gt_cv_have_gettext" = "yes" ; then
6083 cat >>confdefs.h <<\_ACEOF
6084 #define ENABLE_NLS 1
6089 if test "$XGETTEXT" != ":"; then
6090 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
6093 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6094 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6099 # We need to process the po/ directory.
6102 ac_config_commands="$ac_config_commands default-1"
6105 for lang in $ALL_LINGUAS; do
6106 GMOFILES="$GMOFILES $lang.gmo"
6107 POFILES="$POFILES $lang.po"
6122 if test "$gt_cv_have_gettext" = "yes"; then
6123 if test "x$ALL_LINGUAS" = "x"; then
6126 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6127 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
6129 for presentlang in $ALL_LINGUAS; do
6131 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
6132 desiredlanguages="$LINGUAS"
6134 desiredlanguages="$ALL_LINGUAS"
6136 for desiredlang in $desiredlanguages; do
6137 # Use the presentlang catalog if desiredlang is
6138 # a. equal to presentlang, or
6139 # b. a variant of presentlang (because in this case,
6140 # presentlang can be used as a fallback for messages
6141 # which are not translated in the desiredlang catalog).
6142 case "$desiredlang" in
6143 "$presentlang"*) useit=yes;;
6146 if test $useit = yes; then
6147 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
6150 LINGUAS=$NEW_LINGUAS
6151 echo "$as_me:$LINENO: result: $LINGUAS" >&5
6152 echo "${ECHO_T}$LINGUAS" >&6
6155 if test -n "$LINGUAS"; then
6156 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
6161 if test -n "$ac_aux_dir"; then
6162 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
6164 if test -z "$MKINSTALLDIRS"; then
6165 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6169 test -d po || mkdir po
6170 if test "x$srcdir" != "x."; then
6171 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
6172 posrcprefix="$srcdir/"
6174 posrcprefix="../$srcdir/"
6180 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
6181 < $srcdir/po/POTFILES.in > po/POTFILES
6187 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
6188 cat >confcache <<\_ACEOF
6189 # This file is a shell script that caches the results of configure
6190 # tests run on this system so they can be shared between configure
6191 # scripts and configure runs, see configure's option --config-cache.
6192 # It is not useful on other systems. If it contains results you don't
6193 # want to keep, you may remove or edit it.
6195 # config.status only pays attention to the cache file if you give it
6196 # the --recheck option to rerun configure.
6198 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6199 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6204 # The following way of writing the cache mishandles newlines in values,
6205 # but we know of no workaround that is simple, portable, and efficient.
6206 # So, don't put newlines in cache variables' values.
6207 # Ultrix sh set writes to stderr and can't be redirected directly,
6208 # and sets the high bit in the cache file unless we assign to the vars.
6211 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6213 # `set' does not quote correctly, so add quotes (double-quote
6214 # substitution turns \\\\ into \\, and sed turns \\ into \).
6217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6220 # `set' quotes correctly as required by POSIX, so do not add quotes.
6222 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6229 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6231 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6233 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6234 if test -w $cache_file; then
6235 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6236 cat confcache >$cache_file
6238 echo "not updating unwritable cache $cache_file"
6243 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6244 # Let make expand exec_prefix.
6245 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6247 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6248 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6249 # trailing colons and then remove the whole line if VPATH becomes empty
6250 # (actually we leave an empty line to preserve line numbers).
6251 if test "x$srcdir" = x.; then
6252 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6253 s/:*\$(srcdir):*/:/;
6254 s/:*\${srcdir}:*/:/;
6256 s/^\([^=]*=[ ]*\):*/\1/;
6262 DEFS=-DHAVE_CONFIG_H
6266 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6267 # 1. Remove the extension, and $U if already installed.
6268 ac_i=`echo "$ac_i" |
6269 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6271 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6272 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6276 LTLIBOBJS=$ac_ltlibobjs
6279 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6280 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6281 Usually this means the macro was only invoked conditionally." >&5
6282 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6283 Usually this means the macro was only invoked conditionally." >&2;}
6284 { (exit 1); exit 1; }; }
6286 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6287 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6288 Usually this means the macro was only invoked conditionally." >&5
6289 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6290 Usually this means the macro was only invoked conditionally." >&2;}
6291 { (exit 1); exit 1; }; }
6293 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6294 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6295 Usually this means the macro was only invoked conditionally." >&5
6296 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6297 Usually this means the macro was only invoked conditionally." >&2;}
6298 { (exit 1); exit 1; }; }
6300 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6301 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6302 Usually this means the macro was only invoked conditionally." >&5
6303 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6304 Usually this means the macro was only invoked conditionally." >&2;}
6305 { (exit 1); exit 1; }; }
6308 : ${CONFIG_STATUS=./config.status}
6309 ac_clean_files_save=$ac_clean_files
6310 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6311 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6312 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6313 cat >$CONFIG_STATUS <<_ACEOF
6315 # Generated by $as_me.
6316 # Run this file to recreate the current configuration.
6317 # Compiler output produced by configure, useful for debugging
6318 # configure, is in config.log if it exists.
6323 SHELL=\${CONFIG_SHELL-$SHELL}
6326 cat >>$CONFIG_STATUS <<\_ACEOF
6327 ## --------------------- ##
6328 ## M4sh Initialization. ##
6329 ## --------------------- ##
6331 # Be Bourne compatible
6332 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6335 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6336 # is contrary to our usage. Disable this feature.
6337 alias -g '${1+"$@"}'='"$@"'
6338 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6341 DUALCASE=1; export DUALCASE # for MKS sh
6343 # Support unset when possible.
6344 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6351 # Work around bugs in pre-3.0 UWIN ksh.
6352 $as_unset ENV MAIL MAILPATH
6359 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6360 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6361 LC_TELEPHONE LC_TIME
6363 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6364 eval $as_var=C; export $as_var
6370 # Required to use basename.
6371 if expr a : '\(a\)' >/dev/null 2>&1; then
6377 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6378 as_basename=basename
6384 # Name of the executable.
6385 as_me=`$as_basename "$0" ||
6386 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6387 X"$0" : 'X\(//\)$' \| \
6388 X"$0" : 'X\(/\)$' \| \
6389 . : '\(.\)' 2>/dev/null ||
6391 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6392 /^X\/\(\/\/\)$/{ s//\1/; q; }
6393 /^X\/\(\/\).*/{ s//\1/; q; }
6397 # PATH needs CR, and LINENO needs CR and PATH.
6398 # Avoid depending upon Character Ranges.
6399 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6400 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6401 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6402 as_cr_digits='0123456789'
6403 as_cr_alnum=$as_cr_Letters$as_cr_digits
6405 # The user is always right.
6406 if test "${PATH_SEPARATOR+set}" != set; then
6407 echo "#! /bin/sh" >conf$$.sh
6408 echo "exit 0" >>conf$$.sh
6410 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6421 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6422 test "x$as_lineno_1" != "x$as_lineno_2" &&
6423 test "x$as_lineno_3" = "x$as_lineno_2" || {
6424 # Find who we are. Look in the path if we contain no path at all
6427 *[\\/]* ) as_myself=$0 ;;
6428 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 test -z "$as_dir" && as_dir=.
6433 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6438 # We did not find ourselves, most probably we were run as `sh COMMAND'
6439 # in which case we are not to be found in the path.
6440 if test "x$as_myself" = x; then
6443 if test ! -f "$as_myself"; then
6444 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6445 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6446 { (exit 1); exit 1; }; }
6448 case $CONFIG_SHELL in
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6454 test -z "$as_dir" && as_dir=.
6455 for as_base in sh bash ksh sh5; do
6458 if ("$as_dir/$as_base" -c '
6461 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6462 test "x$as_lineno_1" != "x$as_lineno_2" &&
6463 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6464 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6465 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6466 CONFIG_SHELL=$as_dir/$as_base
6468 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6476 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6477 # uniformly replaced by the line number. The first 'sed' inserts a
6478 # line-number line before each line; the second 'sed' does the real
6479 # work. The second script uses 'N' to pair each line-number line
6480 # with the numbered line, and appends trailing '-' during
6481 # substitution so that $LINENO is not a special case at line end.
6482 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6483 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6484 sed '=' <$as_myself |
6489 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6492 s,^['$as_cr_digits']*\n,,
6494 chmod +x $as_me.lineno ||
6495 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6496 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6497 { (exit 1); exit 1; }; }
6499 # Don't try to exec as it changes $[0], causing all sort of problems
6500 # (the dirname of $[0] is not the place where we might find the
6501 # original and so on. Autoconf is especially sensible to this).
6503 # Exit status is that of the last command.
6508 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6509 *c*,-n*) ECHO_N= ECHO_C='
6511 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6512 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6515 if expr a : '\(a\)' >/dev/null 2>&1; then
6521 rm -f conf$$ conf$$.exe conf$$.file
6523 if ln -s conf$$.file conf$$ 2>/dev/null; then
6524 # We could just check for DJGPP; but this test a) works b) is more generic
6525 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6526 if test -f conf$$.exe; then
6527 # Don't use ln at all; we don't have any links
6532 elif ln conf$$.file conf$$ 2>/dev/null; then
6537 rm -f conf$$ conf$$.exe conf$$.file
6539 if mkdir -p . 2>/dev/null; then
6542 test -d ./-p && rmdir ./-p
6546 as_executable_p="test -f"
6548 # Sed expression to map a string onto a valid CPP name.
6549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6551 # Sed expression to map a string onto a valid variable name.
6552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6556 # We need space, tab and new line, in precisely that order.
6566 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6567 # report actual input values of CONFIG_FILES etc. instead of their
6568 # values after options handling. Logging --version etc. is OK.
6572 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6573 ## Running $as_me. ##
6578 This file was extended by $as_me, which was
6579 generated by GNU Autoconf 2.59. Invocation command line was
6581 CONFIG_FILES = $CONFIG_FILES
6582 CONFIG_HEADERS = $CONFIG_HEADERS
6583 CONFIG_LINKS = $CONFIG_LINKS
6584 CONFIG_COMMANDS = $CONFIG_COMMANDS
6588 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6592 # Files that config.status was made for.
6593 if test -n "$ac_config_files"; then
6594 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6597 if test -n "$ac_config_headers"; then
6598 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6601 if test -n "$ac_config_links"; then
6602 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6605 if test -n "$ac_config_commands"; then
6606 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6609 cat >>$CONFIG_STATUS <<\_ACEOF
6612 \`$as_me' instantiates files from templates according to the
6613 current configuration.
6615 Usage: $0 [OPTIONS] [FILE]...
6617 -h, --help print this help, then exit
6618 -V, --version print version number, then exit
6619 -q, --quiet do not print progress messages
6620 -d, --debug don't remove temporary files
6621 --recheck update $as_me by reconfiguring in the same conditions
6622 --file=FILE[:TEMPLATE]
6623 instantiate the configuration file FILE
6624 --header=FILE[:TEMPLATE]
6625 instantiate the configuration header FILE
6627 Configuration files:
6630 Configuration headers:
6633 Configuration commands:
6636 Report bugs to <bug-autoconf@gnu.org>."
6639 cat >>$CONFIG_STATUS <<_ACEOF
6642 configured by $0, generated by GNU Autoconf 2.59,
6643 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6645 Copyright (C) 2003 Free Software Foundation, Inc.
6646 This config.status script is free software; the Free Software Foundation
6647 gives unlimited permission to copy, distribute and modify it."
6652 cat >>$CONFIG_STATUS <<\_ACEOF
6653 # If no file are specified by the user, then we need to provide default
6654 # value. By we need to know if files were specified by the user.
6660 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6661 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6669 *) # This is not an option, so the user has probably given explicit
6672 ac_need_defaults=false;;
6676 # Handling of the options.
6678 cat >>$CONFIG_STATUS <<\_ACEOF
6679 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6681 --version | --vers* | -V )
6682 echo "$ac_cs_version"; exit 0 ;;
6684 # Conflict between --help and --header
6685 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6686 Try \`$0 --help' for more information." >&5
6687 echo "$as_me: error: ambiguous option: $1
6688 Try \`$0 --help' for more information." >&2;}
6689 { (exit 1); exit 1; }; };;
6690 --help | --hel | -h )
6691 echo "$ac_cs_usage"; exit 0 ;;
6692 --debug | --d* | -d )
6694 --file | --fil | --fi | --f )
6696 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6697 ac_need_defaults=false;;
6698 --header | --heade | --head | --hea )
6700 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6701 ac_need_defaults=false;;
6702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6703 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6707 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1