2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="configure.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
666 INSTALL_STRIP_PROGRAM
675 MAINTAINER_MODE_FALSE
771 ac_precious_vars='build_alias
795 # Initialize some variables set by options.
797 ac_init_version=false
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
807 program_transform_name=s,x,x,
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE}'
832 infodir='${datarootdir}/info'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
901 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
902 eval enable_$ac_feature=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 -enable-* | --enable-*)
915 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
921 eval enable_$ac_feature=\$ac_optarg ;;
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
936 -help | --help | --hel | --he | -h)
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 htmldir=$ac_optarg ;;
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
966 -libdir | --libdir | --libdi | --libd)
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
978 -localedir | --localedir | --localedi | --localed | --locale)
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 # Obsolete; use --without-fp.
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1057 -psdir | --psdir | --psdi | --psd | --ps)
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 sbindir=$ac_optarg ;;
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 sharedstatedir=$ac_optarg ;;
1083 -site | --site | --sit)
1085 -site=* | --site=* | --sit=*)
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1112 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118 eval with_$ac_package=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1127 eval with_$ac_package=no ;;
1130 # Obsolete; use --with-x.
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
1178 # Be sure to have absolute directory names.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1184 eval ac_val=\$$ac_var
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1198 target=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214 test "$silent" = yes && exec 6>/dev/null
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 { echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$0" ||
1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$0" : 'X\(//\)[^/]' \| \
1234 X"$0" : 'X\(//\)$' \| \
1235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1259 ac_srcdir_defaulted=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264 { (exit 1); exit 1; }; }
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269 { (exit 1); exit 1; }; }
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 # Report the --help message.
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1295 \`configure' configures this package to adapt to many kinds of systems.
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1302 Defaults for the options are specified in brackets.
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1326 For better control, use the options below.
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1353 --program-prefix=PREFIX prepend PREFIX to installed program names
1354 --program-suffix=SUFFIX append SUFFIX to installed program names
1355 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1358 --build=BUILD configure for building on BUILD [guessed]
1359 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 if test -n "$ac_init_help"; then
1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1370 --enable-maintainer-mode enable make rules and dependencies not useful
1371 (and sometimes confusing) to the casual installer
1372 --disable-dependency-tracking speeds up one-time build
1373 --enable-dependency-tracking do not reject slow dependency extractors
1374 --enable-trace Enable generation of IO traces (warning: hurts
1376 --enable-watch Enable watchpoints in the debugger (warning: hurts
1380 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1381 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1382 --with-osmesa Build with the osmesa GL library (software
1385 Some influential environment variables:
1386 CC C compiler command
1387 CFLAGS C compiler flags
1388 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1389 nonstandard directory <lib dir>
1390 LIBS libraries to pass to the linker, e.g. -l<library>
1391 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1392 you have headers in a nonstandard directory <include dir>
1393 CCAS assembler compiler command (defaults to CC)
1394 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1396 PKG_CONFIG path to pkg-config utility
1398 C compiler flags for LIBPNG, overriding pkg-config
1399 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1400 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1401 GTK_LIBS linker flags for GTK, overriding pkg-config
1403 C compiler flags for PULSE, overriding pkg-config
1404 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1406 C compiler flags for ESOUND, overriding pkg-config
1407 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1408 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1409 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1411 Use these variables to override the choices made by `configure' or to help
1412 it to find libraries and programs with nonstandard names/locations.
1418 if test "$ac_init_help" = "recursive"; then
1419 # If there are subdirs, report their specific --help.
1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1421 test -d "$ac_dir" || continue
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1428 # A ".." for each directory in $ac_dir_suffix.
1429 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1430 case $ac_top_builddir_sub in
1431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1441 .) # We are building in place.
1443 ac_top_srcdir=$ac_top_builddir_sub
1444 ac_abs_top_srcdir=$ac_pwd ;;
1445 [\\/]* | ?:[\\/]* ) # Absolute name.
1446 ac_srcdir=$srcdir$ac_dir_suffix;
1447 ac_top_srcdir=$srcdir
1448 ac_abs_top_srcdir=$srcdir ;;
1450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451 ac_top_srcdir=$ac_top_build_prefix$srcdir
1452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456 cd "$ac_dir" || { ac_status=$?; continue; }
1457 # Check for guested configure.
1458 if test -f "$ac_srcdir/configure.gnu"; then
1460 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461 elif test -f "$ac_srcdir/configure"; then
1463 $SHELL "$ac_srcdir/configure" --help=recursive
1465 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 cd "$ac_pwd" || { ac_status=$?; break; }
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1475 generated by GNU Autoconf 2.61
1477 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1478 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1484 cat >config.log <<_ACEOF
1485 This file contains any messages produced by compilers while
1486 running configure, to aid debugging if configure makes a mistake.
1488 It was created by $as_me, which was
1489 generated by GNU Autoconf 2.61. Invocation command line was
1501 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1502 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1503 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1504 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1505 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1507 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1508 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1510 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1511 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1512 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1513 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1514 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1515 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1516 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 test -z "$as_dir" && as_dir=.
1525 echo "PATH: $as_dir"
1541 # Keep a trace of the command line.
1542 # Strip out --no-create and --no-recursion so they do not pile up.
1543 # Strip out --silent because we don't want to record it for future runs.
1544 # Also quote any args containing shell meta-characters.
1545 # Make two passes to allow for proper duplicate-argument suppression.
1549 ac_must_keep_next=false
1555 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1557 | -silent | --silent | --silen | --sile | --sil)
1560 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1565 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1566 if test $ac_must_keep_next = true; then
1567 ac_must_keep_next=false # Got value, back to normal.
1570 *=* | --config-cache | -C | -disable-* | --disable-* \
1571 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1572 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1573 | -with-* | --with-* | -without-* | --without-* | --x)
1574 case "$ac_configure_args0 " in
1575 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578 -* ) ac_must_keep_next=true ;;
1581 ac_configure_args="$ac_configure_args '$ac_arg'"
1586 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1587 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1589 # When interrupted or exit'd, cleanup temporary files, and complete
1590 # config.log. We remove comments because anyway the quotes in there
1591 # would cause problems or look ugly.
1592 # WARNING: Use '\'' to represent an apostrophe within the trap.
1593 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1594 trap 'exit_status=$?
1595 # Save into config.log some information that might help in debugging.
1600 ## ---------------- ##
1601 ## Cache variables. ##
1602 ## ---------------- ##
1605 # The following way of writing the cache mishandles newlines in values,
1607 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1608 eval ac_val=\$$ac_var
1612 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1613 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1616 _ | IFS | as_nl) ;; #(
1617 *) $as_unset $ac_var ;;
1622 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1623 *${as_nl}ac_space=\ *)
1625 "s/'\''/'\''\\\\'\'''\''/g;
1626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1637 ## ----------------- ##
1638 ## Output variables. ##
1639 ## ----------------- ##
1642 for ac_var in $ac_subst_vars
1644 eval ac_val=\$$ac_var
1646 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648 echo "$ac_var='\''$ac_val'\''"
1652 if test -n "$ac_subst_files"; then
1654 ## ------------------- ##
1655 ## File substitutions. ##
1656 ## ------------------- ##
1659 for ac_var in $ac_subst_files
1661 eval ac_val=\$$ac_var
1663 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1665 echo "$ac_var='\''$ac_val'\''"
1670 if test -s confdefs.h; then
1680 test "$ac_signal" != 0 &&
1681 echo "$as_me: caught signal $ac_signal"
1682 echo "$as_me: exit $exit_status"
1684 rm -f core *.core core.conftest.* &&
1685 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1688 for ac_signal in 1 2 13 15; do
1689 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1693 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1694 rm -f -r conftest* confdefs.h
1696 # Predefined preprocessor variables.
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_NAME "$PACKAGE_NAME"
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_STRING "$PACKAGE_STRING"
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1723 # Let the site file select an alternate cache file if it wants to.
1724 # Prefer explicitly selected file to automatically selected ones.
1725 if test -n "$CONFIG_SITE"; then
1726 set x "$CONFIG_SITE"
1727 elif test "x$prefix" != xNONE; then
1728 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1730 set x "$ac_default_prefix/share/config.site" \
1731 "$ac_default_prefix/etc/config.site"
1736 if test -r "$ac_site_file"; then
1737 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1738 echo "$as_me: loading site script $ac_site_file" >&6;}
1739 sed 's/^/| /' "$ac_site_file" >&5
1744 if test -r "$cache_file"; then
1745 # Some versions of bash will fail to source /dev/null (special
1746 # files actually), so we avoid doing that.
1747 if test -f "$cache_file"; then
1748 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1749 echo "$as_me: loading cache $cache_file" >&6;}
1751 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1752 *) . "./$cache_file";;
1756 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1757 echo "$as_me: creating cache $cache_file" >&6;}
1761 # Check that the precious variables saved in the cache have kept the same
1763 ac_cache_corrupted=false
1764 for ac_var in $ac_precious_vars; do
1765 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1766 eval ac_new_set=\$ac_env_${ac_var}_set
1767 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1768 eval ac_new_val=\$ac_env_${ac_var}_value
1769 case $ac_old_set,$ac_new_set in
1771 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1772 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1773 ac_cache_corrupted=: ;;
1775 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1776 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1777 ac_cache_corrupted=: ;;
1780 if test "x$ac_old_val" != "x$ac_new_val"; then
1781 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1782 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1783 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1784 echo "$as_me: former value: $ac_old_val" >&2;}
1785 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1786 echo "$as_me: current value: $ac_new_val" >&2;}
1787 ac_cache_corrupted=:
1790 # Pass precious variables to config.status.
1791 if test "$ac_new_set" = set; then
1793 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1794 *) ac_arg=$ac_var=$ac_new_val ;;
1796 case " $ac_configure_args " in
1797 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1798 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1802 if $ac_cache_corrupted; then
1803 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1804 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1805 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1806 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1807 { (exit 1); exit 1; }; }
1827 ac_cpp='$CPP $CPPFLAGS'
1828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833 am__api_version="1.9"
1835 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1836 if test -f "$ac_dir/install-sh"; then
1838 ac_install_sh="$ac_aux_dir/install-sh -c"
1840 elif test -f "$ac_dir/install.sh"; then
1842 ac_install_sh="$ac_aux_dir/install.sh -c"
1844 elif test -f "$ac_dir/shtool"; then
1846 ac_install_sh="$ac_aux_dir/shtool install -c"
1850 if test -z "$ac_aux_dir"; then
1851 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1852 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1853 { (exit 1); exit 1; }; }
1856 # These three variables are undocumented and unsupported,
1857 # and are intended to be withdrawn in a future Autoconf release.
1858 # They can cause serious problems if a builder's source tree is in a directory
1859 # whose full name contains unusual characters.
1860 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1861 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1862 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1865 # Find a good install program. We prefer a C program (faster),
1866 # so one script is as good as another. But avoid the broken or
1867 # incompatible versions:
1868 # SysV /etc/install, /usr/sbin/install
1869 # SunOS /usr/etc/install
1870 # IRIX /sbin/install
1872 # AmigaOS /C/install, which installs bootblocks on floppy discs
1873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1876 # OS/2's system install, which has a completely different semantic
1877 # ./install, which can be erroneously created by make from ./install.sh.
1878 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1879 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1880 if test -z "$INSTALL"; then
1881 if test "${ac_cv_path_install+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 test -z "$as_dir" && as_dir=.
1889 # Account for people who put trailing slashes in PATH elements.
1891 ./ | .// | /cC/* | \
1892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1893 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1896 # OSF1 and SCO ODT 3.0 have their own names for install.
1897 # Don't use installbsd from OSF since it installs stuff as root
1899 for ac_prog in ginstall scoinst install; do
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1902 if test $ac_prog = install &&
1903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1904 # AIX install. It has an incompatible calling convention.
1906 elif test $ac_prog = install &&
1907 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1908 # program-specific install script used by HP pwplus--don't use.
1911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1924 if test "${ac_cv_path_install+set}" = set; then
1925 INSTALL=$ac_cv_path_install
1927 # As a last resort, use the slow shell script. Don't cache a
1928 # value for INSTALL within a source directory, because that will
1929 # break other packages using the cache if that directory is
1930 # removed, or if the value is a relative name.
1931 INSTALL=$ac_install_sh
1934 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1935 echo "${ECHO_T}$INSTALL" >&6; }
1937 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1938 # It thinks the first close brace ends the variable substitution.
1939 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1941 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1943 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1945 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1946 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1949 echo timestamp > conftest.file
1950 # Do `set' in a subshell so we don't clobber the current shell's
1951 # arguments. Must try -L first in case configure is actually a
1952 # symlink; some systems play weird games with the mod time of symlinks
1953 # (eg FreeBSD returns the mod time of the symlink's containing
1956 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1957 if test "$*" = "X"; then
1959 set X `ls -t $srcdir/configure conftest.file`
1962 if test "$*" != "X $srcdir/configure conftest.file" \
1963 && test "$*" != "X conftest.file $srcdir/configure"; then
1965 # If neither matched, then we have a broken ls. This can happen
1966 # if, for instance, CONFIG_SHELL is bash and it inherits a
1967 # broken ls alias from the environment. This has actually
1968 # happened. Such a system could not be considered "sane".
1969 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1970 alias in your environment" >&5
1971 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1972 alias in your environment" >&2;}
1973 { (exit 1); exit 1; }; }
1976 test "$2" = conftest.file
1982 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1983 Check your system clock" >&5
1984 echo "$as_me: error: newly created file is older than distributed files!
1985 Check your system clock" >&2;}
1986 { (exit 1); exit 1; }; }
1988 { echo "$as_me:$LINENO: result: yes" >&5
1989 echo "${ECHO_T}yes" >&6; }
1990 test "$program_prefix" != NONE &&
1991 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1992 # Use a double $ so make ignores it.
1993 test "$program_suffix" != NONE &&
1994 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1995 # Double any \ or $. echo might interpret backslashes.
1996 # By default was `s,x,x', remove it if useless.
1997 cat <<\_ACEOF >conftest.sed
1998 s/[\\$]/&&/g;s/;s,x,x,$//
2000 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2003 # expand $ac_aux_dir to an absolute path
2004 am_aux_dir=`cd $ac_aux_dir && pwd`
2006 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2007 # Use eval to expand $SHELL
2008 if eval "$MISSING --run true"; then
2009 am_missing_run="$MISSING --run "
2012 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2013 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2016 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2017 # We used to keeping the `.' as first argument, in order to
2018 # allow $(mkdir_p) to be used without argument. As in
2019 # $(mkdir_p) $(somedir)
2020 # where $(somedir) is conditionally defined. However this is wrong
2022 # 1. if the package is installed by a user who cannot write `.'
2023 # make install will fail,
2024 # 2. the above comment should most certainly read
2025 # $(mkdir_p) $(DESTDIR)$(somedir)
2026 # so it does not work when $(somedir) is undefined and
2027 # $(DESTDIR) is not.
2028 # To support the latter case, we have to write
2029 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2030 # so the `.' trick is pointless.
2031 mkdir_p='mkdir -p --'
2033 # On NextStep and OpenStep, the `mkdir' command does not
2034 # recognize any option. It will interpret all options as
2035 # directories to create, and then abort because `.' already
2037 for d in ./-p ./--version;
2039 test -d $d && rmdir $d
2041 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2042 if test -f "$ac_aux_dir/mkinstalldirs"; then
2043 mkdir_p='$(mkinstalldirs)'
2045 mkdir_p='$(install_sh) -d'
2049 for ac_prog in gawk mawk nawk awk
2051 # Extract the first word of "$ac_prog", so it can be a program name with args.
2052 set dummy $ac_prog; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_AWK+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$AWK"; then
2059 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 ac_cv_prog_AWK="$ac_prog"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 if test -n "$AWK"; then
2080 { echo "$as_me:$LINENO: result: $AWK" >&5
2081 echo "${ECHO_T}$AWK" >&6; }
2083 { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2088 test -n "$AWK" && break
2091 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2092 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2093 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2094 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 cat >conftest.make <<\_ACEOF
2100 @echo '@@@%%%=$(MAKE)=@@@%%%'
2102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2103 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2105 eval ac_cv_prog_make_${ac_make}_set=yes;;
2107 eval ac_cv_prog_make_${ac_make}_set=no;;
2111 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2112 { echo "$as_me:$LINENO: result: yes" >&5
2113 echo "${ECHO_T}yes" >&6; }
2116 { echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6; }
2118 SET_MAKE="MAKE=${MAKE-make}"
2121 rm -rf .tst 2>/dev/null
2122 mkdir .tst 2>/dev/null
2123 if test -d .tst; then
2128 rmdir .tst 2>/dev/null
2130 # test to see if srcdir already configured
2131 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2132 test -f $srcdir/config.status; then
2133 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2134 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2135 { (exit 1); exit 1; }; }
2138 # test whether we have cygpath
2139 if test -z "$CYGPATH_W"; then
2140 if (cygpath --version) >/dev/null 2>/dev/null; then
2141 CYGPATH_W='cygpath -w'
2148 # Define the identity of the package.
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE "$PACKAGE"
2158 cat >>confdefs.h <<_ACEOF
2159 #define VERSION "$VERSION"
2162 # Some tools Automake needs.
2164 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2167 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2170 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2173 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2176 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2178 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2180 # Installed binaries are usually stripped using `strip' when the user
2181 # run `make install-strip'. However `strip' might not be the right
2182 # tool to use in cross-compilation environments, therefore Automake
2183 # will honor the `STRIP' environment variable to overrule this program.
2184 if test "$cross_compiling" != no; then
2185 if test -n "$ac_tool_prefix"; then
2186 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2187 set dummy ${ac_tool_prefix}strip; ac_word=$2
2188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190 if test "${ac_cv_prog_STRIP+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test -n "$STRIP"; then
2194 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213 STRIP=$ac_cv_prog_STRIP
2214 if test -n "$STRIP"; then
2215 { echo "$as_me:$LINENO: result: $STRIP" >&5
2216 echo "${ECHO_T}$STRIP" >&6; }
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2224 if test -z "$ac_cv_prog_STRIP"; then
2226 # Extract the first word of "strip", so it can be a program name with args.
2227 set dummy strip; ac_word=$2
2228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2230 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 if test -n "$ac_ct_STRIP"; then
2234 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2243 ac_cv_prog_ac_ct_STRIP="strip"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2254 if test -n "$ac_ct_STRIP"; then
2255 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2256 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2258 { echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6; }
2262 if test "x$ac_ct_STRIP" = x; then
2265 case $cross_compiling:$ac_tool_warned in
2267 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2268 whose name does not start with the host triplet. If you think this
2269 configuration is useful to you, please write to autoconf@gnu.org." >&5
2270 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2271 whose name does not start with the host triplet. If you think this
2272 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2273 ac_tool_warned=yes ;;
2278 STRIP="$ac_cv_prog_STRIP"
2282 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2284 # We need awk for the "check" target. The system "awk" is bad on
2286 # Always define AMTAR for backward compatibility.
2288 AMTAR=${AMTAR-"${am_missing_run}tar"}
2290 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2296 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2297 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2298 # Check whether --enable-maintainer-mode was given.
2299 if test "${enable_maintainer_mode+set}" = set; then
2300 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2302 USE_MAINTAINER_MODE=no
2305 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2306 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2309 if test $USE_MAINTAINER_MODE = yes; then
2310 MAINTAINER_MODE_TRUE=
2311 MAINTAINER_MODE_FALSE='#'
2313 MAINTAINER_MODE_TRUE='#'
2314 MAINTAINER_MODE_FALSE=
2317 MAINT=$MAINTAINER_MODE_TRUE
2320 ac_config_headers="$ac_config_headers config.h"
2323 DEPDIR="${am__leading_dot}deps"
2325 ac_config_commands="$ac_config_commands depfiles"
2328 am_make=${MAKE-make}
2329 cat > confinc << 'END'
2334 # If we don't find an include directive, just comment out the code.
2335 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2336 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2340 # First try GNU make style include.
2341 echo "include confinc" > confmf
2342 # We grep out `Entering directory' and `Leaving directory'
2343 # messages which can occur if `w' ends up in MAKEFLAGS.
2344 # In particular we don't look at `^make:' because GNU make might
2345 # be invoked under some other name (usually "gmake"), in which
2346 # case it prints its new name instead of `make'.
2347 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2352 # Now try BSD make style include.
2353 if test "$am__include" = "#"; then
2354 echo '.include "confinc"' > confmf
2355 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2356 am__include=.include
2363 { echo "$as_me:$LINENO: result: $_am_result" >&5
2364 echo "${ECHO_T}$_am_result" >&6; }
2365 rm -f confinc confmf
2367 # Check whether --enable-dependency-tracking was given.
2368 if test "${enable_dependency_tracking+set}" = set; then
2369 enableval=$enable_dependency_tracking;
2372 if test "x$enable_dependency_tracking" != xno; then
2373 am_depcomp="$ac_aux_dir/depcomp"
2378 if test "x$enable_dependency_tracking" != xno; then
2389 ac_cpp='$CPP $CPPFLAGS'
2390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393 if test -n "$ac_tool_prefix"; then
2394 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2395 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2398 if test "${ac_cv_prog_CC+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 if test -n "$CC"; then
2402 ac_cv_prog_CC="$CC" # Let the user override the test.
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 if test -n "$CC"; then
2423 { echo "$as_me:$LINENO: result: $CC" >&5
2424 echo "${ECHO_T}$CC" >&6; }
2426 { echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6; }
2432 if test -z "$ac_cv_prog_CC"; then
2434 # Extract the first word of "gcc", so it can be a program name with args.
2435 set dummy gcc; ac_word=$2
2436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 if test -n "$ac_ct_CC"; then
2442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_ac_ct_CC="gcc"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2462 if test -n "$ac_ct_CC"; then
2463 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2464 echo "${ECHO_T}$ac_ct_CC" >&6; }
2466 { echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6; }
2470 if test "x$ac_ct_CC" = x; then
2473 case $cross_compiling:$ac_tool_warned in
2475 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2476 whose name does not start with the host triplet. If you think this
2477 configuration is useful to you, please write to autoconf@gnu.org." >&5
2478 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2479 whose name does not start with the host triplet. If you think this
2480 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2481 ac_tool_warned=yes ;;
2489 if test -z "$CC"; then
2490 if test -n "$ac_tool_prefix"; then
2491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2492 set dummy ${ac_tool_prefix}cc; ac_word=$2
2493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2495 if test "${ac_cv_prog_CC+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC="$CC" # Let the user override the test.
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508 ac_cv_prog_CC="${ac_tool_prefix}cc"
2509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 if test -n "$CC"; then
2520 { echo "$as_me:$LINENO: result: $CC" >&5
2521 echo "${ECHO_T}$CC" >&6; }
2523 { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2530 if test -z "$CC"; then
2531 # Extract the first word of "cc", so it can be a program name with args.
2532 set dummy cc; ac_word=$2
2533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2535 if test "${ac_cv_prog_CC+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2550 ac_prog_rejected=yes
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 if test $ac_prog_rejected = yes; then
2562 # We found a bogon in the path, so make sure we never use it.
2563 set dummy $ac_cv_prog_CC
2565 if test $# != 0; then
2566 # We chose a different compiler from the bogus one.
2567 # However, it has the same basename, so the bogon will be chosen
2568 # first if we set CC to just the basename; use the full file name.
2570 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2576 if test -n "$CC"; then
2577 { echo "$as_me:$LINENO: result: $CC" >&5
2578 echo "${ECHO_T}$CC" >&6; }
2580 { echo "$as_me:$LINENO: result: no" >&5
2581 echo "${ECHO_T}no" >&6; }
2586 if test -z "$CC"; then
2587 if test -n "$ac_tool_prefix"; then
2588 for ac_prog in cl.exe
2590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2594 if test "${ac_cv_prog_CC+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 if test -n "$CC"; then
2598 ac_cv_prog_CC="$CC" # Let the user override the test.
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2627 test -n "$CC" && break
2630 if test -z "$CC"; then
2632 for ac_prog in cl.exe
2634 # Extract the first word of "$ac_prog", so it can be a program name with args.
2635 set dummy $ac_prog; ac_word=$2
2636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 if test -n "$ac_ct_CC"; then
2642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 ac_cv_prog_ac_ct_CC="$ac_prog"
2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2662 if test -n "$ac_ct_CC"; then
2663 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2664 echo "${ECHO_T}$ac_ct_CC" >&6; }
2666 { echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6; }
2671 test -n "$ac_ct_CC" && break
2674 if test "x$ac_ct_CC" = x; then
2677 case $cross_compiling:$ac_tool_warned in
2679 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2680 whose name does not start with the host triplet. If you think this
2681 configuration is useful to you, please write to autoconf@gnu.org." >&5
2682 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet. If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2685 ac_tool_warned=yes ;;
2694 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2695 See \`config.log' for more details." >&5
2696 echo "$as_me: error: no acceptable C compiler found in \$PATH
2697 See \`config.log' for more details." >&2;}
2698 { (exit 1); exit 1; }; }
2700 # Provide some information about the compiler.
2701 echo "$as_me:$LINENO: checking for C compiler version" >&5
2702 ac_compiler=`set X $ac_compile; echo $2`
2703 { (ac_try="$ac_compiler --version >&5"
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_compiler --version >&5") 2>&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }
2713 { (ac_try="$ac_compiler -v >&5"
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_compiler -v >&5") 2>&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }
2723 { (ac_try="$ac_compiler -V >&5"
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compiler -V >&5") 2>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }
2734 cat >conftest.$ac_ext <<_ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2749 ac_clean_files_save=$ac_clean_files
2750 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2751 # Try to create an executable without -o first, disregard a.out.
2752 # It will help us diagnose broken compilers, and finding out an intuition
2754 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2755 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2756 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2758 # List of possible output files, starting from the most likely.
2759 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2760 # only as a last resort. b.out is created by i960 compilers.
2761 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2763 # The IRIX 6 linker writes into existing files which may not be
2764 # executable, retaining their permissions. Remove them first so a
2765 # subsequent execution test works.
2767 for ac_file in $ac_files
2770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2771 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2776 if { (ac_try="$ac_link_default"
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_link_default") 2>&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; then
2786 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2787 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2788 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2789 # so that the user can short-circuit this test for compilers unknown to
2791 for ac_file in $ac_files ''
2793 test -f "$ac_file" || continue
2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2798 # We found the default executable, but exeext='' is most
2802 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2806 # We set ac_cv_exeext here because the later test for it is not
2807 # safe: cross compilers may not add the suffix if given an `-o'
2808 # argument, so we may need to know it at that point already.
2809 # Even if this section looks crufty: it has the advantage of
2816 test "$ac_cv_exeext" = no && ac_cv_exeext=
2822 { echo "$as_me:$LINENO: result: $ac_file" >&5
2823 echo "${ECHO_T}$ac_file" >&6; }
2824 if test -z "$ac_file"; then
2825 echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2829 See \`config.log' for more details." >&5
2830 echo "$as_me: error: C compiler cannot create executables
2831 See \`config.log' for more details." >&2;}
2832 { (exit 77); exit 77; }; }
2835 ac_exeext=$ac_cv_exeext
2837 # Check that the compiler produces executables we can run. If not, either
2838 # the compiler is broken, or we cross compile.
2839 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2840 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2841 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2842 # If not cross compiling, check that we can run a simple program.
2843 if test "$cross_compiling" != yes; then
2844 if { ac_try='./$ac_file'
2845 { (case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_try") 2>&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2856 if test "$cross_compiling" = maybe; then
2859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: cannot run C compiled programs.
2863 If you meant to cross compile, use \`--host'.
2864 See \`config.log' for more details." >&2;}
2865 { (exit 1); exit 1; }; }
2869 { echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6; }
2872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2873 ac_clean_files=$ac_clean_files_save
2874 # Check that the compiler produces executables we can run. If not, either
2875 # the compiler is broken, or we cross compile.
2876 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2878 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2879 echo "${ECHO_T}$cross_compiling" >&6; }
2881 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2883 if { (ac_try="$ac_link"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_link") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2895 # work properly (i.e., refer to `conftest.exe'), while it won't with
2897 for ac_file in conftest.exe conftest conftest.*; do
2898 test -f "$ac_file" || continue
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2914 rm -f conftest$ac_cv_exeext
2915 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2916 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2918 rm -f conftest.$ac_ext
2919 EXEEXT=$ac_cv_exeext
2921 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2922 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2923 if test "${ac_cv_objext+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 cat >conftest.$ac_ext <<_ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2941 rm -f conftest.o conftest.obj
2942 if { (ac_try="$ac_compile"
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; then
2952 for ac_file in conftest.o conftest.obj conftest.*; do
2953 test -f "$ac_file" || continue;
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2964 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2971 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2973 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2974 echo "${ECHO_T}$ac_cv_objext" >&6; }
2975 OBJEXT=$ac_cv_objext
2977 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2978 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2979 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 cat >conftest.$ac_ext <<_ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3009 grep -v '^ *+' conftest.er1 >conftest.err
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } && {
3014 test -z "$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3016 } && test -s conftest.$ac_objext; then
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3026 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3029 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3030 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3031 GCC=`test $ac_compiler_gnu = yes && echo yes`
3032 ac_test_CFLAGS=${CFLAGS+set}
3033 ac_save_CFLAGS=$CFLAGS
3034 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3035 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3036 if test "${ac_cv_prog_cc_g+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 ac_save_c_werror_flag=$ac_c_werror_flag
3040 ac_c_werror_flag=yes
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compile") 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } && {
3072 test -z "$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3074 } && test -s conftest.$ac_objext; then
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3105 grep -v '^ *+' conftest.er1 >conftest.err
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } && {
3110 test -z "$ac_c_werror_flag" ||
3111 test ! -s conftest.err
3112 } && test -s conftest.$ac_objext; then
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 ac_c_werror_flag=$ac_save_c_werror_flag
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3144 grep -v '^ *+' conftest.er1 >conftest.err
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 ac_c_werror_flag=$ac_save_c_werror_flag
3169 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3170 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3171 if test "$ac_test_CFLAGS" = set; then
3172 CFLAGS=$ac_save_CFLAGS
3173 elif test $ac_cv_prog_cc_g = yes; then
3174 if test "$GCC" = yes; then
3180 if test "$GCC" = yes; then
3186 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3187 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3188 if test "${ac_cv_prog_cc_c89+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 ac_cv_prog_cc_c89=no
3193 cat >conftest.$ac_ext <<_ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3201 #include <sys/types.h>
3202 #include <sys/stat.h>
3203 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3204 struct buf { int x; };
3205 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3206 static char *e (p, i)
3212 static char *f (char * (*g) (char **, int), char **p, ...)
3217 s = g (p, va_arg (v,int));
3222 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3223 function prototypes and stuff, but not '\xHH' hex character constants.
3224 These don't provoke an error unfortunately, instead are silently treated
3225 as 'x'. The following induces an error, until -std is added to get
3226 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3227 array size at least. It's necessary to write '\x00'==0 to get something
3228 that's true only with -std. */
3229 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3231 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3232 inside strings and character constants. */
3234 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3236 int test (int i, double x);
3237 struct s1 {int (*f) (int a);};
3238 struct s2 {int (*f) (double a);};
3239 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3245 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3250 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3251 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3253 CC="$ac_save_CC $ac_arg"
3254 rm -f conftest.$ac_objext
3255 if { (ac_try="$ac_compile"
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_compile") 2>conftest.er1
3263 grep -v '^ *+' conftest.er1 >conftest.err
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } && {
3268 test -z "$ac_c_werror_flag" ||
3269 test ! -s conftest.err
3270 } && test -s conftest.$ac_objext; then
3271 ac_cv_prog_cc_c89=$ac_arg
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3279 rm -f core conftest.err conftest.$ac_objext
3280 test "x$ac_cv_prog_cc_c89" != "xno" && break
3282 rm -f conftest.$ac_ext
3287 case "x$ac_cv_prog_cc_c89" in
3289 { echo "$as_me:$LINENO: result: none needed" >&5
3290 echo "${ECHO_T}none needed" >&6; } ;;
3292 { echo "$as_me:$LINENO: result: unsupported" >&5
3293 echo "${ECHO_T}unsupported" >&6; } ;;
3295 CC="$CC $ac_cv_prog_cc_c89"
3296 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3297 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3302 ac_cpp='$CPP $CPPFLAGS'
3303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3307 depcc="$CC" am_compiler_list=
3309 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3310 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3311 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3315 # We make a subdir and do the tests there. Otherwise we can end up
3316 # making bogus files that we don't know about and never remove. For
3317 # instance it was reported that on HP-UX the gcc test will end up
3318 # making a dummy file named `D' -- because `-MD' means `put the output
3321 # Copy depcomp to subdir because otherwise we won't find it if we're
3322 # using a relative directory.
3323 cp "$am_depcomp" conftest.dir
3325 # We will build objects and dependencies in a subdirectory because
3326 # it helps to detect inapplicable dependency modes. For instance
3327 # both Tru64's cc and ICC support -MD to output dependencies as a
3328 # side effect of compilation, but ICC will put the dependencies in
3329 # the current directory while Tru64 will put them in the object
3333 am_cv_CC_dependencies_compiler_type=none
3334 if test "$am_compiler_list" = ""; then
3335 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3337 for depmode in $am_compiler_list; do
3338 # Setup a source with many dependencies, because some compilers
3339 # like to wrap large dependency lists on column 80 (with \), and
3340 # we should not choose a depcomp mode which is confused by this.
3342 # We need to recreate these files for each test, as the compiler may
3343 # overwrite some of them when testing with obscure command lines.
3344 # This happens at least with the AIX C compiler.
3346 for i in 1 2 3 4 5 6; do
3347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3348 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3349 # Solaris 8's {/usr,}/bin/sh.
3350 touch sub/conftst$i.h
3352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3356 # after this tag, mechanisms are not by side-effect, so they'll
3357 # only be used when explicitly requested
3358 if test "x$enable_dependency_tracking" = xyes; then
3366 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3367 # mode. It turns out that the SunPro C++ compiler does not properly
3368 # handle `-M -o', and we need to detect this.
3369 if depmode=$depmode \
3370 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3371 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3372 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3373 >/dev/null 2>conftest.err &&
3374 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3375 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3376 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3377 # icc doesn't choke on unknown options, it will just issue warnings
3378 # or remarks (even with -Werror). So we grep stderr for any message
3379 # that says an option was ignored or not supported.
3380 # When given -MP, icc 7.0 and 7.1 complain thusly:
3381 # icc: Command line warning: ignoring option '-M'; no argument required
3382 # The diagnosis changed in icc 8.0:
3383 # icc: Command line remark: option '-MP' not supported
3384 if (grep 'ignoring option' conftest.err ||
3385 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3386 am_cv_CC_dependencies_compiler_type=$depmode
3395 am_cv_CC_dependencies_compiler_type=none
3399 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3400 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3401 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3406 test "x$enable_dependency_tracking" != xno \
3407 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3409 am__fastdepCC_FALSE='#'
3411 am__fastdepCC_TRUE='#'
3412 am__fastdepCC_FALSE=
3418 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3419 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3420 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 ac_check_lib_save_LIBS=$LIBS
3424 LIBS="-lcposix $LIBS"
3425 cat >conftest.$ac_ext <<_ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3432 /* Override any GCC internal prototype to avoid an error.
3433 Use char because int might match the return type of a GCC
3434 builtin and then its argument prototype would still apply. */
3447 rm -f conftest.$ac_objext conftest$ac_exeext
3448 if { (ac_try="$ac_link"
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_link") 2>conftest.er1
3456 grep -v '^ *+' conftest.er1 >conftest.err
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } && {
3461 test -z "$ac_c_werror_flag" ||
3462 test ! -s conftest.err
3463 } && test -s conftest$ac_exeext &&
3464 $as_test_x conftest$ac_exeext; then
3465 ac_cv_lib_cposix_strerror=yes
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 ac_cv_lib_cposix_strerror=no
3473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3474 conftest$ac_exeext conftest.$ac_ext
3475 LIBS=$ac_check_lib_save_LIBS
3477 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3478 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3479 if test $ac_cv_lib_cposix_strerror = yes; then
3480 LIBS="$LIBS -lcposix"
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3495 if test "${ac_cv_prog_CC+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 if test -n "$CC"; then
3520 { echo "$as_me:$LINENO: result: $CC" >&5
3521 echo "${ECHO_T}$CC" >&6; }
3523 { echo "$as_me:$LINENO: result: no" >&5
3524 echo "${ECHO_T}no" >&6; }
3529 if test -z "$ac_cv_prog_CC"; then
3531 # Extract the first word of "gcc", so it can be a program name with args.
3532 set dummy gcc; ac_word=$2
3533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 ac_cv_prog_ac_ct_CC="gcc"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3561 echo "${ECHO_T}$ac_ct_CC" >&6; }
3563 { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3567 if test "x$ac_ct_CC" = x; then
3570 case $cross_compiling:$ac_tool_warned in
3572 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3573 whose name does not start with the host triplet. If you think this
3574 configuration is useful to you, please write to autoconf@gnu.org." >&5
3575 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3576 whose name does not start with the host triplet. If you think this
3577 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3578 ac_tool_warned=yes ;;
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}cc; ac_word=$2
3590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC="${ac_tool_prefix}cc"
3606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 if test -n "$CC"; then
3617 { echo "$as_me:$LINENO: result: $CC" >&5
3618 echo "${ECHO_T}$CC" >&6; }
3620 { echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6; }
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc; ac_word=$2
3630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647 ac_prog_rejected=yes
3651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy $ac_cv_prog_CC
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3673 if test -n "$CC"; then
3674 { echo "$as_me:$LINENO: result: $CC" >&5
3675 echo "${ECHO_T}$CC" >&6; }
3677 { echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6; }
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog in cl.exe
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC="$CC" # Let the user override the test.
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 if test -n "$CC"; then
3716 { echo "$as_me:$LINENO: result: $CC" >&5
3717 echo "${ECHO_T}$CC" >&6; }
3719 { echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6; }
3724 test -n "$CC" && break
3727 if test -z "$CC"; then
3729 for ac_prog in cl.exe
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC="$ac_prog"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3761 echo "${ECHO_T}$ac_ct_CC" >&6; }
3763 { echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; }
3768 test -n "$ac_ct_CC" && break
3771 if test "x$ac_ct_CC" = x; then
3774 case $cross_compiling:$ac_tool_warned in
3776 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3777 whose name does not start with the host triplet. If you think this
3778 configuration is useful to you, please write to autoconf@gnu.org." >&5
3779 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3780 whose name does not start with the host triplet. If you think this
3781 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3782 ac_tool_warned=yes ;;
3791 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3792 See \`config.log' for more details." >&5
3793 echo "$as_me: error: no acceptable C compiler found in \$PATH
3794 See \`config.log' for more details." >&2;}
3795 { (exit 1); exit 1; }; }
3797 # Provide some information about the compiler.
3798 echo "$as_me:$LINENO: checking for C compiler version" >&5
3799 ac_compiler=`set X $ac_compile; echo $2`
3800 { (ac_try="$ac_compiler --version >&5"
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3806 (eval "$ac_compiler --version >&5") 2>&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }
3810 { (ac_try="$ac_compiler -v >&5"
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816 (eval "$ac_compiler -v >&5") 2>&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }
3820 { (ac_try="$ac_compiler -V >&5"
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826 (eval "$ac_compiler -V >&5") 2>&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }
3831 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3832 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3833 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 cat >conftest.$ac_ext <<_ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3854 rm -f conftest.$ac_objext
3855 if { (ac_try="$ac_compile"
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3861 (eval "$ac_compile") 2>conftest.er1
3863 grep -v '^ *+' conftest.er1 >conftest.err
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } && {
3868 test -z "$ac_c_werror_flag" ||
3869 test ! -s conftest.err
3870 } && test -s conftest.$ac_objext; then
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3883 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3884 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3885 GCC=`test $ac_compiler_gnu = yes && echo yes`
3886 ac_test_CFLAGS=${CFLAGS+set}
3887 ac_save_CFLAGS=$CFLAGS
3888 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3889 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3890 if test "${ac_cv_prog_cc_g+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 ac_save_c_werror_flag=$ac_c_werror_flag
3894 ac_c_werror_flag=yes
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3912 rm -f conftest.$ac_objext
3913 if { (ac_try="$ac_compile"
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_compile") 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest.$ac_objext; then
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3950 rm -f conftest.$ac_objext
3951 if { (ac_try="$ac_compile"
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_compile") 2>conftest.er1
3959 grep -v '^ *+' conftest.er1 >conftest.err
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && {
3964 test -z "$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 } && test -s conftest.$ac_objext; then
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3972 ac_c_werror_flag=$ac_save_c_werror_flag
3974 cat >conftest.$ac_ext <<_ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3989 rm -f conftest.$ac_objext
3990 if { (ac_try="$ac_compile"
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3996 (eval "$ac_compile") 2>conftest.er1
3998 grep -v '^ *+' conftest.er1 >conftest.err
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } && {
4003 test -z "$ac_c_werror_flag" ||
4004 test ! -s conftest.err
4005 } && test -s conftest.$ac_objext; then
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 ac_c_werror_flag=$ac_save_c_werror_flag
4023 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4024 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4025 if test "$ac_test_CFLAGS" = set; then
4026 CFLAGS=$ac_save_CFLAGS
4027 elif test $ac_cv_prog_cc_g = yes; then
4028 if test "$GCC" = yes; then
4034 if test "$GCC" = yes; then
4040 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4041 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4042 if test "${ac_cv_prog_cc_c89+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 ac_cv_prog_cc_c89=no
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4055 #include <sys/types.h>
4056 #include <sys/stat.h>
4057 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4058 struct buf { int x; };
4059 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4060 static char *e (p, i)
4066 static char *f (char * (*g) (char **, int), char **p, ...)
4071 s = g (p, va_arg (v,int));
4076 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4077 function prototypes and stuff, but not '\xHH' hex character constants.
4078 These don't provoke an error unfortunately, instead are silently treated
4079 as 'x'. The following induces an error, until -std is added to get
4080 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4081 array size at least. It's necessary to write '\x00'==0 to get something
4082 that's true only with -std. */
4083 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4085 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4086 inside strings and character constants. */
4088 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4090 int test (int i, double x);
4091 struct s1 {int (*f) (int a);};
4092 struct s2 {int (*f) (double a);};
4093 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4099 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4104 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4105 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4107 CC="$ac_save_CC $ac_arg"
4108 rm -f conftest.$ac_objext
4109 if { (ac_try="$ac_compile"
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115 (eval "$ac_compile") 2>conftest.er1
4117 grep -v '^ *+' conftest.er1 >conftest.err
4119 cat conftest.err >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } && {
4122 test -z "$ac_c_werror_flag" ||
4123 test ! -s conftest.err
4124 } && test -s conftest.$ac_objext; then
4125 ac_cv_prog_cc_c89=$ac_arg
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4133 rm -f core conftest.err conftest.$ac_objext
4134 test "x$ac_cv_prog_cc_c89" != "xno" && break
4136 rm -f conftest.$ac_ext
4141 case "x$ac_cv_prog_cc_c89" in
4143 { echo "$as_me:$LINENO: result: none needed" >&5
4144 echo "${ECHO_T}none needed" >&6; } ;;
4146 { echo "$as_me:$LINENO: result: unsupported" >&5
4147 echo "${ECHO_T}unsupported" >&6; } ;;
4149 CC="$CC $ac_cv_prog_cc_c89"
4150 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4151 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161 depcc="$CC" am_compiler_list=
4163 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4164 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4165 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4169 # We make a subdir and do the tests there. Otherwise we can end up
4170 # making bogus files that we don't know about and never remove. For
4171 # instance it was reported that on HP-UX the gcc test will end up
4172 # making a dummy file named `D' -- because `-MD' means `put the output
4175 # Copy depcomp to subdir because otherwise we won't find it if we're
4176 # using a relative directory.
4177 cp "$am_depcomp" conftest.dir
4179 # We will build objects and dependencies in a subdirectory because
4180 # it helps to detect inapplicable dependency modes. For instance
4181 # both Tru64's cc and ICC support -MD to output dependencies as a
4182 # side effect of compilation, but ICC will put the dependencies in
4183 # the current directory while Tru64 will put them in the object
4187 am_cv_CC_dependencies_compiler_type=none
4188 if test "$am_compiler_list" = ""; then
4189 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4191 for depmode in $am_compiler_list; do
4192 # Setup a source with many dependencies, because some compilers
4193 # like to wrap large dependency lists on column 80 (with \), and
4194 # we should not choose a depcomp mode which is confused by this.
4196 # We need to recreate these files for each test, as the compiler may
4197 # overwrite some of them when testing with obscure command lines.
4198 # This happens at least with the AIX C compiler.
4200 for i in 1 2 3 4 5 6; do
4201 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4202 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4203 # Solaris 8's {/usr,}/bin/sh.
4204 touch sub/conftst$i.h
4206 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4210 # after this tag, mechanisms are not by side-effect, so they'll
4211 # only be used when explicitly requested
4212 if test "x$enable_dependency_tracking" = xyes; then
4220 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4221 # mode. It turns out that the SunPro C++ compiler does not properly
4222 # handle `-M -o', and we need to detect this.
4223 if depmode=$depmode \
4224 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4225 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4226 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4227 >/dev/null 2>conftest.err &&
4228 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4229 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4230 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4231 # icc doesn't choke on unknown options, it will just issue warnings
4232 # or remarks (even with -Werror). So we grep stderr for any message
4233 # that says an option was ignored or not supported.
4234 # When given -MP, icc 7.0 and 7.1 complain thusly:
4235 # icc: Command line warning: ignoring option '-M'; no argument required
4236 # The diagnosis changed in icc 8.0:
4237 # icc: Command line remark: option '-MP' not supported
4238 if (grep 'ignoring option' conftest.err ||
4239 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4240 am_cv_CC_dependencies_compiler_type=$depmode
4249 am_cv_CC_dependencies_compiler_type=none
4253 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4254 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4255 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4260 test "x$enable_dependency_tracking" != xno \
4261 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4263 am__fastdepCC_FALSE='#'
4265 am__fastdepCC_TRUE='#'
4266 am__fastdepCC_FALSE=
4271 ac_cpp='$CPP $CPPFLAGS'
4272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275 if test -n "$ac_tool_prefix"; then
4276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4277 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4280 if test "${ac_cv_prog_CC+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 if test -n "$CC"; then
4284 ac_cv_prog_CC="$CC" # Let the user override the test.
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 if test -n "$CC"; then
4305 { echo "$as_me:$LINENO: result: $CC" >&5
4306 echo "${ECHO_T}$CC" >&6; }
4308 { echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6; }
4314 if test -z "$ac_cv_prog_CC"; then
4316 # Extract the first word of "gcc", so it can be a program name with args.
4317 set dummy gcc; ac_word=$2
4318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 if test -n "$ac_ct_CC"; then
4324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333 ac_cv_prog_ac_ct_CC="gcc"
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4344 if test -n "$ac_ct_CC"; then
4345 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4346 echo "${ECHO_T}$ac_ct_CC" >&6; }
4348 { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4352 if test "x$ac_ct_CC" = x; then
4355 case $cross_compiling:$ac_tool_warned in
4357 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4358 whose name does not start with the host triplet. If you think this
4359 configuration is useful to you, please write to autoconf@gnu.org." >&5
4360 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4361 whose name does not start with the host triplet. If you think this
4362 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4363 ac_tool_warned=yes ;;
4371 if test -z "$CC"; then
4372 if test -n "$ac_tool_prefix"; then
4373 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4374 set dummy ${ac_tool_prefix}cc; ac_word=$2
4375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4377 if test "${ac_cv_prog_CC+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 if test -n "$CC"; then
4381 ac_cv_prog_CC="$CC" # Let the user override the test.
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_prog_CC="${ac_tool_prefix}cc"
4391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 if test -n "$CC"; then
4402 { echo "$as_me:$LINENO: result: $CC" >&5
4403 echo "${ECHO_T}$CC" >&6; }
4405 { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4412 if test -z "$CC"; then
4413 # Extract the first word of "cc", so it can be a program name with args.
4414 set dummy cc; ac_word=$2
4415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4417 if test "${ac_cv_prog_CC+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 if test -n "$CC"; then
4421 ac_cv_prog_CC="$CC" # Let the user override the test.
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4432 ac_prog_rejected=yes
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 if test $ac_prog_rejected = yes; then
4444 # We found a bogon in the path, so make sure we never use it.
4445 set dummy $ac_cv_prog_CC
4447 if test $# != 0; then
4448 # We chose a different compiler from the bogus one.
4449 # However, it has the same basename, so the bogon will be chosen
4450 # first if we set CC to just the basename; use the full file name.
4452 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4458 if test -n "$CC"; then
4459 { echo "$as_me:$LINENO: result: $CC" >&5
4460 echo "${ECHO_T}$CC" >&6; }
4462 { echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6; }
4468 if test -z "$CC"; then
4469 if test -n "$ac_tool_prefix"; then
4470 for ac_prog in cl.exe
4472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 if test -n "$CC"; then
4480 ac_cv_prog_CC="$CC" # Let the user override the test.
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 if test -n "$CC"; then
4501 { echo "$as_me:$LINENO: result: $CC" >&5
4502 echo "${ECHO_T}$CC" >&6; }
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4509 test -n "$CC" && break
4512 if test -z "$CC"; then
4514 for ac_prog in cl.exe
4516 # Extract the first word of "$ac_prog", so it can be a program name with args.
4517 set dummy $ac_prog; ac_word=$2
4518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 if test -n "$ac_ct_CC"; then
4524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533 ac_cv_prog_ac_ct_CC="$ac_prog"
4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4544 if test -n "$ac_ct_CC"; then
4545 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4546 echo "${ECHO_T}$ac_ct_CC" >&6; }
4548 { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4553 test -n "$ac_ct_CC" && break
4556 if test "x$ac_ct_CC" = x; then
4559 case $cross_compiling:$ac_tool_warned in
4561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4562 whose name does not start with the host triplet. If you think this
4563 configuration is useful to you, please write to autoconf@gnu.org." >&5
4564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4565 whose name does not start with the host triplet. If you think this
4566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4567 ac_tool_warned=yes ;;
4576 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4577 See \`config.log' for more details." >&5
4578 echo "$as_me: error: no acceptable C compiler found in \$PATH
4579 See \`config.log' for more details." >&2;}
4580 { (exit 1); exit 1; }; }
4582 # Provide some information about the compiler.
4583 echo "$as_me:$LINENO: checking for C compiler version" >&5
4584 ac_compiler=`set X $ac_compile; echo $2`
4585 { (ac_try="$ac_compiler --version >&5"
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591 (eval "$ac_compiler --version >&5") 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }
4595 { (ac_try="$ac_compiler -v >&5"
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601 (eval "$ac_compiler -v >&5") 2>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }
4605 { (ac_try="$ac_compiler -V >&5"
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_compiler -V >&5") 2>&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }
4616 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4617 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 cat >conftest.$ac_ext <<_ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4639 rm -f conftest.$ac_objext
4640 if { (ac_try="$ac_compile"
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_compile") 2>conftest.er1
4648 grep -v '^ *+' conftest.er1 >conftest.err
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest.$ac_objext; then
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4668 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4669 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4670 GCC=`test $ac_compiler_gnu = yes && echo yes`
4671 ac_test_CFLAGS=${CFLAGS+set}
4672 ac_save_CFLAGS=$CFLAGS
4673 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4674 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4675 if test "${ac_cv_prog_cc_g+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 ac_save_c_werror_flag=$ac_c_werror_flag
4679 ac_c_werror_flag=yes
4682 cat >conftest.$ac_ext <<_ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4697 rm -f conftest.$ac_objext
4698 if { (ac_try="$ac_compile"
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4704 (eval "$ac_compile") 2>conftest.er1
4706 grep -v '^ *+' conftest.er1 >conftest.err
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } && {
4711 test -z "$ac_c_werror_flag" ||
4712 test ! -s conftest.err
4713 } && test -s conftest.$ac_objext; then
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742 (eval "$ac_compile") 2>conftest.er1
4744 grep -v '^ *+' conftest.er1 >conftest.err
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } && {
4749 test -z "$ac_c_werror_flag" ||
4750 test ! -s conftest.err
4751 } && test -s conftest.$ac_objext; then
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4757 ac_c_werror_flag=$ac_save_c_werror_flag
4759 cat >conftest.$ac_ext <<_ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4774 rm -f conftest.$ac_objext
4775 if { (ac_try="$ac_compile"
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781 (eval "$ac_compile") 2>conftest.er1
4783 grep -v '^ *+' conftest.er1 >conftest.err
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } && {
4788 test -z "$ac_c_werror_flag" ||
4789 test ! -s conftest.err
4790 } && test -s conftest.$ac_objext; then
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 ac_c_werror_flag=$ac_save_c_werror_flag
4808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4809 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4810 if test "$ac_test_CFLAGS" = set; then
4811 CFLAGS=$ac_save_CFLAGS
4812 elif test $ac_cv_prog_cc_g = yes; then
4813 if test "$GCC" = yes; then
4819 if test "$GCC" = yes; then
4825 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4826 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4827 if test "${ac_cv_prog_cc_c89+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 ac_cv_prog_cc_c89=no
4832 cat >conftest.$ac_ext <<_ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4840 #include <sys/types.h>
4841 #include <sys/stat.h>
4842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4843 struct buf { int x; };
4844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4845 static char *e (p, i)
4851 static char *f (char * (*g) (char **, int), char **p, ...)
4856 s = g (p, va_arg (v,int));
4861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4862 function prototypes and stuff, but not '\xHH' hex character constants.
4863 These don't provoke an error unfortunately, instead are silently treated
4864 as 'x'. The following induces an error, until -std is added to get
4865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4866 array size at least. It's necessary to write '\x00'==0 to get something
4867 that's true only with -std. */
4868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4871 inside strings and character constants. */
4873 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4875 int test (int i, double x);
4876 struct s1 {int (*f) (int a);};
4877 struct s2 {int (*f) (double a);};
4878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4892 CC="$ac_save_CC $ac_arg"
4893 rm -f conftest.$ac_objext
4894 if { (ac_try="$ac_compile"
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4900 (eval "$ac_compile") 2>conftest.er1
4902 grep -v '^ *+' conftest.er1 >conftest.err
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } && {
4907 test -z "$ac_c_werror_flag" ||
4908 test ! -s conftest.err
4909 } && test -s conftest.$ac_objext; then
4910 ac_cv_prog_cc_c89=$ac_arg
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4918 rm -f core conftest.err conftest.$ac_objext
4919 test "x$ac_cv_prog_cc_c89" != "xno" && break
4921 rm -f conftest.$ac_ext
4926 case "x$ac_cv_prog_cc_c89" in
4928 { echo "$as_me:$LINENO: result: none needed" >&5
4929 echo "${ECHO_T}none needed" >&6; } ;;
4931 { echo "$as_me:$LINENO: result: unsupported" >&5
4932 echo "${ECHO_T}unsupported" >&6; } ;;
4934 CC="$CC $ac_cv_prog_cc_c89"
4935 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4936 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4946 depcc="$CC" am_compiler_list=
4948 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4949 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4950 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4954 # We make a subdir and do the tests there. Otherwise we can end up
4955 # making bogus files that we don't know about and never remove. For
4956 # instance it was reported that on HP-UX the gcc test will end up
4957 # making a dummy file named `D' -- because `-MD' means `put the output
4960 # Copy depcomp to subdir because otherwise we won't find it if we're
4961 # using a relative directory.
4962 cp "$am_depcomp" conftest.dir
4964 # We will build objects and dependencies in a subdirectory because
4965 # it helps to detect inapplicable dependency modes. For instance
4966 # both Tru64's cc and ICC support -MD to output dependencies as a
4967 # side effect of compilation, but ICC will put the dependencies in
4968 # the current directory while Tru64 will put them in the object
4972 am_cv_CC_dependencies_compiler_type=none
4973 if test "$am_compiler_list" = ""; then
4974 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4976 for depmode in $am_compiler_list; do
4977 # Setup a source with many dependencies, because some compilers
4978 # like to wrap large dependency lists on column 80 (with \), and
4979 # we should not choose a depcomp mode which is confused by this.
4981 # We need to recreate these files for each test, as the compiler may
4982 # overwrite some of them when testing with obscure command lines.
4983 # This happens at least with the AIX C compiler.
4985 for i in 1 2 3 4 5 6; do
4986 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4988 # Solaris 8's {/usr,}/bin/sh.
4989 touch sub/conftst$i.h
4991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4995 # after this tag, mechanisms are not by side-effect, so they'll
4996 # only be used when explicitly requested
4997 if test "x$enable_dependency_tracking" = xyes; then
5005 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5006 # mode. It turns out that the SunPro C++ compiler does not properly
5007 # handle `-M -o', and we need to detect this.
5008 if depmode=$depmode \
5009 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5010 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5011 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5012 >/dev/null 2>conftest.err &&
5013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5014 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5016 # icc doesn't choke on unknown options, it will just issue warnings
5017 # or remarks (even with -Werror). So we grep stderr for any message
5018 # that says an option was ignored or not supported.
5019 # When given -MP, icc 7.0 and 7.1 complain thusly:
5020 # icc: Command line warning: ignoring option '-M'; no argument required
5021 # The diagnosis changed in icc 8.0:
5022 # icc: Command line remark: option '-MP' not supported
5023 if (grep 'ignoring option' conftest.err ||
5024 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5025 am_cv_CC_dependencies_compiler_type=$depmode
5034 am_cv_CC_dependencies_compiler_type=none
5038 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5039 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5040 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5045 test "x$enable_dependency_tracking" != xno \
5046 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5048 am__fastdepCC_FALSE='#'
5050 am__fastdepCC_TRUE='#'
5051 am__fastdepCC_FALSE=
5056 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5058 # By default we simply use the C compiler to build assembly code.
5060 test "${CCAS+set}" = set || CCAS=$CC
5061 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5071 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5072 # On Suns, sometimes $CPP names a directory.
5073 if test -n "$CPP" && test -d "$CPP"; then
5076 if test -z "$CPP"; then
5077 if test "${ac_cv_prog_CPP+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 # Double quotes because CPP needs to be expanded
5081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5084 for ac_c_preproc_warn_flag in '' yes
5086 # Use a header file that comes with gcc, so configuring glibc
5087 # with a fresh cross-compiler works.
5088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 # <limits.h> exists even on freestanding compilers.
5090 # On the NeXT, cc -E runs the code through the compiler's parser,
5091 # not just through cpp. "Syntax error" is here to catch this case.
5092 cat >conftest.$ac_ext <<_ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5099 # include <limits.h>
5101 # include <assert.h>
5105 if { (ac_try="$ac_cpp conftest.$ac_ext"
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5113 grep -v '^ *+' conftest.er1 >conftest.err
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null && {
5118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5119 test ! -s conftest.err
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5126 # Broken: fails on valid input.
5130 rm -f conftest.err conftest.$ac_ext
5132 # OK, works on sane cases. Now check whether nonexistent headers
5133 # can be detected and how.
5134 cat >conftest.$ac_ext <<_ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 #include <ac_nonexistent.h>
5142 if { (ac_try="$ac_cpp conftest.$ac_ext"
5144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5145 *) ac_try_echo=$ac_try;;
5147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5150 grep -v '^ *+' conftest.er1 >conftest.err
5152 cat conftest.err >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } >/dev/null && {
5155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5156 test ! -s conftest.err
5158 # Broken: success on invalid input.
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5164 # Passes both tests.
5169 rm -f conftest.err conftest.$ac_ext
5172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5173 rm -f conftest.err conftest.$ac_ext
5174 if $ac_preproc_ok; then
5186 { echo "$as_me:$LINENO: result: $CPP" >&5
5187 echo "${ECHO_T}$CPP" >&6; }
5189 for ac_c_preproc_warn_flag in '' yes
5191 # Use a header file that comes with gcc, so configuring glibc
5192 # with a fresh cross-compiler works.
5193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 # <limits.h> exists even on freestanding compilers.
5195 # On the NeXT, cc -E runs the code through the compiler's parser,
5196 # not just through cpp. "Syntax error" is here to catch this case.
5197 cat >conftest.$ac_ext <<_ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5204 # include <limits.h>
5206 # include <assert.h>
5210 if { (ac_try="$ac_cpp conftest.$ac_ext"
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5218 grep -v '^ *+' conftest.er1 >conftest.err
5220 cat conftest.err >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } >/dev/null && {
5223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5224 test ! -s conftest.err
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5231 # Broken: fails on valid input.
5235 rm -f conftest.err conftest.$ac_ext
5237 # OK, works on sane cases. Now check whether nonexistent headers
5238 # can be detected and how.
5239 cat >conftest.$ac_ext <<_ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5245 #include <ac_nonexistent.h>
5247 if { (ac_try="$ac_cpp conftest.$ac_ext"
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5255 grep -v '^ *+' conftest.er1 >conftest.err
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } >/dev/null && {
5260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5261 test ! -s conftest.err
5263 # Broken: success on invalid input.
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 # Passes both tests.
5274 rm -f conftest.err conftest.$ac_ext
5277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5278 rm -f conftest.err conftest.$ac_ext
5279 if $ac_preproc_ok; then
5282 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5283 See \`config.log' for more details." >&5
5284 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5285 See \`config.log' for more details." >&2;}
5286 { (exit 1); exit 1; }; }
5290 ac_cpp='$CPP $CPPFLAGS'
5291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5296 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5297 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5298 if test "${ac_cv_path_GREP+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 # Extract the first word of "grep ggrep" to use in msg output
5302 if test -z "$GREP"; then
5303 set dummy grep ggrep; ac_prog_name=$2
5304 if test "${ac_cv_path_GREP+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 ac_path_GREP_found=false
5308 # Loop through the user's path and test for each of PROGNAME-LIST
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5313 test -z "$as_dir" && as_dir=.
5314 for ac_prog in grep ggrep; do
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5317 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5318 # Check for GNU ac_path_GREP and select it if it is found.
5319 # Check for GNU $ac_path_GREP
5320 case `"$ac_path_GREP" --version 2>&1` in
5322 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5325 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5328 cat "conftest.in" "conftest.in" >"conftest.tmp"
5329 mv "conftest.tmp" "conftest.in"
5330 cp "conftest.in" "conftest.nl"
5331 echo 'GREP' >> "conftest.nl"
5332 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5334 ac_count=`expr $ac_count + 1`
5335 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5336 # Best one so far, save it but keep looking for a better one
5337 ac_cv_path_GREP="$ac_path_GREP"
5338 ac_path_GREP_max=$ac_count
5340 # 10*(2^10) chars as input seems more than enough
5341 test $ac_count -gt 10 && break
5343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5347 $ac_path_GREP_found && break 3
5357 GREP="$ac_cv_path_GREP"
5358 if test -z "$GREP"; then
5359 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5360 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5361 { (exit 1); exit 1; }; }
5365 ac_cv_path_GREP=$GREP
5370 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5371 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5372 GREP="$ac_cv_path_GREP"
5375 { echo "$as_me:$LINENO: checking for egrep" >&5
5376 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5377 if test "${ac_cv_path_EGREP+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5381 then ac_cv_path_EGREP="$GREP -E"
5383 # Extract the first word of "egrep" to use in msg output
5384 if test -z "$EGREP"; then
5385 set dummy egrep; ac_prog_name=$2
5386 if test "${ac_cv_path_EGREP+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 ac_path_EGREP_found=false
5390 # Loop through the user's path and test for each of PROGNAME-LIST
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5395 test -z "$as_dir" && as_dir=.
5396 for ac_prog in egrep; do
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5399 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5400 # Check for GNU ac_path_EGREP and select it if it is found.
5401 # Check for GNU $ac_path_EGREP
5402 case `"$ac_path_EGREP" --version 2>&1` in
5404 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5407 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5410 cat "conftest.in" "conftest.in" >"conftest.tmp"
5411 mv "conftest.tmp" "conftest.in"
5412 cp "conftest.in" "conftest.nl"
5413 echo 'EGREP' >> "conftest.nl"
5414 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5416 ac_count=`expr $ac_count + 1`
5417 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5418 # Best one so far, save it but keep looking for a better one
5419 ac_cv_path_EGREP="$ac_path_EGREP"
5420 ac_path_EGREP_max=$ac_count
5422 # 10*(2^10) chars as input seems more than enough
5423 test $ac_count -gt 10 && break
5425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5429 $ac_path_EGREP_found && break 3
5439 EGREP="$ac_cv_path_EGREP"
5440 if test -z "$EGREP"; then
5441 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5442 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5443 { (exit 1); exit 1; }; }
5447 ac_cv_path_EGREP=$EGREP
5453 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5454 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5455 EGREP="$ac_cv_path_EGREP"
5458 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5459 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5460 if test "${ac_cv_header_stdc+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 cat >conftest.$ac_ext <<_ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_c_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest.$ac_objext; then
5499 ac_cv_header_stdc=yes
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 ac_cv_header_stdc=no
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 if test $ac_cv_header_stdc = yes; then
5510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5511 cat >conftest.$ac_ext <<_ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5521 $EGREP "memchr" >/dev/null 2>&1; then
5524 ac_cv_header_stdc=no
5530 if test $ac_cv_header_stdc = yes; then
5531 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5532 cat >conftest.$ac_ext <<_ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h. */
5541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5542 $EGREP "free" >/dev/null 2>&1; then
5545 ac_cv_header_stdc=no
5551 if test $ac_cv_header_stdc = yes; then
5552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5553 if test "$cross_compiling" = yes; then
5556 cat >conftest.$ac_ext <<_ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5564 #if ((' ' & 0x0FF) == 0x020)
5565 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5566 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5568 # define ISLOWER(c) \
5569 (('a' <= (c) && (c) <= 'i') \
5570 || ('j' <= (c) && (c) <= 'r') \
5571 || ('s' <= (c) && (c) <= 'z'))
5572 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5580 for (i = 0; i < 256; i++)
5581 if (XOR (islower (i), ISLOWER (i))
5582 || toupper (i) != TOUPPER (i))
5587 rm -f conftest$ac_exeext
5588 if { (ac_try="$ac_link"
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_link") 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5598 { (case "(($ac_try" in
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603 (eval "$ac_try") 2>&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5609 echo "$as_me: program exited with status $ac_status" >&5
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5614 ac_cv_header_stdc=no
5616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5622 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5623 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5624 if test $ac_cv_header_stdc = yes; then
5626 cat >>confdefs.h <<\_ACEOF
5627 #define STDC_HEADERS 1
5632 # Make sure we can run config.sub.
5633 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5634 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5635 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5636 { (exit 1); exit 1; }; }
5638 { echo "$as_me:$LINENO: checking build system type" >&5
5639 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5640 if test "${ac_cv_build+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 ac_build_alias=$build_alias
5644 test "x$ac_build_alias" = x &&
5645 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5646 test "x$ac_build_alias" = x &&
5647 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5648 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5649 { (exit 1); exit 1; }; }
5650 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5651 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5652 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5653 { (exit 1); exit 1; }; }
5656 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5657 echo "${ECHO_T}$ac_cv_build" >&6; }
5658 case $ac_cv_build in
5660 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5661 echo "$as_me: error: invalid value of canonical build" >&2;}
5662 { (exit 1); exit 1; }; };;
5665 ac_save_IFS=$IFS; IFS='-'
5671 # Remember, the first character of IFS is used to create $*,
5672 # except with old shells:
5675 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5678 { echo "$as_me:$LINENO: checking host system type" >&5
5679 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5680 if test "${ac_cv_host+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 if test "x$host_alias" = x; then
5684 ac_cv_host=$ac_cv_build
5686 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5687 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5688 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5689 { (exit 1); exit 1; }; }
5693 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5694 echo "${ECHO_T}$ac_cv_host" >&6; }
5697 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5698 echo "$as_me: error: invalid value of canonical host" >&2;}
5699 { (exit 1); exit 1; }; };;
5702 ac_save_IFS=$IFS; IFS='-'
5708 # Remember, the first character of IFS is used to create $*,
5709 # except with old shells:
5712 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5715 # Check whether --enable-trace was given.
5716 if test "${enable_trace+set}" = set; then
5717 enableval=$enable_trace; if test "$enableval" == "yes"; then
5719 cat >>confdefs.h <<\_ACEOF
5720 #define ENABLE_TRACE_IO 1
5726 # Check whether --enable-watch was given.
5727 if test "${enable_watch+set}" = set; then
5728 enableval=$enable_watch; if test "$enableval" == "yes"; then
5730 cat >>confdefs.h <<\_ACEOF
5731 #define ENABLE_WATCH 1
5738 # Check whether --with-osmesa was given.
5739 if test "${with_osmesa+set}" = set; then
5740 withval=$with_osmesa;
5748 lxdream_save_cppflags="$CPPFLAGS"
5749 CPPFLAGS="$CPPFLAGS -x objective-c"
5750 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5760 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5761 inttypes.h stdint.h unistd.h
5763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 cat >conftest.$ac_ext <<_ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5775 $ac_includes_default
5777 #include <$ac_header>
5779 rm -f conftest.$ac_objext
5780 if { (ac_try="$ac_compile"
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_compile") 2>conftest.er1
5788 grep -v '^ *+' conftest.er1 >conftest.err
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } && {
5793 test -z "$ac_c_werror_flag" ||
5794 test ! -s conftest.err
5795 } && test -s conftest.$ac_objext; then
5796 eval "$as_ac_Header=yes"
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5801 eval "$as_ac_Header=no"
5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 ac_res=`eval echo '${'$as_ac_Header'}'`
5807 { echo "$as_me:$LINENO: result: $ac_res" >&5
5808 echo "${ECHO_T}$ac_res" >&6; }
5809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5810 cat >>confdefs.h <<_ACEOF
5811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5819 cat >conftest.$ac_ext <<_ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5834 rm -f conftest.$ac_objext
5835 if { (ac_try="$ac_compile"
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5841 (eval "$ac_compile") 2>conftest.er1
5843 grep -v '^ *+' conftest.er1 >conftest.err
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && {
5848 test -z "$ac_c_werror_flag" ||
5849 test ! -s conftest.err
5850 } && test -s conftest.$ac_objext; then
5853 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
5854 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
5855 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
5856 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
5860 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
5862 # Is the header compilable?
5863 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
5864 echo $ECHO_N "checking Cocoa/Cocoa.h usability... $ECHO_C" >&6; }
5865 cat >conftest.$ac_ext <<_ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 $ac_includes_default
5872 #include <Cocoa/Cocoa.h>
5874 rm -f conftest.$ac_objext
5875 if { (ac_try="$ac_compile"
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_compile") 2>conftest.er1
5883 grep -v '^ *+' conftest.er1 >conftest.err
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } && {
5888 test -z "$ac_c_werror_flag" ||
5889 test ! -s conftest.err
5890 } && test -s conftest.$ac_objext; then
5891 ac_header_compiler=yes
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 ac_header_compiler=no
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5901 echo "${ECHO_T}$ac_header_compiler" >&6; }
5903 # Is the header present?
5904 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
5905 echo $ECHO_N "checking Cocoa/Cocoa.h presence... $ECHO_C" >&6; }
5906 cat >conftest.$ac_ext <<_ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 #include <Cocoa/Cocoa.h>
5914 if { (ac_try="$ac_cpp conftest.$ac_ext"
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5922 grep -v '^ *+' conftest.er1 >conftest.err
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } >/dev/null && {
5927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5928 test ! -s conftest.err
5930 ac_header_preproc=yes
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5935 ac_header_preproc=no
5938 rm -f conftest.err conftest.$ac_ext
5939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5940 echo "${ECHO_T}$ac_header_preproc" >&6; }
5942 # So? What about this header?
5943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5945 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
5946 echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5947 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
5948 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
5949 ac_header_preproc=yes
5952 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
5953 echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
5954 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
5955 echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
5956 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
5957 echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
5958 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
5959 echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
5960 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
5961 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
5962 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
5963 echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
5967 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
5968 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
5969 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
5974 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
5975 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
5978 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
5982 LIBS="$LIBS -framework AppKit"
5983 LIBS="$LIBS -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework OpenGL"
5985 cat >>confdefs.h <<\_ACEOF
5986 #define HAVE_COCOA 1
5990 cat >>confdefs.h <<\_ACEOF
5991 #define APPLE_BUILD 1
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6004 CPPFLAGS="$lxdream_save_cppflags"
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 if test "$HAVE_COCOA" = 'yes'; then
6021 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6022 if test -n "$ac_tool_prefix"; then
6023 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6024 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6027 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6054 if test -n "$PKG_CONFIG"; then
6055 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6056 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6058 { echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6; }
6064 if test -z "$ac_cv_path_PKG_CONFIG"; then
6065 ac_pt_PKG_CONFIG=$PKG_CONFIG
6066 # Extract the first word of "pkg-config", so it can be a program name with args.
6067 set dummy pkg-config; ac_word=$2
6068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 case $ac_pt_PKG_CONFIG in
6075 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6097 if test -n "$ac_pt_PKG_CONFIG"; then
6098 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6099 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
6101 { echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6; }
6105 if test "x$ac_pt_PKG_CONFIG" = x; then
6108 case $cross_compiling:$ac_tool_warned in
6110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6111 whose name does not start with the host triplet. If you think this
6112 configuration is useful to you, please write to autoconf@gnu.org." >&5
6113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6114 whose name does not start with the host triplet. If you think this
6115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6116 ac_tool_warned=yes ;;
6118 PKG_CONFIG=$ac_pt_PKG_CONFIG
6121 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6125 if test -n "$PKG_CONFIG"; then
6126 _pkg_min_version=0.9.0
6127 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6128 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
6129 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6130 { echo "$as_me:$LINENO: result: yes" >&5
6131 echo "${ECHO_T}yes" >&6; }
6133 { echo "$as_me:$LINENO: result: no" >&5
6134 echo "${ECHO_T}no" >&6; }
6141 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
6142 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
6144 if test -n "$PKG_CONFIG"; then
6145 if test -n "$LIBPNG_CFLAGS"; then
6146 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
6148 if test -n "$PKG_CONFIG" && \
6149 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6150 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; then
6154 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
6162 if test -n "$PKG_CONFIG"; then
6163 if test -n "$LIBPNG_LIBS"; then
6164 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
6166 if test -n "$PKG_CONFIG" && \
6167 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6168 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; then
6172 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
6183 if test $pkg_failed = yes; then
6185 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6186 _pkg_short_errors_supported=yes
6188 _pkg_short_errors_supported=no
6190 if test $_pkg_short_errors_supported = yes; then
6191 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
6193 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
6195 # Put the nasty error message in config.log where it belongs
6196 echo "$LIBPNG_PKG_ERRORS" >&5
6198 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
6202 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6203 installed software in a non-standard prefix.
6205 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6206 and LIBPNG_LIBS to avoid the need to call pkg-config.
6207 See the pkg-config man page for more details.
6209 echo "$as_me: error: Package requirements (libpng ) were not met:
6213 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6214 installed software in a non-standard prefix.
6216 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6217 and LIBPNG_LIBS to avoid the need to call pkg-config.
6218 See the pkg-config man page for more details.
6220 { (exit 1); exit 1; }; }
6221 elif test $pkg_failed = untried; then
6222 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6223 is in your PATH or set the PKG_CONFIG environment variable to the full
6226 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6227 and LIBPNG_LIBS to avoid the need to call pkg-config.
6228 See the pkg-config man page for more details.
6230 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6231 See \`config.log' for more details." >&5
6232 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6233 is in your PATH or set the PKG_CONFIG environment variable to the full
6236 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6237 and LIBPNG_LIBS to avoid the need to call pkg-config.
6238 See the pkg-config man page for more details.
6240 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6241 See \`config.log' for more details." >&2;}
6242 { (exit 1); exit 1; }; }
6244 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
6245 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
6246 { echo "$as_me:$LINENO: result: yes" >&5
6247 echo "${ECHO_T}yes" >&6; }
6252 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
6253 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
6254 if test "${ac_cv_lib_z_uncompress+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 ac_check_lib_save_LIBS=$LIBS
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6266 /* Override any GCC internal prototype to avoid an error.
6267 Use char because int might match the return type of a GCC
6268 builtin and then its argument prototype would still apply. */
6276 return uncompress ();
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (ac_try="$ac_link"
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_link") 2>conftest.er1
6290 grep -v '^ *+' conftest.er1 >conftest.err
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } && {
6295 test -z "$ac_c_werror_flag" ||
6296 test ! -s conftest.err
6297 } && test -s conftest$ac_exeext &&
6298 $as_test_x conftest$ac_exeext; then
6299 ac_cv_lib_z_uncompress=yes
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 ac_cv_lib_z_uncompress=no
6307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6308 conftest$ac_exeext conftest.$ac_ext
6309 LIBS=$ac_check_lib_save_LIBS
6311 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
6312 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
6313 if test $ac_cv_lib_z_uncompress = yes; then
6314 cat >>confdefs.h <<_ACEOF
6322 echo "Zlib (libz.so) could not be found, but is required."
6330 { echo "$as_me:$LINENO: checking for GTK" >&5
6331 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
6333 if test -n "$PKG_CONFIG"; then
6334 if test -n "$GTK_CFLAGS"; then
6335 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
6337 if test -n "$PKG_CONFIG" && \
6338 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
6339 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; then
6343 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
6351 if test -n "$PKG_CONFIG"; then
6352 if test -n "$GTK_LIBS"; then
6353 pkg_cv_GTK_LIBS="$GTK_LIBS"
6355 if test -n "$PKG_CONFIG" && \
6356 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
6357 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; then
6361 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
6372 if test $pkg_failed = yes; then
6374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6375 _pkg_short_errors_supported=yes
6377 _pkg_short_errors_supported=no
6379 if test $_pkg_short_errors_supported = yes; then
6380 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
6382 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
6384 # Put the nasty error message in config.log where it belongs
6385 echo "$GTK_PKG_ERRORS" >&5
6387 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
6391 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6392 installed software in a non-standard prefix.
6394 Alternatively, you may set the environment variables GTK_CFLAGS
6395 and GTK_LIBS to avoid the need to call pkg-config.
6396 See the pkg-config man page for more details.
6398 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
6402 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6403 installed software in a non-standard prefix.
6405 Alternatively, you may set the environment variables GTK_CFLAGS
6406 and GTK_LIBS to avoid the need to call pkg-config.
6407 See the pkg-config man page for more details.
6409 { (exit 1); exit 1; }; }
6410 elif test $pkg_failed = untried; then
6411 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6412 is in your PATH or set the PKG_CONFIG environment variable to the full
6415 Alternatively, you may set the environment variables GTK_CFLAGS
6416 and GTK_LIBS to avoid the need to call pkg-config.
6417 See the pkg-config man page for more details.
6419 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6420 See \`config.log' for more details." >&5
6421 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6422 is in your PATH or set the PKG_CONFIG environment variable to the full
6425 Alternatively, you may set the environment variables GTK_CFLAGS
6426 and GTK_LIBS to avoid the need to call pkg-config.
6427 See the pkg-config man page for more details.
6429 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6430 See \`config.log' for more details." >&2;}
6431 { (exit 1); exit 1; }; }
6433 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
6434 GTK_LIBS=$pkg_cv_GTK_LIBS
6435 { echo "$as_me:$LINENO: result: yes" >&5
6436 echo "${ECHO_T}yes" >&6; }
6440 cat >>confdefs.h <<\_ACEOF
6448 if test "$HAVE_GTK" = 'yes'; then
6457 LIBS="$LIBS $GTK_LIBS"
6458 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
6459 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
6460 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 cat >conftest.$ac_ext <<_ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
6470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6471 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
6473 /* System header to define __stub macros and hopefully few prototypes,
6474 which can conflict with char gdk_x11_display_get_xdisplay (); below.
6475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6476 <limits.h> exists even on freestanding compilers. */
6479 # include <limits.h>
6481 # include <assert.h>
6484 #undef gdk_x11_display_get_xdisplay
6486 /* Override any GCC internal prototype to avoid an error.
6487 Use char because int might match the return type of a GCC
6488 builtin and then its argument prototype would still apply. */
6492 char gdk_x11_display_get_xdisplay ();
6493 /* The GNU C library defines this for functions which it implements
6494 to always fail with ENOSYS. Some functions are actually named
6495 something starting with __ and the normal name is an alias. */
6496 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
6503 return gdk_x11_display_get_xdisplay ();
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (ac_try="$ac_link"
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_link") 2>conftest.er1
6517 grep -v '^ *+' conftest.er1 >conftest.err
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } && {
6522 test -z "$ac_c_werror_flag" ||
6523 test ! -s conftest.err
6524 } && test -s conftest$ac_exeext &&
6525 $as_test_x conftest$ac_exeext; then
6526 ac_cv_func_gdk_x11_display_get_xdisplay=yes
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6531 ac_cv_func_gdk_x11_display_get_xdisplay=no
6534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6535 conftest$ac_exeext conftest.$ac_ext
6537 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
6538 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
6539 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
6543 cat >>confdefs.h <<\_ACEOF
6544 #define HAVE_GTK_X11 1
6549 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
6550 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
6551 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 cat >conftest.$ac_ext <<_ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
6561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6562 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
6564 /* System header to define __stub macros and hopefully few prototypes,
6565 which can conflict with char gdk_quartz_window_get_nsview (); below.
6566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6567 <limits.h> exists even on freestanding compilers. */
6570 # include <limits.h>
6572 # include <assert.h>
6575 #undef gdk_quartz_window_get_nsview
6577 /* Override any GCC internal prototype to avoid an error.
6578 Use char because int might match the return type of a GCC
6579 builtin and then its argument prototype would still apply. */
6583 char gdk_quartz_window_get_nsview ();
6584 /* The GNU C library defines this for functions which it implements
6585 to always fail with ENOSYS. Some functions are actually named
6586 something starting with __ and the normal name is an alias. */
6587 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
6594 return gdk_quartz_window_get_nsview ();
6599 rm -f conftest.$ac_objext conftest$ac_exeext
6600 if { (ac_try="$ac_link"
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_link") 2>conftest.er1
6608 grep -v '^ *+' conftest.er1 >conftest.err
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest$ac_exeext &&
6616 $as_test_x conftest$ac_exeext; then
6617 ac_cv_func_gdk_quartz_window_get_nsview=yes
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_cv_func_gdk_quartz_window_get_nsview=no
6625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6626 conftest$ac_exeext conftest.$ac_ext
6628 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
6629 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
6630 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
6634 cat >>confdefs.h <<\_ACEOF
6635 #define HAVE_GTK_OSX 1
6641 if test "x$with_osmesa" != xno; then
6645 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
6646 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
6647 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 ac_check_lib_save_LIBS=$LIBS
6651 LIBS="-lOSMesa $LIBS"
6652 cat >conftest.$ac_ext <<_ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6659 /* Override any GCC internal prototype to avoid an error.
6660 Use char because int might match the return type of a GCC
6661 builtin and then its argument prototype would still apply. */
6665 char OSMesaCreateContext ();
6669 return OSMesaCreateContext ();
6674 rm -f conftest.$ac_objext conftest$ac_exeext
6675 if { (ac_try="$ac_link"
6677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6678 *) ac_try_echo=$ac_try;;
6680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6681 (eval "$ac_link") 2>conftest.er1
6683 grep -v '^ *+' conftest.er1 >conftest.err
6685 cat conftest.err >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } && {
6688 test -z "$ac_c_werror_flag" ||
6689 test ! -s conftest.err
6690 } && test -s conftest$ac_exeext &&
6691 $as_test_x conftest$ac_exeext; then
6692 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
6694 echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6697 ac_cv_lib_OSMesa_OSMesaCreateContext=no
6700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6701 conftest$ac_exeext conftest.$ac_ext
6702 LIBS=$ac_check_lib_save_LIBS
6704 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
6705 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
6706 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
6707 cat >>confdefs.h <<_ACEOF
6708 #define HAVE_LIBOSMESA 1
6711 LIBS="-lOSMesa $LIBS"
6714 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
6715 See \`config.log' for more details." >&5
6716 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
6717 See \`config.log' for more details." >&2;}
6718 { (exit 1); exit 1; }; }
6721 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
6722 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
6723 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
6724 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
6728 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
6730 # Is the header compilable?
6731 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
6732 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
6733 cat >conftest.$ac_ext <<_ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6739 $ac_includes_default
6740 #include <GL/osmesa.h>
6742 rm -f conftest.$ac_objext
6743 if { (ac_try="$ac_compile"
6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_compile") 2>conftest.er1
6751 grep -v '^ *+' conftest.er1 >conftest.err
6753 cat conftest.err >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } && {
6756 test -z "$ac_c_werror_flag" ||
6757 test ! -s conftest.err
6758 } && test -s conftest.$ac_objext; then
6759 ac_header_compiler=yes
6761 echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6764 ac_header_compiler=no
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6769 echo "${ECHO_T}$ac_header_compiler" >&6; }
6771 # Is the header present?
6772 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
6773 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
6774 cat >conftest.$ac_ext <<_ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6780 #include <GL/osmesa.h>
6782 if { (ac_try="$ac_cpp conftest.$ac_ext"
6784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785 *) ac_try_echo=$ac_try;;
6787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6790 grep -v '^ *+' conftest.er1 >conftest.err
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } >/dev/null && {
6795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6798 ac_header_preproc=yes
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6803 ac_header_preproc=no
6806 rm -f conftest.err conftest.$ac_ext
6807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6808 echo "${ECHO_T}$ac_header_preproc" >&6; }
6810 # So? What about this header?
6811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6813 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
6814 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6815 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
6816 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
6817 ac_header_preproc=yes
6820 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
6821 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
6822 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
6823 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
6824 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
6825 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
6826 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
6827 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
6828 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
6829 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
6830 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
6831 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
6835 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
6836 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
6837 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 ac_cv_header_GL_osmesa_h=$ac_header_preproc
6842 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
6843 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
6846 if test $ac_cv_header_GL_osmesa_h = yes; then
6849 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
6850 See \`config.log' for more details." >&5
6851 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
6852 See \`config.log' for more details." >&2;}
6853 { (exit 1); exit 1; }; }
6859 cat >>confdefs.h <<\_ACEOF
6860 #define HAVE_OSMESA 1
6866 if test "x$APPLE_BUILD" != 'xyes'; then
6868 { echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
6869 echo $ECHO_N "checking for glVertex3f in -lGL... $ECHO_C" >&6; }
6870 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 ac_check_lib_save_LIBS=$LIBS
6875 cat >conftest.$ac_ext <<_ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6882 /* Override any GCC internal prototype to avoid an error.
6883 Use char because int might match the return type of a GCC
6884 builtin and then its argument prototype would still apply. */
6892 return glVertex3f ();
6897 rm -f conftest.$ac_objext conftest$ac_exeext
6898 if { (ac_try="$ac_link"
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_link") 2>conftest.er1
6906 grep -v '^ *+' conftest.er1 >conftest.err
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest$ac_exeext &&
6914 $as_test_x conftest$ac_exeext; then
6915 ac_cv_lib_GL_glVertex3f=yes
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6920 ac_cv_lib_GL_glVertex3f=no
6923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6924 conftest$ac_exeext conftest.$ac_ext
6925 LIBS=$ac_check_lib_save_LIBS
6927 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
6928 echo "${ECHO_T}$ac_cv_lib_GL_glVertex3f" >&6; }
6929 if test $ac_cv_lib_GL_glVertex3f = yes; then
6930 cat >>confdefs.h <<_ACEOF
6931 #define HAVE_LIBGL 1
6938 { { echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
6939 See \`config.log' for more details." >&5
6940 echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
6941 See \`config.log' for more details." >&2;}
6942 { (exit 1); exit 1; }; }
6945 if test "${ac_cv_header_GL_gl_h+set}" = set; then
6946 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
6947 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
6948 if test "${ac_cv_header_GL_gl_h+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
6952 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
6954 # Is the header compilable?
6955 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
6956 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
6957 cat >conftest.$ac_ext <<_ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 $ac_includes_default
6966 rm -f conftest.$ac_objext
6967 if { (ac_try="$ac_compile"
6969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6970 *) ac_try_echo=$ac_try;;
6972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6973 (eval "$ac_compile") 2>conftest.er1
6975 grep -v '^ *+' conftest.er1 >conftest.err
6977 cat conftest.err >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } && {
6980 test -z "$ac_c_werror_flag" ||
6981 test ! -s conftest.err
6982 } && test -s conftest.$ac_objext; then
6983 ac_header_compiler=yes
6985 echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6988 ac_header_compiler=no
6991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6993 echo "${ECHO_T}$ac_header_compiler" >&6; }
6995 # Is the header present?
6996 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
6997 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
6998 cat >conftest.$ac_ext <<_ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7006 if { (ac_try="$ac_cpp conftest.$ac_ext"
7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7014 grep -v '^ *+' conftest.er1 >conftest.err
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } >/dev/null && {
7019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7020 test ! -s conftest.err
7022 ac_header_preproc=yes
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 ac_header_preproc=no
7030 rm -f conftest.err conftest.$ac_ext
7031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7032 echo "${ECHO_T}$ac_header_preproc" >&6; }
7034 # So? What about this header?
7035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7037 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7038 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7039 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
7040 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
7041 ac_header_preproc=yes
7044 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
7045 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
7046 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
7047 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
7048 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
7049 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
7050 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
7051 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7052 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
7053 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
7054 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
7055 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
7059 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7060 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
7061 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 ac_cv_header_GL_gl_h=$ac_header_preproc
7066 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7067 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
7070 if test $ac_cv_header_GL_gl_h = yes; then
7074 { { echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
7075 See \`config.log' for more details." >&5
7076 echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
7077 See \`config.log' for more details." >&2;}
7078 { (exit 1); exit 1; }; }
7084 if test "x$HAVE_GTK_X11" = "xyes"; then
7085 if test "x$APPLE_BUILD" = "xyes"; then
7086 LIBS="$LIBS -L/usr/X11/lib -lGL"
7088 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
7089 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
7090 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 cat >conftest.$ac_ext <<_ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7099 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
7100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7101 #define glXQueryVersion innocuous_glXQueryVersion
7103 /* System header to define __stub macros and hopefully few prototypes,
7104 which can conflict with char glXQueryVersion (); below.
7105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7106 <limits.h> exists even on freestanding compilers. */
7109 # include <limits.h>
7111 # include <assert.h>
7114 #undef glXQueryVersion
7116 /* Override any GCC internal prototype to avoid an error.
7117 Use char because int might match the return type of a GCC
7118 builtin and then its argument prototype would still apply. */
7122 char glXQueryVersion ();
7123 /* The GNU C library defines this for functions which it implements
7124 to always fail with ENOSYS. Some functions are actually named
7125 something starting with __ and the normal name is an alias. */
7126 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
7133 return glXQueryVersion ();
7138 rm -f conftest.$ac_objext conftest$ac_exeext
7139 if { (ac_try="$ac_link"
7141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142 *) ac_try_echo=$ac_try;;
7144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7145 (eval "$ac_link") 2>conftest.er1
7147 grep -v '^ *+' conftest.er1 >conftest.err
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } && {
7152 test -z "$ac_c_werror_flag" ||
7153 test ! -s conftest.err
7154 } && test -s conftest$ac_exeext &&
7155 $as_test_x conftest$ac_exeext; then
7156 ac_cv_func_glXQueryVersion=yes
7158 echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7161 ac_cv_func_glXQueryVersion=no
7164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7165 conftest$ac_exeext conftest.$ac_ext
7167 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
7168 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
7169 if test $ac_cv_func_glXQueryVersion = yes; then
7173 cat >>confdefs.h <<\_ACEOF
7179 elif test "x$HAVE_GTK_OSX" = "xyes"; then
7180 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
7181 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
7182 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 cat >conftest.$ac_ext <<_ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7191 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
7192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7193 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
7195 /* System header to define __stub macros and hopefully few prototypes,
7196 which can conflict with char NSOpenGLGetVersion (); below.
7197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7198 <limits.h> exists even on freestanding compilers. */
7201 # include <limits.h>
7203 # include <assert.h>
7206 #undef NSOpenGLGetVersion
7208 /* Override any GCC internal prototype to avoid an error.
7209 Use char because int might match the return type of a GCC
7210 builtin and then its argument prototype would still apply. */
7214 char NSOpenGLGetVersion ();
7215 /* The GNU C library defines this for functions which it implements
7216 to always fail with ENOSYS. Some functions are actually named
7217 something starting with __ and the normal name is an alias. */
7218 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
7225 return NSOpenGLGetVersion ();
7230 rm -f conftest.$ac_objext conftest$ac_exeext
7231 if { (ac_try="$ac_link"
7233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7234 *) ac_try_echo=$ac_try;;
7236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7237 (eval "$ac_link") 2>conftest.er1
7239 grep -v '^ *+' conftest.er1 >conftest.err
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && {
7244 test -z "$ac_c_werror_flag" ||
7245 test ! -s conftest.err
7246 } && test -s conftest$ac_exeext &&
7247 $as_test_x conftest$ac_exeext; then
7248 ac_cv_func_NSOpenGLGetVersion=yes
7250 echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.$ac_ext >&5
7253 ac_cv_func_NSOpenGLGetVersion=no
7256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7257 conftest$ac_exeext conftest.$ac_ext
7259 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
7260 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
7261 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
7265 cat >>confdefs.h <<\_ACEOF
7278 if test "x$HAVE_OSMESA" = "x" -a "x$HAVE_GLX" = "x" -a "x$HAVE_NSGL" = "x"; then
7279 echo "Warning: Building with no video support"
7284 if test "x$HAVE_OSMESA" = "xyes"; then
7286 VIDEO_OSMESA_FALSE='#'
7288 VIDEO_OSMESA_TRUE='#'
7294 if test "x$HAVE_GLX" = "xyes"; then
7304 if test "x$HAVE_NSGL" = "xyes"; then
7306 VIDEO_NSGL_FALSE='#'
7313 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
7314 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
7315 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 cat >conftest.$ac_ext <<_ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7324 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
7325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7326 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
7328 /* System header to define __stub macros and hopefully few prototypes,
7329 which can conflict with char glGenFramebuffersEXT (); below.
7330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7331 <limits.h> exists even on freestanding compilers. */
7334 # include <limits.h>
7336 # include <assert.h>
7339 #undef glGenFramebuffersEXT
7341 /* Override any GCC internal prototype to avoid an error.
7342 Use char because int might match the return type of a GCC
7343 builtin and then its argument prototype would still apply. */
7347 char glGenFramebuffersEXT ();
7348 /* The GNU C library defines this for functions which it implements
7349 to always fail with ENOSYS. Some functions are actually named
7350 something starting with __ and the normal name is an alias. */
7351 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
7358 return glGenFramebuffersEXT ();
7363 rm -f conftest.$ac_objext conftest$ac_exeext
7364 if { (ac_try="$ac_link"
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370 (eval "$ac_link") 2>conftest.er1
7372 grep -v '^ *+' conftest.er1 >conftest.err
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && {
7377 test -z "$ac_c_werror_flag" ||
7378 test ! -s conftest.err
7379 } && test -s conftest$ac_exeext &&
7380 $as_test_x conftest$ac_exeext; then
7381 ac_cv_func_glGenFramebuffersEXT=yes
7383 echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7386 ac_cv_func_glGenFramebuffersEXT=no
7389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7390 conftest$ac_exeext conftest.$ac_ext
7392 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
7393 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
7394 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
7396 cat >>confdefs.h <<\_ACEOF
7397 #define HAVE_OPENGL_FBO 1
7402 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
7403 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
7404 if test "${ac_cv_func_glCreateShader+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 cat >conftest.$ac_ext <<_ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */
7413 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
7414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7415 #define glCreateShader innocuous_glCreateShader
7417 /* System header to define __stub macros and hopefully few prototypes,
7418 which can conflict with char glCreateShader (); below.
7419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7420 <limits.h> exists even on freestanding compilers. */
7423 # include <limits.h>
7425 # include <assert.h>
7428 #undef glCreateShader
7430 /* Override any GCC internal prototype to avoid an error.
7431 Use char because int might match the return type of a GCC
7432 builtin and then its argument prototype would still apply. */
7436 char glCreateShader ();
7437 /* The GNU C library defines this for functions which it implements
7438 to always fail with ENOSYS. Some functions are actually named
7439 something starting with __ and the normal name is an alias. */
7440 #if defined __stub_glCreateShader || defined __stub___glCreateShader
7447 return glCreateShader ();
7452 rm -f conftest.$ac_objext conftest$ac_exeext
7453 if { (ac_try="$ac_link"
7455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7456 *) ac_try_echo=$ac_try;;
7458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7459 (eval "$ac_link") 2>conftest.er1
7461 grep -v '^ *+' conftest.er1 >conftest.err
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } && {
7466 test -z "$ac_c_werror_flag" ||
7467 test ! -s conftest.err
7468 } && test -s conftest$ac_exeext &&
7469 $as_test_x conftest$ac_exeext; then
7470 ac_cv_func_glCreateShader=yes
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7475 ac_cv_func_glCreateShader=no
7478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7479 conftest$ac_exeext conftest.$ac_ext
7481 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
7482 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
7483 if test $ac_cv_func_glCreateShader = yes; then
7485 cat >>confdefs.h <<\_ACEOF
7486 #define HAVE_OPENGL_SHADER 1
7491 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
7492 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
7493 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7496 cat >conftest.$ac_ext <<_ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
7503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7504 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
7506 /* System header to define __stub macros and hopefully few prototypes,
7507 which can conflict with char glCreateShaderObjectARB (); below.
7508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7509 <limits.h> exists even on freestanding compilers. */
7512 # include <limits.h>
7514 # include <assert.h>
7517 #undef glCreateShaderObjectARB
7519 /* Override any GCC internal prototype to avoid an error.
7520 Use char because int might match the return type of a GCC
7521 builtin and then its argument prototype would still apply. */
7525 char glCreateShaderObjectARB ();
7526 /* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
7529 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
7536 return glCreateShaderObjectARB ();
7541 rm -f conftest.$ac_objext conftest$ac_exeext
7542 if { (ac_try="$ac_link"
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_link") 2>conftest.er1
7550 grep -v '^ *+' conftest.er1 >conftest.err
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } && {
7555 test -z "$ac_c_werror_flag" ||
7556 test ! -s conftest.err
7557 } && test -s conftest$ac_exeext &&
7558 $as_test_x conftest$ac_exeext; then
7559 ac_cv_func_glCreateShaderObjectARB=yes
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7564 ac_cv_func_glCreateShaderObjectARB=no
7567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7568 conftest$ac_exeext conftest.$ac_ext
7570 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
7571 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
7572 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
7574 cat >>confdefs.h <<\_ACEOF
7575 #define HAVE_OPENGL_SHADER_ARB 1
7583 i386|i486|i586|i686)
7584 SH4_TRANSLATOR="x86"
7586 cat >>confdefs.h <<_ACEOF
7587 #define SH4_TRANSLATOR TARGET_X86
7591 SH4_TRANSLATOR="x86_64"
7593 cat >>confdefs.h <<_ACEOF
7594 #define SH4_TRANSLATOR TARGET_X86_64
7598 echo "Warning: No translator available for $host. Building emulation core only";;
7602 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
7604 BUILD_SH4X86_FALSE='#'
7606 BUILD_SH4X86_TRUE='#'
7612 if test "$SH4_TRANSLATOR" = "x86_64"; then
7614 BUILD_X86_64_FALSE='#'
7616 BUILD_X86_64_TRUE='#'
7623 { echo "$as_me:$LINENO: checking for PULSE" >&5
7624 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
7626 if test -n "$PKG_CONFIG"; then
7627 if test -n "$PULSE_CFLAGS"; then
7628 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
7630 if test -n "$PKG_CONFIG" && \
7631 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
7632 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; then
7636 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
7644 if test -n "$PKG_CONFIG"; then
7645 if test -n "$PULSE_LIBS"; then
7646 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
7648 if test -n "$PKG_CONFIG" && \
7649 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
7650 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; then
7654 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
7665 if test $pkg_failed = yes; then
7667 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7668 _pkg_short_errors_supported=yes
7670 _pkg_short_errors_supported=no
7672 if test $_pkg_short_errors_supported = yes; then
7673 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
7675 PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
7677 # Put the nasty error message in config.log where it belongs
7678 echo "$PULSE_PKG_ERRORS" >&5
7680 { echo "$as_me:$LINENO: result: no" >&5
7681 echo "${ECHO_T}no" >&6; }
7683 elif test $pkg_failed = untried; then
7686 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
7687 PULSE_LIBS=$pkg_cv_PULSE_LIBS
7688 { echo "$as_me:$LINENO: result: yes" >&5
7689 echo "${ECHO_T}yes" >&6; }
7693 cat >>confdefs.h <<\_ACEOF
7694 #define HAVE_PULSE 1
7700 if test "$HAVE_PULSE" = 'yes' ; then
7702 AUDIO_PULSE_FALSE='#'
7704 AUDIO_PULSE_TRUE='#'
7711 { echo "$as_me:$LINENO: checking for ESOUND" >&5
7712 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
7714 if test -n "$PKG_CONFIG"; then
7715 if test -n "$ESOUND_CFLAGS"; then
7716 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
7718 if test -n "$PKG_CONFIG" && \
7719 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
7720 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; then
7724 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
7732 if test -n "$PKG_CONFIG"; then
7733 if test -n "$ESOUND_LIBS"; then
7734 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
7736 if test -n "$PKG_CONFIG" && \
7737 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
7738 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; then
7742 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
7753 if test $pkg_failed = yes; then
7755 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7756 _pkg_short_errors_supported=yes
7758 _pkg_short_errors_supported=no
7760 if test $_pkg_short_errors_supported = yes; then
7761 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
7763 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
7765 # Put the nasty error message in config.log where it belongs
7766 echo "$ESOUND_PKG_ERRORS" >&5
7768 { echo "$as_me:$LINENO: result: no" >&5
7769 echo "${ECHO_T}no" >&6; }
7771 elif test $pkg_failed = untried; then
7774 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
7775 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
7776 { echo "$as_me:$LINENO: result: yes" >&5
7777 echo "${ECHO_T}yes" >&6; }
7781 cat >>confdefs.h <<\_ACEOF
7782 #define HAVE_ESOUND 1
7788 if test "$HAVE_ESOUND" = 'yes' ; then
7790 AUDIO_ESOUND_FALSE='#'
7792 AUDIO_ESOUND_TRUE='#'
7799 { echo "$as_me:$LINENO: checking for ALSA" >&5
7800 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
7802 if test -n "$PKG_CONFIG"; then
7803 if test -n "$ALSA_CFLAGS"; then
7804 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
7806 if test -n "$PKG_CONFIG" && \
7807 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
7808 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; then
7812 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
7820 if test -n "$PKG_CONFIG"; then
7821 if test -n "$ALSA_LIBS"; then
7822 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
7824 if test -n "$PKG_CONFIG" && \
7825 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
7826 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; then
7830 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
7841 if test $pkg_failed = yes; then
7843 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7844 _pkg_short_errors_supported=yes
7846 _pkg_short_errors_supported=no
7848 if test $_pkg_short_errors_supported = yes; then
7849 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
7851 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
7853 # Put the nasty error message in config.log where it belongs
7854 echo "$ALSA_PKG_ERRORS" >&5
7856 { echo "$as_me:$LINENO: result: no" >&5
7857 echo "${ECHO_T}no" >&6; }
7859 elif test $pkg_failed = untried; then
7862 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
7863 ALSA_LIBS=$pkg_cv_ALSA_LIBS
7864 { echo "$as_me:$LINENO: result: yes" >&5
7865 echo "${ECHO_T}yes" >&6; }
7869 cat >>confdefs.h <<\_ACEOF
7876 if test "$HAVE_ALSA" = 'yes' ; then
7878 AUDIO_ALSA_FALSE='#'
7885 if test "x$HAVE_ESOUND" = "x" -a "x$HAVE_ALSA" = "x" -a "x$HAVE_PULSE" = "x"; then
7886 echo "Warning: Building without audio support"
7889 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
7890 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
7891 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
7892 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
7896 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
7898 # Is the header compilable?
7899 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
7900 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
7901 cat >conftest.$ac_ext <<_ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h. */
7907 $ac_includes_default
7908 #include <linux/cdrom.h>
7910 rm -f conftest.$ac_objext
7911 if { (ac_try="$ac_compile"
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_compile") 2>conftest.er1
7919 grep -v '^ *+' conftest.er1 >conftest.err
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } && {
7924 test -z "$ac_c_werror_flag" ||
7925 test ! -s conftest.err
7926 } && test -s conftest.$ac_objext; then
7927 ac_header_compiler=yes
7929 echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7932 ac_header_compiler=no
7935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7937 echo "${ECHO_T}$ac_header_compiler" >&6; }
7939 # Is the header present?
7940 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
7941 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
7942 cat >conftest.$ac_ext <<_ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7948 #include <linux/cdrom.h>
7950 if { (ac_try="$ac_cpp conftest.$ac_ext"
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7958 grep -v '^ *+' conftest.er1 >conftest.err
7960 cat conftest.err >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } >/dev/null && {
7963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7964 test ! -s conftest.err
7966 ac_header_preproc=yes
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7971 ac_header_preproc=no
7974 rm -f conftest.err conftest.$ac_ext
7975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7976 echo "${ECHO_T}$ac_header_preproc" >&6; }
7978 # So? What about this header?
7979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7981 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
7982 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
7984 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
7985 ac_header_preproc=yes
7988 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
7989 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
7990 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
7991 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
7992 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
7993 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
7995 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
7996 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
7997 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
7998 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
7999 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
8003 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
8004 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
8005 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 ac_cv_header_linux_cdrom_h=$ac_header_preproc
8010 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
8011 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
8014 if test $ac_cv_header_linux_cdrom_h = yes; then
8015 HAVE_LINUX_CDROM_H=yes
8018 echo "Linux CDROM support not found, building without it."
8024 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
8026 CDROM_LINUX_FALSE='#'
8028 CDROM_LINUX_TRUE='#'
8033 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
8034 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
8035 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
8036 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
8040 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
8042 # Is the header compilable?
8043 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
8044 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
8045 cat >conftest.$ac_ext <<_ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 $ac_includes_default
8052 #include <linux/joystick.h>
8054 rm -f conftest.$ac_objext
8055 if { (ac_try="$ac_compile"
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_compile") 2>conftest.er1
8063 grep -v '^ *+' conftest.er1 >conftest.err
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } && {
8068 test -z "$ac_c_werror_flag" ||
8069 test ! -s conftest.err
8070 } && test -s conftest.$ac_objext; then
8071 ac_header_compiler=yes
8073 echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8076 ac_header_compiler=no
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8081 echo "${ECHO_T}$ac_header_compiler" >&6; }
8083 # Is the header present?
8084 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
8085 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
8086 cat >conftest.$ac_ext <<_ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092 #include <linux/joystick.h>
8094 if { (ac_try="$ac_cpp conftest.$ac_ext"
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8102 grep -v '^ *+' conftest.er1 >conftest.err
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } >/dev/null && {
8107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8108 test ! -s conftest.err
8110 ac_header_preproc=yes
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8115 ac_header_preproc=no
8118 rm -f conftest.err conftest.$ac_ext
8119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8120 echo "${ECHO_T}$ac_header_preproc" >&6; }
8122 # So? What about this header?
8123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8125 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
8126 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8127 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
8128 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
8129 ac_header_preproc=yes
8132 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
8133 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
8134 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
8135 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
8136 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
8137 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
8138 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
8139 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
8140 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
8141 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
8142 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
8143 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
8147 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
8148 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
8149 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 ac_cv_header_linux_joystick_h=$ac_header_preproc
8154 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
8155 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
8158 if test $ac_cv_header_linux_joystick_h = yes; then
8160 HAVE_LINUX_JOYSTICK_H=yes
8162 cat >>confdefs.h <<\_ACEOF
8163 #define HAVE_LINUX_JOYSTICK 1
8167 echo "Linux Joystick support not found, building without it."
8173 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
8182 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
8183 set dummy sh-elf-gcc; ac_word=$2
8184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8186 if test "${ac_cv_path_SHCC+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
8194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 test -z "$as_dir" && as_dir=.
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8201 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
8202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8212 SHCC=$ac_cv_path_SHCC
8213 if test -n "$SHCC"; then
8214 { echo "$as_me:$LINENO: result: $SHCC" >&5
8215 echo "${ECHO_T}$SHCC" >&6; }
8217 { echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6; }
8222 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
8223 set dummy sh-elf-ld; ac_word=$2
8224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8226 if test "${ac_cv_path_SHLD+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8241 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
8242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 SHLD=$ac_cv_path_SHLD
8253 if test -n "$SHLD"; then
8254 { echo "$as_me:$LINENO: result: $SHLD" >&5
8255 echo "${ECHO_T}$SHLD" >&6; }
8257 { echo "$as_me:$LINENO: result: no" >&5
8258 echo "${ECHO_T}no" >&6; }
8262 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
8263 set dummy sh-elf-objcopy; ac_word=$2
8264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8266 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8281 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
8282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
8293 if test -n "$SHOBJCOPY"; then
8294 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
8295 echo "${ECHO_T}$SHOBJCOPY" >&6; }
8297 { echo "$as_me:$LINENO: result: no" >&5
8298 echo "${ECHO_T}no" >&6; }
8302 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
8303 set dummy arm-elf-gcc; ac_word=$2
8304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8306 if test "${ac_cv_path_ARMCC+set}" = set; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 test -z "$as_dir" && as_dir=.
8319 for ac_exec_ext in '' $ac_executable_extensions; do
8320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8321 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
8322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 ARMCC=$ac_cv_path_ARMCC
8333 if test -n "$ARMCC"; then
8334 { echo "$as_me:$LINENO: result: $ARMCC" >&5
8335 echo "${ECHO_T}$ARMCC" >&6; }
8337 { echo "$as_me:$LINENO: result: no" >&5
8338 echo "${ECHO_T}no" >&6; }
8342 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
8343 set dummy arm-elf-ld; ac_word=$2
8344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8346 if test "${ac_cv_path_ARMLD+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 test -z "$as_dir" && as_dir=.
8359 for ac_exec_ext in '' $ac_executable_extensions; do
8360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8361 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
8362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 ARMLD=$ac_cv_path_ARMLD
8373 if test -n "$ARMLD"; then
8374 { echo "$as_me:$LINENO: result: $ARMLD" >&5
8375 echo "${ECHO_T}$ARMLD" >&6; }
8377 { echo "$as_me:$LINENO: result: no" >&5
8378 echo "${ECHO_T}no" >&6; }
8382 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
8383 set dummy arm-elf-objcopy; ac_word=$2
8384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8386 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8401 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
8402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8412 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
8413 if test -n "$ARMOBJCOPY"; then
8414 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
8415 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
8417 { echo "$as_me:$LINENO: result: no" >&5
8418 echo "${ECHO_T}no" >&6; }
8423 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
8425 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
8429 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
8431 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
8437 if test "$BUILD_SH" = "yes"; then
8439 BUILD_SYSTEST_FALSE='#'
8441 BUILD_SYSTEST_TRUE='#'
8442 BUILD_SYSTEST_FALSE=
8447 if test "$BUILD_ARM" = "yes"; then
8449 BUILD_ARMTEST_FALSE='#'
8451 BUILD_ARMTEST_TRUE='#'
8452 BUILD_ARMTEST_FALSE=
8457 GETTEXT_PACKAGE=lxdream
8460 cat >>confdefs.h <<_ACEOF
8461 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
8465 ALL_LINGUAS="de es it pt_BR"
8468 for ac_header in locale.h
8470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8477 ac_res=`eval echo '${'$as_ac_Header'}'`
8478 { echo "$as_me:$LINENO: result: $ac_res" >&5
8479 echo "${ECHO_T}$ac_res" >&6; }
8481 # Is the header compilable?
8482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8484 cat >conftest.$ac_ext <<_ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8490 $ac_includes_default
8491 #include <$ac_header>
8493 rm -f conftest.$ac_objext
8494 if { (ac_try="$ac_compile"
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_compile") 2>conftest.er1
8502 grep -v '^ *+' conftest.er1 >conftest.err
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && {
8507 test -z "$ac_c_werror_flag" ||
8508 test ! -s conftest.err
8509 } && test -s conftest.$ac_objext; then
8510 ac_header_compiler=yes
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 ac_header_compiler=no
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8520 echo "${ECHO_T}$ac_header_compiler" >&6; }
8522 # Is the header present?
8523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8525 cat >conftest.$ac_ext <<_ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 #include <$ac_header>
8533 if { (ac_try="$ac_cpp conftest.$ac_ext"
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8541 grep -v '^ *+' conftest.er1 >conftest.err
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } >/dev/null && {
8546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8547 test ! -s conftest.err
8549 ac_header_preproc=yes
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 ac_header_preproc=no
8557 rm -f conftest.err conftest.$ac_ext
8558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8559 echo "${ECHO_T}$ac_header_preproc" >&6; }
8561 # So? What about this header?
8562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8568 ac_header_preproc=yes
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 eval "$as_ac_Header=\$ac_header_preproc"
8593 ac_res=`eval echo '${'$as_ac_Header'}'`
8594 { echo "$as_me:$LINENO: result: $ac_res" >&5
8595 echo "${ECHO_T}$ac_res" >&6; }
8598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8599 cat >>confdefs.h <<_ACEOF
8600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8607 if test $ac_cv_header_locale_h = yes; then
8608 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8609 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
8610 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 cat >conftest.$ac_ext <<_ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8628 rm -f conftest.$ac_objext conftest$ac_exeext
8629 if { (ac_try="$ac_link"
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_link") 2>conftest.er1
8637 grep -v '^ *+' conftest.er1 >conftest.err
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } && {
8642 test -z "$ac_c_werror_flag" ||
8643 test ! -s conftest.err
8644 } && test -s conftest$ac_exeext &&
8645 $as_test_x conftest$ac_exeext; then
8646 am_cv_val_LC_MESSAGES=yes
8648 echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8651 am_cv_val_LC_MESSAGES=no
8654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8655 conftest$ac_exeext conftest.$ac_ext
8657 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8658 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
8659 if test $am_cv_val_LC_MESSAGES = yes; then
8661 cat >>confdefs.h <<\_ACEOF
8662 #define HAVE_LC_MESSAGES 1
8670 gt_cv_have_gettext=no
8676 if test "${ac_cv_header_libintl_h+set}" = set; then
8677 { echo "$as_me:$LINENO: checking for libintl.h" >&5
8678 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
8679 if test "${ac_cv_header_libintl_h+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8682 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8683 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
8685 # Is the header compilable?
8686 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
8687 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
8688 cat >conftest.$ac_ext <<_ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694 $ac_includes_default
8695 #include <libintl.h>
8697 rm -f conftest.$ac_objext
8698 if { (ac_try="$ac_compile"
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_compile") 2>conftest.er1
8706 grep -v '^ *+' conftest.er1 >conftest.err
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && {
8711 test -z "$ac_c_werror_flag" ||
8712 test ! -s conftest.err
8713 } && test -s conftest.$ac_objext; then
8714 ac_header_compiler=yes
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_header_compiler=no
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8724 echo "${ECHO_T}$ac_header_compiler" >&6; }
8726 # Is the header present?
8727 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
8728 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
8729 cat >conftest.$ac_ext <<_ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735 #include <libintl.h>
8737 if { (ac_try="$ac_cpp conftest.$ac_ext"
8739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740 *) ac_try_echo=$ac_try;;
8742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8745 grep -v '^ *+' conftest.er1 >conftest.err
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } >/dev/null && {
8750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8751 test ! -s conftest.err
8753 ac_header_preproc=yes
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 ac_header_preproc=no
8761 rm -f conftest.err conftest.$ac_ext
8762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8763 echo "${ECHO_T}$ac_header_preproc" >&6; }
8765 # So? What about this header?
8766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8768 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8769 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8770 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8771 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8772 ac_header_preproc=yes
8775 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8776 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8778 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8780 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8782 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8784 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8786 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8790 { echo "$as_me:$LINENO: checking for libintl.h" >&5
8791 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
8792 if test "${ac_cv_header_libintl_h+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 ac_cv_header_libintl_h=$ac_header_preproc
8797 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8798 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
8801 if test $ac_cv_header_libintl_h = yes; then
8802 gt_cv_func_dgettext_libintl="no"
8803 libintl_extra_libs=""
8806 # First check in libc
8808 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
8809 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
8810 if test "${gt_cv_func_ngettext_libc+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<_ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8820 #include <libintl.h>
8825 return !ngettext ("","", 1)
8830 rm -f conftest.$ac_objext conftest$ac_exeext
8831 if { (ac_try="$ac_link"
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837 (eval "$ac_link") 2>conftest.er1
8839 grep -v '^ *+' conftest.er1 >conftest.err
8841 cat conftest.err >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } && {
8844 test -z "$ac_c_werror_flag" ||
8845 test ! -s conftest.err
8846 } && test -s conftest$ac_exeext &&
8847 $as_test_x conftest$ac_exeext; then
8848 gt_cv_func_ngettext_libc=yes
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 gt_cv_func_ngettext_libc=no
8856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8857 conftest$ac_exeext conftest.$ac_ext
8860 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
8861 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
8863 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8864 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
8865 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
8866 if test "${gt_cv_func_dgettext_libc+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 cat >conftest.$ac_ext <<_ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8876 #include <libintl.h>
8881 return !dgettext ("","")
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (ac_try="$ac_link"
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893 (eval "$ac_link") 2>conftest.er1
8895 grep -v '^ *+' conftest.er1 >conftest.err
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } && {
8900 test -z "$ac_c_werror_flag" ||
8901 test ! -s conftest.err
8902 } && test -s conftest$ac_exeext &&
8903 $as_test_x conftest$ac_exeext; then
8904 gt_cv_func_dgettext_libc=yes
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 gt_cv_func_dgettext_libc=no
8912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8913 conftest$ac_exeext conftest.$ac_ext
8916 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
8917 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
8920 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8922 for ac_func in bind_textdomain_codeset
8924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 cat >conftest.$ac_ext <<_ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8938 #define $ac_func innocuous_$ac_func
8940 /* System header to define __stub macros and hopefully few prototypes,
8941 which can conflict with char $ac_func (); below.
8942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8943 <limits.h> exists even on freestanding compilers. */
8946 # include <limits.h>
8948 # include <assert.h>
8953 /* Override any GCC internal prototype to avoid an error.
8954 Use char because int might match the return type of a GCC
8955 builtin and then its argument prototype would still apply. */
8960 /* The GNU C library defines this for functions which it implements
8961 to always fail with ENOSYS. Some functions are actually named
8962 something starting with __ and the normal name is an alias. */
8963 #if defined __stub_$ac_func || defined __stub___$ac_func
8975 rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (ac_try="$ac_link"
8978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 *) ac_try_echo=$ac_try;;
8981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8982 (eval "$ac_link") 2>conftest.er1
8984 grep -v '^ *+' conftest.er1 >conftest.err
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } && {
8989 test -z "$ac_c_werror_flag" ||
8990 test ! -s conftest.err
8991 } && test -s conftest$ac_exeext &&
8992 $as_test_x conftest$ac_exeext; then
8993 eval "$as_ac_var=yes"
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8998 eval "$as_ac_var=no"
9001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9002 conftest$ac_exeext conftest.$ac_ext
9004 ac_res=`eval echo '${'$as_ac_var'}'`
9005 { echo "$as_me:$LINENO: result: $ac_res" >&5
9006 echo "${ECHO_T}$ac_res" >&6; }
9007 if test `eval echo '${'$as_ac_var'}'` = yes; then
9008 cat >>confdefs.h <<_ACEOF
9009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9018 # If we don't have everything we want, check in libintl
9020 if test "$gt_cv_func_dgettext_libc" != "yes" \
9021 || test "$gt_cv_func_ngettext_libc" != "yes" \
9022 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
9024 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
9025 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
9026 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 ac_check_lib_save_LIBS=$LIBS
9031 cat >conftest.$ac_ext <<_ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9038 /* Override any GCC internal prototype to avoid an error.
9039 Use char because int might match the return type of a GCC
9040 builtin and then its argument prototype would still apply. */
9044 char bindtextdomain ();
9048 return bindtextdomain ();
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (ac_try="$ac_link"
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060 (eval "$ac_link") 2>conftest.er1
9062 grep -v '^ *+' conftest.er1 >conftest.err
9064 cat conftest.err >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } && {
9067 test -z "$ac_c_werror_flag" ||
9068 test ! -s conftest.err
9069 } && test -s conftest$ac_exeext &&
9070 $as_test_x conftest$ac_exeext; then
9071 ac_cv_lib_intl_bindtextdomain=yes
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9076 ac_cv_lib_intl_bindtextdomain=no
9079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9080 conftest$ac_exeext conftest.$ac_ext
9081 LIBS=$ac_check_lib_save_LIBS
9083 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
9084 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
9085 if test $ac_cv_lib_intl_bindtextdomain = yes; then
9086 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
9087 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
9088 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 ac_check_lib_save_LIBS=$LIBS
9093 cat >conftest.$ac_ext <<_ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9100 /* Override any GCC internal prototype to avoid an error.
9101 Use char because int might match the return type of a GCC
9102 builtin and then its argument prototype would still apply. */
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (ac_try="$ac_link"
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122 (eval "$ac_link") 2>conftest.er1
9124 grep -v '^ *+' conftest.er1 >conftest.err
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } && {
9129 test -z "$ac_c_werror_flag" ||
9130 test ! -s conftest.err
9131 } && test -s conftest$ac_exeext &&
9132 $as_test_x conftest$ac_exeext; then
9133 ac_cv_lib_intl_ngettext=yes
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ac_cv_lib_intl_ngettext=no
9141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9142 conftest$ac_exeext conftest.$ac_ext
9143 LIBS=$ac_check_lib_save_LIBS
9145 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
9146 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
9147 if test $ac_cv_lib_intl_ngettext = yes; then
9148 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
9149 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
9150 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 ac_check_lib_save_LIBS=$LIBS
9155 cat >conftest.$ac_ext <<_ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9162 /* Override any GCC internal prototype to avoid an error.
9163 Use char because int might match the return type of a GCC
9164 builtin and then its argument prototype would still apply. */
9177 rm -f conftest.$ac_objext conftest$ac_exeext
9178 if { (ac_try="$ac_link"
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_link") 2>conftest.er1
9186 grep -v '^ *+' conftest.er1 >conftest.err
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && {
9191 test -z "$ac_c_werror_flag" ||
9192 test ! -s conftest.err
9193 } && test -s conftest$ac_exeext &&
9194 $as_test_x conftest$ac_exeext; then
9195 ac_cv_lib_intl_dgettext=yes
9197 echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9200 ac_cv_lib_intl_dgettext=no
9203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9204 conftest$ac_exeext conftest.$ac_ext
9205 LIBS=$ac_check_lib_save_LIBS
9207 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
9208 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
9209 if test $ac_cv_lib_intl_dgettext = yes; then
9210 gt_cv_func_dgettext_libintl=yes
9218 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
9219 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
9220 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
9221 { echo "$as_me:$LINENO: result: " >&5
9222 echo "${ECHO_T}" >&6; }
9223 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
9224 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
9225 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 ac_check_lib_save_LIBS=$LIBS
9229 LIBS="-lintl -liconv $LIBS"
9230 cat >conftest.$ac_ext <<_ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9237 /* Override any GCC internal prototype to avoid an error.
9238 Use char because int might match the return type of a GCC
9239 builtin and then its argument prototype would still apply. */
9252 rm -f conftest.$ac_objext conftest$ac_exeext
9253 if { (ac_try="$ac_link"
9255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9256 *) ac_try_echo=$ac_try;;
9258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9259 (eval "$ac_link") 2>conftest.er1
9261 grep -v '^ *+' conftest.er1 >conftest.err
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } && {
9266 test -z "$ac_c_werror_flag" ||
9267 test ! -s conftest.err
9268 } && test -s conftest$ac_exeext &&
9269 $as_test_x conftest$ac_exeext; then
9270 ac_cv_lib_intl_ngettext=yes
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 ac_cv_lib_intl_ngettext=no
9278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9279 conftest$ac_exeext conftest.$ac_ext
9280 LIBS=$ac_check_lib_save_LIBS
9282 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
9283 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
9284 if test $ac_cv_lib_intl_ngettext = yes; then
9285 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
9286 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
9287 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 ac_check_lib_save_LIBS=$LIBS
9291 LIBS="-lintl -liconv $LIBS"
9292 cat >conftest.$ac_ext <<_ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9299 /* Override any GCC internal prototype to avoid an error.
9300 Use char because int might match the return type of a GCC
9301 builtin and then its argument prototype would still apply. */
9309 return dcgettext ();
9314 rm -f conftest.$ac_objext conftest$ac_exeext
9315 if { (ac_try="$ac_link"
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_link") 2>conftest.er1
9323 grep -v '^ *+' conftest.er1 >conftest.err
9325 cat conftest.err >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } && {
9328 test -z "$ac_c_werror_flag" ||
9329 test ! -s conftest.err
9330 } && test -s conftest$ac_exeext &&
9331 $as_test_x conftest$ac_exeext; then
9332 ac_cv_lib_intl_dcgettext=yes
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9337 ac_cv_lib_intl_dcgettext=no
9340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9341 conftest$ac_exeext conftest.$ac_ext
9342 LIBS=$ac_check_lib_save_LIBS
9344 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
9345 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
9346 if test $ac_cv_lib_intl_dcgettext = yes; then
9347 gt_cv_func_dgettext_libintl=yes
9348 libintl_extra_libs=-liconv
9360 # If we found libintl, then check in it for bind_textdomain_codeset();
9361 # we'll prefer libc if neither have bind_textdomain_codeset(),
9362 # and both have dgettext and ngettext
9364 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
9365 glib_save_LIBS="$LIBS"
9366 LIBS="$LIBS -lintl $libintl_extra_libs"
9367 unset ac_cv_func_bind_textdomain_codeset
9369 for ac_func in bind_textdomain_codeset
9371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 cat >conftest.$ac_ext <<_ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9385 #define $ac_func innocuous_$ac_func
9387 /* System header to define __stub macros and hopefully few prototypes,
9388 which can conflict with char $ac_func (); below.
9389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9390 <limits.h> exists even on freestanding compilers. */
9393 # include <limits.h>
9395 # include <assert.h>
9400 /* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
9407 /* The GNU C library defines this for functions which it implements
9408 to always fail with ENOSYS. Some functions are actually named
9409 something starting with __ and the normal name is an alias. */
9410 #if defined __stub_$ac_func || defined __stub___$ac_func
9422 rm -f conftest.$ac_objext conftest$ac_exeext
9423 if { (ac_try="$ac_link"
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_link") 2>conftest.er1
9431 grep -v '^ *+' conftest.er1 >conftest.err
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest$ac_exeext &&
9439 $as_test_x conftest$ac_exeext; then
9440 eval "$as_ac_var=yes"
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9445 eval "$as_ac_var=no"
9448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9449 conftest$ac_exeext conftest.$ac_ext
9451 ac_res=`eval echo '${'$as_ac_var'}'`
9452 { echo "$as_me:$LINENO: result: $ac_res" >&5
9453 echo "${ECHO_T}$ac_res" >&6; }
9454 if test `eval echo '${'$as_ac_var'}'` = yes; then
9455 cat >>confdefs.h <<_ACEOF
9456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9462 LIBS="$glib_save_LIBS"
9464 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
9465 gt_cv_func_dgettext_libc=no
9467 if test "$gt_cv_func_dgettext_libc" = "yes" \
9468 && test "$gt_cv_func_ngettext_libc" = "yes"; then
9469 gt_cv_func_dgettext_libintl=no
9475 if test "$gt_cv_func_dgettext_libc" = "yes" \
9476 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
9477 gt_cv_have_gettext=yes
9480 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
9481 INTLLIBS="-lintl $libintl_extra_libs"
9484 if test "$gt_cv_have_gettext" = "yes"; then
9486 cat >>confdefs.h <<\_ACEOF
9487 #define HAVE_GETTEXT 1
9490 # Extract the first word of "msgfmt", so it can be a program name with args.
9491 set dummy msgfmt; ac_word=$2
9492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9494 if test "${ac_cv_path_MSGFMT+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9503 for ac_dir in $PATH; do
9504 test -z "$ac_dir" && ac_dir=.
9505 if test -f $ac_dir/$ac_word; then
9506 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
9507 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
9513 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
9517 MSGFMT="$ac_cv_path_MSGFMT"
9518 if test "$MSGFMT" != "no"; then
9519 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
9520 echo "${ECHO_T}$MSGFMT" >&6; }
9522 { echo "$as_me:$LINENO: result: no" >&5
9523 echo "${ECHO_T}no" >&6; }
9525 if test "$MSGFMT" != "no"; then
9526 glib_save_LIBS="$LIBS"
9527 LIBS="$LIBS $INTLLIBS"
9529 for ac_func in dcgettext
9531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 cat >conftest.$ac_ext <<_ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9545 #define $ac_func innocuous_$ac_func
9547 /* System header to define __stub macros and hopefully few prototypes,
9548 which can conflict with char $ac_func (); below.
9549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9550 <limits.h> exists even on freestanding compilers. */
9553 # include <limits.h>
9555 # include <assert.h>
9560 /* Override any GCC internal prototype to avoid an error.
9561 Use char because int might match the return type of a GCC
9562 builtin and then its argument prototype would still apply. */
9567 /* The GNU C library defines this for functions which it implements
9568 to always fail with ENOSYS. Some functions are actually named
9569 something starting with __ and the normal name is an alias. */
9570 #if defined __stub_$ac_func || defined __stub___$ac_func
9582 rm -f conftest.$ac_objext conftest$ac_exeext
9583 if { (ac_try="$ac_link"
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_link") 2>conftest.er1
9591 grep -v '^ *+' conftest.er1 >conftest.err
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && {
9596 test -z "$ac_c_werror_flag" ||
9597 test ! -s conftest.err
9598 } && test -s conftest$ac_exeext &&
9599 $as_test_x conftest$ac_exeext; then
9600 eval "$as_ac_var=yes"
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 eval "$as_ac_var=no"
9608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9609 conftest$ac_exeext conftest.$ac_ext
9611 ac_res=`eval echo '${'$as_ac_var'}'`
9612 { echo "$as_me:$LINENO: result: $ac_res" >&5
9613 echo "${ECHO_T}$ac_res" >&6; }
9614 if test `eval echo '${'$as_ac_var'}'` = yes; then
9615 cat >>confdefs.h <<_ACEOF
9616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9623 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
9624 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
9625 cat >conftest.foo <<_ACEOF
9629 "Content-Type: text/plain; charset=UTF-8\n"
9630 "Project-Id-Version: test 1.0\n"
9631 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
9632 "Last-Translator: test <foo@bar.xx>\n"
9633 "Language-Team: C <LL@li.org>\n"
9634 "MIME-Version: 1.0\n"
9635 "Content-Transfer-Encoding: 8bit\n"
9638 if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
9639 (msgfmt -c -o /dev/null conftest.foo) 2>&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; then
9643 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
9644 echo "${ECHO_T}yes" >&6; }
9645 else { echo "$as_me:$LINENO: result: no" >&5
9646 echo "${ECHO_T}no" >&6; }
9647 echo "$as_me: failed input was:" >&5
9648 sed 's/^/| /' conftest.foo >&5
9651 # Extract the first word of "gmsgfmt", so it can be a program name with args.
9652 set dummy gmsgfmt; ac_word=$2
9653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9655 if test "${ac_cv_path_GMSGFMT+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 test -z "$as_dir" && as_dir=.
9668 for ac_exec_ext in '' $ac_executable_extensions; do
9669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9670 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9678 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9682 GMSGFMT=$ac_cv_path_GMSGFMT
9683 if test -n "$GMSGFMT"; then
9684 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
9685 echo "${ECHO_T}$GMSGFMT" >&6; }
9687 { echo "$as_me:$LINENO: result: no" >&5
9688 echo "${ECHO_T}no" >&6; }
9692 # Extract the first word of "xgettext", so it can be a program name with args.
9693 set dummy xgettext; ac_word=$2
9694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9696 if test "${ac_cv_path_XGETTEXT+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9701 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9705 for ac_dir in $PATH; do
9706 test -z "$ac_dir" && ac_dir=.
9707 if test -f $ac_dir/$ac_word; then
9708 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
9709 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9715 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9719 XGETTEXT="$ac_cv_path_XGETTEXT"
9720 if test "$XGETTEXT" != ":"; then
9721 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9722 echo "${ECHO_T}$XGETTEXT" >&6; }
9724 { echo "$as_me:$LINENO: result: no" >&5
9725 echo "${ECHO_T}no" >&6; }
9728 cat >conftest.$ac_ext <<_ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9738 extern int _nl_msg_cat_cntr;
9739 return _nl_msg_cat_cntr
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (ac_try="$ac_link"
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751 (eval "$ac_link") 2>conftest.er1
9753 grep -v '^ *+' conftest.er1 >conftest.err
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } && {
9758 test -z "$ac_c_werror_flag" ||
9759 test ! -s conftest.err
9760 } && test -s conftest$ac_exeext &&
9761 $as_test_x conftest$ac_exeext; then
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9770 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
9771 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
9772 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 cat >conftest.$ac_ext <<_ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9781 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
9782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9783 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
9785 /* System header to define __stub macros and hopefully few prototypes,
9786 which can conflict with char bind_textdomain_codeset (); below.
9787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9788 <limits.h> exists even on freestanding compilers. */
9791 # include <limits.h>
9793 # include <assert.h>
9796 #undef bind_textdomain_codeset
9798 /* Override any GCC internal prototype to avoid an error.
9799 Use char because int might match the return type of a GCC
9800 builtin and then its argument prototype would still apply. */
9804 char bind_textdomain_codeset ();
9805 /* The GNU C library defines this for functions which it implements
9806 to always fail with ENOSYS. Some functions are actually named
9807 something starting with __ and the normal name is an alias. */
9808 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
9815 return bind_textdomain_codeset ();
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (ac_try="$ac_link"
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_link") 2>conftest.er1
9829 grep -v '^ *+' conftest.er1 >conftest.err
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } && {
9834 test -z "$ac_c_werror_flag" ||
9835 test ! -s conftest.err
9836 } && test -s conftest$ac_exeext &&
9837 $as_test_x conftest$ac_exeext; then
9838 ac_cv_func_bind_textdomain_codeset=yes
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 ac_cv_func_bind_textdomain_codeset=no
9846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9847 conftest$ac_exeext conftest.$ac_ext
9849 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
9850 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
9851 if test $ac_cv_func_bind_textdomain_codeset = yes; then
9867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9868 conftest$ac_exeext conftest.$ac_ext
9869 LIBS="$glib_save_LIBS"
9872 gt_cv_have_gettext=no
9880 if test "$gt_cv_have_gettext" = "yes" ; then
9882 cat >>confdefs.h <<\_ACEOF
9883 #define ENABLE_NLS 1
9888 if test "$XGETTEXT" != ":"; then
9889 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9892 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
9893 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
9898 # We need to process the po/ directory.
9901 ac_config_commands="$ac_config_commands default-1"
9904 for lang in $ALL_LINGUAS; do
9905 GMOFILES="$GMOFILES $lang.gmo"
9906 POFILES="$POFILES $lang.po"
9921 if test "$gt_cv_have_gettext" = "yes"; then
9922 if test "x$ALL_LINGUAS" = "x"; then
9925 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9926 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
9928 for presentlang in $ALL_LINGUAS; do
9930 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
9931 desiredlanguages="$LINGUAS"
9933 desiredlanguages="$ALL_LINGUAS"
9935 for desiredlang in $desiredlanguages; do
9936 # Use the presentlang catalog if desiredlang is
9937 # a. equal to presentlang, or
9938 # b. a variant of presentlang (because in this case,
9939 # presentlang can be used as a fallback for messages
9940 # which are not translated in the desiredlang catalog).
9941 case "$desiredlang" in
9942 "$presentlang"*) useit=yes;;
9945 if test $useit = yes; then
9946 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
9949 LINGUAS=$NEW_LINGUAS
9950 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
9951 echo "${ECHO_T}$LINGUAS" >&6; }
9954 if test -n "$LINGUAS"; then
9955 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9960 if test -n "$ac_aux_dir"; then
9961 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
9963 if test -z "$MKINSTALLDIRS"; then
9964 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
9968 test -d po || mkdir po
9969 if test "x$srcdir" != "x."; then
9970 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9971 posrcprefix="$srcdir/"
9973 posrcprefix="../$srcdir/"
9979 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9980 < $srcdir/po/POTFILES.in > po/POTFILES
9983 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
9985 cat >confcache <<\_ACEOF
9986 # This file is a shell script that caches the results of configure
9987 # tests run on this system so they can be shared between configure
9988 # scripts and configure runs, see configure's option --config-cache.
9989 # It is not useful on other systems. If it contains results you don't
9990 # want to keep, you may remove or edit it.
9992 # config.status only pays attention to the cache file if you give it
9993 # the --recheck option to rerun configure.
9995 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9996 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10001 # The following way of writing the cache mishandles newlines in values,
10002 # but we know of no workaround that is simple, portable, and efficient.
10003 # So, we kill variables containing newlines.
10004 # Ultrix sh set writes to stderr and can't be redirected directly,
10005 # and sets the high bit in the cache file unless we assign to the vars.
10007 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10008 eval ac_val=\$$ac_var
10012 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10013 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10016 _ | IFS | as_nl) ;; #(
10017 *) $as_unset $ac_var ;;
10023 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10024 *${as_nl}ac_space=\ *)
10025 # `set' does not quote correctly, so add quotes (double-quote
10026 # substitution turns \\\\ into \\, and sed turns \\ into \).
10029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10032 # `set' quotes correctly as required by POSIX, so do not add quotes.
10033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10042 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10044 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10046 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10047 if test -w "$cache_file"; then
10048 test "x$cache_file" != "x/dev/null" &&
10049 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10050 echo "$as_me: updating cache $cache_file" >&6;}
10051 cat confcache >$cache_file
10053 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10054 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10060 # Let make expand exec_prefix.
10061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10063 DEFS=-DHAVE_CONFIG_H
10067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10068 # 1. Remove the extension, and $U if already installed.
10069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10070 ac_i=`echo "$ac_i" | sed "$ac_script"`
10071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10072 # will be set to the directory where LIBOBJS objects are built.
10073 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10074 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10076 LIBOBJS=$ac_libobjs
10078 LTLIBOBJS=$ac_ltlibobjs
10081 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10082 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10083 Usually this means the macro was only invoked conditionally." >&5
10084 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10085 Usually this means the macro was only invoked conditionally." >&2;}
10086 { (exit 1); exit 1; }; }
10088 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10089 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10090 Usually this means the macro was only invoked conditionally." >&5
10091 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10092 Usually this means the macro was only invoked conditionally." >&2;}
10093 { (exit 1); exit 1; }; }
10095 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10096 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10097 Usually this means the macro was only invoked conditionally." >&5
10098 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10099 Usually this means the macro was only invoked conditionally." >&2;}
10100 { (exit 1); exit 1; }; }
10102 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10103 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10104 Usually this means the macro was only invoked conditionally." >&5
10105 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10106 Usually this means the macro was only invoked conditionally." >&2;}
10107 { (exit 1); exit 1; }; }
10109 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10110 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10111 Usually this means the macro was only invoked conditionally." >&5
10112 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10113 Usually this means the macro was only invoked conditionally." >&2;}
10114 { (exit 1); exit 1; }; }
10116 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
10117 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
10118 Usually this means the macro was only invoked conditionally." >&5
10119 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
10120 Usually this means the macro was only invoked conditionally." >&2;}
10121 { (exit 1); exit 1; }; }
10123 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
10124 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
10125 Usually this means the macro was only invoked conditionally." >&5
10126 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
10127 Usually this means the macro was only invoked conditionally." >&2;}
10128 { (exit 1); exit 1; }; }
10130 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
10131 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
10132 Usually this means the macro was only invoked conditionally." >&5
10133 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
10134 Usually this means the macro was only invoked conditionally." >&2;}
10135 { (exit 1); exit 1; }; }
10137 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
10138 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
10139 Usually this means the macro was only invoked conditionally." >&5
10140 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
10141 Usually this means the macro was only invoked conditionally." >&2;}
10142 { (exit 1); exit 1; }; }
10144 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
10145 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
10146 Usually this means the macro was only invoked conditionally." >&5
10147 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
10148 Usually this means the macro was only invoked conditionally." >&2;}
10149 { (exit 1); exit 1; }; }
10151 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
10152 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
10153 Usually this means the macro was only invoked conditionally." >&5
10154 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
10155 Usually this means the macro was only invoked conditionally." >&2;}
10156 { (exit 1); exit 1; }; }
10158 if test -z "${BUILD_X86_64_TRUE}" && test -z "${BUILD_X86_64_FALSE}"; then
10159 { { echo "$as_me:$LINENO: error: conditional \"BUILD_X86_64\" was never defined.
10160 Usually this means the macro was only invoked conditionally." >&5
10161 echo "$as_me: error: conditional \"BUILD_X86_64\" was never defined.
10162 Usually this means the macro was only invoked conditionally." >&2;}
10163 { (exit 1); exit 1; }; }
10165 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
10166 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
10167 Usually this means the macro was only invoked conditionally." >&5
10168 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
10169 Usually this means the macro was only invoked conditionally." >&2;}
10170 { (exit 1); exit 1; }; }
10172 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
10173 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
10174 Usually this means the macro was only invoked conditionally." >&5
10175 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
10176 Usually this means the macro was only invoked conditionally." >&2;}
10177 { (exit 1); exit 1; }; }
10179 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
10180 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
10181 Usually this means the macro was only invoked conditionally." >&5
10182 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
10183 Usually this means the macro was only invoked conditionally." >&2;}
10184 { (exit 1); exit 1; }; }
10186 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
10187 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
10188 Usually this means the macro was only invoked conditionally." >&5
10189 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
10190 Usually this means the macro was only invoked conditionally." >&2;}
10191 { (exit 1); exit 1; }; }
10193 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
10194 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
10195 Usually this means the macro was only invoked conditionally." >&5
10196 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
10197 Usually this means the macro was only invoked conditionally." >&2;}
10198 { (exit 1); exit 1; }; }
10200 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
10201 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
10202 Usually this means the macro was only invoked conditionally." >&5
10203 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
10204 Usually this means the macro was only invoked conditionally." >&2;}
10205 { (exit 1); exit 1; }; }
10207 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
10208 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
10209 Usually this means the macro was only invoked conditionally." >&5
10210 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
10211 Usually this means the macro was only invoked conditionally." >&2;}
10212 { (exit 1); exit 1; }; }
10215 : ${CONFIG_STATUS=./config.status}
10216 ac_clean_files_save=$ac_clean_files
10217 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10218 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10219 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10220 cat >$CONFIG_STATUS <<_ACEOF
10222 # Generated by $as_me.
10223 # Run this file to recreate the current configuration.
10224 # Compiler output produced by configure, useful for debugging
10225 # configure, is in config.log if it exists.
10228 ac_cs_recheck=false
10230 SHELL=\${CONFIG_SHELL-$SHELL}
10233 cat >>$CONFIG_STATUS <<\_ACEOF
10234 ## --------------------- ##
10235 ## M4sh Initialization. ##
10236 ## --------------------- ##
10238 # Be more Bourne compatible
10239 DUALCASE=1; export DUALCASE # for MKS sh
10240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10244 # is contrary to our usage. Disable this feature.
10245 alias -g '${1+"$@"}'='"$@"'
10246 setopt NO_GLOB_SUBST
10248 case `(set -o) 2>/dev/null` in
10249 *posix*) set -o posix ;;
10258 # Avoid depending upon Character Ranges.
10259 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10260 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10261 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10262 as_cr_digits='0123456789'
10263 as_cr_alnum=$as_cr_Letters$as_cr_digits
10265 # The user is always right.
10266 if test "${PATH_SEPARATOR+set}" != set; then
10267 echo "#! /bin/sh" >conf$$.sh
10268 echo "exit 0" >>conf$$.sh
10270 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10278 # Support unset when possible.
10279 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10287 # We need space, tab and new line, in precisely that order. Quoting is
10288 # there to prevent editors from complaining about space-tab.
10289 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10290 # splitting by setting IFS to empty value.)
10295 # Find who we are. Look in the path if we contain no directory separator.
10297 *[\\/]* ) as_myself=$0 ;;
10298 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in $PATH
10302 test -z "$as_dir" && as_dir=.
10303 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10309 # We did not find ourselves, most probably we were run as `sh COMMAND'
10310 # in which case we are not to be found in the path.
10311 if test "x$as_myself" = x; then
10314 if test ! -f "$as_myself"; then
10315 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10316 { (exit 1); exit 1; }
10319 # Work around bugs in pre-3.0 UWIN ksh.
10320 for as_var in ENV MAIL MAILPATH
10321 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10329 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10330 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10331 LC_TELEPHONE LC_TIME
10333 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10334 eval $as_var=C; export $as_var
10336 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10340 # Required to use basename.
10341 if expr a : '\(a\)' >/dev/null 2>&1 &&
10342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10348 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10349 as_basename=basename
10355 # Name of the executable.
10356 as_me=`$as_basename -- "$0" ||
10357 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10358 X"$0" : 'X\(//\)$' \| \
10359 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10361 sed '/^.*\/\([^/][^/]*\)\/*$/{
10380 as_lineno_1=$LINENO
10381 as_lineno_2=$LINENO
10382 test "x$as_lineno_1" != "x$as_lineno_2" &&
10383 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10385 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10386 # uniformly replaced by the line number. The first 'sed' inserts a
10387 # line-number line after each line using $LINENO; the second 'sed'
10388 # does the real work. The second script uses 'N' to pair each
10389 # line-number line with the line containing $LINENO, and appends
10390 # trailing '-' during substitution so that $LINENO is not a special
10391 # case at line end.
10392 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10393 # scripts with optimization help from Paolo Bonzini. Blame Lee
10394 # E. McMahon (1931-1989) for sed's syntax. :-)
10406 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10409 ' >$as_me.lineno &&
10410 chmod +x "$as_me.lineno" ||
10411 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10412 { (exit 1); exit 1; }; }
10414 # Don't try to exec as it changes $[0], causing all sort of problems
10415 # (the dirname of $[0] is not the place where we might find the
10416 # original and so on. Autoconf is especially sensitive to this).
10417 . "./$as_me.lineno"
10418 # Exit status is that of the last command.
10423 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10429 ECHO_C= ECHO_N= ECHO_T=
10430 case `echo -n x` in
10432 case `echo 'x\c'` in
10433 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10440 if expr a : '\(a\)' >/dev/null 2>&1 &&
10441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10447 rm -f conf$$ conf$$.exe conf$$.file
10448 if test -d conf$$.dir; then
10449 rm -f conf$$.dir/conf$$.file
10455 if ln -s conf$$.file conf$$ 2>/dev/null; then
10457 # ... but there are two gotchas:
10458 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10459 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10460 # In both cases, we have to default to `cp -p'.
10461 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10463 elif ln conf$$.file conf$$ 2>/dev/null; then
10468 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10469 rmdir conf$$.dir 2>/dev/null
10471 if mkdir -p . 2>/dev/null; then
10474 test -d ./-p && rmdir ./-p
10478 if test -x / >/dev/null 2>&1; then
10479 as_test_x='test -x'
10481 if ls -dL / >/dev/null 2>&1; then
10488 if test -d "$1"; then
10494 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10495 ???[sx]*):;;*)false;;esac;fi
10499 as_executable_p=$as_test_x
10501 # Sed expression to map a string onto a valid CPP name.
10502 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10504 # Sed expression to map a string onto a valid variable name.
10505 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10510 # Save the log message, to keep $[0] and so on meaningful, and to
10511 # report actual input values of CONFIG_FILES etc. instead of their
10512 # values after options handling.
10514 This file was extended by $as_me, which was
10515 generated by GNU Autoconf 2.61. Invocation command line was
10517 CONFIG_FILES = $CONFIG_FILES
10518 CONFIG_HEADERS = $CONFIG_HEADERS
10519 CONFIG_LINKS = $CONFIG_LINKS
10520 CONFIG_COMMANDS = $CONFIG_COMMANDS
10523 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10528 cat >>$CONFIG_STATUS <<_ACEOF
10529 # Files that config.status was made for.
10530 config_files="$ac_config_files"
10531 config_headers="$ac_config_headers"
10532 config_commands="$ac_config_commands"
10536 cat >>$CONFIG_STATUS <<\_ACEOF
10538 \`$as_me' instantiates files from templates according to the
10539 current configuration.
10541 Usage: $0 [OPTIONS] [FILE]...
10543 -h, --help print this help, then exit
10544 -V, --version print version number and configuration settings, then exit
10545 -q, --quiet do not print progress messages
10546 -d, --debug don't remove temporary files
10547 --recheck update $as_me by reconfiguring in the same conditions
10548 --file=FILE[:TEMPLATE]
10549 instantiate the configuration file FILE
10550 --header=FILE[:TEMPLATE]
10551 instantiate the configuration header FILE
10553 Configuration files:
10556 Configuration headers:
10559 Configuration commands:
10562 Report bugs to <bug-autoconf@gnu.org>."
10565 cat >>$CONFIG_STATUS <<_ACEOF
10568 configured by $0, generated by GNU Autoconf 2.61,
10569 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10571 Copyright (C) 2006 Free Software Foundation, Inc.
10572 This config.status script is free software; the Free Software Foundation
10573 gives unlimited permission to copy, distribute and modify it."
10580 cat >>$CONFIG_STATUS <<\_ACEOF
10581 # If no file are specified by the user, then we need to provide default
10582 # value. By we need to know if files were specified by the user.
10588 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10589 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10600 # Handling of the options.
10601 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10603 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10604 echo "$ac_cs_version"; exit ;;
10605 --debug | --debu | --deb | --de | --d | -d )
10607 --file | --fil | --fi | --f )
10609 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10610 ac_need_defaults=false;;
10611 --header | --heade | --head | --hea )
10613 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10614 ac_need_defaults=false;;
10616 # Conflict between --help and --header
10617 { echo "$as_me: error: ambiguous option: $1
10618 Try \`$0 --help' for more information." >&2
10619 { (exit 1); exit 1; }; };;
10620 --help | --hel | -h )
10621 echo "$ac_cs_usage"; exit ;;
10622 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10623 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10626 # This is an error.
10627 -*) { echo "$as_me: error: unrecognized option: $1
10628 Try \`$0 --help' for more information." >&2
10629 { (exit 1); exit 1; }; } ;;
10631 *) ac_config_targets="$ac_config_targets $1"
10632 ac_need_defaults=false ;;
10638 ac_configure_extra_args=
10640 if $ac_cs_silent; then
10642 ac_configure_extra_args="$ac_configure_extra_args --silent"
10646 cat >>$CONFIG_STATUS <<_ACEOF
10647 if \$ac_cs_recheck; then
10648 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10649 CONFIG_SHELL=$SHELL
10650 export CONFIG_SHELL
10651 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10655 cat >>$CONFIG_STATUS <<\_ACEOF
10659 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10660 ## Running $as_me. ##
10666 cat >>$CONFIG_STATUS <<_ACEOF
10670 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10675 cat >>$CONFIG_STATUS <<\_ACEOF
10677 # Handling of arguments.
10678 for ac_config_target in $ac_config_targets
10680 case $ac_config_target in
10681 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10682 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10683 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10684 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10685 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10686 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10687 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
10689 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10690 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10691 { (exit 1); exit 1; }; };;
10696 # If the user did not use the arguments to specify the items to instantiate,
10697 # then the envvar interface is used. Set only those that are not.
10698 # We use the long form for the default assignment because of an extremely
10699 # bizarre bug on SunOS 4.1.3.
10700 if $ac_need_defaults; then
10701 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10702 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10703 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10706 # Have a temporary directory for convenience. Make it in the build tree
10707 # simply because there is no reason against having it here, and in addition,
10708 # creating and moving files from /tmp can sometimes cause problems.
10709 # Hook for its removal unless debugging.
10710 # Note that there is a small window in which the directory will not be cleaned:
10711 # after its creation but before its name has been assigned to `$tmp'.
10715 trap 'exit_status=$?
10716 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10718 trap '{ (exit 1); exit 1; }' 1 2 13 15
10720 # Create a (secure) tmp directory for tmp files.
10723 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10724 test -n "$tmp" && test -d "$tmp"
10727 tmp=./conf$$-$RANDOM
10728 (umask 077 && mkdir "$tmp")
10731 echo "$me: cannot create a temporary directory in ." >&2
10732 { (exit 1); exit 1; }
10736 # Set up the sed scripts for CONFIG_FILES section.
10739 # No need to generate the scripts if there are no CONFIG_FILES.
10740 # This happens for instance when ./config.status config.h
10741 if test -n "$CONFIG_FILES"; then
10748 for ac_last_try in false false false false false :; do
10749 cat >conf$$subs.sed <<_ACEOF
10750 SHELL!$SHELL$ac_delim
10751 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10752 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10753 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10754 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10755 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10756 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10757 exec_prefix!$exec_prefix$ac_delim
10758 prefix!$prefix$ac_delim
10759 program_transform_name!$program_transform_name$ac_delim
10760 bindir!$bindir$ac_delim
10761 sbindir!$sbindir$ac_delim
10762 libexecdir!$libexecdir$ac_delim
10763 datarootdir!$datarootdir$ac_delim
10764 datadir!$datadir$ac_delim
10765 sysconfdir!$sysconfdir$ac_delim
10766 sharedstatedir!$sharedstatedir$ac_delim
10767 localstatedir!$localstatedir$ac_delim
10768 includedir!$includedir$ac_delim
10769 oldincludedir!$oldincludedir$ac_delim
10770 docdir!$docdir$ac_delim
10771 infodir!$infodir$ac_delim
10772 htmldir!$htmldir$ac_delim
10773 dvidir!$dvidir$ac_delim
10774 pdfdir!$pdfdir$ac_delim
10775 psdir!$psdir$ac_delim
10776 libdir!$libdir$ac_delim
10777 localedir!$localedir$ac_delim
10778 mandir!$mandir$ac_delim
10779 DEFS!$DEFS$ac_delim
10780 ECHO_C!$ECHO_C$ac_delim
10781 ECHO_N!$ECHO_N$ac_delim
10782 ECHO_T!$ECHO_T$ac_delim
10783 LIBS!$LIBS$ac_delim
10784 build_alias!$build_alias$ac_delim
10785 host_alias!$host_alias$ac_delim
10786 target_alias!$target_alias$ac_delim
10787 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10788 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10789 INSTALL_DATA!$INSTALL_DATA$ac_delim
10790 CYGPATH_W!$CYGPATH_W$ac_delim
10791 PACKAGE!$PACKAGE$ac_delim
10792 VERSION!$VERSION$ac_delim
10793 ACLOCAL!$ACLOCAL$ac_delim
10794 AUTOCONF!$AUTOCONF$ac_delim
10795 AUTOMAKE!$AUTOMAKE$ac_delim
10796 AUTOHEADER!$AUTOHEADER$ac_delim
10797 MAKEINFO!$MAKEINFO$ac_delim
10798 install_sh!$install_sh$ac_delim
10799 STRIP!$STRIP$ac_delim
10800 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10801 mkdir_p!$mkdir_p$ac_delim
10803 SET_MAKE!$SET_MAKE$ac_delim
10804 am__leading_dot!$am__leading_dot$ac_delim
10805 AMTAR!$AMTAR$ac_delim
10806 am__tar!$am__tar$ac_delim
10807 am__untar!$am__untar$ac_delim
10808 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
10809 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
10810 MAINT!$MAINT$ac_delim
10812 CFLAGS!$CFLAGS$ac_delim
10813 LDFLAGS!$LDFLAGS$ac_delim
10814 CPPFLAGS!$CPPFLAGS$ac_delim
10815 ac_ct_CC!$ac_ct_CC$ac_delim
10816 EXEEXT!$EXEEXT$ac_delim
10817 OBJEXT!$OBJEXT$ac_delim
10818 DEPDIR!$DEPDIR$ac_delim
10819 am__include!$am__include$ac_delim
10820 am__quote!$am__quote$ac_delim
10821 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10822 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10823 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10824 CCDEPMODE!$CCDEPMODE$ac_delim
10825 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
10826 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
10827 CCAS!$CCAS$ac_delim
10828 CCASFLAGS!$CCASFLAGS$ac_delim
10830 GREP!$GREP$ac_delim
10831 EGREP!$EGREP$ac_delim
10832 build!$build$ac_delim
10833 build_cpu!$build_cpu$ac_delim
10834 build_vendor!$build_vendor$ac_delim
10835 build_os!$build_os$ac_delim
10836 host!$host$ac_delim
10837 host_cpu!$host_cpu$ac_delim
10838 host_vendor!$host_vendor$ac_delim
10839 host_os!$host_os$ac_delim
10840 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
10841 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
10842 PKG_CONFIG!$PKG_CONFIG$ac_delim
10843 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
10844 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
10845 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
10846 GTK_LIBS!$GTK_LIBS$ac_delim
10849 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10851 elif $ac_last_try; then
10852 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10853 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10854 { (exit 1); exit 1; }; }
10856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10860 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10861 if test -n "$ac_eof"; then
10862 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10863 ac_eof=`expr $ac_eof + 1`
10866 cat >>$CONFIG_STATUS <<_ACEOF
10867 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10871 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10872 s/^/s,@/; s/!/@,|#_!!_#|/
10875 s/'"$ac_delim"'$/,g/; t
10877 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10878 ' >>$CONFIG_STATUS <conf$$subs.sed
10879 rm -f conf$$subs.sed
10880 cat >>$CONFIG_STATUS <<_ACEOF
10886 for ac_last_try in false false false false false :; do
10887 cat >conf$$subs.sed <<_ACEOF
10888 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
10889 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
10890 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
10891 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
10892 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
10893 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
10894 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
10895 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
10896 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
10897 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
10898 BUILD_X86_64_TRUE!$BUILD_X86_64_TRUE$ac_delim
10899 BUILD_X86_64_FALSE!$BUILD_X86_64_FALSE$ac_delim
10900 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
10901 PULSE_LIBS!$PULSE_LIBS$ac_delim
10902 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
10903 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
10904 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
10905 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
10906 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
10907 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
10908 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
10909 ALSA_LIBS!$ALSA_LIBS$ac_delim
10910 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
10911 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
10912 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
10913 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
10914 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
10915 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
10916 SHCC!$SHCC$ac_delim
10917 SHLD!$SHLD$ac_delim
10918 SHOBJCOPY!$SHOBJCOPY$ac_delim
10919 ARMCC!$ARMCC$ac_delim
10920 ARMLD!$ARMLD$ac_delim
10921 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
10922 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
10923 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
10924 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
10925 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
10926 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
10927 USE_NLS!$USE_NLS$ac_delim
10928 MSGFMT!$MSGFMT$ac_delim
10929 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
10930 GMSGFMT!$GMSGFMT$ac_delim
10931 XGETTEXT!$XGETTEXT$ac_delim
10932 CATALOGS!$CATALOGS$ac_delim
10933 CATOBJEXT!$CATOBJEXT$ac_delim
10934 DATADIRNAME!$DATADIRNAME$ac_delim
10935 GMOFILES!$GMOFILES$ac_delim
10936 INSTOBJEXT!$INSTOBJEXT$ac_delim
10937 INTLLIBS!$INTLLIBS$ac_delim
10938 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
10939 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
10940 POFILES!$POFILES$ac_delim
10941 POSUB!$POSUB$ac_delim
10942 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
10943 LIBOBJS!$LIBOBJS$ac_delim
10944 LTLIBOBJS!$LTLIBOBJS$ac_delim
10947 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
10949 elif $ac_last_try; then
10950 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10951 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10952 { (exit 1); exit 1; }; }
10954 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10958 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10959 if test -n "$ac_eof"; then
10960 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10961 ac_eof=`expr $ac_eof + 1`
10964 cat >>$CONFIG_STATUS <<_ACEOF
10965 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10969 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10970 s/^/s,@/; s/!/@,|#_!!_#|/
10973 s/'"$ac_delim"'$/,g/; t
10975 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10976 ' >>$CONFIG_STATUS <conf$$subs.sed
10977 rm -f conf$$subs.sed
10978 cat >>$CONFIG_STATUS <<_ACEOF
10985 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10986 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10987 # trailing colons and then remove the whole line if VPATH becomes empty
10988 # (actually we leave an empty line to preserve line numbers).
10989 if test "x$srcdir" = x.; then
10990 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10991 s/:*\$(srcdir):*/:/
10992 s/:*\${srcdir}:*/:/
10994 s/^\([^=]*=[ ]*\):*/\1/
11000 cat >>$CONFIG_STATUS <<\_ACEOF
11001 fi # test -n "$CONFIG_FILES"
11004 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11007 :[FHLC]) ac_mode=$ac_tag; continue;;
11009 case $ac_mode$ac_tag in
11011 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11012 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11013 { (exit 1); exit 1; }; };;
11014 :[FH]-) ac_tag=-:-;;
11015 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11032 -) ac_f="$tmp/stdin";;
11033 *) # Look for the file first in the build tree, then in the source tree
11034 # (if the path is not absolute). The absolute path cannot be DOS-style,
11035 # because $ac_f cannot contain `:'.
11039 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11041 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11042 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11043 { (exit 1); exit 1; }; };;
11045 ac_file_inputs="$ac_file_inputs $ac_f"
11048 # Let's still pretend it is `configure' which instantiates (i.e., don't
11049 # use $as_me), people would be surprised to read:
11050 # /* config.h. Generated by config.status. */
11051 configure_input="Generated from "`IFS=:
11052 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11053 if test x"$ac_file" != x-; then
11054 configure_input="$ac_file. $configure_input"
11055 { echo "$as_me:$LINENO: creating $ac_file" >&5
11056 echo "$as_me: creating $ac_file" >&6;}
11060 *:-:* | *:-) cat >"$tmp/stdin";;
11065 ac_dir=`$as_dirname -- "$ac_file" ||
11066 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11067 X"$ac_file" : 'X\(//\)[^/]' \| \
11068 X"$ac_file" : 'X\(//\)$' \| \
11069 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11075 /^X\(\/\/\)[^/].*/{
11090 -*) as_dir=./$as_dir;;
11092 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11096 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11097 *) as_qdir=$as_dir;;
11099 as_dirs="'$as_qdir' $as_dirs"
11100 as_dir=`$as_dirname -- "$as_dir" ||
11101 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11102 X"$as_dir" : 'X\(//\)[^/]' \| \
11103 X"$as_dir" : 'X\(//\)$' \| \
11104 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11110 /^X\(\/\/\)[^/].*/{
11123 test -d "$as_dir" && break
11125 test -z "$as_dirs" || eval "mkdir $as_dirs"
11126 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11127 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11128 { (exit 1); exit 1; }; }; }
11132 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11134 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11135 # A ".." for each directory in $ac_dir_suffix.
11136 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11137 case $ac_top_builddir_sub in
11138 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11139 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11142 ac_abs_top_builddir=$ac_pwd
11143 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11144 # for backward compatibility:
11145 ac_top_builddir=$ac_top_build_prefix
11148 .) # We are building in place.
11150 ac_top_srcdir=$ac_top_builddir_sub
11151 ac_abs_top_srcdir=$ac_pwd ;;
11152 [\\/]* | ?:[\\/]* ) # Absolute name.
11153 ac_srcdir=$srcdir$ac_dir_suffix;
11154 ac_top_srcdir=$srcdir
11155 ac_abs_top_srcdir=$srcdir ;;
11156 *) # Relative name.
11157 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11158 ac_top_srcdir=$ac_top_build_prefix$srcdir
11159 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11161 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11171 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11172 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11176 cat >>$CONFIG_STATUS <<\_ACEOF
11177 # If the template does not know about datarootdir, expand it.
11178 # FIXME: This hack should be removed a few years after 2.60.
11179 ac_datarootdir_hack=; ac_datarootdir_seen=
11181 case `sed -n '/datarootdir/ {
11190 ' $ac_file_inputs` in
11191 *datarootdir*) ac_datarootdir_seen=yes;;
11192 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11193 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11194 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11196 cat >>$CONFIG_STATUS <<_ACEOF
11197 ac_datarootdir_hack='
11198 s&@datadir@&$datadir&g
11199 s&@docdir@&$docdir&g
11200 s&@infodir@&$infodir&g
11201 s&@localedir@&$localedir&g
11202 s&@mandir@&$mandir&g
11203 s&\\\${datarootdir}&$datarootdir&g' ;;
11207 # Neutralize VPATH when `$srcdir' = `.'.
11208 # Shell code in configure.ac might set extrasub.
11209 # FIXME: do we really want to maintain this feature?
11210 cat >>$CONFIG_STATUS <<_ACEOF
11214 cat >>$CONFIG_STATUS <<\_ACEOF
11216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11217 s&@configure_input@&$configure_input&;t t
11218 s&@top_builddir@&$ac_top_builddir_sub&;t t
11219 s&@srcdir@&$ac_srcdir&;t t
11220 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11221 s&@top_srcdir@&$ac_top_srcdir&;t t
11222 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11223 s&@builddir@&$ac_builddir&;t t
11224 s&@abs_builddir@&$ac_abs_builddir&;t t
11225 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11226 s&@INSTALL@&$ac_INSTALL&;t t
11227 $ac_datarootdir_hack
11228 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11231 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11232 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11233 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11234 which seems to be undefined. Please make sure it is defined." >&5
11235 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11236 which seems to be undefined. Please make sure it is defined." >&2;}
11240 -) cat "$tmp/out"; rm -f "$tmp/out";;
11241 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11250 # Transform confdefs.h into a sed script `conftest.defines', that
11251 # substitutes the proper values into config.h.in to produce config.h.
11252 rm -f conftest.defines conftest.tail
11253 # First, append a space to every undef/define line, to ease matching.
11254 echo 's/$/ /' >conftest.defines
11255 # Then, protect against being on the right side of a sed subst, or in
11256 # an unquoted here document, in config.status. If some macros were
11257 # called several times there might be several #defines for the same
11258 # symbol, which is useless. But do not sort them, since the last
11259 # AC_DEFINE must be honored.
11260 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11261 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11262 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11263 # PARAMS is the parameter list in the macro definition--in most cases, it's
11264 # just an empty string.
11265 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11266 ac_dB='\\)[ (].*,\\1define\\2'
11274 s/^[ ]*#[ ]*define[ ][ ]*//
11279 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11280 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11281 ' >>conftest.defines
11283 # Remove the space that was appended to ease matching.
11284 # Then replace #undef with comments. This is necessary, for
11285 # example, in the case of _POSIX_SOURCE, which is predefined and required
11286 # on some systems where configure will not decide to define it.
11287 # (The regexp can be short, since the line contains either #define or #undef.)
11289 s,^[ #]*u.*,/* & */,' >>conftest.defines
11291 # Break up conftest.defines:
11292 ac_max_sed_lines=50
11294 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11295 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11296 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11298 ac_in='$ac_file_inputs'
11299 ac_out='"$tmp/out1"'
11300 ac_nxt='"$tmp/out2"'
11304 # Write a here document:
11305 cat >>$CONFIG_STATUS <<_ACEOF
11306 # First, check the format of the line:
11307 cat >"\$tmp/defines.sed" <<\\CEOF
11308 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11309 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11313 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11315 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11316 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11317 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11318 grep . conftest.tail >/dev/null || break
11319 rm -f conftest.defines
11320 mv conftest.tail conftest.defines
11322 rm -f conftest.defines conftest.tail
11324 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11325 cat >>$CONFIG_STATUS <<\_ACEOF
11326 if test x"$ac_file" != x-; then
11327 echo "/* $configure_input */" >"$tmp/config.h"
11328 cat "$ac_result" >>"$tmp/config.h"
11329 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11330 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11331 echo "$as_me: $ac_file is unchanged" >&6;}
11334 mv "$tmp/config.h" $ac_file
11337 echo "/* $configure_input */"
11341 # Compute $ac_file's index in $config_headers.
11343 for _am_header in $config_headers :; do
11344 case $_am_header in
11345 $ac_file | $ac_file:* )
11348 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11351 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
11352 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11353 X$ac_file : 'X\(//\)[^/]' \| \
11354 X$ac_file : 'X\(//\)$' \| \
11355 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
11357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11361 /^X\(\/\/\)[^/].*/{
11373 s/.*/./; q'`/stamp-h$_am_stamp_count
11376 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11377 echo "$as_me: executing $ac_file commands" >&6;}
11382 case $ac_file$ac_mode in
11383 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11384 # Strip MF so we end up with the name of the file.
11385 mf=`echo "$mf" | sed -e 's/:.*$//'`
11386 # Check whether this is an Automake generated Makefile or not.
11387 # We used to match only the files named `Makefile.in', but
11388 # some people rename them; so instead we look at the file content.
11389 # Grep'ing the first line is not enough: some people post-process
11390 # each Makefile.in and add a new line on top of each file to say so.
11391 # So let's grep whole file.
11392 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11393 dirpart=`$as_dirname -- "$mf" ||
11394 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11395 X"$mf" : 'X\(//\)[^/]' \| \
11396 X"$mf" : 'X\(//\)$' \| \
11397 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11403 /^X\(\/\/\)[^/].*/{
11419 # Extract the definition of DEPDIR, am__include, and am__quote
11420 # from the Makefile without running `make'.
11421 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11422 test -z "$DEPDIR" && continue
11423 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11424 test -z "am__include" && continue
11425 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11426 # When using ansi2knr, U may be empty or an underscore; expand it
11427 U=`sed -n 's/^U = //p' < "$mf"`
11428 # Find all dependency output files, they are included files with
11429 # $(DEPDIR) in their names. We invoke sed twice because it is the
11430 # simplest approach to changing $(DEPDIR) to its actual value in the
11432 for file in `sed -n "
11433 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11434 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11435 # Make sure the directory exists.
11436 test -f "$dirpart/$file" && continue
11437 fdir=`$as_dirname -- "$file" ||
11438 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11439 X"$file" : 'X\(//\)[^/]' \| \
11440 X"$file" : 'X\(//\)$' \| \
11441 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11447 /^X\(\/\/\)[^/].*/{
11460 { as_dir=$dirpart/$fdir
11462 -*) as_dir=./$as_dir;;
11464 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11468 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11469 *) as_qdir=$as_dir;;
11471 as_dirs="'$as_qdir' $as_dirs"
11472 as_dir=`$as_dirname -- "$as_dir" ||
11473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11474 X"$as_dir" : 'X\(//\)[^/]' \| \
11475 X"$as_dir" : 'X\(//\)$' \| \
11476 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11482 /^X\(\/\/\)[^/].*/{
11495 test -d "$as_dir" && break
11497 test -z "$as_dirs" || eval "mkdir $as_dirs"
11498 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11499 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11500 { (exit 1); exit 1; }; }; }
11501 # echo "creating $dirpart/$file"
11502 echo '# dummy' > "$dirpart/$file"
11506 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
11507 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
11514 { (exit 0); exit 0; }
11516 chmod +x $CONFIG_STATUS
11517 ac_clean_files=$ac_clean_files_save
11520 # configure is writing to config.log, and then calls config.status.
11521 # config.status does its own redirection, appending to config.log.
11522 # Unfortunately, on DOS this fails, as config.log is still kept open
11523 # by configure, so config.status won't be able to write to it; its
11524 # output is simply discarded. So we exec the FD to /dev/null,
11525 # effectively closing config.log, so it can be properly (re)opened and
11526 # appended to by config.status. When coming back to configure, we
11527 # need to make the FD available again.
11528 if test "$no_create" != yes; then
11530 ac_config_status_args=
11531 test "$silent" = yes &&
11532 ac_config_status_args="$ac_config_status_args --quiet"
11534 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11536 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11537 # would make configure fail if this is the last instruction.
11538 $ac_cs_success || { (exit 1); exit 1; }
.