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
708 am__fastdepCC_FOR_BUILD_TRUE
709 am__fastdepCC_FOR_BUILD_FALSE
729 am__fastdepOBJC_FALSE
757 GLIB_FOR_BUILD_CFLAGS
834 ac_precious_vars='build_alias
859 GLIB_FOR_BUILD_CFLAGS
875 # Initialize some variables set by options.
877 ac_init_version=false
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
887 program_transform_name=s,x,x,
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 includedir='${prefix}/include'
910 oldincludedir='/usr/include'
911 docdir='${datarootdir}/doc/${PACKAGE}'
912 infodir='${datarootdir}/info'
917 libdir='${exec_prefix}/lib'
918 localedir='${datarootdir}/locale'
919 mandir='${datarootdir}/man'
925 # If the previous option needs an argument, assign it.
926 if test -n "$ac_prev"; then
927 eval $ac_prev=\$ac_option
933 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937 # Accept the important Cygnus configure options, so we can diagnose typos.
939 case $ac_dashdash$ac_option in
943 -bindir | --bindir | --bindi | --bind | --bin | --bi)
945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
948 -build | --build | --buil | --bui | --bu)
949 ac_prev=build_alias ;;
950 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
951 build_alias=$ac_optarg ;;
953 -cache-file | --cache-file | --cache-fil | --cache-fi \
954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955 ac_prev=cache_file ;;
956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
958 cache_file=$ac_optarg ;;
961 cache_file=config.cache ;;
963 -datadir | --datadir | --datadi | --datad)
965 -datadir=* | --datadir=* | --datadi=* | --datad=*)
966 datadir=$ac_optarg ;;
968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969 | --dataroo | --dataro | --datar)
970 ac_prev=datarootdir ;;
971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973 datarootdir=$ac_optarg ;;
975 -disable-* | --disable-*)
976 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
979 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
980 { (exit 1); exit 1; }; }
981 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
982 eval enable_$ac_feature=no ;;
984 -docdir | --docdir | --docdi | --doc | --do)
986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 -enable-* | --enable-*)
995 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
998 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
999 { (exit 1); exit 1; }; }
1000 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1001 eval enable_$ac_feature=\$ac_optarg ;;
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032 htmldir=$ac_optarg ;;
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1046 -libdir | --libdir | --libdi | --libd)
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1137 -psdir | --psdir | --psdi | --psd | --ps)
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 sbindir=$ac_optarg ;;
1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154 | --sharedst | --shareds | --shared | --share | --shar \
1156 ac_prev=sharedstatedir ;;
1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 sharedstatedir=$ac_optarg ;;
1163 -site | --site | --sit)
1165 -site=* | --site=* | --sit=*)
1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171 srcdir=$ac_optarg ;;
1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174 | --syscon | --sysco | --sysc | --sys | --sy)
1175 ac_prev=sysconfdir ;;
1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178 sysconfdir=$ac_optarg ;;
1180 -target | --target | --targe | --targ | --tar | --ta | --t)
1181 ac_prev=target_alias ;;
1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183 target_alias=$ac_optarg ;;
1185 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 -version | --version | --versio | --versi | --vers | -V)
1189 ac_init_version=: ;;
1192 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 { echo "$as_me: error: invalid package name: $ac_package" >&2
1196 { (exit 1); exit 1; }; }
1197 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1198 eval with_$ac_package=\$ac_optarg ;;
1200 -without-* | --without-*)
1201 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 { echo "$as_me: error: invalid package name: $ac_package" >&2
1205 { (exit 1); exit 1; }; }
1206 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1207 eval with_$ac_package=no ;;
1210 # Obsolete; use --with-x.
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) { echo "$as_me: error: unrecognized option: $ac_option
1228 Try \`$0 --help' for more information." >&2
1229 { (exit 1); exit 1; }; }
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1236 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1237 { (exit 1); exit 1; }; }
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 { echo "$as_me: error: missing argument to $ac_option" >&2
1255 { (exit 1); exit 1; }; }
1258 # Be sure to have absolute directory names.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1264 eval ac_val=\$$ac_var
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1270 { (exit 1); exit 1; }; }
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1278 target=$target_alias
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1285 If a cross compiler is detected then cross compile mode will be used." >&2
1286 elif test "x$build_alias" != "x$host_alias"; then
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294 test "$silent" = yes && exec 6>/dev/null
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 { echo "$as_me: error: Working directory cannot be determined" >&2
1301 { (exit 1); exit 1; }; }
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 { echo "$as_me: error: pwd does not report name of working directory" >&2
1304 { (exit 1); exit 1; }; }
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$0" ||
1312 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$0" : 'X\(//\)[^/]' \| \
1314 X"$0" : 'X\(//\)$' \| \
1315 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1339 ac_srcdir_defaulted=no
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1344 { (exit 1); exit 1; }; }
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1349 { (exit 1); exit 1; }; }
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 # Report the --help message.
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1375 \`configure' configures this package to adapt to many kinds of systems.
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1382 Defaults for the options are specified in brackets.
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1406 For better control, use the options below.
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 if test -n "$ac_init_help"; then
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-maintainer-mode enable make rules and dependencies not useful
1451 (and sometimes confusing) to the casual installer
1452 --disable-dependency-tracking speeds up one-time build
1453 --enable-dependency-tracking do not reject slow dependency extractors
1454 --enable-strict-warn Enable strict compilation warnings
1455 --disable-translator Disable the SH4 translator (Enabled by default)
1456 --disable-optimized Disable compile-time optimizations (Enabled by
1458 --enable-shared Build drivers as shared libraries (Enabled if
1460 --enable-profiled Enable profiling build
1461 --enable-trace Enable generation of IO traces (warning: hurts
1463 --enable-watch Enable watchpoints in the debugger (warning: hurts
1465 --enable-sh4stats Enable statistics on executed sh4 instructions
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-osmesa Build with the osmesa GL library (software
1472 --with-gtk Build with the GTK UI. Default on X11 systems
1473 --with-esd Build with support for the ESounD audio system
1474 --with-pulse Build with support for the PulseAudio audio system
1475 --with-sdl Build with support for SDL audio
1476 --with-sysroot=SYSROOT Build using an alternate sysroot
1477 --with-android=SDK Specify the location of the Android SDK
1478 --with-android-ndk=NDK Specify the location of the Android NDK
1479 --with-android-version Specify target Android SDK version
1480 --with-android-version Specify target Android NDK version
1481 --with-android-abi Specify target Android ABI
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1492 OBJC Objective C compiler command
1493 OBJCFLAGS Objective C compiler flags
1494 CCAS assembler compiler command (defaults to CC)
1495 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1496 PKG_CONFIG path to pkg-config utility
1498 C compiler flags for LIBPNG, overriding pkg-config
1499 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1500 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1501 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1502 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1503 GTK_LIBS linker flags for GTK, overriding pkg-config
1504 GLIB_FOR_BUILD_CFLAGS
1505 C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1507 linker flags for GLIB_FOR_BUILD, overriding pkg-config
1509 C compiler flags for LIBISOFS, overriding pkg-config
1511 linker flags for LIBISOFS, overriding pkg-config
1513 C compiler flags for LIBGL, overriding pkg-config
1514 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1515 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1516 SDL_LIBS linker flags for SDL, overriding pkg-config
1518 C compiler flags for PULSE, overriding pkg-config
1519 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1521 C compiler flags for ESOUND, overriding pkg-config
1522 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1523 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1524 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" || continue
1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1543 # A ".." for each directory in $ac_dir_suffix.
1544 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1545 case $ac_top_builddir_sub in
1546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 ac_abs_top_builddir=$ac_pwd
1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552 # for backward compatibility:
1553 ac_top_builddir=$ac_top_build_prefix
1556 .) # We are building in place.
1558 ac_top_srcdir=$ac_top_builddir_sub
1559 ac_abs_top_srcdir=$ac_pwd ;;
1560 [\\/]* | ?:[\\/]* ) # Absolute name.
1561 ac_srcdir=$srcdir$ac_dir_suffix;
1562 ac_top_srcdir=$srcdir
1563 ac_abs_top_srcdir=$srcdir ;;
1565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566 ac_top_srcdir=$ac_top_build_prefix$srcdir
1567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571 cd "$ac_dir" || { ac_status=$?; continue; }
1572 # Check for guested configure.
1573 if test -f "$ac_srcdir/configure.gnu"; then
1575 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576 elif test -f "$ac_srcdir/configure"; then
1578 $SHELL "$ac_srcdir/configure" --help=recursive
1580 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 cd "$ac_pwd" || { ac_status=$?; break; }
1586 test -n "$ac_init_help" && exit $ac_status
1587 if $ac_init_version; then
1590 generated by GNU Autoconf 2.61
1592 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1593 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1599 cat >config.log <<_ACEOF
1600 This file contains any messages produced by compilers while
1601 running configure, to aid debugging if configure makes a mistake.
1603 It was created by $as_me, which was
1604 generated by GNU Autoconf 2.61. Invocation command line was
1616 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1617 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1618 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1619 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1620 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1622 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1623 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1625 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1626 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1627 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1628 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1629 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1630 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1631 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir=.
1640 echo "PATH: $as_dir"
1656 # Keep a trace of the command line.
1657 # Strip out --no-create and --no-recursion so they do not pile up.
1658 # Strip out --silent because we don't want to record it for future runs.
1659 # Also quote any args containing shell meta-characters.
1660 # Make two passes to allow for proper duplicate-argument suppression.
1664 ac_must_keep_next=false
1670 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1672 | -silent | --silent | --silen | --sile | --sil)
1675 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1678 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1680 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1681 if test $ac_must_keep_next = true; then
1682 ac_must_keep_next=false # Got value, back to normal.
1685 *=* | --config-cache | -C | -disable-* | --disable-* \
1686 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1687 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1688 | -with-* | --with-* | -without-* | --without-* | --x)
1689 case "$ac_configure_args0 " in
1690 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693 -* ) ac_must_keep_next=true ;;
1696 ac_configure_args="$ac_configure_args '$ac_arg'"
1701 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1702 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1704 # When interrupted or exit'd, cleanup temporary files, and complete
1705 # config.log. We remove comments because anyway the quotes in there
1706 # would cause problems or look ugly.
1707 # WARNING: Use '\'' to represent an apostrophe within the trap.
1708 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1709 trap 'exit_status=$?
1710 # Save into config.log some information that might help in debugging.
1715 ## ---------------- ##
1716 ## Cache variables. ##
1717 ## ---------------- ##
1720 # The following way of writing the cache mishandles newlines in values,
1722 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1723 eval ac_val=\$$ac_var
1727 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1728 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1731 _ | IFS | as_nl) ;; #(
1732 *) $as_unset $ac_var ;;
1737 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1738 *${as_nl}ac_space=\ *)
1740 "s/'\''/'\''\\\\'\'''\''/g;
1741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1752 ## ----------------- ##
1753 ## Output variables. ##
1754 ## ----------------- ##
1757 for ac_var in $ac_subst_vars
1759 eval ac_val=\$$ac_var
1761 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 echo "$ac_var='\''$ac_val'\''"
1767 if test -n "$ac_subst_files"; then
1769 ## ------------------- ##
1770 ## File substitutions. ##
1771 ## ------------------- ##
1774 for ac_var in $ac_subst_files
1776 eval ac_val=\$$ac_var
1778 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780 echo "$ac_var='\''$ac_val'\''"
1785 if test -s confdefs.h; then
1795 test "$ac_signal" != 0 &&
1796 echo "$as_me: caught signal $ac_signal"
1797 echo "$as_me: exit $exit_status"
1799 rm -f core *.core core.conftest.* &&
1800 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1803 for ac_signal in 1 2 13 15; do
1804 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1809 rm -f -r conftest* confdefs.h
1811 # Predefined preprocessor variables.
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_NAME "$PACKAGE_NAME"
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_STRING "$PACKAGE_STRING"
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838 # Let the site file select an alternate cache file if it wants to.
1839 # Prefer explicitly selected file to automatically selected ones.
1840 if test -n "$CONFIG_SITE"; then
1841 set x "$CONFIG_SITE"
1842 elif test "x$prefix" != xNONE; then
1843 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1845 set x "$ac_default_prefix/share/config.site" \
1846 "$ac_default_prefix/etc/config.site"
1851 if test -r "$ac_site_file"; then
1852 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1853 echo "$as_me: loading site script $ac_site_file" >&6;}
1854 sed 's/^/| /' "$ac_site_file" >&5
1859 if test -r "$cache_file"; then
1860 # Some versions of bash will fail to source /dev/null (special
1861 # files actually), so we avoid doing that.
1862 if test -f "$cache_file"; then
1863 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1864 echo "$as_me: loading cache $cache_file" >&6;}
1866 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1867 *) . "./$cache_file";;
1871 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1872 echo "$as_me: creating cache $cache_file" >&6;}
1876 # Check that the precious variables saved in the cache have kept the same
1878 ac_cache_corrupted=false
1879 for ac_var in $ac_precious_vars; do
1880 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1881 eval ac_new_set=\$ac_env_${ac_var}_set
1882 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1883 eval ac_new_val=\$ac_env_${ac_var}_value
1884 case $ac_old_set,$ac_new_set in
1886 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1887 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1888 ac_cache_corrupted=: ;;
1890 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1891 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1892 ac_cache_corrupted=: ;;
1895 if test "x$ac_old_val" != "x$ac_new_val"; then
1896 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1897 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1898 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1899 echo "$as_me: former value: $ac_old_val" >&2;}
1900 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1901 echo "$as_me: current value: $ac_new_val" >&2;}
1902 ac_cache_corrupted=:
1905 # Pass precious variables to config.status.
1906 if test "$ac_new_set" = set; then
1908 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1909 *) ac_arg=$ac_var=$ac_new_val ;;
1911 case " $ac_configure_args " in
1912 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1913 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1917 if $ac_cache_corrupted; then
1918 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1919 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1920 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1921 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1922 { (exit 1); exit 1; }; }
1942 ac_cpp='$CPP $CPPFLAGS'
1943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948 am__api_version="1.9"
1950 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1951 if test -f "$ac_dir/install-sh"; then
1953 ac_install_sh="$ac_aux_dir/install-sh -c"
1955 elif test -f "$ac_dir/install.sh"; then
1957 ac_install_sh="$ac_aux_dir/install.sh -c"
1959 elif test -f "$ac_dir/shtool"; then
1961 ac_install_sh="$ac_aux_dir/shtool install -c"
1965 if test -z "$ac_aux_dir"; then
1966 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1967 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1968 { (exit 1); exit 1; }; }
1971 # These three variables are undocumented and unsupported,
1972 # and are intended to be withdrawn in a future Autoconf release.
1973 # They can cause serious problems if a builder's source tree is in a directory
1974 # whose full name contains unusual characters.
1975 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1976 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1977 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1980 # Find a good install program. We prefer a C program (faster),
1981 # so one script is as good as another. But avoid the broken or
1982 # incompatible versions:
1983 # SysV /etc/install, /usr/sbin/install
1984 # SunOS /usr/etc/install
1985 # IRIX /sbin/install
1987 # AmigaOS /C/install, which installs bootblocks on floppy discs
1988 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1989 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1990 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1991 # OS/2's system install, which has a completely different semantic
1992 # ./install, which can be erroneously created by make from ./install.sh.
1993 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1994 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1995 if test -z "$INSTALL"; then
1996 if test "${ac_cv_path_install+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir=.
2004 # Account for people who put trailing slashes in PATH elements.
2006 ./ | .// | /cC/* | \
2007 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2008 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2011 # OSF1 and SCO ODT 3.0 have their own names for install.
2012 # Don't use installbsd from OSF since it installs stuff as root
2014 for ac_prog in ginstall scoinst install; do
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2017 if test $ac_prog = install &&
2018 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # AIX install. It has an incompatible calling convention.
2021 elif test $ac_prog = install &&
2022 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2023 # program-specific install script used by HP pwplus--don't use.
2026 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2039 if test "${ac_cv_path_install+set}" = set; then
2040 INSTALL=$ac_cv_path_install
2042 # As a last resort, use the slow shell script. Don't cache a
2043 # value for INSTALL within a source directory, because that will
2044 # break other packages using the cache if that directory is
2045 # removed, or if the value is a relative name.
2046 INSTALL=$ac_install_sh
2049 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2050 echo "${ECHO_T}$INSTALL" >&6; }
2052 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2053 # It thinks the first close brace ends the variable substitution.
2054 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2056 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2058 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2060 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2061 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2064 echo timestamp > conftest.file
2065 # Do `set' in a subshell so we don't clobber the current shell's
2066 # arguments. Must try -L first in case configure is actually a
2067 # symlink; some systems play weird games with the mod time of symlinks
2068 # (eg FreeBSD returns the mod time of the symlink's containing
2071 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2072 if test "$*" = "X"; then
2074 set X `ls -t $srcdir/configure conftest.file`
2077 if test "$*" != "X $srcdir/configure conftest.file" \
2078 && test "$*" != "X conftest.file $srcdir/configure"; then
2080 # If neither matched, then we have a broken ls. This can happen
2081 # if, for instance, CONFIG_SHELL is bash and it inherits a
2082 # broken ls alias from the environment. This has actually
2083 # happened. Such a system could not be considered "sane".
2084 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2085 alias in your environment" >&5
2086 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2087 alias in your environment" >&2;}
2088 { (exit 1); exit 1; }; }
2091 test "$2" = conftest.file
2097 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2098 Check your system clock" >&5
2099 echo "$as_me: error: newly created file is older than distributed files!
2100 Check your system clock" >&2;}
2101 { (exit 1); exit 1; }; }
2103 { echo "$as_me:$LINENO: result: yes" >&5
2104 echo "${ECHO_T}yes" >&6; }
2105 test "$program_prefix" != NONE &&
2106 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2107 # Use a double $ so make ignores it.
2108 test "$program_suffix" != NONE &&
2109 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2110 # Double any \ or $. echo might interpret backslashes.
2111 # By default was `s,x,x', remove it if useless.
2112 cat <<\_ACEOF >conftest.sed
2113 s/[\\$]/&&/g;s/;s,x,x,$//
2115 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2118 # expand $ac_aux_dir to an absolute path
2119 am_aux_dir=`cd $ac_aux_dir && pwd`
2121 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2122 # Use eval to expand $SHELL
2123 if eval "$MISSING --run true"; then
2124 am_missing_run="$MISSING --run "
2127 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2128 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2131 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2132 # We used to keeping the `.' as first argument, in order to
2133 # allow $(mkdir_p) to be used without argument. As in
2134 # $(mkdir_p) $(somedir)
2135 # where $(somedir) is conditionally defined. However this is wrong
2137 # 1. if the package is installed by a user who cannot write `.'
2138 # make install will fail,
2139 # 2. the above comment should most certainly read
2140 # $(mkdir_p) $(DESTDIR)$(somedir)
2141 # so it does not work when $(somedir) is undefined and
2142 # $(DESTDIR) is not.
2143 # To support the latter case, we have to write
2144 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2145 # so the `.' trick is pointless.
2146 mkdir_p='mkdir -p --'
2148 # On NextStep and OpenStep, the `mkdir' command does not
2149 # recognize any option. It will interpret all options as
2150 # directories to create, and then abort because `.' already
2152 for d in ./-p ./--version;
2154 test -d $d && rmdir $d
2156 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2157 if test -f "$ac_aux_dir/mkinstalldirs"; then
2158 mkdir_p='$(mkinstalldirs)'
2160 mkdir_p='$(install_sh) -d'
2164 for ac_prog in gawk mawk nawk awk
2166 # Extract the first word of "$ac_prog", so it can be a program name with args.
2167 set dummy $ac_prog; ac_word=$2
2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2170 if test "${ac_cv_prog_AWK+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test -n "$AWK"; then
2174 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2183 ac_cv_prog_AWK="$ac_prog"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 if test -n "$AWK"; then
2195 { echo "$as_me:$LINENO: result: $AWK" >&5
2196 echo "${ECHO_T}$AWK" >&6; }
2198 { echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6; }
2203 test -n "$AWK" && break
2206 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2207 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2208 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2209 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 cat >conftest.make <<\_ACEOF
2215 @echo '@@@%%%=$(MAKE)=@@@%%%'
2217 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2218 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2220 eval ac_cv_prog_make_${ac_make}_set=yes;;
2222 eval ac_cv_prog_make_${ac_make}_set=no;;
2226 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2227 { echo "$as_me:$LINENO: result: yes" >&5
2228 echo "${ECHO_T}yes" >&6; }
2231 { echo "$as_me:$LINENO: result: no" >&5
2232 echo "${ECHO_T}no" >&6; }
2233 SET_MAKE="MAKE=${MAKE-make}"
2236 rm -rf .tst 2>/dev/null
2237 mkdir .tst 2>/dev/null
2238 if test -d .tst; then
2243 rmdir .tst 2>/dev/null
2245 # test to see if srcdir already configured
2246 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2247 test -f $srcdir/config.status; then
2248 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2249 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2250 { (exit 1); exit 1; }; }
2253 # test whether we have cygpath
2254 if test -z "$CYGPATH_W"; then
2255 if (cygpath --version) >/dev/null 2>/dev/null; then
2256 CYGPATH_W='cygpath -w'
2263 # Define the identity of the package.
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE "$PACKAGE"
2273 cat >>confdefs.h <<_ACEOF
2274 #define VERSION "$VERSION"
2277 # Some tools Automake needs.
2279 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2282 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2285 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2288 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2291 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2293 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2295 # Installed binaries are usually stripped using `strip' when the user
2296 # run `make install-strip'. However `strip' might not be the right
2297 # tool to use in cross-compilation environments, therefore Automake
2298 # will honor the `STRIP' environment variable to overrule this program.
2299 if test "$cross_compiling" != no; then
2300 if test -n "$ac_tool_prefix"; then
2301 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2302 set dummy ${ac_tool_prefix}strip; ac_word=$2
2303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2305 if test "${ac_cv_prog_STRIP+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 if test -n "$STRIP"; then
2309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2318 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 STRIP=$ac_cv_prog_STRIP
2329 if test -n "$STRIP"; then
2330 { echo "$as_me:$LINENO: result: $STRIP" >&5
2331 echo "${ECHO_T}$STRIP" >&6; }
2333 { echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6; }
2339 if test -z "$ac_cv_prog_STRIP"; then
2341 # Extract the first word of "strip", so it can be a program name with args.
2342 set dummy strip; ac_word=$2
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 if test -n "$ac_ct_STRIP"; then
2349 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358 ac_cv_prog_ac_ct_STRIP="strip"
2359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2369 if test -n "$ac_ct_STRIP"; then
2370 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2371 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2373 { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2377 if test "x$ac_ct_STRIP" = x; then
2380 case $cross_compiling:$ac_tool_warned in
2382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2383 whose name does not start with the host triplet. If you think this
2384 configuration is useful to you, please write to autoconf@gnu.org." >&5
2385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2386 whose name does not start with the host triplet. If you think this
2387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2388 ac_tool_warned=yes ;;
2393 STRIP="$ac_cv_prog_STRIP"
2397 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2399 # We need awk for the "check" target. The system "awk" is bad on
2401 # Always define AMTAR for backward compatibility.
2403 AMTAR=${AMTAR-"${am_missing_run}tar"}
2405 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2411 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2412 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2413 # Check whether --enable-maintainer-mode was given.
2414 if test "${enable_maintainer_mode+set}" = set; then
2415 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2417 USE_MAINTAINER_MODE=no
2420 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2421 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2424 if test $USE_MAINTAINER_MODE = yes; then
2425 MAINTAINER_MODE_TRUE=
2426 MAINTAINER_MODE_FALSE='#'
2428 MAINTAINER_MODE_TRUE='#'
2429 MAINTAINER_MODE_FALSE=
2432 MAINT=$MAINTAINER_MODE_TRUE
2435 ac_config_headers="$ac_config_headers config.h"
2438 # Make sure we can run config.sub.
2439 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2440 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2441 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2442 { (exit 1); exit 1; }; }
2444 { echo "$as_me:$LINENO: checking build system type" >&5
2445 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2446 if test "${ac_cv_build+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 ac_build_alias=$build_alias
2450 test "x$ac_build_alias" = x &&
2451 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2452 test "x$ac_build_alias" = x &&
2453 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2454 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2455 { (exit 1); exit 1; }; }
2456 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2457 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2458 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2459 { (exit 1); exit 1; }; }
2462 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2463 echo "${ECHO_T}$ac_cv_build" >&6; }
2464 case $ac_cv_build in
2466 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2467 echo "$as_me: error: invalid value of canonical build" >&2;}
2468 { (exit 1); exit 1; }; };;
2471 ac_save_IFS=$IFS; IFS='-'
2477 # Remember, the first character of IFS is used to create $*,
2478 # except with old shells:
2481 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2484 { echo "$as_me:$LINENO: checking host system type" >&5
2485 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2486 if test "${ac_cv_host+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test "x$host_alias" = x; then
2490 ac_cv_host=$ac_cv_build
2492 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2493 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2494 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2495 { (exit 1); exit 1; }; }
2499 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2500 echo "${ECHO_T}$ac_cv_host" >&6; }
2503 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2504 echo "$as_me: error: invalid value of canonical host" >&2;}
2505 { (exit 1); exit 1; }; };;
2508 ac_save_IFS=$IFS; IFS='-'
2514 # Remember, the first character of IFS is used to create $*,
2515 # except with old shells:
2518 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2530 # Defines --with-android, --with-android-ndk, and --with-android-version
2531 # If specified, checks for a working install, and sets build parameters
2532 # appropriately for an Android host.
2536 DEPDIR="${am__leading_dot}deps"
2538 ac_config_commands="$ac_config_commands depfiles"
2541 am_make=${MAKE-make}
2542 cat > confinc << 'END'
2547 # If we don't find an include directive, just comment out the code.
2548 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2549 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2553 # First try GNU make style include.
2554 echo "include confinc" > confmf
2555 # We grep out `Entering directory' and `Leaving directory'
2556 # messages which can occur if `w' ends up in MAKEFLAGS.
2557 # In particular we don't look at `^make:' because GNU make might
2558 # be invoked under some other name (usually "gmake"), in which
2559 # case it prints its new name instead of `make'.
2560 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2565 # Now try BSD make style include.
2566 if test "$am__include" = "#"; then
2567 echo '.include "confinc"' > confmf
2568 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2569 am__include=.include
2576 { echo "$as_me:$LINENO: result: $_am_result" >&5
2577 echo "${ECHO_T}$_am_result" >&6; }
2578 rm -f confinc confmf
2580 # Check whether --enable-dependency-tracking was given.
2581 if test "${enable_dependency_tracking+set}" = set; then
2582 enableval=$enable_dependency_tracking;
2585 if test "x$enable_dependency_tracking" != xno; then
2586 am_depcomp="$ac_aux_dir/depcomp"
2591 if test "x$enable_dependency_tracking" != xno; then
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 if test -n "$ac_tool_prefix"; then
2607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2611 if test "${ac_cv_prog_CC+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 if test -n "$CC"; then
2615 ac_cv_prog_CC="$CC" # Let the user override the test.
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 if test -n "$CC"; then
2636 { echo "$as_me:$LINENO: result: $CC" >&5
2637 echo "${ECHO_T}$CC" >&6; }
2639 { echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6; }
2645 if test -z "$ac_cv_prog_CC"; then
2647 # Extract the first word of "gcc", so it can be a program name with args.
2648 set dummy gcc; ac_word=$2
2649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 if test -n "$ac_ct_CC"; then
2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_ac_ct_CC="gcc"
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2675 if test -n "$ac_ct_CC"; then
2676 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2677 echo "${ECHO_T}$ac_ct_CC" >&6; }
2679 { echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6; }
2683 if test "x$ac_ct_CC" = x; then
2686 case $cross_compiling:$ac_tool_warned in
2688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2689 whose name does not start with the host triplet. If you think this
2690 configuration is useful to you, please write to autoconf@gnu.org." >&5
2691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2692 whose name does not start with the host triplet. If you think this
2693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2694 ac_tool_warned=yes ;;
2702 if test -z "$CC"; then
2703 if test -n "$ac_tool_prefix"; then
2704 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2705 set dummy ${ac_tool_prefix}cc; ac_word=$2
2706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2708 if test "${ac_cv_prog_CC+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 if test -n "$CC"; then
2712 ac_cv_prog_CC="$CC" # Let the user override the test.
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 ac_cv_prog_CC="${ac_tool_prefix}cc"
2722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 if test -n "$CC"; then
2733 { echo "$as_me:$LINENO: result: $CC" >&5
2734 echo "${ECHO_T}$CC" >&6; }
2736 { echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6; }
2743 if test -z "$CC"; then
2744 # Extract the first word of "cc", so it can be a program name with args.
2745 set dummy cc; ac_word=$2
2746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2748 if test "${ac_cv_prog_CC+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 if test -n "$CC"; then
2752 ac_cv_prog_CC="$CC" # Let the user override the test.
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2763 ac_prog_rejected=yes
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 if test $ac_prog_rejected = yes; then
2775 # We found a bogon in the path, so make sure we never use it.
2776 set dummy $ac_cv_prog_CC
2778 if test $# != 0; then
2779 # We chose a different compiler from the bogus one.
2780 # However, it has the same basename, so the bogon will be chosen
2781 # first if we set CC to just the basename; use the full file name.
2783 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2789 if test -n "$CC"; then
2790 { echo "$as_me:$LINENO: result: $CC" >&5
2791 echo "${ECHO_T}$CC" >&6; }
2793 { echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6; }
2799 if test -z "$CC"; then
2800 if test -n "$ac_tool_prefix"; then
2801 for ac_prog in cl.exe
2803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2807 if test "${ac_cv_prog_CC+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 if test -n "$CC"; then
2832 { echo "$as_me:$LINENO: result: $CC" >&5
2833 echo "${ECHO_T}$CC" >&6; }
2835 { echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6; }
2840 test -n "$CC" && break
2843 if test -z "$CC"; then
2845 for ac_prog in cl.exe
2847 # Extract the first word of "$ac_prog", so it can be a program name with args.
2848 set dummy $ac_prog; ac_word=$2
2849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 if test -n "$ac_ct_CC"; then
2855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 ac_cv_prog_ac_ct_CC="$ac_prog"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2875 if test -n "$ac_ct_CC"; then
2876 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2877 echo "${ECHO_T}$ac_ct_CC" >&6; }
2879 { echo "$as_me:$LINENO: result: no" >&5
2880 echo "${ECHO_T}no" >&6; }
2884 test -n "$ac_ct_CC" && break
2887 if test "x$ac_ct_CC" = x; then
2890 case $cross_compiling:$ac_tool_warned in
2892 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2893 whose name does not start with the host triplet. If you think this
2894 configuration is useful to you, please write to autoconf@gnu.org." >&5
2895 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2896 whose name does not start with the host triplet. If you think this
2897 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2898 ac_tool_warned=yes ;;
2907 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: no acceptable C compiler found in \$PATH
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2913 # Provide some information about the compiler.
2914 echo "$as_me:$LINENO: checking for C compiler version" >&5
2915 ac_compiler=`set X $ac_compile; echo $2`
2916 { (ac_try="$ac_compiler --version >&5"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler --version >&5") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926 { (ac_try="$ac_compiler -v >&5"
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compiler -v >&5") 2>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936 { (ac_try="$ac_compiler -V >&5"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compiler -V >&5") 2>&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }
2947 cat >conftest.$ac_ext <<_ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2962 ac_clean_files_save=$ac_clean_files
2963 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2964 # Try to create an executable without -o first, disregard a.out.
2965 # It will help us diagnose broken compilers, and finding out an intuition
2967 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2968 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2969 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2971 # List of possible output files, starting from the most likely.
2972 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2973 # only as a last resort. b.out is created by i960 compilers.
2974 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2976 # The IRIX 6 linker writes into existing files which may not be
2977 # executable, retaining their permissions. Remove them first so a
2978 # subsequent execution test works.
2980 for ac_file in $ac_files
2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2984 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2989 if { (ac_try="$ac_link_default"
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_link_default") 2>&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; then
2999 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3000 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3001 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3002 # so that the user can short-circuit this test for compilers unknown to
3004 for ac_file in $ac_files ''
3006 test -f "$ac_file" || continue
3008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3011 # We found the default executable, but exeext='' is most
3015 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3017 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3019 # We set ac_cv_exeext here because the later test for it is not
3020 # safe: cross compilers may not add the suffix if given an `-o'
3021 # argument, so we may need to know it at that point already.
3022 # Even if this section looks crufty: it has the advantage of
3029 test "$ac_cv_exeext" = no && ac_cv_exeext=
3035 { echo "$as_me:$LINENO: result: $ac_file" >&5
3036 echo "${ECHO_T}$ac_file" >&6; }
3037 if test -z "$ac_file"; then
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3041 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3042 See \`config.log' for more details." >&5
3043 echo "$as_me: error: C compiler cannot create executables
3044 See \`config.log' for more details." >&2;}
3045 { (exit 77); exit 77; }; }
3048 ac_exeext=$ac_cv_exeext
3050 # Check that the compiler produces executables we can run. If not, either
3051 # the compiler is broken, or we cross compile.
3052 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3053 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3054 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3055 # If not cross compiling, check that we can run a simple program.
3056 if test "$cross_compiling" != yes; then
3057 if { ac_try='./$ac_file'
3058 { (case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_try") 2>&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; }; then
3069 if test "$cross_compiling" = maybe; then
3072 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3073 If you meant to cross compile, use \`--host'.
3074 See \`config.log' for more details." >&5
3075 echo "$as_me: error: cannot run C compiled programs.
3076 If you meant to cross compile, use \`--host'.
3077 See \`config.log' for more details." >&2;}
3078 { (exit 1); exit 1; }; }
3082 { echo "$as_me:$LINENO: result: yes" >&5
3083 echo "${ECHO_T}yes" >&6; }
3085 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3086 ac_clean_files=$ac_clean_files_save
3087 # Check that the compiler produces executables we can run. If not, either
3088 # the compiler is broken, or we cross compile.
3089 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3090 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3091 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3092 echo "${ECHO_T}$cross_compiling" >&6; }
3094 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3095 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3096 if { (ac_try="$ac_link"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_link") 2>&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; then
3106 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3107 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3108 # work properly (i.e., refer to `conftest.exe'), while it won't with
3110 for ac_file in conftest.exe conftest conftest.*; do
3111 test -f "$ac_file" || continue
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3114 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3120 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3121 See \`config.log' for more details." >&5
3122 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3123 See \`config.log' for more details." >&2;}
3124 { (exit 1); exit 1; }; }
3127 rm -f conftest$ac_cv_exeext
3128 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3129 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3131 rm -f conftest.$ac_ext
3132 EXEEXT=$ac_cv_exeext
3134 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3135 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3136 if test "${ac_cv_objext+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3154 rm -f conftest.o conftest.obj
3155 if { (ac_try="$ac_compile"
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_compile") 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; then
3165 for ac_file in conftest.o conftest.obj conftest.*; do
3166 test -f "$ac_file" || continue;
3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3169 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3177 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3178 See \`config.log' for more details." >&5
3179 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3180 See \`config.log' for more details." >&2;}
3181 { (exit 1); exit 1; }; }
3184 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3186 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3187 echo "${ECHO_T}$ac_cv_objext" >&6; }
3188 OBJEXT=$ac_cv_objext
3190 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3191 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3192 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 cat >conftest.$ac_ext <<_ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3213 rm -f conftest.$ac_objext
3214 if { (ac_try="$ac_compile"
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_compile") 2>conftest.er1
3222 grep -v '^ *+' conftest.er1 >conftest.err
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } && {
3227 test -z "$ac_c_werror_flag" ||
3228 test ! -s conftest.err
3229 } && test -s conftest.$ac_objext; then
3232 echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3242 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3243 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3244 GCC=`test $ac_compiler_gnu = yes && echo yes`
3245 ac_test_CFLAGS=${CFLAGS+set}
3246 ac_save_CFLAGS=$CFLAGS
3247 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3248 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3249 if test "${ac_cv_prog_cc_g+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 ac_save_c_werror_flag=$ac_c_werror_flag
3253 ac_c_werror_flag=yes
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3271 rm -f conftest.$ac_objext
3272 if { (ac_try="$ac_compile"
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_compile") 2>conftest.er1
3280 grep -v '^ *+' conftest.er1 >conftest.err
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } && {
3285 test -z "$ac_c_werror_flag" ||
3286 test ! -s conftest.err
3287 } && test -s conftest.$ac_objext; then
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3294 cat >conftest.$ac_ext <<_ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3309 rm -f conftest.$ac_objext
3310 if { (ac_try="$ac_compile"
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_compile") 2>conftest.er1
3318 grep -v '^ *+' conftest.er1 >conftest.err
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } && {
3323 test -z "$ac_c_werror_flag" ||
3324 test ! -s conftest.err
3325 } && test -s conftest.$ac_objext; then
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 ac_c_werror_flag=$ac_save_c_werror_flag
3333 cat >conftest.$ac_ext <<_ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3348 rm -f conftest.$ac_objext
3349 if { (ac_try="$ac_compile"
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_compile") 2>conftest.er1
3357 grep -v '^ *+' conftest.er1 >conftest.err
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } && {
3362 test -z "$ac_c_werror_flag" ||
3363 test ! -s conftest.err
3364 } && test -s conftest.$ac_objext; then
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 ac_c_werror_flag=$ac_save_c_werror_flag
3382 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3383 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3384 if test "$ac_test_CFLAGS" = set; then
3385 CFLAGS=$ac_save_CFLAGS
3386 elif test $ac_cv_prog_cc_g = yes; then
3387 if test "$GCC" = yes; then
3393 if test "$GCC" = yes; then
3399 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3400 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3401 if test "${ac_cv_prog_cc_c89+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 ac_cv_prog_cc_c89=no
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3414 #include <sys/types.h>
3415 #include <sys/stat.h>
3416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3417 struct buf { int x; };
3418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3419 static char *e (p, i)
3425 static char *f (char * (*g) (char **, int), char **p, ...)
3430 s = g (p, va_arg (v,int));
3435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3436 function prototypes and stuff, but not '\xHH' hex character constants.
3437 These don't provoke an error unfortunately, instead are silently treated
3438 as 'x'. The following induces an error, until -std is added to get
3439 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3440 array size at least. It's necessary to write '\x00'==0 to get something
3441 that's true only with -std. */
3442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3444 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3445 inside strings and character constants. */
3447 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3449 int test (int i, double x);
3450 struct s1 {int (*f) (int a);};
3451 struct s2 {int (*f) (double a);};
3452 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3458 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3463 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3464 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3466 CC="$ac_save_CC $ac_arg"
3467 rm -f conftest.$ac_objext
3468 if { (ac_try="$ac_compile"
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_compile") 2>conftest.er1
3476 grep -v '^ *+' conftest.er1 >conftest.err
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } && {
3481 test -z "$ac_c_werror_flag" ||
3482 test ! -s conftest.err
3483 } && test -s conftest.$ac_objext; then
3484 ac_cv_prog_cc_c89=$ac_arg
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3492 rm -f core conftest.err conftest.$ac_objext
3493 test "x$ac_cv_prog_cc_c89" != "xno" && break
3495 rm -f conftest.$ac_ext
3500 case "x$ac_cv_prog_cc_c89" in
3502 { echo "$as_me:$LINENO: result: none needed" >&5
3503 echo "${ECHO_T}none needed" >&6; } ;;
3505 { echo "$as_me:$LINENO: result: unsupported" >&5
3506 echo "${ECHO_T}unsupported" >&6; } ;;
3508 CC="$CC $ac_cv_prog_cc_c89"
3509 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3510 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3515 ac_cpp='$CPP $CPPFLAGS'
3516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520 depcc="$CC" am_compiler_list=
3522 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3523 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3524 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3528 # We make a subdir and do the tests there. Otherwise we can end up
3529 # making bogus files that we don't know about and never remove. For
3530 # instance it was reported that on HP-UX the gcc test will end up
3531 # making a dummy file named `D' -- because `-MD' means `put the output
3534 # Copy depcomp to subdir because otherwise we won't find it if we're
3535 # using a relative directory.
3536 cp "$am_depcomp" conftest.dir
3538 # We will build objects and dependencies in a subdirectory because
3539 # it helps to detect inapplicable dependency modes. For instance
3540 # both Tru64's cc and ICC support -MD to output dependencies as a
3541 # side effect of compilation, but ICC will put the dependencies in
3542 # the current directory while Tru64 will put them in the object
3546 am_cv_CC_dependencies_compiler_type=none
3547 if test "$am_compiler_list" = ""; then
3548 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3550 for depmode in $am_compiler_list; do
3551 # Setup a source with many dependencies, because some compilers
3552 # like to wrap large dependency lists on column 80 (with \), and
3553 # we should not choose a depcomp mode which is confused by this.
3555 # We need to recreate these files for each test, as the compiler may
3556 # overwrite some of them when testing with obscure command lines.
3557 # This happens at least with the AIX C compiler.
3559 for i in 1 2 3 4 5 6; do
3560 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3561 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3562 # Solaris 8's {/usr,}/bin/sh.
3563 touch sub/conftst$i.h
3565 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3569 # after this tag, mechanisms are not by side-effect, so they'll
3570 # only be used when explicitly requested
3571 if test "x$enable_dependency_tracking" = xyes; then
3579 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3580 # mode. It turns out that the SunPro C++ compiler does not properly
3581 # handle `-M -o', and we need to detect this.
3582 if depmode=$depmode \
3583 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3584 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3585 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3586 >/dev/null 2>conftest.err &&
3587 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3588 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3589 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3590 # icc doesn't choke on unknown options, it will just issue warnings
3591 # or remarks (even with -Werror). So we grep stderr for any message
3592 # that says an option was ignored or not supported.
3593 # When given -MP, icc 7.0 and 7.1 complain thusly:
3594 # icc: Command line warning: ignoring option '-M'; no argument required
3595 # The diagnosis changed in icc 8.0:
3596 # icc: Command line remark: option '-MP' not supported
3597 if (grep 'ignoring option' conftest.err ||
3598 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3599 am_cv_CC_dependencies_compiler_type=$depmode
3608 am_cv_CC_dependencies_compiler_type=none
3612 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3613 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3614 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3619 test "x$enable_dependency_tracking" != xno \
3620 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3622 am__fastdepCC_FALSE='#'
3624 am__fastdepCC_TRUE='#'
3625 am__fastdepCC_FALSE=
3631 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3632 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3633 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 ac_check_lib_save_LIBS=$LIBS
3637 LIBS="-lcposix $LIBS"
3638 cat >conftest.$ac_ext <<_ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3645 /* Override any GCC internal prototype to avoid an error.
3646 Use char because int might match the return type of a GCC
3647 builtin and then its argument prototype would still apply. */
3660 rm -f conftest.$ac_objext conftest$ac_exeext
3661 if { (ac_try="$ac_link"
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_link") 2>conftest.er1
3669 grep -v '^ *+' conftest.er1 >conftest.err
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && {
3674 test -z "$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 } && test -s conftest$ac_exeext &&
3677 $as_test_x conftest$ac_exeext; then
3678 ac_cv_lib_cposix_strerror=yes
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3683 ac_cv_lib_cposix_strerror=no
3686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3687 conftest$ac_exeext conftest.$ac_ext
3688 LIBS=$ac_check_lib_save_LIBS
3690 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3691 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3692 if test $ac_cv_lib_cposix_strerror = yes; then
3693 LIBS="$LIBS -lcposix"
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703 if test -n "$ac_tool_prefix"; then
3704 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3705 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3708 if test "${ac_cv_prog_CC+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 if test -n "$CC"; then
3712 ac_cv_prog_CC="$CC" # Let the user override the test.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 if test -n "$CC"; then
3733 { echo "$as_me:$LINENO: result: $CC" >&5
3734 echo "${ECHO_T}$CC" >&6; }
3736 { echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6; }
3742 if test -z "$ac_cv_prog_CC"; then
3744 # Extract the first word of "gcc", so it can be a program name with args.
3745 set dummy gcc; ac_word=$2
3746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3748 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 if test -n "$ac_ct_CC"; then
3752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3761 ac_cv_prog_ac_ct_CC="gcc"
3762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3772 if test -n "$ac_ct_CC"; then
3773 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3774 echo "${ECHO_T}$ac_ct_CC" >&6; }
3776 { echo "$as_me:$LINENO: result: no" >&5
3777 echo "${ECHO_T}no" >&6; }
3780 if test "x$ac_ct_CC" = x; then
3783 case $cross_compiling:$ac_tool_warned in
3785 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3786 whose name does not start with the host triplet. If you think this
3787 configuration is useful to you, please write to autoconf@gnu.org." >&5
3788 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3789 whose name does not start with the host triplet. If you think this
3790 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3791 ac_tool_warned=yes ;;
3799 if test -z "$CC"; then
3800 if test -n "$ac_tool_prefix"; then
3801 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3802 set dummy ${ac_tool_prefix}cc; ac_word=$2
3803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3805 if test "${ac_cv_prog_CC+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 if test -n "$CC"; then
3809 ac_cv_prog_CC="$CC" # Let the user override the test.
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3818 ac_cv_prog_CC="${ac_tool_prefix}cc"
3819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 if test -n "$CC"; then
3830 { echo "$as_me:$LINENO: result: $CC" >&5
3831 echo "${ECHO_T}$CC" >&6; }
3833 { echo "$as_me:$LINENO: result: no" >&5
3834 echo "${ECHO_T}no" >&6; }
3840 if test -z "$CC"; then
3841 # Extract the first word of "cc", so it can be a program name with args.
3842 set dummy cc; ac_word=$2
3843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3845 if test "${ac_cv_prog_CC+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 if test -n "$CC"; then
3849 ac_cv_prog_CC="$CC" # Let the user override the test.
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3859 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3860 ac_prog_rejected=yes
3864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 if test $ac_prog_rejected = yes; then
3872 # We found a bogon in the path, so make sure we never use it.
3873 set dummy $ac_cv_prog_CC
3875 if test $# != 0; then
3876 # We chose a different compiler from the bogus one.
3877 # However, it has the same basename, so the bogon will be chosen
3878 # first if we set CC to just the basename; use the full file name.
3880 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3886 if test -n "$CC"; then
3887 { echo "$as_me:$LINENO: result: $CC" >&5
3888 echo "${ECHO_T}$CC" >&6; }
3890 { echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6; }
3896 if test -z "$CC"; then
3897 if test -n "$ac_tool_prefix"; then
3898 for ac_prog in cl.exe
3900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3904 if test "${ac_cv_prog_CC+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 if test -n "$CC"; then
3908 ac_cv_prog_CC="$CC" # Let the user override the test.
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 if test -n "$CC"; then
3929 { echo "$as_me:$LINENO: result: $CC" >&5
3930 echo "${ECHO_T}$CC" >&6; }
3932 { echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6; }
3937 test -n "$CC" && break
3940 if test -z "$CC"; then
3942 for ac_prog in cl.exe
3944 # Extract the first word of "$ac_prog", so it can be a program name with args.
3945 set dummy $ac_prog; ac_word=$2
3946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 if test -n "$ac_ct_CC"; then
3952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961 ac_cv_prog_ac_ct_CC="$ac_prog"
3962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3972 if test -n "$ac_ct_CC"; then
3973 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3974 echo "${ECHO_T}$ac_ct_CC" >&6; }
3976 { echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6; }
3981 test -n "$ac_ct_CC" && break
3984 if test "x$ac_ct_CC" = x; then
3987 case $cross_compiling:$ac_tool_warned in
3989 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3990 whose name does not start with the host triplet. If you think this
3991 configuration is useful to you, please write to autoconf@gnu.org." >&5
3992 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3993 whose name does not start with the host triplet. If you think this
3994 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3995 ac_tool_warned=yes ;;
4004 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4005 See \`config.log' for more details." >&5
4006 echo "$as_me: error: no acceptable C compiler found in \$PATH
4007 See \`config.log' for more details." >&2;}
4008 { (exit 1); exit 1; }; }
4010 # Provide some information about the compiler.
4011 echo "$as_me:$LINENO: checking for C compiler version" >&5
4012 ac_compiler=`set X $ac_compile; echo $2`
4013 { (ac_try="$ac_compiler --version >&5"
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_compiler --version >&5") 2>&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }
4023 { (ac_try="$ac_compiler -v >&5"
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_compiler -v >&5") 2>&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }
4033 { (ac_try="$ac_compiler -V >&5"
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4039 (eval "$ac_compiler -V >&5") 2>&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }
4044 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4045 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4046 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 cat >conftest.$ac_ext <<_ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4076 grep -v '^ *+' conftest.er1 >conftest.err
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } && {
4081 test -z "$ac_c_werror_flag" ||
4082 test ! -s conftest.err
4083 } && test -s conftest.$ac_objext; then
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4096 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4097 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4098 GCC=`test $ac_compiler_gnu = yes && echo yes`
4099 ac_test_CFLAGS=${CFLAGS+set}
4100 ac_save_CFLAGS=$CFLAGS
4101 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4102 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4103 if test "${ac_cv_prog_cc_g+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 ac_save_c_werror_flag=$ac_c_werror_flag
4107 ac_c_werror_flag=yes
4110 cat >conftest.$ac_ext <<_ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4125 rm -f conftest.$ac_objext
4126 if { (ac_try="$ac_compile"
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_compile") 2>conftest.er1
4134 grep -v '^ *+' conftest.er1 >conftest.err
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } && {
4139 test -z "$ac_c_werror_flag" ||
4140 test ! -s conftest.err
4141 } && test -s conftest.$ac_objext; then
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4148 cat >conftest.$ac_ext <<_ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4163 rm -f conftest.$ac_objext
4164 if { (ac_try="$ac_compile"
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_compile") 2>conftest.er1
4172 grep -v '^ *+' conftest.er1 >conftest.err
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } && {
4177 test -z "$ac_c_werror_flag" ||
4178 test ! -s conftest.err
4179 } && test -s conftest.$ac_objext; then
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 ac_c_werror_flag=$ac_save_c_werror_flag
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compile") 2>conftest.er1
4211 grep -v '^ *+' conftest.er1 >conftest.err
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && {
4216 test -z "$ac_c_werror_flag" ||
4217 test ! -s conftest.err
4218 } && test -s conftest.$ac_objext; then
4221 echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 ac_c_werror_flag=$ac_save_c_werror_flag
4236 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4237 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4238 if test "$ac_test_CFLAGS" = set; then
4239 CFLAGS=$ac_save_CFLAGS
4240 elif test $ac_cv_prog_cc_g = yes; then
4241 if test "$GCC" = yes; then
4247 if test "$GCC" = yes; then
4253 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4254 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4255 if test "${ac_cv_prog_cc_c89+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 ac_cv_prog_cc_c89=no
4260 cat >conftest.$ac_ext <<_ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4268 #include <sys/types.h>
4269 #include <sys/stat.h>
4270 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4271 struct buf { int x; };
4272 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4273 static char *e (p, i)
4279 static char *f (char * (*g) (char **, int), char **p, ...)
4284 s = g (p, va_arg (v,int));
4289 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4290 function prototypes and stuff, but not '\xHH' hex character constants.
4291 These don't provoke an error unfortunately, instead are silently treated
4292 as 'x'. The following induces an error, until -std is added to get
4293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4294 array size at least. It's necessary to write '\x00'==0 to get something
4295 that's true only with -std. */
4296 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4298 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4299 inside strings and character constants. */
4301 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4303 int test (int i, double x);
4304 struct s1 {int (*f) (int a);};
4305 struct s2 {int (*f) (double a);};
4306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4312 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4317 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4320 CC="$ac_save_CC $ac_arg"
4321 rm -f conftest.$ac_objext
4322 if { (ac_try="$ac_compile"
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_compile") 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } && {
4335 test -z "$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4337 } && test -s conftest.$ac_objext; then
4338 ac_cv_prog_cc_c89=$ac_arg
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4346 rm -f core conftest.err conftest.$ac_objext
4347 test "x$ac_cv_prog_cc_c89" != "xno" && break
4349 rm -f conftest.$ac_ext
4354 case "x$ac_cv_prog_cc_c89" in
4356 { echo "$as_me:$LINENO: result: none needed" >&5
4357 echo "${ECHO_T}none needed" >&6; } ;;
4359 { echo "$as_me:$LINENO: result: unsupported" >&5
4360 echo "${ECHO_T}unsupported" >&6; } ;;
4362 CC="$CC $ac_cv_prog_cc_c89"
4363 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4364 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374 depcc="$CC" am_compiler_list=
4376 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4377 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4378 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4382 # We make a subdir and do the tests there. Otherwise we can end up
4383 # making bogus files that we don't know about and never remove. For
4384 # instance it was reported that on HP-UX the gcc test will end up
4385 # making a dummy file named `D' -- because `-MD' means `put the output
4388 # Copy depcomp to subdir because otherwise we won't find it if we're
4389 # using a relative directory.
4390 cp "$am_depcomp" conftest.dir
4392 # We will build objects and dependencies in a subdirectory because
4393 # it helps to detect inapplicable dependency modes. For instance
4394 # both Tru64's cc and ICC support -MD to output dependencies as a
4395 # side effect of compilation, but ICC will put the dependencies in
4396 # the current directory while Tru64 will put them in the object
4400 am_cv_CC_dependencies_compiler_type=none
4401 if test "$am_compiler_list" = ""; then
4402 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4404 for depmode in $am_compiler_list; do
4405 # Setup a source with many dependencies, because some compilers
4406 # like to wrap large dependency lists on column 80 (with \), and
4407 # we should not choose a depcomp mode which is confused by this.
4409 # We need to recreate these files for each test, as the compiler may
4410 # overwrite some of them when testing with obscure command lines.
4411 # This happens at least with the AIX C compiler.
4413 for i in 1 2 3 4 5 6; do
4414 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4415 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4416 # Solaris 8's {/usr,}/bin/sh.
4417 touch sub/conftst$i.h
4419 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4423 # after this tag, mechanisms are not by side-effect, so they'll
4424 # only be used when explicitly requested
4425 if test "x$enable_dependency_tracking" = xyes; then
4433 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4434 # mode. It turns out that the SunPro C++ compiler does not properly
4435 # handle `-M -o', and we need to detect this.
4436 if depmode=$depmode \
4437 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4438 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4439 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4440 >/dev/null 2>conftest.err &&
4441 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4442 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4443 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4444 # icc doesn't choke on unknown options, it will just issue warnings
4445 # or remarks (even with -Werror). So we grep stderr for any message
4446 # that says an option was ignored or not supported.
4447 # When given -MP, icc 7.0 and 7.1 complain thusly:
4448 # icc: Command line warning: ignoring option '-M'; no argument required
4449 # The diagnosis changed in icc 8.0:
4450 # icc: Command line remark: option '-MP' not supported
4451 if (grep 'ignoring option' conftest.err ||
4452 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4453 am_cv_CC_dependencies_compiler_type=$depmode
4462 am_cv_CC_dependencies_compiler_type=none
4466 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4467 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4468 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4473 test "x$enable_dependency_tracking" != xno \
4474 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4476 am__fastdepCC_FALSE='#'
4478 am__fastdepCC_TRUE='#'
4479 am__fastdepCC_FALSE=
4484 ac_cpp='$CPP $CPPFLAGS'
4485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488 if test -n "$ac_tool_prefix"; then
4489 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4490 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4493 if test "${ac_cv_prog_CC+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 if test -n "$CC"; then
4497 ac_cv_prog_CC="$CC" # Let the user override the test.
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4506 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 if test -n "$CC"; then
4518 { echo "$as_me:$LINENO: result: $CC" >&5
4519 echo "${ECHO_T}$CC" >&6; }
4521 { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4527 if test -z "$ac_cv_prog_CC"; then
4529 # Extract the first word of "gcc", so it can be a program name with args.
4530 set dummy gcc; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 if test -n "$ac_ct_CC"; then
4537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_prog_ac_ct_CC="gcc"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4557 if test -n "$ac_ct_CC"; then
4558 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4559 echo "${ECHO_T}$ac_ct_CC" >&6; }
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4565 if test "x$ac_ct_CC" = x; then
4568 case $cross_compiling:$ac_tool_warned in
4570 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4571 whose name does not start with the host triplet. If you think this
4572 configuration is useful to you, please write to autoconf@gnu.org." >&5
4573 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4574 whose name does not start with the host triplet. If you think this
4575 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4576 ac_tool_warned=yes ;;
4584 if test -z "$CC"; then
4585 if test -n "$ac_tool_prefix"; then
4586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4587 set dummy ${ac_tool_prefix}cc; ac_word=$2
4588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4590 if test "${ac_cv_prog_CC+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 if test -n "$CC"; then
4594 ac_cv_prog_CC="$CC" # Let the user override the test.
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4603 ac_cv_prog_CC="${ac_tool_prefix}cc"
4604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 if test -n "$CC"; then
4615 { echo "$as_me:$LINENO: result: $CC" >&5
4616 echo "${ECHO_T}$CC" >&6; }
4618 { echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6; }
4625 if test -z "$CC"; then
4626 # Extract the first word of "cc", so it can be a program name with args.
4627 set dummy cc; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_CC+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 if test -n "$CC"; then
4634 ac_cv_prog_CC="$CC" # Let the user override the test.
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4645 ac_prog_rejected=yes
4649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 if test $ac_prog_rejected = yes; then
4657 # We found a bogon in the path, so make sure we never use it.
4658 set dummy $ac_cv_prog_CC
4660 if test $# != 0; then
4661 # We chose a different compiler from the bogus one.
4662 # However, it has the same basename, so the bogon will be chosen
4663 # first if we set CC to just the basename; use the full file name.
4665 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4671 if test -n "$CC"; then
4672 { echo "$as_me:$LINENO: result: $CC" >&5
4673 echo "${ECHO_T}$CC" >&6; }
4675 { echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6; }
4681 if test -z "$CC"; then
4682 if test -n "$ac_tool_prefix"; then
4683 for ac_prog in cl.exe
4685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689 if test "${ac_cv_prog_CC+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 if test -n "$CC"; then
4693 ac_cv_prog_CC="$CC" # Let the user override the test.
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 if test -n "$CC"; then
4714 { echo "$as_me:$LINENO: result: $CC" >&5
4715 echo "${ECHO_T}$CC" >&6; }
4717 { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4722 test -n "$CC" && break
4725 if test -z "$CC"; then
4727 for ac_prog in cl.exe
4729 # Extract the first word of "$ac_prog", so it can be a program name with args.
4730 set dummy $ac_prog; ac_word=$2
4731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 if test -n "$ac_ct_CC"; then
4737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_ac_ct_CC="$ac_prog"
4747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4757 if test -n "$ac_ct_CC"; then
4758 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4759 echo "${ECHO_T}$ac_ct_CC" >&6; }
4761 { echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6; }
4766 test -n "$ac_ct_CC" && break
4769 if test "x$ac_ct_CC" = x; then
4772 case $cross_compiling:$ac_tool_warned in
4774 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4775 whose name does not start with the host triplet. If you think this
4776 configuration is useful to you, please write to autoconf@gnu.org." >&5
4777 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4778 whose name does not start with the host triplet. If you think this
4779 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4780 ac_tool_warned=yes ;;
4789 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4790 See \`config.log' for more details." >&5
4791 echo "$as_me: error: no acceptable C compiler found in \$PATH
4792 See \`config.log' for more details." >&2;}
4793 { (exit 1); exit 1; }; }
4795 # Provide some information about the compiler.
4796 echo "$as_me:$LINENO: checking for C compiler version" >&5
4797 ac_compiler=`set X $ac_compile; echo $2`
4798 { (ac_try="$ac_compiler --version >&5"
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804 (eval "$ac_compiler --version >&5") 2>&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }
4808 { (ac_try="$ac_compiler -v >&5"
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814 (eval "$ac_compiler -v >&5") 2>&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }
4818 { (ac_try="$ac_compiler -V >&5"
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824 (eval "$ac_compiler -V >&5") 2>&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }
4829 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4830 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4831 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 cat >conftest.$ac_ext <<_ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4852 rm -f conftest.$ac_objext
4853 if { (ac_try="$ac_compile"
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_compile") 2>conftest.er1
4861 grep -v '^ *+' conftest.er1 >conftest.err
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && {
4866 test -z "$ac_c_werror_flag" ||
4867 test ! -s conftest.err
4868 } && test -s conftest.$ac_objext; then
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4881 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4882 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4883 GCC=`test $ac_compiler_gnu = yes && echo yes`
4884 ac_test_CFLAGS=${CFLAGS+set}
4885 ac_save_CFLAGS=$CFLAGS
4886 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4887 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4888 if test "${ac_cv_prog_cc_g+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 ac_save_c_werror_flag=$ac_c_werror_flag
4892 ac_c_werror_flag=yes
4895 cat >conftest.$ac_ext <<_ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4910 rm -f conftest.$ac_objext
4911 if { (ac_try="$ac_compile"
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_compile") 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } && {
4924 test -z "$ac_c_werror_flag" ||
4925 test ! -s conftest.err
4926 } && test -s conftest.$ac_objext; then
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4933 cat >conftest.$ac_ext <<_ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4948 rm -f conftest.$ac_objext
4949 if { (ac_try="$ac_compile"
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_compile") 2>conftest.er1
4957 grep -v '^ *+' conftest.er1 >conftest.err
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } && {
4962 test -z "$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4964 } && test -s conftest.$ac_objext; then
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 ac_c_werror_flag=$ac_save_c_werror_flag
4972 cat >conftest.$ac_ext <<_ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4987 rm -f conftest.$ac_objext
4988 if { (ac_try="$ac_compile"
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994 (eval "$ac_compile") 2>conftest.er1
4996 grep -v '^ *+' conftest.er1 >conftest.err
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } && {
5001 test -z "$ac_c_werror_flag" ||
5002 test ! -s conftest.err
5003 } && test -s conftest.$ac_objext; then
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 ac_c_werror_flag=$ac_save_c_werror_flag
5021 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5022 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5023 if test "$ac_test_CFLAGS" = set; then
5024 CFLAGS=$ac_save_CFLAGS
5025 elif test $ac_cv_prog_cc_g = yes; then
5026 if test "$GCC" = yes; then
5032 if test "$GCC" = yes; then
5038 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5039 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5040 if test "${ac_cv_prog_cc_c89+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 ac_cv_prog_cc_c89=no
5045 cat >conftest.$ac_ext <<_ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5053 #include <sys/types.h>
5054 #include <sys/stat.h>
5055 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5056 struct buf { int x; };
5057 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5058 static char *e (p, i)
5064 static char *f (char * (*g) (char **, int), char **p, ...)
5069 s = g (p, va_arg (v,int));
5074 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5075 function prototypes and stuff, but not '\xHH' hex character constants.
5076 These don't provoke an error unfortunately, instead are silently treated
5077 as 'x'. The following induces an error, until -std is added to get
5078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5079 array size at least. It's necessary to write '\x00'==0 to get something
5080 that's true only with -std. */
5081 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5083 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5084 inside strings and character constants. */
5086 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5088 int test (int i, double x);
5089 struct s1 {int (*f) (int a);};
5090 struct s2 {int (*f) (double a);};
5091 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5097 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5102 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5103 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5105 CC="$ac_save_CC $ac_arg"
5106 rm -f conftest.$ac_objext
5107 if { (ac_try="$ac_compile"
5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5113 (eval "$ac_compile") 2>conftest.er1
5115 grep -v '^ *+' conftest.er1 >conftest.err
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && {
5120 test -z "$ac_c_werror_flag" ||
5121 test ! -s conftest.err
5122 } && test -s conftest.$ac_objext; then
5123 ac_cv_prog_cc_c89=$ac_arg
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5131 rm -f core conftest.err conftest.$ac_objext
5132 test "x$ac_cv_prog_cc_c89" != "xno" && break
5134 rm -f conftest.$ac_ext
5139 case "x$ac_cv_prog_cc_c89" in
5141 { echo "$as_me:$LINENO: result: none needed" >&5
5142 echo "${ECHO_T}none needed" >&6; } ;;
5144 { echo "$as_me:$LINENO: result: unsupported" >&5
5145 echo "${ECHO_T}unsupported" >&6; } ;;
5147 CC="$CC $ac_cv_prog_cc_c89"
5148 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5149 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5154 ac_cpp='$CPP $CPPFLAGS'
5155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5159 depcc="$CC" am_compiler_list=
5161 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5162 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5163 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5167 # We make a subdir and do the tests there. Otherwise we can end up
5168 # making bogus files that we don't know about and never remove. For
5169 # instance it was reported that on HP-UX the gcc test will end up
5170 # making a dummy file named `D' -- because `-MD' means `put the output
5173 # Copy depcomp to subdir because otherwise we won't find it if we're
5174 # using a relative directory.
5175 cp "$am_depcomp" conftest.dir
5177 # We will build objects and dependencies in a subdirectory because
5178 # it helps to detect inapplicable dependency modes. For instance
5179 # both Tru64's cc and ICC support -MD to output dependencies as a
5180 # side effect of compilation, but ICC will put the dependencies in
5181 # the current directory while Tru64 will put them in the object
5185 am_cv_CC_dependencies_compiler_type=none
5186 if test "$am_compiler_list" = ""; then
5187 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5189 for depmode in $am_compiler_list; do
5190 # Setup a source with many dependencies, because some compilers
5191 # like to wrap large dependency lists on column 80 (with \), and
5192 # we should not choose a depcomp mode which is confused by this.
5194 # We need to recreate these files for each test, as the compiler may
5195 # overwrite some of them when testing with obscure command lines.
5196 # This happens at least with the AIX C compiler.
5198 for i in 1 2 3 4 5 6; do
5199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5200 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5201 # Solaris 8's {/usr,}/bin/sh.
5202 touch sub/conftst$i.h
5204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5208 # after this tag, mechanisms are not by side-effect, so they'll
5209 # only be used when explicitly requested
5210 if test "x$enable_dependency_tracking" = xyes; then
5218 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5219 # mode. It turns out that the SunPro C++ compiler does not properly
5220 # handle `-M -o', and we need to detect this.
5221 if depmode=$depmode \
5222 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5224 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5225 >/dev/null 2>conftest.err &&
5226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5227 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5229 # icc doesn't choke on unknown options, it will just issue warnings
5230 # or remarks (even with -Werror). So we grep stderr for any message
5231 # that says an option was ignored or not supported.
5232 # When given -MP, icc 7.0 and 7.1 complain thusly:
5233 # icc: Command line warning: ignoring option '-M'; no argument required
5234 # The diagnosis changed in icc 8.0:
5235 # icc: Command line remark: option '-MP' not supported
5236 if (grep 'ignoring option' conftest.err ||
5237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5238 am_cv_CC_dependencies_compiler_type=$depmode
5247 am_cv_CC_dependencies_compiler_type=none
5251 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5252 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5253 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5258 test "x$enable_dependency_tracking" != xno \
5259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5261 am__fastdepCC_FALSE='#'
5263 am__fastdepCC_TRUE='#'
5264 am__fastdepCC_FALSE=
5269 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5272 ac_cpp='$CPP $CPPFLAGS'
5273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5276 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5277 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5278 # On Suns, sometimes $CPP names a directory.
5279 if test -n "$CPP" && test -d "$CPP"; then
5282 if test -z "$CPP"; then
5283 if test "${ac_cv_prog_CPP+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 # Double quotes because CPP needs to be expanded
5287 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5290 for ac_c_preproc_warn_flag in '' yes
5292 # Use a header file that comes with gcc, so configuring glibc
5293 # with a fresh cross-compiler works.
5294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5295 # <limits.h> exists even on freestanding compilers.
5296 # On the NeXT, cc -E runs the code through the compiler's parser,
5297 # not just through cpp. "Syntax error" is here to catch this case.
5298 cat >conftest.$ac_ext <<_ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5305 # include <limits.h>
5307 # include <assert.h>
5311 if { (ac_try="$ac_cpp conftest.$ac_ext"
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5319 grep -v '^ *+' conftest.er1 >conftest.err
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } >/dev/null && {
5324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5332 # Broken: fails on valid input.
5336 rm -f conftest.err conftest.$ac_ext
5338 # OK, works on sane cases. Now check whether nonexistent headers
5339 # can be detected and how.
5340 cat >conftest.$ac_ext <<_ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 #include <ac_nonexistent.h>
5348 if { (ac_try="$ac_cpp conftest.$ac_ext"
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5356 grep -v '^ *+' conftest.er1 >conftest.err
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } >/dev/null && {
5361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5362 test ! -s conftest.err
5364 # Broken: success on invalid input.
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5370 # Passes both tests.
5375 rm -f conftest.err conftest.$ac_ext
5378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5379 rm -f conftest.err conftest.$ac_ext
5380 if $ac_preproc_ok; then
5392 { echo "$as_me:$LINENO: result: $CPP" >&5
5393 echo "${ECHO_T}$CPP" >&6; }
5395 for ac_c_preproc_warn_flag in '' yes
5397 # Use a header file that comes with gcc, so configuring glibc
5398 # with a fresh cross-compiler works.
5399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5400 # <limits.h> exists even on freestanding compilers.
5401 # On the NeXT, cc -E runs the code through the compiler's parser,
5402 # not just through cpp. "Syntax error" is here to catch this case.
5403 cat >conftest.$ac_ext <<_ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5410 # include <limits.h>
5412 # include <assert.h>
5416 if { (ac_try="$ac_cpp conftest.$ac_ext"
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5424 grep -v '^ *+' conftest.er1 >conftest.err
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } >/dev/null && {
5429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5430 test ! -s conftest.err
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5437 # Broken: fails on valid input.
5441 rm -f conftest.err conftest.$ac_ext
5443 # OK, works on sane cases. Now check whether nonexistent headers
5444 # can be detected and how.
5445 cat >conftest.$ac_ext <<_ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 #include <ac_nonexistent.h>
5453 if { (ac_try="$ac_cpp conftest.$ac_ext"
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5461 grep -v '^ *+' conftest.er1 >conftest.err
5463 cat conftest.err >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } >/dev/null && {
5466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5467 test ! -s conftest.err
5469 # Broken: success on invalid input.
5472 echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5475 # Passes both tests.
5480 rm -f conftest.err conftest.$ac_ext
5483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5484 rm -f conftest.err conftest.$ac_ext
5485 if $ac_preproc_ok; then
5488 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5489 See \`config.log' for more details." >&5
5490 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5491 See \`config.log' for more details." >&2;}
5492 { (exit 1); exit 1; }; }
5496 ac_cpp='$CPP $CPPFLAGS'
5497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5503 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
5505 if test -z "$CC_FOR_BUILD"; then
5506 if test "$#" = yes; then
5507 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5508 See \`config.log' for more details." >&5
5509 echo "$as_me: error: cannot run test program while cross compiling
5510 See \`config.log' for more details." >&2;}
5511 { (exit 1); exit 1; }; }
5513 cat >conftest.$ac_ext <<_ACEOF
5514 int main(){return 0;}
5516 rm -f conftest$ac_exeext
5517 if { (ac_try="$ac_link"
5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520 *) ac_try_echo=$ac_try;;
5522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5523 (eval "$ac_link") 2>&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5527 { (case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_try") 2>&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5538 echo "$as_me: program exited with status $ac_status" >&5
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5551 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5552 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5553 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
5555 if test -n "$ac_build_tool_prefix"; then
5556 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5557 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5560 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 if test -n "$CC_FOR_BUILD"; then
5564 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5584 if test -n "$CC_FOR_BUILD"; then
5585 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5586 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5588 { echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6; }
5594 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5595 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5596 # Extract the first word of "gcc", so it can be a program name with args.
5597 set dummy gcc; ac_word=$2
5598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5600 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 if test -n "$ac_ct_CC_FOR_BUILD"; then
5604 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5624 if test -n "$ac_ct_CC_FOR_BUILD"; then
5625 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5626 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5628 { echo "$as_me:$LINENO: result: no" >&5
5629 echo "${ECHO_T}no" >&6; }
5632 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5635 case $#:$ac_tool_warned in
5637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5638 whose name does not start with the build triplet. If you think this
5639 configuration is useful to you, please write to autoconf@gnu.org." >&5
5640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5641 whose name does not start with the build triplet. If you think this
5642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5643 ac_tool_warned=yes ;;
5645 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5648 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5651 if test -z "$CC_FOR_BUILD"; then
5652 if test -n "$ac_build_tool_prefix"; then
5653 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5654 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5657 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 if test -n "$CC_FOR_BUILD"; then
5661 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5681 if test -n "$CC_FOR_BUILD"; then
5682 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5683 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5685 { echo "$as_me:$LINENO: result: no" >&5
5686 echo "${ECHO_T}no" >&6; }
5692 if test -z "$CC_FOR_BUILD"; then
5693 # Extract the first word of "cc", so it can be a program name with args.
5694 set dummy cc; ac_word=$2
5695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5697 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 if test -n "$CC_FOR_BUILD"; then
5701 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5712 ac_prog_rejected=yes
5715 ac_cv_prog_CC_FOR_BUILD="cc"
5716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 if test $ac_prog_rejected = yes; then
5724 # We found a bogon in the path, so make sure we never use it.
5725 set dummy $ac_cv_prog_CC_FOR_BUILD
5727 if test $# != 0; then
5728 # We chose a different compiler from the bogus one.
5729 # However, it has the same basename, so the bogon will be chosen
5730 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5732 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5737 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5738 if test -n "$CC_FOR_BUILD"; then
5739 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5740 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5742 { echo "$as_me:$LINENO: result: no" >&5
5743 echo "${ECHO_T}no" >&6; }
5748 if test -z "$CC_FOR_BUILD"; then
5749 if test -n "$ac_build_tool_prefix"; then
5750 for ac_prog in cl.exe
5752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5753 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5756 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 if test -n "$CC_FOR_BUILD"; then
5760 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5780 if test -n "$CC_FOR_BUILD"; then
5781 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5782 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5784 { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5789 test -n "$CC_FOR_BUILD" && break
5792 if test -z "$CC_FOR_BUILD"; then
5793 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5794 for ac_prog in cl.exe
5796 # Extract the first word of "$ac_prog", so it can be a program name with args.
5797 set dummy $ac_prog; ac_word=$2
5798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5800 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 if test -n "$ac_ct_CC_FOR_BUILD"; then
5804 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5824 if test -n "$ac_ct_CC_FOR_BUILD"; then
5825 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5826 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5828 { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5833 test -n "$ac_ct_CC_FOR_BUILD" && break
5836 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5839 case $#:$ac_tool_warned in
5841 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5842 whose name does not start with the build triplet. If you think this
5843 configuration is useful to you, please write to autoconf@gnu.org." >&5
5844 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5845 whose name does not start with the build triplet. If you think this
5846 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5847 ac_tool_warned=yes ;;
5849 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5856 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5857 See \`config.log' for more details." >&5
5858 echo "$as_me: error: no acceptable C compiler found in \$PATH
5859 See \`config.log' for more details." >&2;}
5860 { (exit 1); exit 1; }; }
5862 # Provide some information about the compiler.
5863 echo "$as_me:$LINENO: checking for C compiler version" >&5
5864 ac_compiler=`set X $ac_build_compile; echo $2`
5865 { (ac_try="$ac_compiler --version >&5"
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_compiler --version >&5") 2>&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }
5875 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }
5885 { (ac_try="$ac_compiler -V >&5"
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_compiler -V >&5") 2>&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }
5896 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5897 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5898 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 cat >conftest.$ac_ext <<_ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5919 rm -f conftest.$ac_build_objext
5920 if { (ac_try="$ac_build_compile"
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_build_compile") 2>conftest.er1
5928 grep -v '^ *+' conftest.er1 >conftest.err
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest.$ac_build_objext; then
5936 ac_build_compiler_gnu=yes
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 ac_build_compiler_gnu=no
5944 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5945 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
5948 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5949 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5950 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
5951 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5952 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5953 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
5954 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
5955 if test "${ac_cv_build_prog_cc_g+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 ac_save_c_werror_flag=$ac_c_werror_flag
5959 ac_c_werror_flag=yes
5960 ac_cv_build_prog_cc_g=no
5961 CFLAGS_FOR_BUILD="-g"
5962 cat >conftest.$ac_ext <<_ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5977 rm -f conftest.$ac_build_objext
5978 if { (ac_try="$ac_build_compile"
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_build_compile") 2>conftest.er1
5986 grep -v '^ *+' conftest.er1 >conftest.err
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest.$ac_build_objext; then
5994 ac_cv_build_prog_cc_g=yes
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
6000 cat >conftest.$ac_ext <<_ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6015 rm -f conftest.$ac_build_objext
6016 if { (ac_try="$ac_build_compile"
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_build_compile") 2>conftest.er1
6024 grep -v '^ *+' conftest.er1 >conftest.err
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } && {
6029 test -z "$ac_c_werror_flag" ||
6030 test ! -s conftest.err
6031 } && test -s conftest.$ac_build_objext; then
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 ac_c_werror_flag=$ac_save_c_werror_flag
6038 CFLAGS_FOR_BUILD="-g"
6039 cat >conftest.$ac_ext <<_ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6054 rm -f conftest.$ac_build_objext
6055 if { (ac_try="$ac_build_compile"
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_build_compile") 2>conftest.er1
6063 grep -v '^ *+' conftest.er1 >conftest.err
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } && {
6068 test -z "$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6070 } && test -s conftest.$ac_build_objext; then
6071 ac_cv_build_prog_cc_g=yes
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6079 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6082 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6085 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6086 ac_c_werror_flag=$ac_save_c_werror_flag
6088 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
6089 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
6090 if test "$ac_test_CFLAGS" = set; then
6091 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6092 elif test $ac_cv_build_prog_cc_g = yes; then
6093 if test "$GCC" = yes; then
6094 CFLAGS_FOR_BUILD="-g -O2"
6096 CFLAGS_FOR_BUILD="-g"
6099 if test "$GCC" = yes; then
6100 CFLAGS_FOR_BUILD="-O2"
6105 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6106 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6107 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 ac_cv_build_prog_cc_stdc=no
6111 ac_save_CC=$CC_FOR_BUILD
6112 cat >conftest.$ac_ext <<_ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6120 #include <sys/types.h>
6121 #include <sys/stat.h>
6122 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6123 struct buf { int x; };
6124 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6125 static char *e (p, i)
6131 static char *f (char * (*g) (char **, int), char **p, ...)
6136 s = g (p, va_arg (v,int));
6141 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6142 function prototypes and stuff, but not '\xHH' hex character constants.
6143 These don't provoke an error unfortunately, instead are silently treated
6144 as 'x'. The following induces an error, until -std is added to get
6145 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6146 array size at least. It's necessary to write '\x00'==0 to get something
6147 that's true only with -std. */
6148 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6150 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6151 inside strings and character constants. */
6153 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6155 int test (int i, double x);
6156 struct s1 {int (*f) (int a);};
6157 struct s2 {int (*f) (double a);};
6158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6164 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6169 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6170 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6172 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6173 rm -f conftest.$ac_build_objext
6174 if { (ac_try="$ac_build_compile"
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_build_compile") 2>conftest.er1
6182 grep -v '^ *+' conftest.er1 >conftest.err
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest.$ac_build_objext; then
6190 ac_cv_build_prog_cc_stdc=$ac_arg
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6198 rm -f core conftest.err conftest.$ac_build_objext
6199 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6201 rm -f conftest.$ac_ext
6202 CC_FOR_BUILD=$ac_save_CC
6206 case "x$ac_cv_build_prog_cc_stdc" in
6208 { echo "$as_me:$LINENO: result: none needed" >&5
6209 echo "${ECHO_T}none needed" >&6; } ;;
6211 { echo "$as_me:$LINENO: result: unsupported" >&5
6212 echo "${ECHO_T}unsupported" >&6; } ;;
6214 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6215 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6216 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6221 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6222 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6223 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6226 depcc="$CC_FOR_BUILD" am_compiler_list=
6228 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6229 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6230 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6234 # We make a subdir and do the tests there. Otherwise we can end up
6235 # making bogus files that we don't know about and never remove. For
6236 # instance it was reported that on HP-UX the gcc test will end up
6237 # making a dummy file named `D' -- because `-MD' means `put the output
6240 # Copy depcomp to subdir because otherwise we won't find it if we're
6241 # using a relative directory.
6242 cp "$am_depcomp" conftest.dir
6244 # We will build objects and dependencies in a subdirectory because
6245 # it helps to detect inapplicable dependency modes. For instance
6246 # both Tru64's cc and ICC support -MD to output dependencies as a
6247 # side effect of compilation, but ICC will put the dependencies in
6248 # the current directory while Tru64 will put them in the object
6252 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6253 if test "$am_compiler_list" = ""; then
6254 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6256 for depmode in $am_compiler_list; do
6257 # Setup a source with many dependencies, because some compilers
6258 # like to wrap large dependency lists on column 80 (with \), and
6259 # we should not choose a depcomp mode which is confused by this.
6261 # We need to recreate these files for each test, as the compiler may
6262 # overwrite some of them when testing with obscure command lines.
6263 # This happens at least with the AIX C compiler.
6265 for i in 1 2 3 4 5 6; do
6266 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6267 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6268 # Solaris 8's {/usr,}/bin/sh.
6269 touch sub/conftst$i.h
6271 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6275 # after this tag, mechanisms are not by side-effect, so they'll
6276 # only be used when explicitly requested
6277 if test "x$enable_dependency_tracking" = xyes; then
6285 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6286 # mode. It turns out that the SunPro C++ compiler does not properly
6287 # handle `-M -o', and we need to detect this.
6288 if depmode=$depmode \
6289 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6290 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6291 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6292 >/dev/null 2>conftest.err &&
6293 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6294 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6295 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6296 # icc doesn't choke on unknown options, it will just issue warnings
6297 # or remarks (even with -Werror). So we grep stderr for any message
6298 # that says an option was ignored or not supported.
6299 # When given -MP, icc 7.0 and 7.1 complain thusly:
6300 # icc: Command line warning: ignoring option '-M'; no argument required
6301 # The diagnosis changed in icc 8.0:
6302 # icc: Command line remark: option '-MP' not supported
6303 if (grep 'ignoring option' conftest.err ||
6304 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6305 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
6314 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6318 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
6319 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
6320 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
6325 test "x$enable_dependency_tracking" != xno \
6326 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
6327 am__fastdepCC_FOR_BUILD_TRUE=
6328 am__fastdepCC_FOR_BUILD_FALSE='#'
6330 am__fastdepCC_FOR_BUILD_TRUE='#'
6331 am__fastdepCC_FOR_BUILD_FALSE=
6335 case $ac_cv_build_prog_cc_stdc in
6336 no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
6337 *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
6338 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
6339 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 ac_cv_build_prog_cc_stdc=no
6343 ac_save_CC=$CC_FOR_BUILD
6344 cat >conftest.$ac_ext <<_ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6351 #include <stdbool.h>
6356 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6357 #define debug(...) fprintf (stderr, __VA_ARGS__)
6358 #define showlist(...) puts (#__VA_ARGS__)
6359 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6361 test_varargs_macros (void)
6366 debug ("X = %d\n", x);
6367 showlist (The first, second, and third items.);
6368 report (x>y, "x is %d but y is %d", x, y);
6371 // Check long long types.
6372 #define BIG64 18446744073709551615ull
6373 #define BIG32 4294967295ul
6374 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6376 your preprocessor is broken;
6380 your preprocessor is broken;
6382 static long long int bignum = -9223372036854775807LL;
6383 static unsigned long long int ubignum = BIG64;
6385 struct incomplete_array
6393 const wchar_t *name;
6397 typedef const char *ccp;
6400 test_restrict (ccp restrict text)
6402 // See if C++-style comments work.
6403 // Iterate through items via the restricted pointer.
6404 // Also check for declarations in for loops.
6405 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6410 // Check varargs and va_copy.
6412 test_varargs (const char *format, ...)
6415 va_start (args, format);
6417 va_copy (args_copy, args);
6428 str = va_arg (args_copy, const char *);
6431 number = va_arg (args_copy, int);
6434 fnumber = va_arg (args_copy, double);
6449 _Bool success = false;
6452 if (test_restrict ("String literal") == 0)
6454 char *restrict newvar = "Another string";
6457 test_varargs ("s, d' f .", "string", 65, 34.234);
6458 test_varargs_macros ();
6460 // Check flexible array members.
6461 struct incomplete_array *ia =
6462 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6464 for (int i = 0; i < ia->datasize; ++i)
6465 ia->data[i] = i * 1.234;
6467 // Check named initializers.
6468 struct named_init ni = {
6470 .name = L"Test wide string",
6471 .average = 543.34343,
6476 int dynamic_array[ni.number];
6477 dynamic_array[ni.number - 1] = 543;
6479 // work around unused variable warnings
6480 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6481 || dynamic_array[ni.number - 1] != 543);
6487 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
6489 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6490 rm -f conftest.$ac_build_objext
6491 if { (ac_try="$ac_build_compile"
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_build_compile") 2>conftest.er1
6499 grep -v '^ *+' conftest.er1 >conftest.err
6501 cat conftest.err >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } && {
6504 test -z "$ac_c_werror_flag" ||
6505 test ! -s conftest.err
6506 } && test -s conftest.$ac_build_objext; then
6507 ac_cv_build_prog_cc_stdc=$ac_arg
6509 echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6515 rm -f core conftest.err conftest.$ac_build_objext
6516 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6518 rm -f conftest.$ac_ext
6519 CC_FOR_BUILD=$ac_save_CC
6523 case "x$ac_cv_build_prog_cc_stdc" in
6525 { echo "$as_me:$LINENO: result: none needed" >&5
6526 echo "${ECHO_T}none needed" >&6; } ;;
6528 { echo "$as_me:$LINENO: result: unsupported" >&5
6529 echo "${ECHO_T}unsupported" >&6; } ;;
6531 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6532 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6533 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6535 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6536 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6538 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6539 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6540 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 ac_cv_build_prog_cc_stdc=no
6544 ac_save_CC=$CC_FOR_BUILD
6545 cat >conftest.$ac_ext <<_ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6553 #include <sys/types.h>
6554 #include <sys/stat.h>
6555 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6556 struct buf { int x; };
6557 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6558 static char *e (p, i)
6564 static char *f (char * (*g) (char **, int), char **p, ...)
6569 s = g (p, va_arg (v,int));
6574 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6575 function prototypes and stuff, but not '\xHH' hex character constants.
6576 These don't provoke an error unfortunately, instead are silently treated
6577 as 'x'. The following induces an error, until -std is added to get
6578 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6579 array size at least. It's necessary to write '\x00'==0 to get something
6580 that's true only with -std. */
6581 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6583 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6584 inside strings and character constants. */
6586 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6588 int test (int i, double x);
6589 struct s1 {int (*f) (int a);};
6590 struct s2 {int (*f) (double a);};
6591 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6597 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6602 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6603 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6605 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6606 rm -f conftest.$ac_build_objext
6607 if { (ac_try="$ac_build_compile"
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_build_compile") 2>conftest.er1
6615 grep -v '^ *+' conftest.er1 >conftest.err
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } && {
6620 test -z "$ac_c_werror_flag" ||
6621 test ! -s conftest.err
6622 } && test -s conftest.$ac_build_objext; then
6623 ac_cv_build_prog_cc_stdc=$ac_arg
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6631 rm -f core conftest.err conftest.$ac_build_objext
6632 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6634 rm -f conftest.$ac_ext
6635 CC_FOR_BUILD=$ac_save_CC
6639 case "x$ac_cv_build_prog_cc_stdc" in
6641 { echo "$as_me:$LINENO: result: none needed" >&5
6642 echo "${ECHO_T}none needed" >&6; } ;;
6644 { echo "$as_me:$LINENO: result: unsupported" >&5
6645 echo "${ECHO_T}unsupported" >&6; } ;;
6647 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6648 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6649 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6651 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6652 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6654 ac_cv_build_prog_cc_stdc=no
6662 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
6663 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
6664 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 case $ac_cv_build_prog_cc_stdc in
6669 no) { echo "$as_me:$LINENO: result: unsupported" >&5
6670 echo "${ECHO_T}unsupported" >&6; } ;;
6671 '') { echo "$as_me:$LINENO: result: none needed" >&5
6672 echo "${ECHO_T}none needed" >&6; } ;;
6673 *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6674 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6679 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6680 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6681 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6683 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6684 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6685 # On Suns, sometimes $CPP names a directory.
6686 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6689 if test -z "$CPP_FOR_BUILD"; then
6690 if test "${ac_cv_build_prog_CPP+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 # Double quotes because CPP needs to be expanded
6694 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6697 for ac_c_preproc_warn_flag in '' yes
6699 # Use a header file that comes with gcc, so configuring glibc
6700 # with a fresh cross-compiler works.
6701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6702 # <limits.h> exists even on freestanding compilers.
6703 # On the NeXT, cc -E runs the code through the compiler's parser,
6704 # not just through cpp. "Syntax error" is here to catch this case.
6705 cat >conftest.$ac_ext <<_ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6712 # include <limits.h>
6714 # include <assert.h>
6718 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6726 grep -v '^ *+' conftest.er1 >conftest.err
6728 cat conftest.err >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } >/dev/null && {
6731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6732 test ! -s conftest.err
6736 echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6739 # Broken: fails on valid input.
6743 rm -f conftest.err conftest.$ac_ext
6745 # OK, works on sane cases. Now check whether nonexistent headers
6746 # can be detected and how.
6747 cat >conftest.$ac_ext <<_ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 #include <ac_nonexistent.h>
6755 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6763 grep -v '^ *+' conftest.er1 >conftest.err
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } >/dev/null && {
6768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6769 test ! -s conftest.err
6771 # Broken: success on invalid input.
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6777 # Passes both tests.
6782 rm -f conftest.err conftest.$ac_ext
6785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6786 rm -f conftest.err conftest.$ac_ext
6787 if $ac_preproc_ok; then
6792 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6795 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
6797 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6799 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
6800 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
6802 for ac_c_preproc_warn_flag in '' yes
6804 # Use a header file that comes with gcc, so configuring glibc
6805 # with a fresh cross-compiler works.
6806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6807 # <limits.h> exists even on freestanding compilers.
6808 # On the NeXT, cc -E runs the code through the compiler's parser,
6809 # not just through cpp. "Syntax error" is here to catch this case.
6810 cat >conftest.$ac_ext <<_ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6817 # include <limits.h>
6819 # include <assert.h>
6823 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6826 *) ac_try_echo=$ac_try;;
6828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6829 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6831 grep -v '^ *+' conftest.er1 >conftest.err
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } >/dev/null && {
6836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6837 test ! -s conftest.err
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6844 # Broken: fails on valid input.
6848 rm -f conftest.err conftest.$ac_ext
6850 # OK, works on sane cases. Now check whether nonexistent headers
6851 # can be detected and how.
6852 cat >conftest.$ac_ext <<_ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 #include <ac_nonexistent.h>
6860 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6866 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6868 grep -v '^ *+' conftest.er1 >conftest.err
6870 cat conftest.err >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } >/dev/null && {
6873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6874 test ! -s conftest.err
6876 # Broken: success on invalid input.
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6882 # Passes both tests.
6887 rm -f conftest.err conftest.$ac_ext
6890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6891 rm -f conftest.err conftest.$ac_ext
6892 if $ac_preproc_ok; then
6895 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6896 See \`config.log' for more details." >&5
6897 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6898 See \`config.log' for more details." >&2;}
6899 { (exit 1); exit 1; }; }
6903 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6904 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6905 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6906 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6911 BUILD_EXEEXT=$ac_build_exeext
6912 BUILD_OBJEXT=$ac_build_objext
6915 ac_cpp='$OBJCPP $CPPFLAGS'
6916 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6917 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6918 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
6919 if test -n "$ac_tool_prefix"; then
6920 for ac_prog in gcc objcc objc cc CC
6922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926 if test "${ac_cv_prog_OBJC+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 if test -n "$OBJC"; then
6930 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6939 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
6940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 OBJC=$ac_cv_prog_OBJC
6950 if test -n "$OBJC"; then
6951 { echo "$as_me:$LINENO: result: $OBJC" >&5
6952 echo "${ECHO_T}$OBJC" >&6; }
6954 { echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6; }
6959 test -n "$OBJC" && break
6962 if test -z "$OBJC"; then
6964 for ac_prog in gcc objcc objc cc CC
6966 # Extract the first word of "$ac_prog", so it can be a program name with args.
6967 set dummy $ac_prog; ac_word=$2
6968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6970 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 if test -n "$ac_ct_OBJC"; then
6974 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_prog_ac_ct_OBJC="$ac_prog"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
6994 if test -n "$ac_ct_OBJC"; then
6995 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
6996 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
6998 { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7003 test -n "$ac_ct_OBJC" && break
7006 if test "x$ac_ct_OBJC" = x; then
7009 case $cross_compiling:$ac_tool_warned in
7011 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7012 whose name does not start with the host triplet. If you think this
7013 configuration is useful to you, please write to autoconf@gnu.org." >&5
7014 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7015 whose name does not start with the host triplet. If you think this
7016 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7017 ac_tool_warned=yes ;;
7023 # Provide some information about the compiler.
7024 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7025 ac_compiler=`set X $ac_compile; echo $2`
7026 { (ac_try="$ac_compiler --version >&5"
7028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029 *) ac_try_echo=$ac_try;;
7031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7032 (eval "$ac_compiler --version >&5") 2>&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }
7036 { (ac_try="$ac_compiler -v >&5"
7038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7039 *) ac_try_echo=$ac_try;;
7041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7042 (eval "$ac_compiler -v >&5") 2>&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }
7046 { (ac_try="$ac_compiler -V >&5"
7048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7049 *) ac_try_echo=$ac_try;;
7051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052 (eval "$ac_compiler -V >&5") 2>&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }
7057 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7058 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
7059 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 cat >conftest.$ac_ext <<_ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7080 rm -f conftest.$ac_objext
7081 if { (ac_try="$ac_compile"
7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084 *) ac_try_echo=$ac_try;;
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087 (eval "$ac_compile") 2>conftest.er1
7089 grep -v '^ *+' conftest.er1 >conftest.err
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && {
7094 test -z "$ac_objc_werror_flag" ||
7095 test ! -s conftest.err
7096 } && test -s conftest.$ac_objext; then
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7109 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7110 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
7111 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
7112 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7113 ac_save_OBJCFLAGS=$OBJCFLAGS
7114 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7115 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
7116 if test "${ac_cv_prog_objc_g+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 ac_save_objc_werror_flag=$ac_objc_werror_flag
7120 ac_objc_werror_flag=yes
7121 ac_cv_prog_objc_g=no
7123 cat >conftest.$ac_ext <<_ACEOF
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7138 rm -f conftest.$ac_objext
7139 if { (ac_try="$ac_compile"
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_compile") 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_objc_werror_flag" ||
7153 test ! -s conftest.err
7154 } && test -s conftest.$ac_objext; then
7155 ac_cv_prog_objc_g=yes
7157 echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7161 cat >conftest.$ac_ext <<_ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7176 rm -f conftest.$ac_objext
7177 if { (ac_try="$ac_compile"
7179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180 *) ac_try_echo=$ac_try;;
7182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7183 (eval "$ac_compile") 2>conftest.er1
7185 grep -v '^ *+' conftest.er1 >conftest.err
7187 cat conftest.err >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } && {
7190 test -z "$ac_objc_werror_flag" ||
7191 test ! -s conftest.err
7192 } && test -s conftest.$ac_objext; then
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7198 ac_objc_werror_flag=$ac_save_objc_werror_flag
7200 cat >conftest.$ac_ext <<_ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7215 rm -f conftest.$ac_objext
7216 if { (ac_try="$ac_compile"
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_compile") 2>conftest.er1
7224 grep -v '^ *+' conftest.er1 >conftest.err
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } && {
7229 test -z "$ac_objc_werror_flag" ||
7230 test ! -s conftest.err
7231 } && test -s conftest.$ac_objext; then
7232 ac_cv_prog_objc_g=yes
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247 ac_objc_werror_flag=$ac_save_objc_werror_flag
7249 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7250 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
7251 if test "$ac_test_OBJCFLAGS" = set; then
7252 OBJCFLAGS=$ac_save_OBJCFLAGS
7253 elif test $ac_cv_prog_objc_g = yes; then
7254 if test "$GOBJC" = yes; then
7260 if test "$GOBJC" = yes; then
7267 ac_cpp='$CPP $CPPFLAGS'
7268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7272 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7273 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7274 if test "${ac_cv_path_SED+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7278 for ac_i in 1 2 3 4 5 6 7; do
7279 ac_script="$ac_script$as_nl$ac_script"
7281 echo "$ac_script" | sed 99q >conftest.sed
7282 $as_unset ac_script || ac_script=
7283 # Extract the first word of "sed gsed" to use in msg output
7284 if test -z "$SED"; then
7285 set dummy sed gsed; ac_prog_name=$2
7286 if test "${ac_cv_path_SED+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 ac_path_SED_found=false
7290 # Loop through the user's path and test for each of PROGNAME-LIST
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 test -z "$as_dir" && as_dir=.
7296 for ac_prog in sed gsed; do
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7299 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7300 # Check for GNU ac_path_SED and select it if it is found.
7301 # Check for GNU $ac_path_SED
7302 case `"$ac_path_SED" --version 2>&1` in
7304 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7307 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7310 cat "conftest.in" "conftest.in" >"conftest.tmp"
7311 mv "conftest.tmp" "conftest.in"
7312 cp "conftest.in" "conftest.nl"
7313 echo '' >> "conftest.nl"
7314 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7316 ac_count=`expr $ac_count + 1`
7317 if test $ac_count -gt ${ac_path_SED_max-0}; then
7318 # Best one so far, save it but keep looking for a better one
7319 ac_cv_path_SED="$ac_path_SED"
7320 ac_path_SED_max=$ac_count
7322 # 10*(2^10) chars as input seems more than enough
7323 test $ac_count -gt 10 && break
7325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7329 $ac_path_SED_found && break 3
7339 SED="$ac_cv_path_SED"
7340 if test -z "$SED"; then
7341 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
7342 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
7343 { (exit 1); exit 1; }; }
7351 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7352 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
7353 SED="$ac_cv_path_SED"
7356 # By default we simply use the C compiler to build assembly code.
7358 test "${CCAS+set}" = set || CCAS=$CC
7359 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7363 if test -n "$ac_tool_prefix"; then
7364 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7365 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368 if test "${ac_cv_prog_RANLIB+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 if test -n "$RANLIB"; then
7372 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 RANLIB=$ac_cv_prog_RANLIB
7392 if test -n "$RANLIB"; then
7393 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7394 echo "${ECHO_T}$RANLIB" >&6; }
7396 { echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6; }
7402 if test -z "$ac_cv_prog_RANLIB"; then
7403 ac_ct_RANLIB=$RANLIB
7404 # Extract the first word of "ranlib", so it can be a program name with args.
7405 set dummy ranlib; ac_word=$2
7406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 if test -n "$ac_ct_RANLIB"; then
7412 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_prog_ac_ct_RANLIB="ranlib"
7422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7432 if test -n "$ac_ct_RANLIB"; then
7433 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7434 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7436 { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7440 if test "x$ac_ct_RANLIB" = x; then
7443 case $cross_compiling:$ac_tool_warned in
7445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7446 whose name does not start with the host triplet. If you think this
7447 configuration is useful to you, please write to autoconf@gnu.org." >&5
7448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7449 whose name does not start with the host triplet. If you think this
7450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7451 ac_tool_warned=yes ;;
7453 RANLIB=$ac_ct_RANLIB
7456 RANLIB="$ac_cv_prog_RANLIB"
7460 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7461 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7462 if test "${ac_cv_path_GREP+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 # Extract the first word of "grep ggrep" to use in msg output
7466 if test -z "$GREP"; then
7467 set dummy grep ggrep; ac_prog_name=$2
7468 if test "${ac_cv_path_GREP+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 ac_path_GREP_found=false
7472 # Loop through the user's path and test for each of PROGNAME-LIST
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7477 test -z "$as_dir" && as_dir=.
7478 for ac_prog in grep ggrep; do
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7481 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7482 # Check for GNU ac_path_GREP and select it if it is found.
7483 # Check for GNU $ac_path_GREP
7484 case `"$ac_path_GREP" --version 2>&1` in
7486 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7489 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7492 cat "conftest.in" "conftest.in" >"conftest.tmp"
7493 mv "conftest.tmp" "conftest.in"
7494 cp "conftest.in" "conftest.nl"
7495 echo 'GREP' >> "conftest.nl"
7496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7498 ac_count=`expr $ac_count + 1`
7499 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7500 # Best one so far, save it but keep looking for a better one
7501 ac_cv_path_GREP="$ac_path_GREP"
7502 ac_path_GREP_max=$ac_count
7504 # 10*(2^10) chars as input seems more than enough
7505 test $ac_count -gt 10 && break
7507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7511 $ac_path_GREP_found && break 3
7521 GREP="$ac_cv_path_GREP"
7522 if test -z "$GREP"; then
7523 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7524 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7525 { (exit 1); exit 1; }; }
7529 ac_cv_path_GREP=$GREP
7534 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7535 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7536 GREP="$ac_cv_path_GREP"
7539 { echo "$as_me:$LINENO: checking for egrep" >&5
7540 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7541 if test "${ac_cv_path_EGREP+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7545 then ac_cv_path_EGREP="$GREP -E"
7547 # Extract the first word of "egrep" to use in msg output
7548 if test -z "$EGREP"; then
7549 set dummy egrep; ac_prog_name=$2
7550 if test "${ac_cv_path_EGREP+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 ac_path_EGREP_found=false
7554 # Loop through the user's path and test for each of PROGNAME-LIST
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7559 test -z "$as_dir" && as_dir=.
7560 for ac_prog in egrep; do
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7563 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7564 # Check for GNU ac_path_EGREP and select it if it is found.
7565 # Check for GNU $ac_path_EGREP
7566 case `"$ac_path_EGREP" --version 2>&1` in
7568 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7571 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7574 cat "conftest.in" "conftest.in" >"conftest.tmp"
7575 mv "conftest.tmp" "conftest.in"
7576 cp "conftest.in" "conftest.nl"
7577 echo 'EGREP' >> "conftest.nl"
7578 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7580 ac_count=`expr $ac_count + 1`
7581 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7582 # Best one so far, save it but keep looking for a better one
7583 ac_cv_path_EGREP="$ac_path_EGREP"
7584 ac_path_EGREP_max=$ac_count
7586 # 10*(2^10) chars as input seems more than enough
7587 test $ac_count -gt 10 && break
7589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7593 $ac_path_EGREP_found && break 3
7603 EGREP="$ac_cv_path_EGREP"
7604 if test -z "$EGREP"; then
7605 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7606 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7607 { (exit 1); exit 1; }; }
7611 ac_cv_path_EGREP=$EGREP
7617 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7618 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7619 EGREP="$ac_cv_path_EGREP"
7622 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7623 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7624 if test "${ac_cv_header_stdc+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 cat >conftest.$ac_ext <<_ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7646 rm -f conftest.$ac_objext
7647 if { (ac_try="$ac_compile"
7649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7650 *) ac_try_echo=$ac_try;;
7652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7653 (eval "$ac_compile") 2>conftest.er1
7655 grep -v '^ *+' conftest.er1 >conftest.err
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && {
7660 test -z "$ac_c_werror_flag" ||
7661 test ! -s conftest.err
7662 } && test -s conftest.$ac_objext; then
7663 ac_cv_header_stdc=yes
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7668 ac_cv_header_stdc=no
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673 if test $ac_cv_header_stdc = yes; then
7674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7675 cat >conftest.$ac_ext <<_ACEOF
7678 cat confdefs.h >>conftest.$ac_ext
7679 cat >>conftest.$ac_ext <<_ACEOF
7680 /* end confdefs.h. */
7684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7685 $EGREP "memchr" >/dev/null 2>&1; then
7688 ac_cv_header_stdc=no
7694 if test $ac_cv_header_stdc = yes; then
7695 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7696 cat >conftest.$ac_ext <<_ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7706 $EGREP "free" >/dev/null 2>&1; then
7709 ac_cv_header_stdc=no
7715 if test $ac_cv_header_stdc = yes; then
7716 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7717 if test "$cross_compiling" = yes; then
7720 cat >conftest.$ac_ext <<_ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7728 #if ((' ' & 0x0FF) == 0x020)
7729 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7730 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7732 # define ISLOWER(c) \
7733 (('a' <= (c) && (c) <= 'i') \
7734 || ('j' <= (c) && (c) <= 'r') \
7735 || ('s' <= (c) && (c) <= 'z'))
7736 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7739 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7744 for (i = 0; i < 256; i++)
7745 if (XOR (islower (i), ISLOWER (i))
7746 || toupper (i) != TOUPPER (i))
7751 rm -f conftest$ac_exeext
7752 if { (ac_try="$ac_link"
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758 (eval "$ac_link") 2>&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7762 { (case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767 (eval "$ac_try") 2>&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; }; then
7773 echo "$as_me: program exited with status $ac_status" >&5
7774 echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_cv_header_stdc=no
7780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7786 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7787 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7788 if test $ac_cv_header_stdc = yes; then
7790 cat >>confdefs.h <<\_ACEOF
7791 #define STDC_HEADERS 1
7796 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7806 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7807 inttypes.h stdint.h unistd.h
7809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 $ac_includes_default
7823 #include <$ac_header>
7825 rm -f conftest.$ac_objext
7826 if { (ac_try="$ac_compile"
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_compile") 2>conftest.er1
7834 grep -v '^ *+' conftest.er1 >conftest.err
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } && {
7839 test -z "$ac_c_werror_flag" ||
7840 test ! -s conftest.err
7841 } && test -s conftest.$ac_objext; then
7842 eval "$as_ac_Header=yes"
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7847 eval "$as_ac_Header=no"
7850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7852 ac_res=`eval echo '${'$as_ac_Header'}'`
7853 { echo "$as_me:$LINENO: result: $ac_res" >&5
7854 echo "${ECHO_T}$ac_res" >&6; }
7855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7856 cat >>confdefs.h <<_ACEOF
7857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7865 { echo "$as_me:$LINENO: checking for void *" >&5
7866 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7867 if test "${ac_cv_type_void_p+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 cat >conftest.$ac_ext <<_ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7876 $ac_includes_default
7877 typedef void * ac__type_new_;
7881 if ((ac__type_new_ *) 0)
7883 if (sizeof (ac__type_new_))
7889 rm -f conftest.$ac_objext
7890 if { (ac_try="$ac_compile"
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_compile") 2>conftest.er1
7898 grep -v '^ *+' conftest.er1 >conftest.err
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && {
7903 test -z "$ac_c_werror_flag" ||
7904 test ! -s conftest.err
7905 } && test -s conftest.$ac_objext; then
7906 ac_cv_type_void_p=yes
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7911 ac_cv_type_void_p=no
7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7917 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7919 # The cast to long int works around a bug in the HP C Compiler
7920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7922 # This bug is HP SR number 8606223364.
7923 { echo "$as_me:$LINENO: checking size of void *" >&5
7924 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7925 if test "${ac_cv_sizeof_void_p+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 if test "$cross_compiling" = yes; then
7929 # Depending upon the size, compute the lo and hi bounds.
7930 cat >conftest.$ac_ext <<_ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7936 $ac_includes_default
7937 typedef void * ac__type_sizeof_;
7941 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7948 rm -f conftest.$ac_objext
7949 if { (ac_try="$ac_compile"
7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952 *) ac_try_echo=$ac_try;;
7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955 (eval "$ac_compile") 2>conftest.er1
7957 grep -v '^ *+' conftest.er1 >conftest.err
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest.$ac_objext; then
7967 cat >conftest.$ac_ext <<_ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973 $ac_includes_default
7974 typedef void * ac__type_sizeof_;
7978 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7985 rm -f conftest.$ac_objext
7986 if { (ac_try="$ac_compile"
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_compile") 2>conftest.er1
7994 grep -v '^ *+' conftest.er1 >conftest.err
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest.$ac_objext; then
8002 ac_hi=$ac_mid; break
8004 echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8007 ac_lo=`expr $ac_mid + 1`
8008 if test $ac_lo -le $ac_mid; then
8012 ac_mid=`expr 2 '*' $ac_mid + 1`
8015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8018 echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8021 cat >conftest.$ac_ext <<_ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 $ac_includes_default
8028 typedef void * ac__type_sizeof_;
8032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8039 rm -f conftest.$ac_objext
8040 if { (ac_try="$ac_compile"
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_compile") 2>conftest.er1
8048 grep -v '^ *+' conftest.er1 >conftest.err
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } && {
8053 test -z "$ac_c_werror_flag" ||
8054 test ! -s conftest.err
8055 } && test -s conftest.$ac_objext; then
8058 cat >conftest.$ac_ext <<_ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8064 $ac_includes_default
8065 typedef void * ac__type_sizeof_;
8069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8076 rm -f conftest.$ac_objext
8077 if { (ac_try="$ac_compile"
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083 (eval "$ac_compile") 2>conftest.er1
8085 grep -v '^ *+' conftest.er1 >conftest.err
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } && {
8090 test -z "$ac_c_werror_flag" ||
8091 test ! -s conftest.err
8092 } && test -s conftest.$ac_objext; then
8093 ac_lo=$ac_mid; break
8095 echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8098 ac_hi=`expr '(' $ac_mid ')' - 1`
8099 if test $ac_mid -le $ac_hi; then
8103 ac_mid=`expr 2 '*' $ac_mid`
8106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119 # Binary search between lo and hi bounds.
8120 while test "x$ac_lo" != "x$ac_hi"; do
8121 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8122 cat >conftest.$ac_ext <<_ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 $ac_includes_default
8129 typedef void * ac__type_sizeof_;
8133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8140 rm -f conftest.$ac_objext
8141 if { (ac_try="$ac_compile"
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_compile") 2>conftest.er1
8149 grep -v '^ *+' conftest.er1 >conftest.err
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } && {
8154 test -z "$ac_c_werror_flag" ||
8155 test ! -s conftest.err
8156 } && test -s conftest.$ac_objext; then
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8162 ac_lo=`expr '(' $ac_mid ')' + 1`
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8168 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8169 '') if test "$ac_cv_type_void_p" = yes; then
8170 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8171 See \`config.log' for more details." >&5
8172 echo "$as_me: error: cannot compute sizeof (void *)
8173 See \`config.log' for more details." >&2;}
8174 { (exit 77); exit 77; }; }
8176 ac_cv_sizeof_void_p=0
8180 cat >conftest.$ac_ext <<_ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8186 $ac_includes_default
8187 typedef void * ac__type_sizeof_;
8188 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8189 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8196 FILE *f = fopen ("conftest.val", "w");
8199 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8201 long int i = longval ();
8202 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8204 fprintf (f, "%ld\n", i);
8208 unsigned long int i = ulongval ();
8209 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8211 fprintf (f, "%lu\n", i);
8213 return ferror (f) || fclose (f) != 0;
8219 rm -f conftest$ac_exeext
8220 if { (ac_try="$ac_link"
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_link") 2>&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8230 { (case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_try") 2>&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 ac_cv_sizeof_void_p=`cat conftest.val`
8241 echo "$as_me: program exited with status $ac_status" >&5
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8246 if test "$ac_cv_type_void_p" = yes; then
8247 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8248 See \`config.log' for more details." >&5
8249 echo "$as_me: error: cannot compute sizeof (void *)
8250 See \`config.log' for more details." >&2;}
8251 { (exit 77); exit 77; }; }
8253 ac_cv_sizeof_void_p=0
8256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8260 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8261 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8265 cat >>confdefs.h <<_ACEOF
8266 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8270 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8271 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8272 if test "${ac_cv_header_stdc+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 cat >conftest.$ac_ext <<_ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8294 rm -f conftest.$ac_objext
8295 if { (ac_try="$ac_compile"
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_compile") 2>conftest.er1
8303 grep -v '^ *+' conftest.er1 >conftest.err
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && {
8308 test -z "$ac_c_werror_flag" ||
8309 test ! -s conftest.err
8310 } && test -s conftest.$ac_objext; then
8311 ac_cv_header_stdc=yes
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 ac_cv_header_stdc=no
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321 if test $ac_cv_header_stdc = yes; then
8322 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8323 cat >conftest.$ac_ext <<_ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8333 $EGREP "memchr" >/dev/null 2>&1; then
8336 ac_cv_header_stdc=no
8342 if test $ac_cv_header_stdc = yes; then
8343 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8344 cat >conftest.$ac_ext <<_ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8354 $EGREP "free" >/dev/null 2>&1; then
8357 ac_cv_header_stdc=no
8363 if test $ac_cv_header_stdc = yes; then
8364 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8365 if test "$cross_compiling" = yes; then
8368 cat >conftest.$ac_ext <<_ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8376 #if ((' ' & 0x0FF) == 0x020)
8377 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8378 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8380 # define ISLOWER(c) \
8381 (('a' <= (c) && (c) <= 'i') \
8382 || ('j' <= (c) && (c) <= 'r') \
8383 || ('s' <= (c) && (c) <= 'z'))
8384 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8387 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8392 for (i = 0; i < 256; i++)
8393 if (XOR (islower (i), ISLOWER (i))
8394 || toupper (i) != TOUPPER (i))
8399 rm -f conftest$ac_exeext
8400 if { (ac_try="$ac_link"
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_link") 2>&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8410 { (case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_try") 2>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8421 echo "$as_me: program exited with status $ac_status" >&5
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8426 ac_cv_header_stdc=no
8428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8434 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8435 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8436 if test $ac_cv_header_stdc = yes; then
8438 cat >>confdefs.h <<\_ACEOF
8439 #define STDC_HEADERS 1
8446 depcc="$OBJC" am_compiler_list='gcc3 gcc'
8448 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8449 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8450 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8454 # We make a subdir and do the tests there. Otherwise we can end up
8455 # making bogus files that we don't know about and never remove. For
8456 # instance it was reported that on HP-UX the gcc test will end up
8457 # making a dummy file named `D' -- because `-MD' means `put the output
8460 # Copy depcomp to subdir because otherwise we won't find it if we're
8461 # using a relative directory.
8462 cp "$am_depcomp" conftest.dir
8464 # We will build objects and dependencies in a subdirectory because
8465 # it helps to detect inapplicable dependency modes. For instance
8466 # both Tru64's cc and ICC support -MD to output dependencies as a
8467 # side effect of compilation, but ICC will put the dependencies in
8468 # the current directory while Tru64 will put them in the object
8472 am_cv_OBJC_dependencies_compiler_type=none
8473 if test "$am_compiler_list" = ""; then
8474 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8476 for depmode in $am_compiler_list; do
8477 # Setup a source with many dependencies, because some compilers
8478 # like to wrap large dependency lists on column 80 (with \), and
8479 # we should not choose a depcomp mode which is confused by this.
8481 # We need to recreate these files for each test, as the compiler may
8482 # overwrite some of them when testing with obscure command lines.
8483 # This happens at least with the AIX C compiler.
8485 for i in 1 2 3 4 5 6; do
8486 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8487 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8488 # Solaris 8's {/usr,}/bin/sh.
8489 touch sub/conftst$i.h
8491 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8495 # after this tag, mechanisms are not by side-effect, so they'll
8496 # only be used when explicitly requested
8497 if test "x$enable_dependency_tracking" = xyes; then
8505 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8506 # mode. It turns out that the SunPro C++ compiler does not properly
8507 # handle `-M -o', and we need to detect this.
8508 if depmode=$depmode \
8509 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8510 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8511 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8512 >/dev/null 2>conftest.err &&
8513 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8514 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8515 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8516 # icc doesn't choke on unknown options, it will just issue warnings
8517 # or remarks (even with -Werror). So we grep stderr for any message
8518 # that says an option was ignored or not supported.
8519 # When given -MP, icc 7.0 and 7.1 complain thusly:
8520 # icc: Command line warning: ignoring option '-M'; no argument required
8521 # The diagnosis changed in icc 8.0:
8522 # icc: Command line remark: option '-MP' not supported
8523 if (grep 'ignoring option' conftest.err ||
8524 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8525 am_cv_OBJC_dependencies_compiler_type=$depmode
8534 am_cv_OBJC_dependencies_compiler_type=none
8538 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
8539 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
8540 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
8545 test "x$enable_dependency_tracking" != xno \
8546 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
8547 am__fastdepOBJC_TRUE=
8548 am__fastdepOBJC_FALSE='#'
8550 am__fastdepOBJC_TRUE='#'
8551 am__fastdepOBJC_FALSE=
8556 # Extract the first word of "pod2man", so it can be a program name with args.
8557 set dummy pod2man; ac_word=$2
8558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8560 if test "${ac_cv_path_POD2MAN+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8575 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8586 POD2MAN=$ac_cv_path_POD2MAN
8587 if test -n "$POD2MAN"; then
8588 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8589 echo "${ECHO_T}$POD2MAN" >&6; }
8591 { echo "$as_me:$LINENO: result: no" >&5
8592 echo "${ECHO_T}no" >&6; }
8596 # Extract the first word of "pod2html", so it can be a program name with args.
8597 set dummy pod2html; ac_word=$2
8598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8600 if test "${ac_cv_path_POD2HTML+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8605 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 test -z "$as_dir" && as_dir=.
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8615 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 POD2HTML=$ac_cv_path_POD2HTML
8627 if test -n "$POD2HTML"; then
8628 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8629 echo "${ECHO_T}$POD2HTML" >&6; }
8631 { echo "$as_me:$LINENO: result: no" >&5
8632 echo "${ECHO_T}no" >&6; }
8638 cat >>confdefs.h <<_ACEOF
8639 #define BUILD_SED_PROG "${SED}"
8643 cat >>confdefs.h <<_ACEOF
8644 #define BUILD_CPP_PROG "${CPP}"
8649 # Check whether --enable-strict-warn was given.
8650 if test "${enable_strict_warn+set}" = set; then
8651 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
8652 enable_strictwarn=yes
8656 # Check whether --enable-translator was given.
8657 if test "${enable_translator+set}" = set; then
8658 enableval=$enable_translator; true
8660 enable_translator=yes
8663 # Check whether --enable-optimized was given.
8664 if test "${enable_optimized+set}" = set; then
8665 enableval=$enable_optimized; true
8667 enable_optimized=yes
8670 # Check whether --enable-shared was given.
8671 if test "${enable_shared+set}" = set; then
8672 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
8677 # Check whether --enable-profiled was given.
8678 if test "${enable_profiled+set}" = set; then
8679 enableval=$enable_profiled; if test "$enableval" == "yes"; then
8680 enable_profiled=yes;
8684 # Check whether --enable-trace was given.
8685 if test "${enable_trace+set}" = set; then
8686 enableval=$enable_trace; if test "$enableval" == "yes"; then
8688 cat >>confdefs.h <<\_ACEOF
8689 #define ENABLE_TRACE_IO 1
8695 # Check whether --enable-watch was given.
8696 if test "${enable_watch+set}" = set; then
8697 enableval=$enable_watch; if test "$enableval" == "yes"; then
8699 cat >>confdefs.h <<\_ACEOF
8700 #define ENABLE_WATCH 1
8706 # Check whether --enable-sh4stats was given.
8707 if test "${enable_sh4stats+set}" = set; then
8708 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
8710 cat >>confdefs.h <<\_ACEOF
8711 #define ENABLE_SH4STATS 1
8718 # Check whether --with-osmesa was given.
8719 if test "${with_osmesa+set}" = set; then
8720 withval=$with_osmesa;
8726 # Check whether --with-gtk was given.
8727 if test "${with_gtk+set}" = set; then
8728 withval=$with_gtk; with_gtk=yes
8734 # Check whether --with-esd was given.
8735 if test "${with_esd+set}" = set; then
8740 # Check whether --with-pulse was given.
8741 if test "${with_pulse+set}" = set; then
8742 withval=$with_pulse;
8746 # Check whether --with-sdl was given.
8747 if test "${with_sdl+set}" = set; then
8753 # Check whether --with-sysroot was given.
8754 if test "${with_sysroot+set}" = set; then
8755 withval=$with_sysroot;
8756 if test -d "$with_sysroot/lib/pkgconfig"; then
8757 LDFLAGS="$LDFLAGS -L$with_sysroot/lib"
8758 CPPFLAGS="$CPPFLAGS -I$with_sysroot/include"
8759 BUILD_PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
8760 TARGET_PKG_CONFIG_LIBDIR="$with_sysroot/lib/pkgconfig"
8761 PKG_CONFIG_LIBDIR="$TARGET_PKG_CONFIG_LIBDIR"
8762 export PKG_CONFIG_LIBDIR;
8764 { { echo "$as_me:$LINENO: error: pkg-config directory $with_sysroot/lib/pkgconfig not found, when using --with-sysroot=$with_sysroot option
8765 See \`config.log' for more details." >&5
8766 echo "$as_me: error: pkg-config directory $with_sysroot/lib/pkgconfig not found, when using --with-sysroot=$with_sysroot option
8767 See \`config.log' for more details." >&2;}
8768 { (exit 1); exit 1; }; }
8777 # Check whether --with-android was given.
8778 if test "${with_android+set}" = set; then
8779 withval=$with_android;
8783 # Check whether --with-android-ndk was given.
8784 if test "${with_android_ndk+set}" = set; then
8785 withval=$with_android_ndk;
8789 # Check whether --with-android-version was given.
8790 if test "${with_android_version+set}" = set; then
8791 withval=$with_android_version;
8793 with_android_version="android-11"
8797 # Check whether --with-android-ndk-version was given.
8798 if test "${with_android_ndk_version+set}" = set; then
8799 withval=$with_android_ndk_version;
8801 with_ndk_version="android-9"
8805 # Check whether --with-android-abi was given.
8806 if test "${with_android_abi+set}" = set; then
8807 withval=$with_android_abi;
8809 ANDROID_ABI="armeabi-v7a"
8813 if test "x$with_android" != "x"; then
8814 if test "$with_android" = "yes"; then
8815 { { echo "$as_me:$LINENO: error: --with-android option must be given with the path to the Android SDK " >&5
8816 echo "$as_me: error: --with-android option must be given with the path to the Android SDK " >&2;}
8817 { (exit 1); exit 1; }; }
8819 if test "x$with_android_ndk" = "x" -o "x$with_android_ndk" = "xyes"; then
8820 { { echo "$as_me:$LINENO: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&5
8821 echo "$as_me: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&2;}
8822 { (exit 1); exit 1; }; }
8825 ANDROID_SDK_HOME="$with_android"
8826 ANDROID_NDK_HOME="$with_android_ndk"
8827 ANDROID_SDK_VERSION="$with_android_version"
8828 ANDROID_NDK_VERSION="$with_ndk_version"
8830 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/tools/ant/pre_setup.xml" | $as_tr_sh`
8831 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml" >&5
8832 echo $ECHO_N "checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml... $ECHO_C" >&6; }
8833 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 test "$cross_compiling" = yes &&
8837 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
8838 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8839 { (exit 1); exit 1; }; }
8840 if test -r "$ANDROID_SDK_HOME/tools/ant/pre_setup.xml"; then
8841 eval "$as_ac_File=yes"
8843 eval "$as_ac_File=no"
8846 ac_res=`eval echo '${'$as_ac_File'}'`
8847 { echo "$as_me:$LINENO: result: $ac_res" >&5
8848 echo "${ECHO_T}$ac_res" >&6; }
8849 if test `eval echo '${'$as_ac_File'}'` = yes; then
8852 { { echo "$as_me:$LINENO: error: Android SDK not found in $ANDROID_SDK_HOME" >&5
8853 echo "$as_me: error: Android SDK not found in $ANDROID_SDK_HOME" >&2;}
8854 { (exit 1); exit 1; }; }
8857 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" | $as_tr_sh`
8858 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" >&5
8859 echo $ECHO_N "checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties... $ECHO_C" >&6; }
8860 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 test "$cross_compiling" = yes &&
8864 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
8865 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8866 { (exit 1); exit 1; }; }
8867 if test -r "$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties"; then
8868 eval "$as_ac_File=yes"
8870 eval "$as_ac_File=no"
8873 ac_res=`eval echo '${'$as_ac_File'}'`
8874 { echo "$as_me:$LINENO: result: $ac_res" >&5
8875 echo "${ECHO_T}$ac_res" >&6; }
8876 if test `eval echo '${'$as_ac_File'}'` = yes; then
8879 { { echo "$as_me:$LINENO: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&5
8880 echo "$as_me: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&2;}
8881 { (exit 1); exit 1; }; }
8884 as_ac_File=`echo "ac_cv_file_$ANDROID_NDK_HOME/toolchains" | $as_tr_sh`
8885 { echo "$as_me:$LINENO: checking for $ANDROID_NDK_HOME/toolchains" >&5
8886 echo $ECHO_N "checking for $ANDROID_NDK_HOME/toolchains... $ECHO_C" >&6; }
8887 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 test "$cross_compiling" = yes &&
8891 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
8892 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8893 { (exit 1); exit 1; }; }
8894 if test -r "$ANDROID_NDK_HOME/toolchains"; then
8895 eval "$as_ac_File=yes"
8897 eval "$as_ac_File=no"
8900 ac_res=`eval echo '${'$as_ac_File'}'`
8901 { echo "$as_me:$LINENO: result: $ac_res" >&5
8902 echo "${ECHO_T}$ac_res" >&6; }
8903 if test `eval echo '${'$as_ac_File'}'` = yes; then
8906 { { echo "$as_me:$LINENO: error: Android NDK not found in $ANDROID_NDK_HOME" >&5
8907 echo "$as_me: error: Android NDK not found in $ANDROID_NDK_HOME" >&2;}
8908 { (exit 1); exit 1; }; }
8912 TARGETFLAGS="-ffunction-sections -funwind-tables -fomit-frame-pointer -DANDROID -Wa,--noexecstack"
8914 case $ANDROID_ABI in
8915 armeabi | armeabi-v7a)
8916 host_alias="arm-linux-androideabi"
8918 host_vendor="unknown";
8919 host_os="linux-androideabi"
8920 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/*/bin`
8921 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/gdbserver`
8922 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-arm"
8923 TARGETFLAGS="$TARGETFLAGS -fstack-protector -finline-limit=64 -fno-strict-aliasing -Wno-psabi -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__"
8924 if test "x$with_abi" = "armeabi"; then
8925 TARGETFLAGS="$TARGETFLAGS -march=armv5te -mtune=xscale -msoft-float"
8927 TARGETFLAGS="$TARGETFLAGS -march=armv7-a -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=vfp"
8931 host_alias="i686-android-linux"
8933 host_vendor="android"
8935 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/*/bin`
8936 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/gdbserver`
8937 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-x86"
8938 TARGETFLAGS="$TARGETFLAGS -finline-limit=300 -fno-rtti -funswitch-loops -fstrict-aliasing"
8941 { { echo "$as_me:$LINENO: error: Unsupported android ABI $ANDROID_ABI" >&5
8942 echo "$as_me: error: Unsupported android ABI $ANDROID_ABI" >&2;}
8943 { (exit 1); exit 1; }; }
8947 # Extract the first word of "ant ", so it can be a program name with args.
8948 set dummy ant ; ac_word=$2
8949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8951 if test "${ac_cv_path_ANT+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8956 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
8959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963 test -z "$as_dir" && as_dir=.
8964 for ac_exec_ext in '' $ac_executable_extensions; do
8965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8966 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
8967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8978 if test -n "$ANT"; then
8979 { echo "$as_me:$LINENO: result: $ANT" >&5
8980 echo "${ECHO_T}$ANT" >&6; }
8982 { echo "$as_me:$LINENO: result: no" >&5
8983 echo "${ECHO_T}no" >&6; }
8988 CC="$ANDROID_NDK_BIN/${host_alias}-gcc"
8989 CXX="$ANDROID_NDK_BIN/${host_alias}-g++"
8990 CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
8991 LD="$ANDROID_NDK_BIN/${host_alias}-ld"
8992 AR="$ANDROID_NDK_BIN/${host_alias}-ar"
8993 RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
8994 STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
8995 OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
8996 CPPFLAGS="-fPIC --sysroot=$ANDROID_SYSROOT -I$ANDROID_SYSROOT/usr/include $TARGETFLAGS $CPPFLAGS"
8997 LDFLAGS="-nostdlib -Wl,--no-undefined -L${ANDROID_SYSROOT}/usr/lib -Wl,-rpath-link,${ANDROID_SYSROOT}/usr/lib -Wl,-allow-shlib-undefined -Wl,-z,noexecstack $LDFLAGS"
8998 LIBS="$LIBS -liconv -landroid -llog -lgcc -lc -lm"
9013 if test "$ANDROID_BUILD" = "yes"; then
9015 GUI_ANDROID_FALSE='#'
9017 GUI_ANDROID_TRUE='#'
9025 if test "$ANDROID_BUILD" = "yes"; then
9027 EXTRA_OUTPUT_FILES="src/android/build.properties"
9034 ac_cpp='$OBJCPP $CPPFLAGS'
9035 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9036 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9037 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9038 if test -n "$ac_tool_prefix"; then
9039 for ac_prog in gcc objcc objc cc CC
9041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9045 if test "${ac_cv_prog_OBJC+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 if test -n "$OBJC"; then
9049 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055 test -z "$as_dir" && as_dir=.
9056 for ac_exec_ext in '' $ac_executable_extensions; do
9057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9058 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
9059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9068 OBJC=$ac_cv_prog_OBJC
9069 if test -n "$OBJC"; then
9070 { echo "$as_me:$LINENO: result: $OBJC" >&5
9071 echo "${ECHO_T}$OBJC" >&6; }
9073 { echo "$as_me:$LINENO: result: no" >&5
9074 echo "${ECHO_T}no" >&6; }
9078 test -n "$OBJC" && break
9081 if test -z "$OBJC"; then
9083 for ac_prog in gcc objcc objc cc CC
9085 # Extract the first word of "$ac_prog", so it can be a program name with args.
9086 set dummy $ac_prog; ac_word=$2
9087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9089 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 if test -n "$ac_ct_OBJC"; then
9093 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
9095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099 test -z "$as_dir" && as_dir=.
9100 for ac_exec_ext in '' $ac_executable_extensions; do
9101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9102 ac_cv_prog_ac_ct_OBJC="$ac_prog"
9103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9112 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
9113 if test -n "$ac_ct_OBJC"; then
9114 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
9115 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
9117 { echo "$as_me:$LINENO: result: no" >&5
9118 echo "${ECHO_T}no" >&6; }
9122 test -n "$ac_ct_OBJC" && break
9125 if test "x$ac_ct_OBJC" = x; then
9128 case $cross_compiling:$ac_tool_warned in
9130 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9131 whose name does not start with the host triplet. If you think this
9132 configuration is useful to you, please write to autoconf@gnu.org." >&5
9133 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9134 whose name does not start with the host triplet. If you think this
9135 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9136 ac_tool_warned=yes ;;
9142 # Provide some information about the compiler.
9143 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
9144 ac_compiler=`set X $ac_compile; echo $2`
9145 { (ac_try="$ac_compiler --version >&5"
9147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9148 *) ac_try_echo=$ac_try;;
9150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9151 (eval "$ac_compiler --version >&5") 2>&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }
9155 { (ac_try="$ac_compiler -v >&5"
9157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158 *) ac_try_echo=$ac_try;;
9160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9161 (eval "$ac_compiler -v >&5") 2>&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }
9165 { (ac_try="$ac_compiler -V >&5"
9167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168 *) ac_try_echo=$ac_try;;
9170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9171 (eval "$ac_compiler -V >&5") 2>&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }
9176 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
9177 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
9178 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 cat >conftest.$ac_ext <<_ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9199 rm -f conftest.$ac_objext
9200 if { (ac_try="$ac_compile"
9202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9203 *) ac_try_echo=$ac_try;;
9205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9206 (eval "$ac_compile") 2>conftest.er1
9208 grep -v '^ *+' conftest.er1 >conftest.err
9210 cat conftest.err >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } && {
9213 test -z "$ac_objc_werror_flag" ||
9214 test ! -s conftest.err
9215 } && test -s conftest.$ac_objext; then
9218 echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9225 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
9228 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
9229 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
9230 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
9231 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
9232 ac_save_OBJCFLAGS=$OBJCFLAGS
9233 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
9234 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
9235 if test "${ac_cv_prog_objc_g+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 ac_save_objc_werror_flag=$ac_objc_werror_flag
9239 ac_objc_werror_flag=yes
9240 ac_cv_prog_objc_g=no
9242 cat >conftest.$ac_ext <<_ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9257 rm -f conftest.$ac_objext
9258 if { (ac_try="$ac_compile"
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264 (eval "$ac_compile") 2>conftest.er1
9266 grep -v '^ *+' conftest.er1 >conftest.err
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } && {
9271 test -z "$ac_objc_werror_flag" ||
9272 test ! -s conftest.err
9273 } && test -s conftest.$ac_objext; then
9274 ac_cv_prog_objc_g=yes
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9280 cat >conftest.$ac_ext <<_ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9295 rm -f conftest.$ac_objext
9296 if { (ac_try="$ac_compile"
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_compile") 2>conftest.er1
9304 grep -v '^ *+' conftest.er1 >conftest.err
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } && {
9309 test -z "$ac_objc_werror_flag" ||
9310 test ! -s conftest.err
9311 } && test -s conftest.$ac_objext; then
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9317 ac_objc_werror_flag=$ac_save_objc_werror_flag
9319 cat >conftest.$ac_ext <<_ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9334 rm -f conftest.$ac_objext
9335 if { (ac_try="$ac_compile"
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_compile") 2>conftest.er1
9343 grep -v '^ *+' conftest.er1 >conftest.err
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && {
9348 test -z "$ac_objc_werror_flag" ||
9349 test ! -s conftest.err
9350 } && test -s conftest.$ac_objext; then
9351 ac_cv_prog_objc_g=yes
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9366 ac_objc_werror_flag=$ac_save_objc_werror_flag
9368 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
9369 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
9370 if test "$ac_test_OBJCFLAGS" = set; then
9371 OBJCFLAGS=$ac_save_OBJCFLAGS
9372 elif test $ac_cv_prog_objc_g = yes; then
9373 if test "$GOBJC" = yes; then
9379 if test "$GOBJC" = yes; then
9386 ac_cpp='$CPP $CPPFLAGS'
9387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9391 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
9392 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
9394 ac_cpp='$OBJCPP $CPPFLAGS'
9395 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9396 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9397 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9398 cat >conftest.$ac_ext <<_ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9413 rm -f conftest.$ac_objext
9414 if { (ac_try="$ac_compile"
9416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417 *) ac_try_echo=$ac_try;;
9419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9420 (eval "$ac_compile") 2>conftest.er1
9422 grep -v '^ *+' conftest.er1 >conftest.err
9424 cat conftest.err >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } && {
9427 test -z "$ac_objc_werror_flag" ||
9428 test ! -s conftest.err
9429 } && test -s conftest.$ac_objext; then
9430 { echo "$as_me:$LINENO: result: yes" >&5
9431 echo "${ECHO_T}yes" >&6; }
9433 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
9434 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
9435 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 cat >conftest.$ac_ext <<_ACEOF
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9444 $ac_includes_default
9446 #include <Cocoa/Cocoa.h>
9448 rm -f conftest.$ac_objext
9449 if { (ac_try="$ac_compile"
9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452 *) ac_try_echo=$ac_try;;
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455 (eval "$ac_compile") 2>conftest.er1
9457 grep -v '^ *+' conftest.er1 >conftest.err
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } && {
9462 test -z "$ac_objc_werror_flag" ||
9463 test ! -s conftest.err
9464 } && test -s conftest.$ac_objext; then
9465 ac_cv_header_Cocoa_Cocoa_h=yes
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9470 ac_cv_header_Cocoa_Cocoa_h=no
9473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9475 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
9476 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
9477 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
9481 LIBS="$LIBS -framework AppKit -framework Carbon"
9482 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"
9483 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
9484 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
9486 cat >>confdefs.h <<\_ACEOF
9487 #define HAVE_COCOA 1
9491 cat >>confdefs.h <<\_ACEOF
9492 #define APPLE_BUILD 1
9496 if test "x$with_gtk" = "xx11"; then
9505 { echo "$as_me:$LINENO: checking OBJC version" >&5
9506 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
9507 if test -n "$OBJC"; then
9508 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
9509 if test -n "$_GOBJC_VERSION"; then
9510 { echo "$as_me:$LINENO: result: GCC" >&5
9511 echo "${ECHO_T}GCC" >&6; }
9513 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
9515 { echo "$as_me:$LINENO: result: Unknown" >&5
9516 echo "${ECHO_T}Unknown" >&6; }
9520 { echo "$as_me:$LINENO: result: None" >&5
9521 echo "${ECHO_T}None" >&6; }
9527 ac_cpp='$OBJCPP $CPPFLAGS'
9528 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9529 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9530 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9532 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
9533 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
9534 save_OBJCFLAGS="$OBJCFLAGS"
9535 OBJCFLAGS="-msse2 $OBJCFLAGS"
9536 cat >conftest.$ac_ext <<_ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9543 int main() { return 0; }
9545 rm -f conftest.$ac_objext
9546 if { (ac_try="$ac_compile"
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_compile") 2>conftest.er1
9554 grep -v '^ *+' conftest.er1 >conftest.err
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } && {
9559 test -z "$ac_objc_werror_flag" ||
9560 test ! -s conftest.err
9561 } && test -s conftest.$ac_objext; then
9563 { echo "$as_me:$LINENO: result: yes" >&5
9564 echo "${ECHO_T}yes" >&6; }
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9571 OBJCFLAGS="$save_OBJCFLAGS"
9572 { echo "$as_me:$LINENO: result: no" >&5
9573 echo "${ECHO_T}no" >&6; }
9577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579 ac_cpp='$OBJCPP $CPPFLAGS'
9580 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9581 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9582 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9587 ac_cpp='$OBJCPP $CPPFLAGS'
9588 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9589 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9590 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9592 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
9593 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
9594 save_OBJCFLAGS="$OBJCFLAGS"
9595 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
9596 cat >conftest.$ac_ext <<_ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9603 int main() { return 0; }
9605 rm -f conftest.$ac_objext
9606 if { (ac_try="$ac_compile"
9608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609 *) ac_try_echo=$ac_try;;
9611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612 (eval "$ac_compile") 2>conftest.er1
9614 grep -v '^ *+' conftest.er1 >conftest.err
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } && {
9619 test -z "$ac_objc_werror_flag" ||
9620 test ! -s conftest.err
9621 } && test -s conftest.$ac_objext; then
9623 { echo "$as_me:$LINENO: result: yes" >&5
9624 echo "${ECHO_T}yes" >&6; }
9627 echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9631 OBJCFLAGS="$save_OBJCFLAGS"
9632 { echo "$as_me:$LINENO: result: no" >&5
9633 echo "${ECHO_T}no" >&6; }
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 ac_cpp='$OBJCPP $CPPFLAGS'
9640 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9641 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9642 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9650 { echo "$as_me:$LINENO: result: No" >&5
9651 echo "${ECHO_T}No" >&6; }
9655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
9657 ac_cpp='$CPP $CPPFLAGS'
9658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9667 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
9675 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
9677 cat >>confdefs.h <<\_ACEOF
9678 #define OSX_BUNDLE 1
9683 CFLAGS_FOR_BUILD="-O2 -std=c99"
9684 CFLAGS="-g -fexceptions"
9685 OBJCFLAGS="-g -fexceptions"
9687 cat >>confdefs.h <<\_ACEOF
9688 #define HAVE_EXCEPTIONS 1
9694 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
9695 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
9696 { echo "$as_me:$LINENO: checking CC version" >&5
9697 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
9698 if test -n "$_ICC_VERSION"; then
9699 { echo "$as_me:$LINENO: result: ICC" >&5
9700 echo "${ECHO_T}ICC" >&6; }
9701 CCOPT="$CFLAGS -fast"
9702 CFLAGS="$CFLAGS -fno-strict-aliasing"
9703 elif test -n "$_GCC_VERSION"; then
9704 { echo "$as_me:$LINENO: result: GCC" >&5
9705 echo "${ECHO_T}GCC" >&6; }
9707 CFLAGS="$CFLAGS -fno-strict-aliasing"
9709 { echo "$as_me:$LINENO: result: Unknown" >&5
9710 echo "${ECHO_T}Unknown" >&6; }
9716 ac_cpp='$CPP $CPPFLAGS'
9717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9721 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
9722 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
9723 save_CFLAGS="$CFLAGS"
9724 CFLAGS="-msse2 $CFLAGS"
9725 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 int main() { return 0; }
9734 rm -f conftest.$ac_objext
9735 if { (ac_try="$ac_compile"
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_compile") 2>conftest.er1
9743 grep -v '^ *+' conftest.er1 >conftest.err
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest.$ac_objext; then
9752 { echo "$as_me:$LINENO: result: yes" >&5
9753 echo "${ECHO_T}yes" >&6; }
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9760 CFLAGS="$save_CFLAGS"
9761 { echo "$as_me:$LINENO: result: no" >&5
9762 echo "${ECHO_T}no" >&6; }
9766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9768 ac_cpp='$CPP $CPPFLAGS'
9769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9776 ac_cpp='$CPP $CPPFLAGS'
9777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9781 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
9782 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
9783 save_CFLAGS="$CFLAGS"
9784 CFLAGS="-mfpmath=sse $CFLAGS"
9785 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 int main() { return 0; }
9794 rm -f conftest.$ac_objext
9795 if { (ac_try="$ac_compile"
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_compile") 2>conftest.er1
9803 grep -v '^ *+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } && {
9808 test -z "$ac_c_werror_flag" ||
9809 test ! -s conftest.err
9810 } && test -s conftest.$ac_objext; then
9812 { echo "$as_me:$LINENO: result: yes" >&5
9813 echo "${ECHO_T}yes" >&6; }
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9820 CFLAGS="$save_CFLAGS"
9821 { echo "$as_me:$LINENO: result: no" >&5
9822 echo "${ECHO_T}no" >&6; }
9826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9828 ac_cpp='$CPP $CPPFLAGS'
9829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9835 if test "x$enable_optimized" = "xyes"; then
9836 CFLAGS="$CFLAGS $CCOPT"
9837 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
9838 if test "x$enable_profiled" != "xyes"; then
9839 CFLAGS="$CFLAGS -fomit-frame-pointer"
9840 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
9843 CFLAGS="$CFLAGS -g3"
9844 OBJCFLAGS="$OBJCFLAGS -g3"
9847 if test "x$enable_profiled" = "xyes"; then
9848 CFLAGS="$CFLAGS -pg"
9849 LDFLAGS="$LDFLAGS -pg";
9850 OBJCFLAGS="$OBJCFLAGS -pg";
9853 if test "x$enable_strictwarn" = "xyes"; then
9854 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
9855 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
9858 if test "x$enable_shared" != "xno"; then
9859 if test "x$APPLE_BUILD" = "xyes"; then
9861 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
9864 PLUGINLDFLAGS="-shared"
9866 PLUGINCFLAGS="-fPIC"
9868 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9869 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9870 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9871 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9875 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9877 # Is the header compilable?
9878 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9879 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
9880 cat >conftest.$ac_ext <<_ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 $ac_includes_default
9889 rm -f conftest.$ac_objext
9890 if { (ac_try="$ac_compile"
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_compile") 2>conftest.er1
9898 grep -v '^ *+' conftest.er1 >conftest.err
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } && {
9903 test -z "$ac_c_werror_flag" ||
9904 test ! -s conftest.err
9905 } && test -s conftest.$ac_objext; then
9906 ac_header_compiler=yes
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 ac_header_compiler=no
9914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9916 echo "${ECHO_T}$ac_header_compiler" >&6; }
9918 # Is the header present?
9919 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9920 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
9921 cat >conftest.$ac_ext <<_ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9929 if { (ac_try="$ac_cpp conftest.$ac_ext"
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9937 grep -v '^ *+' conftest.er1 >conftest.err
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } >/dev/null && {
9942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9943 test ! -s conftest.err
9945 ac_header_preproc=yes
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9950 ac_header_preproc=no
9953 rm -f conftest.err conftest.$ac_ext
9954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9955 echo "${ECHO_T}$ac_header_preproc" >&6; }
9957 # So? What about this header?
9958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9960 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9961 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9963 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9964 ac_header_preproc=yes
9967 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
9968 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
9969 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
9970 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
9972 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
9974 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
9976 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
9977 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
9978 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
9982 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9983 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9984 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 ac_cv_header_dlfcn_h=$ac_header_preproc
9989 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9990 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9993 if test $ac_cv_header_dlfcn_h = yes; then
9995 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9996 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9997 if test "${ac_cv_search_dlopen+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 ac_func_search_save_LIBS=$LIBS
10001 cat >conftest.$ac_ext <<_ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10008 /* Override any GCC internal prototype to avoid an error.
10009 Use char because int might match the return type of a GCC
10010 builtin and then its argument prototype would still apply. */
10023 for ac_lib in '' dl; do
10024 if test -z "$ac_lib"; then
10025 ac_res="none required"
10028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10030 rm -f conftest.$ac_objext conftest$ac_exeext
10031 if { (ac_try="$ac_link"
10032 case "(($ac_try" in
10033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034 *) ac_try_echo=$ac_try;;
10036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037 (eval "$ac_link") 2>conftest.er1
10039 grep -v '^ *+' conftest.er1 >conftest.err
10041 cat conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } && {
10044 test -z "$ac_c_werror_flag" ||
10045 test ! -s conftest.err
10046 } && test -s conftest$ac_exeext &&
10047 $as_test_x conftest$ac_exeext; then
10048 ac_cv_search_dlopen=$ac_res
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10058 if test "${ac_cv_search_dlopen+set}" = set; then
10062 if test "${ac_cv_search_dlopen+set}" = set; then
10065 ac_cv_search_dlopen=no
10067 rm conftest.$ac_ext
10068 LIBS=$ac_func_search_save_LIBS
10070 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10071 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
10072 ac_res=$ac_cv_search_dlopen
10073 if test "$ac_res" != no; then
10074 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10081 if test "x$have_dlopen" != "xyes"; then
10082 if test "x$enable_shared" == "xyes"; then
10083 { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
10084 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
10085 { (exit 1); exit 1; }; }
10087 { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
10088 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
10092 { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
10093 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
10094 old_LDFLAGS="$LDFLAGS"
10095 LDFLAGS="$LDFLAGS -rdynamic"
10096 cat >conftest.$ac_ext <<_ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 int main() { return 0; }
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (ac_try="$ac_link"
10106 case "(($ac_try" in
10107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10108 *) ac_try_echo=$ac_try;;
10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10111 (eval "$ac_link") 2>conftest.er1
10113 grep -v '^ *+' conftest.er1 >conftest.err
10115 cat conftest.err >&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } && {
10118 test -z "$ac_c_werror_flag" ||
10119 test ! -s conftest.err
10120 } && test -s conftest$ac_exeext &&
10121 $as_test_x conftest$ac_exeext; then
10123 LXDREAMLDFLAGS="-rdynamic"
10124 { echo "$as_me:$LINENO: result: yes" >&5
10125 echo "${ECHO_T}yes" >&6; }
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10133 { echo "$as_me:$LINENO: result: no" >&5
10134 echo "${ECHO_T}no" >&6; }
10137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10138 conftest$ac_exeext conftest.$ac_ext
10139 LDFLAGS="$old_LDFLAGS"
10146 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
10148 cat >>confdefs.h <<\_ACEOF
10149 #define BUILD_PLUGINS 1
10155 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
10156 BUILD_PLUGINS_TRUE=
10157 BUILD_PLUGINS_FALSE='#'
10159 BUILD_PLUGINS_TRUE='#'
10160 BUILD_PLUGINS_FALSE=
10165 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
10166 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
10167 save_CFLAGS="$CFLAGS"
10168 CFLAGS="-Werror $save_CFLAGS"
10169 if test "$cross_compiling" = yes; then
10171 { echo "$as_me:$LINENO: result: no" >&5
10172 echo "${ECHO_T}no" >&6; }
10175 cat >conftest.$ac_ext <<_ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10183 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
10185 int main(int argc, char *argv[])
10187 return foo( 1, 2 ) == 3 ? 0 : 1;
10190 rm -f conftest$ac_exeext
10191 if { (ac_try="$ac_link"
10192 case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_link") 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10201 { (case "(($ac_try" in
10202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203 *) ac_try_echo=$ac_try;;
10205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10206 (eval "$ac_try") 2>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; }; then
10211 { echo "$as_me:$LINENO: result: yes" >&5
10212 echo "${ECHO_T}yes" >&6; }
10215 cat >>confdefs.h <<\_ACEOF
10216 #define HAVE_FASTCALL 1
10221 echo "$as_me: program exited with status $ac_status" >&5
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10225 ( exit $ac_status )
10227 { echo "$as_me:$LINENO: result: no" >&5
10228 echo "${ECHO_T}no" >&6; }
10231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10235 CFLAGS="$save_CFLAGS"
10238 { echo "$as_me:$LINENO: checking support for force inlining" >&5
10239 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
10240 cat >conftest.$ac_ext <<_ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10248 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
10250 int main(int argc, char *argv[])
10252 return foo( 1, 2 ) == 3 ? 0 : 1;
10255 rm -f conftest.$ac_objext
10256 if { (ac_try="$ac_compile"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_compile") 2>conftest.er1
10264 grep -v '^ *+' conftest.er1 >conftest.err
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && {
10269 test -z "$ac_c_werror_flag" ||
10270 test ! -s conftest.err
10271 } && test -s conftest.$ac_objext; then
10273 FORCEINLINE="__attribute__((always_inline))"
10274 { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
10275 echo "${ECHO_T}$FORCEINLINE" >&6; }
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10283 { echo "$as_me:$LINENO: result: no" >&5
10284 echo "${ECHO_T}no" >&6; }
10288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10291 cat >>confdefs.h <<_ACEOF
10292 #define FORCEINLINE $FORCEINLINE
10296 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
10297 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
10298 if test "$cross_compiling" = yes; then
10300 { echo "$as_me:$LINENO: result: no" >&5
10301 echo "${ECHO_T}no" >&6; }
10302 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10303 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10305 cat >conftest.$ac_ext <<_ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10313 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
10314 int __attribute__((noinline)) foo( int arg, void *exc )
10317 *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
10322 int main(int argc, char *argv[])
10324 goto *first_arg(&&start, &&except);
10327 return foo( argc, &&except ) + 1;
10333 rm -f conftest$ac_exeext
10334 if { (ac_try="$ac_link"
10335 case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10340 (eval "$ac_link") 2>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10344 { (case "(($ac_try" in
10345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346 *) ac_try_echo=$ac_try;;
10348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10349 (eval "$ac_try") 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10354 { echo "$as_me:$LINENO: result: yes" >&5
10355 echo "${ECHO_T}yes" >&6; }
10358 cat >>confdefs.h <<\_ACEOF
10359 #define HAVE_FRAME_ADDRESS 1
10364 echo "$as_me: program exited with status $ac_status" >&5
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10368 ( exit $ac_status )
10370 { echo "$as_me:$LINENO: result: no" >&5
10371 echo "${ECHO_T}no" >&6; }
10372 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10373 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10382 { echo "$as_me:$LINENO: checking for library containing listen" >&5
10383 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
10384 if test "${ac_cv_search_listen+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 ac_func_search_save_LIBS=$LIBS
10388 cat >conftest.$ac_ext <<_ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10395 /* Override any GCC internal prototype to avoid an error.
10396 Use char because int might match the return type of a GCC
10397 builtin and then its argument prototype would still apply. */
10410 for ac_lib in '' socket; do
10411 if test -z "$ac_lib"; then
10412 ac_res="none required"
10415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10417 rm -f conftest.$ac_objext conftest$ac_exeext
10418 if { (ac_try="$ac_link"
10419 case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_link") 2>conftest.er1
10426 grep -v '^ *+' conftest.er1 >conftest.err
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } && {
10431 test -z "$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 } && test -s conftest$ac_exeext &&
10434 $as_test_x conftest$ac_exeext; then
10435 ac_cv_search_listen=$ac_res
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10445 if test "${ac_cv_search_listen+set}" = set; then
10449 if test "${ac_cv_search_listen+set}" = set; then
10452 ac_cv_search_listen=no
10454 rm conftest.$ac_ext
10455 LIBS=$ac_func_search_save_LIBS
10457 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
10458 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
10459 ac_res=$ac_cv_search_listen
10460 if test "$ac_res" != no; then
10461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10465 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
10466 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
10467 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 ac_func_search_save_LIBS=$LIBS
10471 cat >conftest.$ac_ext <<_ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10478 /* Override any GCC internal prototype to avoid an error.
10479 Use char because int might match the return type of a GCC
10480 builtin and then its argument prototype would still apply. */
10488 return inet_ntoa ();
10493 for ac_lib in '' nsl; do
10494 if test -z "$ac_lib"; then
10495 ac_res="none required"
10498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10500 rm -f conftest.$ac_objext conftest$ac_exeext
10501 if { (ac_try="$ac_link"
10502 case "(($ac_try" in
10503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504 *) ac_try_echo=$ac_try;;
10506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507 (eval "$ac_link") 2>conftest.er1
10509 grep -v '^ *+' conftest.er1 >conftest.err
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && {
10514 test -z "$ac_c_werror_flag" ||
10515 test ! -s conftest.err
10516 } && test -s conftest$ac_exeext &&
10517 $as_test_x conftest$ac_exeext; then
10518 ac_cv_search_inet_ntoa=$ac_res
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10528 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10532 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10535 ac_cv_search_inet_ntoa=no
10537 rm conftest.$ac_ext
10538 LIBS=$ac_func_search_save_LIBS
10540 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
10541 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
10542 ac_res=$ac_cv_search_inet_ntoa
10543 if test "$ac_res" != no; then
10544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10551 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10552 if test -n "$ac_tool_prefix"; then
10553 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10554 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10557 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 case $PKG_CONFIG in
10562 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10566 for as_dir in $PATH
10569 test -z "$as_dir" && as_dir=.
10570 for ac_exec_ext in '' $ac_executable_extensions; do
10571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10572 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10584 if test -n "$PKG_CONFIG"; then
10585 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10586 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10588 { echo "$as_me:$LINENO: result: no" >&5
10589 echo "${ECHO_T}no" >&6; }
10594 if test -z "$ac_cv_path_PKG_CONFIG"; then
10595 ac_pt_PKG_CONFIG=$PKG_CONFIG
10596 # Extract the first word of "pkg-config", so it can be a program name with args.
10597 set dummy pkg-config; ac_word=$2
10598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10600 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 case $ac_pt_PKG_CONFIG in
10605 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10612 test -z "$as_dir" && as_dir=.
10613 for ac_exec_ext in '' $ac_executable_extensions; do
10614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10615 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10627 if test -n "$ac_pt_PKG_CONFIG"; then
10628 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
10629 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
10631 { echo "$as_me:$LINENO: result: no" >&5
10632 echo "${ECHO_T}no" >&6; }
10635 if test "x$ac_pt_PKG_CONFIG" = x; then
10638 case $cross_compiling:$ac_tool_warned in
10640 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10641 whose name does not start with the host triplet. If you think this
10642 configuration is useful to you, please write to autoconf@gnu.org." >&5
10643 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10644 whose name does not start with the host triplet. If you think this
10645 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10646 ac_tool_warned=yes ;;
10648 PKG_CONFIG=$ac_pt_PKG_CONFIG
10651 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10655 if test -n "$PKG_CONFIG"; then
10656 _pkg_min_version=0.9.0
10657 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
10658 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
10659 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10660 { echo "$as_me:$LINENO: result: yes" >&5
10661 echo "${ECHO_T}yes" >&6; }
10663 { echo "$as_me:$LINENO: result: no" >&5
10664 echo "${ECHO_T}no" >&6; }
10671 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
10672 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
10674 if test -n "$LIBPNG_CFLAGS"; then
10675 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
10676 elif test -n "$PKG_CONFIG"; then
10677 if test -n "$PKG_CONFIG" && \
10678 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10679 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; then
10683 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
10690 if test -n "$LIBPNG_LIBS"; then
10691 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
10692 elif test -n "$PKG_CONFIG"; then
10693 if test -n "$PKG_CONFIG" && \
10694 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10695 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; then
10699 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
10709 if test $pkg_failed = yes; then
10711 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10712 _pkg_short_errors_supported=yes
10714 _pkg_short_errors_supported=no
10716 if test $_pkg_short_errors_supported = yes; then
10717 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
10719 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
10721 # Put the nasty error message in config.log where it belongs
10722 echo "$LIBPNG_PKG_ERRORS" >&5
10724 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
10728 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10729 installed software in a non-standard prefix.
10731 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10732 and LIBPNG_LIBS to avoid the need to call pkg-config.
10733 See the pkg-config man page for more details.
10735 echo "$as_me: error: Package requirements (libpng ) were not met:
10739 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10740 installed software in a non-standard prefix.
10742 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10743 and LIBPNG_LIBS to avoid the need to call pkg-config.
10744 See the pkg-config man page for more details.
10746 { (exit 1); exit 1; }; }
10747 elif test $pkg_failed = untried; then
10748 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10749 is in your PATH or set the PKG_CONFIG environment variable to the full
10750 path to pkg-config.
10752 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10753 and LIBPNG_LIBS to avoid the need to call pkg-config.
10754 See the pkg-config man page for more details.
10756 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10757 See \`config.log' for more details." >&5
10758 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10759 is in your PATH or set the PKG_CONFIG environment variable to the full
10760 path to pkg-config.
10762 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10763 and LIBPNG_LIBS to avoid the need to call pkg-config.
10764 See the pkg-config man page for more details.
10766 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10767 See \`config.log' for more details." >&2;}
10768 { (exit 1); exit 1; }; }
10770 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
10771 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
10772 { echo "$as_me:$LINENO: result: yes" >&5
10773 echo "${ECHO_T}yes" >&6; }
10778 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
10779 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
10780 if test "${ac_cv_lib_z_uncompress+set}" = set; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 ac_check_lib_save_LIBS=$LIBS
10785 cat >conftest.$ac_ext <<_ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10798 char uncompress ();
10802 return uncompress ();
10807 rm -f conftest.$ac_objext conftest$ac_exeext
10808 if { (ac_try="$ac_link"
10809 case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_link") 2>conftest.er1
10816 grep -v '^ *+' conftest.er1 >conftest.err
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } && {
10821 test -z "$ac_c_werror_flag" ||
10822 test ! -s conftest.err
10823 } && test -s conftest$ac_exeext &&
10824 $as_test_x conftest$ac_exeext; then
10825 ac_cv_lib_z_uncompress=yes
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_cv_lib_z_uncompress=no
10833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10834 conftest$ac_exeext conftest.$ac_ext
10835 LIBS=$ac_check_lib_save_LIBS
10837 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
10838 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
10839 if test $ac_cv_lib_z_uncompress = yes; then
10840 cat >>confdefs.h <<_ACEOF
10841 #define HAVE_LIBZ 1
10848 echo "Zlib (libz.so) could not be found, but is required."
10854 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10855 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
10856 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10859 ac_check_lib_save_LIBS=$LIBS
10861 cat >conftest.$ac_ext <<_ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10868 /* Override any GCC internal prototype to avoid an error.
10869 Use char because int might match the return type of a GCC
10870 builtin and then its argument prototype would still apply. */
10883 rm -f conftest.$ac_objext conftest$ac_exeext
10884 if { (ac_try="$ac_link"
10885 case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_link") 2>conftest.er1
10892 grep -v '^ *+' conftest.er1 >conftest.err
10894 cat conftest.err >&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } && {
10897 test -z "$ac_c_werror_flag" ||
10898 test ! -s conftest.err
10899 } && test -s conftest$ac_exeext &&
10900 $as_test_x conftest$ac_exeext; then
10901 ac_cv_lib_m_sqrt=yes
10903 echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10906 ac_cv_lib_m_sqrt=no
10909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10910 conftest$ac_exeext conftest.$ac_ext
10911 LIBS=$ac_check_lib_save_LIBS
10913 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10914 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
10915 if test $ac_cv_lib_m_sqrt = yes; then
10916 cat >>confdefs.h <<_ACEOF
10917 #define HAVE_LIBM 1
10925 if test "x$with_gtk" = "xno"; then
10928 { echo "$as_me:$LINENO: checking for GLIB" >&5
10929 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
10931 if test -n "$GLIB_CFLAGS"; then
10932 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10933 elif test -n "$PKG_CONFIG"; then
10934 if test -n "$PKG_CONFIG" && \
10935 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10936 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; then
10940 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10947 if test -n "$GLIB_LIBS"; then
10948 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10949 elif test -n "$PKG_CONFIG"; then
10950 if test -n "$PKG_CONFIG" && \
10951 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10952 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; then
10956 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
10966 if test $pkg_failed = yes; then
10968 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10969 _pkg_short_errors_supported=yes
10971 _pkg_short_errors_supported=no
10973 if test $_pkg_short_errors_supported = yes; then
10974 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
10976 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
10978 # Put the nasty error message in config.log where it belongs
10979 echo "$GLIB_PKG_ERRORS" >&5
10981 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
10985 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10986 installed software in a non-standard prefix.
10988 Alternatively, you may set the environment variables GLIB_CFLAGS
10989 and GLIB_LIBS to avoid the need to call pkg-config.
10990 See the pkg-config man page for more details.
10992 echo "$as_me: error: Package requirements (glib-2.0) were not met:
10996 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10997 installed software in a non-standard prefix.
10999 Alternatively, you may set the environment variables GLIB_CFLAGS
11000 and GLIB_LIBS to avoid the need to call pkg-config.
11001 See the pkg-config man page for more details.
11003 { (exit 1); exit 1; }; }
11004 elif test $pkg_failed = untried; then
11005 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11006 is in your PATH or set the PKG_CONFIG environment variable to the full
11007 path to pkg-config.
11009 Alternatively, you may set the environment variables GLIB_CFLAGS
11010 and GLIB_LIBS to avoid the need to call pkg-config.
11011 See the pkg-config man page for more details.
11013 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11014 See \`config.log' for more details." >&5
11015 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11016 is in your PATH or set the PKG_CONFIG environment variable to the full
11017 path to pkg-config.
11019 Alternatively, you may set the environment variables GLIB_CFLAGS
11020 and GLIB_LIBS to avoid the need to call pkg-config.
11021 See the pkg-config man page for more details.
11023 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11024 See \`config.log' for more details." >&2;}
11025 { (exit 1); exit 1; }; }
11027 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
11028 GLIB_LIBS=$pkg_cv_GLIB_LIBS
11029 { echo "$as_me:$LINENO: result: yes" >&5
11030 echo "${ECHO_T}yes" >&6; }
11036 { echo "$as_me:$LINENO: checking for GTK" >&5
11037 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
11039 if test -n "$GTK_CFLAGS"; then
11040 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
11041 elif test -n "$PKG_CONFIG"; then
11042 if test -n "$PKG_CONFIG" && \
11043 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
11044 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; then
11048 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
11055 if test -n "$GTK_LIBS"; then
11056 pkg_cv_GTK_LIBS="$GTK_LIBS"
11057 elif test -n "$PKG_CONFIG"; then
11058 if test -n "$PKG_CONFIG" && \
11059 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
11060 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; then
11064 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
11074 if test $pkg_failed = yes; then
11076 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11077 _pkg_short_errors_supported=yes
11079 _pkg_short_errors_supported=no
11081 if test $_pkg_short_errors_supported = yes; then
11082 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
11084 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
11086 # Put the nasty error message in config.log where it belongs
11087 echo "$GTK_PKG_ERRORS" >&5
11089 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
11093 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11094 installed software in a non-standard prefix.
11096 Alternatively, you may set the environment variables GTK_CFLAGS
11097 and GTK_LIBS to avoid the need to call pkg-config.
11098 See the pkg-config man page for more details.
11100 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
11104 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11105 installed software in a non-standard prefix.
11107 Alternatively, you may set the environment variables GTK_CFLAGS
11108 and GTK_LIBS to avoid the need to call pkg-config.
11109 See the pkg-config man page for more details.
11111 { (exit 1); exit 1; }; }
11112 elif test $pkg_failed = untried; then
11113 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11114 is in your PATH or set the PKG_CONFIG environment variable to the full
11115 path to pkg-config.
11117 Alternatively, you may set the environment variables GTK_CFLAGS
11118 and GTK_LIBS to avoid the need to call pkg-config.
11119 See the pkg-config man page for more details.
11121 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11122 See \`config.log' for more details." >&5
11123 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11124 is in your PATH or set the PKG_CONFIG environment variable to the full
11125 path to pkg-config.
11127 Alternatively, you may set the environment variables GTK_CFLAGS
11128 and GTK_LIBS to avoid the need to call pkg-config.
11129 See the pkg-config man page for more details.
11131 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11132 See \`config.log' for more details." >&2;}
11133 { (exit 1); exit 1; }; }
11135 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
11136 GTK_LIBS=$pkg_cv_GTK_LIBS
11137 { echo "$as_me:$LINENO: result: yes" >&5
11138 echo "${ECHO_T}yes" >&6; }
11142 cat >>confdefs.h <<\_ACEOF
11150 LIBS="$LIBS $GTK_LIBS"
11151 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
11152 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
11153 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 cat >conftest.$ac_ext <<_ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h. */
11162 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
11163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11164 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
11166 /* System header to define __stub macros and hopefully few prototypes,
11167 which can conflict with char gdk_x11_display_get_xdisplay (); below.
11168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11169 <limits.h> exists even on freestanding compilers. */
11172 # include <limits.h>
11174 # include <assert.h>
11177 #undef gdk_x11_display_get_xdisplay
11179 /* Override any GCC internal prototype to avoid an error.
11180 Use char because int might match the return type of a GCC
11181 builtin and then its argument prototype would still apply. */
11185 char gdk_x11_display_get_xdisplay ();
11186 /* The GNU C library defines this for functions which it implements
11187 to always fail with ENOSYS. Some functions are actually named
11188 something starting with __ and the normal name is an alias. */
11189 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
11196 return gdk_x11_display_get_xdisplay ();
11201 rm -f conftest.$ac_objext conftest$ac_exeext
11202 if { (ac_try="$ac_link"
11203 case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_link") 2>conftest.er1
11210 grep -v '^ *+' conftest.er1 >conftest.err
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } && {
11215 test -z "$ac_c_werror_flag" ||
11216 test ! -s conftest.err
11217 } && test -s conftest$ac_exeext &&
11218 $as_test_x conftest$ac_exeext; then
11219 ac_cv_func_gdk_x11_display_get_xdisplay=yes
11221 echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11224 ac_cv_func_gdk_x11_display_get_xdisplay=no
11227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11228 conftest$ac_exeext conftest.$ac_ext
11230 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
11231 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
11232 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
11236 cat >>confdefs.h <<\_ACEOF
11237 #define HAVE_GTK_X11 1
11242 GTK_LIBS="$GTK_LIBS -lX11"
11244 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
11245 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
11246 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 cat >conftest.$ac_ext <<_ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
11256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11257 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
11259 /* System header to define __stub macros and hopefully few prototypes,
11260 which can conflict with char gdk_quartz_window_get_nsview (); below.
11261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11262 <limits.h> exists even on freestanding compilers. */
11265 # include <limits.h>
11267 # include <assert.h>
11270 #undef gdk_quartz_window_get_nsview
11272 /* Override any GCC internal prototype to avoid an error.
11273 Use char because int might match the return type of a GCC
11274 builtin and then its argument prototype would still apply. */
11278 char gdk_quartz_window_get_nsview ();
11279 /* The GNU C library defines this for functions which it implements
11280 to always fail with ENOSYS. Some functions are actually named
11281 something starting with __ and the normal name is an alias. */
11282 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
11289 return gdk_quartz_window_get_nsview ();
11294 rm -f conftest.$ac_objext conftest$ac_exeext
11295 if { (ac_try="$ac_link"
11296 case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_link") 2>conftest.er1
11303 grep -v '^ *+' conftest.er1 >conftest.err
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } && {
11308 test -z "$ac_c_werror_flag" ||
11309 test ! -s conftest.err
11310 } && test -s conftest$ac_exeext &&
11311 $as_test_x conftest$ac_exeext; then
11312 ac_cv_func_gdk_quartz_window_get_nsview=yes
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11317 ac_cv_func_gdk_quartz_window_get_nsview=no
11320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11321 conftest$ac_exeext conftest.$ac_ext
11323 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
11324 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
11325 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
11329 cat >>confdefs.h <<\_ACEOF
11330 #define HAVE_GTK_OSX 1
11335 if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
11336 { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
11337 See \`config.log' for more details." >&5
11338 echo "$as_me: error: Unable to identify GTK platform
11339 See \`config.log' for more details." >&2;}
11340 { (exit 1); exit 1; }; }
11345 if test "$BUILD_PKG_CONFIG_LIBDIR" != "$TARGET_PKG_CONFIG_LIBDIR"; then
11346 PKG_CONFIG_LIBDIR="$BUILD_PKG_CONFIG_LIBDIR";
11347 if test "x$PKG_CONFIG_LIBDIR" = "x"; then
11348 export -n PKG_CONFIG_LIBDIR
11353 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
11354 echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
11356 if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
11357 pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
11358 elif test -n "$PKG_CONFIG"; then
11359 if test -n "$PKG_CONFIG" && \
11360 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
11361 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; then
11365 pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
11372 if test -n "$GLIB_FOR_BUILD_LIBS"; then
11373 pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
11374 elif test -n "$PKG_CONFIG"; then
11375 if test -n "$PKG_CONFIG" && \
11376 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
11377 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; then
11381 pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
11391 if test $pkg_failed = yes; then
11393 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11394 _pkg_short_errors_supported=yes
11396 _pkg_short_errors_supported=no
11398 if test $_pkg_short_errors_supported = yes; then
11399 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
11401 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
11403 # Put the nasty error message in config.log where it belongs
11404 echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
11406 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
11408 $GLIB_FOR_BUILD_PKG_ERRORS
11410 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11411 installed software in a non-standard prefix.
11413 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11414 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11415 See the pkg-config man page for more details.
11417 echo "$as_me: error: Package requirements (glib-2.0) were not met:
11419 $GLIB_FOR_BUILD_PKG_ERRORS
11421 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11422 installed software in a non-standard prefix.
11424 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11425 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11426 See the pkg-config man page for more details.
11428 { (exit 1); exit 1; }; }
11429 elif test $pkg_failed = untried; then
11430 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11431 is in your PATH or set the PKG_CONFIG environment variable to the full
11432 path to pkg-config.
11434 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11435 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11436 See the pkg-config man page for more details.
11438 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11439 See \`config.log' for more details." >&5
11440 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11441 is in your PATH or set the PKG_CONFIG environment variable to the full
11442 path to pkg-config.
11444 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11445 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11446 See the pkg-config man page for more details.
11448 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11449 See \`config.log' for more details." >&2;}
11450 { (exit 1); exit 1; }; }
11452 GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
11453 GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
11454 { echo "$as_me:$LINENO: result: yes" >&5
11455 echo "${ECHO_T}yes" >&6; }
11458 if test "$BUILD_PKG_CONFIG_LIBDIR" != "$TARGET_PKG_CONFIG_LIBDIR"; then
11459 PKG_CONFIG_LIBDIR="$TARGET_PKG_CONFIG_LIBDIR";
11460 export PKG_CONFIG_LIBDIR
11466 if test "$HAVE_GTK" = 'yes'; then
11477 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
11478 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
11480 if test -n "$LIBISOFS_CFLAGS"; then
11481 pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
11482 elif test -n "$PKG_CONFIG"; then
11483 if test -n "$PKG_CONFIG" && \
11484 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11485 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; then
11489 pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
11496 if test -n "$LIBISOFS_LIBS"; then
11497 pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
11498 elif test -n "$PKG_CONFIG"; then
11499 if test -n "$PKG_CONFIG" && \
11500 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11501 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; then
11505 pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
11515 if test $pkg_failed = yes; then
11517 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11518 _pkg_short_errors_supported=yes
11520 _pkg_short_errors_supported=no
11522 if test $_pkg_short_errors_supported = yes; then
11523 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
11525 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
11527 # Put the nasty error message in config.log where it belongs
11528 echo "$LIBISOFS_PKG_ERRORS" >&5
11530 { { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
11532 $LIBISOFS_PKG_ERRORS
11534 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11535 installed software in a non-standard prefix.
11537 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11538 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11539 See the pkg-config man page for more details.
11541 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
11543 $LIBISOFS_PKG_ERRORS
11545 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11546 installed software in a non-standard prefix.
11548 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11549 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11550 See the pkg-config man page for more details.
11552 { (exit 1); exit 1; }; }
11553 elif test $pkg_failed = untried; then
11554 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11555 is in your PATH or set the PKG_CONFIG environment variable to the full
11556 path to pkg-config.
11558 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11559 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11560 See the pkg-config man page for more details.
11562 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11563 See \`config.log' for more details." >&5
11564 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11565 is in your PATH or set the PKG_CONFIG environment variable to the full
11566 path to pkg-config.
11568 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11569 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11570 See the pkg-config man page for more details.
11572 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11573 See \`config.log' for more details." >&2;}
11574 { (exit 1); exit 1; }; }
11576 LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
11577 LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
11578 { echo "$as_me:$LINENO: result: yes" >&5
11579 echo "${ECHO_T}yes" >&6; }
11583 if test "x$with_osmesa" != xno; then
11587 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
11588 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
11589 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 ac_check_lib_save_LIBS=$LIBS
11593 LIBS="-lOSMesa $LIBS"
11594 cat >conftest.$ac_ext <<_ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11601 /* Override any GCC internal prototype to avoid an error.
11602 Use char because int might match the return type of a GCC
11603 builtin and then its argument prototype would still apply. */
11607 char OSMesaCreateContext ();
11611 return OSMesaCreateContext ();
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (ac_try="$ac_link"
11618 case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_link") 2>conftest.er1
11625 grep -v '^ *+' conftest.er1 >conftest.err
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } && {
11630 test -z "$ac_c_werror_flag" ||
11631 test ! -s conftest.err
11632 } && test -s conftest$ac_exeext &&
11633 $as_test_x conftest$ac_exeext; then
11634 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
11636 echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11639 ac_cv_lib_OSMesa_OSMesaCreateContext=no
11642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11643 conftest$ac_exeext conftest.$ac_ext
11644 LIBS=$ac_check_lib_save_LIBS
11646 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
11647 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
11648 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
11649 cat >>confdefs.h <<_ACEOF
11650 #define HAVE_LIBOSMESA 1
11653 LIBS="-lOSMesa $LIBS"
11656 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
11657 See \`config.log' for more details." >&5
11658 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
11659 See \`config.log' for more details." >&2;}
11660 { (exit 1); exit 1; }; }
11663 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11664 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11665 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11666 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11670 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11672 # Is the header compilable?
11673 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
11674 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
11675 cat >conftest.$ac_ext <<_ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11681 $ac_includes_default
11682 #include <GL/osmesa.h>
11684 rm -f conftest.$ac_objext
11685 if { (ac_try="$ac_compile"
11686 case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_compile") 2>conftest.er1
11693 grep -v '^ *+' conftest.er1 >conftest.err
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } && {
11698 test -z "$ac_c_werror_flag" ||
11699 test ! -s conftest.err
11700 } && test -s conftest.$ac_objext; then
11701 ac_header_compiler=yes
11703 echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11706 ac_header_compiler=no
11709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11711 echo "${ECHO_T}$ac_header_compiler" >&6; }
11713 # Is the header present?
11714 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
11715 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
11716 cat >conftest.$ac_ext <<_ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722 #include <GL/osmesa.h>
11724 if { (ac_try="$ac_cpp conftest.$ac_ext"
11725 case "(($ac_try" in
11726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727 *) ac_try_echo=$ac_try;;
11729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11732 grep -v '^ *+' conftest.er1 >conftest.err
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } >/dev/null && {
11737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11738 test ! -s conftest.err
11740 ac_header_preproc=yes
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11745 ac_header_preproc=no
11748 rm -f conftest.err conftest.$ac_ext
11749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11750 echo "${ECHO_T}$ac_header_preproc" >&6; }
11752 # So? What about this header?
11753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11755 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
11756 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
11758 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
11759 ac_header_preproc=yes
11762 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
11763 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
11764 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
11765 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
11766 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
11767 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
11768 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
11769 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
11770 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
11771 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
11773 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
11777 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11778 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11779 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 ac_cv_header_GL_osmesa_h=$ac_header_preproc
11784 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11785 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11788 if test $ac_cv_header_GL_osmesa_h = yes; then
11791 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
11792 See \`config.log' for more details." >&5
11793 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
11794 See \`config.log' for more details." >&2;}
11795 { (exit 1); exit 1; }; }
11800 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
11802 cat >>confdefs.h <<\_ACEOF
11803 #define HAVE_OSMESA 1
11809 if test "x$APPLE_BUILD" != 'xyes'; then
11812 { echo "$as_me:$LINENO: checking for LIBGL" >&5
11813 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
11815 if test -n "$LIBGL_CFLAGS"; then
11816 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
11817 elif test -n "$PKG_CONFIG"; then
11818 if test -n "$PKG_CONFIG" && \
11819 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl\"") >&5
11820 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; then
11824 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
11831 if test -n "$LIBGL_LIBS"; then
11832 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
11833 elif test -n "$PKG_CONFIG"; then
11834 if test -n "$PKG_CONFIG" && \
11835 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl\"") >&5
11836 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; then
11840 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
11850 if test $pkg_failed = yes; then
11852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11853 _pkg_short_errors_supported=yes
11855 _pkg_short_errors_supported=no
11857 if test $_pkg_short_errors_supported = yes; then
11858 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl" 2>&1`
11860 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl" 2>&1`
11862 # Put the nasty error message in config.log where it belongs
11863 echo "$LIBGL_PKG_ERRORS" >&5
11865 { echo "$as_me:$LINENO: result: no" >&5
11866 echo "${ECHO_T}no" >&6; }
11868 { echo "$as_me:$LINENO: checking for glEnable in -lGLESv2" >&5
11869 echo $ECHO_N "checking for glEnable in -lGLESv2... $ECHO_C" >&6; }
11870 if test "${ac_cv_lib_GLESv2_glEnable+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 ac_check_lib_save_LIBS=$LIBS
11874 LIBS="-lGLESv2 $LIBS"
11875 cat >conftest.$ac_ext <<_ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11882 /* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11892 return glEnable ();
11897 rm -f conftest.$ac_objext conftest$ac_exeext
11898 if { (ac_try="$ac_link"
11899 case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_link") 2>conftest.er1
11906 grep -v '^ *+' conftest.er1 >conftest.err
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && {
11911 test -z "$ac_c_werror_flag" ||
11912 test ! -s conftest.err
11913 } && test -s conftest$ac_exeext &&
11914 $as_test_x conftest$ac_exeext; then
11915 ac_cv_lib_GLESv2_glEnable=yes
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_cv_lib_GLESv2_glEnable=no
11923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11924 conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11927 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLESv2_glEnable" >&5
11928 echo "${ECHO_T}$ac_cv_lib_GLESv2_glEnable" >&6; }
11929 if test $ac_cv_lib_GLESv2_glEnable = yes; then
11930 LIBS="-lGLESv2 $LIBS"; HAVE_GLES2='yes'
11932 { { echo "$as_me:$LINENO: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
11933 See \`config.log' for more details." >&5
11934 echo "$as_me: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
11935 See \`config.log' for more details." >&2;}
11936 { (exit 1); exit 1; }; }
11940 elif test $pkg_failed = untried; then
11942 { echo "$as_me:$LINENO: checking for glEnable in -lGLESv2" >&5
11943 echo $ECHO_N "checking for glEnable in -lGLESv2... $ECHO_C" >&6; }
11944 if test "${ac_cv_lib_GLESv2_glEnable+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 ac_check_lib_save_LIBS=$LIBS
11948 LIBS="-lGLESv2 $LIBS"
11949 cat >conftest.$ac_ext <<_ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11956 /* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11966 return glEnable ();
11971 rm -f conftest.$ac_objext conftest$ac_exeext
11972 if { (ac_try="$ac_link"
11973 case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_link") 2>conftest.er1
11980 grep -v '^ *+' conftest.er1 >conftest.err
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } && {
11985 test -z "$ac_c_werror_flag" ||
11986 test ! -s conftest.err
11987 } && test -s conftest$ac_exeext &&
11988 $as_test_x conftest$ac_exeext; then
11989 ac_cv_lib_GLESv2_glEnable=yes
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11994 ac_cv_lib_GLESv2_glEnable=no
11997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11998 conftest$ac_exeext conftest.$ac_ext
11999 LIBS=$ac_check_lib_save_LIBS
12001 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLESv2_glEnable" >&5
12002 echo "${ECHO_T}$ac_cv_lib_GLESv2_glEnable" >&6; }
12003 if test $ac_cv_lib_GLESv2_glEnable = yes; then
12004 LIBS="-lGLESv2 $LIBS"; HAVE_GLES2='yes'
12006 { { echo "$as_me:$LINENO: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
12007 See \`config.log' for more details." >&5
12008 echo "$as_me: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
12009 See \`config.log' for more details." >&2;}
12010 { (exit 1); exit 1; }; }
12015 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
12016 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
12017 { echo "$as_me:$LINENO: result: yes" >&5
12018 echo "${ECHO_T}yes" >&6; }
12020 LIBS="$LIBS $LIBGL_LIBS";
12021 CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
12026 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
12027 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
12028 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 cat >conftest.$ac_ext <<_ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12037 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
12038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12039 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
12041 /* System header to define __stub macros and hopefully few prototypes,
12042 which can conflict with char NSOpenGLGetVersion (); below.
12043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12044 <limits.h> exists even on freestanding compilers. */
12047 # include <limits.h>
12049 # include <assert.h>
12052 #undef NSOpenGLGetVersion
12054 /* Override any GCC internal prototype to avoid an error.
12055 Use char because int might match the return type of a GCC
12056 builtin and then its argument prototype would still apply. */
12060 char NSOpenGLGetVersion ();
12061 /* The GNU C library defines this for functions which it implements
12062 to always fail with ENOSYS. Some functions are actually named
12063 something starting with __ and the normal name is an alias. */
12064 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
12071 return NSOpenGLGetVersion ();
12076 rm -f conftest.$ac_objext conftest$ac_exeext
12077 if { (ac_try="$ac_link"
12078 case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_link") 2>conftest.er1
12085 grep -v '^ *+' conftest.er1 >conftest.err
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } && {
12090 test -z "$ac_c_werror_flag" ||
12091 test ! -s conftest.err
12092 } && test -s conftest$ac_exeext &&
12093 $as_test_x conftest$ac_exeext; then
12094 ac_cv_func_NSOpenGLGetVersion=yes
12096 echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12099 ac_cv_func_NSOpenGLGetVersion=no
12102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12103 conftest$ac_exeext conftest.$ac_ext
12105 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
12106 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
12107 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
12110 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
12112 cat >>confdefs.h <<\_ACEOF
12113 #define HAVE_NSGL 1
12118 if test "x$HAVE_GTK_X11" = "xyes"; then
12119 LIBS="$LIBS -L/usr/X11/lib -lGL"
12123 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
12124 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
12125 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 cat >conftest.$ac_ext <<_ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12134 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
12135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12136 #define glXQueryVersion innocuous_glXQueryVersion
12138 /* System header to define __stub macros and hopefully few prototypes,
12139 which can conflict with char glXQueryVersion (); below.
12140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12141 <limits.h> exists even on freestanding compilers. */
12144 # include <limits.h>
12146 # include <assert.h>
12149 #undef glXQueryVersion
12151 /* Override any GCC internal prototype to avoid an error.
12152 Use char because int might match the return type of a GCC
12153 builtin and then its argument prototype would still apply. */
12157 char glXQueryVersion ();
12158 /* The GNU C library defines this for functions which it implements
12159 to always fail with ENOSYS. Some functions are actually named
12160 something starting with __ and the normal name is an alias. */
12161 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
12168 return glXQueryVersion ();
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (ac_try="$ac_link"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_link") 2>conftest.er1
12182 grep -v '^ *+' conftest.er1 >conftest.err
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } && {
12187 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest$ac_exeext &&
12190 $as_test_x conftest$ac_exeext; then
12191 ac_cv_func_glXQueryVersion=yes
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 ac_cv_func_glXQueryVersion=no
12199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12200 conftest$ac_exeext conftest.$ac_ext
12202 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
12203 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
12204 if test $ac_cv_func_glXQueryVersion = yes; then
12207 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
12209 cat >>confdefs.h <<\_ACEOF
12215 { echo "$as_me:$LINENO: checking for eglGetDisplay in -lEGL" >&5
12216 echo $ECHO_N "checking for eglGetDisplay in -lEGL... $ECHO_C" >&6; }
12217 if test "${ac_cv_lib_EGL_eglGetDisplay+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 ac_check_lib_save_LIBS=$LIBS
12222 cat >conftest.$ac_ext <<_ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12229 /* Override any GCC internal prototype to avoid an error.
12230 Use char because int might match the return type of a GCC
12231 builtin and then its argument prototype would still apply. */
12235 char eglGetDisplay ();
12239 return eglGetDisplay ();
12244 rm -f conftest.$ac_objext conftest$ac_exeext
12245 if { (ac_try="$ac_link"
12246 case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_link") 2>conftest.er1
12253 grep -v '^ *+' conftest.er1 >conftest.err
12255 cat conftest.err >&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } && {
12258 test -z "$ac_c_werror_flag" ||
12259 test ! -s conftest.err
12260 } && test -s conftest$ac_exeext &&
12261 $as_test_x conftest$ac_exeext; then
12262 ac_cv_lib_EGL_eglGetDisplay=yes
12264 echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12267 ac_cv_lib_EGL_eglGetDisplay=no
12270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12271 conftest$ac_exeext conftest.$ac_ext
12272 LIBS=$ac_check_lib_save_LIBS
12274 { echo "$as_me:$LINENO: result: $ac_cv_lib_EGL_eglGetDisplay" >&5
12275 echo "${ECHO_T}$ac_cv_lib_EGL_eglGetDisplay" >&6; }
12276 if test $ac_cv_lib_EGL_eglGetDisplay = yes; then
12280 VIDEO_DRIVERS="$VIDEO_DRIVERS egl"
12287 if test "x$HAVE_GLES2" = "xyes"; then
12289 cat >>confdefs.h <<\_ACEOF
12290 #define HAVE_GLES2 1
12297 if test "x$HAVE_OSMESA" = "xyes"; then
12299 VIDEO_OSMESA_FALSE='#'
12301 VIDEO_OSMESA_TRUE='#'
12302 VIDEO_OSMESA_FALSE=
12307 if test "x$HAVE_GLX" = "xyes"; then
12309 VIDEO_GLX_FALSE='#'
12317 if test "x$HAVE_NSGL" = "xyes"; then
12319 VIDEO_NSGL_FALSE='#'
12321 VIDEO_NSGL_TRUE='#'
12327 if test "x$HAVE_EGL" = "xyes"; then
12329 VIDEO_EGL_FALSE='#'
12336 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
12337 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
12338 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 cat >conftest.$ac_ext <<_ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 /* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
12348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12349 #define glGenFramebuffers innocuous_glGenFramebuffers
12351 /* System header to define __stub macros and hopefully few prototypes,
12352 which can conflict with char glGenFramebuffers (); below.
12353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12354 <limits.h> exists even on freestanding compilers. */
12357 # include <limits.h>
12359 # include <assert.h>
12362 #undef glGenFramebuffers
12364 /* Override any GCC internal prototype to avoid an error.
12365 Use char because int might match the return type of a GCC
12366 builtin and then its argument prototype would still apply. */
12370 char glGenFramebuffers ();
12371 /* The GNU C library defines this for functions which it implements
12372 to always fail with ENOSYS. Some functions are actually named
12373 something starting with __ and the normal name is an alias. */
12374 #if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
12381 return glGenFramebuffers ();
12386 rm -f conftest.$ac_objext conftest$ac_exeext
12387 if { (ac_try="$ac_link"
12388 case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_link") 2>conftest.er1
12395 grep -v '^ *+' conftest.er1 >conftest.err
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } && {
12400 test -z "$ac_c_werror_flag" ||
12401 test ! -s conftest.err
12402 } && test -s conftest$ac_exeext &&
12403 $as_test_x conftest$ac_exeext; then
12404 ac_cv_func_glGenFramebuffers=yes
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12409 ac_cv_func_glGenFramebuffers=no
12412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12413 conftest$ac_exeext conftest.$ac_ext
12415 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
12416 echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
12417 if test $ac_cv_func_glGenFramebuffers = yes; then
12419 cat >>confdefs.h <<\_ACEOF
12420 #define HAVE_OPENGL_FBO 1
12425 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
12426 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
12427 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 cat >conftest.$ac_ext <<_ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12436 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
12437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12438 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
12440 /* System header to define __stub macros and hopefully few prototypes,
12441 which can conflict with char glGenFramebuffersEXT (); below.
12442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12443 <limits.h> exists even on freestanding compilers. */
12446 # include <limits.h>
12448 # include <assert.h>
12451 #undef glGenFramebuffersEXT
12453 /* Override any GCC internal prototype to avoid an error.
12454 Use char because int might match the return type of a GCC
12455 builtin and then its argument prototype would still apply. */
12459 char glGenFramebuffersEXT ();
12460 /* The GNU C library defines this for functions which it implements
12461 to always fail with ENOSYS. Some functions are actually named
12462 something starting with __ and the normal name is an alias. */
12463 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
12470 return glGenFramebuffersEXT ();
12475 rm -f conftest.$ac_objext conftest$ac_exeext
12476 if { (ac_try="$ac_link"
12477 case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_link") 2>conftest.er1
12484 grep -v '^ *+' conftest.er1 >conftest.err
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } && {
12489 test -z "$ac_c_werror_flag" ||
12490 test ! -s conftest.err
12491 } && test -s conftest$ac_exeext &&
12492 $as_test_x conftest$ac_exeext; then
12493 ac_cv_func_glGenFramebuffersEXT=yes
12495 echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12498 ac_cv_func_glGenFramebuffersEXT=no
12501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12502 conftest$ac_exeext conftest.$ac_ext
12504 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
12505 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
12506 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
12508 cat >>confdefs.h <<\_ACEOF
12509 #define HAVE_OPENGL_FBO_EXT 1
12514 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
12515 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
12516 if test "${ac_cv_func_glCreateShader+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 cat >conftest.$ac_ext <<_ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
12526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12527 #define glCreateShader innocuous_glCreateShader
12529 /* System header to define __stub macros and hopefully few prototypes,
12530 which can conflict with char glCreateShader (); below.
12531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12532 <limits.h> exists even on freestanding compilers. */
12535 # include <limits.h>
12537 # include <assert.h>
12540 #undef glCreateShader
12542 /* Override any GCC internal prototype to avoid an error.
12543 Use char because int might match the return type of a GCC
12544 builtin and then its argument prototype would still apply. */
12548 char glCreateShader ();
12549 /* The GNU C library defines this for functions which it implements
12550 to always fail with ENOSYS. Some functions are actually named
12551 something starting with __ and the normal name is an alias. */
12552 #if defined __stub_glCreateShader || defined __stub___glCreateShader
12559 return glCreateShader ();
12564 rm -f conftest.$ac_objext conftest$ac_exeext
12565 if { (ac_try="$ac_link"
12566 case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_link") 2>conftest.er1
12573 grep -v '^ *+' conftest.er1 >conftest.err
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } && {
12578 test -z "$ac_c_werror_flag" ||
12579 test ! -s conftest.err
12580 } && test -s conftest$ac_exeext &&
12581 $as_test_x conftest$ac_exeext; then
12582 ac_cv_func_glCreateShader=yes
12584 echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12587 ac_cv_func_glCreateShader=no
12590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12591 conftest$ac_exeext conftest.$ac_ext
12593 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
12594 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
12595 if test $ac_cv_func_glCreateShader = yes; then
12597 cat >>confdefs.h <<\_ACEOF
12598 #define HAVE_OPENGL_SHADER 1
12603 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
12604 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
12605 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 cat >conftest.$ac_ext <<_ACEOF
12611 cat confdefs.h >>conftest.$ac_ext
12612 cat >>conftest.$ac_ext <<_ACEOF
12613 /* end confdefs.h. */
12614 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
12615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12616 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
12618 /* System header to define __stub macros and hopefully few prototypes,
12619 which can conflict with char glCreateShaderObjectARB (); below.
12620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12621 <limits.h> exists even on freestanding compilers. */
12624 # include <limits.h>
12626 # include <assert.h>
12629 #undef glCreateShaderObjectARB
12631 /* Override any GCC internal prototype to avoid an error.
12632 Use char because int might match the return type of a GCC
12633 builtin and then its argument prototype would still apply. */
12637 char glCreateShaderObjectARB ();
12638 /* The GNU C library defines this for functions which it implements
12639 to always fail with ENOSYS. Some functions are actually named
12640 something starting with __ and the normal name is an alias. */
12641 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
12648 return glCreateShaderObjectARB ();
12653 rm -f conftest.$ac_objext conftest$ac_exeext
12654 if { (ac_try="$ac_link"
12655 case "(($ac_try" in
12656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657 *) ac_try_echo=$ac_try;;
12659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12660 (eval "$ac_link") 2>conftest.er1
12662 grep -v '^ *+' conftest.er1 >conftest.err
12664 cat conftest.err >&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } && {
12667 test -z "$ac_c_werror_flag" ||
12668 test ! -s conftest.err
12669 } && test -s conftest$ac_exeext &&
12670 $as_test_x conftest$ac_exeext; then
12671 ac_cv_func_glCreateShaderObjectARB=yes
12673 echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12676 ac_cv_func_glCreateShaderObjectARB=no
12679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12680 conftest$ac_exeext conftest.$ac_ext
12682 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
12683 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
12684 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
12686 cat >>confdefs.h <<\_ACEOF
12687 #define HAVE_OPENGL_SHADER_ARB 1
12692 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
12693 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
12694 if test "${ac_cv_func_glClampColorARB+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 cat >conftest.$ac_ext <<_ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12703 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
12704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12705 #define glClampColorARB innocuous_glClampColorARB
12707 /* System header to define __stub macros and hopefully few prototypes,
12708 which can conflict with char glClampColorARB (); below.
12709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12710 <limits.h> exists even on freestanding compilers. */
12713 # include <limits.h>
12715 # include <assert.h>
12718 #undef glClampColorARB
12720 /* Override any GCC internal prototype to avoid an error.
12721 Use char because int might match the return type of a GCC
12722 builtin and then its argument prototype would still apply. */
12726 char glClampColorARB ();
12727 /* The GNU C library defines this for functions which it implements
12728 to always fail with ENOSYS. Some functions are actually named
12729 something starting with __ and the normal name is an alias. */
12730 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
12737 return glClampColorARB ();
12742 rm -f conftest.$ac_objext conftest$ac_exeext
12743 if { (ac_try="$ac_link"
12744 case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_link") 2>conftest.er1
12751 grep -v '^ *+' conftest.er1 >conftest.err
12753 cat conftest.err >&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } && {
12756 test -z "$ac_c_werror_flag" ||
12757 test ! -s conftest.err
12758 } && test -s conftest$ac_exeext &&
12759 $as_test_x conftest$ac_exeext; then
12760 ac_cv_func_glClampColorARB=yes
12762 echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12765 ac_cv_func_glClampColorARB=no
12768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12769 conftest$ac_exeext conftest.$ac_ext
12771 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
12772 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
12773 if test $ac_cv_func_glClampColorARB = yes; then
12775 cat >>confdefs.h <<\_ACEOF
12776 #define HAVE_OPENGL_CLAMP_COLOR 1
12781 { echo "$as_me:$LINENO: checking for glClearDepthf" >&5
12782 echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
12783 if test "${ac_cv_func_glClearDepthf+set}" = set; then
12784 echo $ECHO_N "(cached) $ECHO_C" >&6
12786 cat >conftest.$ac_ext <<_ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h. */
12792 /* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
12793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12794 #define glClearDepthf innocuous_glClearDepthf
12796 /* System header to define __stub macros and hopefully few prototypes,
12797 which can conflict with char glClearDepthf (); below.
12798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12799 <limits.h> exists even on freestanding compilers. */
12802 # include <limits.h>
12804 # include <assert.h>
12807 #undef glClearDepthf
12809 /* Override any GCC internal prototype to avoid an error.
12810 Use char because int might match the return type of a GCC
12811 builtin and then its argument prototype would still apply. */
12815 char glClearDepthf ();
12816 /* The GNU C library defines this for functions which it implements
12817 to always fail with ENOSYS. Some functions are actually named
12818 something starting with __ and the normal name is an alias. */
12819 #if defined __stub_glClearDepthf || defined __stub___glClearDepthf
12826 return glClearDepthf ();
12831 rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (ac_try="$ac_link"
12833 case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_link") 2>conftest.er1
12840 grep -v '^ *+' conftest.er1 >conftest.err
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } && {
12845 test -z "$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12847 } && test -s conftest$ac_exeext &&
12848 $as_test_x conftest$ac_exeext; then
12849 ac_cv_func_glClearDepthf=yes
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12854 ac_cv_func_glClearDepthf=no
12857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12858 conftest$ac_exeext conftest.$ac_ext
12860 { echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
12861 echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
12862 if test $ac_cv_func_glClearDepthf = yes; then
12864 cat >>confdefs.h <<\_ACEOF
12865 #define HAVE_OPENGL_CLEAR_DEPTHF 1
12870 { echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
12871 echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
12872 if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 cat >conftest.$ac_ext <<_ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 /* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
12882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12883 #define glAreTexturesResident innocuous_glAreTexturesResident
12885 /* System header to define __stub macros and hopefully few prototypes,
12886 which can conflict with char glAreTexturesResident (); below.
12887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12888 <limits.h> exists even on freestanding compilers. */
12891 # include <limits.h>
12893 # include <assert.h>
12896 #undef glAreTexturesResident
12898 /* Override any GCC internal prototype to avoid an error.
12899 Use char because int might match the return type of a GCC
12900 builtin and then its argument prototype would still apply. */
12904 char glAreTexturesResident ();
12905 /* The GNU C library defines this for functions which it implements
12906 to always fail with ENOSYS. Some functions are actually named
12907 something starting with __ and the normal name is an alias. */
12908 #if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
12915 return glAreTexturesResident ();
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (ac_try="$ac_link"
12922 case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_link") 2>conftest.er1
12929 grep -v '^ *+' conftest.er1 >conftest.err
12931 cat conftest.err >&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } && {
12934 test -z "$ac_c_werror_flag" ||
12935 test ! -s conftest.err
12936 } && test -s conftest$ac_exeext &&
12937 $as_test_x conftest$ac_exeext; then
12938 ac_cv_func_glAreTexturesResident=yes
12940 echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12943 ac_cv_func_glAreTexturesResident=no
12946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12947 conftest$ac_exeext conftest.$ac_ext
12949 { echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
12950 echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
12951 if test $ac_cv_func_glAreTexturesResident = yes; then
12953 cat >>confdefs.h <<\_ACEOF
12954 #define HAVE_OPENGL_TEX_RESIDENT 1
12959 { echo "$as_me:$LINENO: checking for glDrawBuffer" >&5
12960 echo $ECHO_N "checking for glDrawBuffer... $ECHO_C" >&6; }
12961 if test "${ac_cv_func_glDrawBuffer+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12964 cat >conftest.$ac_ext <<_ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970 /* Define glDrawBuffer to an innocuous variant, in case <limits.h> declares glDrawBuffer.
12971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12972 #define glDrawBuffer innocuous_glDrawBuffer
12974 /* System header to define __stub macros and hopefully few prototypes,
12975 which can conflict with char glDrawBuffer (); below.
12976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12977 <limits.h> exists even on freestanding compilers. */
12980 # include <limits.h>
12982 # include <assert.h>
12985 #undef glDrawBuffer
12987 /* Override any GCC internal prototype to avoid an error.
12988 Use char because int might match the return type of a GCC
12989 builtin and then its argument prototype would still apply. */
12993 char glDrawBuffer ();
12994 /* The GNU C library defines this for functions which it implements
12995 to always fail with ENOSYS. Some functions are actually named
12996 something starting with __ and the normal name is an alias. */
12997 #if defined __stub_glDrawBuffer || defined __stub___glDrawBuffer
13004 return glDrawBuffer ();
13009 rm -f conftest.$ac_objext conftest$ac_exeext
13010 if { (ac_try="$ac_link"
13011 case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016 (eval "$ac_link") 2>conftest.er1
13018 grep -v '^ *+' conftest.er1 >conftest.err
13020 cat conftest.err >&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } && {
13023 test -z "$ac_c_werror_flag" ||
13024 test ! -s conftest.err
13025 } && test -s conftest$ac_exeext &&
13026 $as_test_x conftest$ac_exeext; then
13027 ac_cv_func_glDrawBuffer=yes
13029 echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.$ac_ext >&5
13032 ac_cv_func_glDrawBuffer=no
13035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13036 conftest$ac_exeext conftest.$ac_ext
13038 { echo "$as_me:$LINENO: result: $ac_cv_func_glDrawBuffer" >&5
13039 echo "${ECHO_T}$ac_cv_func_glDrawBuffer" >&6; }
13040 if test $ac_cv_func_glDrawBuffer = yes; then
13042 cat >>confdefs.h <<\_ACEOF
13043 #define HAVE_OPENGL_DRAW_BUFFER 1
13048 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
13049 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
13050 if test "${ac_cv_func_glTexEnvi+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13053 cat >conftest.$ac_ext <<_ACEOF
13056 cat confdefs.h >>conftest.$ac_ext
13057 cat >>conftest.$ac_ext <<_ACEOF
13058 /* end confdefs.h. */
13059 /* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
13060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13061 #define glTexEnvi innocuous_glTexEnvi
13063 /* System header to define __stub macros and hopefully few prototypes,
13064 which can conflict with char glTexEnvi (); below.
13065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13066 <limits.h> exists even on freestanding compilers. */
13069 # include <limits.h>
13071 # include <assert.h>
13076 /* Override any GCC internal prototype to avoid an error.
13077 Use char because int might match the return type of a GCC
13078 builtin and then its argument prototype would still apply. */
13083 /* The GNU C library defines this for functions which it implements
13084 to always fail with ENOSYS. Some functions are actually named
13085 something starting with __ and the normal name is an alias. */
13086 #if defined __stub_glTexEnvi || defined __stub___glTexEnvi
13093 return glTexEnvi ();
13098 rm -f conftest.$ac_objext conftest$ac_exeext
13099 if { (ac_try="$ac_link"
13100 case "(($ac_try" in
13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102 *) ac_try_echo=$ac_try;;
13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105 (eval "$ac_link") 2>conftest.er1
13107 grep -v '^ *+' conftest.er1 >conftest.err
13109 cat conftest.err >&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } && {
13112 test -z "$ac_c_werror_flag" ||
13113 test ! -s conftest.err
13114 } && test -s conftest$ac_exeext &&
13115 $as_test_x conftest$ac_exeext; then
13116 ac_cv_func_glTexEnvi=yes
13118 echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13121 ac_cv_func_glTexEnvi=no
13124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13125 conftest$ac_exeext conftest.$ac_ext
13127 { echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
13128 echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
13129 if test $ac_cv_func_glTexEnvi = yes; then
13131 cat >>confdefs.h <<\_ACEOF
13132 #define HAVE_OPENGL_FIXEDFUNC 1
13138 if test "x$enable_translator" != "xno"; then
13140 i386|i486|i586|i686|x86_64)
13141 SH4_TRANSLATOR="x86"
13143 cat >>confdefs.h <<_ACEOF
13144 #define SH4_TRANSLATOR TARGET_X86
13151 if test "$SH4_TRANSLATOR" = "x86"; then
13153 BUILD_SH4X86_FALSE='#'
13155 BUILD_SH4X86_TRUE='#'
13156 BUILD_SH4X86_FALSE=
13160 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
13161 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
13162 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
13163 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
13167 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
13169 # Is the header compilable?
13170 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
13171 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
13172 cat >conftest.$ac_ext <<_ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h. */
13178 $ac_includes_default
13179 #include <CoreAudio/CoreAudio.h>
13181 rm -f conftest.$ac_objext
13182 if { (ac_try="$ac_compile"
13183 case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_compile") 2>conftest.er1
13190 grep -v '^ *+' conftest.er1 >conftest.err
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } && {
13195 test -z "$ac_c_werror_flag" ||
13196 test ! -s conftest.err
13197 } && test -s conftest.$ac_objext; then
13198 ac_header_compiler=yes
13200 echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13203 ac_header_compiler=no
13206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13208 echo "${ECHO_T}$ac_header_compiler" >&6; }
13210 # Is the header present?
13211 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
13212 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
13213 cat >conftest.$ac_ext <<_ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13219 #include <CoreAudio/CoreAudio.h>
13221 if { (ac_try="$ac_cpp conftest.$ac_ext"
13222 case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13229 grep -v '^ *+' conftest.er1 >conftest.err
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } >/dev/null && {
13234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13235 test ! -s conftest.err
13237 ac_header_preproc=yes
13239 echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13242 ac_header_preproc=no
13245 rm -f conftest.err conftest.$ac_ext
13246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13247 echo "${ECHO_T}$ac_header_preproc" >&6; }
13249 # So? What about this header?
13250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13252 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13253 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13254 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
13255 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
13256 ac_header_preproc=yes
13259 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
13260 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
13261 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
13262 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
13264 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
13266 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
13268 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
13269 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
13270 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
13274 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
13275 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
13276 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
13281 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
13282 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
13285 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
13287 HAVE_CORE_AUDIO=yes
13288 LIBS="$LIBS -framework CoreAudio"
13289 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
13291 cat >>confdefs.h <<\_ACEOF
13292 #define HAVE_CORE_AUDIO 1
13302 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
13304 AUDIO_OSX_FALSE='#'
13311 if test "x$with_sdl" != "xno"; then
13314 { echo "$as_me:$LINENO: checking for SDL" >&5
13315 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
13317 if test -n "$SDL_CFLAGS"; then
13318 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13319 elif test -n "$PKG_CONFIG"; then
13320 if test -n "$PKG_CONFIG" && \
13321 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
13322 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; then
13326 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13333 if test -n "$SDL_LIBS"; then
13334 pkg_cv_SDL_LIBS="$SDL_LIBS"
13335 elif test -n "$PKG_CONFIG"; then
13336 if test -n "$PKG_CONFIG" && \
13337 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
13338 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; then
13342 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13352 if test $pkg_failed = yes; then
13354 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13355 _pkg_short_errors_supported=yes
13357 _pkg_short_errors_supported=no
13359 if test $_pkg_short_errors_supported = yes; then
13360 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
13362 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
13364 # Put the nasty error message in config.log where it belongs
13365 echo "$SDL_PKG_ERRORS" >&5
13367 { echo "$as_me:$LINENO: result: no" >&5
13368 echo "${ECHO_T}no" >&6; }
13370 if test "x$with_sdl" = "xyes"; then
13371 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
13372 See \`config.log' for more details." >&5
13373 echo "$as_me: error: \"SDL libraries could not be found (but were required)
13374 See \`config.log' for more details." >&2;}
13375 { (exit 1); exit 1; }; }
13378 elif test $pkg_failed = untried; then
13380 if test "x$with_sdl" = "xyes"; then
13381 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
13382 See \`config.log' for more details." >&5
13383 echo "$as_me: error: \"SDL libraries could not be found (but were required)
13384 See \`config.log' for more details." >&2;}
13385 { (exit 1); exit 1; }; }
13389 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13390 SDL_LIBS=$pkg_cv_SDL_LIBS
13391 { echo "$as_me:$LINENO: result: yes" >&5
13392 echo "${ECHO_T}yes" >&6; }
13395 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
13397 cat >>confdefs.h <<\_ACEOF
13406 if test "$HAVE_SDL" = 'yes' ; then
13408 AUDIO_SDL_FALSE='#'
13415 if test "x$with_pulse" != "xno"; then
13418 { echo "$as_me:$LINENO: checking for PULSE" >&5
13419 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
13421 if test -n "$PULSE_CFLAGS"; then
13422 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
13423 elif test -n "$PKG_CONFIG"; then
13424 if test -n "$PKG_CONFIG" && \
13425 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
13426 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; then
13430 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
13437 if test -n "$PULSE_LIBS"; then
13438 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
13439 elif test -n "$PKG_CONFIG"; then
13440 if test -n "$PKG_CONFIG" && \
13441 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
13442 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; then
13446 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
13456 if test $pkg_failed = yes; then
13458 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13459 _pkg_short_errors_supported=yes
13461 _pkg_short_errors_supported=no
13463 if test $_pkg_short_errors_supported = yes; then
13464 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
13466 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
13468 # Put the nasty error message in config.log where it belongs
13469 echo "$PULSE_PKG_ERRORS" >&5
13471 { echo "$as_me:$LINENO: result: no" >&5
13472 echo "${ECHO_T}no" >&6; }
13474 if test "x$with_pulse" = "xyes"; then
13475 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
13476 See \`config.log' for more details." >&5
13477 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
13478 See \`config.log' for more details." >&2;}
13479 { (exit 1); exit 1; }; }
13482 elif test $pkg_failed = untried; then
13484 if test "x$with_pulse" = "xyes"; then
13485 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
13486 See \`config.log' for more details." >&5
13487 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
13488 See \`config.log' for more details." >&2;}
13489 { (exit 1); exit 1; }; }
13493 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
13494 PULSE_LIBS=$pkg_cv_PULSE_LIBS
13495 { echo "$as_me:$LINENO: result: yes" >&5
13496 echo "${ECHO_T}yes" >&6; }
13499 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
13501 cat >>confdefs.h <<\_ACEOF
13502 #define HAVE_PULSE 1
13510 if test "$HAVE_PULSE" = 'yes' ; then
13512 AUDIO_PULSE_FALSE='#'
13514 AUDIO_PULSE_TRUE='#'
13519 if test "x$with_esd" != "xno"; then
13522 { echo "$as_me:$LINENO: checking for ESOUND" >&5
13523 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
13525 if test -n "$ESOUND_CFLAGS"; then
13526 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
13527 elif test -n "$PKG_CONFIG"; then
13528 if test -n "$PKG_CONFIG" && \
13529 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
13530 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; then
13534 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
13541 if test -n "$ESOUND_LIBS"; then
13542 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
13543 elif test -n "$PKG_CONFIG"; then
13544 if test -n "$PKG_CONFIG" && \
13545 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
13546 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; then
13550 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
13560 if test $pkg_failed = yes; then
13562 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13563 _pkg_short_errors_supported=yes
13565 _pkg_short_errors_supported=no
13567 if test $_pkg_short_errors_supported = yes; then
13568 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
13570 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
13572 # Put the nasty error message in config.log where it belongs
13573 echo "$ESOUND_PKG_ERRORS" >&5
13575 { echo "$as_me:$LINENO: result: no" >&5
13576 echo "${ECHO_T}no" >&6; }
13578 if test "x$with_esd" = "xyes"; then
13579 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
13580 See \`config.log' for more details." >&5
13581 echo "$as_me: error: ESounD audio package could not be found (but was required)
13582 See \`config.log' for more details." >&2;}
13583 { (exit 1); exit 1; }; }
13586 elif test $pkg_failed = untried; then
13588 if test "x$with_esd" = "xyes"; then
13589 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
13590 See \`config.log' for more details." >&5
13591 echo "$as_me: error: ESounD audio package could not be found (but was required)
13592 See \`config.log' for more details." >&2;}
13593 { (exit 1); exit 1; }; }
13597 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
13598 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
13599 { echo "$as_me:$LINENO: result: yes" >&5
13600 echo "${ECHO_T}yes" >&6; }
13603 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
13605 cat >>confdefs.h <<\_ACEOF
13606 #define HAVE_ESOUND 1
13614 if test "$HAVE_ESOUND" = 'yes' ; then
13616 AUDIO_ESOUND_FALSE='#'
13618 AUDIO_ESOUND_TRUE='#'
13619 AUDIO_ESOUND_FALSE=
13625 { echo "$as_me:$LINENO: checking for ALSA" >&5
13626 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
13628 if test -n "$ALSA_CFLAGS"; then
13629 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
13630 elif test -n "$PKG_CONFIG"; then
13631 if test -n "$PKG_CONFIG" && \
13632 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13633 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; then
13637 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
13644 if test -n "$ALSA_LIBS"; then
13645 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
13646 elif test -n "$PKG_CONFIG"; then
13647 if test -n "$PKG_CONFIG" && \
13648 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13649 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; then
13653 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
13663 if test $pkg_failed = yes; then
13665 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13666 _pkg_short_errors_supported=yes
13668 _pkg_short_errors_supported=no
13670 if test $_pkg_short_errors_supported = yes; then
13671 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
13673 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
13675 # Put the nasty error message in config.log where it belongs
13676 echo "$ALSA_PKG_ERRORS" >&5
13678 { echo "$as_me:$LINENO: result: no" >&5
13679 echo "${ECHO_T}no" >&6; }
13681 elif test $pkg_failed = untried; then
13684 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
13685 ALSA_LIBS=$pkg_cv_ALSA_LIBS
13686 { echo "$as_me:$LINENO: result: yes" >&5
13687 echo "${ECHO_T}yes" >&6; }
13690 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
13692 cat >>confdefs.h <<\_ACEOF
13693 #define HAVE_ALSA 1
13699 if test "$HAVE_ALSA" = 'yes' ; then
13701 AUDIO_ALSA_FALSE='#'
13703 AUDIO_ALSA_TRUE='#'
13709 if test "$ANDROID_BUILD" != "yes"; then
13710 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13711 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13712 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13713 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13717 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13719 # Is the header compilable?
13720 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
13721 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
13722 cat >conftest.$ac_ext <<_ACEOF
13725 cat confdefs.h >>conftest.$ac_ext
13726 cat >>conftest.$ac_ext <<_ACEOF
13727 /* end confdefs.h. */
13728 $ac_includes_default
13729 #include <linux/cdrom.h>
13731 rm -f conftest.$ac_objext
13732 if { (ac_try="$ac_compile"
13733 case "(($ac_try" in
13734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735 *) ac_try_echo=$ac_try;;
13737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13738 (eval "$ac_compile") 2>conftest.er1
13740 grep -v '^ *+' conftest.er1 >conftest.err
13742 cat conftest.err >&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } && {
13745 test -z "$ac_c_werror_flag" ||
13746 test ! -s conftest.err
13747 } && test -s conftest.$ac_objext; then
13748 ac_header_compiler=yes
13750 echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13753 ac_header_compiler=no
13756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13758 echo "${ECHO_T}$ac_header_compiler" >&6; }
13760 # Is the header present?
13761 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
13762 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
13763 cat >conftest.$ac_ext <<_ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13769 #include <linux/cdrom.h>
13771 if { (ac_try="$ac_cpp conftest.$ac_ext"
13772 case "(($ac_try" in
13773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774 *) ac_try_echo=$ac_try;;
13776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13779 grep -v '^ *+' conftest.er1 >conftest.err
13781 cat conftest.err >&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } >/dev/null && {
13784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13785 test ! -s conftest.err
13787 ac_header_preproc=yes
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13792 ac_header_preproc=no
13795 rm -f conftest.err conftest.$ac_ext
13796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13797 echo "${ECHO_T}$ac_header_preproc" >&6; }
13799 # So? What about this header?
13800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13802 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
13803 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
13805 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
13806 ac_header_preproc=yes
13809 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
13810 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
13811 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
13812 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
13813 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
13814 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
13815 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
13816 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
13817 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
13818 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
13819 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
13820 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
13824 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13825 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13826 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 ac_cv_header_linux_cdrom_h=$ac_header_preproc
13831 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13832 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13835 if test $ac_cv_header_linux_cdrom_h = yes; then
13838 { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
13839 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
13840 old_CFLAGS="$CFLAGS"
13841 CFLAGS="$CFLAGS $STDCFLAG"
13842 cat >conftest.$ac_ext <<_ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13848 #include <linux/cdrom.h>
13857 rm -f conftest.$ac_objext
13858 if { (ac_try="$ac_compile"
13859 case "(($ac_try" in
13860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861 *) ac_try_echo=$ac_try;;
13863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13864 (eval "$ac_compile") 2>conftest.er1
13866 grep -v '^ *+' conftest.er1 >conftest.err
13868 cat conftest.err >&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } && {
13871 test -z "$ac_c_werror_flag" ||
13872 test ! -s conftest.err
13873 } && test -s conftest.$ac_objext; then
13874 { echo "$as_me:$LINENO: result: Yes" >&5
13875 echo "${ECHO_T}Yes" >&6; }
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13881 { echo "$as_me:$LINENO: result: No" >&5
13882 echo "${ECHO_T}No" >&6; }
13883 STDCFLAG="-std=gnu99"
13886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887 CFLAGS="$old_CFLAGS"
13894 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13895 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13896 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13897 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13901 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13903 # Is the header compilable?
13904 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
13905 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 $ac_includes_default
13913 #include <IOKit/IOKitLib.h>
13915 rm -f conftest.$ac_objext
13916 if { (ac_try="$ac_compile"
13917 case "(($ac_try" in
13918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919 *) ac_try_echo=$ac_try;;
13921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13922 (eval "$ac_compile") 2>conftest.er1
13924 grep -v '^ *+' conftest.er1 >conftest.err
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } && {
13929 test -z "$ac_c_werror_flag" ||
13930 test ! -s conftest.err
13931 } && test -s conftest.$ac_objext; then
13932 ac_header_compiler=yes
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13937 ac_header_compiler=no
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13942 echo "${ECHO_T}$ac_header_compiler" >&6; }
13944 # Is the header present?
13945 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
13946 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
13947 cat >conftest.$ac_ext <<_ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 #include <IOKit/IOKitLib.h>
13955 if { (ac_try="$ac_cpp conftest.$ac_ext"
13956 case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13963 grep -v '^ *+' conftest.er1 >conftest.err
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } >/dev/null && {
13968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13969 test ! -s conftest.err
13971 ac_header_preproc=yes
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13976 ac_header_preproc=no
13979 rm -f conftest.err conftest.$ac_ext
13980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13981 echo "${ECHO_T}$ac_header_preproc" >&6; }
13983 # So? What about this header?
13984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13986 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13987 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13988 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
13989 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
13990 ac_header_preproc=yes
13993 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
13994 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
13996 echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
13997 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
13998 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
13999 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
14000 echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14001 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
14002 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
14004 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
14008 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
14009 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
14010 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
14015 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
14016 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
14019 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
14022 LIBS="$LIBS -framework IOKit"
14031 if test "x$CDROM_DRIVER" = "xlinux"; then
14033 CDROM_LINUX_FALSE='#'
14035 CDROM_LINUX_TRUE='#'
14041 if test "x$CDROM_DRIVER" = "xosx"; then
14043 CDROM_OSX_FALSE='#'
14051 if test "x$CDROM_DRIVER" = "x"; then
14053 CDROM_NONE_FALSE='#'
14055 CDROM_NONE_TRUE='#'
14059 if test "x$CDROM_DRIVER" = "xlinux"; then
14061 cat >>confdefs.h <<\_ACEOF
14062 #define HAVE_LINUX_CDROM 1
14067 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
14068 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
14069 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
14070 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
14074 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
14076 # Is the header compilable?
14077 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
14078 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
14079 cat >conftest.$ac_ext <<_ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h. */
14085 $ac_includes_default
14086 #include <linux/joystick.h>
14088 rm -f conftest.$ac_objext
14089 if { (ac_try="$ac_compile"
14090 case "(($ac_try" in
14091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092 *) ac_try_echo=$ac_try;;
14094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14095 (eval "$ac_compile") 2>conftest.er1
14097 grep -v '^ *+' conftest.er1 >conftest.err
14099 cat conftest.err >&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } && {
14102 test -z "$ac_c_werror_flag" ||
14103 test ! -s conftest.err
14104 } && test -s conftest.$ac_objext; then
14105 ac_header_compiler=yes
14107 echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 ac_header_compiler=no
14113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14115 echo "${ECHO_T}$ac_header_compiler" >&6; }
14117 # Is the header present?
14118 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
14119 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
14120 cat >conftest.$ac_ext <<_ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 #include <linux/joystick.h>
14128 if { (ac_try="$ac_cpp conftest.$ac_ext"
14129 case "(($ac_try" in
14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131 *) ac_try_echo=$ac_try;;
14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14136 grep -v '^ *+' conftest.er1 >conftest.err
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } >/dev/null && {
14141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14142 test ! -s conftest.err
14144 ac_header_preproc=yes
14146 echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14149 ac_header_preproc=no
14152 rm -f conftest.err conftest.$ac_ext
14153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14154 echo "${ECHO_T}$ac_header_preproc" >&6; }
14156 # So? What about this header?
14157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14159 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
14160 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14161 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
14162 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
14163 ac_header_preproc=yes
14166 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
14167 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
14168 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
14169 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
14170 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
14171 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
14172 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
14173 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
14174 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
14175 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
14177 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
14181 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
14182 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
14183 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 ac_cv_header_linux_joystick_h=$ac_header_preproc
14188 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
14189 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
14192 if test $ac_cv_header_linux_joystick_h = yes; then
14194 HAVE_LINUX_JOYSTICK_H=yes
14196 cat >>confdefs.h <<\_ACEOF
14197 #define HAVE_LINUX_JOYSTICK 1
14200 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
14202 echo "Linux Joystick support not found, building without it."
14208 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
14210 JOY_LINUX_FALSE='#'
14217 if test "x$with_lirc" != "xno"; then
14218 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14219 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14220 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
14221 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14225 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
14227 # Is the header compilable?
14228 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
14229 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
14230 cat >conftest.$ac_ext <<_ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 $ac_includes_default
14237 #include <lirc/lirc_client.h>
14239 rm -f conftest.$ac_objext
14240 if { (ac_try="$ac_compile"
14241 case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_compile") 2>conftest.er1
14248 grep -v '^ *+' conftest.er1 >conftest.err
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_c_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest.$ac_objext; then
14256 ac_header_compiler=yes
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 ac_header_compiler=no
14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14266 echo "${ECHO_T}$ac_header_compiler" >&6; }
14268 # Is the header present?
14269 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
14270 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
14271 cat >conftest.$ac_ext <<_ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14277 #include <lirc/lirc_client.h>
14279 if { (ac_try="$ac_cpp conftest.$ac_ext"
14280 case "(($ac_try" in
14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14287 grep -v '^ *+' conftest.er1 >conftest.err
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } >/dev/null && {
14292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14293 test ! -s conftest.err
14295 ac_header_preproc=yes
14297 echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14300 ac_header_preproc=no
14303 rm -f conftest.err conftest.$ac_ext
14304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14305 echo "${ECHO_T}$ac_header_preproc" >&6; }
14307 # So? What about this header?
14308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14310 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
14311 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14312 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
14313 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
14314 ac_header_preproc=yes
14317 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
14318 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
14319 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
14320 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
14321 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
14322 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
14323 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
14324 echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
14325 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
14326 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
14327 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
14328 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
14332 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14333 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
14334 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
14339 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14340 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
14343 if test $ac_cv_header_lirc_lirc_client_h = yes; then
14345 HAVE_LIRC_CLIENT_H=yes
14347 cat >>confdefs.h <<\_ACEOF
14348 #define HAVE_LIRC 1
14351 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
14354 echo "LIRC support not found, building without it."
14361 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
14363 INPUT_LIRC_FALSE='#'
14365 INPUT_LIRC_TRUE='#'
14370 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
14371 set dummy sh-elf-gcc; ac_word=$2
14372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14374 if test "${ac_cv_path_SHCC+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14379 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
14382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14386 test -z "$as_dir" && as_dir=.
14387 for ac_exec_ext in '' $ac_executable_extensions; do
14388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14389 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
14390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14400 SHCC=$ac_cv_path_SHCC
14401 if test -n "$SHCC"; then
14402 { echo "$as_me:$LINENO: result: $SHCC" >&5
14403 echo "${ECHO_T}$SHCC" >&6; }
14405 { echo "$as_me:$LINENO: result: no" >&5
14406 echo "${ECHO_T}no" >&6; }
14410 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
14411 set dummy sh-elf-ld; ac_word=$2
14412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14414 if test "${ac_cv_path_SHLD+set}" = set; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
14422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14423 for as_dir in $PATH
14426 test -z "$as_dir" && as_dir=.
14427 for ac_exec_ext in '' $ac_executable_extensions; do
14428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14429 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
14430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14440 SHLD=$ac_cv_path_SHLD
14441 if test -n "$SHLD"; then
14442 { echo "$as_me:$LINENO: result: $SHLD" >&5
14443 echo "${ECHO_T}$SHLD" >&6; }
14445 { echo "$as_me:$LINENO: result: no" >&5
14446 echo "${ECHO_T}no" >&6; }
14450 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
14451 set dummy sh-elf-objcopy; ac_word=$2
14452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14454 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14459 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
14462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14463 for as_dir in $PATH
14466 test -z "$as_dir" && as_dir=.
14467 for ac_exec_ext in '' $ac_executable_extensions; do
14468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14469 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
14470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14480 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
14481 if test -n "$SHOBJCOPY"; then
14482 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
14483 echo "${ECHO_T}$SHOBJCOPY" >&6; }
14485 { echo "$as_me:$LINENO: result: no" >&5
14486 echo "${ECHO_T}no" >&6; }
14490 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
14491 set dummy arm-elf-gcc; ac_word=$2
14492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14494 if test "${ac_cv_path_ARMCC+set}" = set; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
14502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14503 for as_dir in $PATH
14506 test -z "$as_dir" && as_dir=.
14507 for ac_exec_ext in '' $ac_executable_extensions; do
14508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14509 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
14510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14520 ARMCC=$ac_cv_path_ARMCC
14521 if test -n "$ARMCC"; then
14522 { echo "$as_me:$LINENO: result: $ARMCC" >&5
14523 echo "${ECHO_T}$ARMCC" >&6; }
14525 { echo "$as_me:$LINENO: result: no" >&5
14526 echo "${ECHO_T}no" >&6; }
14530 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
14531 set dummy arm-elf-ld; ac_word=$2
14532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14534 if test "${ac_cv_path_ARMLD+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
14542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543 for as_dir in $PATH
14546 test -z "$as_dir" && as_dir=.
14547 for ac_exec_ext in '' $ac_executable_extensions; do
14548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14549 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
14550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14560 ARMLD=$ac_cv_path_ARMLD
14561 if test -n "$ARMLD"; then
14562 { echo "$as_me:$LINENO: result: $ARMLD" >&5
14563 echo "${ECHO_T}$ARMLD" >&6; }
14565 { echo "$as_me:$LINENO: result: no" >&5
14566 echo "${ECHO_T}no" >&6; }
14570 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
14571 set dummy arm-elf-objcopy; ac_word=$2
14572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14574 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 case $ARMOBJCOPY in
14579 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
14582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14583 for as_dir in $PATH
14586 test -z "$as_dir" && as_dir=.
14587 for ac_exec_ext in '' $ac_executable_extensions; do
14588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14589 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
14590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14600 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
14601 if test -n "$ARMOBJCOPY"; then
14602 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
14603 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
14605 { echo "$as_me:$LINENO: result: no" >&5
14606 echo "${ECHO_T}no" >&6; }
14611 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
14613 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
14617 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
14619 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
14625 if test "$BUILD_SH" = "yes"; then
14626 BUILD_SYSTEST_TRUE=
14627 BUILD_SYSTEST_FALSE='#'
14629 BUILD_SYSTEST_TRUE='#'
14630 BUILD_SYSTEST_FALSE=
14635 if test "$BUILD_ARM" = "yes"; then
14636 BUILD_ARMTEST_TRUE=
14637 BUILD_ARMTEST_FALSE='#'
14639 BUILD_ARMTEST_TRUE='#'
14640 BUILD_ARMTEST_FALSE=
14644 CFLAGS="$CFLAGS $STDCFLAG"
14646 GETTEXT_PACKAGE=lxdream
14647 LXDREAM_LIBS="$LIBS"
14652 cat >>confdefs.h <<_ACEOF
14653 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
14657 ALL_LINGUAS="de es it nl pt_BR"
14660 for ac_header in locale.h
14662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14667 echo $ECHO_N "(cached) $ECHO_C" >&6
14669 ac_res=`eval echo '${'$as_ac_Header'}'`
14670 { echo "$as_me:$LINENO: result: $ac_res" >&5
14671 echo "${ECHO_T}$ac_res" >&6; }
14673 # Is the header compilable?
14674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14676 cat >conftest.$ac_ext <<_ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14682 $ac_includes_default
14683 #include <$ac_header>
14685 rm -f conftest.$ac_objext
14686 if { (ac_try="$ac_compile"
14687 case "(($ac_try" in
14688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_compile") 2>conftest.er1
14694 grep -v '^ *+' conftest.er1 >conftest.err
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } && {
14699 test -z "$ac_c_werror_flag" ||
14700 test ! -s conftest.err
14701 } && test -s conftest.$ac_objext; then
14702 ac_header_compiler=yes
14704 echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14707 ac_header_compiler=no
14710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14712 echo "${ECHO_T}$ac_header_compiler" >&6; }
14714 # Is the header present?
14715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14717 cat >conftest.$ac_ext <<_ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 #include <$ac_header>
14725 if { (ac_try="$ac_cpp conftest.$ac_ext"
14726 case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14733 grep -v '^ *+' conftest.er1 >conftest.err
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } >/dev/null && {
14738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14739 test ! -s conftest.err
14741 ac_header_preproc=yes
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_header_preproc=no
14749 rm -f conftest.err conftest.$ac_ext
14750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14751 echo "${ECHO_T}$ac_header_preproc" >&6; }
14753 # So? What about this header?
14754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14760 ac_header_preproc=yes
14763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14783 eval "$as_ac_Header=\$ac_header_preproc"
14785 ac_res=`eval echo '${'$as_ac_Header'}'`
14786 { echo "$as_me:$LINENO: result: $ac_res" >&5
14787 echo "${ECHO_T}$ac_res" >&6; }
14790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14791 cat >>confdefs.h <<_ACEOF
14792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14799 if test $ac_cv_header_locale_h = yes; then
14800 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14801 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
14802 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 cat >conftest.$ac_ext <<_ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811 #include <locale.h>
14820 rm -f conftest.$ac_objext conftest$ac_exeext
14821 if { (ac_try="$ac_link"
14822 case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_link") 2>conftest.er1
14829 grep -v '^ *+' conftest.er1 >conftest.err
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } && {
14834 test -z "$ac_c_werror_flag" ||
14835 test ! -s conftest.err
14836 } && test -s conftest$ac_exeext &&
14837 $as_test_x conftest$ac_exeext; then
14838 am_cv_val_LC_MESSAGES=yes
14840 echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14843 am_cv_val_LC_MESSAGES=no
14846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14847 conftest$ac_exeext conftest.$ac_ext
14849 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14850 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
14851 if test $am_cv_val_LC_MESSAGES = yes; then
14853 cat >>confdefs.h <<\_ACEOF
14854 #define HAVE_LC_MESSAGES 1
14862 gt_cv_have_gettext=no
14868 if test "${ac_cv_header_libintl_h+set}" = set; then
14869 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14870 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14871 if test "${ac_cv_header_libintl_h+set}" = set; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14875 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14877 # Is the header compilable?
14878 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
14879 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
14880 cat >conftest.$ac_ext <<_ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14886 $ac_includes_default
14887 #include <libintl.h>
14889 rm -f conftest.$ac_objext
14890 if { (ac_try="$ac_compile"
14891 case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_compile") 2>conftest.er1
14898 grep -v '^ *+' conftest.er1 >conftest.err
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } && {
14903 test -z "$ac_c_werror_flag" ||
14904 test ! -s conftest.err
14905 } && test -s conftest.$ac_objext; then
14906 ac_header_compiler=yes
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14911 ac_header_compiler=no
14914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14916 echo "${ECHO_T}$ac_header_compiler" >&6; }
14918 # Is the header present?
14919 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
14920 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
14921 cat >conftest.$ac_ext <<_ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h. */
14927 #include <libintl.h>
14929 if { (ac_try="$ac_cpp conftest.$ac_ext"
14930 case "(($ac_try" in
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14937 grep -v '^ *+' conftest.er1 >conftest.err
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } >/dev/null && {
14942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14943 test ! -s conftest.err
14945 ac_header_preproc=yes
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14950 ac_header_preproc=no
14953 rm -f conftest.err conftest.$ac_ext
14954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14955 echo "${ECHO_T}$ac_header_preproc" >&6; }
14957 # So? What about this header?
14958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14960 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14961 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14962 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
14963 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
14964 ac_header_preproc=yes
14967 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14968 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
14970 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
14971 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
14972 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
14973 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
14974 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14976 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
14978 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
14982 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14983 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14984 if test "${ac_cv_header_libintl_h+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14987 ac_cv_header_libintl_h=$ac_header_preproc
14989 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14990 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14993 if test $ac_cv_header_libintl_h = yes; then
14994 gt_cv_func_dgettext_libintl="no"
14995 libintl_extra_libs=""
14998 # First check in libc
15000 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
15001 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
15002 if test "${gt_cv_func_ngettext_libc+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 cat >conftest.$ac_ext <<_ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15012 #include <libintl.h>
15017 return !ngettext ("","", 1)
15022 rm -f conftest.$ac_objext conftest$ac_exeext
15023 if { (ac_try="$ac_link"
15024 case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_link") 2>conftest.er1
15031 grep -v '^ *+' conftest.er1 >conftest.err
15033 cat conftest.err >&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } && {
15036 test -z "$ac_c_werror_flag" ||
15037 test ! -s conftest.err
15038 } && test -s conftest$ac_exeext &&
15039 $as_test_x conftest$ac_exeext; then
15040 gt_cv_func_ngettext_libc=yes
15042 echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15045 gt_cv_func_ngettext_libc=no
15048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15049 conftest$ac_exeext conftest.$ac_ext
15052 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
15053 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
15055 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15056 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
15057 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
15058 if test "${gt_cv_func_dgettext_libc+set}" = set; then
15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15061 cat >conftest.$ac_ext <<_ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15068 #include <libintl.h>
15073 return !dgettext ("","")
15078 rm -f conftest.$ac_objext conftest$ac_exeext
15079 if { (ac_try="$ac_link"
15080 case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_link") 2>conftest.er1
15087 grep -v '^ *+' conftest.er1 >conftest.err
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } && {
15092 test -z "$ac_c_werror_flag" ||
15093 test ! -s conftest.err
15094 } && test -s conftest$ac_exeext &&
15095 $as_test_x conftest$ac_exeext; then
15096 gt_cv_func_dgettext_libc=yes
15098 echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15101 gt_cv_func_dgettext_libc=no
15104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15105 conftest$ac_exeext conftest.$ac_ext
15108 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
15109 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
15112 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15114 for ac_func in bind_textdomain_codeset
15116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15120 echo $ECHO_N "(cached) $ECHO_C" >&6
15122 cat >conftest.$ac_ext <<_ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15130 #define $ac_func innocuous_$ac_func
15132 /* System header to define __stub macros and hopefully few prototypes,
15133 which can conflict with char $ac_func (); below.
15134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15135 <limits.h> exists even on freestanding compilers. */
15138 # include <limits.h>
15140 # include <assert.h>
15145 /* Override any GCC internal prototype to avoid an error.
15146 Use char because int might match the return type of a GCC
15147 builtin and then its argument prototype would still apply. */
15152 /* The GNU C library defines this for functions which it implements
15153 to always fail with ENOSYS. Some functions are actually named
15154 something starting with __ and the normal name is an alias. */
15155 #if defined __stub_$ac_func || defined __stub___$ac_func
15162 return $ac_func ();
15167 rm -f conftest.$ac_objext conftest$ac_exeext
15168 if { (ac_try="$ac_link"
15169 case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_link") 2>conftest.er1
15176 grep -v '^ *+' conftest.er1 >conftest.err
15178 cat conftest.err >&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } && {
15181 test -z "$ac_c_werror_flag" ||
15182 test ! -s conftest.err
15183 } && test -s conftest$ac_exeext &&
15184 $as_test_x conftest$ac_exeext; then
15185 eval "$as_ac_var=yes"
15187 echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15190 eval "$as_ac_var=no"
15193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15194 conftest$ac_exeext conftest.$ac_ext
15196 ac_res=`eval echo '${'$as_ac_var'}'`
15197 { echo "$as_me:$LINENO: result: $ac_res" >&5
15198 echo "${ECHO_T}$ac_res" >&6; }
15199 if test `eval echo '${'$as_ac_var'}'` = yes; then
15200 cat >>confdefs.h <<_ACEOF
15201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15210 # If we don't have everything we want, check in libintl
15212 if test "$gt_cv_func_dgettext_libc" != "yes" \
15213 || test "$gt_cv_func_ngettext_libc" != "yes" \
15214 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
15216 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
15217 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
15218 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15221 ac_check_lib_save_LIBS=$LIBS
15222 LIBS="-lintl $LIBS"
15223 cat >conftest.$ac_ext <<_ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h. */
15230 /* Override any GCC internal prototype to avoid an error.
15231 Use char because int might match the return type of a GCC
15232 builtin and then its argument prototype would still apply. */
15236 char bindtextdomain ();
15240 return bindtextdomain ();
15245 rm -f conftest.$ac_objext conftest$ac_exeext
15246 if { (ac_try="$ac_link"
15247 case "(($ac_try" in
15248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249 *) ac_try_echo=$ac_try;;
15251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15252 (eval "$ac_link") 2>conftest.er1
15254 grep -v '^ *+' conftest.er1 >conftest.err
15256 cat conftest.err >&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } && {
15259 test -z "$ac_c_werror_flag" ||
15260 test ! -s conftest.err
15261 } && test -s conftest$ac_exeext &&
15262 $as_test_x conftest$ac_exeext; then
15263 ac_cv_lib_intl_bindtextdomain=yes
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15268 ac_cv_lib_intl_bindtextdomain=no
15271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15272 conftest$ac_exeext conftest.$ac_ext
15273 LIBS=$ac_check_lib_save_LIBS
15275 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
15276 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
15277 if test $ac_cv_lib_intl_bindtextdomain = yes; then
15278 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
15279 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
15280 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15283 ac_check_lib_save_LIBS=$LIBS
15284 LIBS="-lintl $LIBS"
15285 cat >conftest.$ac_ext <<_ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15292 /* Override any GCC internal prototype to avoid an error.
15293 Use char because int might match the return type of a GCC
15294 builtin and then its argument prototype would still apply. */
15302 return ngettext ();
15307 rm -f conftest.$ac_objext conftest$ac_exeext
15308 if { (ac_try="$ac_link"
15309 case "(($ac_try" in
15310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311 *) ac_try_echo=$ac_try;;
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314 (eval "$ac_link") 2>conftest.er1
15316 grep -v '^ *+' conftest.er1 >conftest.err
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } && {
15321 test -z "$ac_c_werror_flag" ||
15322 test ! -s conftest.err
15323 } && test -s conftest$ac_exeext &&
15324 $as_test_x conftest$ac_exeext; then
15325 ac_cv_lib_intl_ngettext=yes
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15330 ac_cv_lib_intl_ngettext=no
15333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15334 conftest$ac_exeext conftest.$ac_ext
15335 LIBS=$ac_check_lib_save_LIBS
15337 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
15338 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
15339 if test $ac_cv_lib_intl_ngettext = yes; then
15340 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
15341 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
15342 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
15343 echo $ECHO_N "(cached) $ECHO_C" >&6
15345 ac_check_lib_save_LIBS=$LIBS
15346 LIBS="-lintl $LIBS"
15347 cat >conftest.$ac_ext <<_ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15354 /* Override any GCC internal prototype to avoid an error.
15355 Use char because int might match the return type of a GCC
15356 builtin and then its argument prototype would still apply. */
15364 return dgettext ();
15369 rm -f conftest.$ac_objext conftest$ac_exeext
15370 if { (ac_try="$ac_link"
15371 case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_link") 2>conftest.er1
15378 grep -v '^ *+' conftest.er1 >conftest.err
15380 cat conftest.err >&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } && {
15383 test -z "$ac_c_werror_flag" ||
15384 test ! -s conftest.err
15385 } && test -s conftest$ac_exeext &&
15386 $as_test_x conftest$ac_exeext; then
15387 ac_cv_lib_intl_dgettext=yes
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ac_cv_lib_intl_dgettext=no
15395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15396 conftest$ac_exeext conftest.$ac_ext
15397 LIBS=$ac_check_lib_save_LIBS
15399 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
15400 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
15401 if test $ac_cv_lib_intl_dgettext = yes; then
15402 gt_cv_func_dgettext_libintl=yes
15410 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
15411 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
15412 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
15413 { echo "$as_me:$LINENO: result: " >&5
15414 echo "${ECHO_T}" >&6; }
15415 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
15416 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
15417 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 ac_check_lib_save_LIBS=$LIBS
15421 LIBS="-lintl -liconv $LIBS"
15422 cat >conftest.$ac_ext <<_ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15429 /* Override any GCC internal prototype to avoid an error.
15430 Use char because int might match the return type of a GCC
15431 builtin and then its argument prototype would still apply. */
15439 return ngettext ();
15444 rm -f conftest.$ac_objext conftest$ac_exeext
15445 if { (ac_try="$ac_link"
15446 case "(($ac_try" in
15447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448 *) ac_try_echo=$ac_try;;
15450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15451 (eval "$ac_link") 2>conftest.er1
15453 grep -v '^ *+' conftest.er1 >conftest.err
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } && {
15458 test -z "$ac_c_werror_flag" ||
15459 test ! -s conftest.err
15460 } && test -s conftest$ac_exeext &&
15461 $as_test_x conftest$ac_exeext; then
15462 ac_cv_lib_intl_ngettext=yes
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15467 ac_cv_lib_intl_ngettext=no
15470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15471 conftest$ac_exeext conftest.$ac_ext
15472 LIBS=$ac_check_lib_save_LIBS
15474 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
15475 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
15476 if test $ac_cv_lib_intl_ngettext = yes; then
15477 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
15478 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
15479 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15482 ac_check_lib_save_LIBS=$LIBS
15483 LIBS="-lintl -liconv $LIBS"
15484 cat >conftest.$ac_ext <<_ACEOF
15487 cat confdefs.h >>conftest.$ac_ext
15488 cat >>conftest.$ac_ext <<_ACEOF
15489 /* end confdefs.h. */
15491 /* Override any GCC internal prototype to avoid an error.
15492 Use char because int might match the return type of a GCC
15493 builtin and then its argument prototype would still apply. */
15501 return dcgettext ();
15506 rm -f conftest.$ac_objext conftest$ac_exeext
15507 if { (ac_try="$ac_link"
15508 case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_link") 2>conftest.er1
15515 grep -v '^ *+' conftest.er1 >conftest.err
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } && {
15520 test -z "$ac_c_werror_flag" ||
15521 test ! -s conftest.err
15522 } && test -s conftest$ac_exeext &&
15523 $as_test_x conftest$ac_exeext; then
15524 ac_cv_lib_intl_dcgettext=yes
15526 echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15529 ac_cv_lib_intl_dcgettext=no
15532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15533 conftest$ac_exeext conftest.$ac_ext
15534 LIBS=$ac_check_lib_save_LIBS
15536 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
15537 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
15538 if test $ac_cv_lib_intl_dcgettext = yes; then
15539 gt_cv_func_dgettext_libintl=yes
15540 libintl_extra_libs=-liconv
15552 # If we found libintl, then check in it for bind_textdomain_codeset();
15553 # we'll prefer libc if neither have bind_textdomain_codeset(),
15554 # and both have dgettext and ngettext
15556 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
15557 glib_save_LIBS="$LIBS"
15558 LIBS="$LIBS -lintl $libintl_extra_libs"
15559 unset ac_cv_func_bind_textdomain_codeset
15561 for ac_func in bind_textdomain_codeset
15563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 cat >conftest.$ac_ext <<_ACEOF
15572 cat confdefs.h >>conftest.$ac_ext
15573 cat >>conftest.$ac_ext <<_ACEOF
15574 /* end confdefs.h. */
15575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15577 #define $ac_func innocuous_$ac_func
15579 /* System header to define __stub macros and hopefully few prototypes,
15580 which can conflict with char $ac_func (); below.
15581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15582 <limits.h> exists even on freestanding compilers. */
15585 # include <limits.h>
15587 # include <assert.h>
15592 /* Override any GCC internal prototype to avoid an error.
15593 Use char because int might match the return type of a GCC
15594 builtin and then its argument prototype would still apply. */
15599 /* The GNU C library defines this for functions which it implements
15600 to always fail with ENOSYS. Some functions are actually named
15601 something starting with __ and the normal name is an alias. */
15602 #if defined __stub_$ac_func || defined __stub___$ac_func
15609 return $ac_func ();
15614 rm -f conftest.$ac_objext conftest$ac_exeext
15615 if { (ac_try="$ac_link"
15616 case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_link") 2>conftest.er1
15623 grep -v '^ *+' conftest.er1 >conftest.err
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } && {
15628 test -z "$ac_c_werror_flag" ||
15629 test ! -s conftest.err
15630 } && test -s conftest$ac_exeext &&
15631 $as_test_x conftest$ac_exeext; then
15632 eval "$as_ac_var=yes"
15634 echo "$as_me: failed program was:" >&5
15635 sed 's/^/| /' conftest.$ac_ext >&5
15637 eval "$as_ac_var=no"
15640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15641 conftest$ac_exeext conftest.$ac_ext
15643 ac_res=`eval echo '${'$as_ac_var'}'`
15644 { echo "$as_me:$LINENO: result: $ac_res" >&5
15645 echo "${ECHO_T}$ac_res" >&6; }
15646 if test `eval echo '${'$as_ac_var'}'` = yes; then
15647 cat >>confdefs.h <<_ACEOF
15648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15654 LIBS="$glib_save_LIBS"
15656 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
15657 gt_cv_func_dgettext_libc=no
15659 if test "$gt_cv_func_dgettext_libc" = "yes" \
15660 && test "$gt_cv_func_ngettext_libc" = "yes"; then
15661 gt_cv_func_dgettext_libintl=no
15667 if test "$gt_cv_func_dgettext_libc" = "yes" \
15668 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
15669 gt_cv_have_gettext=yes
15672 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
15673 INTLLIBS="-lintl $libintl_extra_libs"
15676 if test "$gt_cv_have_gettext" = "yes"; then
15678 cat >>confdefs.h <<\_ACEOF
15679 #define HAVE_GETTEXT 1
15682 # Extract the first word of "msgfmt", so it can be a program name with args.
15683 set dummy msgfmt; ac_word=$2
15684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15686 if test "${ac_cv_path_MSGFMT+set}" = set; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15691 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15695 for ac_dir in $PATH; do
15696 test -z "$ac_dir" && ac_dir=.
15697 if test -f $ac_dir/$ac_word; then
15698 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
15699 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15705 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
15709 MSGFMT="$ac_cv_path_MSGFMT"
15710 if test "$MSGFMT" != "no"; then
15711 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15712 echo "${ECHO_T}$MSGFMT" >&6; }
15714 { echo "$as_me:$LINENO: result: no" >&5
15715 echo "${ECHO_T}no" >&6; }
15717 if test "$MSGFMT" != "no"; then
15718 glib_save_LIBS="$LIBS"
15719 LIBS="$LIBS $INTLLIBS"
15721 for ac_func in dcgettext
15723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 cat >conftest.$ac_ext <<_ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h. */
15735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15737 #define $ac_func innocuous_$ac_func
15739 /* System header to define __stub macros and hopefully few prototypes,
15740 which can conflict with char $ac_func (); below.
15741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15742 <limits.h> exists even on freestanding compilers. */
15745 # include <limits.h>
15747 # include <assert.h>
15752 /* Override any GCC internal prototype to avoid an error.
15753 Use char because int might match the return type of a GCC
15754 builtin and then its argument prototype would still apply. */
15759 /* The GNU C library defines this for functions which it implements
15760 to always fail with ENOSYS. Some functions are actually named
15761 something starting with __ and the normal name is an alias. */
15762 #if defined __stub_$ac_func || defined __stub___$ac_func
15769 return $ac_func ();
15774 rm -f conftest.$ac_objext conftest$ac_exeext
15775 if { (ac_try="$ac_link"
15776 case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_link") 2>conftest.er1
15783 grep -v '^ *+' conftest.er1 >conftest.err
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } && {
15788 test -z "$ac_c_werror_flag" ||
15789 test ! -s conftest.err
15790 } && test -s conftest$ac_exeext &&
15791 $as_test_x conftest$ac_exeext; then
15792 eval "$as_ac_var=yes"
15794 echo "$as_me: failed program was:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15797 eval "$as_ac_var=no"
15800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15801 conftest$ac_exeext conftest.$ac_ext
15803 ac_res=`eval echo '${'$as_ac_var'}'`
15804 { echo "$as_me:$LINENO: result: $ac_res" >&5
15805 echo "${ECHO_T}$ac_res" >&6; }
15806 if test `eval echo '${'$as_ac_var'}'` = yes; then
15807 cat >>confdefs.h <<_ACEOF
15808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15815 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
15816 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
15817 cat >conftest.foo <<_ACEOF
15821 "Content-Type: text/plain; charset=UTF-8\n"
15822 "Project-Id-Version: test 1.0\n"
15823 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
15824 "Last-Translator: test <foo@bar.xx>\n"
15825 "Language-Team: C <LL@li.org>\n"
15826 "MIME-Version: 1.0\n"
15827 "Content-Transfer-Encoding: 8bit\n"
15830 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
15831 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; then
15835 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
15836 echo "${ECHO_T}yes" >&6; }
15837 else { echo "$as_me:$LINENO: result: no" >&5
15838 echo "${ECHO_T}no" >&6; }
15839 echo "$as_me: failed input was:" >&5
15840 sed 's/^/| /' conftest.foo >&5
15843 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15844 set dummy gmsgfmt; ac_word=$2
15845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15847 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15852 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15856 for as_dir in $PATH
15859 test -z "$as_dir" && as_dir=.
15860 for ac_exec_ext in '' $ac_executable_extensions; do
15861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15862 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15870 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15874 GMSGFMT=$ac_cv_path_GMSGFMT
15875 if test -n "$GMSGFMT"; then
15876 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15877 echo "${ECHO_T}$GMSGFMT" >&6; }
15879 { echo "$as_me:$LINENO: result: no" >&5
15880 echo "${ECHO_T}no" >&6; }
15884 # Extract the first word of "xgettext", so it can be a program name with args.
15885 set dummy xgettext; ac_word=$2
15886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15888 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 case "$XGETTEXT" in
15893 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15897 for ac_dir in $PATH; do
15898 test -z "$ac_dir" && ac_dir=.
15899 if test -f $ac_dir/$ac_word; then
15900 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
15901 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15907 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15911 XGETTEXT="$ac_cv_path_XGETTEXT"
15912 if test "$XGETTEXT" != ":"; then
15913 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15914 echo "${ECHO_T}$XGETTEXT" >&6; }
15916 { echo "$as_me:$LINENO: result: no" >&5
15917 echo "${ECHO_T}no" >&6; }
15920 cat >conftest.$ac_ext <<_ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15930 extern int _nl_msg_cat_cntr;
15931 return _nl_msg_cat_cntr
15936 rm -f conftest.$ac_objext conftest$ac_exeext
15937 if { (ac_try="$ac_link"
15938 case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_link") 2>conftest.er1
15945 grep -v '^ *+' conftest.er1 >conftest.err
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } && {
15950 test -z "$ac_c_werror_flag" ||
15951 test ! -s conftest.err
15952 } && test -s conftest$ac_exeext &&
15953 $as_test_x conftest$ac_exeext; then
15957 echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15962 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
15963 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
15964 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 cat >conftest.$ac_ext <<_ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15973 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
15974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15975 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
15977 /* System header to define __stub macros and hopefully few prototypes,
15978 which can conflict with char bind_textdomain_codeset (); below.
15979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15980 <limits.h> exists even on freestanding compilers. */
15983 # include <limits.h>
15985 # include <assert.h>
15988 #undef bind_textdomain_codeset
15990 /* Override any GCC internal prototype to avoid an error.
15991 Use char because int might match the return type of a GCC
15992 builtin and then its argument prototype would still apply. */
15996 char bind_textdomain_codeset ();
15997 /* The GNU C library defines this for functions which it implements
15998 to always fail with ENOSYS. Some functions are actually named
15999 something starting with __ and the normal name is an alias. */
16000 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
16007 return bind_textdomain_codeset ();
16012 rm -f conftest.$ac_objext conftest$ac_exeext
16013 if { (ac_try="$ac_link"
16014 case "(($ac_try" in
16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019 (eval "$ac_link") 2>conftest.er1
16021 grep -v '^ *+' conftest.er1 >conftest.err
16023 cat conftest.err >&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } && {
16026 test -z "$ac_c_werror_flag" ||
16027 test ! -s conftest.err
16028 } && test -s conftest$ac_exeext &&
16029 $as_test_x conftest$ac_exeext; then
16030 ac_cv_func_bind_textdomain_codeset=yes
16032 echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16035 ac_cv_func_bind_textdomain_codeset=no
16038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16039 conftest$ac_exeext conftest.$ac_ext
16041 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
16042 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
16043 if test $ac_cv_func_bind_textdomain_codeset = yes; then
16059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16060 conftest$ac_exeext conftest.$ac_ext
16061 LIBS="$glib_save_LIBS"
16064 gt_cv_have_gettext=no
16072 if test "$gt_cv_have_gettext" = "yes" ; then
16074 cat >>confdefs.h <<\_ACEOF
16075 #define ENABLE_NLS 1
16080 if test "$XGETTEXT" != ":"; then
16081 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
16084 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16085 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16090 # We need to process the po/ directory.
16093 ac_config_commands="$ac_config_commands default-1"
16096 for lang in $ALL_LINGUAS; do
16097 GMOFILES="$GMOFILES $lang.gmo"
16098 POFILES="$POFILES $lang.po"
16113 if test "$gt_cv_have_gettext" = "yes"; then
16114 if test "x$ALL_LINGUAS" = "x"; then
16117 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
16118 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
16120 for presentlang in $ALL_LINGUAS; do
16122 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
16123 desiredlanguages="$LINGUAS"
16125 desiredlanguages="$ALL_LINGUAS"
16127 for desiredlang in $desiredlanguages; do
16128 # Use the presentlang catalog if desiredlang is
16129 # a. equal to presentlang, or
16130 # b. a variant of presentlang (because in this case,
16131 # presentlang can be used as a fallback for messages
16132 # which are not translated in the desiredlang catalog).
16133 case "$desiredlang" in
16134 "$presentlang"*) useit=yes;;
16137 if test $useit = yes; then
16138 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
16141 LINGUAS=$NEW_LINGUAS
16142 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
16143 echo "${ECHO_T}$LINGUAS" >&6; }
16146 if test -n "$LINGUAS"; then
16147 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
16152 if test -n "$ac_aux_dir"; then
16153 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
16155 if test -z "$MKINSTALLDIRS"; then
16156 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16160 test -d po || mkdir po
16161 if test "x$srcdir" != "x."; then
16162 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
16163 posrcprefix="$srcdir/"
16165 posrcprefix="../$srcdir/"
16171 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
16172 < $srcdir/po/POTFILES.in > po/POTFILES
16175 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
16177 cat >confcache <<\_ACEOF
16178 # This file is a shell script that caches the results of configure
16179 # tests run on this system so they can be shared between configure
16180 # scripts and configure runs, see configure's option --config-cache.
16181 # It is not useful on other systems. If it contains results you don't
16182 # want to keep, you may remove or edit it.
16184 # config.status only pays attention to the cache file if you give it
16185 # the --recheck option to rerun configure.
16187 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16188 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16189 # following values.
16193 # The following way of writing the cache mishandles newlines in values,
16194 # but we know of no workaround that is simple, portable, and efficient.
16195 # So, we kill variables containing newlines.
16196 # Ultrix sh set writes to stderr and can't be redirected directly,
16197 # and sets the high bit in the cache file unless we assign to the vars.
16199 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16200 eval ac_val=\$$ac_var
16204 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16205 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16208 _ | IFS | as_nl) ;; #(
16209 *) $as_unset $ac_var ;;
16215 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16216 *${as_nl}ac_space=\ *)
16217 # `set' does not quote correctly, so add quotes (double-quote
16218 # substitution turns \\\\ into \\, and sed turns \\ into \).
16221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16224 # `set' quotes correctly as required by POSIX, so do not add quotes.
16225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16236 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16238 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16239 if test -w "$cache_file"; then
16240 test "x$cache_file" != "x/dev/null" &&
16241 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16242 echo "$as_me: updating cache $cache_file" >&6;}
16243 cat confcache >$cache_file
16245 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16246 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16252 # Let make expand exec_prefix.
16253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16255 DEFS=-DHAVE_CONFIG_H
16259 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16260 # 1. Remove the extension, and $U if already installed.
16261 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16262 ac_i=`echo "$ac_i" | sed "$ac_script"`
16263 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16264 # will be set to the directory where LIBOBJS objects are built.
16265 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16266 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16268 LIBOBJS=$ac_libobjs
16270 LTLIBOBJS=$ac_ltlibobjs
16273 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16274 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16275 Usually this means the macro was only invoked conditionally." >&5
16276 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16277 Usually this means the macro was only invoked conditionally." >&2;}
16278 { (exit 1); exit 1; }; }
16280 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16281 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16282 Usually this means the macro was only invoked conditionally." >&5
16283 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16284 Usually this means the macro was only invoked conditionally." >&2;}
16285 { (exit 1); exit 1; }; }
16287 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16288 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16289 Usually this means the macro was only invoked conditionally." >&5
16290 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16291 Usually this means the macro was only invoked conditionally." >&2;}
16292 { (exit 1); exit 1; }; }
16294 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16295 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16296 Usually this means the macro was only invoked conditionally." >&5
16297 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16298 Usually this means the macro was only invoked conditionally." >&2;}
16299 { (exit 1); exit 1; }; }
16301 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16302 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16303 Usually this means the macro was only invoked conditionally." >&5
16304 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16305 Usually this means the macro was only invoked conditionally." >&2;}
16306 { (exit 1); exit 1; }; }
16308 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
16309 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
16310 Usually this means the macro was only invoked conditionally." >&5
16311 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
16312 Usually this means the macro was only invoked conditionally." >&2;}
16313 { (exit 1); exit 1; }; }
16315 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
16316 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
16317 Usually this means the macro was only invoked conditionally." >&5
16318 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
16319 Usually this means the macro was only invoked conditionally." >&2;}
16320 { (exit 1); exit 1; }; }
16322 if test -z "${GUI_ANDROID_TRUE}" && test -z "${GUI_ANDROID_FALSE}"; then
16323 { { echo "$as_me:$LINENO: error: conditional \"GUI_ANDROID\" was never defined.
16324 Usually this means the macro was only invoked conditionally." >&5
16325 echo "$as_me: error: conditional \"GUI_ANDROID\" was never defined.
16326 Usually this means the macro was only invoked conditionally." >&2;}
16327 { (exit 1); exit 1; }; }
16329 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
16330 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
16331 Usually this means the macro was only invoked conditionally." >&5
16332 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
16333 Usually this means the macro was only invoked conditionally." >&2;}
16334 { (exit 1); exit 1; }; }
16336 if test -z "${BUILD_PLUGINS_TRUE}" && test -z "${BUILD_PLUGINS_FALSE}"; then
16337 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PLUGINS\" was never defined.
16338 Usually this means the macro was only invoked conditionally." >&5
16339 echo "$as_me: error: conditional \"BUILD_PLUGINS\" was never defined.
16340 Usually this means the macro was only invoked conditionally." >&2;}
16341 { (exit 1); exit 1; }; }
16343 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
16344 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
16345 Usually this means the macro was only invoked conditionally." >&5
16346 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
16347 Usually this means the macro was only invoked conditionally." >&2;}
16348 { (exit 1); exit 1; }; }
16350 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
16351 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
16352 Usually this means the macro was only invoked conditionally." >&5
16353 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
16354 Usually this means the macro was only invoked conditionally." >&2;}
16355 { (exit 1); exit 1; }; }
16357 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
16358 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
16359 Usually this means the macro was only invoked conditionally." >&5
16360 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
16361 Usually this means the macro was only invoked conditionally." >&2;}
16362 { (exit 1); exit 1; }; }
16364 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
16365 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
16366 Usually this means the macro was only invoked conditionally." >&5
16367 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
16368 Usually this means the macro was only invoked conditionally." >&2;}
16369 { (exit 1); exit 1; }; }
16371 if test -z "${VIDEO_EGL_TRUE}" && test -z "${VIDEO_EGL_FALSE}"; then
16372 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_EGL\" was never defined.
16373 Usually this means the macro was only invoked conditionally." >&5
16374 echo "$as_me: error: conditional \"VIDEO_EGL\" was never defined.
16375 Usually this means the macro was only invoked conditionally." >&2;}
16376 { (exit 1); exit 1; }; }
16378 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
16379 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
16380 Usually this means the macro was only invoked conditionally." >&5
16381 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
16382 Usually this means the macro was only invoked conditionally." >&2;}
16383 { (exit 1); exit 1; }; }
16385 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
16386 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
16387 Usually this means the macro was only invoked conditionally." >&5
16388 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
16389 Usually this means the macro was only invoked conditionally." >&2;}
16390 { (exit 1); exit 1; }; }
16392 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
16393 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
16394 Usually this means the macro was only invoked conditionally." >&5
16395 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
16396 Usually this means the macro was only invoked conditionally." >&2;}
16397 { (exit 1); exit 1; }; }
16399 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
16400 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
16401 Usually this means the macro was only invoked conditionally." >&5
16402 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
16403 Usually this means the macro was only invoked conditionally." >&2;}
16404 { (exit 1); exit 1; }; }
16406 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
16407 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
16408 Usually this means the macro was only invoked conditionally." >&5
16409 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
16410 Usually this means the macro was only invoked conditionally." >&2;}
16411 { (exit 1); exit 1; }; }
16413 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
16414 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
16415 Usually this means the macro was only invoked conditionally." >&5
16416 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
16417 Usually this means the macro was only invoked conditionally." >&2;}
16418 { (exit 1); exit 1; }; }
16420 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
16421 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
16422 Usually this means the macro was only invoked conditionally." >&5
16423 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
16424 Usually this means the macro was only invoked conditionally." >&2;}
16425 { (exit 1); exit 1; }; }
16427 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
16428 { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
16429 Usually this means the macro was only invoked conditionally." >&5
16430 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
16431 Usually this means the macro was only invoked conditionally." >&2;}
16432 { (exit 1); exit 1; }; }
16434 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
16435 { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
16436 Usually this means the macro was only invoked conditionally." >&5
16437 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
16438 Usually this means the macro was only invoked conditionally." >&2;}
16439 { (exit 1); exit 1; }; }
16441 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
16442 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
16443 Usually this means the macro was only invoked conditionally." >&5
16444 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
16445 Usually this means the macro was only invoked conditionally." >&2;}
16446 { (exit 1); exit 1; }; }
16448 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
16449 { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
16450 Usually this means the macro was only invoked conditionally." >&5
16451 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
16452 Usually this means the macro was only invoked conditionally." >&2;}
16453 { (exit 1); exit 1; }; }
16455 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
16456 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
16457 Usually this means the macro was only invoked conditionally." >&5
16458 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
16459 Usually this means the macro was only invoked conditionally." >&2;}
16460 { (exit 1); exit 1; }; }
16462 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
16463 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
16464 Usually this means the macro was only invoked conditionally." >&5
16465 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
16466 Usually this means the macro was only invoked conditionally." >&2;}
16467 { (exit 1); exit 1; }; }
16470 : ${CONFIG_STATUS=./config.status}
16471 ac_clean_files_save=$ac_clean_files
16472 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16473 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16474 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16475 cat >$CONFIG_STATUS <<_ACEOF
16477 # Generated by $as_me.
16478 # Run this file to recreate the current configuration.
16479 # Compiler output produced by configure, useful for debugging
16480 # configure, is in config.log if it exists.
16483 ac_cs_recheck=false
16485 SHELL=\${CONFIG_SHELL-$SHELL}
16488 cat >>$CONFIG_STATUS <<\_ACEOF
16489 ## --------------------- ##
16490 ## M4sh Initialization. ##
16491 ## --------------------- ##
16493 # Be more Bourne compatible
16494 DUALCASE=1; export DUALCASE # for MKS sh
16495 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16498 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16499 # is contrary to our usage. Disable this feature.
16500 alias -g '${1+"$@"}'='"$@"'
16501 setopt NO_GLOB_SUBST
16503 case `(set -o) 2>/dev/null` in
16504 *posix*) set -o posix ;;
16513 # Avoid depending upon Character Ranges.
16514 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16515 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16516 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16517 as_cr_digits='0123456789'
16518 as_cr_alnum=$as_cr_Letters$as_cr_digits
16520 # The user is always right.
16521 if test "${PATH_SEPARATOR+set}" != set; then
16522 echo "#! /bin/sh" >conf$$.sh
16523 echo "exit 0" >>conf$$.sh
16525 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16533 # Support unset when possible.
16534 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16542 # We need space, tab and new line, in precisely that order. Quoting is
16543 # there to prevent editors from complaining about space-tab.
16544 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16545 # splitting by setting IFS to empty value.)
16550 # Find who we are. Look in the path if we contain no directory separator.
16552 *[\\/]* ) as_myself=$0 ;;
16553 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16554 for as_dir in $PATH
16557 test -z "$as_dir" && as_dir=.
16558 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16564 # We did not find ourselves, most probably we were run as `sh COMMAND'
16565 # in which case we are not to be found in the path.
16566 if test "x$as_myself" = x; then
16569 if test ! -f "$as_myself"; then
16570 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16571 { (exit 1); exit 1; }
16574 # Work around bugs in pre-3.0 UWIN ksh.
16575 for as_var in ENV MAIL MAILPATH
16576 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16584 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16585 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16586 LC_TELEPHONE LC_TIME
16588 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16589 eval $as_var=C; export $as_var
16591 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16595 # Required to use basename.
16596 if expr a : '\(a\)' >/dev/null 2>&1 &&
16597 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16603 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16604 as_basename=basename
16610 # Name of the executable.
16611 as_me=`$as_basename -- "$0" ||
16612 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16613 X"$0" : 'X\(//\)$' \| \
16614 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16616 sed '/^.*\/\([^/][^/]*\)\/*$/{
16635 as_lineno_1=$LINENO
16636 as_lineno_2=$LINENO
16637 test "x$as_lineno_1" != "x$as_lineno_2" &&
16638 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16640 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16641 # uniformly replaced by the line number. The first 'sed' inserts a
16642 # line-number line after each line using $LINENO; the second 'sed'
16643 # does the real work. The second script uses 'N' to pair each
16644 # line-number line with the line containing $LINENO, and appends
16645 # trailing '-' during substitution so that $LINENO is not a special
16646 # case at line end.
16647 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16648 # scripts with optimization help from Paolo Bonzini. Blame Lee
16649 # E. McMahon (1931-1989) for sed's syntax. :-)
16661 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16664 ' >$as_me.lineno &&
16665 chmod +x "$as_me.lineno" ||
16666 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16667 { (exit 1); exit 1; }; }
16669 # Don't try to exec as it changes $[0], causing all sort of problems
16670 # (the dirname of $[0] is not the place where we might find the
16671 # original and so on. Autoconf is especially sensitive to this).
16672 . "./$as_me.lineno"
16673 # Exit status is that of the last command.
16678 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16684 ECHO_C= ECHO_N= ECHO_T=
16685 case `echo -n x` in
16687 case `echo 'x\c'` in
16688 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16695 if expr a : '\(a\)' >/dev/null 2>&1 &&
16696 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16702 rm -f conf$$ conf$$.exe conf$$.file
16703 if test -d conf$$.dir; then
16704 rm -f conf$$.dir/conf$$.file
16710 if ln -s conf$$.file conf$$ 2>/dev/null; then
16712 # ... but there are two gotchas:
16713 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16714 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16715 # In both cases, we have to default to `cp -p'.
16716 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16718 elif ln conf$$.file conf$$ 2>/dev/null; then
16723 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16724 rmdir conf$$.dir 2>/dev/null
16726 if mkdir -p . 2>/dev/null; then
16729 test -d ./-p && rmdir ./-p
16733 if test -x / >/dev/null 2>&1; then
16734 as_test_x='test -x'
16736 if ls -dL / >/dev/null 2>&1; then
16743 if test -d "$1"; then
16749 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16750 ???[sx]*):;;*)false;;esac;fi
16754 as_executable_p=$as_test_x
16756 # Sed expression to map a string onto a valid CPP name.
16757 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16759 # Sed expression to map a string onto a valid variable name.
16760 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16765 # Save the log message, to keep $[0] and so on meaningful, and to
16766 # report actual input values of CONFIG_FILES etc. instead of their
16767 # values after options handling.
16769 This file was extended by $as_me, which was
16770 generated by GNU Autoconf 2.61. Invocation command line was
16772 CONFIG_FILES = $CONFIG_FILES
16773 CONFIG_HEADERS = $CONFIG_HEADERS
16774 CONFIG_LINKS = $CONFIG_LINKS
16775 CONFIG_COMMANDS = $CONFIG_COMMANDS
16778 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16783 cat >>$CONFIG_STATUS <<_ACEOF
16784 # Files that config.status was made for.
16785 config_files="$ac_config_files"
16786 config_headers="$ac_config_headers"
16787 config_commands="$ac_config_commands"
16791 cat >>$CONFIG_STATUS <<\_ACEOF
16793 \`$as_me' instantiates files from templates according to the
16794 current configuration.
16796 Usage: $0 [OPTIONS] [FILE]...
16798 -h, --help print this help, then exit
16799 -V, --version print version number and configuration settings, then exit
16800 -q, --quiet do not print progress messages
16801 -d, --debug don't remove temporary files
16802 --recheck update $as_me by reconfiguring in the same conditions
16803 --file=FILE[:TEMPLATE]
16804 instantiate the configuration file FILE
16805 --header=FILE[:TEMPLATE]
16806 instantiate the configuration header FILE
16808 Configuration files:
16811 Configuration headers:
16814 Configuration commands:
16817 Report bugs to <bug-autoconf@gnu.org>."
16820 cat >>$CONFIG_STATUS <<_ACEOF
16823 configured by $0, generated by GNU Autoconf 2.61,
16824 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16826 Copyright (C) 2006 Free Software Foundation, Inc.
16827 This config.status script is free software; the Free Software Foundation
16828 gives unlimited permission to copy, distribute and modify it."
16835 cat >>$CONFIG_STATUS <<\_ACEOF
16836 # If no file are specified by the user, then we need to provide default
16837 # value. By we need to know if files were specified by the user.
16843 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16844 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16855 # Handling of the options.
16856 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16858 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16859 echo "$ac_cs_version"; exit ;;
16860 --debug | --debu | --deb | --de | --d | -d )
16862 --file | --fil | --fi | --f )
16864 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16865 ac_need_defaults=false;;
16866 --header | --heade | --head | --hea )
16868 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16869 ac_need_defaults=false;;
16871 # Conflict between --help and --header
16872 { echo "$as_me: error: ambiguous option: $1
16873 Try \`$0 --help' for more information." >&2
16874 { (exit 1); exit 1; }; };;
16875 --help | --hel | -h )
16876 echo "$ac_cs_usage"; exit ;;
16877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16881 # This is an error.
16882 -*) { echo "$as_me: error: unrecognized option: $1
16883 Try \`$0 --help' for more information." >&2
16884 { (exit 1); exit 1; }; } ;;
16886 *) ac_config_targets="$ac_config_targets $1"
16887 ac_need_defaults=false ;;
16893 ac_configure_extra_args=
16895 if $ac_cs_silent; then
16897 ac_configure_extra_args="$ac_configure_extra_args --silent"
16901 cat >>$CONFIG_STATUS <<_ACEOF
16902 if \$ac_cs_recheck; then
16903 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16904 CONFIG_SHELL=$SHELL
16905 export CONFIG_SHELL
16906 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16910 cat >>$CONFIG_STATUS <<\_ACEOF
16914 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16915 ## Running $as_me. ##
16921 cat >>$CONFIG_STATUS <<_ACEOF
16925 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16930 cat >>$CONFIG_STATUS <<\_ACEOF
16932 # Handling of arguments.
16933 for ac_config_target in $ac_config_targets
16935 case $ac_config_target in
16936 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16937 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16938 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16939 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16940 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16941 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
16942 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16943 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16944 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
16946 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16947 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16948 { (exit 1); exit 1; }; };;
16953 # If the user did not use the arguments to specify the items to instantiate,
16954 # then the envvar interface is used. Set only those that are not.
16955 # We use the long form for the default assignment because of an extremely
16956 # bizarre bug on SunOS 4.1.3.
16957 if $ac_need_defaults; then
16958 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16959 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16960 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16963 # Have a temporary directory for convenience. Make it in the build tree
16964 # simply because there is no reason against having it here, and in addition,
16965 # creating and moving files from /tmp can sometimes cause problems.
16966 # Hook for its removal unless debugging.
16967 # Note that there is a small window in which the directory will not be cleaned:
16968 # after its creation but before its name has been assigned to `$tmp'.
16972 trap 'exit_status=$?
16973 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16975 trap '{ (exit 1); exit 1; }' 1 2 13 15
16977 # Create a (secure) tmp directory for tmp files.
16980 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16981 test -n "$tmp" && test -d "$tmp"
16984 tmp=./conf$$-$RANDOM
16985 (umask 077 && mkdir "$tmp")
16988 echo "$me: cannot create a temporary directory in ." >&2
16989 { (exit 1); exit 1; }
16993 # Set up the sed scripts for CONFIG_FILES section.
16996 # No need to generate the scripts if there are no CONFIG_FILES.
16997 # This happens for instance when ./config.status config.h
16998 if test -n "$CONFIG_FILES"; then
17005 for ac_last_try in false false false false false :; do
17006 cat >conf$$subs.sed <<_ACEOF
17007 SHELL!$SHELL$ac_delim
17008 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17009 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17010 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17011 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17012 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17013 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17014 exec_prefix!$exec_prefix$ac_delim
17015 prefix!$prefix$ac_delim
17016 program_transform_name!$program_transform_name$ac_delim
17017 bindir!$bindir$ac_delim
17018 sbindir!$sbindir$ac_delim
17019 libexecdir!$libexecdir$ac_delim
17020 datarootdir!$datarootdir$ac_delim
17021 datadir!$datadir$ac_delim
17022 sysconfdir!$sysconfdir$ac_delim
17023 sharedstatedir!$sharedstatedir$ac_delim
17024 localstatedir!$localstatedir$ac_delim
17025 includedir!$includedir$ac_delim
17026 oldincludedir!$oldincludedir$ac_delim
17027 docdir!$docdir$ac_delim
17028 infodir!$infodir$ac_delim
17029 htmldir!$htmldir$ac_delim
17030 dvidir!$dvidir$ac_delim
17031 pdfdir!$pdfdir$ac_delim
17032 psdir!$psdir$ac_delim
17033 libdir!$libdir$ac_delim
17034 localedir!$localedir$ac_delim
17035 mandir!$mandir$ac_delim
17036 DEFS!$DEFS$ac_delim
17037 ECHO_C!$ECHO_C$ac_delim
17038 ECHO_N!$ECHO_N$ac_delim
17039 ECHO_T!$ECHO_T$ac_delim
17040 LIBS!$LIBS$ac_delim
17041 build_alias!$build_alias$ac_delim
17042 host_alias!$host_alias$ac_delim
17043 target_alias!$target_alias$ac_delim
17044 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
17045 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
17046 INSTALL_DATA!$INSTALL_DATA$ac_delim
17047 CYGPATH_W!$CYGPATH_W$ac_delim
17048 PACKAGE!$PACKAGE$ac_delim
17049 VERSION!$VERSION$ac_delim
17050 ACLOCAL!$ACLOCAL$ac_delim
17051 AUTOCONF!$AUTOCONF$ac_delim
17052 AUTOMAKE!$AUTOMAKE$ac_delim
17053 AUTOHEADER!$AUTOHEADER$ac_delim
17054 MAKEINFO!$MAKEINFO$ac_delim
17055 install_sh!$install_sh$ac_delim
17056 STRIP!$STRIP$ac_delim
17057 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
17058 mkdir_p!$mkdir_p$ac_delim
17060 SET_MAKE!$SET_MAKE$ac_delim
17061 am__leading_dot!$am__leading_dot$ac_delim
17062 AMTAR!$AMTAR$ac_delim
17063 am__tar!$am__tar$ac_delim
17064 am__untar!$am__untar$ac_delim
17065 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
17066 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
17067 MAINT!$MAINT$ac_delim
17068 build!$build$ac_delim
17069 build_cpu!$build_cpu$ac_delim
17070 build_vendor!$build_vendor$ac_delim
17071 build_os!$build_os$ac_delim
17072 host!$host$ac_delim
17073 host_cpu!$host_cpu$ac_delim
17074 host_vendor!$host_vendor$ac_delim
17075 host_os!$host_os$ac_delim
17077 CFLAGS!$CFLAGS$ac_delim
17078 LDFLAGS!$LDFLAGS$ac_delim
17079 CPPFLAGS!$CPPFLAGS$ac_delim
17080 ac_ct_CC!$ac_ct_CC$ac_delim
17081 EXEEXT!$EXEEXT$ac_delim
17082 OBJEXT!$OBJEXT$ac_delim
17083 DEPDIR!$DEPDIR$ac_delim
17084 am__include!$am__include$ac_delim
17085 am__quote!$am__quote$ac_delim
17086 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
17087 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
17088 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
17089 CCDEPMODE!$CCDEPMODE$ac_delim
17090 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
17091 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
17094 CFLAGS!$CFLAGS$ac_delim
17095 CPPFLAGS!$CPPFLAGS$ac_delim
17096 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
17097 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
17098 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
17099 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
17100 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
17102 CPPFLAGS!$CPPFLAGS$ac_delim
17103 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
17106 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17108 elif $ac_last_try; then
17109 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17110 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17111 { (exit 1); exit 1; }; }
17113 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17117 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17118 if test -n "$ac_eof"; then
17119 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17120 ac_eof=`expr $ac_eof + 1`
17123 cat >>$CONFIG_STATUS <<_ACEOF
17124 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17128 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17129 s/^/s,@/; s/!/@,|#_!!_#|/
17132 s/'"$ac_delim"'$/,g/; t
17134 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17135 ' >>$CONFIG_STATUS <conf$$subs.sed
17136 rm -f conf$$subs.sed
17137 cat >>$CONFIG_STATUS <<_ACEOF
17143 for ac_last_try in false false false false false :; do
17144 cat >conf$$subs.sed <<_ACEOF
17145 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
17146 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
17147 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
17148 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
17149 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
17150 OBJC!$OBJC$ac_delim
17151 OBJCFLAGS!$OBJCFLAGS$ac_delim
17152 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
17154 CCAS!$CCAS$ac_delim
17155 CCASFLAGS!$CCASFLAGS$ac_delim
17156 RANLIB!$RANLIB$ac_delim
17157 GREP!$GREP$ac_delim
17158 EGREP!$EGREP$ac_delim
17159 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
17160 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
17161 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
17162 POD2MAN!$POD2MAN$ac_delim
17163 POD2HTML!$POD2HTML$ac_delim
17165 ANDROID_ABI!$ANDROID_ABI$ac_delim
17166 ANDROID_SDK_HOME!$ANDROID_SDK_HOME$ac_delim
17167 ANDROID_NDK_HOME!$ANDROID_NDK_HOME$ac_delim
17168 ANDROID_SDK_VERSION!$ANDROID_SDK_VERSION$ac_delim
17169 ANDROID_NDK_VERSION!$ANDROID_NDK_VERSION$ac_delim
17170 ANDROID_GDBSERVER!$ANDROID_GDBSERVER$ac_delim
17171 GUI_ANDROID_TRUE!$GUI_ANDROID_TRUE$ac_delim
17172 GUI_ANDROID_FALSE!$GUI_ANDROID_FALSE$ac_delim
17173 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
17174 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
17175 SOEXT!$SOEXT$ac_delim
17176 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
17177 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
17178 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
17179 BUILD_PLUGINS_TRUE!$BUILD_PLUGINS_TRUE$ac_delim
17180 BUILD_PLUGINS_FALSE!$BUILD_PLUGINS_FALSE$ac_delim
17181 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
17182 PKG_CONFIG!$PKG_CONFIG$ac_delim
17183 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
17184 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
17185 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
17186 GLIB_LIBS!$GLIB_LIBS$ac_delim
17187 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
17188 GTK_LIBS!$GTK_LIBS$ac_delim
17189 GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
17190 GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
17191 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
17192 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
17193 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
17194 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
17195 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
17196 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
17197 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
17198 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
17199 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
17200 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
17201 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
17202 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
17203 VIDEO_EGL_TRUE!$VIDEO_EGL_TRUE$ac_delim
17204 VIDEO_EGL_FALSE!$VIDEO_EGL_FALSE$ac_delim
17205 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
17206 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
17207 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
17208 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
17209 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
17210 SDL_LIBS!$SDL_LIBS$ac_delim
17211 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
17212 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
17213 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
17214 PULSE_LIBS!$PULSE_LIBS$ac_delim
17215 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
17216 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
17217 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
17218 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
17219 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
17220 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
17221 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
17222 ALSA_LIBS!$ALSA_LIBS$ac_delim
17223 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
17224 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
17225 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
17226 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
17227 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
17228 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
17229 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
17230 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
17231 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
17232 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
17233 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
17234 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
17235 SHCC!$SHCC$ac_delim
17236 SHLD!$SHLD$ac_delim
17237 SHOBJCOPY!$SHOBJCOPY$ac_delim
17238 ARMCC!$ARMCC$ac_delim
17239 ARMLD!$ARMLD$ac_delim
17240 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
17241 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
17244 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17246 elif $ac_last_try; then
17247 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17248 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17249 { (exit 1); exit 1; }; }
17251 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17255 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17256 if test -n "$ac_eof"; then
17257 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17258 ac_eof=`expr $ac_eof + 1`
17261 cat >>$CONFIG_STATUS <<_ACEOF
17262 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17263 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17266 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17267 s/^/s,@/; s/!/@,|#_!!_#|/
17270 s/'"$ac_delim"'$/,g/; t
17272 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17273 ' >>$CONFIG_STATUS <conf$$subs.sed
17274 rm -f conf$$subs.sed
17275 cat >>$CONFIG_STATUS <<_ACEOF
17281 for ac_last_try in false false false false false :; do
17282 cat >conf$$subs.sed <<_ACEOF
17283 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
17284 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
17285 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
17286 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
17287 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
17288 USE_NLS!$USE_NLS$ac_delim
17289 MSGFMT!$MSGFMT$ac_delim
17290 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
17291 GMSGFMT!$GMSGFMT$ac_delim
17292 XGETTEXT!$XGETTEXT$ac_delim
17293 CATALOGS!$CATALOGS$ac_delim
17294 CATOBJEXT!$CATOBJEXT$ac_delim
17295 DATADIRNAME!$DATADIRNAME$ac_delim
17296 GMOFILES!$GMOFILES$ac_delim
17297 INSTOBJEXT!$INSTOBJEXT$ac_delim
17298 INTLLIBS!$INTLLIBS$ac_delim
17299 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
17300 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
17301 POFILES!$POFILES$ac_delim
17302 POSUB!$POSUB$ac_delim
17303 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
17304 LIBOBJS!$LIBOBJS$ac_delim
17305 LTLIBOBJS!$LTLIBOBJS$ac_delim
17308 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
17310 elif $ac_last_try; then
17311 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17312 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17313 { (exit 1); exit 1; }; }
17315 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17319 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17320 if test -n "$ac_eof"; then
17321 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17322 ac_eof=`expr $ac_eof + 1`
17325 cat >>$CONFIG_STATUS <<_ACEOF
17326 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
17327 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17330 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17331 s/^/s,@/; s/!/@,|#_!!_#|/
17334 s/'"$ac_delim"'$/,g/; t
17336 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17337 ' >>$CONFIG_STATUS <conf$$subs.sed
17338 rm -f conf$$subs.sed
17339 cat >>$CONFIG_STATUS <<_ACEOF
17346 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17347 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17348 # trailing colons and then remove the whole line if VPATH becomes empty
17349 # (actually we leave an empty line to preserve line numbers).
17350 if test "x$srcdir" = x.; then
17351 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17352 s/:*\$(srcdir):*/:/
17353 s/:*\${srcdir}:*/:/
17355 s/^\([^=]*=[ ]*\):*/\1/
17361 cat >>$CONFIG_STATUS <<\_ACEOF
17362 fi # test -n "$CONFIG_FILES"
17365 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
17368 :[FHLC]) ac_mode=$ac_tag; continue;;
17370 case $ac_mode$ac_tag in
17372 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17373 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17374 { (exit 1); exit 1; }; };;
17375 :[FH]-) ac_tag=-:-;;
17376 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17393 -) ac_f="$tmp/stdin";;
17394 *) # Look for the file first in the build tree, then in the source tree
17395 # (if the path is not absolute). The absolute path cannot be DOS-style,
17396 # because $ac_f cannot contain `:'.
17400 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17402 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17403 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17404 { (exit 1); exit 1; }; };;
17406 ac_file_inputs="$ac_file_inputs $ac_f"
17409 # Let's still pretend it is `configure' which instantiates (i.e., don't
17410 # use $as_me), people would be surprised to read:
17411 # /* config.h. Generated by config.status. */
17412 configure_input="Generated from "`IFS=:
17413 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17414 if test x"$ac_file" != x-; then
17415 configure_input="$ac_file. $configure_input"
17416 { echo "$as_me:$LINENO: creating $ac_file" >&5
17417 echo "$as_me: creating $ac_file" >&6;}
17421 *:-:* | *:-) cat >"$tmp/stdin";;
17426 ac_dir=`$as_dirname -- "$ac_file" ||
17427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17428 X"$ac_file" : 'X\(//\)[^/]' \| \
17429 X"$ac_file" : 'X\(//\)$' \| \
17430 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17436 /^X\(\/\/\)[^/].*/{
17451 -*) as_dir=./$as_dir;;
17453 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17457 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17458 *) as_qdir=$as_dir;;
17460 as_dirs="'$as_qdir' $as_dirs"
17461 as_dir=`$as_dirname -- "$as_dir" ||
17462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17463 X"$as_dir" : 'X\(//\)[^/]' \| \
17464 X"$as_dir" : 'X\(//\)$' \| \
17465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17471 /^X\(\/\/\)[^/].*/{
17484 test -d "$as_dir" && break
17486 test -z "$as_dirs" || eval "mkdir $as_dirs"
17487 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17488 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17489 { (exit 1); exit 1; }; }; }
17493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17496 # A ".." for each directory in $ac_dir_suffix.
17497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17498 case $ac_top_builddir_sub in
17499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17503 ac_abs_top_builddir=$ac_pwd
17504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17505 # for backward compatibility:
17506 ac_top_builddir=$ac_top_build_prefix
17509 .) # We are building in place.
17511 ac_top_srcdir=$ac_top_builddir_sub
17512 ac_abs_top_srcdir=$ac_pwd ;;
17513 [\\/]* | ?:[\\/]* ) # Absolute name.
17514 ac_srcdir=$srcdir$ac_dir_suffix;
17515 ac_top_srcdir=$srcdir
17516 ac_abs_top_srcdir=$srcdir ;;
17517 *) # Relative name.
17518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17519 ac_top_srcdir=$ac_top_build_prefix$srcdir
17520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17532 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17533 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17537 cat >>$CONFIG_STATUS <<\_ACEOF
17538 # If the template does not know about datarootdir, expand it.
17539 # FIXME: This hack should be removed a few years after 2.60.
17540 ac_datarootdir_hack=; ac_datarootdir_seen=
17542 case `sed -n '/datarootdir/ {
17551 ' $ac_file_inputs` in
17552 *datarootdir*) ac_datarootdir_seen=yes;;
17553 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17554 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17555 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17557 cat >>$CONFIG_STATUS <<_ACEOF
17558 ac_datarootdir_hack='
17559 s&@datadir@&$datadir&g
17560 s&@docdir@&$docdir&g
17561 s&@infodir@&$infodir&g
17562 s&@localedir@&$localedir&g
17563 s&@mandir@&$mandir&g
17564 s&\\\${datarootdir}&$datarootdir&g' ;;
17568 # Neutralize VPATH when `$srcdir' = `.'.
17569 # Shell code in configure.ac might set extrasub.
17570 # FIXME: do we really want to maintain this feature?
17571 cat >>$CONFIG_STATUS <<_ACEOF
17575 cat >>$CONFIG_STATUS <<\_ACEOF
17577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17578 s&@configure_input@&$configure_input&;t t
17579 s&@top_builddir@&$ac_top_builddir_sub&;t t
17580 s&@srcdir@&$ac_srcdir&;t t
17581 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17582 s&@top_srcdir@&$ac_top_srcdir&;t t
17583 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17584 s&@builddir@&$ac_builddir&;t t
17585 s&@abs_builddir@&$ac_abs_builddir&;t t
17586 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17587 s&@INSTALL@&$ac_INSTALL&;t t
17588 $ac_datarootdir_hack
17589 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
17591 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17592 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17593 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17594 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17595 which seems to be undefined. Please make sure it is defined." >&5
17596 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17597 which seems to be undefined. Please make sure it is defined." >&2;}
17601 -) cat "$tmp/out"; rm -f "$tmp/out";;
17602 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17611 # Transform confdefs.h into a sed script `conftest.defines', that
17612 # substitutes the proper values into config.h.in to produce config.h.
17613 rm -f conftest.defines conftest.tail
17614 # First, append a space to every undef/define line, to ease matching.
17615 echo 's/$/ /' >conftest.defines
17616 # Then, protect against being on the right side of a sed subst, or in
17617 # an unquoted here document, in config.status. If some macros were
17618 # called several times there might be several #defines for the same
17619 # symbol, which is useless. But do not sort them, since the last
17620 # AC_DEFINE must be honored.
17621 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17622 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17623 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17624 # PARAMS is the parameter list in the macro definition--in most cases, it's
17625 # just an empty string.
17626 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17627 ac_dB='\\)[ (].*,\\1define\\2'
17635 s/^[ ]*#[ ]*define[ ][ ]*//
17640 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17641 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17642 ' >>conftest.defines
17644 # Remove the space that was appended to ease matching.
17645 # Then replace #undef with comments. This is necessary, for
17646 # example, in the case of _POSIX_SOURCE, which is predefined and required
17647 # on some systems where configure will not decide to define it.
17648 # (The regexp can be short, since the line contains either #define or #undef.)
17650 s,^[ #]*u.*,/* & */,' >>conftest.defines
17652 # Break up conftest.defines:
17653 ac_max_sed_lines=50
17655 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17656 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17657 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17659 ac_in='$ac_file_inputs'
17660 ac_out='"$tmp/out1"'
17661 ac_nxt='"$tmp/out2"'
17665 # Write a here document:
17666 cat >>$CONFIG_STATUS <<_ACEOF
17667 # First, check the format of the line:
17668 cat >"\$tmp/defines.sed" <<\\CEOF
17669 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17670 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17674 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17676 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17677 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17678 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17679 grep . conftest.tail >/dev/null || break
17680 rm -f conftest.defines
17681 mv conftest.tail conftest.defines
17683 rm -f conftest.defines conftest.tail
17685 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17686 cat >>$CONFIG_STATUS <<\_ACEOF
17687 if test x"$ac_file" != x-; then
17688 echo "/* $configure_input */" >"$tmp/config.h"
17689 cat "$ac_result" >>"$tmp/config.h"
17690 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17691 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17692 echo "$as_me: $ac_file is unchanged" >&6;}
17695 mv "$tmp/config.h" $ac_file
17698 echo "/* $configure_input */"
17702 # Compute $ac_file's index in $config_headers.
17704 for _am_header in $config_headers :; do
17705 case $_am_header in
17706 $ac_file | $ac_file:* )
17709 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17712 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
17713 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17714 X$ac_file : 'X\(//\)[^/]' \| \
17715 X$ac_file : 'X\(//\)$' \| \
17716 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
17718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17722 /^X\(\/\/\)[^/].*/{
17734 s/.*/./; q'`/stamp-h$_am_stamp_count
17737 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17738 echo "$as_me: executing $ac_file commands" >&6;}
17743 case $ac_file$ac_mode in
17744 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17745 # Strip MF so we end up with the name of the file.
17746 mf=`echo "$mf" | sed -e 's/:.*$//'`
17747 # Check whether this is an Automake generated Makefile or not.
17748 # We used to match only the files named `Makefile.in', but
17749 # some people rename them; so instead we look at the file content.
17750 # Grep'ing the first line is not enough: some people post-process
17751 # each Makefile.in and add a new line on top of each file to say so.
17752 # So let's grep whole file.
17753 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17754 dirpart=`$as_dirname -- "$mf" ||
17755 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17756 X"$mf" : 'X\(//\)[^/]' \| \
17757 X"$mf" : 'X\(//\)$' \| \
17758 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17764 /^X\(\/\/\)[^/].*/{
17780 # Extract the definition of DEPDIR, am__include, and am__quote
17781 # from the Makefile without running `make'.
17782 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17783 test -z "$DEPDIR" && continue
17784 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17785 test -z "am__include" && continue
17786 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17787 # When using ansi2knr, U may be empty or an underscore; expand it
17788 U=`sed -n 's/^U = //p' < "$mf"`
17789 # Find all dependency output files, they are included files with
17790 # $(DEPDIR) in their names. We invoke sed twice because it is the
17791 # simplest approach to changing $(DEPDIR) to its actual value in the
17793 for file in `sed -n "
17794 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17795 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17796 # Make sure the directory exists.
17797 test -f "$dirpart/$file" && continue
17798 fdir=`$as_dirname -- "$file" ||
17799 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17800 X"$file" : 'X\(//\)[^/]' \| \
17801 X"$file" : 'X\(//\)$' \| \
17802 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17808 /^X\(\/\/\)[^/].*/{
17821 { as_dir=$dirpart/$fdir
17823 -*) as_dir=./$as_dir;;
17825 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17829 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17830 *) as_qdir=$as_dir;;
17832 as_dirs="'$as_qdir' $as_dirs"
17833 as_dir=`$as_dirname -- "$as_dir" ||
17834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17835 X"$as_dir" : 'X\(//\)[^/]' \| \
17836 X"$as_dir" : 'X\(//\)$' \| \
17837 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17843 /^X\(\/\/\)[^/].*/{
17856 test -d "$as_dir" && break
17858 test -z "$as_dirs" || eval "mkdir $as_dirs"
17859 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17860 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17861 { (exit 1); exit 1; }; }; }
17862 # echo "creating $dirpart/$file"
17863 echo '# dummy' > "$dirpart/$file"
17867 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17868 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17875 { (exit 0); exit 0; }
17877 chmod +x $CONFIG_STATUS
17878 ac_clean_files=$ac_clean_files_save
17881 # configure is writing to config.log, and then calls config.status.
17882 # config.status does its own redirection, appending to config.log.
17883 # Unfortunately, on DOS this fails, as config.log is still kept open
17884 # by configure, so config.status won't be able to write to it; its
17885 # output is simply discarded. So we exec the FD to /dev/null,
17886 # effectively closing config.log, so it can be properly (re)opened and
17887 # appended to by config.status. When coming back to configure, we
17888 # need to make the FD available again.
17889 if test "$no_create" != yes; then
17891 ac_config_status_args=
17892 test "$silent" = yes &&
17893 ac_config_status_args="$ac_config_status_args --quiet"
17895 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17897 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17898 # would make configure fail if this is the last instruction.
17899 $ac_cs_success || { (exit 1); exit 1; }
17904 -*) as_dir=./$as_dir;;
17906 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17910 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17911 *) as_qdir=$as_dir;;
17913 as_dirs="'$as_qdir' $as_dirs"
17914 as_dir=`$as_dirname -- "$as_dir" ||
17915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17916 X"$as_dir" : 'X\(//\)[^/]' \| \
17917 X"$as_dir" : 'X\(//\)$' \| \
17918 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17924 /^X\(\/\/\)[^/].*/{
17937 test -d "$as_dir" && break
17939 test -z "$as_dirs" || eval "mkdir $as_dirs"
17940 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17941 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17942 { (exit 1); exit 1; }; }; }
17946 echo "Configuration complete"
17949 if test "x$UI_DRIVER" = x; then
17950 echo " User interface: none"
17952 echo " User interface: $UI_DRIVER"
17955 if test "x$SH4_TRANSLATOR" = "x"; then
17956 echo " SH4 translator: none (emulation core only)"
17958 echo " SH4 translator: $SH4_TRANSLATOR"
17961 if test "x$VIDEO_DRIVERS" = "x"; then
17962 echo " Video drivers: none (no supported GL found)"
17964 echo " Video drivers: $VIDEO_DRIVERS"
17967 if test "x$AUDIO_DRIVERS" = "x"; then
17968 echo " Audio drivers: none (no supported output devices found)"
17970 echo " Audio drivers: $AUDIO_DRIVERS"
17973 if test "x$INPUT_DRIVERS" = "x"; then
17974 echo " Input drivers: none (no supported input devices found)"
17976 echo " Input drivers: $INPUT_DRIVERS"
17979 if test "x$CDROM_DRIVER" = "x"; then
17980 echo " CD-ROM driver: none (no supported cd-rom devices found)"
17982 echo " CD-ROM driver: $CDROM_DRIVER"
.